hookehuyr

fix 树形结构组件获取到默认值时把它发送到表单

1 <!-- 1 <!--
2 * @Date: 2022-08-29 14:31:20 2 * @Date: 2022-08-29 14:31:20
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-06-14 16:06:58 4 + * @LastEditTime: 2024-06-17 09:46:57
5 * @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue 5 * @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue
6 * @Description: 树形组件 6 * @Description: 树形组件
7 --> 7 -->
...@@ -266,7 +266,9 @@ onMounted(async () => { ...@@ -266,7 +266,9 @@ onMounted(async () => {
266 } else if (item.type === 'user') { 266 } else if (item.type === 'user') {
267 emitCheckedGroup.value.user.push(item); 267 emitCheckedGroup.value.user.push(item);
268 } 268 }
269 - }) 269 + });
270 + // 发送到表单数据
271 + tree_select_value.value = [].concat(...Object.values(emitCheckedGroup.value));
270 } 272 }
271 }); 273 });
272 274
......