From 375b6acbd3a8f9cf51f967b09ecd09eccd1a12f3 Mon Sep 17 00:00:00 2001 From: zhaojiale <631455805@qq.com> Date: 星期四, 18 八月 2022 17:53:29 +0800 Subject: [PATCH] 统计 事故统计 --- src/views/goalManagement/Incentivestandard/index.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/goalManagement/Incentivestandard/index.vue b/src/views/goalManagement/Incentivestandard/index.vue index 0629074..c0aadc8 100644 --- a/src/views/goalManagement/Incentivestandard/index.vue +++ b/src/views/goalManagement/Incentivestandard/index.vue @@ -27,7 +27,8 @@ <div class="btns"> <div> <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')" >新建</el-button> - <el-button size="default" type="warning" :disabled="warning" plain :icon="EditPen" @click="openD">修改 </el-button> + <el-button size="default" type="warning" :disabled="warning" plain :icon="EditPen" + @click="openD('修改', deletAll[0])">修改 </el-button> <el-button size="default" type="danger" :disabled="danger" :icon="Delete" plain @click="handleSelectionChange">删除</el-button> </div> <div> @@ -144,6 +145,8 @@ }; // 删除 const onDelete = (id: number) => { + let arr=[] + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -151,7 +154,7 @@ }) .then(() => { goalManagementApi() - .getrewardPunishmentStandardDelete(id) + .getrewardPunishmentStandardDelete(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -181,7 +184,7 @@ for (let i = 0; i < valId.length; i++) { arr.push(valId[i].id); } - deletAll.value = arr.toString(); + deletAll.value = arr; if (val.length == 1) { warning.value = false; danger.value = false; -- Gitblit v1.9.2