From fe58496e4b4a197d180e853fb4a5037fdeab718a Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Tue, 9 Jul 2024 10:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=B6=8B=E5=8A=BFtitle?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/govern/device/planData/index.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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;