diff --git a/.env.development b/.env.development
index b387ff05b..1f981edf9 100644
--- a/.env.development
+++ b/.env.development
@@ -8,6 +8,7 @@ NODE_ENV = 'development'
VUE_APP_BASE_API = 'http://192.168.3.6:9000'
VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
+VUE_APP_BASE_SITE='https://test.joylink.club/cbtc'
# VUE_APP_VOICE_API = 'http://192.168.8.110:9008'
diff --git a/.env.heb b/.env.heb
index 6f94e6d38..f812f3b43 100644
--- a/.env.heb
+++ b/.env.heb
@@ -6,3 +6,4 @@ VUE_APP_PRO = 'local'
VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
+VUE_APP_BASE_SITE='https://joylink.club/cbtc'
diff --git a/.env.ntyl b/.env.ntyl
index 1ba6de5da..23049259f 100644
--- a/.env.ntyl
+++ b/.env.ntyl
@@ -6,3 +6,4 @@ VUE_APP_PRO = 'ntyl'
VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
+VUE_APP_BASE_SITE='https://joylink.club/cbtc'
diff --git a/.env.production b/.env.production
index 71363ca9f..6924d751f 100644
--- a/.env.production
+++ b/.env.production
@@ -5,3 +5,4 @@ NODE_ENV = 'production'
VUE_APP_BASE_API = 'https://api.joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
+VUE_APP_BASE_SITE='https://joylink.club/cbtc'
diff --git a/.env.staging b/.env.staging
index d1042b068..35048ea21 100644
--- a/.env.staging
+++ b/.env.staging
@@ -5,3 +5,4 @@ NODE_ENV = 'test'
VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
+VUE_APP_BASE_SITE='https://test.joylink.club/cbtc'
diff --git a/src/App.vue b/src/App.vue
index f327f2ba1..73df28b15 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,7 +2,7 @@
-
+
@@ -108,3 +108,6 @@ export default {
};
+
diff --git a/src/api/jmap/mapdraft.js b/src/api/jmap/mapdraft.js
index 6eba1062e..4fc677c8e 100644
--- a/src/api/jmap/mapdraft.js
+++ b/src/api/jmap/mapdraft.js
@@ -562,3 +562,35 @@ export function deleteStationDestination(mapId, code) {
method: 'delete'
});
}
+
+// 大铁地图进路相关接口 创建,修改,删除,根据id查询,
+export function postBigRoute(data, mapId) {
+ return request({
+ url: `/api/draftMap/${mapId}/route/railway `,
+ method: 'post',
+ data:data
+ });
+}
+export function getBigRouteList(mapId) {
+ return request({
+ url: `/api/draftMap/${mapId}/route/all `,
+ method: 'get'
+ });
+}
+// 大铁地图进路删除接口
+export function deleteBigRoute(mapId, code) {
+ return request({
+ url: `/api/draftMap/${mapId}/route/${code}`,
+ method: 'delete'
+ });
+}
+
+// 草稿地图修改检查配置接口
+export function checkConfig(mapId, data) {
+ return request({
+ url: `/api/mapBuild/${mapId}/checkConfig `,
+ method: 'PUT',
+ data
+ });
+}
+// { check: true/false } (body体)
diff --git a/src/api/rtSimulation.js b/src/api/rtSimulation.js
new file mode 100644
index 000000000..034133da0
--- /dev/null
+++ b/src/api/rtSimulation.js
@@ -0,0 +1,94 @@
+import request from '@/utils/request';
+/** 创建仿真 */
+export function createSimulation(data) {
+ return request({
+ url: `/rtSimulation?mapId=${data.mapId}&prdType=${data.prdType}`,
+ method: 'post'
+ });
+}
+/** 根据仿真group获取仿真基础信息 */
+export function getSimulationInfoByGroup(groupId) {
+ return request({
+ url: `/rtSimulation/${groupId}`,
+ method: 'get'
+ });
+}
+/** 根据仿真group获取仿真地图数据 */
+export function getMapDataByGroup(groupId) {
+ return request({
+ url: `/rtSimulation/${groupId}/mapData`,
+ method: 'get'
+ });
+}
+/** 仿真发送指令 */
+export function sendSimulationCommand(group, memberId, type, data) {
+ return request({
+ url: `/common/simulation/${group}/member/${memberId}/operate/${type}`,
+ method: 'post',
+ data
+ });
+}
+/** 获取仿真成员列表 */
+export function getMemberListCommon(group) {
+ return request({
+ url: `/common/simulation/${group}/members`,
+ method: 'get'
+ });
+}
+/** 获取仿真用户列表 */
+export function getUserListCommon(group) {
+ return request({
+ url: `/common/simulation/${group}/users`,
+ method: 'get'
+ });
+}
+/** 销毁仿真 */
+export function destroySimulation(group) {
+ return request({
+ url: `/common/simulation/${group}/destroy`,
+ method: 'delete'
+ });
+}
+/** 初始化仿真 */
+export function initSimulation(group) {
+ return request({
+ url: `/common/simulation/${group}/init`,
+ method: 'put'
+ });
+}
+/** 设置故障 */
+export function setSimulationFault(group, data) {
+ return request({
+ url: `/common/simulation/${group}/fault`,
+ method: 'post',
+ data
+ });
+}
+/** 取消故障 */
+export function cancelSimulationFault(group, deviceId, faultType) {
+ return request({
+ url: `/common/simulation/${group}/device/${deviceId}/fault/${faultType}`,
+ method: 'delete'
+ });
+}
+/** 仿真运行倍速 */
+export function timesSpeedPlayback(group, speed) {
+ return request({
+ url: `/common/simulation/${group}/updateSpeed/${speed}`,
+ method: 'put'
+ });
+}
+/** 仿真暂停 */
+export function simulationPause(group) {
+ return request({
+ url: `/common/simulation/${group}/pause`,
+ method: 'put'
+ });
+}
+/** 仿真开始 */
+export function simulationStart(group) {
+ return request({
+ url: `/common/simulation/${group}/start`,
+ method: 'put'
+ });
+}
diff --git a/src/api/trainingPlatform.js b/src/api/trainingPlatform.js
index 277ffebb1..6a3d9a6b2 100644
--- a/src/api/trainingPlatform.js
+++ b/src/api/trainingPlatform.js
@@ -15,6 +15,13 @@ export function generateMapSystem(mapId) {
method: 'post'
});
}
+/** 生成指定子系统 */
+export function generateAppointMapSystem(mapId, prdType) {
+ return request({
+ url: `/api/mapSystem/generate/${mapId}/${prdType}`,
+ method: 'post'
+ });
+}
/** 查询子系统信息 */
export function getSubSystemInfo(id) {
return request({
diff --git a/src/components/QrCode/index.vue b/src/components/QrCode/index.vue
index 91f669e57..7f7b653f6 100644
--- a/src/components/QrCode/index.vue
+++ b/src/components/QrCode/index.vue
@@ -1,9 +1,9 @@
-
+
-
+
{{ $t('global.roomId')+group }}