From 3a9ce833b57f81d844ccaf9e36c156bf7eefb263 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Tue, 5 Nov 2024 17:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=82=B9=E5=87=BB=E6=A0=87?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/workerComponents/toHandle.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/system/workerComponents/toHandle.vue b/src/views/system/workerComponents/toHandle.vue index f8baa15..846bb43 100644 --- a/src/views/system/workerComponents/toHandle.vue +++ b/src/views/system/workerComponents/toHandle.vue @@ -87,7 +87,7 @@ export default { on: { click: _ => { window.open( - `${process.env.VUE_APP_OUT_OLD}/flow/view/${row.id}?auth_token=${this.$store.getters.oa_token}`, + `${process.env.VUE_APP_OUT_OLD}/flow/deal/${row.id}?auth_token=${this.$store.getters.oa_token}`, "", `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0` ); @@ -297,7 +297,7 @@ export default { auth_token: this.$store.getters.oa_token, id: row.id }, true,"","GET",`${process.env.VUE_APP_OUT_URL}/flow/rollback`); - await this.getNotices() + await this.getNotices(true) } catch (err) { console.error(err) } @@ -313,10 +313,12 @@ export default { }; }, methods: { - async getNotices() { + async getNotices(isLoading=false) { if (/^\/system/.test(this.$route.path)) return; try { - this.loading = true; + if (isLoading) { + this.loading = true; + } const res = await httpCurl({ page_size: 999, auth_token: this.$store.getters.oa_token, @@ -353,7 +355,7 @@ export default { this.window.height = screen.availHeight * 0.95; this.window.top = (window.screen.height - 30 - this.window.height) / 2; this.window.left = (window.screen.width - 10 - this.window.width) / 2; - this.getNotices(); + this.getNotices(true); this.timer = setInterval(this.getNotices, 30 * 1000) }, mounted() {