return{ arr1:[],arr2:[],approve_id: '',process_id: '' ,}
// 点击Checkbox选中事件
<Checkbox v-model="item.checked" @change="changeBtn(item)"></Checkbox>
changeBtn(e) {
if (e.checked == true) {
this.arr1.push(e.approve_id)
this.arr2.push(e.process_id)
} else {
const a = this.arr1.indexOf(e.approve_id)
const b = this.arr1.indexOf(e.process_id)
this.arr1.splice(a, String(e.approve_id).length)
this.arr2.splice(b, String(e.process_id).length)
}
this.approve_id = this.arr1.join(',')
this.process_id = this.arr2.join(',')
},