hookehuyr

处理组织结构默认值获取

<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-05 10:34:32
* @LastEditTime: 2024-06-13 17:22:43
* @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue
* @Description: 树形组件
-->
......@@ -255,9 +255,9 @@ onMounted(async () => {
}
// 获取已选中数据
// 如果有默认值处理
props.value = props.component_props.default;
if (props.value) {
let default_value = JSON.parse(props.value);
default_value.forEach(item => {
props.value.forEach(item => {
if (item.type === 'dept') {
emitCheckedGroup.value.dept.push(item);
} else if (item.type === 'role') {
......