Changes
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -170,6 +170,17 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="所属电站:">
|
||||
<el-select v-model="form.stationId" filterable placeholder="请选择所属电站">
|
||||
<el-option
|
||||
v-for="(item, index) in stationList"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
:key="index"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item for="-" label="预测评估单位:">
|
||||
<el-select v-model="form.evaluationDept" allow-create filterable placeholder="请选择预测评估单位">
|
||||
<el-option
|
||||
@@ -397,6 +408,7 @@ import {
|
||||
resend,
|
||||
getByDeptDevLine
|
||||
} from '@/api/supervision-boot/interfere/index'
|
||||
import {getSubstationSelect} from '@/api/device-boot/line'
|
||||
import { getUserReportUpdateById } from '@/api/supervision-boot/userReport/form'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
@@ -445,6 +457,7 @@ const areaOptionList = dictData
|
||||
// const energyQualityIndexList = dictData.getBasicData('Indicator_Type')
|
||||
const energyQualityIndexList = dictData.getBasicData('Problem_Indicators')
|
||||
const devIdList: any = ref([])
|
||||
const stationList: any = ref([])
|
||||
const lineIdList: any = ref([])
|
||||
//字典获取行业类型
|
||||
const industryList = dictData.getBasicData('industry_type_jb')
|
||||
@@ -538,6 +551,7 @@ const resetForm = () => {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user