修改 冀北现场问题
This commit is contained in:
@@ -140,12 +140,12 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" v-if="form.customSubstationFlag == 0" label="所属变电站:" prop="substation">
|
||||
<el-form-item for="-" v-if="form.customSubstationFlag == 0" label="并网变电站:" prop="substation">
|
||||
<el-select
|
||||
v-model="form.substation"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
placeholder="请选择所属变电站"
|
||||
placeholder="请选择并网变电站"
|
||||
filterable
|
||||
@change="changeSubstation"
|
||||
>
|
||||
@@ -157,8 +157,8 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" v-if="form.customSubstationFlag == 1" label="所属变电站:" prop="substationName">
|
||||
<el-input v-model="form.substationName" autocomplete="off" placeholder="请输入所属变电站" />
|
||||
<el-form-item for="-" v-if="form.customSubstationFlag == 1" label="并网变电站:" prop="substationName">
|
||||
<el-input v-model="form.substationName" autocomplete="off" placeholder="请输入并网变电站" />
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="变电站电压等级:" prop="substationVoltageLevel">
|
||||
<el-select
|
||||
@@ -773,7 +773,7 @@ const getFrontEndMachineList = () => {
|
||||
})
|
||||
}
|
||||
const changeSubstationFlag = () => {
|
||||
//处理所属变电站手都输入/下拉数据
|
||||
//处理并网变电站手都输入/下拉数据
|
||||
if (form.value.customSubstationFlag == 0) {
|
||||
form.value.substationName = substationList.value.find((item: any) => {
|
||||
return form.value.substation == item.id
|
||||
@@ -803,6 +803,8 @@ getFrontEndMachineList()
|
||||
const powerCompanyList: any = ref([])
|
||||
//获取所属供电公司,区域列表第三层数据
|
||||
const getPowerCompanyList = async (flag: any) => {
|
||||
|
||||
|
||||
getAllDeptList().then(res => {
|
||||
powerCompanyList.value = res.data[0].children[0].children
|
||||
if (flag) {
|
||||
@@ -829,7 +831,8 @@ const getPowerCompanyList = async (flag: any) => {
|
||||
const findSubstationVoltageLevel = async () => {
|
||||
getSubstationVoltageLevel({ orgIds: [form.value.powerCompany] }).then(res => {
|
||||
substationList.value = res.data
|
||||
|
||||
form.value.latitude = substationList.value[0]?.lat
|
||||
form.value.longitude = substationList.value[0]?.lng
|
||||
form.value.substation = substationList.value[0]?.id
|
||||
form.value.substationVoltageLevel = substationList.value[0]?.voltageLevel
|
||||
})
|
||||
@@ -883,7 +886,7 @@ const resetForm: any = async () => {
|
||||
nextTerminalInspectionTime: new Date().getTime() + 365 * 5 * 24 * 3600 * 1000, // 下次终端定检时间
|
||||
powerCompany: powerCompanyList[0]?.value.id, //所属供电公司
|
||||
simCardNumber: '', //SIM卡号
|
||||
substation: '', // 所属变电站
|
||||
substation: '', // 并网变电站
|
||||
substationVoltageLevel: voltageLevelList[0].id, // 变电站电压等级
|
||||
summonFlag: summonFlagList[0].id, // 召唤标志
|
||||
terminalIp: '', //终端IP
|
||||
@@ -922,7 +925,7 @@ const devReportForm: any = ref({
|
||||
//终端信息实体
|
||||
supervisionTempDeviceReportParam: {
|
||||
customSubstationFlag: 0, //电站类型
|
||||
substationName: '', //所属变电站名称
|
||||
substationName: '', //并网变电站名称
|
||||
alarmFunction: '0', //告警功能
|
||||
commissioningTime: '', //投运时间
|
||||
communicationStatus: communicationStatusList[0].id, // 通讯状态
|
||||
@@ -945,7 +948,7 @@ const devReportForm: any = ref({
|
||||
nextTerminalInspectionTime: '', // 下次终端定检时间
|
||||
powerCompany: powerCompanyList.value[0]?.id, //所属供电公司
|
||||
simCardNumber: '', //SIM卡号
|
||||
substation: '', // 所属变电站
|
||||
substation: '', // 并网变电站
|
||||
substationVoltageLevel: voltageLevelList[0].id, // 变电站电压等级
|
||||
summonFlag: summonFlagList[0].id, // 召唤标志
|
||||
terminalIp: '', //终端IP
|
||||
@@ -1033,14 +1036,14 @@ const rules = ref({
|
||||
substation: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择所属变电站',
|
||||
message: '请选择并网变电站',
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
substationName: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入所属变电站',
|
||||
message: '请输入并网变电站',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<el-descriptions-item label="所属供电公司">
|
||||
{{ detailData.supervisionTempDeviceReport?.powerCompany }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="所属变电站">
|
||||
<el-descriptions-item label="并网变电站">
|
||||
{{ detailData.supervisionTempDeviceReport?.substationName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="变电站电压等级">
|
||||
|
||||
Reference in New Issue
Block a user