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'))
+ // }
+ // }
+ // }
}
}