diff --git a/src/jmapNew/shape/Signal/index.js b/src/jmapNew/shape/Signal/index.js index 58d9196df..904575ab6 100644 --- a/src/jmapNew/shape/Signal/index.js +++ b/src/jmapNew/shape/Signal/index.js @@ -554,6 +554,7 @@ class Signal extends Group { if (this.style.Signal.lamp.guidName === 'double' || this.style.Signal.lamp.guidName === 'doubleAndBase') { this.lamps[1].hide(); } + this.insideTriangle && this.insideTriangle.setStyle({fill: this.style.Signal.insideTriangle.startSignalColor, stroke: this.style.Signal.insideTriangle.strokeColor}); this.insideTriangle && this.insideTriangle.hide(); this.sigPost && this.sigPost.removeTerminalOptional(); this.ciConfirm && this.ciConfirm.stopAnimation(false); diff --git a/src/layout/components/Entry.vue b/src/layout/components/Entry.vue index 16d9fc6ec..fb457a4e2 100644 --- a/src/layout/components/Entry.vue +++ b/src/layout/components/Entry.vue @@ -49,12 +49,12 @@ export default { { name: 'global.designPlatformEntrance', handle: this.goToDesign, - hidden: getSessionStorage('project').startsWith('design') + hidden: getSessionStorage('project').startsWith('design') || !goOtherPlatformMenu[getSessionStorage('project')] }, { name: 'global.trainingPlatformEntrance', handle: this.goToTraining, - hidden: !getSessionStorage('project').startsWith('design') + hidden: !getSessionStorage('project').startsWith('design') || !goOtherPlatformMenu[getSessionStorage('project')] }, { name: 'global.caseShow', diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue index 7312e7cef..6513c2b9e 100644 --- a/src/views/newMap/displayNew/menuSchema.vue +++ b/src/views/newMap/displayNew/menuSchema.vue @@ -195,7 +195,10 @@ export default { let list = []; nameList.forEach(item => { if (item !== 'skinVO') { - list = [...list, ...this.$store.state.map.map[item]]; + const data = this.$store.state.map.map[item]; + if (data && data.constructor === Array) { + list = [...list, ...data]; + } } }); this.$jlmap.updateShowMode(list, showMode); diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index 670999819..0c024e860 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -403,7 +403,10 @@ export default { let list = []; nameList.forEach(item => { if (item !== 'skinVO') { - list = [...list, ...this.$store.state.map.map[item]]; + const data = this.$store.state.map.map[item]; + if (data && data.constructor === Array) { + list = [...list, ...data]; + } } }); this.$jlmap.updatePrdType(val, nameList); diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue index e509d316b..01aef7007 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue @@ -173,7 +173,7 @@ import { mapGetters } from 'vuex'; import { setUID } from '@/jmapNew/utils/Uid'; import { addRoutingData, updateRoutingData, gernateRoutingSection } from '@/api/jmap/mapdraft'; -import { ViewMode } from '@/scripts/ConstDic'; +// import { ViewMode } from '@/scripts/ConstDic'; import { formatName } from '@/utils/runPlan'; import Sortable from 'sortablejs'; @@ -192,16 +192,10 @@ export default { return null; } } - // routeData: { - // type: Object, - // default() { - // return null; - // } - // } }, data() { return { - ViewMode: ViewMode, + // ViewMode: ViewMode, field: '', allowSelect:false, isStartSelected:false, @@ -299,12 +293,6 @@ export default { this.addModel.mapId = val.id; } }, - // routeData(val, old) { - // debugger; - // if (val) { - // this.addModel = val; - // } - // }, 'addModel.parkSectionCodeList':function(val, old) { this.changeSectionSelected(val, true); }, diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue index 31d3590bc..8e44e357a 100644 --- a/src/views/scriptManage/scriptRecord/addAction.vue +++ b/src/views/scriptManage/scriptRecord/addAction.vue @@ -233,7 +233,8 @@ export default { if (this.drawWay) { getScriptPlayMemberNew(this.group).then(resp => { this.orginMemberList = resp.data; - this.memberList = resp.data; + const lastData = JSON.stringify(resp.data); + this.memberList = this.covert(lastData, ConstConfig.ConstSelect.roleTypeNew); this.resetDisabled(); this.initCommandActionData(); }).catch(error => { @@ -241,22 +242,9 @@ export default { }); } else { getScriptPlayMember(this.group).then(resp => { - const roleTypeList = ConstConfig.ConstSelect.roleType; this.orginMemberList = resp.data; - let lastData = JSON.stringify(resp.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=>{ - each.name = each.role + (each.name == undefined ? '' : each.name); - }); - this.memberList = lastData; + const lastData = JSON.stringify(resp.data); + this.memberList = this.covert(lastData, ConstConfig.ConstSelect.roleType); this.resetDisabled(); this.initCommandActionData(); }).catch(error => { @@ -265,6 +253,24 @@ export default { } }, + 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 name = each.name == undefined ? '' : '-' + each.name; + const deviceName = each.deviceName == undefined ? '' : '-' + each.deviceName; + each.name = each.role + deviceName + name; + }); + return lastData; + }, hover(field) { if (this.field == '') { if (this.isFirstTips) { diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue index 369df8bbf..ca707b45e 100644 --- a/src/views/scriptManage/scriptRecord/getAction.vue +++ b/src/views/scriptManage/scriptRecord/getAction.vue @@ -20,7 +20,7 @@
- {{ $t('scriptRecord.modifyConversitionButton') }} + {{ $t('scriptRecord.modifyConversitionButton') }}
@@ -29,6 +29,7 @@