Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
2b27f75e
Commit
2b27f75e
authored
Aug 03, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 成员选择组件
parent
400a7e03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
select-clerk.vue
...ds/actCodeManage/components/select-clerk/select-clerk.vue
+34
-2
No files found.
src/views/salesleads/actCodeManage/components/select-clerk/select-clerk.vue
View file @
2b27f75e
...
@@ -39,7 +39,11 @@
...
@@ -39,7 +39,11 @@
<el-table-column
min-width=
"67px"
>
<el-table-column
min-width=
"67px"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-checkbox
v-if=
"multiple"
v-model=
"row.selected"
@
change=
"onSelectClerk(row, index)"
:disabled=
"row.disabled"
></el-checkbox>
<el-checkbox
v-if=
"multiple"
v-model=
"row.selected"
@
change=
"onSelectClerk(row, index)"
:disabled=
"row.disabled"
></el-checkbox>
<el-radio
v-else
v-model=
"row.selected"
@
change=
"onSelectClerk(row, index)"
:disabled=
"row.disabled"
></el-radio>
<!-- 为了实现单选框选中状态时再次点击能切换到未选中状态,所以使用一个复选框盖在单选框上 -->
<div
v-else
class=
"radio-wrapper"
>
<el-checkbox
class=
"radio-handler"
v-if=
"!row.disabled"
v-model=
"row.selected"
@
change=
"onSelectClerk(row, index)"
></el-checkbox>
<el-radio
class=
"radio-content"
:value=
"row.selected"
:label=
"true"
:disabled=
"row.disabled"
></el-radio>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"导购"
min-width=
"230px"
>
<el-table-column
label=
"导购"
min-width=
"230px"
>
...
@@ -55,7 +59,7 @@
...
@@ -55,7 +59,7 @@
</el-table>
</el-table>
</div>
</div>
</div>
</div>
<el-pagination
@
current-change=
"onCurrentChange"
:total=
"params.total"
:page-size=
"params.pageSize"
:current-page=
"params.pageNum"
layout=
"prev, pager, next"
style=
"margin-bottom: 0;text-align: right"
></el-pagination>
<el-pagination
v-if=
"params.total > 0"
@
current-change=
"onCurrentChange"
:total=
"params.total"
:page-size=
"params.pageSize"
:current-page=
"params.pageNum"
layout=
"prev, pager, next"
style=
"margin-bottom: 0;text-align: right"
></el-pagination>
</div>
</div>
<!-- 选中的导购 -->
<!-- 选中的导购 -->
<div
class=
"selected-clerk"
>
<div
class=
"selected-clerk"
>
...
@@ -282,9 +286,14 @@ export default {
...
@@ -282,9 +286,14 @@ export default {
if
(
!
this
.
multiple
)
{
if
(
!
this
.
multiple
)
{
if
(
this
.
selected
.
length
>
0
)
{
if
(
this
.
selected
.
length
>
0
)
{
this
.
selected
[
0
].
selected
=
false
;
this
.
selected
[
0
].
selected
=
false
;
if
(
clerk
.
clerkId
==
this
.
selected
[
0
].
clerkId
)
{
this
.
selected
=
[];
this
.
selected
=
[];
}
else
{
this
.
selected
.
splice
(
0
,
1
,
clerk
);
}
}
}
else
{
this
.
selected
.
push
(
clerk
);
this
.
selected
.
push
(
clerk
);
}
return
;
return
;
}
}
...
@@ -435,6 +444,14 @@ export default {
...
@@ -435,6 +444,14 @@ export default {
border-bottom
:
none
;
border-bottom
:
none
;
}
}
}
}
>>>
.el-table__empty-block
{
min-height
:
120px
!important
;
height
:
120px
!important
;
.
el-table__empty-text
::
before
{
width
:
60px
;
height
:
60px
;
}
}
.clerk-name
{
.clerk-name
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -447,6 +464,21 @@ export default {
...
@@ -447,6 +464,21 @@ export default {
color
:
#606266
;
color
:
#606266
;
line-height
:
17px
;
line-height
:
17px
;
}
}
.radio-wrapper
{
position
:
relative
;
.radio-handler
{
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
1
;
opacity
:
0
;
}
.radio-content
{
>>>
.el-radio__label
{
display
:
none
;
}
}
}
}
}
}
}
}
}
...
...
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