From 160dc3a2207e460c506820ed9656d97b726f52d0 Mon Sep 17 00:00:00 2001
From: 1012414140@qq.com <1012414140@qq.com>
Date: 星期五, 26 十二月 2025 17:01:25 +0800
Subject: [PATCH] feat: 智慧停车场添加loading
---
src/components/page/smartPark.vue | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/components/page/smartPark.vue b/src/components/page/smartPark.vue
index 0b4e4d4..1cf07dd 100644
--- a/src/components/page/smartPark.vue
+++ b/src/components/page/smartPark.vue
@@ -1,7 +1,7 @@
<template>
<div>
<div style="padding-top:10px;"></div>
- <table border="1" class="dataframe">
+ <table border="1" class="dataframe" v-loading="loading">
<thead>
<tr style="text-align: right;">
<th>鍋滆溅鍦�</th>
@@ -26,6 +26,7 @@
export default {
data() {
return {
+ loading: true,
tableData: [],
urlPath: this.$systemconfig.basePath + '/ffzf/park/',
}
@@ -37,8 +38,10 @@
methods: {
getTableData() {
+ this.loading = true
this.$byutil.postData4(this, this.urlPath + 'findPage', { size: 50 }, res => {
this.tableData = res.data.records
+ this.loading = false
});
},
--
Gitblit v1.9.1