对接项目库详情的项目状态

This commit is contained in:
范强强
2023-04-26 15:38:29 +08:00
parent abfea5ed0e
commit 2c163200c8
6 changed files with 48 additions and 40 deletions
@@ -153,7 +153,7 @@
</div> </div>
<div class="Virtual-detail-right" <div class="Virtual-detail-right"
:style="{'width':isDisplay?'calc(100% - 240px)':'calc(100% - 66px)'}"> :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')" <listOfRegulations v-else-if="textTitle === $t('listOfRegulations')"
ref="listOfRegulationsRef" ref="listOfRegulationsRef"
@getRoleSwitch="getRoleSwitch" @getRoleSwitch="getRoleSwitch"
@@ -167,6 +167,7 @@
<!-- v-else-if="textTitle === $t('projectStatus')"/>--> <!-- v-else-if="textTitle === $t('projectStatus')"/>-->
<certificationList ref="certificationListRef" <certificationList ref="certificationListRef"
:isDisplayNum="isDisplayNum" :isDisplayNum="isDisplayNum"
:areaOfResponsibility="areaOfResponsibility"
@getRoleSwitch="getRoleSwitch" @getRoleSwitch="getRoleSwitch"
@getRoleSwitchingList="getRoleSwitchingList" @getRoleSwitchingList="getRoleSwitchingList"
v-else-if="textTitle === $t('certificationList')"/> v-else-if="textTitle === $t('certificationList')"/>
@@ -417,7 +418,7 @@
this.textTitle = this.$t('listOfRegulations') this.textTitle = this.$t('listOfRegulations')
} else { } else {
this.areaOfResponsibility = item this.areaOfResponsibility = item
this.textTitle = this.$t('taskList') this.textTitle = this.$t('certificationList')
} }
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color') let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
if (textColor && textColor.length > 0) { if (textColor && textColor.length > 0) {
@@ -148,7 +148,9 @@
</a-button> </a-button>
</div> </div>
</div> </div>
<projectStatus ref="projectStatusRef" @projectStatusForm="projectStatusForm"/> <projectStatus ref="projectStatusRef"
@currentStatus="currentStatus"
@projectStatusForm="projectStatusForm"/>
<versionStatistics ref="versionStatisticsRef" @versionStatisticsForm="versionStatisticsForm"/> <versionStatistics ref="versionStatisticsRef" @versionStatisticsForm="versionStatisticsForm"/>
<listOfRelevantPersonnel ref="listOfRelevantPersonnelRef"/> <listOfRelevantPersonnel ref="listOfRelevantPersonnelRef"/>
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/> <addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
@@ -225,9 +227,9 @@
} }
}) })
}, },
// currentStatus(item) { currentStatus(item) {
// this.$emit('TaskListChange', item) this.$emit('TaskListChange', item)
// }, },
getSetting() { getSetting() {
getAction(this.url.queryByProjectId, { projectId: this.$route.query.id }).then((res) => { getAction(this.url.queryByProjectId, { projectId: this.$route.query.id }).then((res) => {
if (res.success) { if (res.success) {
@@ -259,29 +259,29 @@
} }
] ]
}) })
// myChart.on('click', (params) => { myChart.on('click', (params) => {
// let query = { let query = {
// title: params.seriesName, title: params.seriesName,
// projectLibraryId: this.$route.query.id projectLibraryId: this.$route.query.id
// } }
// if (num === 1) { // if (num === 1) {
// query.operatorType = 'queryListingToConfirmStatistics' // query.operatorType = 'queryListingToConfirmStatistics'
// query.inventoryAffirmStatus = params.data.status // query.inventoryAffirmStatus = params.data.status
// } else if (num === 2) { // } else if (num === 2) {
// query.operatorType = 'queryTaskToConfirmStatistics' // query.operatorType = 'queryTaskToConfirmStatistics'
// query.taskAffirmStatus = params.data.status // query.taskAffirmStatus = params.data.status
// } else if (num === 3) { // } else if (num === 3) {
// query.operatorType = 'queryDesignStatistics' // query.operatorType = 'queryDesignStatistics'
// query.designFlowTaskStatus = params.data.status // query.designFlowTaskStatus = params.data.status
// } else if (num === 4) { // } else if (num === 4) {
// query.operatorType = 'queryPrehomoStatistics' // query.operatorType = 'queryPrehomoStatistics'
// query.prehomoFlowTaskStatus = params.data.status // query.prehomoFlowTaskStatus = params.data.status
// } else if (num === 5) { // } else if (num === 5) {
// query.operatorType = 'queryVerifyStatistics' // query.operatorType = 'queryVerifyStatistics'
// query.verifyFlowTaskStatus = params.data.status // query.verifyFlowTaskStatus = params.data.status
// } // }
// this.$refs.responsibilityListRef.getData(query) this.$refs.responsibilityListRef.getData(query)
// }) })
}, },
responsibility(item) { responsibility(item) {
@@ -826,6 +826,10 @@
this.long = localStorage.getItem('language') || 'zh-cn' this.long = localStorage.getItem('language') || 'zh-cn'
this.loading = true this.loading = true
this.userInfoQuery = this.userInfo() this.userInfoQuery = this.userInfo()
if (this.areaOfResponsibility && this.areaOfResponsibility.dutyTerritory) {
this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory
this.queryParam = { ...this.queryParam }
}
this.getProcessStatus() this.getProcessStatus()
this.getDeliverableTree() this.getDeliverableTree()
this.getRoleByUserId(() => { this.getRoleByUserId(() => {
@@ -126,15 +126,15 @@
} }
] ]
}) })
// myChart.on('click', (params) => { myChart.on('click', (params) => {
// let query = { let query = {
// title: params.seriesName, title: params.seriesName,
// projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
// operatorType: 'queryCurrentProjectStatusStatistics', operatorType: 'queryCurrentProjectStatusStatistics',
// conditionAssessment: params.data.color conditionAssessment: params.data.color
// } }
// this.$refs.responsibilityListRef.getData(query) this.$refs.responsibilityListRef.getData(query)
// }) })
}, },
mainTopEcharts(dataSource) { mainTopEcharts(dataSource) {
@@ -101,10 +101,11 @@
this.visible = false this.visible = false
}, },
areaOfResponsibilityClick(item) { areaOfResponsibilityClick(item) {
if (this.queryParam.operatorType == 'queryListingToConfirmStatistics' || this.queryParam.operatorType == 'queryTaskToConfirmStatistics'){ if (this.queryParam.operatorType == 'queryListingToConfirmStatistics' ||
this.queryParam.operatorType == 'queryTaskToConfirmStatistics'){
item.isListing = '1' item.isListing = '1'
} }
// this.$emit('responsibility', item) this.$emit('responsibility', item)
} }
} }
} }