干扰源接入,终端检测,台账管理bug修复

This commit is contained in:
sjl
2025-12-15 16:19:33 +08:00
parent 6918611d06
commit 67efef738a
6 changed files with 40 additions and 27 deletions

View File

@@ -210,6 +210,7 @@ import { addMointorPointFormData, getList, updateMointorPointFormData } from '@/
import { queryByAllCode } from '@/api/system-boot/dictTree'
import { getUserReportById } from '@/api/supervision-boot/userReport/form'
import { getDictTreeById } from '@/api/system-boot/dictTree'
import { use } from 'vxe-table'
const emits = defineEmits(['onSubmit'])
const dictData = useDictData()
const dialogFormVisible = ref(false)
@@ -442,7 +443,8 @@ const resetForm = async () => {
userId: userNameList.value[0]?.id,
objName: userNameList.value[0]?.projectName
}
changeUserName()
changeUserName()
}
})
if (title.value != '编辑') {
@@ -523,7 +525,7 @@ const getTreeList = () => {
children: item?.children
})
})
console.log('treeData', treeData.value)
form.value.loadType = loadTypeList.value[0]?.id
changeLoadType()
})
@@ -535,21 +537,20 @@ getTreeList()
//选择干扰源类型的时候,干扰源类别数据跟随改变
const changeLoadType = async () => {
console.log('123',loadTypeList.value)
console.log('456',form.value.loadType)
businessTypeList.value = loadTypeList.value.find(item => {
return item.id == form.value.loadType
})?.children
console.log('-====',businessTypeList.value)
form.value.businessType = businessTypeList.value[0]?.id
}
//选择关联干扰源回显数据
const changeUserName = () => {
let obj: any = projectList.value.find((item: any) => {
return form.value.userName == item.id
})
console.log('changeUserName', obj)
form.value = {
...form.value,
city: obj?.city,
@@ -605,12 +606,12 @@ const changeUserName = () => {
}
}
const getDictTree = (e?: string) => {
console.log('e', e)
if (e) {
getDictTreeById(e).then(res => {
form.value.loadType = res.data.pids.split(',')[1] || ''
form.value.businessType = res.data.pids.split(',')[2] || ''
console.log('res', form.value.loadType )
changeLoadType()
})
} else {
@@ -838,9 +839,6 @@ const resendId = ref('')
const rowValue: any = ref({})
const open = async (row: any) => {
resetForm()
dialogFormVisible.value = true
@@ -854,8 +852,7 @@ const open = async (row: any) => {
await getTempLineDetailsById({ id: row.row.id }).then(res => {
form.value = res.data
form.value.loadType = loadTypeList.value.filter((item: any) => item.name == res.data.loadType)[0]?.id
console.log('res.data',form.value.loadType)
console.log('res.businessTypeList.value',businessTypeList.value)
form.value.businessType = businessTypeList.value.filter(
(item: any) => item.name == res.data.businessType
)[0]?.id

View File

@@ -346,7 +346,7 @@ const summonFlagList = [
},
{
id: '1',
name: '变触发'
name: '变触发'
}
]
//定义终端模型下拉框数据