From 202c2b1448654ed23d24e7869264b2bc4113a219 Mon Sep 17 00:00:00 2001 From: jhd <1684074631@qq.com> Date: Tue, 12 May 2026 18:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/views/mes/qc/template/index.vue | 160 +++++++++++++++++++-- 1 file changed, 150 insertions(+), 10 deletions(-) diff --git a/klp-ui/src/views/mes/qc/template/index.vue b/klp-ui/src/views/mes/qc/template/index.vue index 666cefc7..8ad4e5de 100644 --- a/klp-ui/src/views/mes/qc/template/index.vue +++ b/klp-ui/src/views/mes/qc/template/index.vue @@ -8,6 +8,10 @@ + + + @@ -17,16 +21,28 @@ - - - - - - +
+
+
+ {{ item.templateName }} +
+ 修改 + 删除 +
+
+
+ 所属单位:{{ item.templateUnit || '-' }} +
+
{{ item.templateDesc }}
+
+ +
@@ -37,6 +53,9 @@ + + + @@ -180,6 +199,7 @@ export default { pageNum: 1, pageSize: 10, templateName: undefined, + templateUnit: undefined, templateDesc: undefined, inspectionItem: undefined, }, @@ -190,6 +210,7 @@ export default { }, checkItemList: [], rightLoading: false, + isRowClicking: false, currentTemplate: null, addItemOpen: false, addItemForm: { @@ -220,11 +241,20 @@ export default { }); }, handleRowClick(row) { + if (this.isRowClicking) { + this.$message.info('正在查看数据,请稍后'); + return; + } + this.isRowClicking = true; this.currentTemplate = row; this.rightLoading = true; getInfoByInspectionItem(row.inspectionItem).then(response => { this.checkItemList = response.data || []; this.rightLoading = false; + this.isRowClicking = false; + }).catch(() => { + this.rightLoading = false; + this.isRowClicking = false; }); }, loadAvailableCheckItems() { @@ -425,3 +455,113 @@ export default { } }; + +