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-07-30 14:43:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3bff97a40daeb608f21cd5ae813457cbcdde401e
3bff97a4
1 parent
18e1f2b4
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/components/OrgPickerField/MyComponent.vue
src/components/OrgPickerField/MyComponent.vue
View file @
3bff97a
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-30 1
3:55:36
* @LastEditTime: 2024-07-30 1
4:42:11
* @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue
* @Description: 树形组件
-->
...
...
@@ -200,12 +200,12 @@
shape="square" icon-size="13px" :checked-color="styleColor.baseColor" style="margin-bottom: 0.5rem;">
<div class="van-ellipsis" :style="{ maxWidth: maxWidth + 'px' }">
<span>{{ user.name }}</span>
<span v-if="user?.dept_list.length">/
<span v-for="(dept, index) in user?.dept_list" :key="dept.id">{{ dept.name }} </span>
</span>
<span v-if="user.role_list.length">/
<span v-for="(role, index) in user?.role_list" :key="role.id">{{ role.name }} </span>
</span>
<span v-if="user?.dept_list.length">/
<span v-for="(dept, index) in user?.dept_list" :key="dept.id">{{ dept.name }} </span>
</span>
</div>
</van-checkbox>
<div v-if="!user_dept_role.user.length" style="color: #999;">暂无数据</div>
...
...
Please
register
or
login
to post a comment