From 9771e84f7d0e9951b5f647805fff6769e9fd564a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Wed, 26 Apr 2023 17:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=A1=B9=E7=9B=AE=E5=BA=93?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=9A=84=E9=A1=B9=E7=9B=AE=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/certificationActivity.vue | 77 +++-- .../components/regulatoryCompliance.vue | 63 +++- .../components/responsibilityList.vue | 73 ++-- .../components/settingList.vue | 321 ++++++++++-------- 4 files changed, 297 insertions(+), 237 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationActivity.vue b/jero-web/src/views/projectManagement/components/certificationActivity.vue index b34fa45b3..a8033f9ba 100644 --- a/jero-web/src/views/projectManagement/components/certificationActivity.vue +++ b/jero-web/src/views/projectManagement/components/certificationActivity.vue @@ -97,34 +97,38 @@ data.push({ value: res.taskAffirmStatusCount, name: this.$t('notLaunch'), - color: '#00B3BE' + color: '#00B3BE', + status:res.taskAffirmStatus }) color.push('#00B3BE') } else if (res.taskAffirmStatus == 'List to confirm') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('listToConfirm'), - color: '#FDA71C' + color: '#FDA71C', + status:res.taskAffirmStatus }) color.push('#FDA71C') } else if (res.taskAffirmStatus == 'Accepted') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('accept'), - color: '#26BC4B' + color: '#26BC4B', + status:res.taskAffirmStatus }) color.push('#26BC4B') } else if (res.taskAffirmStatus == 'Rejected') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('refuse'), - color: '#E83030' + color: '#E83030', + status:res.taskAffirmStatus }) color.push('#E83030') } }) } - this.getEcharts('main-left', this.$t('regulatoryTaskConfirmation'), color, data) + this.getEcharts('main-left', this.$t('certificationTaskConfirmation'), color, data) }, mainRightEcharts(dataSource){ let data = [] @@ -136,28 +140,32 @@ data.push({ value: res.taskAffirmStatusCount, name: this.$t('notLaunch'), - color: '#00B3BE' + color: '#00B3BE', + status:res.taskAffirmStatus }) color.push('#00B3BE') } else if (res.taskAffirmStatus == 'List to confirm') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('listToConfirm'), - color: '#FDA71C' + color: '#FDA71C', + status:res.taskAffirmStatus }) color.push('#FDA71C') } else if (res.taskAffirmStatus == 'Review and pass') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('reviewAndPass'), - color: '#26BC4B' + color: '#26BC4B', + status:res.taskAffirmStatus }) color.push('#26BC4B') } else if (res.taskAffirmStatus == 'Review and return') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('reviewAndReturn'), - color: '#E83030' + color: '#E83030', + status:res.taskAffirmStatus }) color.push('#E83030') } @@ -174,49 +182,56 @@ data.push({ value: res.certificationProgressCount, name: this.$t('Notatthe'), - color: '#00B3BE' + color: '#00B3BE', + status:res.certificationProgress }) color.push('#00B3BE') } else if (res.certificationProgress == 'In progress') { data.push({ value: res.certificationProgressCount, name: this.$t('inProgress'), - color: '#FDA71C' + color: '#FDA71C', + status:res.certificationProgress }) color.push('#FDA71C') } else if (res.certificationProgress == 'Test passed') { data.push({ value: res.certificationProgressCount, name: this.$t('experimentPassed'), - color: '#26BC4B' + color: '#26BC4B', + status:res.certificationProgress }) color.push('#26BC4B') } else if (res.certificationProgress == 'Test failed') { data.push({ value: res.certificationProgressCount, name: this.$t('experimentFailed'), - color: '#E83030' + color: '#E83030', + status:res.certificationProgress }) color.push('#E83030') }else if (res.certificationProgress == 'Component report not submitted') { data.push({ value: res.certificationProgressCount, name: this.$t('componentReportNotSubmitted'), - color: '#FDA71C' + color: '#FDA71C', + status:res.certificationProgress }) color.push('#FDA71C') }else if (res.certificationProgress == 'Component report submitted') { data.push({ value: res.certificationProgressCount, name: this.$t('componentReportSubmitted'), - color: '#6FD682' + color: '#6FD682', + status:res.certificationProgress }) color.push('#6FD682') }else if (res.certificationProgress == 'Component report has been stored') { data.push({ value: res.certificationProgressCount, name: this.$t('componentReportHasBeenStored'), - color: '#26BC4B' + color: '#26BC4B', + status:res.certificationProgress }) color.push('#26BC4B') } @@ -264,22 +279,16 @@ title: params.seriesName, projectLibraryId: this.$route.query.id } - // if (num === 1) { - // query.operatorType = 'queryListingToConfirmStatistics' - // query.inventoryAffirmStatus = params.data.status - // } else if (num === 2) { - // query.operatorType = 'queryTaskToConfirmStatistics' - // query.taskAffirmStatus = params.data.status - // } else if (num === 3) { - // query.operatorType = 'queryDesignStatistics' - // query.designFlowTaskStatus = params.data.status - // } else if (num === 4) { - // query.operatorType = 'queryPrehomoStatistics' - // query.prehomoFlowTaskStatus = params.data.status - // } else if (num === 5) { - // query.operatorType = 'queryVerifyStatistics' - // query.verifyFlowTaskStatus = params.data.status - // } + if (params.seriesName === this.$t('certificationTaskConfirmation')) { + query.operatorType = 'queryRZTaskToConfirmStatistics' + query.status = params.data.status + } else if (params.seriesName === this.$t('preHomoFlow')) { + query.operatorType = 'queryPrehomoStatistics' + query.status = params.data.status + } else if (params.seriesName === this.$t('CertificationProgress')) { + query.operatorType = 'queryCertificationProgressStatistics' + query.status = params.data.status + } this.$refs.responsibilityListRef.getData(query) }) }, @@ -313,7 +322,8 @@ width: 100%; display: flex; justify-content: space-between; - margin-bottom: 20px; + flex-wrap: wrap; + /*margin-bottom: 20px;*/ .box-content-left { width: calc(50% - 10px); @@ -351,6 +361,7 @@ border: 2px #eff1f3 solid; position: relative; border-radius: 6px; + margin-top: 20px; .box-content-text { height: 30px; diff --git a/jero-web/src/views/projectManagement/components/regulatoryCompliance.vue b/jero-web/src/views/projectManagement/components/regulatoryCompliance.vue index a1a783b49..a5164fc8a 100644 --- a/jero-web/src/views/projectManagement/components/regulatoryCompliance.vue +++ b/jero-web/src/views/projectManagement/components/regulatoryCompliance.vue @@ -127,11 +127,28 @@ ] }) myChart.on('click', (params) => { - let query = { - title: params.seriesName, - projectLibraryId: this.$route.query.id, - operatorType: 'queryCurrentProjectStatusStatistics', - conditionAssessment: params.data.color + let query = {} + if (params.seriesName == this.$t('regulatoryTaskConfirmation')){ + query = { + title: params.seriesName, + projectLibraryId: this.$route.query.id, + operatorType: 'queryFGTaskToConfirmStatistics', + status:params.data.status + } + }else if(params.seriesName == this.$t('designCompliance')){ + query = { + title: params.seriesName, + projectLibraryId: this.$route.query.id, + operatorType: 'queryDesignStatistics', + status:params.data.status + } + }else if(params.seriesName == this.$t('verifyCompliance')){ + query = { + title: params.seriesName, + projectLibraryId: this.$route.query.id, + operatorType: 'queryVerifyStatistics', + status:params.data.status + } } this.$refs.responsibilityListRef.getData(query) }) @@ -147,28 +164,32 @@ data.push({ value: res.taskAffirmStatusCount, name: this.$t('notLaunch'), - color: '#00B3BE' + color: '#00B3BE', + status: res.taskAffirmStatus }) color.push('#00B3BE') } else if (res.taskAffirmStatus == 'List to confirm') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('listToConfirm'), - color: '#FDA71C' + color: '#FDA71C', + status: res.taskAffirmStatus }) color.push('#FDA71C') } else if (res.taskAffirmStatus == 'Accepted') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('accept'), - color: '#26BC4B' + color: '#26BC4B', + status: res.taskAffirmStatus }) color.push('#26BC4B') } else if (res.taskAffirmStatus == 'Rejected') { data.push({ value: res.taskAffirmStatusCount, name: this.$t('refuse'), - color: '#E83030' + color: '#E83030', + status: res.taskAffirmStatus }) color.push('#E83030') } @@ -187,28 +208,32 @@ data.push({ value: res.designFlowTaskStatusCount, name: this.$t('notLaunch'), - color: '#00B3BE' + color: '#00B3BE', + status:res.designFlowTaskStatus }) color.push('#00B3BE') } else if (res.designFlowTaskStatus == 'List to confirm') { data.push({ value: res.designFlowTaskStatusCount, name: this.$t('listToConfirm'), - color: '#FDA71C' + color: '#FDA71C', + status:res.designFlowTaskStatus }) color.push('#FDA71C') } else if (res.designFlowTaskStatus == 'Compliance') { data.push({ value: res.designFlowTaskStatusCount, name: this.$t('compliance'), - color: '#26BC4B' + color: '#26BC4B', + status:res.designFlowTaskStatus }) color.push('#26BC4B') } else if (res.designFlowTaskStatus == 'Non-Compliance') { data.push({ value: res.designFlowTaskStatusCount, name: this.$t('nonCompliance'), - color: '#707486' + color: '#707486', + status:res.designFlowTaskStatus }) color.push('#707486') } @@ -227,28 +252,32 @@ data.push({ value: res.verifyFlowTaskStatusCount, name: this.$t('notLaunch'), - color: '#00B3BE' + color: '#00B3BE', + status:res.verifyFlowTaskStatus }) color.push('#00B3BE') } else if (res.verifyFlowTaskStatus == 'List to confirm') { data.push({ value: res.verifyFlowTaskStatusCount, name: this.$t('listToConfirm'), - color: '#FDA71C' + color: '#FDA71C', + status:res.verifyFlowTaskStatus }) color.push('#FDA71C') } else if (res.verifyFlowTaskStatus == 'Compliance') { data.push({ value: res.verifyFlowTaskStatusCount, name: this.$t('compliance'), - color: '#26BC4B' + color: '#26BC4B', + status:res.verifyFlowTaskStatus }) color.push('#26BC4B') } else if (res.verifyFlowTaskStatus == 'Non-Compliance') { data.push({ value: res.verifyFlowTaskStatusCount, name: this.$t('nonCompliance'), - color: '#707486' + color: '#707486', + status:res.verifyFlowTaskStatus }) color.push('#707486') } diff --git a/jero-web/src/views/projectManagement/components/responsibilityList.vue b/jero-web/src/views/projectManagement/components/responsibilityList.vue index d49d20017..8fe9a1de0 100644 --- a/jero-web/src/views/projectManagement/components/responsibilityList.vue +++ b/jero-web/src/views/projectManagement/components/responsibilityList.vue @@ -1,37 +1,37 @@