|
@@ -100,13 +100,13 @@ const GetDashboardData = () => {
|
|
|
co2DestinationDefaultData.value = res.data.DestinationCo2Top10faultData
|
|
co2DestinationDefaultData.value = res.data.DestinationCo2Top10faultData
|
|
|
revenueDefaultData.value = res.data.RevenueDefaultData
|
|
revenueDefaultData.value = res.data.RevenueDefaultData
|
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
|
- getTableData(recentDefaultData.value, false)
|
|
|
|
|
|
|
+ getTableData(recentDefaultData.value, false, true)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
// 获取表单数据
|
|
// 获取表单数据
|
|
|
-const getTableData = (val: any, isPage?: any) => {
|
|
|
|
|
|
|
+const getTableData = (val: any, isPage?: any, isInit: boolean = false) => {
|
|
|
const rc = isPage ? pageInfo.value.total : -1
|
|
const rc = isPage ? pageInfo.value.total : -1
|
|
|
$api
|
|
$api
|
|
|
.GetDashboardData({
|
|
.GetDashboardData({
|
|
@@ -118,7 +118,9 @@ const getTableData = (val: any, isPage?: any) => {
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
pageInfo.value.total = Number(res.data.rc)
|
|
pageInfo.value.total = Number(res.data.rc)
|
|
|
- Management.value = res.data.Management
|
|
|
|
|
|
|
+ if (isInit) {
|
|
|
|
|
+ Management.value = res.data.Management
|
|
|
|
|
+ }
|
|
|
RecentStatusList.value = res.data.searchData
|
|
RecentStatusList.value = res.data.searchData
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|