|
@@ -546,6 +546,24 @@ export default {
|
|
|
requirementInfo.referredClientType = requirementInfo.referredClientType.join()
|
|
|
}
|
|
|
requirementInfo.status = this.statusValue
|
|
|
+ if (e === 1) {
|
|
|
+ const data = {
|
|
|
+ rdLeader: this.form_query.rdLeader.join(),
|
|
|
+ qaLeader: this.form_query.qaLeader.join(),
|
|
|
+ id: this.$route.query.id,
|
|
|
+ status: this.statusValue,
|
|
|
+ modifier: localStorage.getItem('username')
|
|
|
+ }
|
|
|
+ const res = await updateRequirementStatus(data)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$refs.timeLine1.taskGetWorkFlow()
|
|
|
+ this.$refs.record.operationLogTask()
|
|
|
+ this.getRequirementById()
|
|
|
+ this.dialogStatusVisible = false
|
|
|
+ this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
const res = await updateRequirement(requirementInfo)
|
|
|
if (res.code === 200) {
|
|
|
this.dialogStatusVisible = false
|
|
@@ -553,7 +571,6 @@ export default {
|
|
|
this.$refs.timeLine1.taskGetWorkFlow()
|
|
|
this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
|
- this.getRequirementById()
|
|
|
},
|
|
|
// async showRequirementEnum() { // 获取需求状态列表,优先级列表,需求来源
|
|
|
// const res1 = await configShowRequireStatusEnum(localStorage.getItem('bizId'))
|
|
@@ -618,7 +635,7 @@ export default {
|
|
|
}
|
|
|
this.form_query.isDirectlyFromDpm === 1 ? this.toilp = this.form_query.relatedDpmRequirementInfo.requirementDisplayId + this.form_query.relatedDpmRequirementInfo.name : ''
|
|
|
if (this.form_query.referredClientType !== null) {
|
|
|
- if (this.form_query.referredClientType === -1) {
|
|
|
+ if (this.form_query.referredClientType === '-1') {
|
|
|
this.form_query.dependOnRelease = 0
|
|
|
this.form_query.referredClientType = [-1]
|
|
|
this.form_query.referredClientTypes = []
|