diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue index a6ed3af0f..eb918e0b9 100644 --- a/src/views/newMap/displayNew/menuSchema.vue +++ b/src/views/newMap/displayNew/menuSchema.vue @@ -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; diff --git a/src/views/scriptManage/display/tipScriptRecordNew.vue b/src/views/scriptManage/display/tipScriptRecordNew.vue index 551d899b3..a4903f9b1 100644 --- a/src/views/scriptManage/display/tipScriptRecordNew.vue +++ b/src/views/scriptManage/display/tipScriptRecordNew.vue @@ -14,7 +14,7 @@ {{ $t('scriptRecord.drivingPause') }} 恢复 - {{ $t('scriptRecord.resetScript') }} + {{ $t('scriptRecord.resetScript') }} {{ $t('scriptRecord.saveBackground') }} {{ $t('scriptRecord.saveData') }} @@ -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(() => { diff --git a/src/views/scriptManage/scriptRecord/getActionNew.vue b/src/views/scriptManage/scriptRecord/getActionNew.vue index d0dc18117..904842943 100644 --- a/src/views/scriptManage/scriptRecord/getActionNew.vue +++ b/src/views/scriptManage/scriptRecord/getActionNew.vue @@ -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;