This commit is contained in:
sunzhenyu 2020-11-23 14:27:22 +08:00
commit 28d0891365
165 changed files with 1321 additions and 1127 deletions

View File

@ -137,13 +137,6 @@ export function getUserinfoPassword(id, data) {
}); });
} }
// 获取当前用户数量
export function getOnlineNmuber() {
return request({
url: `/api/cache/onlineUser`,
method: 'get'
});
}
// 生成线下环境用户 // 生成线下环境用户
export function generateOfflineUser(data) { export function generateOfflineUser(data) {
return request({ return request({

View File

@ -188,6 +188,20 @@ export default {
}, },
mounted() { mounted() {
this.content = this.value; this.content = this.value;
const that = this;
document.addEventListener('click', (e) => {
const emojiElem = document.getElementById('emoji-palette');
const emojiButtonList = document.getElementsByClassName('ql-emoji');
let flag = true;
for (let i = 0; i < emojiButtonList.length; i++) {
if (emojiButtonList[i].contains(e.target)) {
flag = false;
}
}
if (emojiElem && !emojiElem.contains(e.target) && flag) {
that.closeEmoji();
}
});
}, },
methods: { methods: {
onChange(e) { onChange(e) {
@ -209,6 +223,11 @@ export default {
}, },
setContents(val) { setContents(val) {
this.$refs.editor.quill.setContents(val); this.$refs.editor.quill.setContents(val);
},
closeEmoji() {
const ele_emoji_plate = document.getElementById('emoji-palette');
document.getElementById('emoji-close-div').style.display = 'none';
if (ele_emoji_plate) { ele_emoji_plate.remove(); }
} }
} }
}; };
@ -226,6 +245,20 @@ export default {
left: -30px; left: -30px;
} }
} }
/deep/ #emoji-palette{
top: -215 !important;
left: 0 !important;
max-width: 550px;
width: 550px;
#tab-toolbar{ text-align: left}
}
}
/deep/ #emoji-palette{
top: -215px !important;
left: 850px !important;
max-width: 550px;
width: 550px;
#tab-toolbar{ text-align: left}
#tab-panel{ height:175px}
} }
</style> </style>

View File

