diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue index a14a3f9..4d42fb8 100644 --- a/src/views/govern/device/planData/index.vue +++ b/src/views/govern/device/planData/index.vue @@ -247,10 +247,6 @@ const nodeClick = async (e: anyObj) => { } init() } -// const deviceRef = ref() -// const openDevice = () => { -// deviceRef.value.open(deviceData.value.records[0].id) -// } const dialogRef = ref() const handleOpen = (val: any, id: any) => { // deviceData.value.records[0].id @@ -312,16 +308,16 @@ const init = async () => { } else { middleTitle = '' } - chartTitle.value = deviceData.value.itemName + ' ' + 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) => { + searchForm.value.index.map((item: any, indexs: any) => { indexOptions.value.map((vv: any) => { if (vv.id == item) { - chartTitle.value += ' ' + vv.name + chartTitle.value += indexs == searchForm.value.index.length - 1 ? vv.name : vv.name+ '/' } }) }) @@ -404,7 +400,7 @@ const init = async () => { res += params[i].seriesName + ' ' + - `
` + + `
` + `
${params[i].value} ${params[i].unit}

` } return res @@ -633,7 +629,6 @@ const handleExport = async () => { cell13 = obj.startTime ? obj.startTime : '/', cell14 = obj.endTime ? obj.endTime : '/', cell15 = obj.location - console.log(cell12, '---cell12-----') csv = `方案测试项信息, 方案名称, ${cell1}, 方案描述, ${cell2}, @@ -836,6 +831,10 @@ onMounted(() => {}) .monitor_info { width: 100%; } +::v-deep .el-tabs__content { + padding: 0 !important; + max-height: 160px !important; +} .history_header { display: flex;