From 5711a973743510de330ce645201417b064d57718 Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期三, 03 八月 2022 17:17:57 +0800 Subject: [PATCH] 对接 --- src/views/goalManagement/IncentiveRecording/index.vue | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/goalManagement/IncentiveRecording/index.vue b/src/views/goalManagement/IncentiveRecording/index.vue index a2c6909..4d922b1 100644 --- a/src/views/goalManagement/IncentiveRecording/index.vue +++ b/src/views/goalManagement/IncentiveRecording/index.vue @@ -41,8 +41,8 @@ <el-table-column property="createTime" align="center" label="奖惩日期" sortable /> <el-table-column label="奖惩类型" align="center" sortable> <template #default="scope"> - <span v-if="scope.row.standardType==1">奖励</span> - <span v-if="scope.row.standardType==2">惩罚</span> + <span v-if="scope.row.standardType == 1">奖励</span> + <span v-if="scope.row.standardType == 2">惩罚</span> </template> </el-table-column> <el-table-column property="personId" align="center" label="被奖惩者" sortable /> @@ -143,6 +143,8 @@ }; // 删除 const onDelete = (id: number) => { + let arr=[] + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -150,7 +152,7 @@ }) .then(() => { goalManagementApi() - .getrewardPunishmentDelete(id) + .getrewardPunishmentDelete(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -180,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; @@ -220,14 +222,13 @@ // }); }); }; - const openUser=ref() - const openSearch=()=>{ - openUser.value.openDailog() - } - const userId=(val:any)=>{ - ruleForm.searchParams.personId=val.uid - - } + const openUser = ref(); + const openSearch = () => { + openUser.value.openDailog(); + }; + const userId = (val: any) => { + ruleForm.searchParams.personId = val.uid; + }; return { ruleForm, userId, -- Gitblit v1.9.2