diff --git a/src/api/tunnelManage.js b/src/api/tunnelManage.js index b924c9b..9374a38 100644 --- a/src/api/tunnelManage.js +++ b/src/api/tunnelManage.js @@ -7,11 +7,13 @@ export const getTunnelList = (params) => { params }) } -export const editTunnel = (data) => { +export const getTunnelDetail = (tunnelId) => { return request({ - url: '/tunnel/tunnel', - method: 'put', - data + url: `/tunnel/tunnel/${tunnelId}`, + method: 'get', + params:{ + tunnelId:tunnelId + } }) } export const addTunnel = (data) => { @@ -27,3 +29,20 @@ export const deleteTunnel = (tunnelIdList) => { method: 'delete' }) } +//设备信息列表 +export const getEquipmentList = (tunnelId) => { + return request({ + url: '/tunnel/equipment/equipments', + method: 'get', + params:{ + tunnelId:tunnelId + } + }) +} +export const editTunnel = (data) => { + return request({ + url: '/tunnel/model/details', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/components/manageBtn/index.vue b/src/components/manageBtn/index.vue index bfddc1c..064e94d 100644 --- a/src/components/manageBtn/index.vue +++ b/src/components/manageBtn/index.vue @@ -46,11 +46,11 @@ const btnList = ref([ icon: 'sp_icon_yhgl.png', name: '用户管理' }, - { - route: '/system', - icon: 'sp_icon_xtgl.png', - name: '系统管理' - }, + // { + // route: '/system', + // icon: 'sp_icon_xtgl.png', + // name: '系统管理' + // }, // { // icon: 'sp_icon_mngl.png', // name: '模拟仿真' diff --git a/src/views/device-manage/index.vue b/src/views/device-manage/index.vue index 9927eb3..ed9778d 100644 --- a/src/views/device-manage/index.vue +++ b/src/views/device-manage/index.vue @@ -26,9 +26,9 @@ 其他传感器 - - 分流器 - + + +
@@ -50,20 +50,20 @@ style="border-bottom: 1px #06e5e5 solid;background-color: #011c29;--el-table-border-color: none;" :header-cell-style="{backgroundColor: '#064B66',color: '#fff',fontSize: '40px',borderBottom: 'none' }" :cell-style="{textAlign: 'center',borderBottom: 'none'}" :data="fanData"> - - + + - + - + @@ -90,7 +90,7 @@
取消
-
+
确定
@@ -114,12 +114,12 @@ style="border-bottom: 1px #06e5e5 solid;background-color: #011c29;--el-table-border-color: none;" :header-cell-style="{backgroundColor: '#064B66',color: '#fff',fontSize: '40px',borderBottom: 'none' }" :cell-style="{textAlign: 'center',borderBottom: 'none'}" :data="winData"> - + - + @@ -146,7 +146,7 @@
取消
-
+
确定
@@ -170,16 +170,16 @@ style="border-bottom: 1px #06e5e5 solid;background-color: #011c29;--el-table-border-color: none;" :header-cell-style="{backgroundColor: '#064B66',color: '#fff',fontSize: '40px',borderBottom: 'none' }" :cell-style="{textAlign: 'center',borderBottom: 'none'}" :data="otherData"> - + - + @@ -272,195 +272,214 @@ \ No newline at end of file diff --git a/src/views/tunnel-manage/index.vue b/src/views/tunnel-manage/index.vue index b11e12b..948e2b1 100644 --- a/src/views/tunnel-manage/index.vue +++ b/src/views/tunnel-manage/index.vue @@ -22,7 +22,7 @@
{{ item.tunnelName }} - 施工长度{{ item.constructionLength }}米 隧道长度{{ item.totalLength }}公里 + 施工长度{{ item.constructionLength }}米 隧道长度{{ item.totalLength }}米
@@ -33,7 +33,7 @@
隧道编辑
-
+
设备管理
@@ -62,15 +62,15 @@
{{ title }}
- - - + + + - + - - + + @@ -80,7 +80,7 @@
取消
-
+
确定
@@ -97,12 +97,16 @@