|
@@ -488,14 +488,30 @@ export default {
|
|
|
this.options = []
|
|
|
}
|
|
|
},
|
|
|
+ async getTaskList() { // 获取所属任务列表
|
|
|
+ const params = {
|
|
|
+ bizId: Number(localStorage.getItem('bizId'))
|
|
|
+ }
|
|
|
+ switch (this.$route.name) {
|
|
|
+ case '项目详情':
|
|
|
+ params.projectId = this.$route.query.id
|
|
|
+ break
|
|
|
+ case '需求详情':
|
|
|
+ params.requireId = this.$route.query.id
|
|
|
+ break
|
|
|
+ case '任务详情':
|
|
|
+ params.id = this.$route.query.id
|
|
|
+ break
|
|
|
+ }
|
|
|
+ const res = await taskListCreate(params)
|
|
|
+ if (res.code === 200) this.taskEnumList = res.data || []
|
|
|
+ },
|
|
|
bugListSelect() {
|
|
|
this.$set(this.formInline, 'creatorList', this.userNames)
|
|
|
settingGetBizList({}).then(res => {
|
|
|
this.bizIdEnumList = res.data // biz
|
|
|
})
|
|
|
- taskListCreate({ bizId: Number(localStorage.getItem('bizId')), requireId: this.required ? this.required : '' }).then(res => {
|
|
|
- this.taskEnumList = res.data // 所属任务
|
|
|
- })
|
|
|
+ this.getTaskList()
|
|
|
bugGetEnum().then(res => {
|
|
|
this.bugEnumList = res.data.bugEnumList // status
|
|
|
this.bugTypeEnumList = res.data.bugTypeEnumList // bug类型
|