From 8af7a35c69903325b318f79ab886ce5c58881743 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Mon, 30 Dec 2024 22:31:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BC=98=E5=8C=96=E9=9A=A7=E9=81=93?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/largeScreen.js | 6 +- src/api/tunnelManage.js | 8 + src/components/deviceManage/index.vue | 69 ++++--- src/views/tunnel-simulate/index.vue | 235 ++++++---------------- src/views/tunnel-simulate/tunnel-list.vue | 115 ++--------- src/views/tunnel/index.vue | 2 +- 6 files changed, 129 insertions(+), 306 deletions(-) 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/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"> - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +