Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
ca6a07eb08
@ -209,7 +209,6 @@ export default {
|
||||
try {
|
||||
let res;
|
||||
if (this.isDesignPlatform) {
|
||||
debugger;
|
||||
res = this.drawWay ? await loadDraftScriptNew(id, this.group) : await loadDraftScript(row.id, id, this.group);
|
||||
} else {
|
||||
res = await loadScriptNew(row.id, id, this.group);
|
||||
|
@ -191,6 +191,17 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
'$store.state.socket.createConversition':function(val) {
|
||||
const memberList = [];
|
||||
val.memberIds.forEach(id=>{
|
||||
if (val.creatorId == id) {
|
||||
memberList.push({memberId:id, connect:true});
|
||||
} else {
|
||||
memberList.push({memberId:id, connect:false});
|
||||
}
|
||||
});
|
||||
this.conversitionMemberList = memberList;
|
||||
},
|
||||
'$store.state.map.activeTrainListChange': function (val) { // 按计划行车的列车列表更新标识
|
||||
this.activeTrains = [];
|
||||
const activeTrainList = this.$store.state.map.activeTrainList;
|
||||
@ -323,7 +334,7 @@ export default {
|
||||
this.createLoading = true;
|
||||
startConversition(this.group, this.memberIdList).then(resp => {
|
||||
this.conversitionId = resp.data.id;
|
||||
this.conversitionMemberList = resp.data.memberList;
|
||||
// this.conversitionMemberList = resp.data.memberList;
|
||||
this.messageList = [];
|
||||
this.userString = '';
|
||||
this.isConversitionCreator = true;
|
||||
|
@ -13,67 +13,12 @@
|
||||
<el-button type="text" class="mapEdit_box" @click="showMap">{{ $t('map.viewLayer') }}</el-button>
|
||||
</div>
|
||||
<el-tabs v-model="enabledTab" type="card" class="map_card" :before-leave="tabBeforeLeave" @tab-click="changePane">
|
||||
<el-tab-pane :label="$t('map.routeID')" class="tab_pane_box" name="route" :lazy="lazy">
|
||||
<route-operate
|
||||
ref="routeOperate"
|
||||
:map-info="mapInfo"
|
||||
<el-tab-pane v-for="(each,index) in tabList" :key="index" :label="each.label" class="tab_pane_box" :name="each.name" :lazy="lazy">
|
||||
<component
|
||||
:is="each.menus"
|
||||
:ref="enabledTabMenu[each.name]"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="侧防" class="tab_pane_box" name="flankProtect" :lazy="lazy">
|
||||
<flank-protect-operate
|
||||
ref="flankProtectOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="自动折返" class="tab_pane_box" name="turned" :lazy="lazy">
|
||||
<turned-operate
|
||||
ref="turnedOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('map.automaticSignal')" class="tab_pane_box" name="automatic" :lazy="lazy">
|
||||
<automatic-operate
|
||||
ref="automaticOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('map.signalApprochSection')" class="tab_pane_box" name="signal" :lazy="lazy">
|
||||
<signal-operate
|
||||
ref="signalOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('map.routing')" class="tab_pane_box" name="routing" :lazy="lazy">
|
||||
<routing-operate
|
||||
ref="routingOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="停站时间" class="tab_pane_box" name="dwellTime" :lazy="lazy">
|
||||
<dwell-time-operate
|
||||
ref="dwellTimeOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="设置运行等级" class="tab_pane_box" name="runLevel" :lazy="lazy">
|
||||
<run-level-operate
|
||||
ref="runLevelOperate"
|
||||
:map-info="mapInfo"
|
||||
:selected="selected"
|
||||
@setCenter="setCenter"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
@ -124,6 +69,16 @@ export default {
|
||||
enabledTab: 'route',
|
||||
oldDevice: null,
|
||||
lazy: true,
|
||||
tabList:[
|
||||
{label:this.$t('map.routeID'), name:'route', menus:RouteOperate},
|
||||
{label:'侧防', name:'flankProtect', menus:FlankProtectOperate},
|
||||
{label:'自动折返', name:'turned', menus:TurnedOperate},
|
||||
{label:this.$t('map.automaticSignal'), name:'automatic', menus:AutomaticOperate},
|
||||
{label:this.$t('map.signalApprochSection'), name:'signal', menus:SignalOperate},
|
||||
{label:this.$t('map.routing'), name:'routing', menus:RoutingOperate},
|
||||
{label:'停站时间', name:'dwellTime', menus:DwellTimeOperate},
|
||||
{label:'设置运行等级', name:'runLevel', menus:RunLevelOperate}
|
||||
],
|
||||
enabledTabMenu: {
|
||||
route: 'routeOperate',
|
||||
routing: 'routingOperate',
|
||||
@ -145,21 +100,21 @@ export default {
|
||||
},
|
||||
initLoad() {
|
||||
if (this.enabledTab === 'route') {
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]].initLoad();
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]][0].initLoad();
|
||||
}
|
||||
this.tabBeforeLeave(this.enabledTab);
|
||||
},
|
||||
createRouteEvent() { // 创建 清空表单内容
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]].createRouteEvent();
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]][0].createRouteEvent();
|
||||
},
|
||||
previewRouteEvent() { // 预览调用
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]].previewRouteEvent();
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]][0].previewRouteEvent();
|
||||
},
|
||||
changePane(data) {
|
||||
this.enabledTab = data.name;
|
||||
},
|
||||
setSelected(selected) {
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]].setSelected(selected);
|
||||
this.$refs[this.enabledTabMenu[this.enabledTab]][0].setSelected(selected);
|
||||
},
|
||||
setCenter(code) {
|
||||
this.$emit('setCenter', code);
|
||||
@ -170,11 +125,11 @@ export default {
|
||||
},
|
||||
tabBeforeLeave(activeName, oldActiveName) {
|
||||
if (oldActiveName === 'route' || oldActiveName === 'signal' || oldActiveName == 'runLevel' || oldActiveName == 'routing') {
|
||||
this.$refs[this.enabledTabMenu[oldActiveName]].batchSectionListFocus(false);
|
||||
this.$refs[this.enabledTabMenu[oldActiveName]][0].batchSectionListFocus(false);
|
||||
}
|
||||
if (activeName === 'route' || activeName === 'signal' || activeName == 'runLevel' || activeName == 'routing') {
|
||||
this.$nextTick(() => {
|
||||
this.$refs[this.enabledTabMenu[activeName]].batchSectionListFocus(true);
|
||||
this.$refs[this.enabledTabMenu[activeName]][0].batchSectionListFocus(true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user