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