调整地图绘制区段显隐关系

This commit is contained in:
zyy 2020-04-22 18:02:43 +08:00
parent b898042b96
commit 415d762294
7 changed files with 1537 additions and 1516 deletions

View File

@ -291,7 +291,7 @@ export default {
self.prepareExportData().then(data => { self.prepareExportData().then(data => {
excel.export_json_to_excel(tHeader, data, self.queryForm.exportConfig.filename); excel.export_json_to_excel(tHeader, data, self.queryForm.exportConfig.filename);
self.enableQuery(); self.enableQuery();
}).catch(error => { }).catch((error) => {
self.enableQuery(); self.enableQuery();
self.$message.error(`${this.$t('error.exportFailed')}: ${error.message}`); self.$message.error(`${this.$t('error.exportFailed')}: ${error.message}`);
}); });
@ -417,7 +417,7 @@ export default {
const resultData = response.data; const resultData = response.data;
this.$set(this.queryList, 'data', resultData.list); this.$set(this.queryList, 'data', resultData.list);
this.$set(this.queryList, 'total', resultData.total); this.$set(this.queryList, 'total', resultData.total);
}).catch(error => { }).catch((error) => {
self.enableQuery(); self.enableQuery();
this.$message.error(`${this.$t('error.getListFailed')}${error.message}`); this.$message.error(`${this.$t('error.getListFailed')}${error.message}`);
}); });

View File

