|
@@ -16,7 +16,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="ascription_demand" label="归属需求" prop="requireId">
|
|
|
<el-select v-model="task_form.requireId" filterable clearable placeholder="请选择" style="width:20vw">
|
|
|
- <el-option v-for="item in demandList" :key="item.id" :label="item.name" :value="item.id" @click.native="getRequireItem(item)" />
|
|
|
+ <el-option v-for="item in demandList" :key="item.id" :label="item.name" :value="item.id" @click.native="tit_Name === '编辑任务' ? taskUpdateRequire(requirementIdList.data, requirementIdList.taskId) : getRequireItem(item)" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="ascription_project" label="归属项目" prop="projectId">
|
|
@@ -194,7 +194,7 @@ export default {
|
|
|
this.ascription_demand = false
|
|
|
this.ascription_project = false
|
|
|
this.task_form = { 'notest': 0, 'followVersion': 2, 'source': 1, 'bizId': this.bizId }
|
|
|
- this.requirementIdList = { 'name': '主页' }
|
|
|
+ this.requirementIdList = { 'name': '主页', 'data': {}}
|
|
|
this.show_Client = false
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs['task_form'].clearValidate()
|
|
@@ -456,10 +456,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getRequireItem(val) {
|
|
|
- const res = await getRelDpmTask({ requireId: val.id })
|
|
|
- if (res.code === 200) {
|
|
|
- this.show_schedule = res.data.relDpm
|
|
|
- this.arr_schedule = res.data.tasks
|
|
|
+ if (val) {
|
|
|
+ const res = await getRelDpmTask({ requireId: val.id })
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.show_schedule = res.data.relDpm
|
|
|
+ this.arr_schedule = res.data.tasks
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
bugDataGet(bizId) { // 所属模块
|