From 5e2c698b2149b97530f00c4db11ef551f3f1d6ae Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 16:14:54 +0800
Subject: [PATCH] 防雷检测
---
src/views/structural/capabilityAndLaboratory/laboratory/index.vue | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 5e33081..4e20b20 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -3,7 +3,7 @@
<div>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
<el-form-item label="璧勮川鍚嶇О" prop="name">
- <el-select v-model="queryParams.name" placeholder="閫夋嫨璧勮川鍚嶇О" size="small" @change="refreshTable()">
+ <el-select v-model="queryParams.name" placeholder="閫夋嫨璧勮川鍚嶇О" size="small" @change="refreshTable(), list = []">
<el-option v-for="dict in dict.type.cnas_method_qualification" :key="dict.value" :label="dict.label"
:value="dict.value">
{{ dict.label }}
@@ -320,7 +320,7 @@
this.selection.forEach((item) => {
delIds.push(item.id);
});
- delCertificationDetail(delIds).then((res) => {
+ delCertificationDetail({ ids: delIds.join(',') }).then((res) => {
if (res.code !== 200) return;
this.refreshTable();
this.$message.success("鍒犻櫎鎴愬姛");
@@ -328,8 +328,11 @@
},
// 璧勮川鏄庣粏闄勪欢涓嬭浇
handleDownLoad(row) {
- const url = process.env.VUE_APP_BASE_API + "/img/" + row.fileUrl;
- this.$download.saveAs(url, row.fileUrl);
+ if (!row.fileUrl) {
+ this.$message.warning('鏆傛棤闄勪欢')
+ return;
+ }
+ this.$download.saveAs(row.fileUrl, row.fileUrl);
},
openAdd() {
this.qualificationsConnectVisible = true;
@@ -377,7 +380,6 @@
addCertificationDetail({ ...this.formData })
.then((res) => {
this.loading = false;
- if (res.code === 201) return;
this.$message.success("宸叉彁浜�");
this.refreshTable();
this.resetForm("formDataRef");
--
Gitblit v1.9.3