-
+
@@ -56,7 +58,9 @@ export default {
size:10
},
total: 0,
- tableData: []
+ tableData: [],
+ checkList:[],
+ checkIds:[]
};
},
props:{
@@ -79,6 +83,22 @@ export default {
this.loadData()
},
methods: {
+ selectAllEvent({checked}) {
+ const records = this.$refs.xTable.getCheckboxRecords()
+ this.checkList = records
+ this.checkIds = records.map(item => {
+ return item.id
+ })
+ this.$bus.$emit('handleClick', this.checkList);
+ },
+ selectChangeEvent({checked}) {
+ const records = this.$refs.xTable.getCheckboxRecords()
+ this.checkList = records
+ this.checkIds = records.map(item => {
+ return item.id
+ })
+ this.$bus.$emit('handleClick', this.checkList);
+ },
loadData() {
let userId=this.$store.getters.userInfo.usid
this.$api.processCenter.gencyProcessPage({...this.q,...this.form,userId:userId}).then(res=>{