diff --git a/src/api/largeScreen.js b/src/api/largeScreen.js index 2e87e5b..8f1f3c7 100644 --- a/src/api/largeScreen.js +++ b/src/api/largeScreen.js @@ -160,20 +160,20 @@ export const getSimulationBadGasEchartsInfo = (id,time,type,startTime,endTime) = export const startSimulation = (projectId) => { return request({ url: `/tunnel/simulation/start/${projectId}`, - method: 'post' + method: 'get' }) } // 结束模拟 export const endSimulation = (projectId) => { return request({ url: `/tunnel/simulation/stop/${projectId}`, - method: 'post' + method: 'get' }) } //模拟爆破 export const blastingSimulation = (projectId,level) => { return request({ url: `/tunnel/simulation/blasting/${projectId}/${level}`, - method: 'post' + method: 'get' }) } \ No newline at end of file diff --git a/src/api/tunnelManage.js b/src/api/tunnelManage.js index 680d7bb..14042b4 100644 --- a/src/api/tunnelManage.js +++ b/src/api/tunnelManage.js @@ -108,6 +108,14 @@ export const addSimulateTunnel = (data) => { }) } +export const editSimulateTunnel = (data) => { + return request({ + url: '/tunnel/simulate/edit', + method: 'post', + data + }) +} + export const editSimulateEquipment = (data) => { return request({ url: '/tunnel/simulate', diff --git a/src/components/content/tunnelScene/TunnelSceneSimulate-back.vue b/src/components/content/tunnelScene/TunnelSceneSimulate-back.vue new file mode 100644 index 0000000..171180b --- /dev/null +++ b/src/components/content/tunnelScene/TunnelSceneSimulate-back.vue @@ -0,0 +1,477 @@ + + + + + diff --git a/src/components/content/tunnelScene/TunnelSceneSimulate.vue b/src/components/content/tunnelScene/TunnelSceneSimulate.vue index 59a5ea9..92e5e0f 100644 --- a/src/components/content/tunnelScene/TunnelSceneSimulate.vue +++ b/src/components/content/tunnelScene/TunnelSceneSimulate.vue @@ -360,6 +360,7 @@ const ThreeConfig = { * @param {Object} data 渲染数据格式 [{equipmentId,equipmentName,pointName,equipmentType,equipmentValue}] */ function TunnelSceneSimulateRender(data) { + console.log('TunnelSceneSimulateRender',data) if (!demo) return; const modeData = randomPosition([ ...data.frequencyChangerList, @@ -404,7 +405,7 @@ function renderRoadPlane(data) { } defineExpose({ - rerender, + rerender,TunnelSceneSimulateRender }); diff --git a/src/components/deviceManage/index.vue b/src/components/deviceManage/index.vue index 7f146b9..15ca2c9 100644 --- a/src/components/deviceManage/index.vue +++ b/src/components/deviceManage/index.vue @@ -39,33 +39,33 @@ :header-cell-style="{backgroundColor: '#064B66',color: '#fff',fontSize: '40px',borderBottom: 'none' }" :cell-style="{textAlign: 'center',borderBottom: 'none'}" :data="fanData"> - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +