修改 路由返回页面刷新

This commit is contained in:
GGJ
2024-05-31 09:45:41 +08:00
parent 5de72c310f
commit b5f9874fbd
6 changed files with 4 additions and 6 deletions

View File

@@ -174,7 +174,6 @@ const tableStore = new TableStore({
treeData = tree2List(tableStore.table.data,)
tableStore.table.data = JSON.parse(JSON.stringify(treeData))
console.log("🚀 ~ tableStore.table.data:", tableStore.table.data)
setTimeout(() => {
tableRef.value.getRef().setAllTreeExpand(true)

View File

@@ -18,7 +18,7 @@ import { mainHeight } from '@/utils/layout'
import Table from './components/table.vue'
import Echart from './components/echart.vue'
defineOptions({
name: 'harmonic-boot/area/OnlineRate'
name: 'harmonic-boot/harmonic/getIntegrityData'
})
const activeName = ref('1')

View File

@@ -195,7 +195,6 @@ const tree2List = (list: any) => {
// 遍历 tree 数组
list.forEach((item: any) => {
item.comFlag = item.comFlag == null ? 3 : item.comFlag
console.log('🚀 ~ list.forEach ~ item:', item)
item.assess = item.onlineRate == 3.14159 ? 0 : item.onlineRate < 60 ? 1 : item.onlineRate < 90 ? 2 : 3
// 判断item是否存在children