|
@@ -151,7 +151,7 @@ export default {
|
|
|
this.bugDataGet()
|
|
|
},
|
|
|
methods: {
|
|
|
- init(e, id) {
|
|
|
+ init(e, id, data = null) {
|
|
|
this.tit_Name = '新建任务'
|
|
|
switch (e) {
|
|
|
case 1: // 新建任务(任务主页)
|
|
@@ -244,6 +244,9 @@ export default {
|
|
|
that.$set(that.task_form, 'projectId', '')
|
|
|
that.$set(that.task_form, 'bizId', Number(localStorage.getItem('bizId')))
|
|
|
that.task_form.followVersion === 2 ? that.show_Client = false : ''
|
|
|
+ if (data.requirementId) {
|
|
|
+ that.task_form.requireId = data.requirementId
|
|
|
+ }
|
|
|
}, 300)
|
|
|
})
|
|
|
break
|