延续保护解锁区段不可修改
This commit is contained in:
parent
388690c181
commit
e80c0cd07f
@ -3,7 +3,7 @@
|
|||||||
<el-form ref="form" :model="addModel" :rules="rules" label-width="150px" size="mini" style="margin-top: 10px">
|
<el-form ref="form" :model="addModel" :rules="rules" label-width="150px" size="mini" style="margin-top: 10px">
|
||||||
<div class="definition">
|
<div class="definition">
|
||||||
<el-form-item label="延续保护解锁区段:" prop="unlockSectionCode">
|
<el-form-item label="延续保护解锁区段:" prop="unlockSectionCode">
|
||||||
<el-select v-model="addModel.unlockSectionCode" clearable>
|
<el-select v-model="addModel.unlockSectionCode" clearable :disabled="true">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in sectionList"
|
v-for="item in sectionList"
|
||||||
:key="item.code"
|
:key="item.code"
|
||||||
@ -11,10 +11,6 @@
|
|||||||
:value="item.code"
|
:value="item.code"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button
|
|
||||||
:type=" field === 'unlockSectionCode' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('unlockSectionCode')"
|
|
||||||
>{{ $t('map.activate') }}</el-button>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="延续保护解锁时间(s):" prop="unlockTime">
|
<el-form-item label="延续保护解锁时间(s):" prop="unlockTime">
|
||||||
<el-input-number v-model="addModel.unlockTime" :min="0" />
|
<el-input-number v-model="addModel.unlockTime" :min="0" />
|
||||||
@ -272,8 +268,6 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSwitchList'.toUpperCase()) {
|
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSwitchList'.toUpperCase()) {
|
||||||
this.overlapCode = selected.code;
|
this.overlapCode = selected.code;
|
||||||
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'unlockSectionCode'.toUpperCase()) {
|
|
||||||
this.addModel.unlockSectionCode = selected.code;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -350,9 +350,7 @@ export default {
|
|||||||
this.changeSectionSelected(objOld, false, 'routePhysicalSection');
|
this.changeSectionSelected(objOld, false, 'routePhysicalSection');
|
||||||
}
|
}
|
||||||
if (obj && obj.length) {
|
if (obj && obj.length) {
|
||||||
if (!this.addModel.code) {
|
this.$refs.protect.addModel.unlockSectionCode = obj[obj.length - 1];
|
||||||
this.$refs.protect.addModel.unlockSectionCode = obj[obj.length - 1];
|
|
||||||
}
|
|
||||||
this.changeSectionSelected(obj, true, 'routePhysicalSection');
|
this.changeSectionSelected(obj, true, 'routePhysicalSection');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user