From 5675fb5ce3c2461465b04b79642462d58517353d Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Tue, 22 Oct 2024 19:47:00 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86-=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E9=A1=B9=E7=9B=AE-=E5=B7=A5=E7=A8=8B=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E4=B8=8B=E6=8B=89=E6=A1=86=E6=A0=91=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/cs-harmonic-boot/mxgraph.ts | 77 ++++++++--------
.../mxgraph/graphList/components/popup.vue | 89 +++++++++++--------
2 files changed, 95 insertions(+), 71 deletions(-)
diff --git a/src/api/cs-harmonic-boot/mxgraph.ts b/src/api/cs-harmonic-boot/mxgraph.ts
index 9b62d25..ff8526b 100644
--- a/src/api/cs-harmonic-boot/mxgraph.ts
+++ b/src/api/cs-harmonic-boot/mxgraph.ts
@@ -1,43 +1,50 @@
import createAxios from '@/utils/request'
//新增组态项目
-export function add(data:any) {
+export function add(data: any) {
return createAxios({
- url: "/cs-harmonic-boot/csconfiguration/add",
- method: "post",
- data,
- });
- }
- //组态项目分页查询
- export function coFqueryPage(data:any) {
+ url: '/cs-harmonic-boot/csconfiguration/add',
+ method: 'post',
+ data
+ })
+}
+//组态项目分页查询
+export function coFqueryPage(data: any) {
return createAxios({
- url: "/cs-harmonic-boot/csconfiguration/queryPage",
- method: "post",
- data,
- });
- }
- //修改组态项目
- export function audit(data:any) {
+ url: '/cs-harmonic-boot/csconfiguration/queryPage',
+ method: 'post',
+ data
+ })
+}
+//修改组态项目
+export function audit(data: any) {
return createAxios({
- url: "/cs-harmonic-boot/csconfiguration/audit",
- method: "post",
- data,
- });
- }
- //组态页面分页查询
- export function queryPageData(data:any) {
+ url: '/cs-harmonic-boot/csconfiguration/audit',
+ method: 'post',
+ data
+ })
+}
+//组态页面分页查询
+export function queryPageData(data: any) {
return createAxios({
- url: "/cs-harmonic-boot/cspage/queryPage",
- method: "post",
- data,
- });
- }
- //查询工程列表
- export function deviceTree(data:any) {
+ url: '/cs-harmonic-boot/cspage/queryPage',
+ method: 'post',
+ data
+ })
+}
+//查询工程列表
+export function deviceTree(data: any) {
return createAxios({
- url: "/cs-device-boot/csLedger/deviceTree",
- method: "post",
- data,
- });
- }
-
\ No newline at end of file
+ url: '/cs-device-boot/csLedger/deviceTree',
+ method: 'post',
+ data
+ })
+}
+
+//三层设备树(项目层根节点为治理设备和便携式设备组态)
+export function getztProjectTree() {
+ return createAxios({
+ url: '/cs-device-boot/csLedger/getztProjectTree',
+ method: 'post',
+ })
+}
diff --git a/src/views/govern/mxgraph/graphList/components/popup.vue b/src/views/govern/mxgraph/graphList/components/popup.vue
index a318dec..6353577 100644
--- a/src/views/govern/mxgraph/graphList/components/popup.vue
+++ b/src/views/govern/mxgraph/graphList/components/popup.vue
@@ -1,46 +1,51 @@
-
-
-
+
-
-
+
-
-
-
-
+
-
-
-
-