Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07c0dc50
authored
Dec 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交一客一群
1 parent
a2037a1c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
17 deletions
src/assets/css/public.scss
src/views/guestGroup/index.vue
src/assets/css/public.scss
View file @
07c0dc5
.el-tag
{
.el-tag
{
color
:
#666
!
important
;
color
:
#666
!
important
;
font-size
:
14px
!
important
;
font-size
:
14px
!
important
;
height
:
26px
;
line-height
:
26px
;
}
}
.el-tag.el-tag--info
{
.el-tag.el-tag--info
{
background
:
#fafbfe
!
important
;
background
:
#fafbfe
!
important
;
...
...
src/views/guestGroup/index.vue
View file @
07c0dc5
...
@@ -8,25 +8,72 @@
...
@@ -8,25 +8,72 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"searchFormData"
>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"searchFormData"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</span>
</search-form>
</search-form>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"gueastGroup"
@
setTableFinishFun=
"setTableFinishFun"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<GLTable
ref=
"gueastGroup"
@
setTableFinishFun=
"setTableFinishFun"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<div
slot=
"entmicro-name"
class=
"entmicro"
slot-scope=
"scope"
>
<div
slot=
"entmicro-name"
class=
"entmicro"
slot-scope=
"scope"
>
<span
v-for=
"(i, index) in scope.scope.userList"
:key=
"index"
>
<
!--
<
span
v-for=
"(i, index) in scope.scope.userList"
:key=
"index"
>
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
<
span
v
-
show
=
"scope.scope.userList.length - 1 != index"
>
;
<
/span
>
<
span
<
/span
>
v
-
show
=
"scope.scope.userList.length - 1 != index"
>
;
<
/span
>
<
/span>--
>
<
div
class
=
"entmicro-tag"
v
-
for
=
"(tag, idx) in scope.scope.userList"
:
key
=
"idx"
>
<
el
-
tag
type
=
"info"
v
-
if
=
"idx < 9"
:
disable
-
transitions
=
"false"
>
<
i
class
=
"el-icon-user-solid"
><
/i
>
{{
tag
.
staffName
}}
{{
tag
.
departmentName
?
`(${tag.departmentName
}
)`
:
''
}}
<
/el-tag
>
<
el
-
tag
type
=
"info"
v
-
if
=
"scope.scope.userList.length > 9 && idx == 9"
>
<
el
-
popover
placement
=
"top-start"
width
=
"600"
trigger
=
"hover"
content
=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<
span
slot
=
"reference"
>
...({{
scope
.
scope
.
userList
.
length
}}
)
<
/span
>
<
div
class
=
"entmicro-hover"
>
<
el
-
tag
type
=
"info"
v
-
for
=
"(i, index) in scope.scope.userList"
:
key
=
"index"
:
disable
-
transitions
=
"false"
>
<
i
class
=
"el-icon-user-solid"
><
/i
>
{{
i
.
staffName
}}
{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
<
/el-tag
>
<
/div
>
<
/el-popover
>
<
/el-tag
>
<
/div
>
<
/div
>
<
/div
>
<
span
slot
=
"status"
slot
-
scope
=
"scope"
>
<
span
slot
=
"status"
slot
-
scope
=
"scope"
>
<
span
class
=
"statusText"
:
class
=
"
{
'red-text'
:
scope
.
scope
.
status
===
'2'
,
'green-text'
:
scope
.
scope
.
status
===
'1'
}"
>
{{
scope
.
scope
.
status
==
'1'
?
'启用'
:
'停用'
}}
<
/span
>
<
span
class
=
"statusText"
:
class
=
"
{
'red-text'
:
scope
.
scope
.
status
===
'2'
,
'green-text'
:
scope
.
scope
.
status
===
'1'
}"
>
{{
scope
.
scope
.
status
==
'1'
?
'启用'
:
'停用'
}}
<
/span
>
<
/span
>
<
/span
>
<
div
class
=
"table-btns"
slot
=
"optionBtns"
slot
-
scope
=
"scope"
>
<
div
class
=
"table-btns"
slot
=
"optionBtns"
slot
-
scope
=
"scope"
>
<
el
-
button
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
>
修改
<
/el-button
>
<
el
-
button
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
>
修改
<
/el-button
>
<
el
-
button
type
=
"text"
@
click
=
"btnClick('status', scope.scope)"
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/el-button
>
<
el
-
button
type
=
"text"
@
click
=
"btnClick('status', scope.scope)"
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/el-button
>
<
/div
>
<
/div
>
<
/GLTable
>
<
/GLTable
>
<!--
表格区域
end
-->
<!--
表格区域
end
-->
...
@@ -61,19 +108,19 @@ export default {
...
@@ -61,19 +108,19 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'组名'
,
label
:
'组名'
,
prop
:
'orgName'
prop
:
'orgName'
,
width
:
200
}
,
}
,
{
{
label
:
'默认成员'
,
label
:
'默认成员'
,
prop
:
'entmicroName'
,
prop
:
'entmicroName'
,
line
:
2
,
minWidth
:
'100px'
,
minWidth
:
'100px'
,
addHtml
:
'entmicro-name'
addHtml
:
'entmicro-name'
}
,
}
,
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdTime'
,
prop
:
'createdTime'
,
line
:
2
width
:
180
}
,
}
,
{
{
label
:
'状态'
,
label
:
'状态'
,
...
@@ -288,15 +335,39 @@ export default {
...
@@ -288,15 +335,39 @@ export default {
line
-
height
:
20
px
;
line
-
height
:
20
px
;
}
}
.
entmicro
{
.
entmicro
{
overflow
:
hidden
;
//
overflow: hidden;
text
-
overflow
:
ellipsis
;
//
text-overflow: ellipsis;
display
:
-
webkit
-
box
;
//
display: -webkit-box;
-
webkit
-
line
-
clamp
:
2
;
//
-webkit-line-clamp: 2;
-
webkit
-
box
-
orient
:
vertical
;
//
-webkit-box-orient: vertical;
text
-
align
:
left
;
text
-
align
:
left
;
span
{
i
{
line
-
height
:
20
px
;
color
:
#
75
acff
;
margin
-
right
:
3
px
;
font
-
size
:
14
px
;
}
}
&-
tag
{
display
:
inline
-
block
;
}
&-
hover
{
max
-
height
:
214
px
;
overflow
:
auto
;
i
{
color
:
#
75
acff
;
margin
-
right
:
3
px
;
font
-
size
:
14
px
;
}
}
// span
{
// line-height: 20px;
//
}
}
.
el
-
tag
{
margin
-
right
:
10
px
;
margin
-
bottom
:
10
px
;
cursor
:
pointer
;
background
-
color
:
#
fff
!
important
;
}
}
/deep/
{
/deep/
{
.
search
-
form
{
.
search
-
form
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment