历史趋势title修改
This commit is contained in:
@@ -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 +
|
||||
' ' +
|
||||
`<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/>`
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user