| | |
| | | <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 /> |
| | |
| | | }; |
| | | // 删除 |
| | | const onDelete = (id: number) => { |
| | | let arr=[] |
| | | arr.push(id) |
| | | ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | }) |
| | | .then(() => { |
| | | goalManagementApi() |
| | | .getrewardPunishmentDelete(id) |
| | | .getrewardPunishmentDelete(arr) |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | ElMessage({ |
| | |
| | | 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; |
| | |
| | | // }); |
| | | }); |
| | | }; |
| | | 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, |