From 68896d0c465328f3e060b28d4ae5324a161b78f0 Mon Sep 17 00:00:00 2001
From: qq787203167 <787203167@qq.com>
Date: Wed, 9 Mar 2022 16:54:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?=
=?UTF-8?q?=E7=9F=A5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/public/api_address_config.js | 2 +-
jero-web/src/components/uploadFile/file.vue | 1 -
.../library/docDetail/index.vue | 18 +-
jero-web/src/views/user/Login.vue | 322 +++++++++---------
4 files changed, 186 insertions(+), 157 deletions(-)
diff --git a/jero-web/public/api_address_config.js b/jero-web/public/api_address_config.js
index 3e2c8ee9a..74ec003e0 100644
--- a/jero-web/public/api_address_config.js
+++ b/jero-web/public/api_address_config.js
@@ -9,4 +9,4 @@ window._CONFIG['staticDomainURL'] = window._CONFIG['domianURL'] + '/sys/common/d
window._CONFIG['pdfDomainURL'] = window._CONFIG['domianURL'] + '/sys/common/pdf/pdfPreviewIframe'
window._CONFIG['casPrefixUrl'] = 'http://cas.example.org:8443/cas'
// 预览文件地址
-window._CONFIG['onlinePreviewDomainURL'] = 'http://cas.example.org:8443/onlinePreview'
+window._CONFIG['onlinePreviewDomainURL'] = 'http://127.0.0.1:8012/onlinePreview'
diff --git a/jero-web/src/components/uploadFile/file.vue b/jero-web/src/components/uploadFile/file.vue
index cb2e895d0..8f1ef9baf 100644
--- a/jero-web/src/components/uploadFile/file.vue
+++ b/jero-web/src/components/uploadFile/file.vue
@@ -196,7 +196,6 @@
this.fileList = []
},
preview(file) {
- console.log(file)
let fileQuery = file.response ? file.response.result : file
let fileName = fileQuery.fileName
let index1 = fileName.lastIndexOf('.')
diff --git a/jero-web/src/views/documentManage/library/docDetail/index.vue b/jero-web/src/views/documentManage/library/docDetail/index.vue
index 0387eba19..62e1beecb 100644
--- a/jero-web/src/views/documentManage/library/docDetail/index.vue
+++ b/jero-web/src/views/documentManage/library/docDetail/index.vue
@@ -170,8 +170,22 @@
}
})
},
- pdfPreview(item) {
- window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + item.id))
+ pdfPreview(fileQuery) {
+ let fileName = fileQuery.fileName
+ let index1 = fileName.lastIndexOf('.')
+ let index2 = fileName.length
+ let fileSuffix = fileName.substring(index1, index2)
+ if (fileSuffix == '.pdf') {
+ window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id))
+ } else if (fileSuffix == '.docx') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(this.downLoadFileUrl + '/' + fileQuery.id)
+ window.open(url, '_blank')
+ } else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(this.downLoadFileUrl + '/' + fileQuery.id)
+ window.open(url, '_blank')
+ } else {
+ downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
+ }
},
download(item) {
downloadFile('/sys/common/download', item.fileName, { id: item.id })
diff --git a/jero-web/src/views/user/Login.vue b/jero-web/src/views/user/Login.vue
index a4ba9f57e..baa7186c4 100644
--- a/jero-web/src/views/user/Login.vue
+++ b/jero-web/src/views/user/Login.vue
@@ -51,7 +51,8 @@
-
+
@@ -64,13 +65,13 @@
-
-
-
- 忘记密码
-
-
-
+
+
+
+
+
+
+
@@ -84,7 +85,7 @@
:loading="loginBtn"
@click.stop.prevent="handleSubmit"
:disabled="loginBtn">
- {{ loginBtn ? "登录中" : "登录" }}
+ {{ loginBtn ? '登录中' : '登录' }}
@@ -92,7 +93,8 @@
-
+
@@ -136,7 +138,8 @@
-
+
@@ -147,13 +150,13 @@
-
-
-
- 忘记密码
-
-
-
+
+
+
+
+
+
+
@@ -166,7 +169,7 @@
:loading="loginBtn"
@click.stop.prevent="handleSubmit"
:disabled="loginBtn">
- {{ loginBtn ? "登录中" : "登录" }}
+ {{ loginBtn ? '登录中' : '登录' }}
@@ -176,58 +179,59 @@