泰国翻译again

This commit is contained in:
fan 2023-05-25 17:10:16 +08:00
parent 4c65f22c8a
commit 43f83ac624
17 changed files with 221 additions and 214 deletions

View File

@ -32,7 +32,7 @@ import trainingManage from './trainingManage';
import newRouter from './newRouter'; import newRouter from './newRouter';
export default { export default {
enLocale, ...enLocale,
map, map,
global, global,
router, router,

View File

@ -445,28 +445,28 @@ class SkinCode extends defaultStyle {
}, },
veryControl: { veryControl: {
show: true, show: true,
offset: { x: 0, y: 0 }, offset: { x: 50, y: 0 },
lightColor: '#f00', lightColor: '#f00',
defaultColor: '#7F7F7F', defaultColor: '#7F7F7F',
text: '非常站控' text: 'Very station controlled'
}, },
selfDiscipline: { selfDiscipline: {
show: true, show: true,
offset: { x: 0, y: 0 }, offset: { x: -140, y: 0 },
text: '允许自律', text: 'Self-regulation allowed',
defaultColor: '#7F7F7F', defaultColor: '#7F7F7F',
lightColor: '#ff0' lightColor: '#ff0'
}, },
selfDisciplineControl: { selfDisciplineControl: {
show: true, show: true,
offset: { x: 0, y: 0 }, offset: { x: -50, y: 0 },
lightColor: '#0f0', lightColor: '#0f0',
defaultColor: '#7F7F7F', defaultColor: '#7F7F7F',
text: '自律控制' text: 'Self-discipline control'
}, },
veryControlButton: { veryControlButton: {
offset: { x: 0, y: 0 }, offset: { x: 140, y: 0 },
text: '非常站控', text: 'Very station controlled',
lightColor: '#ff0', lightColor: '#ff0',
border:true, // 有边框 border:true, // 有边框
borderLine:1, borderLine:1,

View File

@ -635,7 +635,7 @@ export default class Station extends Group {
_subType: 'veryControlButtonText', _subType: 'veryControlButtonText',
position: [0, 0], position: [0, 0],
style: { style: {
x: computedControlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.y, x: computedControlModePoint.x + this.style.Station.StationControl.lamp.distance * 3 / 2 + this.style.Station.StationControl.veryControlButton.offset.x,
y: computedControlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y + this.style.Station.StationControl.lamp.radiusR + this.style.Station.StationControl.text.distance, y: computedControlModePoint.y + this.style.Station.StationControl.veryControlButton.offset.y + this.style.Station.StationControl.lamp.radiusR + this.style.Station.StationControl.text.distance,
fontWeight: this.style.Station.StationControl.text.fontWeight, fontWeight: this.style.Station.StationControl.text.fontWeight,
fontSize: this.style.Station.StationControl.text.fontSize, fontSize: this.style.Station.StationControl.text.fontSize,

View File

@ -13,6 +13,7 @@ import VueI18n from 'vue-i18n';
import store from './store/index'; import store from './store/index';
import router from './router/index'; import router from './router/index';
import CancelMouseState from '@/mixin/CancelMouseState.js'; import CancelMouseState from '@/mixin/CancelMouseState.js';
import ElementLocale from 'element-ui/lib/locale';
Vue.mixin(CancelMouseState); Vue.mixin(CancelMouseState);
import '@/icons'; // icon import '@/icons'; // icon
@ -37,6 +38,7 @@ export const i18n = new VueI18n({
locale: LangStorage.getLang('zh'), locale: LangStorage.getLang('zh'),
messages messages
}); });
ElementLocale.i18n((key, value) => i18n.t(key, value));
Vue.use(ElementUI, {i18n: (key, value) => i18n.t(key, value)}); Vue.use(ElementUI, {i18n: (key, value) => i18n.t(key, value)});
new Vue({ new Vue({

View File

@ -292,27 +292,27 @@ export function getTrainingOperateTypeMap() {
} }
export const transfiniteList = [ export const transfiniteList = [
{name:'不超限', code:'NO'}, {name:'No overrun', code:'NO'},
{name:'一级超限', code:'TRANSFINITE_ONE_LEVEL'}, {name:'First class overrun', code:'TRANSFINITE_ONE_LEVEL'},
{name:'二级超限', code:'TRANSFINITE_TWO_LEVEL'}, {name:'Class II Overrun', code:'TRANSFINITE_TWO_LEVEL'},
{name:'超级超限', code:'TRANSFINITE_SUPER'} {name:'Super Overrun', code:'TRANSFINITE_SUPER'}
]; ];
export const trainTypeList = [ export const trainTypeList = [
// 管内列车 // 管内列车
{name:'管内特快旅客列车', code:'LOCAL_EXPRESS_PASSENGER_TRAIN' }, {name:'Limited Express Passenger Trains', code:'LOCAL_EXPRESS_PASSENGER_TRAIN' },
{name:'管内快速旅客列车', code:'LOCAL_FAST_PASSENGER_TRAIN' }, {name:'Fast Passenger Train', code:'LOCAL_FAST_PASSENGER_TRAIN' },
{name:'管内普通旅客快车', code:'LOCAL_PASSENGER_TRAIN' }, {name:'Ordinary passenger express', code:'LOCAL_PASSENGER_TRAIN' },
{name:'管内普通旅客慢车', code:'LOCAL_SLOW_PASSENGER_TRAIN' }, {name:'Ordinary Passenger Slow Train', code:'LOCAL_SLOW_PASSENGER_TRAIN' },
{name:'管内临时旅客列车', code:'LOCAL_TEMPORARY_PASSENGER_TRAIN' }, {name:'Temporary Passenger Train', code:'LOCAL_TEMPORARY_PASSENGER_TRAIN' },
{name:'管内临时旅游列车', code:'LOCAL_TEMPORARY_TOURIST_TRAIN' }, {name:'Temporary Tourist Trains', code:'LOCAL_TEMPORARY_TOURIST_TRAIN' },
// 跨局列车 // 跨局列车
{name:'跨局快速旅客列车', code:'FAST_PASSENGER_TRAIN' }, {name:'Inter-bureau Express Passenger Trains', code:'FAST_PASSENGER_TRAIN' },
{name:'跨局临时旅游列车', code:'TEMPORARY_TOURIST_TRAIN' }, {name:'Inter-bureau Temporary Tourist Trains', code:'TEMPORARY_TOURIST_TRAIN' },
{name:'跨两局普通旅客快车', code:'TWO_PASSENGER_TRAIN' }, {name:'Inter-bureau Ordinary Fast Passenger Train', code:'TWO_PASSENGER_TRAIN' },
{name:'跨两局普通旅客慢车', code:'TWO_SLOW_PASSENGER_TRAIN' }, {name:'Inter-bureau Ordinary Passenger Slow Train', code:'TWO_SLOW_PASSENGER_TRAIN' },
{name:'跨两局临时旅客列车', code:'TWO_TEMPORARY_PASSENGER_TRAIN' }, {name:'Inter-bureau temporary passenger trains', code:'TWO_TEMPORARY_PASSENGER_TRAIN' },
{name:'跨三局及其以上普通旅客快车', code:'MORE_PASSENGER_TRAIN' }, {name:'Inter-bureau ordinary passenger express trains of three or more bureaux', code:'MORE_PASSENGER_TRAIN' },
// 其他列车 // 其他列车
{name:'回送出入厂客车底列车', code:'BACK_FACTORY_PASSENGER_TRAIN' }, {name:'回送出入厂客车底列车', code:'BACK_FACTORY_PASSENGER_TRAIN' },
{name:'因故折返旅客列车', code:'FAULT_TRUE_BACK_PASSENGER_TRAIN' } {name:'因故折返旅客列车', code:'FAULT_TRUE_BACK_PASSENGER_TRAIN' }

View File

@ -13,11 +13,11 @@
</div> </div>
<div v-else class="login-container" :style="{ 'background-image': showBackPic?'url(' + bgImg + ')':'none' }"> <div v-else class="login-container" :style="{ 'background-image': showBackPic?'url(' + bgImg + ')':'none' }">
<!-- 中英文切换 --> <!-- 中英文切换 -->
<div class="language_box"> <!-- <div class="language_box">-->
<el-tooltip effect="dark" :content="this.$t('login.clickSwitchLanguage')" placement="bottom-end"> <!-- <el-tooltip effect="dark" :content="this.$t('login.clickSwitchLanguage')" placement="bottom-end">-->
<el-button class="language_btn" type="text" @click="handleLanguage">{{ language }}</el-button> <!-- <el-button class="language_btn" type="text" @click="handleLanguage">{{ language }}</el-button>-->
</el-tooltip> <!-- </el-tooltip>-->
</div> <!-- </div>-->
<!-- logo和名称 --> <!-- logo和名称 -->
<div class="left-logo-box"> <div class="left-logo-box">
<img class="logo" :src="loginProLogo ? $store.state.user.ossUrl + '/logo/' + loginProLogo:''" :style="{ width: loginProLogoWidth+'px'}"> <img class="logo" :src="loginProLogo ? $store.state.user.ossUrl + '/logo/' + loginProLogo:''" :style="{ width: loginProLogoWidth+'px'}">

View File

@ -100,7 +100,7 @@ export default {
if (value) { if (value) {
callback(); callback();
} else { } else {
callback(new Error('请输入用户名')); callback(new Error('Please enter the user name'));
} }
}; };
const validatePass = (rule, value, callback) => { const validatePass = (rule, value, callback) => {

View File

@ -202,7 +202,7 @@ export default {
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode); const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
switch (item.type) { switch (item.type) {
case 'NCC_DISPATCHER': case 'NCC_DISPATCHER':
this.memberData[item.id].labelName = 'NCC调度' + (item.name || ''); this.memberData[item.id].labelName = 'NCC_DISPATCHER' + (item.name || '');
nccDispatcherList.push(this.memberData[item.id]); nccDispatcherList.push(this.memberData[item.id]);
break; break;
case 'OCC_DISPATCHER': case 'OCC_DISPATCHER':
@ -278,7 +278,7 @@ export default {
this.memberData[item.id].labelName = 'PARENT_DEPARTMENT' + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'PARENT_DEPARTMENT' + (item.name ? `-${item.name }` : '');
break; break;
case 'STATION_ELECTRIC_WORKER': case 'STATION_ELECTRIC_WORKER':
this.memberData[item.id].labelName = '电力工务' + (item.name || ''); this.memberData[item.id].labelName = 'STATION_ELECTRIC_WORKER' + (item.name || '');
stationElectricWorkerList.push(this.memberData[item.id]); stationElectricWorkerList.push(this.memberData[item.id]);
break; break;
// DEVICE_MANAGER:'' deviceManager // DEVICE_MANAGER:'' deviceManager
@ -366,7 +366,7 @@ export default {
children: trainMasterList children: trainMasterList
}, },
{ {
labelName: '电力工务 ', labelName: 'STATION_ELECTRIC_WORKER ',
id: 'stationElectricWorker', id: 'stationElectricWorker',
children: stationElectricWorkerList children: stationElectricWorkerList
} }
@ -402,6 +402,7 @@ export default {
doShow() { doShow() {
this.show = true; this.show = true;
this.memberData = this.$store.state.training.memberData; this.memberData = this.$store.state.training.memberData;
console.log(this.memberData, '*********');
this.simulationUserList = this.$store.state.training.simulationUserList; this.simulationUserList = this.$store.state.training.simulationUserList;
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.tree) { if (this.$refs.tree) {

View File

@ -425,7 +425,7 @@ export default {
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode); const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
switch (item.type) { switch (item.type) {
case 'NCC_DISPATCHER': case 'NCC_DISPATCHER':
this.memberData[item.id].labelName = 'NCC调度' + (item.name || ''); this.memberData[item.id].labelName = 'NCC_DISPATCHER' + (item.name || '');
nccDispatcherList.push(this.memberData[item.id]); nccDispatcherList.push(this.memberData[item.id]);
break; break;
case 'OCC_DISPATCHER': case 'OCC_DISPATCHER':
@ -433,161 +433,161 @@ export default {
occDispatcherList.push(this.memberData[item.id]); occDispatcherList.push(this.memberData[item.id]);
break; break;
case 'DISPATCHER': case 'DISPATCHER':
this.memberData[item.id].labelName = '行调' + (item.name || ''); this.memberData[item.id].labelName = 'DISPATCHER' + (item.name || '');
dispatcherList.push(this.memberData[item.id]); dispatcherList.push(this.memberData[item.id]);
break; break;
case 'ELECTRIC_DISPATCHER': case 'ELECTRIC_DISPATCHER':
this.memberData[item.id].labelName = '电力调度' + (item.name || ''); this.memberData[item.id].labelName = 'ELECTRIC_DISPATCHER' + (item.name || '');
electricDispatcherList.push(this.memberData[item.id]); electricDispatcherList.push(this.memberData[item.id]);
break; break;
case 'DEPOT_DISPATCHER': case 'DEPOT_DISPATCHER':
this.memberData[item.id].labelName = '信号楼-' + `${ device ? device.name : '' }` + (item.name || ''); this.memberData[item.id].labelName = 'DEPOT_DISPATCHER-' + `${ device ? device.name : '' }` + (item.name || '');
depotDispatcherList.push(this.memberData[item.id]); depotDispatcherList.push(this.memberData[item.id]);
break; break;
case 'STATION_SUPERVISOR': case 'STATION_SUPERVISOR':
this.memberData[item.id].labelName = '值班员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_SUPERVISOR-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationSupervisorList.push(this.memberData[item.id]); stationSupervisorList.push(this.memberData[item.id]);
break; break;
case 'DRIVER': case 'DRIVER':
this.memberData[item.id].labelName = '司机-列车' + item.deviceCode; this.memberData[item.id].labelName = 'DRIVER-TRAIN' + item.deviceCode;
driverList.push(this.memberData[item.id]); driverList.push(this.memberData[item.id]);
break; break;
case 'MAINTAINER': case 'MAINTAINER':
this.memberData[item.id].labelName = '通号' + (item.name || ''); this.memberData[item.id].labelName = 'MAINTAINER' + (item.name || '');
maintainerList.push(this.memberData[item.id]); maintainerList.push(this.memberData[item.id]);
break; break;
case 'RAIL_CTC': case 'RAIL_CTC':
this.memberData[item.id].labelName = 'CTC操作员' + `${ device ? device.name : '' }`; this.memberData[item.id].labelName = 'RAIL_CTC' + `${ device ? device.name : '' }`;
ctcOperatorList.push(this.memberData[item.id]); ctcOperatorList.push(this.memberData[item.id]);
break; break;
case 'STATION_ASSISTANT': case 'STATION_ASSISTANT':
this.memberData[item.id].labelName = '车站助理-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_ASSISTANT-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationAssistantList.push(this.memberData[item.id]); stationAssistantList.push(this.memberData[item.id]);
break; break;
case 'STATION_MASTER': case 'STATION_MASTER':
this.memberData[item.id].labelName = '车站站长-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_MASTER-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationMasterList.push(this.memberData[item.id]); stationMasterList.push(this.memberData[item.id]);
break; break;
case 'STATION_SIGNALER': case 'STATION_SIGNALER':
this.memberData[item.id].labelName = '车站信号员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_SIGNALER-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationSignalerList.push(this.memberData[item.id]); stationSignalerList.push(this.memberData[item.id]);
break; break;
case 'STATION_PASSENGER': case 'STATION_PASSENGER':
this.memberData[item.id].labelName = '车站客运员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_PASSENGER-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationPassengerList.push(this.memberData[item.id]); stationPassengerList.push(this.memberData[item.id]);
break; break;
case 'STATION_SWITCH_MAN': case 'STATION_SWITCH_MAN':
this.memberData[item.id].labelName = '车站扳道员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_SWITCH_MAN-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationSwitchManList.push(this.memberData[item.id]); stationSwitchManList.push(this.memberData[item.id]);
break; break;
case 'STATION_FACILITATOR': case 'STATION_FACILITATOR':
this.memberData[item.id].labelName = '车站引导员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_FACILITATOR-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationFacilitatorList.push(this.memberData[item.id]); stationFacilitatorList.push(this.memberData[item.id]);
break; break;
case 'STATION_WORKER': case 'STATION_WORKER':
this.memberData[item.id].labelName = '车站工务工-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'STATION_WORKER-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationWorkerList.push(this.memberData[item.id]); stationWorkerList.push(this.memberData[item.id]);
break; break;
case 'DEVICE_MANAGER': case 'DEVICE_MANAGER':
this.memberData[item.id].labelName = '设备管理员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'DEVICE_MANAGER-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
deviceManagerList.push(this.memberData[item.id]); deviceManagerList.push(this.memberData[item.id]);
break; break;
case 'TRAIN_MASTER': case 'TRAIN_MASTER':
this.memberData[item.id].labelName = '车务段段长-' + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'TRAIN_MASTER-' + (item.name ? `-${item.name }` : '');
trainMasterList.push(this.memberData[item.id]); trainMasterList.push(this.memberData[item.id]);
break; break;
case 'PARENT_DEPARTMENT': case 'PARENT_DEPARTMENT':
this.memberData[item.id].labelName = '上级部门' + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = 'PARENT_DEPARTMENT' + (item.name ? `-${item.name }` : '');
break; break;
case 'STATION_ELECTRIC_WORKER': case 'STATION_ELECTRIC_WORKER':
this.memberData[item.id].labelName = '电力工务' + (item.name || ''); this.memberData[item.id].labelName = 'STATION_ELECTRIC_WORKER' + (item.name || '');
stationElectricWorkerList.push(this.memberData[item.id]); stationElectricWorkerList.push(this.memberData[item.id]);
break; break;
} }
}); });
this.memberTreeData = [{ this.memberTreeData = [{
labelName: 'NCC调度', labelName: 'NCC_DISPATCHER',
id: 'nccDispatcher', id: 'nccDispatcher',
children: nccDispatcherList children: nccDispatcherList
}, { }, {
labelName: '信息调度', labelName: 'OCC_DISPATCHER',
id: 'occDispatcher', id: 'occDispatcher',
children: occDispatcherList children: occDispatcherList
}, { }, {
labelName: '行调', labelName: 'DISPATCHER',
id: 'dispatcher', id: 'dispatcher',
children: dispatcherList children: dispatcherList
}, { }, {
labelName: '车站值班员', labelName: 'STATION_SUPERVISOR',
id: 'stationSupervisor', id: 'stationSupervisor',
children: stationSupervisorList children: stationSupervisorList
}, { }, {
labelName: '司机', labelName: 'DRIVER',
id: 'driver', id: 'driver',
children: driverList children: driverList
}, { }, {
labelName: '通号', labelName: 'MAINTAINER',
id: 'maintainer', id: 'maintainer',
children: maintainerList children: maintainerList
}, { }, {
labelName: '车辆段信号楼', labelName: 'DEPOT_DISPATCHER',
id: 'depotDispatcher', id: 'depotDispatcher',
children: depotDispatcherList children: depotDispatcherList
}, { }, {
labelName: '电力调度', labelName: 'ELECTRIC_DISPATCHER',
id: 'electricDispatcher', id: 'electricDispatcher',
children: electricDispatcherList children: electricDispatcherList
}, { }, {
labelName: 'CTC操作员', labelName: 'RAIL_CTC',
id: 'ctcOperator', id: 'ctcOperator',
children: ctcOperatorList children: ctcOperatorList
}, { }, {
labelName: '车站助理', labelName: 'STATION_ASSISTANT',
id: 'stationAssistant', id: 'stationAssistant',
children: stationAssistantList children: stationAssistantList
}, },
{ {
labelName: '车站站长', labelName: 'STATION_MASTER',
id: 'stationMaster', id: 'stationMaster',
children: stationMasterList children: stationMasterList
}, },
{ {
labelName: '车站信号员', labelName: 'STATION_SIGNALER',
id: 'stationSignaler', id: 'stationSignaler',
children: stationSignalerList children: stationSignalerList
}, },
{ {
labelName: '车站客运员', labelName: 'STATION_PASSENGER',
id: 'stationPassenger', id: 'stationPassenger',
children: stationPassengerList children: stationPassengerList
}, },
{ {
labelName: '车站扳道员', labelName: 'STATION_SWITCH_MAN',
id: 'stationSwitchMan', id: 'stationSwitchMan',
children: stationSwitchManList children: stationSwitchManList
}, },
{ {
labelName: '车站引导员', labelName: 'STATION_FACILITATOR',
id: 'stationFacilitator', id: 'stationFacilitator',
children: stationFacilitatorList children: stationFacilitatorList
}, },
{ {
labelName: '车站工务工', labelName: 'STATION_WORKER',
id: 'stationWorker', id: 'stationWorker',
children: stationWorkerList children: stationWorkerList
}, },
{ {
labelName: '设备管理员', labelName: 'DEVICE_MANAGER',
id: 'deviceManager', id: 'deviceManager',
children: deviceManagerList children: deviceManagerList
}, },
{ {
labelName: '车务段段长 ', labelName: 'TRAIN_MASTER ',
id: 'trainMaster', id: 'trainMaster',
children: trainMasterList children: trainMasterList
}, },
{ {
labelName: '电力工务 ', labelName: 'STATION_ELECTRIC_WORKER ',
id: 'stationElectricWorker', id: 'stationElectricWorker',
children: stationElectricWorkerList children: stationElectricWorkerList
} }

View File

@ -94,7 +94,7 @@ export default {
if (this.$store.state.training.simulationCreator) { if (this.$store.state.training.simulationCreator) {
return; return;
} }
this.$alert('您所在仿真已被销毁', 'Hint', { this.$alert('The simulation you are in has been destroyed', 'Hint', {
confirmButtonText: 'Confirm', confirmButtonText: 'Confirm',
showClose: false, showClose: false,
callback: action => { callback: action => {

View File

@ -248,17 +248,17 @@
<div class="middle"> <div class="middle">
<el-tabs v-model="cmdTab" type="border-card" class="middle-padding"> <el-tabs v-model="cmdTab" type="border-card" class="middle-padding">
<el-tab-pane label="Scheduling order" name="cmd"> <el-tab-pane label="Scheduling order" name="cmd">
<el-form ref="form" :model="command" :rules="rules" label-width="95px"> <el-form ref="form" :model="command" :rules="rules" label-width="130px">
<el-form-item label="Command title" prop="title"> <el-form-item label="Command title" prop="title">
<el-input v-model="command.title" /> <el-input v-model="command.title" />
</el-form-item> </el-form-item>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="Command number" prop="cmdCode"> <el-form-item label="Command number" prop="cmdCode" label-width="150px">
<el-input v-model="command.cmdCode" disabled /> <el-input v-model="command.cmdCode" disabled />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="Transit identification number"> <el-form-item label="Transit identification number" label-width="210px">
<el-input v-model="command.transitId" /> <el-input v-model="command.transitId" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -307,7 +307,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="Authorization status"> <el-form-item label="Authorization status" label-width="150px">
<el-input v-model="command.authState" /> <el-input v-model="command.authState" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -339,7 +339,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="To be authorised by"> <el-form-item label="To be authorised by" label-width="150px">
<el-select v-model="command.designer" placeholder="Please select" style="width: 100%;"> <el-select v-model="command.designer" placeholder="Please select" style="width: 100%;">
<el-option <el-option
v-for="item in memberDataList" v-for="item in memberDataList"
@ -351,7 +351,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="Order classification"> <el-form-item label="Order classification" label-width="150px">
<el-select v-model="command.type" placeholder="Please select" style="width: 100%;"> <el-select v-model="command.type" placeholder="Please select" style="width: 100%;">
<el-option <el-option
v-for="item in typeOptions" v-for="item in typeOptions"
@ -403,7 +403,7 @@
</div> </div>
</div> </div>
<div class="midle-bottom"> <div class="midle-bottom">
<el-button :id="getDomObj('allographCmd').domId" type="primary" :disabled="!allographRow" @click="allographCmd">Signed on behalf of</el-button> <el-button :id="getDomObj('allographCmd').domId" type="primary" style="width: 140px" :disabled="!allographRow" @click="allographCmd">Signed on behalf of</el-button>
<el-button :id="getDomObj('sendCmd').domId" type="primary" :disabled="disabledSent" @click="sendCmd">placed</el-button> <el-button :id="getDomObj('sendCmd').domId" type="primary" :disabled="disabledSent" @click="sendCmd">placed</el-button>
<el-button :id="getDomObj('saveCacheData').domId" type="primary" :disabled="disabledSent" @click="saveCacheData(true)">Cache</el-button> <el-button :id="getDomObj('saveCacheData').domId" type="primary" :disabled="disabledSent" @click="saveCacheData(true)">Cache</el-button>
</div> </div>
@ -422,14 +422,14 @@
</div> </div>
<div class="right-middle"> <div class="right-middle">
<el-tabs v-model="wirelessTab" type="border-card"> <el-tabs v-model="wirelessTab" type="border-card">
<el-tab-pane label="无线受令列表" name="wireless"> <el-tab-pane label="Wireless warranted list" name="wireless">
<el-form ref="form" :model="wirelessObj" label-width="80px" :disabled="!permissionWireless"> <el-form ref="form" :model="wirelessObj" label-width="80px" :disabled="!permissionWireless">
<el-form-item label="Order Type"> <el-form-item label="Order Type">
<el-select v-model="wirelessObj.type" placeholder="Please select" style="width: 100%;"> <el-select v-model="wirelessObj.type" placeholder="Please select" style="width: 100%;">
<el-option label="Scheduling order" value="dispatchCmd" /> <el-option label="Scheduling order" value="dispatchCmd" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="中转车站"> <el-form-item label="Transit stations">
<el-select v-model="wirelessObj.transStationCode" placeholder="Please select" style="width: 100%;"> <el-select v-model="wirelessObj.transStationCode" placeholder="Please select" style="width: 100%;">
<el-option <el-option
v-for="item in transStationOption" v-for="item in transStationOption"
@ -443,13 +443,13 @@
<el-input v-model="wirelessObj.trainNum" /> <el-input v-model="wirelessObj.trainNum" />
</el-form-item> </el-form-item>
<el-col :span="16"> <el-col :span="16">
<el-form-item label="机车"> <el-form-item label="Locomotives">
<el-input v-model="wirelessObj.code" onkeyup="value=value.replace(/[^\d]/g,'')" /> <el-input v-model="wirelessObj.code" onkeyup="value=value.replace(/[^\d]/g,'')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="midle-bottom"> <div class="midle-bottom">
<el-button :id="getDomObj('findTrain').domId" type="primary" :disabled="disabledSent || !permissionWireless" @click="findTrainToTable">查找机车</el-button> <el-button :id="getDomObj('findTrain').domId" type="primary" :disabled="disabledSent || !permissionWireless" @click="findTrainToTable">Locomotive search</el-button>
</div> </div>
</el-col> </el-col>
</el-form> </el-form>
@ -457,7 +457,7 @@
<div class="table"> <div class="table">
<el-table ref="table6" :data="trainTableData" border style="width: 100%" :header-cell-class-name="cellClass" :height="trainTableHeight" highlight-current-row @current-change="trainTableRowChange"> <el-table ref="table6" :data="trainTableData" border style="width: 100%" :header-cell-class-name="cellClass" :height="trainTableHeight" highlight-current-row @current-change="trainTableRowChange">
<el-table-column prop="trainNum" label="tripNumber" width="100" /> <el-table-column prop="trainNum" label="tripNumber" width="100" />
<el-table-column prop="code" label="机车号"> <el-table-column prop="code" label="Locomotive number">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.code || 'XXXXXX' }}</span> <span>{{ scope.row.code || 'XXXXXX' }}</span>
</template> </template>
@ -477,7 +477,7 @@
<span style="margin-left: 10px">{{ getCurrentState(scope.row).time || '' }}</span> <span style="margin-left: 10px">{{ getCurrentState(scope.row).time || '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="transStationCode" label="中转车站"> <el-table-column prop="transStationCode" label="Transit stations">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getTransStationName(scope.row.transStationCode) }}</span> <span>{{ getTransStationName(scope.row.transStationCode) }}</span>
</template> </template>
@ -526,11 +526,11 @@ export default {
}, },
signedStatusObj: { signedStatusObj: {
Cache: 'Cache', Cache: 'Cache',
Sent: '已发送', Sent: 'Sent',
SrmReceived: '自律机接收', SrmReceived: 'Self-regulating machines receive',
Received: '已接收', Received: 'Received',
Signed: '已签收', Signed: 'Signed for',
Reject: '已拒签' Reject: 'Rejected'
}, },
command: { command: {
cmdId: '', cmdId: '',
@ -565,11 +565,11 @@ export default {
}, },
rules: { rules: {
title: [ title: [
{ required: true, message: '命令标题不能为空', trigger: 'blur' }, { required: true, message: 'Command title cannot be empty', trigger: 'blur' },
{ min: 1, max: 20, message: 'The value contains 1 to 20 characters', trigger: 'blur' } { min: 1, max: 20, message: 'The value contains 1 to 20 characters', trigger: 'blur' }
], ],
cmdCode: [ cmdCode: [
{ required: true, message: '命令号不能为空', trigger: 'blur' }, { required: true, message: 'Order number must not be empty', trigger: 'blur' },
{ min: 1, max: 7, message: 'The value contains 1 to 7 characters', trigger: 'blur' } { min: 1, max: 7, message: 'The value contains 1 to 7 characters', trigger: 'blur' }
] ]
}, },
@ -607,8 +607,8 @@ export default {
searchTable: [], searchTable: [],
searchSignedOption: [ searchSignedOption: [
{ value: '', label: 'All'}, { value: '', label: 'All'},
{ value: true, label: '只显示签收完成的'}, { value: true, label: 'Show only signed for'},
{ value: false, label: '只显示未签收完成的'} { value: false, label: 'Show only uncompleted'}
], ],
wirelessObj: { wirelessObj: {
type: 'dispatchCmd', type: 'dispatchCmd',
@ -674,9 +674,9 @@ export default {
let s = ' '; let s = ' ';
let h = tArr[0]; let h = tArr[0];
if (this.numTime != 24) { if (this.numTime != 24) {
s = '上午'; s = 'AM';
if (h > 12) { if (h > 12) {
s = '下午'; s = 'PM';
h = h - 12; h = h - 12;
} }
} }
@ -760,13 +760,13 @@ export default {
methods:{ methods:{
trainAllographCmd() { trainAllographCmd() {
if (!this.trainRow) { return; } if (!this.trainRow) { return; }
const test = `将为【${this.trainRow.trainNum}】次列车,代签 无线调度命令`; const test = `Will sign on behalf of train [${this.trainRow.trainNum}] Wireless dispatch order`;
const messageData = [test]; const messageData = [test];
const h = this.$createElement; const h = this.$createElement;
messageData.push(h('p', null, '代签之前,请务必与本次列车司机联系确认!')); messageData.push(h('p', null, 'Please check with the driver of this train before you sign for it!'));
messageData.push(h('p', null, '您确定要进行【无线调度命令 代签】操作吗?')); messageData.push(h('p', null, 'Are you sure you want to do the [Wireless Dispatch Order Substitute]?'));
this.$confirm('Hint', { this.$confirm('Hint', {
title: '无线代签操作提示', title: 'Tips for Wireless Substitute Operation',
message: h('div', null, messageData), message: h('div', null, messageData),
confirmButtonText: 'Confirm', confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel', cancelButtonText: 'Cancel',
@ -782,11 +782,11 @@ export default {
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => { this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
if (valid) { if (valid) {
sendCommandNew(this.group, 'CTC_SIGN_DIS_COMMAND', params).then((res) => { sendCommandNew(this.group, 'CTC_SIGN_DIS_COMMAND', params).then((res) => {
this.$message.success('无线受令代签成功!'); this.$message.success('Wireless order to sign for you is successful!');
this.searchCmd(); this.searchCmd();
this.initData(); this.initData();
}).catch(error => { }).catch(error => {
this.$messageBox('无线受令代签令失败!'); this.$messageBox('Wireless dispatch order failed!');
}); });
} }
}); });
@ -844,7 +844,7 @@ export default {
}, },
findTrainToTable() { findTrainToTable() {
if (!this.wirelessObj.trainNum) { if (!this.wirelessObj.trainNum) {
this.$messageBox('请选择车次号'); this.$messageBox('Please select the train number!');
return; return;
} }
const operate = { const operate = {
@ -883,7 +883,7 @@ export default {
this.command.rcvCompanies.push(obj); this.command.rcvCompanies.push(obj);
} }
}).catch(error => { }).catch(error => {
this.$messageBox('查找机车失败!'); this.$messageBox('Locomotive search failed!');
}); });
} }
}); });
@ -1207,7 +1207,7 @@ export default {
}); });
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
if (findDiff) { if (findDiff) {
this.$confirm('当前调度命令已经被编辑修改过了,你要放弃所有的修改吗?', 'Hint', { this.$confirm('The current dispatch order has already been edited and modified, do you want to abandon all changes?', 'Hint', {
confirmButtonText: 'Confirm', confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel' cancelButtonText: 'Cancel'
}).then(() => { }).then(() => {
@ -1230,7 +1230,7 @@ export default {
this.command.cmdCode = res.data.cmdCode; this.command.cmdCode = res.data.cmdCode;
this.command.cmdId = res.data.cmdId; this.command.cmdId = res.data.cmdId;
}).catch(error => { }).catch(error => {
this.$messageBox('新建调度命令号失败!'); this.$messageBox('Failed to create a new dispatch order number!');
}); });
}).catch(() => { }).catch(() => {
console.log('取消新建调度命令!'); console.log('取消新建调度命令!');
@ -1342,11 +1342,11 @@ export default {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
if (!this.command.content) { if (!this.command.content) {
this.$messageBox('请选择填写命令正文'); this.$messageBox('Please select to fill in the body of the order');
return; return;
} }
if (!this.command.rcvCompanies.length) { if (!this.command.rcvCompanies.length) {
this.$messageBox('请选择受令单位'); this.$messageBox('Please select the unit to be ordered');
return; return;
} }
const params = Object.assign({}, this.command); const params = Object.assign({}, this.command);
@ -1375,10 +1375,10 @@ export default {
}); });
data.sendCompany.id = idList[idList.length - 1]; data.sendCompany.id = idList[idList.length - 1];
sendCommandNew(this.group, 'CTC_SAVE_DIS_COMMAND', data).then((res) => { sendCommandNew(this.group, 'CTC_SAVE_DIS_COMMAND', data).then((res) => {
showMsg && this.$message.success('缓存调度命令成功!'); showMsg && this.$message.success('Cache dispatch command successful!');
resolve(); resolve();
}).catch(error => { }).catch(error => {
showMsg && this.$messageBox('缓存调度命令失败!'); showMsg && this.$messageBox('Cache scheduling command failed!');
reject(error.message); reject(error.message);
}); });
}); });
@ -1388,7 +1388,7 @@ export default {
const findCode = this.command.rcvCompanies.find(item => { const findCode = this.command.rcvCompanies.find(item => {
return item.code == row.code; return item.code == row.code;
}); });
if (this.currentStatus == '已发送' && findCode && sArr.includes(row.state)) { if (this.currentStatus == 'Send' && findCode && sArr.includes(row.state)) {
this.allographRow = row; this.allographRow = row;
} else { } else {
this.allographRow = null; this.allographRow = null;
@ -1396,13 +1396,13 @@ export default {
}, },
allographCmd() { allographCmd() {
if (!this.allographRow) { return; } if (!this.allographRow) { return; }
const test = `当前操作者:【${this.getActiveSender.labelName || ''}】,为【${this.command.cmdCode}】号调度命令的受令单位【${this.allographRow.name}`; const test = `Current operator: [${this.getActiveSender.labelName || ''}], for [${this.command.cmdCode}], the dispatcher of dispatch order number [${this.allographRow.name}]`;
const messageData = [test]; const messageData = [test];
const h = this.$createElement; const h = this.$createElement;
messageData.push(h('p', null, '进行代签操作前,请您与受令单位进行联络确认。')); messageData.push(h('p', null, 'Please check with the recipient before proceeding with the substitution.'));
messageData.push(h('p', null, '您确定要进行代签操作吗?')); messageData.push(h('p', null, 'Are you sure you want to perform a substitution operation?'));
this.$confirm('Hint', { this.$confirm('Hint', {
title: '代签操作提示', title: 'Signing agent prompt',
message: h('div', null, messageData), message: h('div', null, messageData),
confirmButtonText: 'Confirm', confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel', cancelButtonText: 'Cancel',
@ -1418,11 +1418,11 @@ export default {
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => { this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
if (valid) { if (valid) {
sendCommandNew(this.group, 'CTC_SIGN_DIS_COMMAND', params).then((res) => { sendCommandNew(this.group, 'CTC_SIGN_DIS_COMMAND', params).then((res) => {
this.$message.success('代签成功!'); this.$message.success('Substitution successful!');
this.searchCmd(); this.searchCmd();
this.initData(); this.initData();
}).catch(error => { }).catch(error => {
this.$messageBox('代签失败!'); this.$messageBox('Failed!');
}); });
} }
}); });
@ -1431,7 +1431,7 @@ export default {
}); });
}, },
sendCmd() { sendCmd() {
const test = `${this.command.cmdCode}】号调度命令下达到以下受令人`; const test = `The dispatching order [${this.command.cmdCode}] is sent to the following recipients`;
const messageData = [test]; const messageData = [test];
const h = this.$createElement; const h = this.$createElement;
this.command.rcvCompanies.forEach((item, index) => { this.command.rcvCompanies.forEach((item, index) => {
@ -1449,11 +1449,11 @@ export default {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
if (!this.command.content) { if (!this.command.content) {
this.$messageBox('请选择填写命令正文'); this.$messageBox('Please fill in the text of the order');
return; return;
} }
if (!this.command.rcvCompanies.length) { if (!this.command.rcvCompanies.length) {
this.$messageBox('请选择受令单位'); this.$messageBox('Please select the unit to be dispatched');
return; return;
} }
const params = Object.assign({}, this.command); const params = Object.assign({}, this.command);
@ -1466,11 +1466,11 @@ export default {
if (valid) { if (valid) {
this.cacheCmd().then(suc => { this.cacheCmd().then(suc => {
sendCommandNew(this.group, 'CTC_SEND_DIS_COMMAND', params).then((res) => { sendCommandNew(this.group, 'CTC_SEND_DIS_COMMAND', params).then((res) => {
this.$message.success('发送调度命令成功!'); this.$message.success('Dispatch order sent successfully!');
this.searchCmd(); this.searchCmd();
this.initData(); this.initData();
}).catch(error => { }).catch(error => {
this.$messageBox('发送调度命令失败!'); this.$messageBox('Failed to send dispatch order!');
}); });
}).catch(err => { }).catch(err => {
console.error('缓存调度命令失败', err); console.error('缓存调度命令失败', err);
@ -1487,7 +1487,7 @@ export default {
this.queryResData = res.data || {}; this.queryResData = res.data || {};
resolve(); resolve();
}).catch(error => { }).catch(error => {
this.$messageBox('查询调度命令失败!'); this.$messageBox('Failed to query dispatch order!');
reject(error.message); reject(error.message);
}); });
}); });

View File

@ -4,14 +4,14 @@
class="chengdou-03__systerm train-set-plan" class="chengdou-03__systerm train-set-plan"
:title="title" :title="title"
:visible.sync="show" :visible.sync="show"
width="670px" width="770px"
:before-close="doClose" :before-close="doClose"
:z-index="2000" :z-index="2000"
:modal="false" :modal="false"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<el-form id="AddDispatcherForm" ref="form" :model="model" label-width="80px" :rules="rules"> <el-form id="AddDispatcherForm" ref="form" :model="model" label-width="120px" :rules="rules">
<el-form-item label="车站:" prop="stationCode" style="width: 100%;"> <el-form-item label="Station:" prop="stationCode" style="width: 100%;">
<el-select v-model="model.stationCode" placeholder="" style="width:180px" @change="changeStation"> <el-select v-model="model.stationCode" placeholder="" style="width:180px" @change="changeStation">
<el-option <el-option
v-for="item in stationList" v-for="item in stationList"
@ -21,7 +21,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="列车类型:" prop="trainType"> <el-form-item label="Train Type:" prop="trainType">
<el-select v-model="model.trainType" placeholder="" style="width:180px"> <el-select v-model="model.trainType" placeholder="" style="width:180px">
<el-option <el-option
v-for="item in trainTypeList" v-for="item in trainTypeList"
@ -31,7 +31,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="运行类型:" prop="runType" style="margin-left: 45px;"> <el-form-item label="Operation Type:" prop="runType" style="margin-left: 45px;">
<el-select v-model="model.runType" placeholder="" style="width:180px"> <el-select v-model="model.runType" placeholder="" style="width:180px">
<el-option <el-option
v-for="item in runTypeList" v-for="item in runTypeList"
@ -41,13 +41,13 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="到达车次:" prop="arriveTripNumber"> <el-form-item label="Arrival:" prop="arriveTripNumber">
<el-input v-model="model.arriveTripNumber" style="width:160px" :disabled="model.startRunPlan" /> <el-input v-model="model.arriveTripNumber" style="width:160px" :disabled="model.startRunPlan" />
</el-form-item> </el-form-item>
<el-form-item label="出发车次:" prop="departTripNumber" style="margin-left: 66px;"> <el-form-item label="Departure:" prop="departTripNumber" style="margin-left: 66px;">
<el-input v-model="model.departTripNumber" style="width:160px" :disabled="model.endRunPlan" /> <el-input v-model="model.departTripNumber" style="width:160px" :disabled="model.endRunPlan" />
</el-form-item> </el-form-item>
<el-form-item label="接车口:" prop="arriveDirectionCode"> <el-form-item label="Pick-up:" prop="arriveDirectionCode">
<el-select v-model="model.arriveDirectionCode" placeholder="" style="width:180px" :disabled="model.startRunPlan"> <el-select v-model="model.arriveDirectionCode" placeholder="" style="width:180px" :disabled="model.startRunPlan">
<el-option <el-option
v-for="item in filterArrMapStationDirectionList" v-for="item in filterArrMapStationDirectionList"
@ -57,7 +57,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发车口:" prop="departDirectionCode" style="margin-left:45px;"> <el-form-item label="Departure:" prop="departDirectionCode" style="margin-left:45px;">
<el-select v-model="model.departDirectionCode" placeholder="" style="width:180px" :disabled="model.endRunPlan"> <el-select v-model="model.departDirectionCode" placeholder="" style="width:180px" :disabled="model.endRunPlan">
<el-option <el-option
v-for="item in filterDepMapStationDirectionList" v-for="item in filterDepMapStationDirectionList"
@ -67,7 +67,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="接车股道:" prop="arriveSectionCode"> <el-form-item label="Pick-up Unit:" prop="arriveSectionCode">
<el-select v-model="model.arriveSectionCode" placeholder="" style="width:160px" :disabled="model.startRunPlan"> <el-select v-model="model.arriveSectionCode" placeholder="" style="width:160px" :disabled="model.startRunPlan">
<el-option <el-option
v-for="item in filterArrSectionList" v-for="item in filterArrSectionList"
@ -77,7 +77,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发车股道:" prop="departSectionCode" style="margin-left: 67px;"> <el-form-item label="Departure:" prop="departSectionCode" style="margin-left: 67px;">
<el-select v-model="model.departSectionCode" placeholder="" style="width:160px" :disabled="model.endRunPlan"> <el-select v-model="model.departSectionCode" placeholder="" style="width:160px" :disabled="model.endRunPlan">
<el-option <el-option
v-for="item in filterDepSectionList" v-for="item in filterDepSectionList"
@ -87,23 +87,23 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="到达时间:" prop="arrivePlanTime"> <el-form-item label="Arrival time:" prop="arrivePlanTime">
<el-date-picker v-model="model.arrivePlanTime" type="datetime" :disabled="model.startRunPlan" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" style="width:160px" /> <el-date-picker v-model="model.arrivePlanTime" type="datetime" :disabled="model.startRunPlan" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" style="width:160px" />
</el-form-item> </el-form-item>
<el-form-item label="" prop="startRunPlan" class="noMargin" style="margin-left:10px;"> <el-form-item label="" prop="startRunPlan" class="noMargin" style="margin-left:10px;">
<el-checkbox v-model="model.startRunPlan" @change="changeStartRp">始发</el-checkbox> <el-checkbox v-model="model.startRunPlan" @change="changeStartRp">Departure</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item label="出发时间:" prop="departPlanTime" style="margin-left:10px;"> <el-form-item label="Departure time:" prop="departPlanTime" style="margin-left:10px;">
<el-date-picker v-model="model.departPlanTime" type="datetime" :disabled="model.endRunPlan" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" style="width:160px" /> <el-date-picker v-model="model.departPlanTime" type="datetime" :disabled="model.endRunPlan" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" style="width:160px" />
</el-form-item> </el-form-item>
<el-form-item label="" prop="endRunPlan" class="noMargin" style="margin-left:10px;"> <el-form-item label="" prop="endRunPlan" class="noMargin" style="margin-left:10px;">
<el-checkbox v-model="model.endRunPlan" @change="changeEndRp">终到</el-checkbox> <el-checkbox v-model="model.endRunPlan" @change="changeEndRp">Arrival</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item label="" prop="electrical" class="noMargin" style="margin-left:80px;"> <el-form-item label="" prop="electrical" class="noMargin" style="margin-left:80px;">
<el-checkbox v-model="model.electrical">电力</el-checkbox> <el-checkbox v-model="model.electrical">Electricity</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item label="" prop="passenger" class="noMargin" style="margin-left:10px;"> <el-form-item label="" prop="passenger" class="noMargin" style="margin-left:10px;">
<el-checkbox v-model="model.passenger">办理客运</el-checkbox> <el-checkbox v-model="model.passenger">Passenger handling</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item label="" prop="transfinite" style="margin-left:20px;" class="noMargin"> <el-form-item label="" prop="transfinite" style="margin-left:20px;" class="noMargin">
<el-select v-model="model.transfinite" placeholder="" style="width:110px"> <el-select v-model="model.transfinite" placeholder="" style="width:110px">
@ -116,11 +116,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<br> <br>
<el-form-item label="" prop="trackDiscordant" style="margin-left:80px;width: 220px;" class="noMargin"> <el-form-item label="" prop="trackDiscordant" style="margin-left: 50px;width: 600px;" class="noMargin">
<el-checkbox v-model="model.trackDiscordant">运行股道与基本径路不一致</el-checkbox> <el-checkbox v-model="model.trackDiscordant">Operating stock path and the basic path does not coincide</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item label="" prop="entryOutDiscordant" style="margin-left:90px;width: 220px;" class="noMargin"> <br>
<el-checkbox v-model="model.entryOutDiscordant">出入口与基本径路不一致</el-checkbox> <el-form-item label="" prop="entryOutDiscordant" style="margin-left: 50px;width: 600px;" class="noMargin">
<el-checkbox v-model="model.entryOutDiscordant">The entrance and exit are not consistent with the basic route</el-checkbox>
</el-form-item> </el-form-item>
<!-- trackDiscordant --> <!-- trackDiscordant -->
<!-- 运行股道与基本径路不一致 --> <!-- 运行股道与基本径路不一致 -->
@ -131,10 +132,10 @@
</el-form> </el-form>
<el-row justify="center" style="margin-top:10px"> <el-row justify="center" style="margin-top:10px">
<el-col :span="7" :offset="5"> <el-col :span="7" :offset="5">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button> <el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">Confirm</el-button>
</el-col> </el-col>
<el-col :span="7" :offset="2"> <el-col :span="7" :offset="2">
<el-button :id="domIdCancel" @click="cancel"></el-button> <el-button :id="domIdCancel" @click="cancel">Cancel</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-dialog> </el-dialog>
@ -152,12 +153,12 @@ export default {
const judge = /^[a-zA-Z0-9]*[\d]$/.test(value); const judge = /^[a-zA-Z0-9]*[\d]$/.test(value);
if (judge) { if (judge) {
if (value.toString().length > 6 || value.toString().length < 2) { if (value.toString().length > 6 || value.toString().length < 2) {
callback('车次长度2-6位'); callback('TripNumber lengths of 2-6 seats');
} else { } else {
callback(); callback();
} }
} else { } else {
callback('字母+数字,最后一位数字'); callback('Alphabet + number, last digit');
} }
} else { } else {
// callback(''); // callback('');
@ -175,7 +176,7 @@ export default {
filterSectionList:[], filterSectionList:[],
trainTypeList:trainTypeList, trainTypeList:trainTypeList,
runTypeList:[ runTypeList:[
{name:'快速旅客列车', code:'FAST_PASSENGER_TRAIN' } {name:'Fast Passenger Train', code:'FAST_PASSENGER_TRAIN' }
], ],
transfiniteList:transfiniteList, transfiniteList:transfiniteList,
model:{ model:{
@ -212,8 +213,8 @@ export default {
}, },
rules: { rules: {
stationCode:[ stationCode:[
{ required: true, message: '请选择车站', trigger: 'blur' }, { required: true, message: 'Please select the station', trigger: 'blur' },
{ required: true, message: '请选择车站', trigger: 'change' } { required: true, message: 'Please select the station', trigger: 'change' }
], ],
arriveTripNumber:[ arriveTripNumber:[
{ required: true, validator: validateTripNumber, trigger: 'blur' } { required: true, validator: validateTripNumber, trigger: 'blur' }
@ -238,7 +239,7 @@ export default {
return this.dialogShow ? OperationEvent.CTCCommand.addDispatcherLogerRp.menu.domId : ''; return this.dialogShow ? OperationEvent.CTCCommand.addDispatcherLogerRp.menu.domId : '';
}, },
title() { title() {
return '增加阶段计划车次'; return 'Adding phase plan trips';
} }
}, },
methods: { methods: {

View File

@ -11,14 +11,14 @@
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<div style="text-align: center;"> <div style="text-align: center;">
确定删除该条行车计划 Confirm the deletion of the schedule?
</div> </div>
<el-row justify="center" class="button-group" style="margin-top:20px"> <el-row justify="center" class="button-group" style="margin-top:20px">
<el-col :span="8" :offset="2"> <el-col :span="8" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button> <el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">Confirm</el-button>
</el-col> </el-col>
<el-col :span="8" :offset="3"> <el-col :span="8" :offset="3">
<el-button :id="domIdCancel" @click="cancel"></el-button> <el-button :id="domIdCancel" @click="cancel">Cancel</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-dialog> </el-dialog>

View File

@ -3,9 +3,9 @@
<div class="dispatcherLogerButton"> <div class="dispatcherLogerButton">
<div class="dispatcherLogerLine" /> <div class="dispatcherLogerLine" />
<div class="dispatcherLogerBtnGroup"> <div class="dispatcherLogerBtnGroup">
<div id="addRunplan" class="dispatcherLogerClickBtn" @click="addRunplan">添加</div> <div id="addRunplan" class="dispatcherLogerClickBtn" @click="addRunplan">Add</div>
<div id="deleteRunplan" class="dispatcherLogerClickBtn" @click="deleteRunplan">删除</div> <div id="deleteRunplan" class="dispatcherLogerClickBtn" @click="deleteRunplan">Delete</div>
<div id="sendRunplan" class="dispatcherLogerClickBtn" @click="sendRunplan">发送计划</div> <div id="sendRunplan" class="dispatcherLogerClickBtn" @click="sendRunplan">Send Plan</div>
</div> </div>
<!-- <div class="closeDL"> <!-- <div class="closeDL">
<i class="el-icon-close close_icon" @click.stop="doClose" /> <i class="el-icon-close close_icon" @click.stop="doClose" />
@ -22,6 +22,9 @@
style="width: 100%;border:1px #ccc solid" style="width: 100%;border:1px #ccc solid"
@cell-click="selectedTripNumber" @cell-click="selectedTripNumber"
> >
<template slot="empty">
<el-empty description="No data available" />
</template>
<!-- --> <!-- -->
<!-- @current-change="handleCurrentChange" --> <!-- @current-change="handleCurrentChange" -->
<el-table-column <el-table-column
@ -30,10 +33,10 @@
width="100" width="100"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.tripNumber }} {{ scope.row.status==-1?'()':'' }}</div> <div>{{ scope.row.tripNumber }} {{ scope.row.status==-1?'(deleted)':'' }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="155" prop="trainType" label="列车类型"> <el-table-column width="155" prop="trainType" label="Train type">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.trainType" class="accessName"> <div v-if="scope.row.trainType" class="accessName">
{{ trainTypeMap[scope.row.trainType] }} {{ trainTypeMap[scope.row.trainType] }}
@ -47,10 +50,10 @@
</div> </div>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column width="155" prop="arriveTripNumber" label="到达车次"> <el-table-column width="155" prop="arriveTripNumber" label="Arrivals">
<template slot-scope="scope">{{ scope.row.arriveTripNumber }}</template> <template slot-scope="scope">{{ scope.row.arriveTripNumber }}</template>
</el-table-column> </el-table-column>
<el-table-column width="155" prop="departTripNumber" label="发车车次"> <el-table-column width="155" prop="departTripNumber" label="Departure">
<template slot-scope="scope">{{ scope.row.departTripNumber }}</template> <template slot-scope="scope">{{ scope.row.departTripNumber }}</template>
</el-table-column> </el-table-column>
<!-- runPlanCode:"", stationCode:"", tripNumber:"", groupNumber:"", <!-- runPlanCode:"", stationCode:"", tripNumber:"", groupNumber:"",
@ -64,7 +67,7 @@
trackDiscordant:null/false/true, entryOutDiscordant: null/false/true, trackDiscordant:null/false/true, entryOutDiscordant: null/false/true,
transfinite: NO/TRANSFINITE_SUPER/TRANSFINITE_ONE_LEVEL/TRANSFINITE_TWO_LEVEL --> transfinite: NO/TRANSFINITE_SUPER/TRANSFINITE_ONE_LEVEL/TRANSFINITE_TWO_LEVEL -->
<!-- width="155" --> <!-- width="155" -->
<el-table-column prop="arriveDirectionCode" label="接车口"> <el-table-column prop="arriveDirectionCode" label="Pick-up gates">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.arriveDirectionCode" class="accessName" :title="scope.row.arriveDirectionCode"> <div v-if="scope.row.arriveDirectionCode" class="accessName" :title="scope.row.arriveDirectionCode">
<!-- {{ mapStationDirectionData[scope.row.arriveDirectionCode].name }} --> <!-- {{ mapStationDirectionData[scope.row.arriveDirectionCode].name }} -->
@ -87,7 +90,7 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- width="155" --> <!-- width="155" -->
<el-table-column prop="departDirectionCode" label="发车口"> <el-table-column prop="departDirectionCode" label="Departure gate">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.departDirectionCode" class="accessName" :title="scope.row.departDirectionCode"> <div v-if="scope.row.departDirectionCode" class="accessName" :title="scope.row.departDirectionCode">
<!-- {{ mapStationDirectionData[scope.row.departDirectionCode].name }} --> <!-- {{ mapStationDirectionData[scope.row.departDirectionCode].name }} -->
@ -109,7 +112,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="155" prop="arriveSectionCode" label="接车股道"> <el-table-column width="155" prop="arriveSectionCode" label="Pick-up Unit">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.arriveSectionCode" class="accessName"> <div v-if="scope.row.arriveSectionCode" class="accessName">
<el-select <el-select
@ -138,7 +141,7 @@
</div> </div>
</template> --> </template> -->
</template></el-table-column> </template></el-table-column>
<el-table-column width="155" prop="departSectionCode" label="发车股道"> <el-table-column width="155" prop="departSectionCode" label="Departure lane">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.departSectionCode" class="accessName"> <div v-if="scope.row.departSectionCode" class="accessName">
<el-select <el-select
@ -162,7 +165,7 @@
</div> --> </div> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="175" prop="arrivePlanTime" label="到达时间"> <el-table-column width="175" prop="arrivePlanTime" label="Arrival time">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.arrivePlanTime" class="accessName"> <div v-if="scope.row.arrivePlanTime" class="accessName">
<!-- {{ scope.row.arrivePlanTime }} --> <!-- {{ scope.row.arrivePlanTime }} -->
@ -170,7 +173,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="175" prop="departPlanTime" label="出发时间"> <el-table-column width="175" prop="departPlanTime" label="Departure time">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.departPlanTime" class="accessName"> <div v-if="scope.row.departPlanTime" class="accessName">
<!-- {{ scope.row.departPlanTime }} --> <!-- {{ scope.row.departPlanTime }} -->
@ -212,25 +215,25 @@ export default {
group:'', group:'',
currentRow:null, currentRow:null,
trainTypeMap:{ trainTypeMap:{
'LOCAL_EXPRESS_PASSENGER_TRAIN':'管内特快旅客列车', 'LOCAL_EXPRESS_PASSENGER_TRAIN':'Limited Express Passenger Trains',
'LOCAL_FAST_PASSENGER_TRAIN':'管内快速旅客列车', 'LOCAL_FAST_PASSENGER_TRAIN':'Fast Passenger Train',
'LOCAL_PASSENGER_TRAIN':'管内普通旅客快车', 'LOCAL_PASSENGER_TRAIN':'Ordinary passenger express',
'LOCAL_SLOW_PASSENGER_TRAIN':'管内普通旅客慢车', 'LOCAL_SLOW_PASSENGER_TRAIN':'Ordinary Passenger Slow Train',
'LOCAL_TEMPORARY_PASSENGER_TRAIN':'管内临时旅客列车', 'LOCAL_TEMPORARY_PASSENGER_TRAIN':'Temporary Passenger Train',
'LOCAL_TEMPORARY_TOURIST_TRAIN':'管内临时旅游列车', 'LOCAL_TEMPORARY_TOURIST_TRAIN':'Temporary Tourist Trains',
'FAST_PASSENGER_TRAIN':'跨局快速旅客列车', 'FAST_PASSENGER_TRAIN':'Inter-bureau Express Passenger Trains',
'TEMPORARY_TOURIST_TRAIN':'跨局临时旅游列车', 'TEMPORARY_TOURIST_TRAIN':'Inter-bureau Temporary Tourist Trains',
'TWO_PASSENGER_TRAIN':'跨两局普通旅客快车', 'TWO_PASSENGER_TRAIN':'Inter-bureau Ordinary Fast Passenger Train',
'TWO_SLOW_PASSENGER_TRAIN':'跨两局普通旅客慢车', 'TWO_SLOW_PASSENGER_TRAIN':'Inter-bureau Ordinary Passenger Slow Train',
'TWO_TEMPORARY_PASSENGER_TRAIN':'跨两局临时旅客列车', 'TWO_TEMPORARY_PASSENGER_TRAIN':'Inter-bureau temporary passenger trains',
'MORE_PASSENGER_TRAIN':'跨三局及其以上普通旅客快车', 'MORE_PASSENGER_TRAIN':'Inter-bureau ordinary passenger express trains of three or more bureaux',
'BACK_FACTORY_PASSENGER_TRAIN':'回送出入厂客车底列车', 'BACK_FACTORY_PASSENGER_TRAIN':'Return to the bottom of the passenger trains in and out of the factory',
'FAULT_TRUE_BACK_PASSENGER_TRAIN':'因故折返旅客列车' 'FAULT_TRUE_BACK_PASSENGER_TRAIN':'Return passenger trains for reasons'
}, },
runTypeMap:{'FAST_PASSENGER_TRAIN':'快速旅客列车'} runTypeMap:{'FAST_PASSENGER_TRAIN':'Fast Passenger Train'}
}; };
}, },
computed: { computed: {
@ -374,17 +377,17 @@ export default {
sendRunplan() { sendRunplan() {
// stationSignRunplan // stationSignRunplan
const that = this; const that = this;
this.$confirm('确定发布所有行车计划?', '提示', { this.$confirm('Sure to send all schedules?', 'Hint', {
confirmButtonText: '确定', confirmButtonText: 'Confirm',
cancelButtonText: '取消', cancelButtonText: 'Cancel',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
commitOperate(menuOperate.CTC.releaseAllDispatcherLogerRp, {}, 3).then(({valid})=>{ commitOperate(menuOperate.CTC.releaseAllDispatcherLogerRp, {}, 3).then(({valid})=>{
if (valid) { if (valid) {
that.$message.success('发布成功'); that.$message.success('Successful release');
} }
}).catch(() => { }).catch(() => {
that.$message.error('发布失败'); that.$message.error('Publishing failure!');
}); });
}).catch(e => {}); }).catch(e => {});
}, },

View File

@ -2,7 +2,7 @@
<div> <div>
<div v-verticalDrag class="terminalList"> <div v-verticalDrag class="terminalList">
<div class="drag-line verticalDrag__header" /> <div class="drag-line verticalDrag__header" />
<div class="client-button" @click="showClientList">客户端</div> <div class="client-button" @click="showClientList">Client</div>
<div class="drag-line verticalDrag__footer" /> <div class="drag-line verticalDrag__footer" />
</div> </div>
<el-drawer <el-drawer
@ -14,12 +14,12 @@
:before-close="handleClose" :before-close="handleClose"
> >
<div class="my-drawer-body"> <div class="my-drawer-body">
<div class="my-drawer-title">客户端列表</div> <div class="my-drawer-title">Client list</div>
<div style="width: 100%;height: calc(100% - 80px);overflow-y: auto;"> <div style="width: 100%;height: calc(100% - 80px);overflow-y: auto;">
<template v-for="terminal in terminalList"> <template v-for="terminal in terminalList">
<div :key="terminal.id" class="terminal-button"> <div :key="terminal.id" class="terminal-button">
<div class="terminal-button-name" :class="{ active: terminal.id === nowTerminal.id }" @click="changePictureShow(terminal)">{{ terminal.name }}</div> <div class="terminal-button-name" :class="{ active: terminal.id === nowTerminal.id }" @click="changePictureShow(terminal)">{{ terminal.name }}</div>
<div v-if="!trainingDesign" class="terminal-button-text" @click="openNewWindow(terminal)">新窗口打开</div> <div v-if="!trainingDesign" class="terminal-button-text" @click="openNewWindow(terminal)">Open in new window</div>
</div> </div>
</template> </template>
</div> </div>
@ -135,7 +135,7 @@ export default {
const mapClientList = mapClientMap ? mapClientMap[this.$route.query.simType] : []; const mapClientList = mapClientMap ? mapClientMap[this.$route.query.simType] : [];
if (!mapClientList.length) { if (!mapClientList.length) {
this.$store.dispatch('app/animationsClose'); this.$store.dispatch('app/animationsClose');
this.$messageBox('为获取到客户端数据,请查验地图数据!'); this.$messageBox('Client data not acquired, please check map data!');
} }
mapClientList.forEach(client => { mapClientList.forEach(client => {
if (clientIdList && clientIdList.length) { if (clientIdList && clientIdList.length) {
@ -242,7 +242,7 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
top: 45%; top: 45%;
width: 25px; width: 50px;
padding: 1px; padding: 1px;
background: #fff; background: #fff;
border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px;

View File

@ -44,22 +44,22 @@ export default {
indexShow: true, indexShow: true,
columns: [ columns: [
{ {
title: '仿真ID', title: 'Simulation ID',
prop: 'id' prop: 'id'
}, },
{ {
title: '仿真状态', title: 'Simulation state',
prop: 'state', prop: 'state',
type: 'tag', type: 'tag',
columnValue: (row) => { columnValue: (row) => {
if (row.state === 1) { return '仿真开始'; } else if (row.state === 0) { return '仿真暂停'; } else if (row.state === 4) { return '仿真错误'; } else { return '未知状态'; } if (row.state === 1) { return 'Start of simulation'; } else if (row.state === 0) { return 'Simulation pause'; } else if (row.state === 4) { return 'Simulation error'; } else { return 'Unknown state'; }
}, },
tagType: (row) => { tagType: (row) => {
return 'success'; return 'success';
} }
}, },
{ {
title: '仿真倍速', title: 'Simulation speed',
prop: 'speed' prop: 'speed'
}, },
{ {
@ -78,12 +78,12 @@ export default {
title: this.$t('global.operate'), title: this.$t('global.operate'),
buttons: [ buttons: [
{ {
name: '仿真用户信息', name: 'Simulated user information',
handleClick: this.viewMember, handleClick: this.viewMember,
type: '' type: ''
}, },
{ {
name: '进入仿真', name: 'Enter simulation',
handleClick: this.enterSimulation, handleClick: this.enterSimulation,
type: '' type: ''
}, },

View File

@ -114,9 +114,9 @@ export default {
prop: 'permissionName' prop: 'permissionName'
}, },
{ {
title: '权限类型', title: 'Permission type',
prop: 'permissionType', prop: 'permissionType',
width: '80', width: '130',
type: 'tag', type: 'tag',
columnValue: (row) => { return this.$ConstSelect.translate(row.permissionType, 'permissionTypeList'); }, columnValue: (row) => { return this.$ConstSelect.translate(row.permissionType, 'permissionTypeList'); },
tagType: (row) => { return ''; } tagType: (row) => { return ''; }
@ -130,15 +130,15 @@ export default {
// tagType: (row) => { return ''; } // tagType: (row) => { return ''; }
// }, // },
{ {
title: '功能', title: 'Function',
prop: 'systemAbilityList', prop: 'systemAbilityList',
type: 'tagMore', type: 'tagMore',
columnValue: (row) => { return this.getAbilityList(row.systemAbilityList); }, columnValue: (row) => { return this.getAbilityList(row.systemAbilityList); },
tagType: (row) => { return ''; } tagType: (row) => { return ''; }
}, },
{ {
title: this.$t('permission.isForever'), title: 'Permanent or not',
width: '80', width: '140',
prop: 'forever', prop: 'forever',
type: 'tag', type: 'tag',
columnValue: (row) => { return this.$ConstSelect.translate(row.forever, 'Whether'); }, columnValue: (row) => { return this.$ConstSelect.translate(row.forever, 'Whether'); },
@ -173,7 +173,7 @@ export default {
{ {
title: this.$t('permission.permissionStatus'), title: this.$t('permission.permissionStatus'),
prop: 'status', prop: 'status',
width: '80', width: '145',
type: 'tag', type: 'tag',
columnValue: (row) => { return this.$ConstSelect.translate(row.status, 'EffectiveTypeList'); }, columnValue: (row) => { return this.$ConstSelect.translate(row.status, 'EffectiveTypeList'); },
tagType: (row) => { tagType: (row) => {
@ -246,11 +246,11 @@ export default {
const data = res.data; const data = res.data;
if (data) { if (data) {
const h = this.$createElement; const h = this.$createElement;
const msgData = [h('p', null, '存在未完成的仿真'), h('p', null, `线路${data.map.name}`), h('p', null, `功能${data.mapFunctionVO.name}`)]; const msgData = [h('p', null, 'There are unfinished simulations'), h('p', null, `Line${data.map.name}`), h('p', null, `Function${data.mapFunctionVO.name}`)];
this.$confirm('', '警告', { this.$confirm('', 'Warning', {
message: h('div', null, msgData), message: h('div', null, msgData),
confirmButtonText: '继续仿真', confirmButtonText: 'Continue simulation',
cancelButtonText: system ? '退出并新建仿真' : '退出仿真', cancelButtonText: system ? 'Exit and create a new simulation' : 'Exit simulation',
type: 'warning', type: 'warning',
// showClose: false, // x // showClose: false, // x
distinguishCancelAndClose: true, // closecancel distinguishCancelAndClose: true, // closecancel
@ -323,7 +323,7 @@ export default {
}); });
this.collapse = this.subsetList[0]; this.collapse = this.subsetList[0];
}).catch(() => { }).catch(() => {
this.$message.error('获取地图子系统列表失败!'); this.$message.error('Failed to get map subsystem list!');
}); });
}, },
loadInitData() { loadInitData() {
@ -369,7 +369,7 @@ export default {
launchFullscreen(); launchFullscreen();
}).catch(error=>{ }).catch(error=>{
if (error.code == 10003) { if (error.code == 10003) {
this.$messageBox(this.$t('error.createSimulationFailed') + '您的仿真权限不足!'); this.$messageBox(this.$t('error.createSimulationFailed') + 'Your emulation rights are insufficient!');
} else { } else {
this.$messageBox(this.$t('error.createSimulationFailed') + error.message); this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
} }
@ -393,7 +393,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
const errorMessage = this.isShow ? this.$t('tip.failedToAddNewRoom') : this.$t('error.scanningError'); const errorMessage = this.isShow ? this.$t('tip.failedToAddNewRoom') : this.$t('error.scanningError');
this.$messageBox(`${errorMessage}:请稍后再试`); this.$messageBox(`${errorMessage}:Please try again later`);
}); });
} }
}); });