diff --git a/.env.local-test b/.env.local-test index ffad5ecb6..5d9083e7f 100644 --- a/.env.local-test +++ b/.env.local-test @@ -1,5 +1,6 @@ # just a flag -NODE_ENV = 'local-test' +NODE_ENV = 'test' +VUE_APP_PRO = 'local-test' # base api # VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud' diff --git a/src/jmapNew/config/skinCode/datie_jd1a.js b/src/jmapNew/config/skinCode/datie_jd1a.js index e4244837c..9e65e8f30 100644 --- a/src/jmapNew/config/skinCode/datie_jd1a.js +++ b/src/jmapNew/config/skinCode/datie_jd1a.js @@ -255,6 +255,10 @@ class SkinCode extends defaultStyle { } }; + this[deviceType.SignalButton] = { + shape: 'roundWithDock' + } + // 供电线路 this[deviceType.Power] = { noElectricStrokeColor:'#808080', // 无电颜色 diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index d7e2b81c3..e6d92daaa 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -83,7 +83,10 @@ class Jlmap { loadStyle(lineCode) { return selectLineCode(lineCode); } - + reloadStyle(lineCode) { + this.style = selectLineCode(lineCode); + this.$zr.dom.style.backgroundColor = this.style.backgroundColor || '#000'; + } loadDefaultState() { // 加载默认状态 const defaultStateDict = {}; diff --git a/src/jmapNew/shape/graph/Power/index.js b/src/jmapNew/shape/graph/Power/index.js index 23c8c374f..617cf2322 100644 --- a/src/jmapNew/shape/graph/Power/index.js +++ b/src/jmapNew/shape/graph/Power/index.js @@ -34,7 +34,7 @@ export default class Line2 extends Group { create() { const model = this.model; const style = this.style; - if (this.computPoints > 1) { + if (this.computPoints.length > 1) { const points = []; for (let i = 0; i < this.computPoints.length; i++) { points.push([this.computPoints[i].x, this.computPoints[i].y]); diff --git a/src/jmapNew/shape/graph/Signal/index.js b/src/jmapNew/shape/graph/Signal/index.js index ac8967111..72b654d6b 100644 --- a/src/jmapNew/shape/graph/Signal/index.js +++ b/src/jmapNew/shape/graph/Signal/index.js @@ -465,9 +465,7 @@ class Signal extends Group { } this.add(this.sigPost); - this.add(this.sigName); - - this.style.Signal.text.show && model.nameShow ? this.sigName.show() : this.sigName.hide(); + this.style.Signal.text.show && model.nameShow && this.add(this.sigName); this.add(this.sigRoute); this.add(this.sigDelay); this.add(this.remainTimeName); diff --git a/src/jmapNew/shape/graph/SignalButton/index.js b/src/jmapNew/shape/graph/SignalButton/index.js index 4ef5a048e..b6d5053cd 100644 --- a/src/jmapNew/shape/graph/SignalButton/index.js +++ b/src/jmapNew/shape/graph/SignalButton/index.js @@ -3,6 +3,7 @@ import Rect from 'zrender/src/graphic/shape/Rect'; import Line from 'zrender/src/graphic/shape/Line'; import Text from 'zrender/src/graphic/Text'; import Arc from 'zrender/src/graphic/shape/Arc'; +import Circle from 'zrender/src/graphic/shape/Circle'; import store from '@/store/index'; export default class SignalButton extends Group { @@ -34,41 +35,85 @@ export default class SignalButton extends Group { return item.includes('ctc'); }); const ctcArcList = ['OCCLUSION', 'RECOVERY', 'CHANGE_DIRECTION', 'ACCIDENT', 'DEPART_ASSIST', 'PICK_ASSIST', 'ASSIST']; - if (queryCtc && ctcArcList.includes(model.type)) { - this.arcShape = new Arc({ + const typeList = [] + if (queryCtc && ctcArcList.includes(model.type)){ + this.arcShape = new Arc({ + zlevel: this.zlevel, + z: this.z, + shape: { + cx: computedPosition.x + 7, + cy: computedPosition.y + 7, + r: 7 + }, + style: { + stroke: '#69666E', + lineWidth: 1, + fill: fillColor + } + }); + this.add(this.arcShape); + } else if (this.style.SignalButton + && this.style.SignalButton.shape === 'roundWithDock' + && typeList.includes(model.type)) { + const circle1 = new Circle({ + zlevel: this.zlevel, + z: this.z + 2, + shape: { + cx: computedPosition.x + 7, + cy: computedPosition.y + 7, + r: 7 + }, + style: { + stroke: '#69666E', + lineWidth: 1, + fill: fillColor + } + }) + const circle2 = new Circle({ + zlevel: this.zlevel, + z: this.z + 1, + shape: { + cx: computedPosition.x + 7, + cy: computedPosition.y + 9, + r: 8 + }, + style: { + fill: '#000' + } + }) + const circle3 = new Circle({ zlevel: this.zlevel, z: this.z, shape: { - cx: computedPosition.x + 7, - cy: computedPosition.y + 7, - r: 7 + cx: computedPosition.x + 7, + cy: computedPosition.y + 9, + r: 9 }, style: { - stroke: '#69666E', - lineWidth: 1, - fill: fillColor + fill: '#eee' } - }); - this.add(this.arcShape); + }) + this.arcShape = circle1 + this.add(circle1).add(circle2).add(circle3) } else { - this.rectButton = new Rect({ - zlevel: this.zlevel, - z: this.z, - shape: { - x: computedPosition.x, - y: computedPosition.y, - width: 14, - height: 14 - }, - style: { - lineDash: null, - stroke: '#69666E', - lineWidth:1, - fill: fillColor - } - }); - this.add(this.rectButton); - } + this.rectButton = new Rect({ + zlevel: this.zlevel, + z: this.z, + shape: { + x: model.position.x, + y: model.position.y, + width: 14, + height: 14 + }, + style: { + lineDash: null, + stroke: '#69666E', + lineWidth:1, + fill: fillColor + } + }); + this.add(this.rectButton); + } this.leftLine = new Line({ zlevel: this.zlevel, z: this.z + 1, diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js index c624de3ba..1e6072d31 100644 --- a/src/jmapNew/shape/graph/Switch/index.js +++ b/src/jmapNew/shape/graph/Switch/index.js @@ -225,10 +225,9 @@ export default class Switch extends Group { this.add(this.shapeModelB); this.add(this.shapeModelC); this.add(this.shapeBlockCover); - this.add(this.name); + style.Switch.text.show && model.nameShow && this.add(this.name); this.add(this.enabledName); - style.Switch.text.show && model.nameShow ? this.name.show() : this.name.hide(); } createLockRect() { diff --git a/src/jmapNew/theme/datie_02/menus/dialog/sendRunplan.vue b/src/jmapNew/theme/datie_02/menus/dialog/sendRunplan.vue index a56d5f917..49760bb61 100644 --- a/src/jmapNew/theme/datie_02/menus/dialog/sendRunplan.vue +++ b/src/jmapNew/theme/datie_02/menus/dialog/sendRunplan.vue @@ -41,7 +41,7 @@ width="105" > { item.disabled = true; }); + } else { this.menu.forEach(item => { item.disabled = false; }); } } else { this.menu = []; } diff --git a/src/jmapNew/theme/datie_02/menus/menuSignal.vue b/src/jmapNew/theme/datie_02/menus/menuSignal.vue index ed63959c9..f6947241c 100644 --- a/src/jmapNew/theme/datie_02/menus/menuSignal.vue +++ b/src/jmapNew/theme/datie_02/menus/menuSignal.vue @@ -9,7 +9,7 @@ - + @@ -46,7 +46,7 @@ export default { PasswordBox, SetFault, DrawSelect, - RouteCancel + RouteCancel }, props: { selected: { @@ -61,52 +61,52 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '办理 通过进路', - handler: this.arrangementRoute, - cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE - }, - { - type: 'separator' - }, - { - label: '列车 办理进路', - handler: this.arrangementRoute, - cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE - }, - { - label: '取消进路', - handler: this.cancelTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE - }, - { - label: '信号重开', - handler: this.reopenSignal, - cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL - }, - { - label: '封锁/解封', - handler: '', - cmdType: '' - }, - { - label: '总人解', - handler: this.humanTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE - }, - { - type: 'separator' - }, - { - label: '引导', - handler: this.guide, - cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE - }, - { - label: '坡道解锁', - handler: '', - cmdType: '' - } + { + label: '办理 通过进路', + handler: this.arrangementRoute, + cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE + }, + { + type: 'separator' + }, + { + label: '列车 办理进路', + handler: this.arrangementRoute, + cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE + }, + { + label: '取消进路', + handler: this.cancelTrainRoute, + cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE + }, + { + label: '信号重开', + handler: this.reopenSignal, + cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL + }, + { + label: '封锁/解封', + handler: '', + cmdType: '' + }, + { + label: '总人解', + handler: this.humanTrainRoute, + cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE + }, + { + type: 'separator' + }, + { + label: '引导', + handler: this.guide, + cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE + }, + { + label: '坡道解锁', + handler: '', + cmdType: '' + } ], Center: [ // { @@ -197,7 +197,6 @@ export default { }, watch: { '$store.state.menuOperation.menuCount': function (val) { - console.log(DeviceMenu.Signal, val, this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Signal), this.buttonOperation); if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Signal) && (!this.buttonOperation || this.$route.query.ctc)) { this.doShow(this.$store.state.menuOperation.menuPosition); } else { @@ -210,6 +209,10 @@ export default { // 编辑模式菜单列表 // this.menu = MenuContextHandler.covert(this.menuNormal); this.menu = this.menuNormal.Local; + const station = this.$store.getters['map/getDeviceByCode'](this.$store.state.map.showCentralizedStationCode); + if (station.controlMode === 'Interlock' && this.$route.query.ctc) { + this.menu.forEach(item => { item.disabled = true; }); + } else { this.menu.forEach(item => { item.disabled = false; }); } // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { this.menu = this.menuForce; @@ -271,7 +274,7 @@ export default { commitOperate(menuOperate.Signal.arrangementRoute, {signalCode: this.selected.code}, 0).then(({valid, operate}) => { if (valid) { // this.$refs.routeSelection.doShow(operate, this.selected, this.getRouteList(this.selected)); - EventBus.$emit('arrangementRouteMenu', this.selected); + EventBus.$emit('arrangementRouteMenu', this.selected); } }); }, @@ -280,7 +283,7 @@ export default { commitOperate(menuOperate.Signal.guide, {signalCode: this.selected.code}, 0).then(({valid, operate}) => { if (valid) { // this.$refs.passwordBox.doShow({...operate, ...{selected: this.selected}, ...{routesList: this.getRouteList(this.selected)}}); - this.$refs.routeCancel.doShow(operate, this.selected) + this.$refs.routeCancel.doShow(operate, this.selected); } }); }, @@ -308,21 +311,21 @@ export default { } }); }, - lockOrUnlock() { + lockOrUnlock() { if (this.selected.lock) { commitOperate(menuOperate.Signal.lock, {signalCode: this.selected.code}, 0).then(({valid, operate}) => { if (valid) { this.$refs.routeControl.doShow(operate, this.selected); - } - }) - } else { + } + }); + } else { commitOperate(menuOperate.Signal.unlock, {signalCode: this.selected.code}, 0).then(({valid, operate}) => { if (valid) { - this.$refs.routeControl.doShow(operate, this.selected); - } - }) - } - }, + this.$refs.routeControl.doShow(operate, this.selected); + } + }); + } + }, // 信号封锁 lock() { commitOperate(menuOperate.Signal.lock, {signalCode: this.selected.code}, 0).then(({valid, operate}) => { diff --git a/src/jmapNew/theme/datie_02/menus/menuSwitch.vue b/src/jmapNew/theme/datie_02/menus/menuSwitch.vue index 5dca3a78b..559fd1aec 100644 --- a/src/jmapNew/theme/datie_02/menus/menuSwitch.vue +++ b/src/jmapNew/theme/datie_02/menus/menuSwitch.vue @@ -7,7 +7,7 @@ - + @@ -36,7 +36,7 @@ export default { SetFault, SwitchHookLock, DrawSelect, - RouteCancel + RouteCancel }, mixins: [ CancelMouseState @@ -54,66 +54,66 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '定操', - handler: this.locate, - cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION - }, - { - label: '反操', - handler: this.reverse, - cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION - }, - { - label: '单锁', - handler: this.lock, - cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK - }, - { - label: '单解', - handler: this.unlock, - cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK - }, - { - label: '封锁/解封', - handle: '' - }, - { - label: '区故解', - handle: '' - }, - { - label: '岔前 分路不良', - handle: '' - }, - { - label: '定位 分路不良', - handle: '' - }, - { - label: '反位 分路不良', - handle: '' - }, - { - label: '接触网定位无电', - handle: '' - }, - { - label: '接触网反位无电', - handle: '' - }, - { - label: '添加调机号', - handle: '' - }, - { - label: '删除调机号', - handle: '' - }, - { - label: '修改调机号', - handle: '' - } + { + label: '定操', + handler: this.locate, + cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION + }, + { + label: '反操', + handler: this.reverse, + cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION + }, + { + label: '单锁', + handler: this.lock, + cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK + }, + { + label: '单解', + handler: this.unlock, + cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK + }, + { + label: '封锁/解封', + handle: '' + }, + { + label: '区故解', + handle: '' + }, + { + label: '岔前 分路不良', + handle: '' + }, + { + label: '定位 分路不良', + handle: '' + }, + { + label: '反位 分路不良', + handle: '' + }, + { + label: '接触网定位无电', + handle: '' + }, + { + label: '接触网反位无电', + handle: '' + }, + { + label: '添加调机号', + handle: '' + }, + { + label: '删除调机号', + handle: '' + }, + { + label: '修改调机号', + handle: '' + } ], Center: [ // { @@ -187,7 +187,7 @@ export default { }, watch: { '$store.state.menuOperation.menuCount': function (val) { - if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Switch) && (!this.buttonOperation || this.$route.query.ctc)) { + if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Switch) && (!this.buttonOperation || this.$route.query.ctc)) { this.doShow(this.$store.state.menuOperation.menuPosition); } else { this.doClose(); @@ -199,6 +199,10 @@ export default { // 编辑模式菜单列表 // this.menu = MenuContextHandler.covert(this.menuNormal); this.menu = this.menuNormal.Local; + const station = this.$store.getters['map/getDeviceByCode'](this.$store.state.map.showCentralizedStationCode); + if (station.controlMode === 'Interlock' && this.$route.query.ctc) { + this.menu.forEach(item => { item.disabled = true; }); + } else { this.menu.forEach(item => { item.disabled = false; }); } // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { if (!this.$store.state.scriptRecord.bgSet) { @@ -299,7 +303,7 @@ export default { commitOperate(menuOperate.Switch.locate, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { // this.$refs.switchControl.doShow(operate, this.selected); - this.$refs.routeCancel.doShow(operate, this.selected); + this.$refs.routeCancel.doShow(operate, this.selected); } }); }, @@ -308,7 +312,7 @@ export default { commitOperate(menuOperate.Switch.reverse, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { // this.$refs.switchControl.doShow(operate, this.selected); - this.$refs.routeCancel.doShow(operate, this.selected); + this.$refs.routeCancel.doShow(operate, this.selected); } }); }, diff --git a/src/jmapNew/theme/datie_02/menus/menuTrain.vue b/src/jmapNew/theme/datie_02/menus/menuTrain.vue index 1df99fa4e..aa543d90c 100644 --- a/src/jmapNew/theme/datie_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/datie_02/menus/menuTrain.vue @@ -238,7 +238,10 @@ export default { initMenu() { // 编辑模式菜单列表 this.menu = MenuContextHandler.covert(this.menuNormal); - console.log(this.menu, '================'); + const station = this.$store.getters['map/getDeviceByCode'](this.$store.state.map.showCentralizedStationCode); + if (station.controlMode === 'Interlock' && this.$route.query.ctc) { + this.menu.forEach(item => { item.disabled = true; }); + } else { this.menu.forEach(item => { item.disabled = false; }); } // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { if (!this.$store.state.scriptRecord.bgSet) { diff --git a/src/jmapNew/theme/datie_02/menus/runplanPane.vue b/src/jmapNew/theme/datie_02/menus/runplanPane.vue index 508aa574b..f99b66bc6 100644 --- a/src/jmapNew/theme/datie_02/menus/runplanPane.vue +++ b/src/jmapNew/theme/datie_02/menus/runplanPane.vue @@ -454,9 +454,9 @@ @@ -591,6 +591,7 @@ import TrainRunplan from './dialog/trainRunplan'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; import { copyAssign } from '@/utils/index'; import { mapGetters } from 'vuex'; +import { transfiniteList } from '@/scripts/ConstDic'; export default { name:'RunplanPane', components: { @@ -634,12 +635,7 @@ export default { currentRailwaySimulationRunplan:{}, // radioSelected:'' currentRow:null, - transfiniteList:[ - {label:'不超限', value:'NO'}, - {label:'一级超限', value:'TRANSFINITE_ONE_LEVEL'}, - {label:'二级超限', value:'TRANSFINITE_TWO_LEVEL'}, - {label:'超级超限', value:'TRANSFINITE_SUPER'} - ] + transfiniteList:transfiniteList }; }, computed: { diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue b/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue index 7e52408dc..6b23c903e 100644 --- a/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue +++ b/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue @@ -1,22 +1,109 @@ diff --git a/src/layout/components/Entry.vue b/src/layout/components/Entry.vue index 1e9df0c17..3ffb3db7e 100644 --- a/src/layout/components/Entry.vue +++ b/src/layout/components/Entry.vue @@ -46,7 +46,7 @@ export default { { name: 'global.designPlatformEntrance', // 设计平台入口 handle: this.goToDesign, - hidden: getSessionStorage('project').startsWith('design') || !goOtherPlatformMenu[getSessionStorage('project')] + hidden: getSessionStorage('project').startsWith('design') || !goOtherPlatformMenu[getSessionStorage('project')] || getSessionStorage('project').startsWith('teaching') }, { name: 'global.trainingPlatformEntrance', // 实训平台入口 diff --git a/src/permission.js b/src/permission.js index 4b1730460..beebb2bad 100644 --- a/src/permission.js +++ b/src/permission.js @@ -77,7 +77,7 @@ router.beforeEach( async (to, from, next) => { if (to.path.includes('login')) { project = to.query.project; const split = to.path.split('/')[1]; - if (process.env.VUE_APP_PRO) { + if (process.env.VUE_APP_PRO && process.env.VUE_APP_PRO !== 'local-test') { project = localPackageProject[process.env.VUE_APP_PRO + split]; } else if (split == 'design') { project = project ? split + project : split; diff --git a/src/scripts/ConstDic.js b/src/scripts/ConstDic.js index 2883b871e..fe00447b5 100644 --- a/src/scripts/ConstDic.js +++ b/src/scripts/ConstDic.js @@ -282,3 +282,30 @@ export function getTrainingOperateTypeMap() { } return trainingOperateTypeMap; } + +export const transfiniteList = [ + {name:'不超限', code:'NO'}, + {name:'一级超限', code:'TRANSFINITE_ONE_LEVEL'}, + {name:'二级超限', code:'TRANSFINITE_TWO_LEVEL'}, + {name:'超级超限', code:'TRANSFINITE_SUPER'} +]; + +export const trainTypeList = [ + // 管内列车 + {name:'管内特快旅客列车', code:'LOCAL_EXPRESS_PASSENGER_TRAIN' }, + {name:'管内快速旅客列车', code:'LOCAL_FAST_PASSENGER_TRAIN' }, + {name:'管内普通旅客快车', code:'LOCAL_PASSENGER_TRAIN' }, + {name:'管内普通旅客慢车', code:'LOCAL_SLOW_PASSENGER_TRAIN' }, + {name:'管内临时旅客列车', code:'LOCAL_TEMPORARY_PASSENGER_TRAIN' }, + {name:'管内临时旅游列车', code:'LOCAL_TEMPORARY_TOURIST_TRAIN' }, + // 跨局列车 + {name:'跨局快速旅客列车', code:'FAST_PASSENGER_TRAIN' }, + {name:'跨局临时旅游列车', code:'TEMPORARY_TOURIST_TRAIN' }, + {name:'跨两局普通旅客快车', code:'TWO_PASSENGER_TRAIN' }, + {name:'跨两局普通旅客慢车', code:'TWO_SLOW_PASSENGER_TRAIN' }, + {name:'跨两局临时旅客列车', code:'TWO_TEMPORARY_PASSENGER_TRAIN' }, + {name:'跨三局及其以上普通旅客快车', code:'MORE_PASSENGER_TRAIN' }, + // 其他列车 + {name:'回送出入厂客车底列车', code:'BACK_FACTORY_PASSENGER_TRAIN' }, + {name:'因故折返旅客列车', code:'FAULT_TRUE_BACK_PASSENGER_TRAIN' } +]; diff --git a/src/scripts/ProjectConfig.js b/src/scripts/ProjectConfig.js index 0a5354289..baa189c46 100644 --- a/src/scripts/ProjectConfig.js +++ b/src/scripts/ProjectConfig.js @@ -595,6 +595,30 @@ export const loginInfo = { navigationMarginLeft: '60px', systemType: '027' }, + designrichorcxjs: { + title: '长兴技术学院城市轨道交通设计平台', + loginPath: '/design/login?project=richorcxjs', + bottomColumn: '中航锐创(北京)科技发展有限公司 联系电话:4000500081', + loginParam: 'RICHOR_CXJS', + linkIcon: FaviconRichor, + titleIcon: FaviconRichor, + titleDistance: '-150px', + navigationLogoWidth: '40px', + navigationMarginLeft: '60px', + systemType: '011' + }, + richorcxjs: { + title: '长兴技术学院城市轨道交通实训平台', + loginPath: '/login?project=richorcxjs', + bottomColumn: '中航锐创(北京)科技发展有限公司 联系电话:4000500081', + loginParam: 'RICHOR_CXJS', + linkIcon: FaviconRichor, + titleIcon: FaviconRichor, + titleDistance: '-150px', + navigationLogoWidth: '40px', + navigationMarginLeft: '60px', + systemType: '027' + }, designjxgm: { title: '江西工业贸易职业技术学院城市轨道交通设计平台', loginPath: '/design/login?project=jxgm', @@ -748,6 +772,8 @@ export const ProjectIcon = { designrichorygy: FaviconRichor, richorhhcj: FaviconRichor, designrichorhhcj: FaviconRichor, + richorcxjs: FaviconRichor, + designrichorcxjs: FaviconRichor, say: FaviconSay, designsay: FaviconSay, unittecsty: FaviconUnittec, @@ -800,6 +826,8 @@ export const ProjectCode = { designrichorygy: 'RICHOR_YGY', richorhhcj: 'RICHOR_HHCJ', designrichorhhcj: 'RICHOR_HHCJ', + richorcxjs: 'RICHOR_CXJS', + designrichorcxjs: 'RICHOR_CXJS', hls: 'DEFAULT', designhls: 'DEFAULT', say: 'SAY', @@ -811,41 +839,42 @@ export const ProjectCode = { designteaching: 'TEACHING' }; /** 嵌入第三方平台 导航栏右上角 清空 */ -export const ThirdLoginList = ['richor', 'designrichor', 'richorygy', 'designrichorygy']; +export const ThirdLoginList = ['richor', 'designrichor', 'richorygy', 'designrichorygy', 'richorcxjs', 'designrichorcxjs']; /** 底部栏仅展示公司信息不展示备案号 */ export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd', 'cgy', 'designcgy', 'richor', 'richorlesson3d', 'richorjoint', 'designrichorjoint', 'nologo', 'designnologo', 'richorygy', - 'designrichorygy', 'unittecsty', 'designunittecsty', 'richorhhcj', 'designrichorhhcj']; + 'designrichorygy', 'unittecsty', 'designunittecsty', 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs']; /** 实训设计平台通过项目code获取地图列表的项目 */ export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb', 'designdrts', 'drts', 'wjls', 'nty', 'designnty', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'designbjd', 'cgy', 'designcgy', 'zzww', 'zzwwtest', 'richor', 'richorlesson3d', 'richorjoint', 'designrichorjoint', 'nologo', 'designnologo', 'srsandbox', 'designsrsandbox', 'designhlsdrts', 'hlsdrts', 'jxgm', 'designjxgm', - 'richorygy', 'designrichorygy', 'say', 'designsay', 'unittecsty', 'designunittecsty', 'richorhhcj', 'designrichorhhcj', 'teaching', 'designteaching']; + 'richorygy', 'designrichorygy', 'say', 'designsay', 'unittecsty', 'designunittecsty', 'richorhhcj', 'designrichorhhcj', 'teaching', 'designteaching', 'richorcxjs', + 'designrichorcxjs']; /** 案例展示隐藏的项目 */ export const CaseHideProjectList = ['heb', 'designheb', 'cgy', 'designcgy']; /** 登录页右下角版本开发基于不展示 */ export const VersionBaseNoShow = ['heb', 'designheb', 'hls', 'designhls', 'drts', 'wjls', 'hyd', 'designhyd', 'cgy', 'designcgy', 'xadt', 'designxadt', 'nologo', 'designnologo', 'srsandbox', 'designsrsandbox', 'designhlsdrts', 'hlsdrts', 'jxgm', 'designjxgm', 'xzexam', 'richorygy', 'designrichorygy', - 'richorhhcj', 'designrichorhhcj']; + 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs']; /** 登录页右下角主体不展示 */ export const MainBodyNoShow = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd', 'cgy', 'designcgy', 'xadt', 'designxadt', 'richor', 'richorlesson3d', 'richorjoint', 'nologo', 'designnologo', 'srsandbox', 'designsrsandbox', 'designhlsdrts', 'hlsdrts', 'jxgm', 'designjxgm', 'xzexam', 'richorygy', 'designrichorygy', 'unittecsty', 'designunittecsty', - 'richorhhcj', 'designrichorhhcj']; + 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs']; /** 登录页项目 title 登录输入框上方 大字体 加粗居中 */ export const ProjectLoginStyleList = ['gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'wjls', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'cgy', 'designcgy', 'zzww', 'zzwwtest', 'srsandbox', 'designsrsandbox', 'designhlsdrts', 'hlsdrts', 'jxgm', 'designjxgm', 'xzexam', - 'richorygy', 'designrichorygy', 'say', 'designsay', 'unittecsty', 'designunittecsty', 'richorhhcj', 'designrichorhhcj']; + 'richorygy', 'designrichorygy', 'say', 'designsay', 'unittecsty', 'designunittecsty', 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs']; /** 登录页 登录输入框无二维码 */ export const NoQrcodeList = ['heb', 'designheb', 'cgy', 'designcgy', 'ntyl', 'designntyl']; /** 综合演练 无二维码 */ export const NoSimulationQrCodeList = ['heb', 'bjd']; export const RegisterCodeList = ['cgy', 'designcgy']; /** 展示中航锐创联系我们 */ -export const RichorContectUsList = ['richor', 'richorygy', 'richorhhcj', 'designrichorhhcj']; +export const RichorContectUsList = ['richor', 'richorygy', 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs']; /** 帮助中不展示版权(福州 佛山) */ -export const NoCopyrightList = ['richor', 'richorygy', 'richorhhcj', 'designrichorhhcj']; +export const NoCopyrightList = ['richor', 'richorygy', 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs']; /** 导航栏快速切换平台 */ export const goOtherPlatformMenu = { login: '/design/login', @@ -896,6 +925,8 @@ export const goOtherPlatformMenu = { designunittecsty: '/login?project=unittecsty', richorhhcj: '/design/login?project=richorhhcj', designrichorhhcj: '/login?project=richorhhcj', + // richorcxjs: '/design/login?project=richorcxjs', + // designrichorcxjs: '/login?project=richorcxjs', teaching: '/design/login?project=teaching', designteaching: '/login?project=teaching' }; @@ -925,7 +956,8 @@ export const ProjectList = [ {value: 'say', label: '苏安院'}, {value: 'unittec_sty', label: '众合-陕铁院'}, {value: 'richor_hhcj', label: '红河财经'}, - {value: 'teaching', label: '教学通用'} + {value: 'teaching', label: '教学通用'}, + {value: 'richor_cxjs', label: '长兴技校'} ]; /** 本地项目打包 */ export const localPackageProject = { diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 30bf92c6f..b27593aec 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -40,16 +40,16 @@ export function handlerUrl(data) { VOICE_API = data && data.resourcesDomainName ? 'https://' + data.resourcesDomainName : 'https://joylink.club/oss/joylink'; UPLOAD_API = 'http://joylink.club/jlfile'; BASE_SITE = 'https://test.joylink.club/cbtc'; + } else if (process.env.NODE_ENV === 'test' && process.env.VUE_APP_PRO === 'local-test') { + BASE_API = 'https://192.168.3.233/rtss-server'; + VOICE_API = 'https://192.168.3.233/oss/joylink'; + UPLOAD_API = 'https://192.168.3.233'; + BASE_SITE = '/cbtc'; } else if (process.env.NODE_ENV === 'test') { BASE_API = data && data.domainName ? 'https://' + data.domainName : 'https://test.joylink.club/jlcloud'; VOICE_API = data && data.resourcesDomainName ? 'https://' + data.resourcesDomainName : 'https://joylink.club/oss/joylink'; UPLOAD_API = 'http://joylink.club/jlfile'; BASE_SITE = 'https://test.joylink.club/cbtc'; - } else if (process.env.NODE_ENV === 'local-test') { - BASE_API = 'https://192.168.3.233/rtss-server'; - VOICE_API = 'https://192.168.3.233/oss/joylink'; - UPLOAD_API = 'https://192.168.3.233'; - BASE_SITE = '/cbtc'; } else if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_PRO === 'local') { BASE_API = 'http://160.20.60.15:9000'; VOICE_API = 'http://160.20.60.15/oss/joylink'; diff --git a/src/views/dispatcherLoger/addDispatcherLogerRunplan.vue b/src/views/dispatcherLoger/addDispatcherLogerRunplan.vue index 7673d25a6..1dd21c59a 100644 --- a/src/views/dispatcherLoger/addDispatcherLogerRunplan.vue +++ b/src/views/dispatcherLoger/addDispatcherLogerRunplan.vue @@ -142,6 +142,7 @@ diff --git a/src/views/system/deviceManage/index.vue b/src/views/system/deviceManage/index.vue index 56b6f54bc..71aee7ee5 100644 --- a/src/views/system/deviceManage/index.vue +++ b/src/views/system/deviceManage/index.vue @@ -50,7 +50,8 @@ export default { {label: '红河财经', value: 'RICHOR_HHCJ'}, {label: '苏安院', value: 'SAY'}, {label: '众合-陕铁院', value: 'UNITTEC_STY'}, - {label: '教学通用', value: 'TEACHING'} + {label: '教学通用', value: 'TEACHING'}, + {label: '长兴技校', value: 'RICHOR_CXJS'} ], projectMap: { designxty: 'XTY', @@ -64,7 +65,8 @@ export default { designsay: 'SAY', designunittecsty: 'UNITTEC_STY', designrichorhhcj: 'RICHOR_HHCJ', - designteaching: 'TEACHING' + designteaching: 'TEACHING', + designrichorcxjs: 'RICHOR_CXJS' }, queryForm: { labelWidth: '120px', diff --git a/vue.config.js b/vue.config.js index c9d69dcba..9932b5eec 100644 --- a/vue.config.js +++ b/vue.config.js @@ -19,7 +19,6 @@ let outputDir = ''; outputDir = process.env.VUE_APP_PRO == 'local' || process.env.VUE_APP_PRO == 'ntyl' ? 'dist' : 'dist/cbtc'; })(); - // All configuration item explanations can be find in https://cli.vuejs.org/config/ module.exports = { /** @@ -33,7 +32,7 @@ module.exports = { outputDir: outputDir, assetsDir: 'static', // 相对于outputDir的静态资源(js、css、img、fonts)目录 lintOnSave: false, - productionSourceMap: false, + productionSourceMap: false, devServer: { port: port, host: '0.0.0.0', @@ -73,7 +72,7 @@ module.exports = { // }) // ); if (process.env.NODE_ENV != 'development') { - config.mode = 'production'; + config.mode = 'production'; Object.assign(config, { output:{ @@ -84,8 +83,8 @@ module.exports = { }); } else { // 为开发环境修改配置... - config.mode = 'development'; - config.name = name; + config.mode = 'development'; + config.name = name; } config.resolve = {