|
@@ -150,7 +150,6 @@ export default {
|
|
|
demandList: [], // 需求list
|
|
|
arr_schedule: [], // 关联望岳的任务list
|
|
|
show_schedule: false,
|
|
|
- requirementList: {},
|
|
|
userInformation: localStorage.getItem('username'),
|
|
|
userNames: localStorage.getItem('realname'),
|
|
|
requirementIdList: {},
|
|
@@ -217,7 +216,7 @@ export default {
|
|
|
case 3: // 编辑任务(任务详情)
|
|
|
this.tit_Name = '编辑任务'
|
|
|
taskGet(id[1]).then(res => {
|
|
|
- this.requirementList = res.data
|
|
|
+ this.requirementIdList = { 'name': '需求', 'data': res.data.requireId, taskId: res.data.id }
|
|
|
this.dialogFormVisible = true
|
|
|
var that = this
|
|
|
setTimeout(function() {
|
|
@@ -415,12 +414,12 @@ export default {
|
|
|
this.bugDataGet(this.bizId)
|
|
|
break
|
|
|
case 2:
|
|
|
+ this.show_schedule = false
|
|
|
this.ascription_demand = true
|
|
|
this.ascription_project = false
|
|
|
this.requirementIdList.name === '需求' ? this.$set(this.task_form, 'requireId', this.requirementIdList.data) : this.$set(this.task_form, 'requireId', '')
|
|
|
this.$set(this.task_form, 'projectId', '')
|
|
|
- console.log(this.requirementList, 'cd出卖你的精神')
|
|
|
- this.getRequireItem({ id: this.requirementList.requireId })
|
|
|
+ this.tit_Name === '编辑任务' ? this.taskUpdateRequire(this.requirementIdList.data, this.requirementIdList.taskId) : this.getRequireItem({ id: this.requirementIdList.data })
|
|
|
break
|
|
|
case 3:
|
|
|
this.ascription_demand = false
|