From ef709708c72e4eaf6648ee77797b49a6a4beb9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E5=AD=90=E9=BE=99?= <14096380+qwe963852@user.noreply.gitee.com> Date: Thu, 26 Sep 2024 11:06:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=95=85=E9=9A=9C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/breakdown/log/index.vue | 44 +++++++++++++++++-------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/views/breakdown/log/index.vue b/src/views/breakdown/log/index.vue index 093bfb7..1d7c310 100644 --- a/src/views/breakdown/log/index.vue +++ b/src/views/breakdown/log/index.vue @@ -62,6 +62,7 @@ + 重置 - + + + 忽略 + - - + + + @@ -123,7 +133,7 @@ size="mini" type="text" icon="el-icon-edit" - @click="handleUpdateStatusIgnore(scope.row.id)"> + @click="handleUpdateStatusIgnore(scope.row)"> 忽略 @@ -185,6 +195,7 @@ import { listStatusSolve, updateStatusById } from '/src/api/breakdown/Log' +import { delBreakdown } from '../../../api/breakdown/breakdown' export default { dicts:['sys_car_fault_log_status'], @@ -287,15 +298,15 @@ export default { this.single = selection.length!==1 this.multiple = !selection.length }, - handleUpdateStatusIgnore(id){ - this.$modal.confirm('是否确认忽略编号为"'+id+'"的数据项?').then(function(){ - return updateStatusById(id); - }).then(()=>{ - this.getListProcess(); + handleUpdateStatusIgnore(row) { + const ids = row.id || this.ids; + this.$modal.confirm('是否确认忽略编号为"' + ids + '"的数据项?').then(function() { + return updateStatusById(ids); + }).then(() => { + this.getListIgnore(); this.$modal.msgSuccess("忽略成功"); - }).catch(()=>{}); - - } + }).catch(() => {}); + }, }, created() { this.getList(); @@ -303,14 +314,7 @@ export default { this.getListProcess() this.getListSolve() }, - mounted() {}, - beforeCreate() {}, - beforeMount() {}, - beforeUpdate() {}, - updated() {}, - beforeDestroy() {}, - destroyed() {}, - activated() {} + };