vue2server 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -278,7 +278,7 @@ export default {
|
|
|
278
278
|
},
|
|
279
279
|
computed: {},
|
|
280
280
|
methods: {
|
|
281
|
-
async fetchData(
|
|
281
|
+
async fetchData() {
|
|
282
282
|
const params = {};
|
|
283
283
|
const { belOrgNo, meetSubj, meetTypeCd, createDateRange } = this.filters;
|
|
284
284
|
if (belOrgNo) params.belOrgNo = belOrgNo;
|
|
@@ -296,21 +296,8 @@ export default {
|
|
|
296
296
|
}
|
|
297
297
|
try {
|
|
298
298
|
const res = await get("/meeting/list", params);
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
this.totalCount = Number.isFinite(res.total) ? res.total : this.rows.length;
|
|
302
|
-
} else if (Array.isArray(res)) {
|
|
303
|
-
this.rows = res;
|
|
304
|
-
this.totalCount = res.length;
|
|
305
|
-
} else {
|
|
306
|
-
this.rows = [];
|
|
307
|
-
this.totalCount = 0;
|
|
308
|
-
}
|
|
309
|
-
const maxPage = Math.max(1, Math.ceil(this.totalCount / this.pageSize));
|
|
310
|
-
if (allowRetry && this.page > maxPage) {
|
|
311
|
-
this.page = maxPage;
|
|
312
|
-
await this.fetchData(false);
|
|
313
|
-
}
|
|
299
|
+
this.rows = Array.isArray(res.list) ? res.list : [];
|
|
300
|
+
this.totalCount = Number.isFinite(res.total) ? res.total : this.rows.length;
|
|
314
301
|
} catch (e) {
|
|
315
302
|
this.$message.error("获取会议列表失败");
|
|
316
303
|
}
|