@ -646,7 +646,7 @@ class SkinCode extends defaultStyle {
trainHeadArrowOffsetX: 2 // 列车车头三角偏移 trainHeadArrowOffsetX: 2 // 列车车头三角偏移
}, },
common: { common: {
trainHeight: 17, // 列车高度 trainHeight: 10, // 列车高度
trainHeadDistance: 2, // 列车和车头之间的间距 trainHeadDistance: 2, // 列车和车头之间的间距
trainWidth: 76, // 列车长度 trainWidth: 76, // 列车长度
trainTextFontSize: 10, // 列车字号 trainTextFontSize: 10, // 列车字号

View File

@ -125,7 +125,7 @@ deviceState[deviceType.StationStand] = {
assignSkip: 0, // 是否指定跳停 assignSkip: 0, // 是否指定跳停
runLevelTime: 0, // 区间运行时间 自动为 0 runLevelTime: 0, // 区间运行时间 自动为 0
parkingTime: 0, // 站台停车时间 自动为0 parkingTime: 0, // 站台停车时间 自动为0
num:0, // 站台上等车人数
// /** 折返策略*/ // /** 折返策略*/
// reentryStrategy: { // reentryStrategy: {
// Default: '01', /** 默认(缺省值)*/ // Default: '01', /** 默认(缺省值)*/
@ -246,7 +246,9 @@ deviceState[deviceType.Train] = {
/** 列车精确位置 (成都一号线使用)*/ /** 列车精确位置 (成都一号线使用)*/
offsetp:0, offsetp:0,
/** 列车所在物理区段 */ /** 列车所在物理区段 */
physicalCode:'' physicalCode:'',
/** 列车上的人数 */
num:0
}; };

View File

@ -24,7 +24,8 @@ class Status {
assignSkip: device.assignSkip, // 是否指定跳停 assignSkip: device.assignSkip, // 是否指定跳停
runLevelTime: device.runLevelTime, // 区间运行时间 自动为 0 runLevelTime: device.runLevelTime, // 区间运行时间 自动为 0
parkingTime: device.parkingTime, // 站台停车时间 自动为0 parkingTime: device.parkingTime, // 站台停车时间 自动为0
fault: device.fault /** 非故障*/ fault: device.fault, /** 非故障*/
num:device.num
}; };
} }
handleSection(device) { handleSection(device) {
@ -94,7 +95,8 @@ class Status {
jump: device.jump, /** 是否跳停 */ jump: device.jump, /** 是否跳停 */
hold: device.hold, /** 是否扣车 */ hold: device.hold, /** 是否扣车 */
offsetp:device.offsetp, /** 列车精确位置 (成都一号线使用)*/ offsetp:device.offsetp, /** 列车精确位置 (成都一号线使用)*/
physicalCode:device.physicalCode /** 列车所在物理区段 */ physicalCode:device.physicalCode, /** 列车所在物理区段 */
num:device.num /** 列车上的人数*/
}; };
} }
handleStation(device) { handleStation(device) {

View File

@ -41,14 +41,34 @@ class ESolidStand extends Group {
setState(model) { setState(model) {
const style = this.model.style; const style = this.model.style;
// 列车跳停 const path = window.location.href;
model.assignSkip && this.setColor(style.StationStand.solidStand.designatedJumpStopColor); if (!path.includes('/practiceDisplay')) {
// 全部跳停 // 列车跳停
model.allSkip && this.setColor(style.StationStand.solidStand.jumpStopColor); model.assignSkip && this.setColor(style.StationStand.solidStand.designatedJumpStopColor);
// 停车 // 全部跳停
model.trainParking && this.setColor(style.StationStand.solidStand.stopColor); model.allSkip && this.setColor(style.StationStand.solidStand.jumpStopColor);
// 紧急停车 // 停车
model.emergencyClosed && this.setColor(this.style.StationStand.solidStand.spareColor); model.trainParking && this.setColor(style.StationStand.solidStand.stopColor);
// 紧急停车
model.emergencyClosed && this.setColor(this.style.StationStand.solidStand.spareColor);
} else {
this.handlePassagerColor(model.num);
}
}
handlePassagerColor(num) {
if (num && num > 0) {
const passagerNum = parseInt(num);
if (passagerNum < 40) {
this.setColor('#29a909');
} else if (passagerNum < 80 && passagerNum >= 40) {
this.setColor('#ffa500');
} else {
this.setColor('#F00');
}
} else {
this.setColor('#29a909');
}
} }
} }

View File

@ -47,12 +47,12 @@ class EMouse extends Group {
direction = this.device.model.right != 1; direction = this.device.model.right != 1;
} }
if (LangStorage.getLang() == 'en') { if (LangStorage.getLang() == 'en') {
text = ` The planned train: ${trainType} \n Table No.: ${this.device.model.serviceNumber} \n Train Trip No.: ${this.device.model.tripNumber}\n Destination: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n Train No.: ${this.device.model.groupNumber}\n Early or late: ${destinationText}\n Direction: ${direction ? 'up' : 'down'}\n Crew No.: \n Start Station: \n Terminal Station: \n Occupied Track: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n Current Station: \n Train-ground communication: normal \n Operation Speed level: 4 \n Detained: ${this.device.model.hold ? 'Detained' : 'Normal'}\n \n 跳停状态: ${this.device.model.jump ? 'Skip to continue moving' : 'Normal'}Stationary: ${!this.device.model.stop ? 'No' : 'Yes'}\n Blocked: No \n Speed: ${this.device.model.speed || 0} km/h \n Authorized Distance: ${this.device.model.maLen || 0} m`; text = ` The planned train: ${trainType} \n Table No.: ${this.device.model.serviceNumber} \n Train Trip No.: ${this.device.model.tripNumber}\n Destination: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n Train No.: ${this.device.model.groupNumber}\n Early or late: ${destinationText}\n Direction: ${direction ? 'up' : 'down'}\n Crew No.: \n Start Station: \n Terminal Station: \n Occupied Track: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n Current Station: \n Train-ground communication: normal \n Operation Speed level: 4 \n Detained: ${this.device.model.hold ? 'Detained' : 'Normal'}\n \n 跳停状态: ${this.device.model.jump ? 'Skip to continue moving' : 'Normal'}Stationary: ${!this.device.model.stop ? 'No' : 'Yes'}\n Blocked: No \n Speed: ${this.device.model.speed || 0} km/h \n Authorized Distance: ${this.device.model.maLen || 0} m\nNumber of people: ${this.device.model.num ? this.device.model.num : 0}`;
} else { } else {
if (Vue.prototype.$jlmap.lineCode == '11' || Vue.prototype.$jlmap.lineCode == '10') { if (Vue.prototype.$jlmap.lineCode == '11' || Vue.prototype.$jlmap.lineCode == '10') {
text = `列车类型: ${trainType}\n\0\0\0\0源:人工标记\n\0\0号: ${this.device.model.groupNumber}\n\0\0\0\0号: ${this.device.model.serviceNumber}\n\0\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n\0\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\nATP报告方向: ${direction ? '上行' : '下行'}\n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车次通信: 通信车\n运行时间: \n停站时间: \n扣车状态: ${ this.device.model.hold ? '扣车' : '正常'}\n车载扣车: 不执行\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'}\n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车状态: ${this.device.model.runLevel || 'CTC'}\n最高信号系统控制: CTC\n驾驶模式: ${this.device.model.driveMode}模式\n最高ATP模式: AM\nATP1状态: 激活\nATP2状态: 备用\n速度: ${this.device.model.speed || 0} km/h\n车门状态: ${this.device.model.speed ? '关闭' : direction ? '左开右关' : '左关右开'}\n制动状态: 无紧急制动\n停车保证: 可保证停车\n站台无法进入: 否\n前方站台停车点: 中间\n折法策略: \n折返状态: \n屏蔽门开门许可: 是\n运营里程: 无效\n总重量: 196T\n车长: 11860cm\n列车编组: 1`; text = `列车类型: ${trainType}\n\0\0\0\0源:人工标记\n\0\0号: ${this.device.model.groupNumber}\n\0\0\0\0号: ${this.device.model.serviceNumber}\n\0\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n\0\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\nATP报告方向: ${direction ? '上行' : '下行'}\n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车次通信: 通信车\n运行时间: \n停站时间: \n扣车状态: ${ this.device.model.hold ? '扣车' : '正常'}\n车载扣车: 不执行\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'}\n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车状态: ${this.device.model.runLevel || 'CTC'}\n最高信号系统控制: CTC\n驾驶模式: ${this.device.model.driveMode}模式\n最高ATP模式: AM\nATP1状态: 激活\nATP2状态: 备用\n速度: ${this.device.model.speed || 0} km/h\n车门状态: ${this.device.model.speed ? '关闭' : direction ? '左开右关' : '左关右开'}\n制动状态: 无紧急制动\n停车保证: 可保证停车\n站台无法进入: 否\n前方站台停车点: 中间\n折法策略: \n折返状态: \n屏蔽门开门许可: 是\n运营里程: 无效\n总重量: 196T\n车长: 11860cm\n列车编组: 1`;
} else { } else {
text = `列车类型: ${trainType} \n\0\0\0\0号: ${this.device.model.serviceNumber}\n\0\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n\0\0号: ${this.device.model.groupNumber}\n\0\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\n乘务组号: \n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车地通信: 正常\n运行等级: 4\n扣车状态: ${this.device.model.hold ? '扣车' : '正常'}\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'} \n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车速度: ${this.device.model.speed || 0} km/h\n列车移动授权距离: ${this.device.model.maLen || 0} m`; text = `列车类型: ${trainType} \n\0\0\0\0号: ${this.device.model.serviceNumber}\n\0\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n\0\0号: ${this.device.model.groupNumber}\n\0\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\n乘务组号: \n起点站名: \n终点站名: \n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车地通信: 正常\n运行等级: 4\n扣车状态: ${this.device.model.hold ? '扣车' : '正常'}\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'} \n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车速度: ${this.device.model.speed || 0} km/h\n列车移动授权距离: ${this.device.model.maLen || 0} m${this.device.model.num ? '\n车内人数: ' + this.device.model.num : ''}`;
} }
} }
const trainTip = this.device.style.Train.common.trainTip; const trainTip = this.device.style.Train.common.trainTip;

View File

