修改冀北现场问题

This commit is contained in:
guanj
2025-12-29 19:44:17 +08:00
parent 83e57c92b4
commit 26ff8087c6
24 changed files with 3332 additions and 2741 deletions

View File

@@ -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>