From c51bba5340a2545b6b7ae826d329cd81757c9ca0 Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Wed, 9 Apr 2025 13:23:40 +0800 Subject: [PATCH] Changes --- src/api/device-boot/line.ts | 9 +++++++++ .../userLedger/components/addForm.vue | 20 +++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/src/api/device-boot/line.ts b/src/api/device-boot/line.ts index 0ae129a9..daf0b3e8 100644 --- a/src/api/device-boot/line.ts +++ b/src/api/device-boot/line.ts @@ -25,3 +25,12 @@ export const getLineDetailData = (id: string) => { method: 'POST' }) } + + +export const getSubstationSelect = (id: string) => { + return request({ + url: 'device-boot/substation/getSubstationSelect', + method: 'get' + }) +} + diff --git a/src/views/pqs/business/terminal/userLedger/components/addForm.vue b/src/views/pqs/business/terminal/userLedger/components/addForm.vue index 73f0081d..ae22987d 100644 --- a/src/views/pqs/business/terminal/userLedger/components/addForm.vue +++ b/src/views/pqs/business/terminal/userLedger/components/addForm.vue @@ -170,6 +170,17 @@ /> + + + + + + { longitude: 0, //经度 latitude: 0, //维度 substation: '', //变电站 1 + stationId:'', voltageLevel: voltageLevelList[0].id, //电压等级 1 evaluationDept: evaluationDeptList[0].name, //预测评估单位 1 evaluationConclusion: '', //预测评估结论 1 @@ -888,6 +902,10 @@ const open = async (row: any) => { resendId.value = '' form.value.userType = userTypeList.value[0].value } + await getSubstationSelect().then(res => { + stationList.value = res.data + }) + setTimeout(() => { getByDeptDevLine({ id: deptIds }).then(res => { devIdList.value = res.data @@ -896,6 +914,8 @@ const open = async (row: any) => { }, 10) } + + async function handleResponse(data: any) { // userType logic is commented out; if needed, implement accordingly if (data.userReportProjectPO) {