|
|
|
|
@ -8,6 +8,7 @@ |
|
|
|
|
class="search-select" |
|
|
|
|
clearable |
|
|
|
|
@change="changeParent" |
|
|
|
|
@clear="clearParent" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in taskParent" |
|
|
|
|
@ -218,9 +219,18 @@ export default { |
|
|
|
|
}, |
|
|
|
|
changeParent(val){ |
|
|
|
|
this.searchForm.taskType = '' |
|
|
|
|
taskType({parentId:val,isDetail:1}).then(res =>{ |
|
|
|
|
this.taskInfos = res.data.data |
|
|
|
|
}) |
|
|
|
|
if(val !== ''){ |
|
|
|
|
taskType({parentId:val,isDetail:1}).then(res =>{ |
|
|
|
|
this.taskInfos = res.data.data |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
this.taskInfos = [] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
clearParent(){ |
|
|
|
|
this.searchForm.taskType = '' |
|
|
|
|
this.taskInfos = [] |
|
|
|
|
}, |
|
|
|
|
// 列表 |
|
|
|
|
onLoad() { |
|
|
|
|
|