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 cd22cf73
authored
Apr 19, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改UI样式
1 parent
146433f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
32 deletions
src/views/crowdManage/index.vue
src/views/guestGroup/index.vue
src/views/crowdManage/index.vue
View file @
cd22cf7
...
...
@@ -10,13 +10,13 @@
</el-tab-pane>
</el-tabs>
<div
class=
"pageContent"
>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"tagsPartFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"tagsPartFormList"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<!--
<el-button
@
click=
"resetTable"
plain
>
重置
</el-button>
-->
<el-button
class=
"searchBtn"
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<GLTable
class=
"crowdTable"
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
class=
"crowdTable"
@
setTable
HeightEvent=
"setTableHeightEvent"
@
setTable
FinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span
slot=
"crowdName"
slot-scope=
"scope"
>
<span
class=
"line-ellipsis"
>
{{
scope
.
scope
.
crowdName
.
slice
(
0
,
24
)
}}
</span>
</span>
...
...
@@ -67,7 +67,7 @@ export default {
prop
:
'crowdName'
,
addHtml
:
'crowdName'
,
align
:
'left'
,
minWidth
:
160
minWidth
:
160
// width: 431
},
{
...
...
@@ -75,7 +75,7 @@ export default {
prop
:
'crowdDesc'
,
addHtml
:
'crowdDesc'
,
align
:
'left'
,
minWidth
:
160
minWidth
:
160
},
{
label
:
'人数'
,
...
...
@@ -108,17 +108,7 @@ export default {
}
this
.
searchForm
=
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
this
.
crowdType
}
},
mounted
()
{
//没数据的时候要算高度
setTimeout
(()
=>
{
// if (!this.$refs.crowdManage.data.length) {
this
.
loading
=
true
this
.
$refs
.
crowdManage
.
setTableHeightFun
()
this
.
loading
=
false
// }
},
200
)
},
mounted
()
{},
methods
:
{
btnClick
(
type
,
data
)
{
if
(
type
==
'detail'
)
{
...
...
@@ -132,15 +122,17 @@ export default {
addClick
()
{
this
.
$router
.
push
(
'/crowdManage/crowdAdd'
)
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
setTableFinishFun
()
{
console
.
log
(
this
.
$refs
.
crowdManage
.
data
.
length
)
if
(
!
this
.
$refs
.
crowdManage
.
data
.
length
)
{
this
.
$nextTick
(()
=>
this
.
$refs
.
crowdManage
.
setTableHeightFun
())
}
else
{
this
.
$refs
.
crowdManage
.
tableHeightValues
=
''
}
},
handleClick
()
{
this
.
searchForm
=
{
'req.keyword'
:
''
}
this
.
searchTable
()
setTimeout
(()
=>
{
this
.
$refs
.
crowdManage
.
setTableHeightFun
()
},
200
)
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
...
...
src/views/guestGroup/index.vue
View file @
cd22cf7
...
...
@@ -17,18 +17,12 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"gueastGroup"
@
setTableFinishFun=
"setTableFinishFun"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<div
slot=
"entmicro-name"
class=
"entmicro"
slot-scope=
"scope"
>
<!--
<span
v-for=
"(i, index) in scope.scope.userList"
:key=
"index"
>
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
<
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"
>
<el-tag
type=
"info"
v-if=
"idx
<
2
"
: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
-
tag
type
=
"info"
v
-
if
=
"scope.scope.userList.length >
2 && idx == 2
"
>
<
el
-
popover
placement
=
"top"
width
=
"600"
trigger
=
"hover"
content
=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<
span
slot
=
"reference"
>
...({{
scope
.
scope
.
userList
.
length
}}
)
<
/span
>
<
div
class
=
"entmicro-hover"
>
...
...
@@ -91,23 +85,25 @@ export default {
{
label
:
'群聊名称'
,
prop
:
'groupName'
,
width
:
200
line
:
1
// width: 200
}
,
{
label
:
'默认成员'
,
prop
:
'entmicroName'
,
minWidth
:
'100px'
,
minWidth
:
150
,
addHtml
:
'entmicro-name'
}
,
{
label
:
'创建时间'
,
prop
:
'createdTime'
,
width
:
180
line
:
1
// width: 180
}
,
{
label
:
'状态'
,
prop
:
'status'
,
width
:
'80px'
,
//
width: '80px',
addHtml
:
'status'
}
,
{
...
...
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