From 2b45e5b3c7dbfb14aee6de42013a3caad8d486ba Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期一, 18 九月 2023 10:37:01 +0800 Subject: [PATCH] 设备备件 --- src/views/eam/PredictiveWorkPlanList.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/eam/PredictiveWorkPlanList.vue b/src/views/eam/PredictiveWorkPlanList.vue index fe4d1b0..86c48d7 100644 --- a/src/views/eam/PredictiveWorkPlanList.vue +++ b/src/views/eam/PredictiveWorkPlanList.vue @@ -393,7 +393,8 @@ this.selectionRows = [] this.planId = '' this.equipmentId = '' - this.isAdd = false + this.isAdd = falses + }, handleDelete: function(id) { if (!this.url.delete) { @@ -418,7 +419,10 @@ this.selectionRows = selectionRows this.planId = this.selectedRowKeys[0] this.equipmentId = selectionRows[0].equipment_id - this.isAdd = true + this.isAdd = selectionRows[0].status=='1'; + this.isDel = selectionRows[0].status=='1'; + this.isEdit = selectionRows[0].status=='1'; + }, onChange(e) { @@ -452,7 +456,7 @@ const that = this that.confirmLoading = true this.$confirm({ - title: '鏃ュ父淇濆吇鏍囧噯鐗堟湰鐢熸晥锛�', + title: '鐗堟湰鐢熸晥锛�', content: '鎻愮ず锛氱増鏈敓鏁堝悗涓婁竴鐗堟湰灏嗚嚜鍔ㄥけ鏁堬紝璇疯皑鎱庢搷浣滐紒', okText: '纭', cancelText: '鍙栨秷', @@ -474,10 +478,6 @@ } }) }, - - searchReset() { - this.loadData(1) - } } } </script> -- Gitblit v1.9.3