aid_list:
array:3 [
0 => array:2 [
"value" => "675551218830"
"label" => "陈少"
]
1 => array:2 [
"value" => "371218118311"
"label" => "李平"
]
2 => array:2 [
"value" => "16071836601"
"label" => "胡歌"
]
]
<el-form-item label="人员">
<el-checkbox-group v-model="choose_aid_data">
<template>
<el-checkbox :label="item.value" v-for="item of aid_list"> ${ item.label } </el-checkbox>
</template>
</el-checkbox-group>
</el-form-item>
chooseAll(type){
var that = this
if (type == 1) {
that.choose_aid_data = []
for(var i in that.aid_list){
that.choose_aid_data.push(that.aid_list[i]['value']);
}
}else{
that.choose_aid_data = []
}
},