对接项目库详情的项目状态
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user