【【北京一号线】站控时,车站应无法操作设备】&创建实训校验调整

This commit is contained in:
fan 2022-12-12 17:00:23 +08:00
parent a3791a0cbf
commit 1fbd8b5824
3 changed files with 24 additions and 20 deletions

View File

@ -193,7 +193,7 @@ export default {
},
//
conterCommit() {
commitOperate(menuOperate.StationControl.requestCentralControl, {stationCodes:[this.stationCode]}, 0).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.requestCentralControl, {stationCodes:[this.stationCode]}, 1).then(({valid, operate})=>{
if (valid) {
this.doClose();
this.$refs.twoConfirmation.doShow(operate, '确认将如下操作区域的控制模式由站控转为中控:\n' + this.stationName);
@ -202,7 +202,7 @@ export default {
},
//
requestCommit() {
commitOperate(menuOperate.StationControl.requestStationControl, {stationCodes:[this.stationCode]}, 0).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.requestStationControl, {stationCodes:[this.stationCode]}, 1).then(({valid, operate})=>{
if (valid) {
this.doClose();
this.$refs.twoConfirmation.doShow(operate, '确认将如下操作区域的控制模式由中控转为站控:\n' + this.stationName);
@ -211,7 +211,7 @@ export default {
},
//
emergencyCommit() {
commitOperate(menuOperate.StationControl.emergencyStationControl, {stationCodes:[this.stationCode]}, 0).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.emergencyStationControl, {stationCodes:[this.stationCode]}, 1).then(({valid, operate})=>{
if (valid) {
this.doClose();
this.$refs.twoConfirmation.doShow(operate, '确认将如下操作区域的控制模式由中控转为站控:\n' + this.stationName);

View File

@ -151,6 +151,7 @@ export default {
initMenu() {
this.menu = [];
this.menuNormal.forEach(menuItem => {
console.log(this.selected, this.work, '------');
menuItem.show = menuItem.isShow && menuItem.isShow(this.selected, this.work);
menuItem.disabled = !judgeStationControl(this.selected.code, this.selected.stationCode, this.work) || (menuItem.isDisabled && menuItem.isDisabled(this.selected, this.work));
this.menu.push(menuItem);

View File

@ -160,10 +160,11 @@ export default {
},
doCreate() {
this.$refs.dataform.validateForm(() => {
this.$refs.form.validate(valid => {
if (valid) {
const cpData = Object.assign({}, this.formModel);
cpData.client = this.tagForm.client;
cpData.labelJson = JSON.stringify(this.tagForm.dynamicTags);
console.log(cpData, '----------');
let api = updateTraining;
let mes = '编辑';
if (this.isCreate) {
@ -178,6 +179,8 @@ export default {
this.$message.error('获取实训详情信息失败!');
this.$message.error(`${mes}实训失败!,${err.message}`);
});
}
});
});
},
doClose() {