@ -1,6 +1,15 @@
<template> <template>
<el-dialog class="beijing-01__systerm alxe-effective" :title="title" :visible.sync="show" width="420px" <el-dialog
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag> v-dialogDrag
class="beijing-01__systerm alxe-effective"
:title="title"
:visible.sync="show"
width="420px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<div style="padding: 10px 20px;border: 1px solid lightgray;"> <div style="padding: 10px 20px;border: 1px solid lightgray;">
<span class="base-label">准备</span> <span class="base-label">准备</span>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
@ -10,13 +19,13 @@
</el-row> </el-row>
<el-row type="flex" justify="left"> <el-row type="flex" justify="left">
<el-col :span="9"> <el-col :span="9">
<el-input :type="type" v-model="model.stationName" size="mini" :disabled="true"></el-input> <el-input v-model="model.stationName" :type="type" size="mini" :disabled="true" />
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-input :type="type" v-model="model.sectionName" size="mini" :disabled="true"></el-input> <el-input v-model="model.sectionName" :type="type" size="mini" :disabled="true" />
</el-col> </el-col>
<el-col :span="4" :offset="1"> <el-col :span="4" :offset="1">
<el-button :id="domIdConfirm1" size="mini" @click="commitOnce" :disabled="type==='password'">确认 <el-button :id="domIdConfirm1" size="mini" :disabled="type==='password'" @click="commitOnce">确认
</el-button> </el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -31,24 +40,47 @@
</el-row> </el-row>
<el-row type="flex" justify="left"> <el-row type="flex" justify="left">
<el-col :span="9"> <el-col :span="9">
<el-select :id="domIdChoose1" v-model="model.confirmStationName" filterable size="mini" <el-select
@change="stationSelectChange" :disabled="type==='text'"> :id="domIdChoose1"
<el-option v-for="(option,index) in filterStationList" :key="index" :label="option.name" v-model="model.confirmStationName"
:value="option.name"> filterable
</el-option> size="mini"
:disabled="type==='text'"
@change="stationSelectChange"
>
<el-option
v-for="(option,index) in filterStationList"
:key="index"
:label="option.name"
:value="option.name"
/>
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-select :id="domIdChoose2" v-model="model.confirmSectionName" filterable size="mini" <el-select
@change="sectionSelectChange" :disabled="type==='text'"> :id="domIdChoose2"
<el-option v-for="(option,index) in randomSectionList" :key="index" :label="option.name" v-model="model.confirmSectionName"
:value="option.name"> filterable
</el-option> size="mini"
:disabled="type==='text'"
@change="sectionSelectChange"
>
<el-option
v-for="(option,index) in randomSectionList"
:key="index"
:label="option.name"
:value="option.name"
/>
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="4" :offset="1"> <el-col :span="4" :offset="1">
<el-button :id="domIdConfirm2" size="mini" :loading="loading" @click="commit" <el-button
:disabled="type==='text'">确认</el-button> :id="domIdConfirm2"
size="mini"
:loading="loading"
:disabled="type==='text'"
@click="commit"
>确认</el-button>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -56,7 +88,7 @@
<el-row type="flex" justify="left" style="margin-top:20px"> <el-row type="flex" justify="left" style="margin-top:20px">
<el-col :span="6" :offset="1"> 操作倒计时</el-col> <el-col :span="6" :offset="1"> 操作倒计时</el-col>
<el-col :span="16"> <el-col :span="16">
<el-input v-model="model.time" size="mini" :readonly="true"></el-input> <el-input v-model="model.time" size="mini" :readonly="true" />
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -64,8 +96,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :offset="1" :span="23"> <el-col :offset="1" :span="23">
<el-input type="textarea" :rows="2" placeholder="" v-model="model.status"> <el-input v-model="model.status" type="textarea" :rows="2" placeholder="" />
</el-input>
</el-col> </el-col>
</el-row> </el-row>
<el-row class="botton-group" style="margin-top:20px"> <el-row class="botton-group" style="margin-top:20px">
@ -73,19 +104,19 @@
<el-button :id="domIdCancel" @click="cancel">关闭</el-button> <el-button :id="domIdCancel" @click="cancel">关闭</el-button>
</el-col> </el-col>
</el-row> </el-row>
<notice-info ref="noticeInfo"></notice-info> <notice-info ref="noticeInfo" />
<popup-alarm ref="popupAlarm"></popup-alarm> <popup-alarm ref="popupAlarm" />
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { MapDeviceType, OperationEvent, getDomIdByOperation } from '@/scripts/ConstDic'; import { MapDeviceType, OperationEvent, getDomIdByOperation } from '@/scripts/ConstDic';
import { mouseCancelState } from '../utils/menuItemStatus'; import { mouseCancelState } from '../utils/menuItemStatus';
import NoticeInfo from './childDialog/childDialog/noticeInfo' import NoticeInfo from './childDialog/childDialog/noticeInfo';
import PopupAlarm from './childDialog/popupAlarm'; import PopupAlarm from './childDialog/popupAlarm';
export default { export default {
name: 'AlxeEffective', name: 'AlxeEffective',
components: { components: {
NoticeInfo, NoticeInfo,
@ -106,13 +137,13 @@
confirmStationName: '', confirmStationName: '',
confirmSectionName: '', confirmSectionName: '',
status: '', status: '',
time: 0, time: 0
}, },
selected: null, selected: null,
operate: null, operate: null,
operation: '', operation: '',
randomSectionList: [] randomSectionList: []
} };
}, },
computed: { computed: {
...mapGetters('map', [ ...mapGetters('map', [
@ -120,10 +151,10 @@
'sectionList' 'sectionList'
]), ]),
filterStationList() { filterStationList() {
let i = 0, list = []; const i = 0; const list = [];
if (this.stationList) { if (this.stationList) {
this.stationList.forEach(elem => { this.stationList.forEach(elem => {
if (list.findIndex(it => { return it.name == elem.name }) < 0) { if (list.findIndex(it => { return it.name == elem.name; }) < 0) {
list.push({ name: elem.name }); list.push({ name: elem.name });
} }
}); });
@ -134,40 +165,36 @@
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdConfirm1() { domIdConfirm1() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
return OperationEvent.Section.alxeEffective.confirm1.domId; return OperationEvent.Section.alxeEffective.confirm1.domId;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
return OperationEvent.Switch.alxeEffective.confirm1.domId; return OperationEvent.Switch.alxeEffective.confirm1.domId;
} }
} return '';
}, },
domIdConfirm2() { domIdConfirm2() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
return OperationEvent.Section.alxeEffective.confirm2.domId; return OperationEvent.Section.alxeEffective.confirm2.domId;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
return OperationEvent.Switch.alxeEffective.confirm2.domId; return OperationEvent.Switch.alxeEffective.confirm2.domId;
} }
} return '';
}, },
domIdChoose1() { domIdChoose1() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
return OperationEvent.Section.alxeEffective.choose1.domId; return OperationEvent.Section.alxeEffective.choose1.domId;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
return OperationEvent.Switch.alxeEffective.choose1.domId; return OperationEvent.Switch.alxeEffective.choose1.domId;
} }
} return '';
}, },
domIdChoose2() { domIdChoose2() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
return OperationEvent.Section.alxeEffective.choose2.domId; return OperationEvent.Section.alxeEffective.choose2.domId;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
return OperationEvent.Switch.alxeEffective.choose2.domId; return OperationEvent.Switch.alxeEffective.choose2.domId;
} }
} return '';
}, },
domIdCancel() { domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
@ -178,18 +205,19 @@
this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
return '确认计轴恢复工作'; return '确认计轴恢复工作';
} }
}, return '';
}
}, },
watch: { watch: {
'model.sectionName': function (name) { 'model.sectionName': function (name) {
let index = Math.floor(Math.random(1) * 5); const index = Math.floor(Math.random(1) * 5);
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
if (i == index) { if (i == index) {
this.randomSectionList.push({ name }); this.randomSectionList.push({ name });
} else { } else {
let section = this.sectionList[Math.floor(Math.random(1) * this.sectionList.length)]; const section = this.sectionList[Math.floor(Math.random(1) * this.sectionList.length)];
if (section.type != '02') { if (section.type != '02') {
if (this.randomSectionList.findIndex(it => { return it.name == section.name }) < 0) { if (this.randomSectionList.findIndex(it => { return it.name == section.name; }) < 0) {
this.randomSectionList.push({ name: section.name }); this.randomSectionList.push({ name: section.name });
} else { } else {
i--; i--;
@ -204,7 +232,7 @@
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.$store.dispatch('training/tipReload'); this.$store.dispatch('training/tipReload');
}) });
}, },
methods: { methods: {
stopTask() { stopTask() {
@ -233,12 +261,12 @@
if (selected) { if (selected) {
if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase()) { if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase()) {
if (selected.isSwitchSection) { if (selected.isSwitchSection) {
let section = this.$store.getters['map/getDeviceByCode'](selected.parentCode); const section = this.$store.getters['map/getDeviceByCode'](selected.parentCode);
if (section) { if (section) {
this.model.sectionName = section.name; this.model.sectionName = section.name;
} }
} else { } else {
let section = this.$store.getters['map/getDeviceByCode'](selected.parentCode); const section = this.$store.getters['map/getDeviceByCode'](selected.parentCode);
if (section) { if (section) {
this.model.sectionName = section.name; this.model.sectionName = section.name;
this.model.sectionName = `${section.name}-${selected.name}`; this.model.sectionName = `${section.name}-${selected.name}`;
@ -247,13 +275,13 @@
} }
} }
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase()) { } else if (selected._type.toUpperCase() === 'Switch'.toUpperCase()) {
let section = this.$store.getters['map/getDeviceByCode'](selected.switchSectionCode); const section = this.$store.getters['map/getDeviceByCode'](selected.switchSectionCode);
if (section) { if (section) {
this.model.sectionName = section.name; this.model.sectionName = section.name;
} }
} }
let station = this.$store.getters['map/getDeviceByCode'](selected.stationCode); const station = this.$store.getters['map/getDeviceByCode'](selected.stationCode);
if (station) { if (station) {
this.model.stationName = station.name; this.model.stationName = station.name;
} }
@ -282,15 +310,15 @@
}, },
commitOnce() { commitOnce() {
this.stepNum = 1; this.stepNum = 1;
let operate = { const operate = {
type: this.operate.type, type: this.operate.type,
operation: '' operation: ''
} };
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Section.alxeEffective.confirm1.operation operate.operation = OperationEvent.Section.alxeEffective.confirm1.operation;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Switch.alxeEffective.confirm1.operation operate.operation = OperationEvent.Switch.alxeEffective.confirm1.operation;
} }
this.$store.dispatch('training/next', operate).then(({ valid }) => { this.$store.dispatch('training/next', operate).then(({ valid }) => {
@ -300,7 +328,7 @@
this.model.time = this.timenum; this.model.time = this.timenum;
this.task = setInterval(this.waitSelectEvent, this.timeout); this.task = setInterval(this.waitSelectEvent, this.timeout);
} }
}) });
}, },
stationSelectChange(val) { stationSelectChange(val) {
if (this.model.confirmStationName === this.model.stationName) { if (this.model.confirmStationName === this.model.stationName) {
@ -309,21 +337,21 @@
this.model.time = 0; this.model.time = 0;
} }
let operate = { const operate = {
type: this.operate.type, type: this.operate.type,
operation: '', operation: '',
val: val val: val
} };
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Section.alxeEffective.choose1.operation operate.operation = OperationEvent.Section.alxeEffective.choose1.operation;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Switch.alxeEffective.choose1.operation operate.operation = OperationEvent.Switch.alxeEffective.choose1.operation;
} }
this.$store.dispatch('training/next', operate).then(({ valid }) => { this.$store.dispatch('training/next', operate).then(({ valid }) => {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}) });
}, },
sectionSelectChange(val) { sectionSelectChange(val) {
if (this.model.confirmSectionName === this.model.sectionName) { if (this.model.confirmSectionName === this.model.sectionName) {
@ -332,35 +360,35 @@
this.model.time = 0; this.model.time = 0;
} }
let operate = { const operate = {
type: this.operate.type, type: this.operate.type,
operation: '', operation: '',
val: val val: val
} };
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Section.alxeEffective.choose2.operation operate.operation = OperationEvent.Section.alxeEffective.choose2.operation;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Switch.alxeEffective.choose2.operation operate.operation = OperationEvent.Switch.alxeEffective.choose2.operation;
} }
this.$store.dispatch('training/next', operate).then(({ valid }) => { this.$store.dispatch('training/next', operate).then(({ valid }) => {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}) });
}, },
/** 确认计轴恢复工作*/ /** 确认计轴恢复工作*/
commit() { commit() {
let operate = { const operate = {
send: true, send: true,
type: this.operate.type, type: this.operate.type,
operation: '', operation: '',
val: this.selected.code val: this.selected.code
} };
if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) { if (this.operation == OperationEvent.Section.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Section.alxeEffective.confirm2.operation operate.operation = OperationEvent.Section.alxeEffective.confirm2.operation;
} else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) { } else if (this.operation == OperationEvent.Switch.alxeEffective.menu.operation) {
operate.operation = OperationEvent.Switch.alxeEffective.confirm2.operation operate.operation = OperationEvent.Switch.alxeEffective.confirm2.operation;
} }
this.model.status = ''; this.model.status = '';
@ -378,9 +406,9 @@
this.$refs.popupAlarm.doShow(Object.assign(this.operate, { val: operate.val }), this.$refs.popupAlarm.doShow(Object.assign(this.operate, { val: operate.val }),
[`集中站 ${this.model.stationName} 区段 ${this.model.sectionName}报告恢复计轴有效`]); [`集中站 ${this.model.stationName} 区段 ${this.model.sectionName}报告恢复计轴有效`]);
} }
}).catch(error => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow(operate);
}) });
} else { } else {
if (this.model.stationName != this.model.confirmStationName) { if (this.model.stationName != this.model.confirmStationName) {
this.model.status = '车站选择错误'; this.model.status = '车站选择错误';
@ -391,21 +419,21 @@
} }
}, },
cancel() { cancel() {
let operate = { const operate = {
type: this.operate.type, type: this.operate.type,
operation: OperationEvent.Command.cancel.menu.operation, operation: OperationEvent.Command.cancel.menu.operation
} };
this.$store.dispatch('training/next', operate).then(({ valid }) => { this.$store.dispatch('training/next', operate).then(({ valid }) => {
if (valid) { if (valid) {
this.doClose(); this.doClose();
} }
}).catch(error => { }).catch(() => {
this.doClose(); this.doClose();
}); });
} }
} }
} };
</script> </script>
<style> <style>
.alxe-effective .context { .alxe-effective .context {

View File

@ -258,8 +258,6 @@ export default {
}; };
this.$refs.ConfirmTip.doShow(operate); this.$refs.ConfirmTip.doShow(operate);
} }
}).catch(error => {
console.log(error);
}); });
}, },
closeMessage() { closeMessage() {
@ -278,8 +276,6 @@ export default {
this.disabledConfirm2 = false; this.disabledConfirm2 = false;
this.timeCountConfirm = -1; // this.timeCountConfirm = -1; //
this.doClose(); this.doClose();
}).catch(error => {
console.log(error);
}); });
} }
} }

