From 2ba9e761abc476e9ea1d0b6329a14a72c9dcb38f Mon Sep 17 00:00:00 2001
From: dengj <209192278@qq.com>
Date: Tue, 26 Dec 2023 17:08:15 +0800
Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E9=9A=A7=E9=81=93?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=83=A8=E5=88=86=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/tunnelManage.js | 27 +-
src/components/manageBtn/index.vue | 10 +-
src/views/device-manage/index.vue | 436 +++++++++++++++--------------
src/views/edit/edit.vue | 341 +++++++---------------
src/views/tunnel-manage/index.vue | 67 +++--
5 files changed, 399 insertions(+), 482 deletions(-)
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 @@