From cdc640c4b2405dfeaba3b41f6f18bf1d6ab8534b Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Tue, 18 Jun 2024 16:35:53 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=96=B9=E6=A1=88=E4=B8=80?=
=?UTF-8?q?=E7=BA=A7=E9=A1=B5=E9=9D=A2=E8=81=94=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/cs-device-boot/planData.ts | 71 +++
src/components/echarts/MyEchart.vue | 6 +-
.../planData/components/deviceInfo.vue | 15 +-
.../terminal/planData/components/popup.vue | 417 ++++++++++++++++++
.../planData/components/schemeTree.vue | 270 ++++++++++++
src/views/govern/terminal/planData/index.vue | 304 +++++++------
src/views/govern/terminal/planData/popup.vue | 261 -----------
7 files changed, 938 insertions(+), 406 deletions(-)
create mode 100644 src/api/cs-device-boot/planData.ts
create mode 100644 src/views/govern/terminal/planData/components/popup.vue
create mode 100644 src/views/govern/terminal/planData/components/schemeTree.vue
delete mode 100644 src/views/govern/terminal/planData/popup.vue
diff --git a/src/api/cs-device-boot/planData.ts b/src/api/cs-device-boot/planData.ts
new file mode 100644
index 0000000..a744be9
--- /dev/null
+++ b/src/api/cs-device-boot/planData.ts
@@ -0,0 +1,71 @@
+import createAxios from '@/utils/request'
+
+// 方案列表
+export function getSchemeTree() {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/schemeTree',
+ method: 'GET'
+ })
+}
+
+// 根据方案查询测试项信息
+export function getTestRecordInfo(id:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/getTestRecordById?testRecordId='+id,
+ method: 'GET'
+ })
+}
+//新增修改方案
+export function addPlan(data:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/updateSchemeRecord',
+ method: 'POST',
+ data
+ })
+}
+
+//新增测试项
+export function addRecord(data:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/addRecord',
+ method: 'POST',
+ data
+ })
+}
+
+//新增测试项
+export function updateRecord(data:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/updateTestRecord',
+ method: 'POST',
+ data
+ })
+}
+
+//删除方案或测试项
+export function delRecord(data:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/deleteRecord?id='+data.id,
+ method: 'DELETE',
+ })
+}
+
+
+//查询历史趋势折线图
+export function getHistoryTrend(data:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/queryCommonStatisticalByTest',
+ method: 'POST',
+ data
+ })
+}
+
+//查询设备列表
+export function getDeviceList(data:any) {
+ return createAxios({
+ url: '/cs-device-boot/wlRecord/queryPage',
+ method: 'POST',
+ data
+ })
+}
+
diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue
index 0eca758..291a08f 100644
--- a/src/components/echarts/MyEchart.vue
+++ b/src/components/echarts/MyEchart.vue
@@ -52,7 +52,7 @@ const initChart = () => {
},
// textStyle: {
color: '#fff',
- fontStyle: 'normal',
+ fontStyle: '14px',
opacity: 0.35,
fontSize: 14,
// },
@@ -180,9 +180,9 @@ const handlerXAxis = () => {
type: 'category',
axisTick: { show: false },
axisLine: {
- lineStyle: {
+ // lineStyle: {
color: '#000'
- }
+ // }
},
axisLabel: {
// textStyle: {
diff --git a/src/views/govern/terminal/planData/components/deviceInfo.vue b/src/views/govern/terminal/planData/components/deviceInfo.vue
index 2c2267c..51f9ee3 100644
--- a/src/views/govern/terminal/planData/components/deviceInfo.vue
+++ b/src/views/govern/terminal/planData/components/deviceInfo.vue
@@ -116,7 +116,7 @@
diff --git a/src/views/govern/terminal/planData/components/schemeTree.vue b/src/views/govern/terminal/planData/components/schemeTree.vue
new file mode 100644
index 0000000..0f2834f
--- /dev/null
+++ b/src/views/govern/terminal/planData/components/schemeTree.vue
@@ -0,0 +1,270 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增方案
+
+
+
+
+
+
+ {{ node.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/govern/terminal/planData/index.vue b/src/views/govern/terminal/planData/index.vue
index 18e65d3..4dbac06 100644
--- a/src/views/govern/terminal/planData/index.vue
+++ b/src/views/govern/terminal/planData/index.vue
@@ -1,68 +1,83 @@
-
+
-
+
+
- {{ deviceData[0]?.name }}
+ {{ deviceData.itemName }}
- {{ echoName(deviceData[0]?.devType, devTypeOptions) }}
+ {{ deviceData.describe ? deviceData.describe : '/' }}
-
-
测试项信息
+
+
+
+
+
+
+ {{ item.itemName }}
+
+
+ {{ item.pt }}
+
+
+ {{ item.ct }}
+
+
+ {{ item.statisticalInterval }}
+
+
+ {{
+ voltageLevelList.find(vv => {
+ return vv.id == item.voltageLevel
+ })?.name
+ }}
+
+
+ {{
+ volConTypeList.find(vv => {
+ return vv.id == item.volConType
+ })?.name
+ }}
+
+
+ {{ item.startTime }}
+
+
+ {{ item.endTime }}
+
+
+ {{ item.location }}
+
+
+
+
+ 设备信息
+
+
+
+
+
-
-
-
-
- {{ item.name+(index+1) }}
-
-
- {{ echoName(item.devType, devTypeOptions) }}
-
-
- {{ item.devAccessMethod }}
-
-
- {{ item.ndid }}
-
-
- {{ echoName(item.devModel, devModelOptions) }}
-
-
- {{ item.time }}
-
-
- {{ item.time }}
-
-
- {{ item.time }}
-
-
- {{ echoName(item.devModel, devModelOptions) }}
-
-
-
- 修改
-
-
- 设备信息
-
-
-
-
-
@@ -96,6 +111,9 @@
+
@@ -126,31 +144,34 @@
-