Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-13 17:25:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
705dc66db753b5d3d79413cc4cc6647e613a4161
705dc66d
1 parent
ab84c1b3
处理组织结构默认值获取
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/OrgPickerField/MyComponent.vue
src/components/OrgPickerField/MyComponent.vue
View file @
705dc66
<!--
* @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') {
...
...
Please
register
or
login
to post a comment