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 { } }; + +