Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 b2387187
authored
Oct 17, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
TagEllipsis,g-footer-sticky等优化
1 parent
a44b6307
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
vue3-lw-pc/src/components/TagEllipsis.vue
vue3-lw-pc/src/main.js
vue3-lw-pc/src/styles/index.scss
vue3-lw-pc/src/views/drainageCode/group/list.vue
vue3-lw-pc/src/components/TagEllipsis.vue
View file @
b238718
...
@@ -17,8 +17,7 @@ export default {
...
@@ -17,8 +17,7 @@ export default {
},
},
// 空数据时显示的文本内容
// 空数据时显示的文本内容
emptyText
:
{
emptyText
:
{
type
:
String
,
type
:
[
Boolean
,
String
],
// Boolean必须在前,方便显式设置默认值, 具体规则参考vue3文档
default
:
''
,
},
},
},
},
data
()
{
data
()
{
...
@@ -43,7 +42,7 @@ export default {
...
@@ -43,7 +42,7 @@ export default {
<
template
>
<
template
>
<div
class=
"tag-ellipsis"
v-if=
"_list?.length || emptyText"
>
<div
class=
"tag-ellipsis"
v-if=
"_list?.length || emptyText"
>
<div
v-if=
"!_list?.length"
>
{{
emptyText
}}
</div>
<div
v-if=
"!_list?.length"
>
{{
typeof
emptyText
===
'string'
?
emptyText
:
'暂无标签'
}}
</div>
<div
class=
"tags"
v-else-if=
"_list.length
<
= +limit">
<div
class=
"tags"
v-else-if=
"_list.length
<
= +limit">
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list"
:key=
"unique"
>
<el-tag
v-bind=
"elTagProps"
v-for=
"(item, unique) in _list"
:key=
"unique"
>
...
...
vue3-lw-pc/src/main.js
View file @
b238718
...
@@ -36,6 +36,7 @@ let components = {
...
@@ -36,6 +36,7 @@ let components = {
RightToolbar
:
()
=>
import
(
'./components/RightToolbar.vue'
),
RightToolbar
:
()
=>
import
(
'./components/RightToolbar.vue'
),
ButtonSync
:
()
=>
import
(
'./components/ButtonSync.vue'
),
ButtonSync
:
()
=>
import
(
'./components/ButtonSync.vue'
),
TagEllipsis
:
()
=>
import
(
'./components/TagEllipsis.vue'
),
TagEllipsis
:
()
=>
import
(
'./components/TagEllipsis.vue'
),
SelectTag
:
()
=>
import
(
'./components/SelectTag.vue'
),
SelectUser
:
()
=>
import
(
'./components/SelectUser.vue'
),
SelectUser
:
()
=>
import
(
'./components/SelectUser.vue'
),
SelectStaffForm
:
()
=>
import
(
'./components/SelectStaffForm.vue'
),
SelectStaffForm
:
()
=>
import
(
'./components/SelectStaffForm.vue'
),
CoRemoteSelect
:
()
=>
import
(
'./components/CoRemoteSelect.vue'
),
CoRemoteSelect
:
()
=>
import
(
'./components/CoRemoteSelect.vue'
),
...
...
vue3-lw-pc/src/styles/index.scss
View file @
b238718
...
@@ -233,6 +233,7 @@ div:focus {
...
@@ -233,6 +233,7 @@ div:focus {
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
height
:
60px
;
height
:
60px
;
z-index
:
1
;
bottom
:
0
;
bottom
:
0
;
background
:
var
(
--
bg-white
);
background
:
var
(
--
bg-white
);
box-shadow
:
0px
-4px
20px
0px
var
(
--
bg-black-9
);
box-shadow
:
0px
-4px
20px
0px
var
(
--
bg-black-9
);
...
...
vue3-lw-pc/src/views/drainageCode/group/list.vue
View file @
b238718
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"入群标签"
width=
"180px"
>
<el-table-column
label=
"入群标签"
width=
"180px"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<TagEllipsis
:list=
"row.tags?.split(',')"
></TagEllipsis>
<TagEllipsis
:list=
"row.tags?.split(',')"
emptyText
></TagEllipsis>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"活码客群数"
align=
"center"
width=
"120px"
prop=
"chatGroupNum"
>
<el-table-column
label=
"活码客群数"
align=
"center"
width=
"120px"
prop=
"chatGroupNum"
>
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
<el-dialog
v-if=
"realCodeDialog"
title=
"实际群码"
v-model=
"realCodeDialog"
append-to-body
width=
"70%"
>
<el-dialog
v-if=
"realCodeDialog"
title=
"实际群码"
v-model=
"realCodeDialog"
append-to-body
width=
"70%"
>
<RealCode
ref=
"realCode"
:groupCodeId=
"openGroupCodeId"
:status=
"openGroupCodeStatus"
></RealCode>
<RealCode
ref=
"realCode"
:groupCodeId=
"openGroupCodeId"
:status=
"openGroupCodeStatus"
></RealCode>
</el-dialog>
</el-dialog>
<
select-tag
v-model:visible=
"showSelectTag"
type=
"2"
:selected=
"tagList"
@
success=
"getSelectTag"
></select-t
ag>
<
SelectTag
v-model:visible=
"showSelectTag"
type=
"2"
:selected=
"tagList"
@
success=
"getSelectTag"
></SelectT
ag>
<el-dialog
title=
"当前客群"
v-model=
"detailDialog"
append-to-body
width=
"70%"
>
<el-dialog
title=
"当前客群"
v-model=
"detailDialog"
append-to-body
width=
"70%"
>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%"
>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%"
>
<el-table-column
label=
"客群名称"
align=
"center"
min-width=
"100"
prop=
"groupName"
show-overflow-tooltip
/>
<el-table-column
label=
"客群名称"
align=
"center"
min-width=
"100"
prop=
"groupName"
show-overflow-tooltip
/>
...
@@ -220,10 +220,8 @@
...
@@ -220,10 +220,8 @@
import
RealCode
from
'./realCode'
import
RealCode
from
'./realCode'
import
{
getList
,
remove
,
downloadBatch
,
download
,
getTableTotal
}
from
'@/api/drainageCode/group'
import
{
getList
,
remove
,
downloadBatch
,
download
,
getTableTotal
}
from
'@/api/drainageCode/group'
import
ShowTag
from
'@/components/common/ShowTag.vue'
import
SelectTag
from
'@/components/SelectTag.vue'
export
default
{
export
default
{
components
:
{
RealCode
,
ShowTag
,
SelectTag
},
components
:
{
RealCode
},
data
()
{
data
()
{
return
{
return
{
query
:
{
query
:
{
...
...
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