From 1504603ca60ebb897b2b9951e617966f67a2ede1 Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Tue, 19 Mar 2024 16:20:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?onlyoffice=E5=8A=A0=E8=BD=BD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 3 ++- src/permission.js | 3 ++- .../caseManagement/components/addCase.vue | 22 +++++++++++-------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 65bc9d3..8d61d3a 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -97,7 +97,8 @@ export default { type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = '/index'; + // location.href = '/index'; + this.$router.push({ path: '/Login' }) }) }).catch(() => {}); } diff --git a/src/permission.js b/src/permission.js index e1a14da..a22753d 100644 --- a/src/permission.js +++ b/src/permission.js @@ -45,7 +45,8 @@ router.beforeEach((to, from, next) => { // 在免登录白名单,直接进入 next() } else { - next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页 + // next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页 + next(`/login`) NProgress.done() } } diff --git a/src/views/caseManagement/components/addCase.vue b/src/views/caseManagement/components/addCase.vue index 3af7bcd..b8329b4 100644 --- a/src/views/caseManagement/components/addCase.vue +++ b/src/views/caseManagement/components/addCase.vue @@ -109,7 +109,7 @@
-
+
{{ item.annexName }}
@@ -118,7 +118,7 @@
-
+
{{ item.annexName }}
@@ -205,7 +205,8 @@ ]"> - + @@ -647,8 +648,8 @@ export default { }, methods: { /** 获取证件类型 */ - getIdTypeFn(){ - getIdType().then(res=>{ + getIdTypeFn() { + getIdType().then(res => { this.idTypeList = res.data; }) }, @@ -711,9 +712,12 @@ export default { }); }, /** 查看证据 */ - fileDetil(val) { - // window.open(this.fileURL + val); - this.$router.push({ path: '/onlyoffice', query: { id: val, flag: 0 } }) + fileDetil(val, flag) { + if (flag == 1) { + window.open(this.fileURL + val); + } else if (flag == 2) { + this.$router.push({ path: '/onlyoffice', query: { id: val, flag: 0 } }) + } }, /** 查看证据 */ toPreview(val) { @@ -744,7 +748,7 @@ export default { return this.$confirm(`确定移除 ${file.name}?`); }, handleRemove(file, fileList) { - let newcaseAttachList = this.formData.caseAttachList.filter(item => + let newcaseAttachList = this.formData.caseAttachList.filter(item => item.annexId !== file.response.annexId ) this.formData.caseAttachList = newcaseAttachList -- 2.54.0 From 9e3c6928f061b2720b5aebf94233fbb8445e39ad Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Thu, 21 Mar 2024 09:36:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E8=A7=A3=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 +++++----- src/views/caseManagement/components/mediation.vue | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 967473e..db507b0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@
-
+
@@ -66,8 +66,8 @@ export default { }, "title": "调解申请书模板.docx", "fileType": "docx", - "key": "835cc5e86a7544759fdee69d3adb150c", - "url": "http://121.40.189.20:9090/download/835cc5e86a7544759fdee69d3adb150c", + "key": "6ae50056ac5e4e3ba09be430d444699c", + "url": "http://121.40.189.20:9090/download/6ae50056ac5e4e3ba09be430d444699c", "info": { "sharingSettings": [ { @@ -101,7 +101,7 @@ export default { } .onlyoffice { - width: 0px; - height: 0px; + width: 0; + height: 0; } diff --git a/src/views/caseManagement/components/mediation.vue b/src/views/caseManagement/components/mediation.vue index cea5b95..3891705 100644 --- a/src/views/caseManagement/components/mediation.vue +++ b/src/views/caseManagement/components/mediation.vue @@ -233,7 +233,8 @@ export default { if(res.data.mediaResult){ this.formData = res.data; }else{ - this.$nextTick(this.filedata,"mediaResult",1) + this.formData = res.data; + this.formData.mediaResult = 1; } console.log(this.formData) -- 2.54.0