From b393419b0ac7bfd01e921963adf1ffcfd64a055c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Mon, 11 Mar 2024 14:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E7=9B=91=E6=B5=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user-boot/dept.ts | 7 +- src/api/user-boot/deptLine.ts | 9 + src/api/user-boot/terminalTree.ts | 9 + src/views/auth/department/index.vue | 2 +- src/views/auth/department/popupPoint.vue | 295 ++++++++++++++++++----- 5 files changed, 263 insertions(+), 59 deletions(-) create mode 100644 src/api/user-boot/deptLine.ts create mode 100644 src/api/user-boot/terminalTree.ts diff --git a/src/api/user-boot/dept.ts b/src/api/user-boot/dept.ts index 73376097..a5e15445 100644 --- a/src/api/user-boot/dept.ts +++ b/src/api/user-boot/dept.ts @@ -30,7 +30,7 @@ export function updateDept(data: any) { }) } -export function deleteDept(data:any) { +export function deleteDept(data: any) { return request({ url: '/user-boot/dept/delete', method: 'post', @@ -38,10 +38,11 @@ export function deleteDept(data:any) { }) } -export function selectPid(data:any) { +export function selectPid(data: any) { return request({ url: '/user-boot/dept/selectPid', method: 'post', data: data }) -} \ No newline at end of file +} + diff --git a/src/api/user-boot/deptLine.ts b/src/api/user-boot/deptLine.ts new file mode 100644 index 00000000..b17e79e8 --- /dev/null +++ b/src/api/user-boot/deptLine.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function deptBindLine(data: any) { + return request({ + url: '/device-boot/deptLine/deptBindLine', + method: 'post', + data: data + }) +} diff --git a/src/api/user-boot/terminalTree.ts b/src/api/user-boot/terminalTree.ts new file mode 100644 index 00000000..ec09f47a --- /dev/null +++ b/src/api/user-boot/terminalTree.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function getDeptBindDeptLineTree(data: any) { + return request({ + url: '/device-boot/terminalTree/getDeptBindDeptLineTree', + method: 'get', + params: data + }) +} \ No newline at end of file diff --git a/src/views/auth/department/index.vue b/src/views/auth/department/index.vue index 72ec6d4e..b46b6254 100644 --- a/src/views/auth/department/index.vue +++ b/src/views/auth/department/index.vue @@ -140,7 +140,7 @@ const tableStore = new TableStore({ return row.children.length > 0 }, click: row => { - popupPointRef.value.open('绑定监测点', row) + popupPointRef.value.open( row) } } ] diff --git a/src/views/auth/department/popupPoint.vue b/src/views/auth/department/popupPoint.vue index fab5896d..c9d81ccc 100644 --- a/src/views/auth/department/popupPoint.vue +++ b/src/views/auth/department/popupPoint.vue @@ -1,18 +1,61 @@