View File

@ -158,7 +158,7 @@ export default {
{ prop: 'points', label: this.$t('map.segmentCoordinates'), type: 'points', width: '100px', isHidden: !this.isPointsShow, pointDisabled: this.isStationCodeDisabled, addPoint: this.addPoint, delPoint: this.delPoint, lastDisabled: true }, { prop: 'points', label: this.$t('map.segmentCoordinates'), type: 'points', width: '100px', isHidden: !this.isPointsShow, pointDisabled: this.isStationCodeDisabled, addPoint: this.addPoint, delPoint: this.delPoint, lastDisabled: true },
{ prop: 'logicSectionStartOffset', label: this.$t('map.logicalSectionStartOffset'), type: 'number', min: 0, width: '150px', isHidden: !this.isStationCodeDisabled, disabled: true}, { prop: 'logicSectionStartOffset', label: this.$t('map.logicalSectionStartOffset'), type: 'number', min: 0, width: '150px', isHidden: !this.isStationCodeDisabled, disabled: true},
{ prop: 'logicSectionEndOffset', label: this.$t('map.logicalSectionEndOffset'), type: 'number', min: 0, width: '150px', isHidden: !this.isStationCodeDisabled, disabled: true}, { prop: 'logicSectionEndOffset', label: this.$t('map.logicalSectionEndOffset'), type: 'number', min: 0, width: '150px', isHidden: !this.isStationCodeDisabled, disabled: true},
{ prop: 'standTrack', label: this.$t('map.isStandTrack'), type: 'checkbox', isHidden: !this.isStandTrackShow }, // { prop: 'standTrack', label: this.$t('map.isStandTrack'), type: 'checkbox', isHidden: !this.isLogicSectionNameSort }, //
{ prop: 'standTrackName', label: this.$t('map.standTrackName'), type: 'input', isHidden: !this.isstandTrackNameShow }, { prop: 'standTrackName', label: this.$t('map.standTrackName'), type: 'input', isHidden: !this.isstandTrackNameShow },
{ prop: 'standTrackNamePosition', label: this.$t('map.standTrackNamePosition'), type: 'coordinate', width: '150px', isHidden: !this.isstandTrackNameShow, children: [ { prop: 'standTrackNamePosition', label: this.$t('map.standTrackNamePosition'), type: 'coordinate', width: '150px', isHidden: !this.isstandTrackNameShow, children: [
@ -205,8 +205,8 @@ export default {
item: [ item: [
{ prop: 'stationCode', label: this.$t('map.equipmentStation') + ':', type: 'select', mode: true, optionLabel: 'name&&code', optionValue: 'code', disabled: this.isStationCodeDisabled, options: this.centralizedStationList, isHidden: this.isStationCodeDisabled}, { prop: 'stationCode', label: this.$t('map.equipmentStation') + ':', type: 'select', mode: true, optionLabel: 'name&&code', optionValue: 'code', disabled: this.isStationCodeDisabled, options: this.centralizedStationList, isHidden: this.isStationCodeDisabled},
{ prop: 'lengthFact', label: this.$t('map.actualLength') + ':', type: 'number', min: 0, placeholder: this.$t('map.meter'), isHidden: !this.isSwitchSectionType }, { prop: 'lengthFact', label: this.$t('map.actualLength') + ':', type: 'number', min: 0, placeholder: this.$t('map.meter'), isHidden: !this.isSwitchSectionType },
{ prop: 'leftStopPointOffset', label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset }, { prop: 'leftStopPointOffset', label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset }, //
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset }, { prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset }, //
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow }, { prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow },
{ prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true, isHidden: !this.isSwitchSectionShow }, { prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true, isHidden: !this.isSwitchSectionShow },
{ prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') }, { prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') },
@ -324,9 +324,6 @@ export default {
isRelevanceSwitchShow() { isRelevanceSwitchShow() {
return this.editModel.type == '04' && this.editModel.type == '03'; return this.editModel.type == '04' && this.editModel.type == '03';
}, },
isStandTrackShow() {
return this.editModel.type != '04' && this.editModel.type != '03';
},
hasAssociatedSection() { hasAssociatedSection() {
return this.editModel.type == '01' || this.editModel.type == '03'; return this.editModel.type == '01' || this.editModel.type == '03';
}, },
@ -334,22 +331,22 @@ export default {
return this.editModel.type == '02' || this.editModel.type == '03'; return this.editModel.type == '02' || this.editModel.type == '03';
}, },
isstandTrackNameShow() { isstandTrackNameShow() {
return this.editModel.type !== '04' && this.editModel.standTrack; return this.editModel.type == '01' && this.editModel.standTrack;
}, },
isreentryTrackName() { isreentryTrackName() {
return this.editModel.type !== '04' && this.editModel.reentryTrack; return this.editModel.type == '01' && this.editModel.reentryTrack;
}, },
istransferTrackName() { istransferTrackName() {
return this.editModel.type !== '04' && this.editModel.transferTrack; return this.editModel.type != '02' && this.editModel.type != '03' && this.editModel.transferTrack;
}, },
isTransferTrackShow() { isTransferTrackShow() {
return this.editModel.type != '04' && this.editModel.type != '03' && !this.editModel.reentryTrack; return this.editModel.type != '02' && this.editModel.type != '03' && !this.editModel.reentryTrack;
}, },
isReentryTrackShow() { isReentryTrackShow() {
return this.editModel.type != '04' && this.editModel.type != '03' && !this.editModel.transferTrack; return this.editModel.type == '01' && !this.editModel.transferTrack;
}, },
isdestinationCode() { isdestinationCode() {
return this.editModel.type !== '04' && (this.editModel.reentryTrack || this.editModel.transferTrack); return this.editModel.type != '02' && this.editModel.type != '03' && (this.editModel.reentryTrack || this.editModel.transferTrack);
}, },
isStopPointOffset() { isStopPointOffset() {
return this.editModel.type !== '04' && (this.editModel.reentryTrack || this.editModel.standTrack || this.editModel.transferTrack); return this.editModel.type !== '04' && (this.editModel.reentryTrack || this.editModel.standTrack || this.editModel.transferTrack);