diff --git a/public/config.js b/public/config.js index e81bcb4..4653853 100644 --- a/public/config.js +++ b/public/config.js @@ -2,7 +2,7 @@ window._CONFIG = { ImageryProviderUrl: '/map/mapWX/{z}/{x}/{y}.jpg', RoadProviderUrl: '', - TerrainProviderUrl: '/map/mapDem/', + TerrainProviderUrl: '/map/mapTerrain/', thirdLoginUrl: 'http://127.0.0.1:8080/thirdLogin', clientId: '0123456789', evaluationSrc: 'http://127.0.0.1:8000', diff --git a/src/components/Common/Cesium/index.js b/src/components/Common/Cesium/index.js index 85ac7a8..682ada2 100644 --- a/src/components/Common/Cesium/index.js +++ b/src/components/Common/Cesium/index.js @@ -27,7 +27,7 @@ const getCatesian3FromPX = (viewer, px) => { export default class MyCesium { static ImageryProviderUrl = '/map/mapWX/{z}/{x}/{y}.jpg' static RoadProviderUrl = '' - static TerrainProviderUrl = '/map/mapDem/' + static TerrainProviderUrl = '/map/mapTerrain/' static center = [116.39742, 39.90906, 2000000] static ENTITY_TYPES = { WARZONE: 1, @@ -208,18 +208,8 @@ export default class MyCesium { image: base64, width: 50, height: 50, - // eyeOffset: new Cesium.Cartesian3(0.0, 0.0, -100000.0), // 使标记在远处看起来更大 scaleByDistance: new Cesium.NearFarScalar(1000000.0, 1.0, 10000000.0, 0.2), // 重点:设置随距离缩放 }, - ellipse: { - semiMajorAxis: radius, - semiMinorAxis: radius, - material: Cesium.Color.fromCssColorString('transparent'), - outline: true, - outlineWidth: 1, - outlineColor: Cesium.Color.fromCssColorString(color), - height: 0, - }, properties: { type: MyCesium.ENTITY_TYPES.IMAGE, color, @@ -266,18 +256,8 @@ export default class MyCesium { image: base64, width: 50, height: 50, - // eyeOffset: new Cesium.Cartesian3(0.0, 0.0, -100000.0), // 使标记在远处看起来更大 scaleByDistance: new Cesium.NearFarScalar(1000000.0, 1.0, 10000000.0, 0.2), // 重点:设置随距离缩放 }, - ellipse: { - semiMajorAxis: radius, - semiMinorAxis: radius, - material: Cesium.Color.fromCssColorString('transparent'), - outline: true, - outlineWidth: 1, - outlineColor: Cesium.Color.fromCssColorString(color), - height: 0, - }, properties: { type: MyCesium.ENTITY_TYPES.IMAGE, color, diff --git a/src/components/Common/Directives/Loading.js b/src/components/Common/Directives/Loading.js index 05fd094..89a5989 100644 --- a/src/components/Common/Directives/Loading.js +++ b/src/components/Common/Directives/Loading.js @@ -1,7 +1,10 @@ -function initLoadingDom(el) { +function initLoadingDom(el, mode = 'light') { el.loadingDom = document.createElement('div') el.loadingDom.style.position = 'absolute' - el.loadingDom.style.backgroundColor = 'rgba(255,255,255,0.3)' + el.loadingDom.style.backgroundColor = { + light: 'rgba(255,255,255,0.3)', + dark: 'rgba(0,0,0,0.3)', + }[mode] el.loadingDom.style.color = '#00f2fe' el.loadingDom.style.fontSize = '40px' el.loadingDom.style.display = 'flex' @@ -30,7 +33,7 @@ export default { }, inserted(el, binding, vnode, oldVnode) { // console.log('----inserted----', el, binding, vnode, oldVnode) - initLoadingDom(el) + initLoadingDom(el, Object.keys(binding.modifiers)[0]) if (binding.value) { appendLoadingDom(el) } diff --git a/src/config/router.config.js b/src/config/router.config.js index 59e6a42..55e4fc6 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -100,12 +100,17 @@ export const constantRouterMap = [ // component: () => import(/* webpackChunkName: "fail" */ '@/views/subsystem/database/index.vue'), // meta: { title: '数据库子系统' }, // }, - // { - // path: '/subsystem/simulationModel', - // name: 'SimulationSceneSimulationModel', - // component: () => import(/* webpackChunkName: "fail" */ '@/views/subsystem/simulationModel/index.vue'), - // meta: { title: '仿真模型子系统' }, - // }, + { + path: '/subsystem/modelEntry', + name: 'SubsystemModelEntry', + component: () => import(/* webpackChunkName: "fail" */ '@/views/subsystem/model/entry.vue'), + }, + { + path: '/subsystem/model', + name: 'SubsystemModel', + component: () => import(/* webpackChunkName: "fail" */ '@/views/subsystem/model/index.vue'), + meta: { title: '仿真模型子系统' }, + }, // { // path: '/subsystem/sceneEditing', // name: 'SimulationSceneSceneEditing', diff --git a/src/views/subsystem/control/index.vue b/src/views/subsystem/control/index.vue index 6e9855c..42e249d 100644 --- a/src/views/subsystem/control/index.vue +++ b/src/views/subsystem/control/index.vue @@ -13,7 +13,7 @@ @click="getRoomList" > - +
@@ -58,8 +58,8 @@ @click="getRoomDetail()" > - -
推演实例:{{ detail.data.roomName }}
+ +
推演实例:{{ detail.data.scenarioName }}
推演控制({{ detail.data.mag }}倍速 {{ statusMpText[detail.data.status] }}) @@ -67,7 +67,7 @@ type="text" class="room-control-btn flex ai-c" :disabled="!(controlable && able1)" - @click="sendWensocket('1')" + @click="handleSlowdown" > 减速 @@ -76,25 +76,36 @@ type="text" class="room-control-btn flex ai-c" :disabled="!(controlable && able2)" - @click="sendWensocket('2')" + @click="handleStart" > 开始 暂停 + + + 继续 + 终止 @@ -103,7 +114,7 @@ type="text" class="room-control-btn flex ai-c" :disabled="!(controlable && able5)" - @click="sendWensocket('5')" + @click="handleAccelerate" > 加速 @@ -112,7 +123,7 @@ 想定名称 -
{{ detail.data.scenario.startTime }}
+
{{ detail.data.scenario.scenarioName }}
开始时间 @@ -148,7 +159,7 @@ diff --git a/src/views/subsystem/model/components/BzTask.vue b/src/views/subsystem/model/components/BzTask.vue new file mode 100644 index 0000000..181ff48 --- /dev/null +++ b/src/views/subsystem/model/components/BzTask.vue @@ -0,0 +1,233 @@ + + + + + diff --git a/src/views/subsystem/model/components/Jcsx.vue b/src/views/subsystem/model/components/Jcsx.vue new file mode 100644 index 0000000..d9adf07 --- /dev/null +++ b/src/views/subsystem/model/components/Jcsx.vue @@ -0,0 +1,446 @@ + + + + + + diff --git a/src/views/subsystem/model/components/LonLatInput.vue b/src/views/subsystem/model/components/LonLatInput.vue new file mode 100644 index 0000000..43fe543 --- /dev/null +++ b/src/views/subsystem/model/components/LonLatInput.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/subsystem/model/components/Zzxd.vue b/src/views/subsystem/model/components/Zzxd.vue new file mode 100644 index 0000000..f5337f0 --- /dev/null +++ b/src/views/subsystem/model/components/Zzxd.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/subsystem/model/entry.vue b/src/views/subsystem/model/entry.vue new file mode 100644 index 0000000..4d3c1e8 --- /dev/null +++ b/src/views/subsystem/model/entry.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/views/subsystem/model/index.vue b/src/views/subsystem/model/index.vue new file mode 100644 index 0000000..e46ab64 --- /dev/null +++ b/src/views/subsystem/model/index.vue @@ -0,0 +1,542 @@ + + + + + diff --git a/src/views/user/Welcome.vue b/src/views/user/Welcome.vue index 4ca7a5a..5cc7838 100644 --- a/src/views/user/Welcome.vue +++ b/src/views/user/Welcome.vue @@ -47,7 +47,7 @@ export default { moduleCode: 'simulation_system', moduleName: '仿真模型子系统', icon: require('@/assets/images/simulation-scene/system-icon/model.png'), - modulePath: '/simulationScene/simulationModel', + modulePath: '/subsystem/modelEntry', }, { moduleCode: 'scenario_system',