From d8215ff56e7bf39b43c52d7f27de5e7e427e67cf Mon Sep 17 00:00:00 2001 From: zhaojiale <631455805@qq.com> Date: 星期三, 10 八月 2022 10:55:23 +0800 Subject: [PATCH] 事故管理修改 --- src/views/goalManagement/targetDecompositionMonth/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/goalManagement/targetDecompositionMonth/index.vue b/src/views/goalManagement/targetDecompositionMonth/index.vue index 579df10..09e743f 100644 --- a/src/views/goalManagement/targetDecompositionMonth/index.vue +++ b/src/views/goalManagement/targetDecompositionMonth/index.vue @@ -66,13 +66,13 @@ v-model:page-size="pageSize4" :page-sizes="[10, 20, 30, 40]" layout="total, sizes, prev, pager, next, jumper" - :total="400" + :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" /> </div> </div> - <Dailog ref="Show"></Dailog> + <Dailog ref="Show" @addList="add"></Dailog> </div> </template> <script lang="ts"> @@ -142,6 +142,8 @@ }; // 删除 const onDelete = (id: number) => { + let arr=[] + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -149,7 +151,7 @@ }) .then(() => { goalManagementApi() - .getTargetMngDelete(id) + .getTargetMngDelete(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -179,7 +181,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; @@ -219,7 +221,11 @@ }); }); }; + const add=()=>{ + listApi() + } return { + add, listApi, resetForm, tableData, -- Gitblit v1.9.2