From 826e2f898e77bd84e9113aa51048cd3f68bdd549 Mon Sep 17 00:00:00 2001
From: dy <dingyang@lnfxkj.tech>
Date: 星期一, 14 四月 2025 12:04:21 +0800
Subject: [PATCH] 调整页面loding加载
---
src/views/ApsPartRouteStat/index.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/views/ApsPartRouteStat/index.vue b/src/views/ApsPartRouteStat/index.vue
index 42df71e..141d636 100644
--- a/src/views/ApsPartRouteStat/index.vue
+++ b/src/views/ApsPartRouteStat/index.vue
@@ -65,17 +65,22 @@
let tableColumn = []
let tableData = []
let merges = [];
+const udfValue = ref(undefined);
/** 鏌ヨ闆朵欢缁熻琛ㄥ垪琛� */
function getList() {
headers.value = []
- loading.value = true;
query().then(response => {
+ loading.value = true;
+ const colList = []
+ let headersOne = []
+ let headersTwo = []
if(response.code == '200'){
- loading.value = true;
- const colList = []
- let headersOne = []
- let headersTwo = []
+ const isValueUndefined = computed(() => typeof response.planTitle === 'undefined');
+ if(isValueUndefined){
+ loading.value = false;
+ return;
+ }
headersOne.push('鏃ユ湡');
headersTwo.push('璧勬簮缁�');
colList.push({
@@ -183,7 +188,6 @@
/** 鍒锋柊鎸夐挳鎿嶄綔 */
function handleRefresh(){
updateStat().then(response => {
- console.log(response);
if(response.code == '200'){
getList();
}
--
Gitblit v1.9.3