From 9fa6081434d8cc9486eb01ea4626c26dadf85641 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 15 Aug 2024 15:44:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=94=9F=E4=BA=A7=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=A2=9E=E5=88=A0=E6=94=B9=E5=90=8E=E5=88=B7=E6=96=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=9E=8B=E5=85=89?= =?UTF-8?q?=E5=AD=90=E5=8D=95=E7=8B=AC=E4=B8=80=E4=B8=AA=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/em/ecate_form.vue | 4 ++++ src/views/em/equipment.vue | 12 +++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/em/ecate_form.vue b/src/views/em/ecate_form.vue index 2a7ec819..6309e7d0 100644 --- a/src/views/em/ecate_form.vue +++ b/src/views/em/ecate_form.vue @@ -103,6 +103,10 @@ export default { name: [{ required: true, message: "请输入类型名称" }], type: [{ required: true, message: "请请选择设备类型" }], }, + type_gx:[ + { text: '生产设备', key: 10 }, + { text: '计量设备', key: 20 }, + ], visible: false, isSaveing: false, }; diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue index f140eb4f..01c27bfe 100644 --- a/src/views/em/equipment.vue +++ b/src/views/em/equipment.vue @@ -341,10 +341,12 @@ export default { }, //删除 async table_del(row) { - this.$API.em.equipment.delete + let that = this; + that.$API.em.equipment.delete .req(row.id) .then((res) => { - this.$message.success("删除成功"); + that.$message.success("删除成功"); + that.$refs.table.refresh(); return res; }) .catch((err) => { @@ -354,11 +356,7 @@ export default { //本地更新数据 handleSaveSuccess(data, mode) { - if (mode == "add") { - this.$refs.table.refresh(); - } else if (mode == "edit") { - this.$refs.table.refresh(); - } + this.$refs.table.refresh(); }, handleCheckSuccess() { }, handleQuery() {