|
@@ -102,7 +102,7 @@
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { analysisBizId_id, EncryptId } from '@/utils/crypto-js.js'
|
|
|
const _ = require('lodash')
|
|
|
-import { taskCreate, memberQueryMemberInfoByIDAPorName, configShowTaskEnum, configShowRequirementVersionEnum, taskGet, taskUpdate, projectListProject } from '@/api/taskIndex' // ajax
|
|
|
+import { taskCreate, memberQueryMemberInfoByIDAPorName, configShowTaskEnum, configShowRequirementVersionEnum, requirementListRequirementAcrossBiz, taskGet, taskUpdate, projectListProject } from '@/api/taskIndex' // ajax
|
|
|
import { projectList, settingGetBizList } from '@/api/projectIndex'
|
|
|
import { settingQueryBizModuleList } from '@/api/defectManage'
|
|
|
export default {
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
this.projectId = bizId_id[1]
|
|
|
this.requireId = bizId_id[1]
|
|
|
},
|
|
|
- init(e, id, data = null) {
|
|
|
+ async init(e, id, data = null) {
|
|
|
this.tit_Name = '新建任务'
|
|
|
switch (e) {
|
|
|
case 1: // 新建任务(任务主页)
|
|
@@ -273,10 +273,12 @@ export default {
|
|
|
projectListProject({ bizId: this.bizId }).then(res => { // 获取项目(查询)
|
|
|
this.projectList = res.data.filter(item => item.id !== -1)
|
|
|
})
|
|
|
- configShowRequirementVersionEnum({ bizId: this.bizId }).then(res => {
|
|
|
- // 获取需求(查询)
|
|
|
+ alert()
|
|
|
+ const res = await requirementListRequirementAcrossBiz({ bizId: this.bizId, taskId: id[1] }) // 获取需求(查询)
|
|
|
+ if (res.code === 200) {
|
|
|
+ console.log(res, '你才看见的是')
|
|
|
this.demandList = res.data.filter(item => item.id !== -1)
|
|
|
- })
|
|
|
+ }
|
|
|
},
|
|
|
test2(item, e) { // 获取团队人员信息
|
|
|
if (typeof this.test[item.idap] === 'undefined') {
|