@ -289,7 +289,8 @@ export default class TrainBody extends Group {
this.deviceModel.down = false; this.deviceModel.down = false;
} }
setTrainColor(color) { setTrainColor(color) {
this.trainBodyBox && this.trainBodyBox.setStyle('fill', color); this.trainBodyBox && this.trainBodyBox.setColor('fill', color);
// Style('fill', color);
} }
setHShow(isShow) { setHShow(isShow) {
if (this.textH) { if (this.textH) {

View File

@ -84,6 +84,7 @@ export default class Train extends Group {
hold:model.hold, hold:model.hold,
jump:model.jump, jump:model.jump,
stop:model.stop, stop:model.stop,
num:model.num,
dt: model.dt, dt: model.dt,
driveMode: model.driveMode, driveMode: model.driveMode,
model: model model: model
@ -335,24 +336,36 @@ export default class Train extends Group {
const flag = model.trainWindowModel ? model.trainWindowModel.reversal : false; const flag = model.trainWindowModel ? model.trainWindowModel.reversal : false;
if (model) { if (model) {
this.recover(); this.recover();
if (this.style.Train.common.trainHeadColorChangeMode) { // if (this.style.Train.common.trainHeadColorChangeMode) {
this.setDriveMode(model.driveMode + model.runLevel); // this.setDriveMode(model.driveMode + model.runLevel);
} else { // } else {
this.setDriveMode(model.driveMode); // this.setDriveMode(model.driveMode);
} // }
this.setRunStatus(model.stop, flag); this.setRunStatus(model.stop, flag);
this.setCommunicationStatus(model.runLevel); const path = window.location.href;
if (!path.includes('/practiceDisplay')) {
if (this.style.Train.common.trainHeadColorChangeMode) {
this.setDriveMode(model.driveMode + model.runLevel);
} else {
this.setDriveMode(model.driveMode);
}
this.setCommunicationStatus(model.runLevel);
this.setSoonerOrLater(model.dt);
}
this.setDoorStatus(model.doorCloseLock); this.setDoorStatus(model.doorCloseLock);
this.setAlarmStatus(model.alarmStatus); this.setAlarmStatus(model.alarmStatus);
this.setHoldStatus(model.hold); this.setHoldStatus(model.hold);
this.setJumpStatus(model.jump); this.setJumpStatus(model.jump);
this.setSoonerOrLater(model.dt); // this.setSoonerOrLater(model.dt);
this.setTrainTypeColor(model.type); this.setTrainTypeColor(model.type);
this.setPlanRoutingTypeColor(model.planRoutingType); this.setPlanRoutingTypeColor(model.planRoutingType);
const style = this.style; const style = this.style;
if (style.Section.trainPosition.display) { if (style.Section.trainPosition.display) {
this.updateSection(object); this.updateSection(object);
} }
if (path.includes('/practiceDisplay')) {
this.handlePassagerColor(model.num);
}
} }
} }
setTrainTypeColor(type) { setTrainTypeColor(type) {
@ -365,6 +378,31 @@ export default class Train extends Group {
this.trainB && this.trainB.removeTrainDetail(); this.trainB && this.trainB.removeTrainDetail();
} }
handlePassagerColor(num) {
if (num) {
// && num > 0
const passagerNum = parseInt(num);
if (passagerNum < 100) {
this.trainB && this.trainB.setTrainColor('#29a909');
this.trainL && this.trainL.setColor('#29a909');
this.trainR && this.trainR.setColor('#29a909');
} else if (passagerNum < 200 && passagerNum >= 100) {
this.trainB && this.trainB.setTrainColor('#ffa500');
this.trainL && this.trainL.setColor('#ffa500');
this.trainR && this.trainR.setColor('#ffa500');
} else {
this.trainB && this.trainB.setTrainColor('#F00');
this.trainL && this.trainL.setColor('#F00');
this.trainR && this.trainR.setColor('#F00');
}
} else {
this.trainB && this.trainB.setTrainColor('#29a909');
this.trainL && this.trainL.setColor('#29a909');
this.trainR && this.trainR.setColor('#29a909');
}
}
getBoundingRect() { getBoundingRect() {
const list = [this.trainB, this.trainL, this.trainR]; const list = [this.trainB, this.trainL, this.trainR];
let rect = null; let rect = null;

View File

@ -407,8 +407,9 @@ export default {
[`集中站 ${this.model.stationName} 区段 ${this.model.sectionName}报告恢复计轴有效`]); [`集中站 ${this.model.stationName} 区段 ${this.model.sectionName}报告恢复计轴有效`]);
} }
}).catch((error) => { }).catch((error) => {
console.error(error);
this.loading = false; this.loading = false;
this.$refs.noticeInfo.doShow(operate, error.message); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
if (this.model.stationName != this.model.confirmStationName) { if (this.model.stationName != this.model.confirmStationName) {

View File

@ -121,7 +121,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -149,7 +149,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -178,7 +178,7 @@ export default {
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.$refs.noticeInfo && this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo && this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -196,7 +196,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} else { } else {
this.doClose(); this.doClose();

View File

@ -100,7 +100,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -119,7 +119,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -148,7 +148,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -146,7 +146,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -148,7 +148,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -127,7 +127,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -148,7 +148,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -148,7 +148,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -130,7 +130,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -132,7 +132,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -356,7 +356,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
selectedChange() { selectedChange() {
@ -384,7 +384,7 @@ export default {
this.$refs.password.doShow(operate); this.$refs.password.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
@ -407,7 +407,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
break; break;
@ -429,7 +429,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
break; break;

View File

@ -124,7 +124,8 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -151,7 +151,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
@ -175,7 +175,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -151,7 +151,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
@ -175,7 +175,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -135,13 +135,11 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -118,8 +118,6 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;

View File

@ -135,13 +135,10 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate);
}); });
} else { } else {
return false; return false;

View File

@ -180,7 +180,7 @@ export default {
if (selectType.fault) { if (selectType.fault) {
this.faultUnlock(selectType); this.faultUnlock(selectType);
} else { } else {
this.$refs.noticeInfo.doShow({}, `该区段[${selectType.name}(${selectType.code})]没有故障`); this.$refs.noticeInfo.doShow(`该区段[${selectType.name}(${selectType.code})]没有故障`);
} }
break; break;
} }

View File

@ -207,7 +207,7 @@ export default {
if (route) { if (route) {
this.setRoute(route); this.setRoute(route);
} else { } else {
this.$refs.noticeInfo.doShow({}, `没有以[${this.oldSelected.name}(${this.oldSelected.code})]为始端信号机,以[${selectType.name}(${selectType.code})] 为终端信号机的进路`); this.$refs.noticeInfo.doShow(`没有以[${this.oldSelected.name}(${this.oldSelected.code})]为始端信号机,以[${selectType.name}(${selectType.code})] 为终端信号机的进路`);
} }
this.clickNum = 0; this.clickNum = 0;
} else { } else {
@ -244,7 +244,7 @@ export default {
case OperationEvent.Signal.reopenSignal.button.operation: { case OperationEvent.Signal.reopenSignal.button.operation: {
// //
if (selectType.greenOpen) { if (selectType.greenOpen) {
this.$refs.noticeInfo.doShow({}, `信号机[${selectType.name}(${selectType.code})]已开启,无需重开信号机`); this.$refs.noticeInfo.doShow(`信号机[${selectType.name}(${selectType.code})]已开启,无需重开信号机`);
} else { } else {
// //
this.reopenSignalByRoute(selectType); this.reopenSignalByRoute(selectType);
@ -266,7 +266,7 @@ export default {
} }
} else { } else {
this.$refs.noticeInfo.doShow({}, `信号机[${selectType.name}(${selectType.code})]没有已锁闭进路,不能设置联锁自动进路`); this.$refs.noticeInfo.doShow(`信号机[${selectType.name}(${selectType.code})]没有已锁闭进路,不能设置联锁自动进路`);
} }
break; break;
} }
@ -313,7 +313,8 @@ export default {
setRoute(route) { setRoute(route) {
commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:route.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:route.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -328,7 +329,8 @@ export default {
cancelTrainRouteByLow(selectType) { cancelTrainRouteByLow(selectType) {
commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -344,7 +346,8 @@ export default {
reopenSignalByRoute(selectType) { reopenSignalByRoute(selectType) {
commitOperate(menuOperate.Signal.reopenSignal, {signalCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Signal.reopenSignal, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -367,7 +370,8 @@ export default {
signalCloseByLow(selectType) { signalCloseByLow(selectType) {
commitOperate(menuOperate.Signal.signalClose, {signalCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Signal.signalClose, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -390,14 +394,16 @@ export default {
singalPassModel(selectType) { singalPassModel(selectType) {
commitOperate(menuOperate.Signal.setAutoInterlock, {signalCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Signal.setAutoInterlock, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
singalCancelPassModel(selectType) { singalCancelPassModel(selectType) {
commitOperate(menuOperate.Signal.cancelAutoInterlock, {signalCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Signal.cancelAutoInterlock, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -198,7 +198,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -214,7 +214,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -223,14 +223,16 @@ export default {
setDetainTrainByLow(selectType) { setDetainTrainByLow(selectType) {
commitOperate(menuOperate.StationStand.setDetainTrain, {standCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.StationStand.setDetainTrain, {standCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
/** 取消扣车 */ /** 取消扣车 */
cancleDetainTrainByLow(selectType) { cancleDetainTrainByLow(selectType) {
commitOperate(menuOperate.StationStand.cancelDetainTrain, {standCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.StationStand.cancelDetainTrain, {standCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -226,7 +226,8 @@ export default {
lock(selectType) { lock(selectType) {
commitOperate(menuOperate.Switch.lock, {switchCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Switch.lock, {switchCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -236,7 +237,8 @@ export default {
this.$refs.switchControl.doShow(operate, selectType); this.$refs.switchControl.doShow(operate, selectType);
} }
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -247,21 +249,24 @@ export default {
} }
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
locate(selectType) { locate(selectType) {
commitOperate(menuOperate.Switch.locate, {switchCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Switch.locate, {switchCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
reverse(selectType) { reverse(selectType) {
commitOperate(menuOperate.Switch.reverse, {switchCode:selectType.code}, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Switch.reverse, {switchCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -330,10 +330,6 @@ export default {
}); });
}, },
nextStation() { nextStation() {
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Drive_Ahead', commandType: 'Drive_Ahead',
@ -342,14 +338,11 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
routeBlockRun() { routeBlockRun() {
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Route_Block_Drive', commandType: 'Route_Block_Drive',
@ -358,7 +351,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverFuideSignal() { handleOverFuideSignal() {
@ -370,7 +364,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverEedLight() { handleOverEedLight() {
@ -382,7 +377,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -397,10 +393,10 @@ export default {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
undeveloped() { undeveloped() {

View File

@ -226,12 +226,12 @@ export default {
// if (valid) { // if (valid) {
// this.doClose(); // this.doClose();
// } else { // } else {
// // this.$refs.noticeInfo.doShow(operate); // // this.$refs.noticeInfo.doShow();
// } // }
// }).catch(error => { // }).catch(error => {
// this.loading = false; // this.loading = false;
// this.doClose(); // this.doClose();
// // this.$refs.noticeInfo.doShow(operate); // // this.$refs.noticeInfo.doShow();
// }); // });
// } else { // } else {
// return false; // return false;

View File

@ -152,12 +152,12 @@ export default {
// if (valid) { // if (valid) {
// this.doClose(); // this.doClose();
// } else { // } else {
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
// } // }
// }).catch(() => { // }).catch(() => {
// this.loading = false; // this.loading = false;
// this.doClose(); // this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
// }); // });
// } else { // } else {
// return false; // return false;

View File

@ -226,12 +226,12 @@ export default {
// if (valid) { // if (valid) {
// this.doClose(); // this.doClose();
// } else { // } else {
// // this.$refs.noticeInfo.doShow(operate); // // this.$refs.noticeInfo.doShow();
// } // }
// }).catch(error => { // }).catch(error => {
// this.loading = false; // this.loading = false;
// this.doClose(); // this.doClose();
// // this.$refs.noticeInfo.doShow(operate); // // this.$refs.noticeInfo.doShow();
// }); // });
// } else { // } else {
// return false; // return false;

View File

@ -129,7 +129,7 @@ export default {
} }
}, 1000).catch(() => { }, 1000).catch(() => {
this.loading = true; this.loading = true;
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -123,7 +123,6 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
// this.doClose(); // this.doClose();
// this.$refs.noticeInfo.doShow(operate);
}); });
} }
} }

View File

@ -186,10 +186,10 @@ export default {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} else { } else {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -258,7 +258,7 @@ export default {
this.$refs.routeControl.doShow(step, this.selected); this.$refs.routeControl.doShow(step, this.selected);
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -311,7 +311,7 @@ export default {
}); });
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
checkRoutes(routes) { checkRoutes(routes) {
@ -377,7 +377,7 @@ export default {
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.lock.menu.operation, name: '终端信号机封锁', cmdType:CMD.Signal.CMD_SIGNAL_BLOCK}}); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.lock.menu.operation, name: '终端信号机封锁', cmdType:CMD.Signal.CMD_SIGNAL_BLOCK}});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -142,12 +142,12 @@ export default {
// if (valid) { // if (valid) {
// this.doClose(); // this.doClose();
// } else { // } else {
// // this.$refs.noticeInfo.doShow(operate); // // this.$refs.noticeInfo.doShow();
// } // }
// }).catch(error => { // }).catch(error => {
// this.loading = false; // this.loading = false;
// this.doClose(); // this.doClose();
// // this.$refs.noticeInfo.doShow(operate); // // this.$refs.noticeInfo.doShow();
// }); // });
// } else { // } else {
// return false; // return false;

View File

@ -217,7 +217,7 @@ export default {
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
triggerFaultManagement() { triggerFaultManagement() {

View File

@ -240,10 +240,6 @@ export default {
}); });
}, },
nextStation() { nextStation() {
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Drive_Ahead', commandType: 'Drive_Ahead',
@ -252,14 +248,11 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
routeBlockRun() { routeBlockRun() {
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Route_Block_Drive', commandType: 'Route_Block_Drive',
@ -268,7 +261,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverFuideSignal() { handleOverFuideSignal() {
@ -280,7 +274,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverEedLight() { handleOverEedLight() {
@ -292,7 +287,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -308,10 +304,10 @@ export default {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -327,7 +323,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainControl.doShow(operate, this.selected); this.$refs.trainControl.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },
@ -344,7 +340,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainControl.doShow(operate, this.selected); this.$refs.trainControl.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },
@ -361,7 +357,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainControl.doShow(operate, this.selected); this.$refs.trainControl.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },
@ -378,7 +374,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainDetailInfo.doShow(operate, this.selected); this.$refs.trainDetailInfo.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },

View File

@ -117,7 +117,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -149,7 +149,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -183,7 +183,7 @@ export default {
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.$refs.noticeInfo && this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo && this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -180,7 +180,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -232,12 +232,12 @@ export default {
this.doClose(); this.doClose();
} else { } else {
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
}, },

View File

@ -238,7 +238,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -250,7 +251,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -271,7 +271,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} }
}, },
@ -285,7 +286,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -567,7 +567,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -257,7 +257,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;
@ -281,7 +281,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;
@ -305,7 +305,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -117,7 +117,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -148,7 +148,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -131,7 +131,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -143,7 +143,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -171,7 +171,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -160,7 +160,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -179,7 +179,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); console.error(error);
// this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -238,7 +238,8 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
resetPosition() { resetPosition() {
@ -356,11 +357,12 @@ export default {
}); });
if (!flag) { if (!flag) {
this.deviceList = []; this.deviceList = [];
this.$refs.noticeInfo.doShow(operate, '未找到选择进路!'); this.$refs.noticeInfo.doShow('未找到选择进路!');
} }
} }
}, },
handelFunctionButton(model, subType) { handelFunctionButton(model, subType) {
debugger;
const operate = { const operate = {
over: true, over: true,
operation: this.$store.state.menuOperation.buttonOperation, operation: this.$store.state.menuOperation.buttonOperation,
@ -391,14 +393,15 @@ export default {
operate.param = {stationCodes: [model.code]}; operate.param = {stationCodes: [model.code]};
break; break;
case 'emergency': case 'emergency':
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_FORCE_STATION_CONTROL; operate.cmdType = CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL;
operate.param = {stationCodes: [model.code]}; operate.param = {stationCodes: [model.code]};
break; break;
} }
} }
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => {
this.deviceList = []; this.deviceList = [];
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handelTotalCancel(model, subType) { handelTotalCancel(model, subType) {
@ -435,7 +438,8 @@ export default {
} }
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => {
this.deviceList = []; this.deviceList = [];
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleGuideRoute(deviceList) { handleGuideRoute(deviceList) {
@ -458,7 +462,8 @@ export default {
this.$refs.password.doShow(operate); this.$refs.password.doShow(operate);
} }
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} else { } else {
const operate = { const operate = {
@ -476,7 +481,8 @@ export default {
this.$refs.password.doShow(operate); this.$refs.password.doShow(operate);
} }
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} }
} else if (deviceList.length === 2) { } else if (deviceList.length === 2) {
@ -494,13 +500,14 @@ export default {
this.deviceList = []; this.deviceList = [];
flag = true; flag = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); this.$refs.noticeInfo.doShow();
console.error(error);
}); });
} }
}); });
if (!flag) { if (!flag) {
this.deviceList = []; this.deviceList = [];
this.$refs.noticeInfo.doShow(operate, '未找到选择进路!'); this.$refs.noticeInfo.doShow('未找到选择进路!');
} }
} }
}, },
@ -519,7 +526,8 @@ export default {
operate.param = {signalCode: model.code}; operate.param = {signalCode: model.code};
this.deviceList = []; this.deviceList = [];
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} }
}, },
@ -540,7 +548,8 @@ export default {
operate.param = {signalCode: model.code, routeCodeList: routeCodeList}; operate.param = {signalCode: model.code, routeCodeList: routeCodeList};
this.deviceList = []; this.deviceList = [];
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handelSwitchOperate(model) { handelSwitchOperate(model) {
@ -552,7 +561,8 @@ export default {
param: { switchCode: model.code} param: { switchCode: model.code}
}; };
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handelBlockOrUnblock(model) { handelBlockOrUnblock(model) {
@ -578,7 +588,8 @@ export default {
operate.param = {signalCode: model.code}; operate.param = {signalCode: model.code};
} }
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handelGuideLock(model) { handelGuideLock(model) {
@ -595,7 +606,8 @@ export default {
operate.cmdType = CMD.Station.CMD_STATION_SET_MASTER_GUIDE_LOCK; operate.cmdType = CMD.Station.CMD_STATION_SET_MASTER_GUIDE_LOCK;
} }
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handelFaultSection(model) { handelFaultSection(model) {
@ -607,7 +619,8 @@ export default {
param: {sectionCode: model.code} param: {sectionCode: model.code}
}; };
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
selectedChange() { selectedChange() {

View File

@ -129,7 +129,7 @@ export default {
} }
}, 1000).catch(() => { }, 1000).catch(() => {
this.loading = true; this.loading = true;
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -1,127 +1,135 @@
<template> <template>
<el-dialog class="chengdou-03__systerm stand-stop-time" :title="title" :visible.sync="show" width="320px" <el-dialog
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag> v-dialogDrag
<el-row justify="center" class="button-group"> class="chengdou-03__systerm stand-stop-time"
<el-col :span="10" :offset="2"> :title="title"
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button> :visible.sync="show"
</el-col> width="320px"
<el-col :span="8" :offset="4"> :before-close="doClose"
<el-button :id="domIdCancel" @click="cancel"> </el-button> :z-index="2000"
</el-col> :modal="false"
</el-row> :close-on-click-modal="false"
</el-dialog> >
<el-row justify="center" class="button-group">
<el-col :span="10" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="4">
<el-button :id="domIdCancel" @click="cancel"> </el-button>
</el-col>
</el-row>
</el-dialog>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default { export default {
name: 'TrainAdd', name: 'TrainAdd',
components: { components: {
}, },
data() { data() {
return { return {
trainNoList: [], trainNoList: [],
addModel: { addModel: {
},
rules: {
// groupNumber: [
// { required: true, message: '', trigger: 'blur' }
// ],
// stationStandCode: [
// { required: true, message: '', trigger: 'change' }
// ],
},
operation: null,
dialogShow: false,
loading: false,
}
},
computed: {
...mapGetters('map', [
'stationStandList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
domIdConfirm() {
return this.dialogShow ? OperationEvent.Command.planTrain.addPlanTrain.domId : '';
},
title() {
return '设置限速'
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
})
},
methods: {
doShow(operate) {
this.operate = operate || {};
this.operation = operate.operation;
if (!this.dialogShow) { rules: {
this.loading = false; // groupNumber: [
} // { required: true, message: '', trigger: 'blur' }
// ],
this.dialogShow = true; // stationStandCode: [
this.$nextTick(function () { // { required: true, message: '', trigger: 'change' }
this.$store.dispatch('training/emitTipFresh'); // ],
});
}, },
doClose() { operation: null,
dialogShow: false,
loading: false
};
},
computed: {
...mapGetters('map', [
'stationStandList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
domIdConfirm() {
return this.dialogShow ? OperationEvent.Command.planTrain.addPlanTrain.domId : '';
},
title() {
return '设置限速';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(operate) {
this.operate = operate || {};
this.operation = operate.operation;
if (!this.dialogShow) {
this.loading = false; this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
let operate = {
send: true,
operation: OperationEvent.Command.planTrain.addPlanTrain.operation,
}
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
}
}).catch(error => {
this.loading = false;
this.doClose();
// this.$refs.noticeInfo.doShow(operate);
})
} else {
return false;
}
});
},
cancel() {
let operate = {
operation: OperationEvent.Command.cancel.menu.operation,
}
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const operate = {
send: true,
operation: OperationEvent.Command.planTrain.addPlanTrain.operation
};
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
}
}).catch(error => {
this.loading = false;
this.doClose();
console.error(error);
// this.$refs.noticeInfo.doShow();
});
} else {
return false;
}
});
},
cancel() {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
} }
};
</script> </script>
<style scoped> <style scoped>
.chengdou-03__systerm .el-dialog .base-label { .chengdou-03__systerm .el-dialog .base-label {

View File

@ -163,7 +163,7 @@ export default {
}); });
}); });
} else { } else {
this.$refs.noticeInfo.doShow(operate, ['密码输入错误!']); this.$refs.noticeInfo.doShow('密码输入错误!');
} }
}, },
click(key) { click(key) {

View File

@ -232,13 +232,12 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); console.error(error);
// this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -1,154 +1,165 @@
<template> <template>
<el-dialog class="chengdou-03__systerm stand-stop-time" :title="title" :visible.sync="show" width="320px" <el-dialog
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag> v-dialogDrag
<el-form size="small" label-width="100px" :model="addModel" :rules="rules" ref="form"> class="chengdou-03__systerm stand-stop-time"
<div style="padding: 10px 15px; border: 1px double lightgray; margin: 20px 0px; height: 120px;"> :title="title"
<span class="base-label">添加位置</span> :visible.sync="show"
<div style="position: relative; top:-10px;"> width="320px"
<el-form-item prop="stationStandCode"> :before-close="doClose"
<span slot="label">&emsp;&emsp;&emsp;:</span> :z-index="2000"
<el-select v-model="addModel.stationStandCode" filterable placeholder="请选择"> :modal="false"
<el-option v-for="item in stationStandList" :key="item.code" :label="item.name" :close-on-click-modal="false"
:value="item.code"> >
</el-option> <el-form ref="form" size="small" label-width="100px" :model="addModel" :rules="rules">
</el-select> <div style="padding: 10px 15px; border: 1px double lightgray; margin: 20px 0px; height: 120px;">
</el-form-item> <span class="base-label">添加位置</span>
<el-form-item label="前车车次号:" prop="trainNumberLimber"> <div style="position: relative; top:-10px;">
<el-input v-model="addModel.trainNumberLimber"></el-input> <el-form-item prop="stationStandCode">
</el-form-item> <span slot="label">&emsp;&emsp;&emsp;:</span>
</div> <el-select v-model="addModel.stationStandCode" filterable placeholder="请选择">
</div> <el-option
<el-form-item label="添加车次号:" label-width="115px" prop="groupNumber"> v-for="item in stationStandList"
<el-input v-model="addModel.groupNumber"></el-input> :key="item.code"
</el-form-item> :label="item.name"
</el-form> :value="item.code"
<el-row justify="center" class="button-group"> />
<el-col :span="10" :offset="2"> </el-select>
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button> </el-form-item>
</el-col> <el-form-item label="前车车次号:" prop="trainNumberLimber">
<el-col :span="8" :offset="4"> <el-input v-model="addModel.trainNumberLimber" />
<el-button :id="domIdCancel" @click="cancel"> </el-button> </el-form-item>
</el-col> </div>
</el-row> </div>
</el-dialog> <el-form-item label="添加车次号:" label-width="115px" prop="groupNumber">
<el-input v-model="addModel.groupNumber" />
</el-form-item>
</el-form>
<el-row justify="center" class="button-group">
<el-col :span="10" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="4">
<el-button :id="domIdCancel" @click="cancel"> </el-button>
</el-col>
</el-row>
</el-dialog>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default { export default {
name: 'TrainAdd', name: 'TrainAdd',
components: { components: {
}, },
data() { data() {
return { return {
trainNoList: [], trainNoList: [],
addModel: { addModel: {
groupNumber: '', groupNumber: '',
stationStandCode: '', stationStandCode: '',
trainNumberLimber: '', trainNumberLimber: ''
}, },
rules: { rules: {
groupNumber: [ groupNumber: [
{ required: true, message: '请输入车次号', trigger: 'blur' } { required: true, message: '请输入车次号', trigger: 'blur' }
], ],
// trainNumberLimber: [ // trainNumberLimber: [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
stationStandCode: [ stationStandCode: [
{ required: true, message: '请选择终端', trigger: 'change' } { required: true, message: '请选择终端', trigger: 'change' }
], ]
},
operation: null,
dialogShow: false,
loading: false,
}
},
computed: {
...mapGetters('map', [
'stationStandList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdCancel() { operation: null,
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; dialogShow: false,
}, loading: false
domIdConfirm() { };
return this.dialogShow ? OperationEvent.Command.planTrain.addPlanTrain.domId : ''; },
}, computed: {
title() { ...mapGetters('map', [
return '添加计划车' 'stationStandList'
} ]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
mounted() { domIdCancel() {
this.$nextTick(() => { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
this.$store.dispatch('training/tipReload');
})
}, },
methods: { domIdConfirm() {
doShow(operate) { return this.dialogShow ? OperationEvent.Command.planTrain.addPlanTrain.domId : '';
this.operate = operate || {}; },
this.operation = operate.operation; title() {
return '添加计划车';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(operate) {
this.operate = operate || {};
this.operation = operate.operation;
// //
if (!this.dialogShow) { if (!this.dialogShow) {
this.loading = false;
}
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false; this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
let operate = {
send: true,
operation: OperationEvent.Command.planTrain.addPlanTrain.operation,
}
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
}
}).catch(error => {
this.loading = false;
this.doClose();
// this.$refs.noticeInfo.doShow(operate);
})
} else {
return false;
}
});
},
cancel() {
let operate = {
operation: OperationEvent.Command.cancel.menu.operation,
}
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const operate = {
send: true,
operation: OperationEvent.Command.planTrain.addPlanTrain.operation
};
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
}
}).catch(error => {
this.loading = false;
this.doClose();
console.error(error);
// this.$refs.noticeInfo.doShow();
});
} else {
return false;
}
});
},
cancel() {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
} }
};
</script> </script>
<style scoped> <style scoped>
.chengdou-03__systerm .el-dialog .base-label { .chengdou-03__systerm .el-dialog .base-label {

View File

@ -1,141 +1,148 @@
<template> <template>
<el-dialog class="chengdou-03__systerm stand-stop-time" :title="title" :visible.sync="show" width="320px" <el-dialog
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag> v-dialogDrag
<el-form size="small" label-width="100px" :model="addModel" :rules="rules" ref="form"> class="chengdou-03__systerm stand-stop-time"
<el-form-item prop="stationStandCode"> :title="title"
<span slot="label">&emsp;&emsp;:</span> :visible.sync="show"
<el-select v-model="addModel.stationStandCode" filterable placeholder="请选择"> width="320px"
<el-option v-for="item in stationStandList" :key="item.code" :label="item.name" :value="item.code"> :before-close="doClose"
</el-option> :z-index="2000"
</el-select> :modal="false"
</el-form-item> :close-on-click-modal="false"
<el-form-item label="车 次 号:" prop="groupNumber"> >
<el-input v-model="addModel.groupNumber"></el-input> <el-form ref="form" size="small" label-width="100px" :model="addModel" :rules="rules">
</el-form-item> <el-form-item prop="stationStandCode">
</el-form> <span slot="label">&emsp;&emsp;:</span>
<el-row justify="center" class="button-group"> <el-select v-model="addModel.stationStandCode" filterable placeholder="请选择">
<el-col :span="10" :offset="2"> <el-option v-for="item in stationStandList" :key="item.code" :label="item.name" :value="item.code" />
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button> </el-select>
</el-col> </el-form-item>
<el-col :span="8" :offset="4"> <el-form-item label="车 次 号:" prop="groupNumber">
<el-button :id="domIdCancel" @click="cancel"> </el-button> <el-input v-model="addModel.groupNumber" />
</el-col> </el-form-item>
</el-row> </el-form>
</el-dialog> <el-row justify="center" class="button-group">
<el-col :span="10" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="4">
<el-button :id="domIdCancel" @click="cancel"> </el-button>
</el-col>
</el-row>
</el-dialog>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default { export default {
name: 'TrainAdd', name: 'TrainAdd',
components: { components: {
}, },
data() { data() {
return { return {
trainNoList: [], trainNoList: [],
addModel: { addModel: {
groupNumber: '', groupNumber: '',
stationStandCode: '', stationStandCode: ''
}, },
rules: { rules: {
groupNumber: [ groupNumber: [
{ required: true, message: '请输入车次号', trigger: 'blur' } { required: true, message: '请输入车次号', trigger: 'blur' }
], ],
stationStandCode: [ stationStandCode: [
{ required: true, message: '请选择终端', trigger: 'change' } { required: true, message: '请选择终端', trigger: 'change' }
], ]
},
operation: null,
dialogShow: false,
loading: false,
}
},
computed: {
...mapGetters('map', [
'stationStandList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdCancel() { operation: null,
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; dialogShow: false,
}, loading: false
domIdConfirm() { };
return this.dialogShow ? OperationEvent.Command.planTrain.delPlanTrain.domId : ''; },
}, computed: {
title() { ...mapGetters('map', [
return '删除计划车' 'stationStandList'
} ]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
mounted() { domIdCancel() {
this.$nextTick(() => { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
this.$store.dispatch('training/tipReload');
})
}, },
methods: { domIdConfirm() {
doShow(operate) { return this.dialogShow ? OperationEvent.Command.planTrain.delPlanTrain.domId : '';
this.operate = operate || {}; },
this.operation = operate.operation; title() {
return '删除计划车';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(operate) {
this.operate = operate || {};
this.operation = operate.operation;
// //
if (!this.dialogShow) { if (!this.dialogShow) {
this.loading = false;
}
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false; this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
let operate = {
send: true,
operation: OperationEvent.Command.planTrain.delPlanTrain.operation,
}
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
}
}).catch(error => {
this.loading = false;
this.doClose();
// this.$refs.noticeInfo.doShow(operate);
})
} else {
return false;
}
});
},
cancel() {
let operate = {
operation: OperationEvent.Command.cancel.menu.operation,
}
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const operate = {
send: true,
operation: OperationEvent.Command.planTrain.delPlanTrain.operation
};
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
}
}).catch(error => {
this.loading = false;
this.doClose();
console.error(error);
// this.$refs.noticeInfo.doShow();
});
} else {
return false;
}
});
},
cancel() {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
} }
};
</script> </script>
<style scoped> <style scoped>
.chengdou-03__systerm .el-dialog .base-label { .chengdou-03__systerm .el-dialog .base-label {

View File

@ -1,152 +1,163 @@
<template> <template>
<el-dialog class="chengdou-03__systerm stand-stop-time" :title="title" :visible.sync="show" width="320px" <el-dialog
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag> v-dialogDrag
<el-form size="small" label-width="100px" :model="addModel" :rules="rules" ref="form"> class="chengdou-03__systerm stand-stop-time"
<el-form-item label="车 次 号:" label-width="115px" prop="groupNumber"> :title="title"
<el-input v-model="addModel.groupNumber"></el-input> :visible.sync="show"
</el-form-item> width="320px"
<div style="padding: 10px 15px; border: 1px double lightgray; margin: 20px 0px; height: 120px;"> :before-close="doClose"
<span class="base-label">目的</span> :z-index="2000"
<div style="position: relative; top:-10px;"> :modal="false"
<el-form-item prop="stationStandCode"> :close-on-click-modal="false"
<span slot="label">&emsp;&emsp;:</span> >
<el-select v-model="addModel.stationStandCode" filterable placeholder="请选择"> <el-form ref="form" size="small" label-width="100px" :model="addModel" :rules="rules">
<el-option v-for="item in stationStandList" :key="item.code" :label="item.name" <el-form-item label="车 次 号:" label-width="115px" prop="groupNumber">
:value="item.code"> <el-input v-model="addModel.groupNumber" />
</el-option> </el-form-item>
</el-select> <div style="padding: 10px 15px; border: 1px double lightgray; margin: 20px 0px; height: 120px;">
</el-form-item> <span class="base-label">目的</span>
<el-form-item label="车 次 号:" prop="trainNumberLimber"> <div style="position: relative; top:-10px;">
<el-input v-model="addModel.trainNumberLimber"></el-input> <el-form-item prop="stationStandCode">
</el-form-item> <span slot="label">&emsp;&emsp;:</span>
</div> <el-select v-model="addModel.stationStandCode" filterable placeholder="请选择">
</div> <el-option
</el-form> v-for="item in stationStandList"
<el-row justify="center" class="button-group"> :key="item.code"
<el-col :span="10" :offset="2"> :label="item.name"
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button> :value="item.code"
</el-col> />
<el-col :span="8" :offset="4"> </el-select>
<el-button :id="domIdCancel" @click="cancel"> </el-button> </el-form-item>
</el-col> <el-form-item label="车 次 号:" prop="trainNumberLimber">
</el-row> <el-input v-model="addModel.trainNumberLimber" />
</el-dialog> </el-form-item>
</div>
</div>
</el-form>
<el-row justify="center" class="button-group">
<el-col :span="10" :offset="2">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="4">
<el-button :id="domIdCancel" @click="cancel"> </el-button>
</el-col>
</el-row>
</el-dialog>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default { export default {
name: 'TrainTranstalet', name: 'TrainTranstalet',
components: { components: {
}, },
data() { data() {
return { return {
trainNoList: [], trainNoList: [],
addModel: { addModel: {
groupNumber: '', groupNumber: '',
stationStandCode: '', stationStandCode: '',
trainNumberLimber: '', trainNumberLimber: ''
}, },
rules: { rules: {
groupNumber: [ groupNumber: [
{ required: true, message: '请输入车次号', trigger: 'blur' } { required: true, message: '请输入车次号', trigger: 'blur' }
], ],
trainNumberLimber: [ trainNumberLimber: [
{ required: true, message: '请输入前车车次号', trigger: 'blur' } { required: true, message: '请输入前车车次号', trigger: 'blur' }
], ],
stationStandCode: [ stationStandCode: [
{ required: true, message: '请选择终端', trigger: 'change' } { required: true, message: '请选择终端', trigger: 'change' }
], ]
},
operation: null,
dialogShow: false,
loading: false,
}
},
computed: {
...mapGetters('map', [
'stationStandList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdCancel() { operation: null,
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; dialogShow: false,
}, loading: false
domIdConfirm() { };
return this.dialogShow ? OperationEvent.Command.planTrain.translatPlanTrain.domId : ''; },
}, computed: {
title() { ...mapGetters('map', [
return '平移计划车' 'stationStandList'
} ]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
mounted() { domIdCancel() {
this.$nextTick(() => { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
this.$store.dispatch('training/tipReload');
})
}, },
methods: { domIdConfirm() {
doShow(operate) { return this.dialogShow ? OperationEvent.Command.planTrain.translatPlanTrain.domId : '';
this.operate = operate || {}; },
this.operation = operate.operation; title() {
return '平移计划车';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(operate) {
this.operate = operate || {};
this.operation = operate.operation;
// //
if (!this.dialogShow) { if (!this.dialogShow) {
this.loading = false;
}
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false; this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
let operate = {
send: true,
operation: OperationEvent.Command.planTrain.translatPlanTrain.operation,
}
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
}
}).catch(error => {
this.loading = false;
this.doClose();
// this.$refs.noticeInfo.doShow(operate);
})
} else {
return false;
}
});
},
cancel() {
let operate = {
operation: OperationEvent.Command.cancel.menu.operation,
}
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
commit() {
this.$refs['form'].validate((valid) => {
if (valid) {
const operate = {
send: true,
operation: OperationEvent.Command.planTrain.translatPlanTrain.operation
};
this.loading = true;
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.loading = false;
if (valid) {
this.doClose();
}
}).catch(error => {
this.loading = false;
this.doClose();
console.error(error);
// this.$refs.noticeInfo.doShow();
});
} else {
return false;
}
});
},
cancel() {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(error => { this.doClose(); });
} }
} }
};
</script> </script>

View File

@ -173,10 +173,10 @@ export default {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} else { } else {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -219,10 +219,6 @@ export default {
}); });
}, },
nextStation() { nextStation() {
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Drive_Ahead', commandType: 'Drive_Ahead',
@ -231,14 +227,11 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
routeBlockRun() { routeBlockRun() {
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Route_Block_Drive', commandType: 'Route_Block_Drive',
@ -247,7 +240,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverFuideSignal() { handleOverFuideSignal() {
@ -259,7 +253,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverEedLight() { handleOverEedLight() {
@ -271,7 +266,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -287,10 +283,10 @@ export default {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -306,7 +302,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainControl.doShow(operate, this.selected); this.$refs.trainControl.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },
@ -323,7 +319,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainControl.doShow(operate, this.selected); this.$refs.trainControl.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },
@ -340,7 +336,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainControl.doShow(operate, this.selected); this.$refs.trainControl.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },
@ -357,7 +353,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$refs.trainDetailInfo.doShow(operate, this.selected); this.$refs.trainDetailInfo.doShow(operate, this.selected);
} else { } else {
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
} }
}); });
}, },

View File

@ -184,7 +184,7 @@ export default {
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.$refs.noticeInfo && this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo && this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -319,7 +319,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
sendCommandNext(operate) { sendCommandNext(operate) {
@ -336,7 +337,8 @@ export default {
}).catch((error) => { }).catch((error) => {
that.loading = false; that.loading = false;
that.doClose(); that.doClose();
that.$refs.noticeInfo.doShow(error.message); console.error(error);
that.$refs.noticeInfo.doShow();
}); });
}); });
}, },

View File

@ -164,7 +164,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -319,7 +319,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -334,7 +335,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -273,7 +273,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
@ -288,7 +289,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -218,7 +218,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow({}, error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -294,7 +294,7 @@ export default {
} }
}).catch(() => { }).catch(() => {
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
@ -318,7 +318,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },

View File

@ -136,7 +136,8 @@ export default {
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} else { } else {
const group = this.$route.query.group; const group = this.$route.query.group;
@ -152,7 +153,8 @@ export default {
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
this.doClose(); this.doClose();
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
this.doClose(); this.doClose();
}); });
} }

View File

@ -170,7 +170,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -190,7 +190,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -210,7 +210,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -230,7 +230,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -250,7 +250,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// ATS // ATS
@ -270,7 +270,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -291,7 +291,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -312,7 +312,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -333,7 +333,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -152,7 +152,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -144,7 +144,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -147,7 +147,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -230,7 +230,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
this.doClose(); this.doClose();

View File

@ -173,7 +173,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -133,7 +133,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -143,7 +143,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -167,7 +167,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -172,7 +172,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -131,7 +131,8 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} }
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
} }
} }

View File

@ -161,7 +161,7 @@ export default {
}); });
}); });
} else { } else {
this.$refs.noticeInfo.doShow(operate, [this.$t('menu.menuDialog.IncorrectPassword')]); this.$refs.noticeInfo.doShow(this.$t('menu.menuDialog.IncorrectPassword'));
} }
}, },

