@@ -171,6 +171,15 @@ export default {
selectTaskList: [] // 已选任务的id
}
},
+ watch: {
+ 'searchForms': {
+ handler: function(newValue, oldValue) {
+ this.searchForms = newValue
+ this.get_allTask()
+ },
+ deep: true
+ }
created() {
this.getTaskStatus()
this.get_allTask()
@@ -107,7 +107,7 @@
</el-row>
</el-tab-pane>
<el-tab-pane label="任务" name="second">
- <tasks-list ref="tasklist" :search-forms="searchForm" />
+ <tasks-list ref="tasklist" :search-forms.sync="searchForm" />
</el-tabs>
</div>