From 2cc7a0f4af5923103dff8c87fb885bb552246dfd Mon Sep 17 00:00:00 2001
From: zhaojiale <631455805@qq.com>
Date: Thu, 11 Aug 2022 19:05:04 +0800
Subject: [PATCH] 安全目标考核
---
src/views/goalManagement/targetDecompositionMonth/index.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/goalManagement/targetDecompositionMonth/index.vue b/src/views/goalManagement/targetDecompositionMonth/index.vue
index 579df10..7787490 100644
--- a/src/views/goalManagement/targetDecompositionMonth/index.vue
+++ b/src/views/goalManagement/targetDecompositionMonth/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>
@@ -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">
@@ -105,6 +105,7 @@
const resetForm = () => {
ruleForm.searchParams.qName = '';
ruleForm.searchParams.indexNum = '';
+ listApi()
};
const listApi = () => {
goalManagementApi()
@@ -142,6 +143,8 @@
};
// 删除
const onDelete = (id: number) => {
+ let arr=[]
+ arr.push(id)
ElMessageBox.confirm('确定删除所选项吗?', 'Warning', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@@ -149,7 +152,7 @@
})
.then(() => {
goalManagementApi()
- .getTargetMngDelete(id)
+ .getTargetMngDelete(arr)
.then((res) => {
if (res.data.code == 200) {
ElMessage({
@@ -179,7 +182,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 +222,11 @@
});
});
};
+ const add=()=>{
+ listApi()
+ }
return {
+ add,
listApi,
resetForm,
tableData,
--
Gitblit v1.9.2