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 @@
-