From 695f8044e3b294ed12d400e67e3312f690244f02 Mon Sep 17 00:00:00 2001 From: zhaojiale <631455805@qq.com> Date: 星期五, 12 八月 2022 09:41:44 +0800 Subject: [PATCH] 安全目标考核 --- src/views/goalManagement/targetDecompositionYear/index.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/goalManagement/targetDecompositionYear/index.vue b/src/views/goalManagement/targetDecompositionYear/index.vue index 9d282fb..bbac767 100644 --- a/src/views/goalManagement/targetDecompositionYear/index.vue +++ b/src/views/goalManagement/targetDecompositionYear/index.vue @@ -23,8 +23,8 @@ <div class="minCenter"> <div class="btns"> <div> - <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button> - <el-button size="default" type="warning" :disabled="warning" :icon="EditPen" plain>修改</el-button> + <!--<el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button>--> + <!-- <el-button size="default" type="warning" :disabled="warning" :icon="EditPen" plain>修改</el-button> --> <el-button size="default" type="danger" :disabled="danger" :icon="Delete" plain @click="onDeleteAll">删除</el-button> </div> </div> @@ -103,6 +103,7 @@ const resetForm = () => { ruleForm.searchParams.qName = ''; ruleForm.searchParams.indexNum = ''; + listApi() }; const listApi = () => { goalManagementApi() @@ -140,6 +141,8 @@ }; // 删除 const onDelete = (id: number) => { + let arr=[] + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -147,7 +150,7 @@ }) .then(() => { goalManagementApi() - .getTargetMngDelete(id) + .getTargetMngDelete(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -177,7 +180,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