@@ -1227,7 +1225,7 @@ export default {
text = text.substring(0, text.indexOf(','))
}
const url = getFileAccessHttpUrl(text)
- window.open(url, '_self')
+ window.open(url, )
},
/*
* 查找最新的缴费通知单
diff --git a/src/views/standardsAssociation/feehandle/FeeHandle.vue b/src/views/standardsAssociation/feehandle/FeeHandle.vue
index cb2cb15..e79c4fc 100644
--- a/src/views/standardsAssociation/feehandle/FeeHandle.vue
+++ b/src/views/standardsAssociation/feehandle/FeeHandle.vue
@@ -8,6 +8,12 @@
证书缴费
+ {{
+ newestNoticeInfo.chargeNoticeName
+ }}
@@ -23,6 +29,10 @@
// import PaymentInfoList from '@views/member/paymentInfo/PaymentInfoList'
import CertificateInfo from '@views/standardsAssociation/PaymentInfo/CertificateInfo'
import MemberInfo from '@views/standardsAssociation/PaymentInfo/MemberInfo'
+import {downNewestNotice} from '@api/standardsAssociationApi'
+import {ACCESS_TOKEN} from '@/store/mutation-types'
+import Vue from 'vue'
+// import {previewPdf} from "@api/standardsAssociationApi";
export default {
name: 'FeeHandle',
@@ -33,14 +43,48 @@ export default {
data() {
return {
menuValue: 1,
+ newestNoticeInfo:{},
radioStyle: {
display: 'block',
height: '30px',
- lineHeight: '30px'
+ lineHeight: '30px',
+
}
}
},
+ created() {
+ this.getNewestNotice()
+ },
methods: {
+ handlePreview() {
+ const file = {
+ id:this.newestNoticeInfo.chargeNoticeFileId,
+ name:this.newestNoticeInfo.chargeNoticeName
+ }
+ // eslint-disable-next-line no-unreachable
+ if (file ) {
+ const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ console.log(url)
+ console.log(fileFullUrl)
+ // let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ window.open(url)
+ }
+ },
+ getFileUrl(fileId) {
+ return `${window._CONFIG['domianURL']}/sys/common/download/${fileId}`
+ },
+ /**
+ * 查找最新的缴费通知单
+ * */
+ getNewestNotice() {
+ this.newestNoticeInfo = {}
+ downNewestNotice().then(res => {
+ if (res.success) {
+ this.newestNoticeInfo = Object.assign({}, res.result)
+ }
+ })
+ },
/**
* 更换菜单
* */
@@ -56,5 +100,16 @@ export default {