在用cascader时只取最后一级数据传给后端 组件的属性emitPath: false就可以做到,取值就是最后一级传给后端。并且后端放回的id 也直接可以做回显
<el-cascaderv-model="Type":options="Options":props="{ value: 'id', label: 'label', children: 'children', emitPath: false }"filterableclearable@change="pzChange"
/>
<el-cascaderv-model="Type":options="Options":props="{ value: 'id', label: 'label', children: 'children', emitPath: false }"filterableclearable@change="pzChange"
/>