历史趋势title修改

This commit is contained in:
zhujiyan
2024-07-09 10:13:09 +08:00
parent ad77d5d0d2
commit fe58496e4b

View File

@@ -247,10 +247,6 @@ const nodeClick = async (e: anyObj) => {
} }
init() init()
} }
// const deviceRef = ref()
// const openDevice = () => {
// deviceRef.value.open(deviceData.value.records[0].id)
// }
const dialogRef = ref() const dialogRef = ref()
const handleOpen = (val: any, id: any) => { const handleOpen = (val: any, id: any) => {
// deviceData.value.records[0].id // deviceData.value.records[0].id
@@ -312,16 +308,16 @@ const init = async () => {
} else { } else {
middleTitle = '' middleTitle = ''
} }
chartTitle.value = deviceData.value.itemName + ' ' + middleTitle + ' ' chartTitle.value = deviceData.value.itemName + '_' + middleTitle + '_'
// + // +
// indexOptions.value.find(item => { // indexOptions.value.find(item => {
// return item.id == searchForm.value.index[0] // return item.id == searchForm.value.index[0]
// })?.name // })?.name
searchForm.value.index.map((item: any) => { searchForm.value.index.map((item: any, indexs: any) => {
indexOptions.value.map((vv: any) => { indexOptions.value.map((vv: any) => {
if (vv.id == item) { 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 += res +=
params[i].seriesName + params[i].seriesName +
' ' + ' ' +
`<div style="width:16px;height:16px;float:left;background:${params[i].color};border-radius:50%;margin:0 5px;margin:0 10px"></div>` + `<div style="width:16px;height:16px;float:left;background:${params[i].color};border-radius:50%;margin:0 5px;margin:0 15px"></div>` +
`<div style='float:right;min-width:120px;padding-left:20px;'>${params[i].value} ${params[i].unit}</div><br/>` `<div style='float:right;min-width:120px;padding-left:20px;'>${params[i].value} ${params[i].unit}</div><br/>`
} }
return res return res
@@ -633,7 +629,6 @@ const handleExport = async () => {
cell13 = obj.startTime ? obj.startTime : '/', cell13 = obj.startTime ? obj.startTime : '/',
cell14 = obj.endTime ? obj.endTime : '/', cell14 = obj.endTime ? obj.endTime : '/',
cell15 = obj.location cell15 = obj.location
console.log(cell12, '---cell12-----')
csv = `方案测试项信息, csv = `方案测试项信息,
方案名称, ${cell1}, 方案名称, ${cell1},
方案描述, ${cell2}, 方案描述, ${cell2},
@@ -836,6 +831,10 @@ onMounted(() => {})
.monitor_info { .monitor_info {
width: 100%; width: 100%;
} }
::v-deep .el-tabs__content {
padding: 0 !important;
max-height: 160px !important;
}
.history_header { .history_header {
display: flex; display: flex;