终端信息customSubstationFlag字段修改
This commit is contained in:
@@ -118,9 +118,9 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
<el-form-item for="-" label="系统电站:" prop="customSubstaionFlag">
|
<el-form-item for="-" label="系统电站:" prop="customSubstationFlag">
|
||||||
<!-- 默认值 开启 -->
|
<!-- 默认值 开启 -->
|
||||||
<el-radio-group v-model="form.customSubstaionFlag" @change="changeSubstationFlag">
|
<el-radio-group v-model="form.customSubstationFlag" @change="changeSubstationFlag">
|
||||||
<el-radio :value="0">是</el-radio>
|
<el-radio :value="0">是</el-radio>
|
||||||
<el-radio :value="1">否</el-radio>
|
<el-radio :value="1">否</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" v-if="form.customSubstaionFlag == 0" label="所属变电站:" prop="substation">
|
<el-form-item for="-" v-if="form.customSubstationFlag == 0" label="所属变电站:" prop="substation">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.substation"
|
v-model="form.substation"
|
||||||
clearable
|
clearable
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" v-if="form.customSubstaionFlag == 1" label="所属变电站:" prop="substationName">
|
<el-form-item for="-" v-if="form.customSubstationFlag == 1" label="所属变电站:" prop="substationName">
|
||||||
<el-input v-model="form.substationName" autocomplete="off" placeholder="请输入所属变电站" />
|
<el-input v-model="form.substationName" autocomplete="off" placeholder="请输入所属变电站" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" label="变电站电压等级:" prop="substationVoltageLevel">
|
<el-form-item for="-" label="变电站电压等级:" prop="substationVoltageLevel">
|
||||||
@@ -758,7 +758,7 @@ const getFrontEndMachineList = () => {
|
|||||||
}
|
}
|
||||||
const changeSubstationFlag = () => {
|
const changeSubstationFlag = () => {
|
||||||
//处理所属变电站手都输入/下拉数据
|
//处理所属变电站手都输入/下拉数据
|
||||||
if (form.value.customSubstaionFlag == 0) {
|
if (form.value.customSubstationFlag == 0) {
|
||||||
form.value.substationName = substationList.value.find((item: any) => {
|
form.value.substationName = substationList.value.find((item: any) => {
|
||||||
return form.value.substation == item.id
|
return form.value.substation == item.id
|
||||||
})?.name
|
})?.name
|
||||||
@@ -818,7 +818,7 @@ const resetForm: any = async () => {
|
|||||||
userStatus: userStateList[1].id, //用户状态
|
userStatus: userStateList[1].id, //用户状态
|
||||||
userName: '', //用户名称
|
userName: '', //用户名称
|
||||||
userId: '',
|
userId: '',
|
||||||
customSubstaionFlag: 0, //电站类型
|
customSubstationFlag: 0, //电站类型
|
||||||
acceptanceInspectionReport: [], //验收检验报告
|
acceptanceInspectionReport: [], //验收检验报告
|
||||||
// acceptanceInspectionReportSingle: [], //验收检验报告单
|
// acceptanceInspectionReportSingle: [], //验收检验报告单
|
||||||
deviceFilePath: [], //终端台账信息
|
deviceFilePath: [], //终端台账信息
|
||||||
@@ -887,7 +887,7 @@ const devReportForm: any = ref({
|
|||||||
typeExperimentReport: [], //型式实验报告
|
typeExperimentReport: [], //型式实验报告
|
||||||
//终端信息实体
|
//终端信息实体
|
||||||
supervisionTempDeviceReportParam: {
|
supervisionTempDeviceReportParam: {
|
||||||
customSubstaionFlag: 0, //电站类型
|
customSubstationFlag: 0, //电站类型
|
||||||
substationName: '', //所属变电站名称
|
substationName: '', //所属变电站名称
|
||||||
alarmFunction: '0', //告警功能
|
alarmFunction: '0', //告警功能
|
||||||
commissioningTime: '', //投运时间
|
commissioningTime: '', //投运时间
|
||||||
@@ -977,7 +977,7 @@ const rules = ref({
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
//终端信息
|
//终端信息
|
||||||
customSubstaionFlag: [
|
customSubstationFlag: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: '请选择电站类型',
|
message: '请选择电站类型',
|
||||||
@@ -1378,7 +1378,7 @@ const open = async (row: any) => {
|
|||||||
if (row.row) {
|
if (row.row) {
|
||||||
resendId.value = row.row.id
|
resendId.value = row.row.id
|
||||||
await getTerminalDetailsById({ id: row.row.id }).then((res: any) => {
|
await getTerminalDetailsById({ id: row.row.id }).then((res: any) => {
|
||||||
form.value = { customSubstaionFlag: 0, ...res.data, ...res.data.supervisionTempDeviceReport }
|
form.value = { customSubstationFlag: 0, ...res.data, ...res.data.supervisionTempDeviceReport }
|
||||||
let list = [
|
let list = [
|
||||||
'deviceFilePath',
|
'deviceFilePath',
|
||||||
// 'acceptanceInspectionReportSingle',
|
// 'acceptanceInspectionReportSingle',
|
||||||
|
|||||||
Reference in New Issue
Block a user