diff --git a/admin/src/views/order/index.vue b/admin/src/views/order/index.vue index 7c8c43cc..3c531b5d 100644 --- a/admin/src/views/order/index.vue +++ b/admin/src/views/order/index.vue @@ -611,6 +611,7 @@ export default { dialog2Visible: false, applyVisible: false, oss: [], + isSynchronization: false, item3: { sn: null, backs: null, @@ -637,15 +638,17 @@ export default { this.setQuery("os_status"); this.setQuery("times"); await this.getList(); - this.$nextTick(() => { - let arr = this.list.map((res) => { - return res.id; - }); - this.onOneClickRepair({ id: arr.join() }); - }); + this.setOneClickRepair(); this.getShortcutContent(); this.getAdminList(); }, + watch: { + "listQuery.page": function (res) { + console.log(this.isSynchronization); + this.isSynchronization = false; + this.setOneClickRepair(); + }, + }, methods: { setQuery(key) { if (this.$route.query.hasOwnProperty(key)) { @@ -654,7 +657,14 @@ export default { this.listQuery[key] = ""; } }, + setOneClickRepair() { + let arr = this.list.map((res) => { + return res.id; + }); + this.onOneClickRepair({ id: arr.join() }); + }, async getList($is_excel) { + if (this.isSynchronization) return; this.listQuery.excel = null; if ($is_excel == 1) { this.listQuery.excel = 1; @@ -678,6 +688,7 @@ export default { (this.timetype_arr = response.ext.timetype), (this.oss = response.ext.oss); this.listLoading = false; + this.isSynchronization = true; }); }, objectToQuery(obj) {