剧本编制代码调整

This commit is contained in:
joylink_cuiweidong 2020-08-13 16:45:27 +08:00
parent 64a335cc05
commit 0ed57e5488
8 changed files with 23 additions and 19 deletions

View File

@ -435,10 +435,10 @@ class Jlmap {
}
} else if (elem.deviceType === 'STATION') {
// 如果是控制权转移消息
if (elem.hasOwnProperty('applicantIdOfControlTransfer')) {
if (elem.hasOwnProperty('applicantId')) {
controlTransferList.push(elem);
}
if (!elem.applicantIdOfControlTransfer) {
if (!elem.applicantId) {
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
const guideLock = this.mapDevice[oDevice.guideLockCode];
const guideLockStatus = {totalGuideLock: elem.totalGuideLock};

View File

@ -186,12 +186,12 @@ export default {
},
doShow(controlTransferList) {
const controlTransfer = controlTransferList[0];
if (controlTransfer.applicantIdOfControlTransfer) {
const member = this.$store.state.training.memberData[controlTransfer.applicantIdOfControlTransfer];
if (controlTransfer.applicantId) {
const member = this.$store.state.training.memberData[controlTransfer.applicantId];
const simulationUserList = this.$store.state.training.simulationUserList;
if (member.type == 'DISPATCHER' && controlTransferList.length > 1) {
controlTransferList.forEach(each=>{
this.showDialog(this.$store.state.training.memberData[each.applicantIdOfControlTransfer], each, simulationUserList, [each]);
this.showDialog(this.$store.state.training.memberData[each.applicantId], each, simulationUserList, [each]);
});
} else {
this.showDialog(member, controlTransfer, simulationUserList, controlTransferList);
@ -221,8 +221,8 @@ export default {
});
}
//
if (controlTransfer.validDurationOfControlTransferApplication) {
this.count = controlTransfer.validDurationOfControlTransferApplication;
if (controlTransfer.validDuration) {
this.count = controlTransfer.validDuration;
this.dialogShow = true;
this.requestInfo = info;
this.disabledAgree = true;
@ -240,7 +240,7 @@ export default {
}
} else {
//
this.count = controlTransfer.validDurationOfControlTransferApplication;
this.count = controlTransfer.validDuration;
}
}
},

View File

@ -154,7 +154,7 @@ export default {
updateTableValue(controlTransfer) {
this.centralizedStationList.forEach((row, index) => {
if (row.code == controlTransfer.code) {
if (controlTransfer.applicantIdOfControlTransfer) {
if (controlTransfer.applicantId) {
this.disabledCommit = true;
} else {
this.disabledCommit = false;

View File

@ -173,8 +173,8 @@ export default {
updateTableValue(controlTransfer) {
this.tableData.forEach((row, index) => {
if (row.code == controlTransfer.code) {
if (controlTransfer.applicantIdOfControlTransfer) {
row.result = this.$t('menu.menuDialog.senedMessageOne') + controlTransfer.validDurationOfControlTransferApplication + this.$t('menu.menuDialog.senedMessageTwo');
if (controlTransfer.applicantId) {
row.result = this.$t('menu.menuDialog.senedMessageOne') + controlTransfer.validDuration + this.$t('menu.menuDialog.senedMessageTwo');
row.disabled = true;
row.check = false;
} else {

View File

@ -152,7 +152,7 @@ export default {
updateTableValue(controlTransfer) {
this.stationLists.forEach((row, index) => {
if (row.code == controlTransfer.code) {
if (controlTransfer.applicantIdOfControlTransfer) {
if (controlTransfer.applicantId) {
this.commitDisabled = true;
} else {
this.commitDisabled = false;
@ -161,8 +161,8 @@ export default {
});
// this.tableData.forEach((row, index) => {
// if (row.code == controlTransfer.code) {
// if (controlTransfer.applicantIdOfControlTransfer) {
// row.result = this.$t('menu.menuDialog.senedMessageOne') + controlTransfer.validDurationOfControlTransferApplication + this.$t('menu.menuDialog.senedMessageTwo');
// if (controlTransfer.applicantId) {
// row.result = this.$t('menu.menuDialog.senedMessageOne') + controlTransfer.validDuration + this.$t('menu.menuDialog.senedMessageTwo');
// row.disabled = true;
// row.check = false;
// } else {

View File

@ -150,7 +150,7 @@ export default {
updateTableValue(controlTransfer) {
this.concertrateStationList.forEach((row, index) => {
if (row.code == controlTransfer.code) {
if (controlTransfer.applicantIdOfControlTransfer) {
if (controlTransfer.applicantId) {
this.disabledCommit = true;
} else {
this.disabledCommit = false;

View File

@ -173,8 +173,8 @@ export default {
updateTableValue(controlTransfer) {
this.tableData.forEach((row, index) => {
if (row.code == controlTransfer.code) {
if (controlTransfer.applicantIdOfControlTransfer) {
row.result = this.$t('menu.menuDialog.senedMessageOne') + controlTransfer.validDurationOfControlTransferApplication + this.$t('menu.menuDialog.senedMessageTwo');
if (controlTransfer.applicantId) {
row.result = this.$t('menu.menuDialog.senedMessageOne') + controlTransfer.validDuration + this.$t('menu.menuDialog.senedMessageTwo');
row.disabled = true;
row.check = false;
} else {

View File

@ -77,7 +77,8 @@ export default {
size: {
width: 300,
height: 300
}
},
openWindow:null
};
},
watch:{
@ -168,6 +169,9 @@ export default {
return member.id == role;
});
if (memberInfo) {
if (this.openWindow) {
this.openWindow.close();
}
if (memberInfo.type == '行值') {
prdType = '01';
this.$store.dispatch('training/setRoles', 'STATION_SUPERVISOR');
@ -189,7 +193,7 @@ export default {
noPreLogout: true
}
});
window.open(routeData.href, '_blank', 'noopener noreferrer');
this.openWindow = window.open(routeData.href);
} else {
prdType = '';
}