From 970cf34dfcab9cf1dcf682c015f84b88a6603bf5 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 25 Apr 2023 14:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/devicePhotoSchedule/index.vue | 6 +++++- .../photographicDevice/index.vue | 3 +++ .../userEquipment/lineInformation/index.vue | 4 ++++ src/views/realTimeMonitor/index.vue | 13 ++++++++----- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/views/devicePhotoSchedule/index.vue b/src/views/devicePhotoSchedule/index.vue index c70a436..ab4bd95 100644 --- a/src/views/devicePhotoSchedule/index.vue +++ b/src/views/devicePhotoSchedule/index.vue @@ -18,6 +18,7 @@ height="calc(100% - 40px)" @selection-change="handleSelectionChange" @row-click="handleRowClick" + v-loading="loading" > @@ -106,14 +107,16 @@ export default { page: 1, // 当前页数 pageSize: 10, // 每页数量 total: 0, //总条数 + loading: true, }; }, created() { this.deviceList(); }, methods: { - //获取线路列表数据 + //获取拍照时间表数据 deviceList() { + this.loading = true; getScheduleRulelListJoggle({ pageindex: this.page, pagesize: this.pageSize, @@ -121,6 +124,7 @@ export default { .then((res) => { this.deviceTableData = res.data.list; this.total = res.data.total; + this.loading = false; }) .catch((err) => {}); }, diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue index 674d076..219a281 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/index.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue @@ -15,6 +15,7 @@ height="calc(100% - 40px)" @selection-change="handleSelectionChange" @row-click="handleRowClick" + v-loading="loading" > { console.log(err); //代码错误、请求失败捕获 diff --git a/src/views/management/userEquipment/lineInformation/index.vue b/src/views/management/userEquipment/lineInformation/index.vue index 2ef363d..1539a66 100644 --- a/src/views/management/userEquipment/lineInformation/index.vue +++ b/src/views/management/userEquipment/lineInformation/index.vue @@ -15,6 +15,7 @@ height="calc(100% - 40px)" @selection-change="handleSelectionChange" @row-click="handleRowClick" + v-loading="loading" > @@ -103,6 +104,7 @@ export default { page: 1, // 当前页数 pageSize: 10, // 每页数量 total: 0, //总条数 + loading: true, }; }, created() { @@ -111,6 +113,7 @@ export default { methods: { //获取线路列表数据 lineList() { + this.loading = true; getLineListJoggle({ pageindex: this.page, pagesize: this.pageSize, @@ -118,6 +121,7 @@ export default { .then((res) => { this.lineTableData = res.data.list; this.total = res.data.total; + this.loading = false; }) .catch((err) => {}); }, diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue index 43c761a..2549764 100644 --- a/src/views/realTimeMonitor/index.vue +++ b/src/views/realTimeMonitor/index.vue @@ -1,5 +1,5 @@