对接项目库详情的项目状态
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
</div>
|
||||
<div class="Virtual-detail-right"
|
||||
:style="{'width':isDisplay?'calc(100% - 240px)':'calc(100% - 66px)'}">
|
||||
<ProjectDetailsName v-if="textTitle === $t('projectDetails')"/>
|
||||
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === $t('projectDetails')"/>
|
||||
<listOfRegulations v-else-if="textTitle === $t('listOfRegulations')"
|
||||
ref="listOfRegulationsRef"
|
||||
@getRoleSwitch="getRoleSwitch"
|
||||
@@ -167,6 +167,7 @@
|
||||
<!-- v-else-if="textTitle === $t('projectStatus')"/>-->
|
||||
<certificationList ref="certificationListRef"
|
||||
:isDisplayNum="isDisplayNum"
|
||||
:areaOfResponsibility="areaOfResponsibility"
|
||||
@getRoleSwitch="getRoleSwitch"
|
||||
@getRoleSwitchingList="getRoleSwitchingList"
|
||||
v-else-if="textTitle === $t('certificationList')"/>
|
||||
@@ -417,7 +418,7 @@
|
||||
this.textTitle = this.$t('listOfRegulations')
|
||||
} else {
|
||||
this.areaOfResponsibility = item
|
||||
this.textTitle = this.$t('taskList')
|
||||
this.textTitle = this.$t('certificationList')
|
||||
}
|
||||
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
||||
if (textColor && textColor.length > 0) {
|
||||
|
||||
@@ -148,7 +148,9 @@
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<projectStatus ref="projectStatusRef" @projectStatusForm="projectStatusForm"/>
|
||||
<projectStatus ref="projectStatusRef"
|
||||
@currentStatus="currentStatus"
|
||||
@projectStatusForm="projectStatusForm"/>
|
||||
<versionStatistics ref="versionStatisticsRef" @versionStatisticsForm="versionStatisticsForm"/>
|
||||
<listOfRelevantPersonnel ref="listOfRelevantPersonnelRef"/>
|
||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
||||
@@ -225,9 +227,9 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
// currentStatus(item) {
|
||||
// this.$emit('TaskListChange', item)
|
||||
// },
|
||||
currentStatus(item) {
|
||||
this.$emit('TaskListChange', item)
|
||||
},
|
||||
getSetting() {
|
||||
getAction(this.url.queryByProjectId, { projectId: this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -259,29 +259,29 @@
|
||||
}
|
||||
]
|
||||
})
|
||||
// myChart.on('click', (params) => {
|
||||
// let query = {
|
||||
// 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
|
||||
// }
|
||||
// this.$refs.responsibilityListRef.getData(query)
|
||||
// })
|
||||
myChart.on('click', (params) => {
|
||||
let query = {
|
||||
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
|
||||
// }
|
||||
this.$refs.responsibilityListRef.getData(query)
|
||||
})
|
||||
},
|
||||
|
||||
responsibility(item) {
|
||||
|
||||
@@ -826,6 +826,10 @@
|
||||
this.long = localStorage.getItem('language') || 'zh-cn'
|
||||
this.loading = true
|
||||
this.userInfoQuery = this.userInfo()
|
||||
if (this.areaOfResponsibility && this.areaOfResponsibility.dutyTerritory) {
|
||||
this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory
|
||||
this.queryParam = { ...this.queryParam }
|
||||
}
|
||||
this.getProcessStatus()
|
||||
this.getDeliverableTree()
|
||||
this.getRoleByUserId(() => {
|
||||
|
||||
@@ -126,15 +126,15 @@
|
||||
}
|
||||
]
|
||||
})
|
||||
// myChart.on('click', (params) => {
|
||||
// let query = {
|
||||
// title: params.seriesName,
|
||||
// projectLibraryId: this.$route.query.id,
|
||||
// operatorType: 'queryCurrentProjectStatusStatistics',
|
||||
// conditionAssessment: params.data.color
|
||||
// }
|
||||
// this.$refs.responsibilityListRef.getData(query)
|
||||
// })
|
||||
myChart.on('click', (params) => {
|
||||
let query = {
|
||||
title: params.seriesName,
|
||||
projectLibraryId: this.$route.query.id,
|
||||
operatorType: 'queryCurrentProjectStatusStatistics',
|
||||
conditionAssessment: params.data.color
|
||||
}
|
||||
this.$refs.responsibilityListRef.getData(query)
|
||||
})
|
||||
},
|
||||
|
||||
mainTopEcharts(dataSource) {
|
||||
|
||||
@@ -101,10 +101,11 @@
|
||||
this.visible = false
|
||||
},
|
||||
areaOfResponsibilityClick(item) {
|
||||
if (this.queryParam.operatorType == 'queryListingToConfirmStatistics' || this.queryParam.operatorType == 'queryTaskToConfirmStatistics'){
|
||||
if (this.queryParam.operatorType == 'queryListingToConfirmStatistics' ||
|
||||
this.queryParam.operatorType == 'queryTaskToConfirmStatistics'){
|
||||
item.isListing = '1'
|
||||
}
|
||||
// this.$emit('responsibility', item)
|
||||
this.$emit('responsibility', item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user