From 2b05ec68536db93db382f8c2a2f4a33c292c5d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Mon, 29 Jul 2024 15:09:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E9=A1=B5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/order/index.vue | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) 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) {