View File

@ -135,13 +135,11 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -117,13 +117,11 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -134,13 +134,11 @@ export default {
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.doClose(); this.doClose();
} else {
// this.$refs.noticeInfo.doShow(operate);
} }
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
// this.$refs.noticeInfo.doShow(operate); // this.$refs.noticeInfo.doShow();
}); });
} else { } else {
return false; return false;

View File

@ -181,14 +181,16 @@ export default {
setAutoTrigger() { setAutoTrigger() {
commitOperate(menuOperate.Station.setAutoTrigger, { stationCode: this.selected.code }, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Station.setAutoTrigger, { stationCode: this.selected.code }, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
cancelAutoTrigger() { cancelAutoTrigger() {
commitOperate(menuOperate.Station.cancelAutoTrigger, { stationCode: this.selected.code }, 3).then(({valid, operate})=>{ commitOperate(menuOperate.Station.cancelAutoTrigger, { stationCode: this.selected.code }, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -209,10 +209,6 @@ export default {
}); });
}, },
nextStation() { nextStation() {
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Drive_Ahead', commandType: 'Drive_Ahead',
@ -221,14 +217,11 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
routeBlockRun() { routeBlockRun() {
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
// }).catch((error) => {
// this.$refs.noticeInfo.doShow(error.message);
// });
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {
commandType: 'Route_Block_Drive', commandType: 'Route_Block_Drive',
@ -237,7 +230,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverFuideSignal() { handleOverFuideSignal() {
@ -249,7 +243,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
handleOverEedLight() { handleOverEedLight() {
@ -261,7 +256,8 @@ export default {
}; };
commitTrainSend(group, param).then(({valid, operate})=>{ commitTrainSend(group, param).then(({valid, operate})=>{
}).catch((error) => { }).catch((error) => {
this.$refs.noticeInfo.doShow(error.message); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -279,10 +275,10 @@ export default {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
} else { } else {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(step); this.$refs.noticeInfo.doShow();
}); });
}, },
// //

View File

@ -170,7 +170,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -190,7 +191,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -210,7 +212,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -230,7 +233,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -250,7 +254,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// ATS // ATS
@ -270,7 +275,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -291,7 +297,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -312,7 +319,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
// //
@ -333,7 +341,8 @@ export default {
}).catch(error => { }).catch(error => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate, [error.message]); console.error(error);
this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

View File

@ -152,7 +152,7 @@ export default {
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.doClose(); this.doClose();
this.$refs.noticeInfo.doShow(operate); this.$refs.noticeInfo.doShow();
}); });
}, },
cancel() { cancel() {

Some files were not shown because too many files have changed in this diff Show More