Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
f9e8e10458
@ -34,7 +34,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div style="border: 1px solid #6F3700; border-top: 0; height: 50px; text-align: center;"><span style="line-height: 50px" @click="clickEvent('stoppingProfile')">停站配置文件</span></div>
|
<div style="border: 1px solid #6F3700; border-top: 0; height: 50px; text-align: center;"><span style="line-height: 50px" @click="clickEvent('stoppingProfile')">站台停站控制</span></div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<div style="border-bottom: 1px solid #6F3700; height: 50px; text-align: center;"><span @click="clickEvent('northbound')">向北</span><br><span @click="clickEvent('southbound')">向南</span></div>
|
<div style="border-bottom: 1px solid #6F3700; height: 50px; text-align: center;"><span @click="clickEvent('northbound')">向北</span><br><span @click="clickEvent('southbound')">向南</span></div>
|
||||||
|
@ -119,6 +119,7 @@
|
|||||||
<system-detain ref="systemDetain" />
|
<system-detain ref="systemDetain" />
|
||||||
<running-interval ref="runningInterval" />
|
<running-interval ref="runningInterval" />
|
||||||
<adjust-strategy ref="adjustStrategy" />
|
<adjust-strategy ref="adjustStrategy" />
|
||||||
|
<train-depart ref="trainDepart" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -160,6 +161,7 @@ import SignalMode from './menuDialog/signalMode';
|
|||||||
import SystemDetain from './menuDialog/systemDetain';
|
import SystemDetain from './menuDialog/systemDetain';
|
||||||
import RunningInterval from './menuDialog/runningInterval';
|
import RunningInterval from './menuDialog/runningInterval';
|
||||||
import AdjustStrategy from './menuDialog/adjustStrategy';
|
import AdjustStrategy from './menuDialog/adjustStrategy';
|
||||||
|
import TrainDepart from './menuDialog/trainDepart';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MenuBar',
|
name: 'MenuBar',
|
||||||
@ -195,7 +197,8 @@ export default {
|
|||||||
SignalMode,
|
SignalMode,
|
||||||
SystemDetain,
|
SystemDetain,
|
||||||
RunningInterval,
|
RunningInterval,
|
||||||
AdjustStrategy
|
AdjustStrategy,
|
||||||
|
TrainDepart
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -269,11 +272,11 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '班次',
|
title: '班次',
|
||||||
click: this.undeveloped
|
click: this.handleTrainDistribution
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '往返',
|
title: '往返',
|
||||||
click: this.undeveloped
|
click: this.handleTrainDistribution
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -283,11 +286,11 @@ export default {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: '发车',
|
title: '发车',
|
||||||
click: this.undeveloped
|
click: this.setTrainDepart
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '脱离班次',
|
title: '脱离班次',
|
||||||
click: this.undeveloped
|
click: this.breakAway
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '复位',
|
title: '复位',
|
||||||
@ -750,11 +753,11 @@ export default {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: '发车',
|
title: '发车',
|
||||||
click: this.undeveloped
|
click: this.setTrainDepart
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '脱离班次',
|
title: '脱离班次',
|
||||||
click: this.undeveloped
|
click: this.breakAway
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '复位',
|
title: '复位',
|
||||||
@ -1728,10 +1731,36 @@ export default {
|
|||||||
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
|
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.closeMenu(true);
|
this.closeMenu(true);
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', {barek: true});
|
this.$store.dispatch('menuOperation/handleBreakFlag', {break: true});
|
||||||
this.$refs.adjustStrategy.doShow(operate);
|
this.$refs.adjustStrategy.doShow(operate);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
setTrainDepart() {
|
||||||
|
const operate = {
|
||||||
|
type: 'bar',
|
||||||
|
operation: OperationEvent.Train.setTrainDeparture.menu
|
||||||
|
};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
|
||||||
|
if (valid) {
|
||||||
|
this.closeMenu(true);
|
||||||
|
this.$store.dispatch('menuOperation/handleBreakFlag', {break: true});
|
||||||
|
this.$refs.trainDepart.doShow(operate);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
breakAway() {
|
||||||
|
const operate = {
|
||||||
|
type: 'bar',
|
||||||
|
operation: OperationEvent.Train.breakAwayPlan.menu
|
||||||
|
};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
|
||||||
|
if (valid) {
|
||||||
|
this.closeMenu(true);
|
||||||
|
this.$store.dispatch('menuOperation/handleBreakFlag', {break: true});
|
||||||
|
this.$refs.trainDepart.doShow(operate);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
144
src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDepart.vue
Normal file
144
src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDepart.vue
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog v-dialogDrag class="ningbo-01__systerm route-setting" :title="title" :visible.sync="show" width="600px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
|
||||||
|
<el-row>
|
||||||
|
<el-table :data="signalList" height="300px">
|
||||||
|
<el-table-column prop="code" label="列车" />
|
||||||
|
<el-table-column prop="interval" label="班次" />
|
||||||
|
<el-table-column prop="interval" label="模式" />
|
||||||
|
<el-table-column prop="interval" label="状态" />
|
||||||
|
<el-table-column prop="interval" label="运行线" />
|
||||||
|
</el-table>
|
||||||
|
</el-row>
|
||||||
|
<el-row justify="center" class="button-group">
|
||||||
|
<el-col :span="4" :offset="1">
|
||||||
|
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定(O)</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4" :offset="2">
|
||||||
|
<el-button>应用(A)</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4" :offset="2">
|
||||||
|
<el-button :id="domIdCancel" @click="cancel">关闭(C)</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4" :offset="2">
|
||||||
|
<el-button>帮助(H)</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<notice-info ref="noticeInfo" pop-class="ningbo-01__systerm" />
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
|
// import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'SignalBlock',
|
||||||
|
components: {
|
||||||
|
NoticeInfo
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
status: false,
|
||||||
|
command: true,
|
||||||
|
allChecked: false,
|
||||||
|
dialogShow: false,
|
||||||
|
loading: false,
|
||||||
|
selected: null,
|
||||||
|
activeName: 'first',
|
||||||
|
operate: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters('map', [
|
||||||
|
'trainList'
|
||||||
|
]),
|
||||||
|
show() {
|
||||||
|
return this.dialogShow && !this.$store.state.menuOperation.break;
|
||||||
|
},
|
||||||
|
domIdCancel() {
|
||||||
|
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
|
||||||
|
},
|
||||||
|
domIdChoose() {
|
||||||
|
return this.dialogShow ? OperationEvent.Signal.arrangementRoute.choose.domId : '';
|
||||||
|
},
|
||||||
|
domIdConfirm() {
|
||||||
|
return this.dialogShow ? OperationEvent.Signal.arrangementRoute.menu.domId : '';
|
||||||
|
},
|
||||||
|
title() {
|
||||||
|
return '列车发车';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
'$store.state.map.keyboardEnterCount': function (val) {
|
||||||
|
if (this.show) {
|
||||||
|
this.commit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$store.dispatch('training/tipReload');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
doShow(operate, selected) {
|
||||||
|
this.selected = selected;
|
||||||
|
this.operate = operate;
|
||||||
|
// 如果不是断点激活,而是第一次显示,则需要设置初始值
|
||||||
|
this.dialogShow = true;
|
||||||
|
this.$nextTick(function () {
|
||||||
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
doClose() {
|
||||||
|
this.loading = false;
|
||||||
|
this.dialogShow = false;
|
||||||
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
|
},
|
||||||
|
commit() {
|
||||||
|
},
|
||||||
|
handleClick() {
|
||||||
|
|
||||||
|
},
|
||||||
|
cancel() {
|
||||||
|
const operate = {
|
||||||
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
|
};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
|
if (valid) {
|
||||||
|
this.doClose();
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.doClose();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
.menu-li {
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: left;
|
||||||
|
list-style:none;
|
||||||
|
padding-left: 5px;
|
||||||
|
border-right: 2px solid #696969;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.set-status-box {
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid #AFAFAF;
|
||||||
|
padding: 10px 5px;
|
||||||
|
}
|
||||||
|
.set-status-title{
|
||||||
|
position: relative;
|
||||||
|
top: 15px;
|
||||||
|
background: #F0F0F0;
|
||||||
|
width: 40px;
|
||||||
|
text-align: center;
|
||||||
|
z-index: 22;
|
||||||
|
left: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
@ -2291,6 +2291,12 @@ export const OperationEvent = {
|
|||||||
operation: '70m',
|
operation: '70m',
|
||||||
domId: '_Tips-Train-setTrainNumber-Menu'
|
domId: '_Tips-Train-setTrainNumber-Menu'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
breakAwayPlan: {
|
||||||
|
menu: {
|
||||||
|
operation: '70n',
|
||||||
|
domId: '_Tips-Train-breakAwayPlan-Menu'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
|
<el-button type="primary" :loading="loading" @click="doCreate">{{ loading? '生成中':$t('global.confirm') }}</el-button>
|
||||||
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
|
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -34,7 +34,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
title: '一键生成课程和试卷',
|
title: '一键生成课程和试卷',
|
||||||
mapId: ''
|
mapId: '',
|
||||||
|
loading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -42,10 +43,16 @@ export default {
|
|||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
doCreate() {
|
doCreate() {
|
||||||
|
this.loading = true;
|
||||||
aKeyGeneratingLesson([this.mapId]).then(resp => {
|
aKeyGeneratingLesson([this.mapId]).then(resp => {
|
||||||
this.$message.success('生成课程、试卷成功!');
|
this.$message.success('生成课程、试卷成功!');
|
||||||
|
this.loading = false;
|
||||||
|
this.dialogVisible = false;
|
||||||
|
this.$emit('reloadTable');
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$message.error('生成课程、试卷失败!');
|
this.$message.error('生成课程、试卷失败!');
|
||||||
|
this.dialogVisible = false;
|
||||||
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||||
<update-operate ref="updateLesson" :title="$t('publish.updateLesson')" @create="handleUpdate" />
|
<update-operate ref="updateLesson" :title="$t('publish.updateLesson')" @create="handleUpdate" />
|
||||||
<key-generation ref="keyGeneration" :map-list="mapList" />
|
<key-generation ref="keyGeneration" :map-list="mapList" @reloadTable="reloadTable" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user