From 2a7f93ca78a708ea84f8bbb9d2753b7653736666 Mon Sep 17 00:00:00 2001 From: zyd Date: Fri, 26 Aug 2022 10:43:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E6=84=8F=E8=A7=81=E9=A1=B5=E9=9D=A2=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=90=8E=E5=B0=86=E5=BD=93=E5=89=8D=E5=A1=AB=E5=86=99=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=90=8C=E6=AD=A5=E4=B8=BB=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bzzqyj/ZQYJAddFileDetails.vue | 42 ++++++++++++++----- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/ZQYJAddFileDetails.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/ZQYJAddFileDetails.vue index 69427df60..c5702479f 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/ZQYJAddFileDetails.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/ZQYJAddFileDetails.vue @@ -147,16 +147,38 @@ } }, closePage(){ - window.opener = null; - window.open("about:blank", "_top").close() - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { - window.location.href = "about:blank"; - window.close(); - } else { - window.opener = null; - window.open("", "_self"); - window.close(); - } + this.$refs['formAdd'].validate((valid) => { + if (valid) { + var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36); + var form = { + id: id, + oldText: this.opinionContent.oldText, + newText: this.opinionContent.newText, + reason: this.opinionContent.reason, + chapterNumber: this.opinionContent.partCode, + chapterName: this.opinionContent.chapterName, + } + this.$store.commit('SET_REFRESH_FLAG', true) + localStorage.setItem('bzzqyjForm', JSON.stringify(form)) + localStorage.setItem('freshClueNum', new Date().getTime()) + this.opinionContent.partCode = '' + this.opinionContent.reason = '' + this.opinionContent.oldText = '' + this.opinionContent.newText = '' + this.opinionContent.chapterName = '' + + window.opener = null; + window.open("about:blank", "_top").close() + if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + window.location.href = "about:blank"; + window.close(); + } else { + window.opener = null; + window.open("", "_self"); + window.close(); + } + } + }) } }, mounted() {