diff --git a/jero-web/src/utils/kkfileView.js b/jero-web/src/utils/kkfileView.js
index 4b46d7783..a27529f3b 100644
--- a/jero-web/src/utils/kkfileView.js
+++ b/jero-web/src/utils/kkfileView.js
@@ -1,9 +1,11 @@
import { Base64 } from 'js-base64'
import { Toast } from 'vant'
+
window._CONFIG['domianPreviewURL'] = 'http://localhost:8082/jero-boot'
window._CONFIG['domianWebImgURL'] = 'http://localhost:8082/jero-boot'
let downLoadFileUrl = window._CONFIG['domianPreviewURL'] + '/sys/common/download'
let downLoadImgUrl = window._CONFIG['domianWebImgURL'] + '/sys/common/download'
+
export function kkFileView(fileName, fileId) {
let index1 = fileName.lastIndexOf('.')
let index2 = fileName.length
@@ -11,11 +13,11 @@ export function kkFileView(fileName, fileId) {
window._CONFIG['onlinePreviewDomainURL'] = 'http://localhost:8012/onlinePreview'
if (fileSuffix == '.docx' || fileSuffix == '.doc' || fileSuffix == '.pdf' || fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(downLoadFileUrl + '/' + fileId + fileSuffix)
- window.open(url, '_blank')
+ window.open(url)
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(downLoadImgUrl + '/' + fileId + fileSuffix)
- window.open(url, '_blank')
- }else {
+ window.open(url)
+ } else {
Toast('当前格式不支持预览')
}
}
\ No newline at end of file
diff --git a/jero-web/src/views/phoneView/taskData.vue b/jero-web/src/views/phoneView/taskData.vue
index 4263d0ebe..bb33a2938 100644
--- a/jero-web/src/views/phoneView/taskData.vue
+++ b/jero-web/src/views/phoneView/taskData.vue
@@ -17,7 +17,7 @@
{{$t('regulationListIssuance')}}
- 24
+ {{publishingCount}}
@@ -25,7 +25,7 @@
{{$t('designTheComplianceProcess')}}
- 24
+ {{designCount}}
@@ -33,7 +33,7 @@
{{$t('verifyComplianceProcess')}}
- 24
+ {{verifyCount}}
@@ -41,7 +41,7 @@
{{$t('thePreHomeProcess')}}
- 24
+ {{preHomoCount}}
@@ -49,7 +49,7 @@
{{$t('technicalAssessmentOfRegulations')}}
- 24
+ {{technologyEvaluationCount}}
@@ -57,7 +57,7 @@
{{$t('legalOpinionCollection')}}
- 24
+ {{opinionCollectionCount}}
@@ -159,11 +159,18 @@
pageSize: 10,
loading: false,
finished: false,
- dataSource: []
+ dataSource: [],
+ publishingCount: 0,
+ preHomoCount: 0,
+ designCount: 0,
+ verifyCount: 0,
+ technologyEvaluationCount: 0,
+ opinionCollectionCount: 0
}
},
mounted() {
document.title = 'NIO GRP'
+ this.getProcessDataCount()
},
methods: {
onChange(value) {
@@ -195,23 +202,29 @@
}
})
},
- getToDoProcess() {
- let query = {
- pageNo: this.toDoProcessPageNo,
- pageSize: this.toDoProcessPageSize
- }
- getAction('/todoCenter/projectProcess/todoTaskList', query).then((res) => {
+ getProcessDataCount() {
+ getAction('/phone/taskStatistics/getRegulatoryCertificationProcessDataCount', {}).then((res) => {
if (res.success) {
- this.toDoProcessList = res.result.records
+ this.publishingCount = res.result.publishingCount || 0
+ this.preHomoCount = res.result.preHomoCount || 0
+ this.designCount = res.result.designCount || 0
+ this.verifyCount = res.result.verifyCount || 0
+ this.technologyEvaluationCount = res.result.technologyEvaluationCount || 0
+ this.opinionCollectionCount = res.result.opinionCollectionCount || 0
} else {
- this.toDoProcessList = []
+ this.publishingCount = 0
+ this.preHomoCount = 0
+ this.designCount = 0
+ this.verifyCount = 0
+ this.technologyEvaluationCount = 0
+ this.opinionCollectionCount = 0
}
})
},
activeChange() {
if (this.activeTab == 'regulatoryCertification') {
-
+ this.getProcessDataCount()
} else if (this.activeTab == 'parametercollection') {
this.loading = true
this.dataSource = []