修改冀北现场问题
This commit is contained in:
@@ -102,7 +102,8 @@ import { ElMessage, ElMessageBox, ElDatePicker } from 'element-plus'
|
||||
import { cableList, batchDel } from '@/api/advance-boot/assess'
|
||||
import { useRouter } from 'vue-router'
|
||||
import Form from './form.vue'
|
||||
|
||||
import { selectUserList, bindAssessmentId } from '@/api/device-boot/Business'
|
||||
import { forEach } from 'min-dash'
|
||||
defineOptions({
|
||||
name: 'runManage/addUser'
|
||||
})
|
||||
@@ -223,11 +224,10 @@ const tableStore: any = new TableStore({
|
||||
}
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
tableStore.table.params.deptId = tableStore.table.params.deptIndex
|
||||
|
||||
tableStore.table.params.deptId = tableStore.table.params.deptIndex
|
||||
},
|
||||
|
||||
loadCallback: () => { }
|
||||
loadCallback: () => {}
|
||||
})
|
||||
tableStore.table.params.assessName = ''
|
||||
tableStore.table.params.deptId = ''
|
||||
@@ -242,9 +242,9 @@ const route = useRoute()
|
||||
// 监听路由变化
|
||||
watch(
|
||||
() => route.query,
|
||||
(newQuery) => {
|
||||
newQuery => {
|
||||
tableStore.index()
|
||||
},
|
||||
}
|
||||
// { immediate: true }
|
||||
)
|
||||
|
||||
@@ -272,11 +272,19 @@ const del = () => {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
batchDel(tableStore.table.selection.map(item => item.assessId)).then(res => {
|
||||
let ids = tableStore.table.selection.map(item => item.assessId)
|
||||
batchDel(ids).then(res => {
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: '删除成功!'
|
||||
})
|
||||
ids.forEach(item => {
|
||||
bindAssessmentId({
|
||||
userReportId: item,
|
||||
assessMentId: null
|
||||
})
|
||||
})
|
||||
|
||||
tableStore.index()
|
||||
})
|
||||
})
|
||||
@@ -286,7 +294,4 @@ onMounted(() => {
|
||||
tableStore.index()
|
||||
Info()
|
||||
})
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user