From d61884fbf67dc05d348cdcfc8c1a16a0a0c4b356 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Mon, 15 May 2023 09:31:15 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E7=9F=A5?=
=?UTF-8?q?=E8=AF=86=E5=88=86=E4=BA=AB=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/monthlyReportRegulations.vue | 59 +++++++++++--------
1 file changed, 34 insertions(+), 25 deletions(-)
diff --git a/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue b/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue
index 00b2ddae9..e17876758 100644
--- a/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue
+++ b/jero-web/src/views/dashboard/components/monthlyReportRegulations.vue
@@ -10,7 +10,7 @@
-
{{item.name}}
+
{{item.title}}
{{item.createTime}}
@@ -35,7 +35,8 @@
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
url: {
- list: '/report/lawsMonthlyReportManageEO/page'
+ // list: '/report/lawsMonthlyReportManageEO/page'
+ list: '/problemKnowledgeBase/problemKnowledgeBaseEO/page'
}
}
},
@@ -48,7 +49,7 @@
let query = {
pageNo: 1,
pageSize: 6,
- issueStatus: '1'
+ releaseStatus: 'Have released'
}
this.loading = true
getAction(this.url.list, query).then((res) => {
@@ -62,33 +63,41 @@
},
moreClick() {
this.$router.push({
- path: '/monthlyRegulationReport'
+ path: '/problemknowledgeBase'
})
},
preview(item) {
- let fileName = item.name
- 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=' + item.fileId + '&userName=' + this.userInfo().username))
- } else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
- let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
- window.open(url, '_blank')
- } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
- let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
- window.open(url, '_blank')
- }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
- let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.fileId + fileSuffix)
- window.open(url, '_blank')
- } else {
- if (item.createBy == this.userInfo().username){
- downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
- }else{
- this.$message.warning(this.$t('theDoesNotSupportPreview'))
+ this.$router.push({
+ path: '/problemknowledgeBase',
+ query: {
+ id: item.id
}
- }
+ })
}
+ // preview(item) {
+ // let fileName = item.name
+ // 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=' + item.fileId + '&userName=' + this.userInfo().username))
+ // } else if (fileSuffix === '.docx' || fileSuffix === '.doc') {
+ // let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
+ // window.open(url, '_blank')
+ // } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
+ // let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
+ // window.open(url, '_blank')
+ // }else if(fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg'){
+ // let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadImgUrl + '/' + item.fileId + fileSuffix)
+ // window.open(url, '_blank')
+ // } else {
+ // if (item.createBy == this.userInfo().username){
+ // downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
+ // }else{
+ // this.$message.warning(this.$t('theDoesNotSupportPreview'))
+ // }
+ // }
+ // }
}
}