Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
556f4d24
Commit
556f4d24
authored
Apr 27, 2025
by
yanzhengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择用户公共组件修改BUG
parent
72435f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
index.vue
src/components/SelectRole/index.vue
+10
-6
No files found.
src/components/SelectRole/index.vue
View file @
556f4d24
...
@@ -14,11 +14,15 @@
...
@@ -14,11 +14,15 @@
<el-collapse
v-model=
"activeNames"
>
<el-collapse
v-model=
"activeNames"
>
<el-collapse-item
:title=
"item[deptKey]"
:name=
"item.deptId"
v-for=
"(item, index) in filteredDeptList"
:key=
"index"
style=
"margin-left: 20px"
>
<el-collapse-item
:title=
"item[deptKey]"
:name=
"item.deptId"
v-for=
"(item, index) in filteredDeptList"
:key=
"index"
style=
"margin-left: 20px"
>
<div
v-for=
"it in (Array.isArray(item[nameListKey]) ? item[nameListKey] : [item[nameListKey]])"
:key=
"it[nameIdKey]"
>
<div
v-for=
"it in (Array.isArray(item[nameListKey]) ? item[nameListKey] : [item[nameListKey]])"
:key=
"it[nameIdKey]"
>
<el-checkbox
<el-checkbox-group
v-model=
"checked1"
>
v-model=
"checked1"
<el-checkbox
:label=
"it[nameKey]"
:key=
"it[nameIdKey]"
:disabled=
"props.selectionMode === 'single' && checked1.length >= 1"
:label=
"it"
size=
"large"
/>
:disabled=
"props.selectionMode === 'single' && checked1.length >= 1"
size=
"large"
>
{{
it
[
nameKey
]
}}
</el-checkbox>
</el-checkbox-group>
</div>
</div>
</el-collapse-item>
</el-collapse-item>
</el-collapse>
</el-collapse>
...
@@ -32,7 +36,7 @@
...
@@ -32,7 +36,7 @@
</div>
</div>
<div
class=
"box-right-content"
>
<div
class=
"box-right-content"
>
<div
class=
"content-item"
v-for=
"(item, index) in selectedItems"
:key=
"index"
>
<div
class=
"content-item"
v-for=
"(item, index) in selectedItems"
:key=
"index"
>
<span
style=
"width: 100px;font-size: 14px;font-weight: 400"
>
{{
item
}}
</span>
<span
style=
"width: 100px;font-size: 14px;font-weight: 400"
>
{{
item
[
nameKey
]
}}
</span>
<el-button
icon=
"Delete"
@
click=
"removeItem(index)"
type=
"primary"
circle
></el-button>
<el-button
icon=
"Delete"
@
click=
"removeItem(index)"
type=
"primary"
circle
></el-button>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment