<el-cascader :options="options" @change="cascaderChange($event)" ref="cascader"
collapse-tags
:props="{ multiple: true ,value:'label'}"
clearable></el-cascader>
cascaderChange(val) {
let auditPerson = {};
auditPerson=this.getCascader(val,this.$refs.cascader.getCheckedNodes());
debugger
this.auditPersonIdsName = auditPerson.auditPersonIdsName; //回显的数据
},
getCascader(val, AAA,type) {
let auditPerson = {
auditPersonIds: [],
auditPersonIdsName: [],
};
if(this.tempData.length >= 0 && this.tempData.length <= val.length) {
val.forEach((item)=> {
if(this.tempData.indexOf(item) == -1) {
this.tempData.push(item)
}
})
}else if(val.length < this.tempData.length
vue级联组件改造-根据勾选内容得顺序返回结果
于 2023-01-31 14:13:06 首次发布