终端入网检测选择所属供电公司数据接口更换
This commit is contained in:
@@ -822,7 +822,7 @@ import { queryByAllCode } from '@/api/system-boot/dictTree'
|
||||
import { useAdminInfo } from '@/stores/adminInfo'
|
||||
import { uploadFile } from '@/api/system-boot/file'
|
||||
import { addTerminalFormData, getSubstationVoltageLevel } from '@/api/supervision-boot/terminal/index'
|
||||
import { getAreaList } from '@/api/common'
|
||||
import { getAllDeptList } from '@/api/common'
|
||||
const emits = defineEmits(['onSubmit'])
|
||||
const dictData = useDictData()
|
||||
const dialogFormVisible = ref(false)
|
||||
@@ -931,7 +931,7 @@ const adminInfo = useAdminInfo()
|
||||
const powerCompanyList = ref([])
|
||||
//获取所属供电公司,区域列表第三层数据
|
||||
const getPowerCompanyList = async () => {
|
||||
getAreaList().then(res => {
|
||||
getAllDeptList().then(res => {
|
||||
powerCompanyList.value = res.data[0].children[0].children
|
||||
form.value.powerCompany = powerCompanyList.value[0]?.id
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user