|
@@ -257,6 +257,7 @@ import {
|
|
|
getCommentList,
|
|
|
addComment
|
|
|
} from '@/api/requirement.js'
|
|
|
+import Utils from '../../../../util.js'
|
|
|
import { listByVersionTypeWithTime } from '@/api/version.js'
|
|
|
import RequirementChart from '@/components/chart/index.vue'
|
|
|
import RequirementUpdate from '@/views/projectManage/requirement/list/create.vue'
|
|
@@ -468,6 +469,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.$store.state.data.status = true
|
|
|
+ this.$store.state.data.bizId = true
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.showRequirementEnum().then(res => {
|
|
|
this.getRequirementById()
|
|
@@ -476,6 +481,10 @@ export default {
|
|
|
this.getBugStatusMapInfo()
|
|
|
this.getCommentList()
|
|
|
},
|
|
|
+ destroyed() {
|
|
|
+ this.$store.state.data.status = false
|
|
|
+ this.$store.state.data.bizId = false
|
|
|
+ },
|
|
|
methods: {
|
|
|
getScheduleCollect() {
|
|
|
if (this.task && this.task.reqStartTime && this.task.reqEndTime) {
|
|
@@ -523,6 +532,9 @@ export default {
|
|
|
return getRequirementById({
|
|
|
id: this.id
|
|
|
}).then(res => {
|
|
|
+ if (res.data.bizId !== Number(localStorage.getItem('bizId'))) {
|
|
|
+ Utils.$emit('demo', res.data.bizId)
|
|
|
+ }
|
|
|
this.requirement = res.data
|
|
|
this.loading.info = false
|
|
|
this.getTaskByRequireId()
|
|
@@ -717,7 +729,6 @@ export default {
|
|
|
this.$nextTick(() => { this.$refs.task_createdUpdata.init(4, this.id) })
|
|
|
},
|
|
|
updateRequirementStatus(status) {
|
|
|
- console.log(status)
|
|
|
const modifier = localStorage.getItem('username')
|
|
|
updateRequirementStatus({ id: this.id, status: status.code, modifier: modifier }).then(
|
|
|
res => {
|