<el-form:model="form":rules="rules"ref="form"><el-form-itemlabel="组织"prop="organizationList"><el-cascaderv-model="form.organizationList":options="compOption":props="{ multiple: false,checkStrictly: true}"collapse-tagsis-leafclearable/></el-form-item></el-form>data(){constvalidateOrg=...
});// 类型为 文件夹的 type: "folder" 输出// 【回显重要步骤离不开 leaf,没有这个回显一直不生效,要在这里赋值判断是否是叶子最后节点,是的话赋值,然后才可以回显】if(newArr.length===0) { node.data.leaf=true; result = []; }else{ result = newArr; } }returnresult; }, }, }; 使用lazyL...
<el-form:model="form":rules="rules"ref="form"><el-form-itemlabel="组织"prop="organizationList"><el-cascaderv-model="form.organizationList":options="compOption":props="{ multiple: false,checkStrictly: true}"collapse-tagsis-leafclearable/></el-form-item></el-form>data(){constvalidateOrg=...