From 91a8410dc251852442386204d9ef33061761f24b Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 24 Apr 2024 10:58:02 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E9=81=93=E5=B2=94=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2=E6=9B=B4=E6=8D=A2=E9=80=8F?= =?UTF-8?q?=E6=98=8E=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/graph/Switch/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js index 727fec8f4..93ee21274 100644 --- a/src/jmapNew/shape/graph/Switch/index.js +++ b/src/jmapNew/shape/graph/Switch/index.js @@ -326,9 +326,9 @@ export default class Switch extends Group { } this.name.getTextRect().animateStyle(true) - .when(0, { textFill: this.style.backgroundColor }) + .when(0, { textFill: this.style.transparentColor }) .when(1000, { textFill: this.style.Switch.text.borderColor }) - .when(2000, { textFill: this.style.backgroundColor }) + .when(2000, { textFill: this.style.transparentColor }) .start(); } @@ -354,7 +354,7 @@ export default class Switch extends Group { this.lockCircle && this.lockCircle.hide(); // 圆形包围框 this.lockArc && this.lockArc.hide(); // 圆形单锁框 this.name.getNameText().stopAnimation(false); - this.name.getTextRect().setStyle({ fill: this.style.backgroundColor }); + this.name.getTextRect().setStyle({ fill: this.style.transparentColor }); this.shapeModelC && this.shapeModelC.hide(); // 形状 C this.shapeModelA && this.shapeModelA.hide(); // 形状 A this.shapeModelB && this.shapeModelB.hide(); // 形状 B @@ -626,7 +626,7 @@ export default class Switch extends Group { } if (this.style.Switch.core.specialCircle) { - this.name.getTextRect().setStyle({ fill: this.style.backgroundColor }); + this.name.getTextRect().setStyle({ fill: this.style.transparentColor }); this.setTextColor(this.style.Switch.text.guideMasterLockColor); } else { this.setTextColor(this.style.Switch.text.monolockLocationColor); @@ -911,7 +911,7 @@ export default class Switch extends Group { this.setHasTextBorder(1, this.style.Switch.text.fpLockBorderColor); } if (this.style.Switch.core.specialCircle) { - this.name.getTextRect().setStyle({ fill: this.style.backgroundColor }); + this.name.getTextRect().setStyle({ fill: this.style.transparentColor }); this.setTextColor(this.style.Switch.text.fpLockColor); } } From b1baeaabcd9449515a0884ce74b210ff2fd24dc4 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 7 May 2024 15:46:29 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E6=88=90=E9=83=BD=E5=B7=A5=E4=B8=9A?= =?UTF-8?q?=E5=AD=A6=E9=99=A2=E7=AC=AC=E4=B8=89=E6=96=B9=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/user.js | 8 +++ src/permission.js | 2 +- src/router/index.js | 6 ++ src/views/thirdLogin/cgyLogin.vue | 102 ++++++++++++++++++++++++++++++ 4 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 src/views/thirdLogin/cgyLogin.vue diff --git a/src/api/management/user.js b/src/api/management/user.js index ce58557c0..f3d338776 100644 --- a/src/api/management/user.js +++ b/src/api/management/user.js @@ -323,3 +323,11 @@ export function isExistEmail(params) { }); } +// 成工院第三方登录 +export function cgyThirdLogin(data) { + return request({ + url: '/api/login/cgy/third', + method: 'post', + data + }); +} diff --git a/src/permission.js b/src/permission.js index ab779ede4..503736fb5 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,7 @@ import { getFrontProjectConfigByLogin} from '@/api/projectConfig'; import localStore from 'storejs'; import { handlerUrl } from '@/utils/baseUrl'; -const whiteList = ['/login', '/design/login', '/loginNew', '/gzzbxy/relay', '/authorization', '/AUSline', '/AUStool', '/demo', '/thirdLogin']; // 不重定向白名单 +const whiteList = ['/login', '/design/login', '/loginNew', '/gzzbxy/relay', '/authorization', '/AUSline', '/AUStool', '/demo', '/thirdLogin', '/cgyLogin']; // 不重定向白名单 // 登录路径判断获取 function getRouteInfo(to) { diff --git a/src/router/index.js b/src/router/index.js index f24a40d53..71c357bef 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -220,6 +220,7 @@ const UserRulesManage = () => import('@/views/userRulesManage/index'); const AuthorityTransfer = () => import('@/views/authorityTransfer/index'); const CreateDistribute = () => import('@/views/authorityTransfer/create/index'); const ThirdJumpSim = () => import('@/views/newMap/display/thirdJump'); +const CgyLogin = () => import('@/views/thirdLogin/cgyLogin'); const TmsPage = () => import('@/views/jlmap3d/drive/sceneview/tmsPage'); const ContestSubjectManage = () => import('@/views/contestDataManage/contestSubjectManage/ContestSubjectManage'); @@ -430,6 +431,11 @@ export const constantRoutes = [ component: ThirdJumpSim, hidden: true }, + { + path: '/cgyLogin', + component: CgyLogin, + hidden: true + }, { path: '/404', component: Errpr404, diff --git a/src/views/thirdLogin/cgyLogin.vue b/src/views/thirdLogin/cgyLogin.vue new file mode 100644 index 000000000..4a2f940a9 --- /dev/null +++ b/src/views/thirdLogin/cgyLogin.vue @@ -0,0 +1,102 @@ + + + From ae74123f18850e56e80a8aac2c0567596a1bcf8e Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 8 May 2024 09:17:37 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E6=88=90=E9=83=BD=E5=B7=A5=E5=AD=A6?= =?UTF-8?q?=E9=99=A2=E7=AC=AC=E4=B8=89=E6=96=B9=E7=99=BB=E5=BD=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/thirdLogin/cgyLogin.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/thirdLogin/cgyLogin.vue b/src/views/thirdLogin/cgyLogin.vue index 4a2f940a9..d4a39ff87 100644 --- a/src/views/thirdLogin/cgyLogin.vue +++ b/src/views/thirdLogin/cgyLogin.vue @@ -29,7 +29,7 @@ export default { const sessionId = this.$route.query.sessionId; const timeStamp = this.$route.query.timeStamp; const account = this.$route.query.account; - const name = this.$route.query.account; + const name = this.$route.query.name; const parentAccount = this.$route.query.parentAccount; const functionId = this.$route.query.functionId; if (appId && account && name) { From ef9165faa4d09042f1a45e088918e46be44ff77d Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Thu, 16 May 2024 15:43:56 +0800 Subject: [PATCH 04/11] third --- src/views/thirdLogin/cgyLogin.vue | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/views/thirdLogin/cgyLogin.vue b/src/views/thirdLogin/cgyLogin.vue index d4a39ff87..69f83fdf6 100644 --- a/src/views/thirdLogin/cgyLogin.vue +++ b/src/views/thirdLogin/cgyLogin.vue @@ -10,6 +10,8 @@ import { cgyThirdLogin } from '@/api/management/user'; import { setToken } from '@/utils/auth'; import { createSimulation } from '@/api/simulation'; import { launchFullscreen } from '@/utils/screen'; +import { getMapFunctioById } from '@/api/trainingPlatform'; +import { getPublishMapInfo } from '@/api/jmap/map'; export default { name:'CgyLogin', @@ -58,26 +60,16 @@ export default { } }, methods:{ - enterSimulation() { + async enterSimulation() { const query = { - third: true + third: true, + query: 'cgy' }; - if (this.$route.query.type === 'loc') { - query.lineCode = '02'; - query.mapId = '124'; - query.simType = 'METRO'; - query.project = 'cgy'; - } else if (this.$route.query.type === 'datie') { - query.lineCode = '16'; - query.mapId = '157'; - query.simType = 'RAILWAY'; - query.project = 'cgy'; - } else if (this.$route.query.type === 'drts') { - query.lineCode = '13'; - query.mapId = '78'; - query.simType = 'METRO'; - query.project = 'cgy'; - } + const resp = await getMapFunctioById(this.$route.query.systemId); + query.mapId = resp.data.mapId; + query.simType = resp.data.simType; + const resp1 = await getPublishMapInfo(resp.data.mapId); + query.lineCode = resp1.data.lineCode; createSimulation(this.$route.query.systemId).then(resp => { query.group = resp.data; this.$router.replace({ path: `/display/demon`, query: query }); From 0c5bba7c0f0df1c04a91bac286c9a913deb98227 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 21 May 2024 16:47:37 +0800 Subject: [PATCH 05/11] =?UTF-8?q?=E4=BC=A0=E8=BE=93=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=E6=9C=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/fuzhou_01.js | 7 +++++++ src/jmapNew/config/skinCode/xian_02.js | 7 +++++++ src/jmapNew/shape/graph/Signal/index.js | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/jmapNew/config/skinCode/fuzhou_01.js b/src/jmapNew/config/skinCode/fuzhou_01.js index eabf2a4fb..798f6cf4c 100644 --- a/src/jmapNew/config/skinCode/fuzhou_01.js +++ b/src/jmapNew/config/skinCode/fuzhou_01.js @@ -189,6 +189,13 @@ class SkinCode extends defaultStyle { }, lowButton:{ display: false // 现地 信号机按钮 + }, + transmission: { // 传输信号机 + fillColor: '#f00', + fillColorVirtual: '#f00', + sideLength: 20, + textColor: '#fff', + strokeColor: '#00FFFF' } }; diff --git a/src/jmapNew/config/skinCode/xian_02.js b/src/jmapNew/config/skinCode/xian_02.js index a4494c1c9..df720dc60 100644 --- a/src/jmapNew/config/skinCode/xian_02.js +++ b/src/jmapNew/config/skinCode/xian_02.js @@ -233,6 +233,13 @@ class SkinCode extends defaultStyle { fontSize: 12, distance: 20, defaultText: 'E' + }, + transmission: { // 传输信号机 + fillColor: '#f00', + fillColorVirtual: '#f00', + sideLength: 20, + textColor: '#fff', + strokeColor: '#00FFFF' } }; diff --git a/src/jmapNew/shape/graph/Signal/index.js b/src/jmapNew/shape/graph/Signal/index.js index a56432bbd..c9d2972a7 100644 --- a/src/jmapNew/shape/graph/Signal/index.js +++ b/src/jmapNew/shape/graph/Signal/index.js @@ -931,8 +931,8 @@ class Signal extends Group { // 隐藏自动信号和自动进路 setAutoClose() { if (this.style.Signal.auto.autoRouteType != 'text') { - this.sigAuto.hide(); - this.sigAuto.setColor(this.style.backgroundColor); + this.sigAuto && this.sigAuto.hide(); + this.sigAuto && this.sigAuto.setColor(this.style.backgroundColor); } else { this.sigName.setColor(this.style.Signal.text.defaultColor); } From dc2165733e17e470228defe3aa7f5e183a4f04b2 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Mon, 27 May 2024 16:33:48 +0800 Subject: [PATCH 06/11] =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=89=E7=BB=B4=E5=9C=BA=E6=99=AF=EF=BC=8C=E5=AE=9E=E8=AE=AD?= =?UTF-8?q?=E4=B8=AD=E5=8F=AF=E6=A0=B9=E6=8D=AEurl=E6=89=93=E5=BC=80?= =?UTF-8?q?=E4=B8=89=E7=BB=B4=E5=9C=BA=E6=99=AF=EF=BC=88=E5=BE=85=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contest/contestDetail.vue | 15 ++- .../contestSceneManage/ContestSceneManage.vue | 20 +++- .../contestSceneManage/addThree.vue | 108 ++++++++++++++++++ 3 files changed, 140 insertions(+), 3 deletions(-) create mode 100644 src/views/contestDataManage/contestSceneManage/addThree.vue diff --git a/src/views/contest/contestDetail.vue b/src/views/contest/contestDetail.vue index b353db0cf..0618f38d6 100644 --- a/src/views/contest/contestDetail.vue +++ b/src/views/contest/contestDetail.vue @@ -44,7 +44,8 @@
评分表 - 开始任务 + 开始任务 + 开始任务 播放视频 下一任务
@@ -58,6 +59,7 @@ + From 869c86b94d312545cbf08a85ac549699aa84ef1a Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Mon, 27 May 2024 16:57:01 +0800 Subject: [PATCH 07/11] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=89=E7=BB=B4?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contest/contestDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/contest/contestDetail.vue b/src/views/contest/contestDetail.vue index 0618f38d6..6ac1d44c0 100644 --- a/src/views/contest/contestDetail.vue +++ b/src/views/contest/contestDetail.vue @@ -187,7 +187,7 @@ export default { getContextSenceDetail(this.nowData.sceneId).then((res) => { const url = res.data.scene.url; const token = getToken(); - window.open(`${url}&token=${token}`, '_blank'); + window.open(`https://joylink.club/gdtraining/index.html?name=${url}/${url}&token=${token}`, '_blank'); this.loading = false; }).catch(error => { this.$message.error(error.message); From cef55a4c6b213bc3b205ca6ac1af3c4349bcf5f4 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Mon, 27 May 2024 17:09:01 +0800 Subject: [PATCH 08/11] =?UTF-8?q?=E4=B8=89=E7=BB=B4url=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contest/contestDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/contest/contestDetail.vue b/src/views/contest/contestDetail.vue index 6ac1d44c0..f3e8b190e 100644 --- a/src/views/contest/contestDetail.vue +++ b/src/views/contest/contestDetail.vue @@ -187,7 +187,7 @@ export default { getContextSenceDetail(this.nowData.sceneId).then((res) => { const url = res.data.scene.url; const token = getToken(); - window.open(`https://joylink.club/gdtraining/index.html?name=${url}/${url}&token=${token}`, '_blank'); + window.open(`${url}${token}`, '_blank'); this.loading = false; }).catch(error => { this.$message.error(error.message); From 081d5bf63062b4019a5c6174ce48d89eb47437c2 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 4 Jun 2024 11:14:54 +0800 Subject: [PATCH 09/11] =?UTF-8?q?=E6=88=90=E9=83=BD=E5=B7=A5=E4=B8=9A?= =?UTF-8?q?=E5=AD=A6=E9=99=A2=E7=99=BB=E5=BD=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/thirdLogin/cgyLogin.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/thirdLogin/cgyLogin.vue b/src/views/thirdLogin/cgyLogin.vue index 69f83fdf6..d2cca5a8a 100644 --- a/src/views/thirdLogin/cgyLogin.vue +++ b/src/views/thirdLogin/cgyLogin.vue @@ -27,13 +27,13 @@ export default { } }, mounted() { - const appId = this.$route.query.appId; - const sessionId = this.$route.query.sessionId; + const appId = this.$route.query.app_id; + const sessionId = this.$route.query.session_id; const timeStamp = this.$route.query.timeStamp; - const account = this.$route.query.account; - const name = this.$route.query.name; + const account = this.$route.query.user_name; + const name = this.$route.query.nick_name; const parentAccount = this.$route.query.parentAccount; - const functionId = this.$route.query.functionId; + const functionId = this.$route.query.systemId; if (appId && account && name) { const data = { appId, From 37e0779d238432de6a2ffac3a3b65cb1e558105e Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 4 Jun 2024 11:42:34 +0800 Subject: [PATCH 10/11] =?UTF-8?q?=E6=88=90=E9=83=BD=E5=B7=A5=E4=B8=9A?= =?UTF-8?q?=E5=AD=A6=E9=99=A2=E7=AC=AC=E4=B8=89=E6=96=B9=E6=96=B0=E5=BC=80?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=85=B3=E9=97=AD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/simulationMenu/simulationMenu.vue | 4 +++- src/views/thirdLogin/cgyLogin.vue | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/newMap/display/simulationMenu/simulationMenu.vue b/src/views/newMap/display/simulationMenu/simulationMenu.vue index 1f1704596..6b706615d 100644 --- a/src/views/newMap/display/simulationMenu/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu/simulationMenu.vue @@ -227,7 +227,9 @@ export default { this.logout(); // }); } else if (this.$route.query.third) { - if (this.$route.query.project === 'cgy' || this.$route.query.project === 'drts') { + if (this.$route.query.thirdOpen) { + window.close(); + } else if (this.$route.query.project === 'cgy' || this.$route.query.project === 'drts') { window.parent.postMessage('back', '*'); } else { window.close(); diff --git a/src/views/thirdLogin/cgyLogin.vue b/src/views/thirdLogin/cgyLogin.vue index d2cca5a8a..a85e4cd28 100644 --- a/src/views/thirdLogin/cgyLogin.vue +++ b/src/views/thirdLogin/cgyLogin.vue @@ -63,7 +63,8 @@ export default { async enterSimulation() { const query = { third: true, - query: 'cgy' + project: 'cgy', + thirdOpen: true }; const resp = await getMapFunctioById(this.$route.query.systemId); query.mapId = resp.data.mapId; From 916bc645ed5d4ac14d1984d13974a05e5b327dde Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 18 Jun 2024 15:36:57 +0800 Subject: [PATCH 11/11] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=9B=BE=E6=B5=8B=E8=AF=95=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newMap/newMapdraft/mapoperate/terminals/terminals.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue b/src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue index 3a02cb045..6e8022e90 100644 --- a/src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue +++ b/src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue @@ -369,6 +369,11 @@ export default { name: '列车PIS', code: 'pisTrain', isShow: () => type === 'METRO' + }, + { + name: '运行图测试', + code: 'testRunplan', + isShow: () => type === 'METRO' } ]; const terminalList = commonTerminals(type);