From cb60b30e899aea2db91bd8cc0272df7508e12fa4 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 23:26:42 +0800 Subject: [PATCH] update --- src/container/machineList/Manage-add-update.vue | 26 ++++++++++---------------- 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/container/machineList/Manage-add-update.vue b/src/container/machineList/Manage-add-update.vue index f73d09b..d4747d6 100644 --- a/src/container/machineList/Manage-add-update.vue +++ b/src/container/machineList/Manage-add-update.vue @@ -161,23 +161,17 @@ }, /* 鎻愪氦*/ dataFormSubmit() { - if (this.dataForm.id === '') { // 鏂板 - getRequest('machineSave',this.dataForm).then(res => { - + getRequest('machineUpdate',this.dataForm).then(res => { + this.$message({ + message: '淇敼鎴愬姛', + type: 'success', + duration: 1500, + onClose: () => { + this.$emit('confirm') + this.visible = false + } }) - } else { - // deviceTypeUpdate(this.dataForm).then(res => { - // this.$message({ - // message: '淇敼鎴愬姛', - // type: 'success', - // duration: 1500, - // onClose: () => { - // this.$emit('confirm') - // this.visible = false - // } - // }) - // }) - } + }) } } } -- Gitblit v1.9.3