diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue
index 23de86b..c2f1af9 100644
--- a/src/views/govern/device/planData/index.vue
+++ b/src/views/govern/device/planData/index.vue
@@ -5,10 +5,8 @@
- 新增方案
-
- 数据导出
-
+ 新增方案
+ 数据导出
{{ deviceData.itemName }}
@@ -68,13 +66,13 @@
{{ item.ct && item.ct1 ? item.ct / item.ct1 : item.ct }}
-
+
{{ item.startTime }}
-
+
{{ item.endTime }}
@@ -122,9 +120,9 @@
v-if="item.countOptions.length != 0"
label-width="180px"
>
+
- 查询
+ 查询
@@ -176,7 +174,6 @@ import { queryStatistical } from '@/api/system-boot/csstatisticalset'
import * as echarts from 'echarts'
import { isNonNullChain } from 'typescript'
import { position } from 'html2canvas/dist/types/css/property-descriptors/position'
-import { read, writeFile, utils } from 'xlsx'
const dictData = useDictData()
defineOptions({
name: 'govern/device/manage'
@@ -324,11 +321,6 @@ const init = async () => {
middleTitle = ''
}
chartTitle.value = deviceData.value.itemName + '_' + middleTitle + '_'
- // +
- // indexOptions.value.find(item => {
- // return item.id == searchForm.value.index[0]
- // })?.name
-
searchForm.value.index.map((item: any, indexs: any) => {
indexOptions.value.map((vv: any) => {
if (vv.id == item) {
@@ -338,9 +330,10 @@ const init = async () => {
})
let lists: any = []
countData.value.map((item: any, index: any) => {
+ console.log(item.count, '878888888')
lists[index] = {
statisticalId: item.index,
- frequencys: item.count
+ frequencys: item.count&& item.count.length != 0 ?[ item.count] : []
}
})
let obj = {
@@ -699,7 +692,6 @@ const handleExport = async () => {
let csv = ''
csv = title
// 遍历数据并添加到CSV字符串中
- const listLength = list.length
list[0].data.map((vv: any, indexs: any) => {
let strs = '',
count = null
@@ -760,7 +752,7 @@ const initSearchFormIndexAndCount = (list: any) => {
vv.eleEpdPqdVOS.map((kk: any, kks: any) => {
if (kk.harmStart && kk.harmEnd) {
range(0, 0, 0)
- countData.value[index].countOptions = range(kk.harmStart, kk.harmEnd, 2)
+ countData.value[index].countOptions = range(kk.harmStart, kk.harmEnd, 1)
}
})
}
@@ -870,11 +862,6 @@ onMounted(() => {})
}
}
- // #history_select::-webkit-scrollbar {
- // width: 0 !important;
- // display: none !important;
- // }
-
.history_searchBtn {
flex: 1;
display: flex;