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 @@