接口对接
This commit is contained in:
@@ -40,17 +40,22 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
||||
;
|
||||
},
|
||||
mounted () {
|
||||
;
|
||||
},
|
||||
this.$bus.$on('clearForm',()=>{
|
||||
this.form={}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//查询
|
||||
search() {
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
// this.$api.processCenter.search({})
|
||||
this.tableData=[{createTime:'1999-10-1'}]
|
||||
},
|
||||
//重置
|
||||
reset(){
|
||||
this.form={}
|
||||
this.$forceUpdate()
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
this.tableData=[{createTime:'3000-10-1'}]
|
||||
// this.$api.processCenter.reset({})
|
||||
}
|
||||
|
||||
@@ -63,6 +63,11 @@ export default {
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('22',data)
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
secondData(newValue, oldValue) {
|
||||
this.tableData=newValue
|
||||
|
||||
@@ -63,16 +63,25 @@ export default {
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
firstData(newValue, oldValue) {
|
||||
this.tableData=newValue
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('11',data)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
handle() {
|
||||
alert(111);
|
||||
},
|
||||
},
|
||||
beforeDestroy(){
|
||||
this.$bus.$off('getSearchItem')
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -67,6 +67,11 @@ export default {
|
||||
this.tableData=newValue
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('44',data)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
view() {
|
||||
this.$router.push({
|
||||
|
||||
@@ -85,6 +85,11 @@ export default {
|
||||
this.tableData=newValue
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('33',data)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
view() {
|
||||
alert(111);
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleClick(tab, event) {
|
||||
// console.log(tab, event);
|
||||
this.$bus.$emit('clearForm')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user