剧本编制代码调整
This commit is contained in:
parent
b7d0f11b9c
commit
84485c6f1d
@ -140,6 +140,10 @@ export default {
|
||||
},
|
||||
'$store.state.scriptRecord.bgSet':function (val) {
|
||||
this.isScriptCommand = val;
|
||||
debugger;
|
||||
if (!val) {
|
||||
this.swch = '01';
|
||||
}
|
||||
},
|
||||
'showStation':function(val) {
|
||||
this.showStationContent = this.showStation;
|
||||
|
@ -14,7 +14,7 @@
|
||||
<el-button-group class="button-group">
|
||||
<el-button v-if="isPause" size="small" type="primary" :disabled="executeDisabled" @click="pauseScript">{{ $t('scriptRecord.drivingPause') }}</el-button>
|
||||
<el-button v-else size="small" type="primary" :disabled="executeDisabled" @click="executePlayScript">恢复</el-button>
|
||||
<el-button size="small" type="danger" @click="dumpScenesData">{{ $t('scriptRecord.resetScript') }}</el-button>
|
||||
<el-button size="small" type="danger" :disabled="!backDisabled" @click="dumpScenesData">{{ $t('scriptRecord.resetScript') }}</el-button>
|
||||
<el-button size="small" type="primary" :disabled="backDisabled" @click="saveScenesStage">{{ $t('scriptRecord.saveBackground') }}</el-button>
|
||||
<el-button size="small" type="success" :loading="isSavingScript" @click="saveScenesData">{{ $t('scriptRecord.saveData') }}</el-button>
|
||||
</el-button-group>
|
||||
@ -302,6 +302,7 @@ export default {
|
||||
this.$store.dispatch('map/setRunPlanStatus', false);
|
||||
this.$store.dispatch('training/setPrdType', '01');
|
||||
// this.initAutoSaveScript();
|
||||
this.$store.state.scriptRecord.bgSet;
|
||||
this.$store.dispatch('scriptRecord/updateBgSet', false);
|
||||
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
|
||||
}).catch(() => {
|
||||
|
@ -105,38 +105,6 @@ export default {
|
||||
loadInitData() {
|
||||
this.loadOtherData(this.$route.query);
|
||||
},
|
||||
// covert(data, roleTypeList) {
|
||||
// let lastData = data;
|
||||
// roleTypeList.forEach(function(element) {
|
||||
// const rolename = element.value;
|
||||
// if (Cookies.get('user_lang') == 'en') {
|
||||
// lastData = lastData.replace(new RegExp(rolename, 'g'), element.enLabel);
|
||||
// } else {
|
||||
// lastData = lastData.replace(new RegExp(rolename, 'g'), element.label);
|
||||
// }
|
||||
// });
|
||||
// lastData = JSON.parse(lastData);
|
||||
// lastData.forEach(each=>{
|
||||
// // const deviceName = each.deviceName == undefined ? '' : '-' + each.deviceName;
|
||||
// // each.name = each.role + deviceName + name;
|
||||
// const name = each.name == undefined ? '' : '-' + each.name;
|
||||
// let deviceName = '';
|
||||
// if (each.deviceCode) {
|
||||
// const device = this.$store.getters['map/getDeviceByCode'](each.deviceCode);
|
||||
// if (device) {
|
||||
// if (device._type == 'Train') {
|
||||
// deviceName = device.groupNumber;
|
||||
// } else {
|
||||
// deviceName = device.name;
|
||||
// }
|
||||
// } else {
|
||||
// deviceName = each.deviceCode;
|
||||
// }
|
||||
// }
|
||||
// each.name = each.type + deviceName + name;
|
||||
// });
|
||||
// return lastData;
|
||||
// },
|
||||
covertData(memberList, element) {
|
||||
const member = memberList.find(elem=>{ return elem.id == element.memberId; });
|
||||
const memberName = member.name;
|
||||
|
Loading…
Reference in New Issue
Block a user