diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue
index 199b714..de33e66 100644
--- a/src/views/govern/device/planData/index.vue
+++ b/src/views/govern/device/planData/index.vue
@@ -20,8 +20,12 @@
测试项信息
-
+
@@ -99,10 +103,25 @@
-
-
+
+
+
+
+
+
+
+
@@ -110,17 +129,30 @@
-
-
+
+
-
+
-
+
@@ -184,6 +216,7 @@ const typeOptions = [
]
searchForm.value = {
index: '',
+ dataLevel: 'Primary',
type: typeOptions[0].id,
count: []
}
@@ -261,10 +294,10 @@ const handleOpen = (val: any) => {
ids = deviceData.value.records.find((item: any) => {
return item.id == activeName.value
})?.id
- dialogRef.value.detailsType("table")
+ dialogRef.value.detailsType('table')
} else {
ids = ''
- dialogRef.value.detailsType("")
+ dialogRef.value.detailsType('')
}
dialogRef.value.open(val, ids)
}
@@ -343,6 +376,7 @@ const init = () => {
let obj = {
devId: historyDevId.value,
list: lists,
+ dataLevel:searchForm.value.dataLevel,
valueType: searchForm.value.type
}
@@ -366,6 +400,9 @@ const init = () => {
xAxis = timeList.sort((a: any, b: any) => {
return new Date(a).getTime() - new Date(b).getTime()
})
+ // xAxis.map((item:any)=>{
+
+ // })
echartsData.value = {
options: {
title: [
@@ -379,20 +416,11 @@ const init = () => {
feature: {
saveAsImage: {
title: '保存'
- },
+ }
// dataView: { readOnly: false },
// }
}
},
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
// tooltip: {
// trigger: 'axis',
// axisPointer: {
@@ -428,6 +456,23 @@ const init = () => {
width: 400,
height: 50
},
+ tooltip: {
+ trigger: 'axis',
+ textStyle: {
+ color: '#fff',
+ fontStyle: 'normal',
+ opacity: 0.35,
+ fontSize: 14
+ },
+ backgroundColor: 'rgba(0,0,0,0.35)',
+ borderWidth: 0,
+ axisPointer: {
+ type: 'cross',
+ crossStyle: {
+ color: '#999'
+ }
+ }
+ },
// grid: {
// left: historyDataList.value.length != 0 ? '5%' : '1%',
// right: '5%',
@@ -437,7 +482,7 @@ const init = () => {
// },
xAxis: [
{
- type: 'category',
+ type: 'time',//category
name: '\n\n\n\n\n时间',
axisLabel: {
color: '#A9AEB2',