| | |
| | | <el-table-column align="center" prop="examineDate" label="考核时间" /> |
| | | <el-table-column align="center" label="操作"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="daiAdd('修改', scope.row)">查看</el-button> |
| | | <el-button link type="primary" @click="daiAdd('查看', scope.row)">查看</el-button> |
| | | <el-button link type="primary" @click="daiAdd('修改', scope.row)">修改</el-button> |
| | | <el-button link type="primary" @click="Delete(scope.row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | delete formUp.examineList[i].makerDepartmentName |
| | | } |
| | | formUp.id = form.value.id |
| | | formUp.delIds = '' |
| | | formUp.delIds = arr.value.toString(); |
| | | goalManagementApi() |
| | | .gettargetExamineAddOrUpdate(formUp) |
| | | .then((res) => { |
| | |
| | | formUp.targetId = ''; |
| | | formUp.delTargetDivideDetails = ''; |
| | | formUp.examineList = []; |
| | | }; |
| | | const arr = ref([]); |
| | | // 删除 |
| | | const Delete = (data: any) => { |
| | | formUp.examineList.splice(form.value.examineList.indexOf(data), 1); |
| | | arr.value.push(data.id); |
| | | }; |
| | | const onNumber = (e: object) => { |
| | | form.value = e; |
| | |
| | | formUp, |
| | | add, |
| | | closeDialog, |
| | | submitForm |
| | | submitForm, |
| | | Delete |
| | | }; |
| | | }, |
| | | }); |