Merge remote-tracking branch 'origin/fix_20230508' into fix_20230508

This commit is contained in:
zyx.net
2023-05-16 17:26:11 +08:00
2 changed files with 36 additions and 27 deletions
@@ -10,7 +10,7 @@
<div class="monthlyReportRegulations-box-content" v-if="monthlyReportRegulationsList.length > 0">
<div class="monthlyReportRegulations-text" v-for="item in monthlyReportRegulationsList" @click="preview(item)">
<div class="yuan"></div>
<div class="text" :title="item.name">{{item.name}}</div>
<div class="text" :title="item.title">{{item.title}}</div>
<div class="time">{{item.createTime}}</div>
</div>
</div>
@@ -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'))
// }
// }
// }
}
}
@@ -20,7 +20,7 @@
</div>
<a-form-model-item class="itemModel-multi" prop="designTransferUserIdName">
<PersonnelSelection
:query="{db_field_name:'designTransferUserId',db_field_txt:$t('designComplianceProcess')}"
:query="{db_field_name:'designTransferUserId',db_field_txt:$t('designComplianceProcess')+$t('Operator')}"
:isSingleChoice="true"
:personneQuery="formInline"
v-if="visible"
@@ -39,7 +39,7 @@
</div>
<a-form-model-item class="itemModel-multi" prop="verifyTransferUserIdName">
<PersonnelSelection
:query="{db_field_name:'verifyTransferUserId',db_field_txt:$t('validationComplianceProcess')}"
:query="{db_field_name:'verifyTransferUserId',db_field_txt:$t('validationComplianceProcess')+$t('Operator')}"
:isSingleChoice="true"
:personneQuery="formInline"
v-if="visible"