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 39cb025a
authored
Dec 24, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改已知bug
1 parent
681f902d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
756 additions
and
590 deletions
linkwe-mobile/src/views/groupCode/index.vue
linkwe-ui/src/components/TagEllipsis.vue
linkwe-ui/src/views/communityOperating/groupSOP/list.vue
linkwe-ui/src/views/customerManage/customer/infoTab.vue
linkwe-ui/src/views/customerManage/dimission/allocatedStaffList.vue
linkwe-ui/src/views/customerManage/lossRemind.vue
linkwe-ui/src/views/drainageCode/group/list.vue
linkwe-ui/src/views/index.vue
linkwe-ui/src/views/material/poster.vue
linkwe-mobile/src/views/groupCode/index.vue
View file @
39cb025
...
...
@@ -24,7 +24,12 @@
<van-button
type=
"danger"
@
click=
"dialog = true"
>
无法加群?
</van-button>
</div>
<van-dialog
v-model=
"dialog"
class=
"service-dialog"
:showConfirmButton=
"false"
:closeOnClickOverlay=
"true"
>
<van-dialog
v-model=
"dialog"
class=
"service-dialog"
:showConfirmButton=
"false"
:closeOnClickOverlay=
"true"
>
<div>
<van-image
:src=
"code.serviceQrCode"
width=
"200"
>
</van-image>
...
...
@@ -72,6 +77,8 @@ export default {
getDetail
(
this
.
groupCodeUUID
)
.
then
(({
data
,
msg
})
=>
{
this
.
code
=
Object
.
assign
(
this
.
code
,
data
)
document
.
title
=
data
.
activityName
if
(
msg
)
this
.
message
=
msg
})
.
catch
(()
=>
{})
...
...
@@ -79,7 +86,6 @@ export default {
},
created
()
{
document
.
title
=
'群活码'
this
.
groupCodeUUID
=
this
.
$route
.
query
.
id
this
.
getDetail
()
...
...
linkwe-ui/src/components/TagEllipsis.vue
0 → 100644
View file @
39cb025
<
script
>
export
default
{
name
:
'TagEllipsis'
,
components
:
{},
props
:
{
list
:
{
type
:
Array
,
default
:
()
=>
[]
},
limit
:
{
type
:
[
String
,
Number
],
default
:
2
},
defaultProps
:
{
type
:
String
,
default
:
'name'
}
},
data
()
{
return
{}
},
computed
:
{},
watch
:
{},
created
()
{},
mounted
()
{},
methods
:
{}
}
</
script
>
<
template
>
<div
class=
"tag-ellipsis"
>
<template
v-for=
"(item, index) in list"
>
<el-tag
size=
"medium"
v-if=
"index
< limit
"
:key=
"index"
>
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
</
template
>
<el-tag
v-if=
"list.length && list.length > limit"
>
...
</el-tag>
</div>
</template>
<
style
lang=
"scss"
scoped
>
.tag-ellipsis
{
display
:
inline-block
;
}
</
style
>
linkwe-ui/src/views/communityOperating/groupSOP/list.vue
View file @
39cb025
...
...
@@ -67,10 +67,7 @@ export default {
resetQuery
()
{
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
$$nextTick
(()
=>
{
this
.
getList
(
1
)
})
this
.
getList
(
1
)
},
// 批量删除
handleBulkRemove
()
{
...
...
@@ -146,8 +143,16 @@ export default {
></el-date-picker>
</el-form-item>
<el-form-item
label=
" "
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"success"
@
click=
"resetQuery()"
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"success"
@
click=
"resetQuery()"
>
重置
</el-button
>
</el-form-item>
...
...
@@ -171,10 +176,20 @@ export default {
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
></el-table-column>
<el-table-column
label=
"规则名称"
align=
"center"
prop=
"ruleName"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
label=
"规则名称"
align=
"center"
prop=
"ruleName"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
label=
"执行群聊"
align=
"center"
width=
"120"
>
<template
#
default=
"
{ row }">
<el-popover
placement=
"bottom"
width=
"200"
trigger=
"hover"
:content=
"getDisplayGroups(row)"
>
<el-popover
placement=
"bottom"
width=
"200"
trigger=
"hover"
:content=
"getDisplayGroups(row)"
>
<div
slot=
"reference"
class=
"table-desc overflow-ellipsis"
>
{{
getDisplayGroups
(
row
)
}}
</div>
...
...
@@ -196,7 +211,11 @@ export default {
@
click=
"handleRemove(scope.row.ruleId)"
>
删除
</el-button
>
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
@
click=
"goRoute(scope.row.ruleId)"
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
@
click=
"goRoute(scope.row.ruleId)"
>
编辑
</el-button
>
</
template
>
...
...
linkwe-ui/src/views/customerManage/customer/infoTab.vue
View file @
39cb025
...
...
@@ -158,6 +158,73 @@ export default {
</div>
</el-card>
<
template
v-if=
"userId"
>
<el-card
class=
"mb10"
shadow=
"never"
>
<div
slot=
"header"
class=
"card-title"
>
共同群聊
</div>
<template
v-if=
"portrayalSum.commonGroupChat"
>
<el-tag
type=
"info"
v-for=
"(unit, unique) in portrayalSum.commonGroupChat.split(',')"
:key=
"unique"
>
{{
unit
}}
</el-tag
>
</
template
>
<div
v-else
class=
"sub-text-color ac"
>
暂无标签
</div>
</el-card>
<el-card
class=
"mb10"
shadow=
"never"
>
<div
slot=
"header"
class=
"card-title"
>
详细资料
</div>
<el-row
:gutter=
"20"
type=
"type"
class=
"pad10"
justify=
"space-between"
>
<el-col
:span=
"12"
>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
手机号
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.phone || '无' }}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
年龄
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.age || '无' }}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
生日
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.birthday || '无' }}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
邮箱
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.email || '无' }}
</el-col>
</el-row>
</el-col>
<el-col
:span=
"12"
>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
地址
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.address || '无' }}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
QQ
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.qq || '无' }}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
职业
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.position || '无' }}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
公司
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.corpName || '无' }}
</el-col>
</el-row>
</el-col>
<el-col>
<el-row
class=
"baseinfo-row"
>
<el-col
:span=
"6"
>
其他描述
</el-col>
<el-col
:span=
"18"
>
{{ portrayalSum.otherDescr || '无' }}
</el-col>
</el-row>
</el-col>
</el-row>
</el-card>
</template>
<el-card
class=
"mb10"
shadow=
"never"
>
<div
slot=
"header"
class=
"card-title"
>
跟进状态
</div>
<
template
v-if=
"portrayalSum.trackStates && portrayalSum.trackStates.length"
>
...
...
@@ -262,14 +329,6 @@ export default {
text-align
:
right
;
}
.el-card
{
.el-row
{
color
:
#666
;
margin-bottom
:
10px
;
}
.el-col-10
{
width
:
100px
;
text-align
:
right
;
}
.el-tag
{
margin-bottom
:
5px
;
}
...
...
@@ -297,4 +356,29 @@ export default {
.sub-text-color
{
flex
:
auto
;
}
.baseinfo-row
{
position
:
relative
;
padding-left
:
10px
;
line-height
:
50px
;
.el-col
{
box-shadow
:
0px
1px
0px
0px
#f1f1f1
;
&:first-child
{
color
:
#999
;
}
}
&
::before
{
content
:
''
;
position
:
absolute
;
top
:
22.5px
;
left
:
0
;
width
:
5px
;
height
:
5px
;
background
:
#76abf4
;
border-radius
:
50%
;
}
>
.el-col
:last-child
{
text-align
:
right
;
}
}
</
style
>
linkwe-ui/src/views/customerManage/dimission/allocatedStaffList.vue
View file @
39cb025
...
...
@@ -50,9 +50,10 @@ export default {
this
.
loading
=
false
})
},
resetForm
(
formName
)
{
resetForm
()
{
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
}
}
}
...
...
@@ -60,13 +61,7 @@ export default {
<
template
>
<div
class=
"page"
>
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
class=
"top-search"
>
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
class=
"top-search"
>
<el-form-item
label=
"已离职员工"
prop=
"userName"
>
<el-input
v-model=
"query.userName"
placeholder=
"请输入"
></el-input>
</el-form-item>
...
...
@@ -92,19 +87,14 @@ export default {
>
<el-button
v-hasPermi=
"['customerManage:dimission:query']"
type=
"
info
"
type=
"
success
"
@
click=
"resetForm('queryForm')"
>
重置
</el-button
>
</el-form-item>
</el-form>
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"已离职员工"
></el-table-column>
<el-table-column
prop=
"department"
label=
"所属部门"
></el-table-column>
...
...
@@ -118,11 +108,7 @@ export default {
label=
"已分配群聊数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"dimissionTime"
label=
"离职时间"
show-overflow-tooltip
>
<el-table-column
prop=
"dimissionTime"
label=
"离职时间"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
dimissionTime
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
...
...
linkwe-ui/src/views/customerManage/lossRemind.vue
View file @
39cb025
...
...
@@ -142,11 +142,12 @@ export default {
this
.
dialogVisible
=
false
}
},
resetForm
(
formName
)
{
resetForm
()
{
this
.
dateRange
=
[]
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
...
...
linkwe-ui/src/views/drainageCode/group/list.vue
View file @
39cb025
<
script
>
import
RealCode
from
'./realCode'
import
{
getList
,
remove
,
downloadBatch
,
download
}
from
'@/api/drainageCode/group'
import
{
getList
,
remove
,
downloadBatch
,
download
}
from
'@/api/drainageCode/group'
import
ClipboardJS
from
'clipboard'
export
default
{
...
...
@@ -132,15 +127,11 @@ export default {
},
// 批量删除
handleBulkRemove
()
{
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}
)
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
const
ids
=
this
.
multiGroupCode
.
map
((
group
)
=>
group
.
id
)
...
...
@@ -171,15 +162,11 @@ export default {
},
// 删除
handleRemove
(
codeId
)
{
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}
)
this
.
$confirm
(
'确认删除当前群活码?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
remove
(
codeId
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -206,24 +193,12 @@ export default {
<
template
>
<div
class=
"page"
>
<el-form
ref=
"queryForm"
:model=
"query"
inline
class=
"top-search"
label-width=
"100px"
>
<el-form
ref=
"queryForm"
:model=
"query"
inline
class=
"top-search"
label-width=
"100px"
>
<el-form-item
label=
"活码名称"
prop=
"activityName"
>
<el-input
v-model=
"query.activityName"
placeholder=
"请输入活码名称"
></el-input>
<el-input
v-model=
"query.activityName"
placeholder=
"请输入活码名称"
></el-input>
</el-form-item>
<el-form-item
label=
"创建人"
prop=
"createBy"
>
<el-input
v-model=
"query.createBy"
placeholder=
"请输入创建人"
></el-input>
<el-input
v-model=
"query.createBy"
placeholder=
"请输入创建人"
></el-input>
</el-form-item>
<el-form-item
label=
"创建时间"
>
<el-date-picker
...
...
@@ -244,73 +219,36 @@ export default {
<div
class=
"mid-action"
>
<div>
<el-button
type=
"primary"
@
click=
"$router.push('/drainageCode/groupAdd')"
<el-button
type=
"primary"
@
click=
"$router.push('/drainageCode/groupAdd')"
>
新建群活码
</el-button
>
</div>
<div>
<el-button
:disabled=
"multiGroupCode.length === 0"
@
click=
"handleBulkDownload"
<el-button
:disabled=
"multiGroupCode.length === 0"
@
click=
"handleBulkDownload"
>
批量下载
</el-button
>
<el-button
:disabled=
"multiGroupCode.length === 0"
@
click=
"handleBulkRemove"
<el-button
:disabled=
"multiGroupCode.length === 0"
@
click=
"handleBulkRemove"
>
批量删除
</el-button
>
</div>
</div>
<el-table
:data=
"groupCodes"
v-loading=
"loading"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
></el-table-column>
<el-table-column
prop=
"activityName"
label=
"活码名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"activityDesc"
label=
"活码描述"
align=
"center"
width=
"160"
>
<el-table
:data=
"groupCodes"
v-loading=
"loading"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
></el-table-column>
<el-table-column
prop=
"activityName"
label=
"活码名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"activityDesc"
label=
"活码描述"
align=
"center"
width=
"160"
>
<template
#
default=
"
{ row }">
<el-popover
placement=
"bottom"
width=
"200"
trigger=
"hover"
:content=
"row.activityDesc"
>
<el-popover
placement=
"bottom"
width=
"200"
trigger=
"hover"
:content=
"row.activityDesc"
>
<div
slot=
"reference"
class=
"table-desc overflow-ellipsis"
>
{{
row
.
activityDesc
}}
</div>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
prop=
"codeUrl"
label=
"活码样式"
align=
"center"
width=
"130"
>
<el-table-column
prop=
"codeUrl"
label=
"活码样式"
align=
"center"
width=
"130"
>
<
template
#
default=
"{ row }"
>
<el-popover
placement=
"bottom"
trigger=
"hover"
>
<el-image
slot=
"reference"
:src=
"row.codeUrl"
class=
"code-image--small"
></el-image>
<el-image
slot=
"reference"
:src=
"row.codeUrl"
class=
"code-image--small"
></el-image>
<el-image
:src=
"row.codeUrl"
class=
"code-image"
>
</el-image>
</el-popover>
</
template
>
...
...
@@ -322,11 +260,7 @@ export default {
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"availableCodes"
label=
"可用实际群码数"
align=
"center"
>
<el-table-column
prop=
"availableCodes"
label=
"可用实际群码数"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<el-popover
v-if=
"row.aboutToExpireCodes > 0"
...
...
@@ -342,21 +276,9 @@ export default {
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"totalScanTimes"
label=
"扫码总次数"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createBy"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"totalScanTimes"
label=
"已扫码入群数"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createBy"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<el-button
...
...
@@ -370,22 +292,13 @@ export default {
"
>编辑
</el-button
>
<el-button
type=
"text"
size=
"mini"
@
click=
"handleDownload(row.id, row.activityName)"
<el-button
type=
"text"
size=
"mini"
@
click=
"handleDownload(row.id, row.activityName)"
>
下载
</el-button
>
<el-button
type=
"text"
size=
"mini"
class=
"copy-btn"
:data-clipboard-text=
"row.codeUrl"
<el-button
type=
"text"
size=
"mini"
class=
"copy-btn"
:data-clipboard-text=
"row.codeUrl"
>
复制
</el-button
>
<el-button
type=
"text"
size=
"mini"
@
click=
"handleRemove(row.id)"
>
删除
</el-button
>
<el-button
type=
"text"
size=
"mini"
@
click=
"handleRemove(row.id)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
linkwe-ui/src/views/index.vue
View file @
39cb025
...
...
@@ -7,17 +7,28 @@
<div
class=
"tables"
>
<div
style=
"text-align:left"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
>
<el-col
:span=
"24"
class=
"title_name"
>
数据总览
<el-col
:span=
"24"
class=
"title_name"
>
数据总览
<span
class=
" fontgay"
>
最近更新:
{{
uptime
}}
</span>
</el-col>
</el-row>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:35px; text-align: center;"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:35px; text-align: center;"
>
<el-col
:span=
"6"
class=
"col_style"
>
企业成员总数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
客户总人数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
客户群总数
</el-col>
<el-col
:span=
"6"
class=
"col_style"
>
群成员总数
</el-col>
</el-row>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px;font-size:35px;font-weight:bold;color:#0079DE; text-align: center;"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px;font-size:35px;font-weight:bold;color:#0079DE; text-align: center;"
>
<el-col
:span=
"6"
>
<count-to
:start-val=
"0"
:end-val=
"table.userCount"
:duration=
"durationCount"
/>
</el-col>
...
...
@@ -28,7 +39,11 @@
<count-to
:start-val=
"0"
:end-val=
"table.groupCount"
:duration=
"durationCount"
/>
</el-col>
<el-col
:span=
"6"
>
<count-to
:start-val=
"0"
:end-val=
"table.groupMemberCount"
:duration=
"durationCount"
/>
<count-to
:start-val=
"0"
:end-val=
"table.groupMemberCount"
:duration=
"durationCount"
/>
</el-col>
</el-row>
</div>
...
...
@@ -49,43 +64,61 @@
</el-col>
</el-row>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:30px; text-align: center;"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:30px; text-align: center;"
>
<el-col
:span=
"6"
>
新增客户数
</el-col>
<el-col
:span=
"6"
>
新增客群数
</el-col>
<el-col
:span=
"6"
>
群新增人数
</el-col>
<el-col
:span=
"6"
>
流失客户数
</el-col>
</el-row>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px;font-size:35px;font-weight:bold;color: #0079DE; text-align: center;"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px;font-size:35px;font-weight:bold;color: #0079DE; text-align: center;"
>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newContactCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newChatCnt
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newMemberCnt
?
erchatsTable
.
newMemberCnt
:
0
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
newMemberCnt
||
0
}}
</el-col>
<el-col
:span=
"6"
>
{{
erchatsTable
.
negativeFeedbackCnt
}}
</el-col>
</el-row>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px; text-align: center;"
>
<el-col
:span=
"6"
:class=
"
{
greenicon: Number(erchatsTable.newContactCntDiff) >= 1,
redicon: Number(erchatsTable.newContactCntDiff)
< 0
}"
>
较
{{
time
}}
<span>
{{
erchatsTable
.
newContactCntDiff
}}
</span>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-top:10px; text-align: center;"
>
<el-col
:span=
"6"
>
比
{{
time
}}
<span
:class=
"getClass('newContactCntDiff')"
>
{{
getArrow
(
'newContactCntDiff'
)
}}
{{
Math
.
abs
(
erchatsTable
.
newContactCntDiff
)
}}
</span>
</el-col>
<el-col
:span=
"6"
:class=
"
{
greenicon: Number(erchatsTable.newChatCntDiff) >= 1,
redicon: Number(erchatsTable.newChatCntDiff)
< 0
}"
>
较
{{
time
}}
<span>
{{
erchatsTable
.
newChatCntDiff
}}
</span>
<el-col
:span=
"6"
>
比
{{
time
}}
<span
:class=
"getClass('newChatCntDiff')"
>
{{
getArrow
(
'newChatCntDiff'
)
}}
{{
Math
.
abs
(
erchatsTable
.
newChatCntDiff
)
}}
</span>
</el-col>
<el-col
:span=
"6"
:class=
"
{
greenicon: Number(erchatsTable.newMemberCntDiff) >= 1,
redicon: Number(erchatsTable.newMemberCntDiff)
< 0
}"
>
较
{{
time
}}
<span>
{{
erchatsTable
.
newMemberCntDiff
?
erchatsTable
.
newMemberCntDiff
:
0
}}
</span>
<el-col
:span=
"6"
>
比
{{
time
}}
<span
:class=
"getClass('newMemberCntDiff')"
>
{{
getArrow
(
'newMemberCntDiff'
)
}}
{{
Math
.
abs
(
erchatsTable
.
newMemberCntDiff
)
}}
</span>
</el-col>
<el-col
:span=
"6"
:class=
"
{
greenicon: Number(erchatsTable.negativeFeedbackCntDiff) >= 1,
redicon: Number(erchatsTable.negativeFeedbackCntDiff)
< 0
}"
>
较
{{
time
}}
<span>
{{
erchatsTable
.
negativeFeedbackCntDiff
}}
</span>
<el-col
:span=
"6"
>
比
{{
time
}}
<span
:class=
"getClass('negativeFeedbackCntDiff')"
>
{{
getArrow
(
'negativeFeedbackCntDiff'
)
}}
{{
Math
.
abs
(
erchatsTable
.
negativeFeedbackCntDiff
)
}}
</span>
</el-col>
</el-row>
</div>
...
...
@@ -96,8 +129,11 @@
<div
class=
"car card"
>
<el-row
type=
"flex"
justify=
"space-between"
>
<el-col
:span=
"24"
style=
"font-size: 24px; line-height:80px
"
>
快捷功能
<el-col
:span=
"24"
style=
"font-size: 24px; line-height:80px
"
>
快捷功能
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
...
...
@@ -117,21 +153,38 @@
<p
class=
"p1"
>
{{
$store
.
state
.
user
.
companyName
}}
,欢迎登陆本系统
</p>
<p
class=
"p2"
>
登录时间:
{{
parseTime
(
new
Date
())
}}
</p>
<p
class=
"p1 p3 margint20"
>
LinkWechat 企业微信SCRM
</p>
<p
class=
"p2 p4"
>
版本信息:开源
<p
class=
"p2 p4"
>
版本信息:开源
<span
class=
"fr"
>
可用期限:永久
</span>
</p>
<el-row
:gutter=
"20"
type=
"flex"
class=
"row-bg"
justify=
"center"
style=
"text-align:center"
>
<el-row
:gutter=
"20"
type=
"flex"
class=
"row-bg"
justify=
"center"
style=
"text-align:center"
>
<el-col
:span=
"10"
class=
"flexspan"
>
<img
src=
"../assets/index/bzwd.png"
/>
<a
href=
"https://www.yuque.com/linkwechat/help"
>
帮助手册
</a>
</el-col>
<el-col
:span=
"2"
></el-col>
<el-col
:span=
"10"
class=
"flexspan"
@
click
.
native=
"msgInfo('《使用手册》正在加急上线中,敬请关注…')"
><img
src=
"../assets/index/kfsc.png"
/>
开发文档
</el-col>
<el-col
:span=
"10"
class=
"flexspan"
@
click
.
native=
"msgInfo('《使用手册》正在加急上线中,敬请关注…')"
><img
src=
"../assets/index/kfsc.png"
/>
开发文档
</el-col
>
</el-row>
</div>
<div
class=
"inedx_r_top_bottom"
>
<span
class=
"inedx_r_top_bottomp1"
><img
src=
"../assets/index/gxrz.png"
/>
更新日志
</span>
<span
class=
"fr"
style=
"color:#0079DE"
@
click=
"msgInfo('《更新日志》正在加急上线中,敬请关注…')"
>
更多
</span>
<span
class=
"fr"
style=
"color:#0079DE"
@
click=
"msgInfo('《更新日志》正在加急上线中,敬请关注…')"
>
更多
</span
>
<ul>
<li
v-for=
"(index, i) in 3"
:key=
"i"
@
click=
"msgInfo('暂无内容')"
>
即将上线,敬请期待
...
...
@@ -152,14 +205,16 @@
<div
class=
"inedx_r_top_bottom"
style=
"text-align:center"
>
<p
style=
"text-align:left"
>
<span
class=
"inedx_r_top_bottomp1"
>
<img
src=
"../assets/index/kfq.png"
/>
官方交流
</span>
<img
src=
"../assets/index/kfq.png"
/>
官方交流
</span
>
</p>
<img
:src=
"bossImg"
class=
"img"
/>
</div>
<div
class=
"inedx_r_top_bottom"
style=
"text-align:center"
>
<p
style=
"text-align:left"
>
<span
class=
"inedx_r_top_bottomp1"
>
<img
src=
"../assets/index/khq.png"
/>
联系客服
</span>
<img
src=
"../assets/index/khq.png"
/>
联系客服
</span
>
</p>
<img
:src=
"bossImg"
class=
"img"
/>
</div>
...
...
@@ -168,437 +223,455 @@
</div>
</
template
>
<
script
>
import
*
as
api
from
'@/api/index'
import
echarts
from
'echarts'
import
CountTo
from
'vue-count-to'
export
default
{
name
:
'Index'
,
components
:
{
CountTo
},
data
()
{
return
{
bossImg
:
require
(
'@/assets/index/boss.png'
),
car
:
[
{
name
:
'企业客户'
,
url
:
'/customerManage/customer'
,
img
:
require
(
'@/assets/index/kehgl.png'
)
},
{
name
:
'员工活码'
,
url
:
'/drainageCode/staff'
,
img
:
require
(
'@/assets/index/neircd.png'
)
},
{
name
:
'新增群发'
,
url
:
'/customerMaintain/groupMessage/add'
,
img
:
require
(
'@/assets/index/renwb.png'
)
},
{
name
:
'任务宝'
,
url
:
'/application/taskGroup'
,
img
:
require
(
'@/assets/index/xiaoxqf.png'
)
},
{
name
:
'新客拉群'
,
url
:
'/communityOperating/newCustomer'
,
img
:
require
(
'@/assets/index/yuanghm.png'
)
},
{
name
:
'素材中心'
,
url
:
'/customerMaintain/material'
,
img
:
require
(
'@/assets/index/zidgl.png'
)
},
{
name
:
'关键词群'
,
url
:
'/communityOperating/keywords'
,
img
:
require
(
'@/assets/index/yuanghm.png'
)
},
{
name
:
'会话存档'
,
url
:
'/riskControl/conversation/content'
,
img
:
require
(
'@/assets/index/zidgl.png'
)
}
],
table
:
{
userCount
:
0
,
customerCount
:
0
,
groupCount
:
0
,
groupMemberCount
:
0
import
*
as
api
from
'@/api/index'
import
echarts
from
'echarts'
import
CountTo
from
'vue-count-to'
export
default
{
name
:
'Index'
,
components
:
{
CountTo
},
data
()
{
return
{
bossImg
:
require
(
'@/assets/index/boss.png'
),
car
:
[
{
name
:
'企业客户'
,
url
:
'/customerManage/customer'
,
img
:
require
(
'@/assets/index/kehgl.png'
)
},
erchatsTable
:
{},
allData
:
{},
time
:
'昨天'
,
uptime
:
''
,
timeType
:
'today'
,
durationCount
:
2600
}
},
mounted
()
{
this
.
erchatInfo
()
this
.
tableInfo
()
},
methods
:
{
timeTypeCheck
(
type
)
{
switch
(
type
)
{
case
'today'
:
case
'week'
:
case
'month'
:
let
json
=
{
today
:
'昨天'
,
week
:
'上周'
,
month
:
'上月'
}
this
.
time
=
json
[
type
]
this
.
erchatsTable
=
this
.
allData
[
type
]
this
.
serErchat
()
break
default
:
this
.
time
=
'昨天'
this
.
timeType
=
'today'
this
.
refresh
()
break
{
name
:
'员工活码'
,
url
:
'/drainageCode/staff'
,
img
:
require
(
'@/assets/index/neircd.png'
)
},
{
name
:
'新增群发'
,
url
:
'/customerMaintain/groupMessage/add'
,
img
:
require
(
'@/assets/index/renwb.png'
)
},
{
name
:
'任务宝'
,
url
:
'/application/taskGroup'
,
img
:
require
(
'@/assets/index/xiaoxqf.png'
)
},
{
name
:
'新客拉群'
,
url
:
'/communityOperating/newCustomer'
,
img
:
require
(
'@/assets/index/yuanghm.png'
)
},
{
name
:
'素材中心'
,
url
:
'/customerMaintain/material'
,
img
:
require
(
'@/assets/index/zidgl.png'
)
},
{
name
:
'关键词群'
,
url
:
'/communityOperating/keywords'
,
img
:
require
(
'@/assets/index/yuanghm.png'
)
},
{
name
:
'会话存档'
,
url
:
'/riskControl/conversation/content'
,
img
:
require
(
'@/assets/index/zidgl.png'
)
}
],
table
:
{
userCount
:
0
,
customerCount
:
0
,
groupCount
:
0
,
groupMemberCount
:
0
},
tableInfo
()
{
api
.
indexTable
().
then
((
res
)
=>
{
this
.
table
=
res
.
data
})
},
erchatInfo
()
{
api
.
indexEchart
().
then
((
res
)
=>
{
this
.
allData
=
res
.
data
this
.
uptime
=
res
.
data
.
updateTime
this
.
erchatsTable
=
this
.
allData
.
today
erchatsTable
:
{},
allData
:
{},
time
:
'昨天'
,
uptime
:
''
,
timeType
:
'today'
,
durationCount
:
2600
}
},
mounted
()
{
this
.
erchatInfo
()
this
.
tableInfo
()
},
methods
:
{
timeTypeCheck
(
type
)
{
switch
(
type
)
{
case
'today'
:
case
'week'
:
case
'month'
:
let
json
=
{
today
:
'昨天'
,
week
:
'上周'
,
month
:
'上月'
}
this
.
time
=
json
[
type
]
this
.
erchatsTable
=
this
.
allData
[
type
]
this
.
serErchat
()
})
},
serErchat
()
{
let
data
=
{
arr0
:
[],
arr1
:
[],
arr2
:
[],
arr3
:
[],
xData
:
[]
}
let
series
=
[]
this
.
erchatsTable
.
dataList
.
forEach
((
a
)
=>
{
data
.
xData
.
push
(
a
.
xtime
)
data
.
arr0
.
push
(
a
.
newContactCnt
)
data
.
arr2
.
push
(
a
.
newMemberCnt
)
data
.
arr1
.
push
(
a
.
newChatCnt
)
data
.
arr3
.
push
(
a
.
negativeFeedbackCnt
)
})
break
for
(
let
index
=
0
;
index
<
4
;
index
++
)
{
series
.
push
({
name
:
[
'新增客户数'
,
'新增客群数'
,
'群新增人数'
,
'流失客户数'
][
index
],
type
:
'line'
,
// stack: '总量',
smooth
:
true
,
data
:
data
[
'arr'
+
index
],
// itemStyle: {
// normal: {
// lineStyle: {
// color: colors[index]
// }
// }
// },
textStyle
:
{
color
:
'#fff'
// 主标题文字的颜色。
}
})
}
this
.
drawLine
(
data
.
xData
,
series
)
},
drawLine
(
xData
,
series
)
{
let
obj
=
document
.
getElementById
(
'echart'
)
let
charts
=
echarts
.
init
(
obj
)
let
timer
=
0
window
.
onresize
=
function
()
{
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
charts
.
resize
()
},
200
)
}
charts
.
setOption
({
color
:
[
'#088AEE'
,
'#E74E59'
,
'#14BF48'
,
'#FA7216'
],
tooltip
:
{
trigger
:
'axis'
},
legend
:
{
data
:
[
'新增客户数'
,
'新增客群数'
,
'群新增人数'
,
'流失客户数'
]
},
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
bottom
:
'3%'
,
containLabel
:
true
},
xAxis
:
{
type
:
'category'
,
boundaryGap
:
false
,
data
:
xData
,
axisLine
:
{
lineStyle
:
{
color
:
'#ccc'
}
default
:
this
.
time
=
'昨天'
this
.
timeType
=
'today'
this
.
refresh
()
break
}
},
tableInfo
()
{
api
.
indexTable
().
then
((
res
)
=>
{
this
.
table
=
res
.
data
})
},
erchatInfo
()
{
api
.
indexEchart
().
then
((
res
)
=>
{
this
.
allData
=
res
.
data
this
.
uptime
=
res
.
data
.
updateTime
this
.
erchatsTable
=
this
.
allData
.
today
this
.
serErchat
()
})
},
serErchat
()
{
let
data
=
{
arr0
:
[],
arr1
:
[],
arr2
:
[],
arr3
:
[],
xData
:
[]
}
let
series
=
[]
this
.
erchatsTable
.
dataList
.
forEach
((
a
)
=>
{
data
.
xData
.
push
(
a
.
xtime
)
data
.
arr0
.
push
(
a
.
newContactCnt
)
data
.
arr2
.
push
(
a
.
newMemberCnt
)
data
.
arr1
.
push
(
a
.
newChatCnt
)
data
.
arr3
.
push
(
a
.
negativeFeedbackCnt
)
})
for
(
let
index
=
0
;
index
<
4
;
index
++
)
{
series
.
push
({
name
:
[
'新增客户数'
,
'新增客群数'
,
'群新增人数'
,
'流失客户数'
][
index
],
type
:
'line'
,
// stack: '总量',
smooth
:
true
,
data
:
data
[
'arr'
+
index
],
// itemStyle: {
// normal: {
// lineStyle: {
// color: colors[index]
// }
// }
// },
textStyle
:
{
color
:
'#fff'
// 主标题文字的颜色。
}
})
}
this
.
drawLine
(
data
.
xData
,
series
)
},
drawLine
(
xData
,
series
)
{
let
obj
=
document
.
getElementById
(
'echart'
)
let
charts
=
echarts
.
init
(
obj
)
let
timer
=
0
window
.
onresize
=
function
()
{
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
charts
.
resize
()
},
200
)
}
charts
.
setOption
({
color
:
[
'#088AEE'
,
'#E74E59'
,
'#14BF48'
,
'#FA7216'
],
tooltip
:
{
trigger
:
'axis'
},
legend
:
{
data
:
[
'新增客户数'
,
'新增客群数'
,
'群新增人数'
,
'流失客户数'
]
},
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
bottom
:
'3%'
,
containLabel
:
true
},
xAxis
:
{
type
:
'category'
,
boundaryGap
:
false
,
data
:
xData
,
axisLine
:
{
lineStyle
:
{
color
:
'#ccc'
}
}
,
yAxis
:
{
type
:
'value'
,
axisLine
:
{
lineStyl
e
:
{
color
:
'#ccc'
}
}
},
yAxis
:
{
type
:
'value'
,
axisLin
e
:
{
lineStyle
:
{
color
:
'#ccc'
}
},
series
})
},
refresh
()
{
api
.
refresh
().
then
((
res
)
=>
{
this
.
erchatInfo
()
})
}
},
series
})
},
refresh
()
{
api
.
refresh
().
then
((
res
)
=>
{
this
.
erchatInfo
()
})
},
getClass
(
key
)
{
let
val
=
Number
(
this
.
erchatsTable
[
key
])
if
(
val
>
0
)
{
return
'ascend'
}
else
if
(
val
<
0
)
{
return
'descend'
}
},
getArrow
(
key
)
{
let
val
=
Number
(
this
.
erchatsTable
[
key
])
if
(
val
>
0
)
{
return
'↑'
}
else
if
(
val
<
0
)
{
return
'↓'
}
else
{
return
'-'
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.index
{
margin
:
0
;
width
:
100%
;
background
:
#f1f1f1
;
.index
{
margin
:
0
;
width
:
100%
;
background
:
#f1f1f1
;
//
overflow
:
hidden
;
.title_name
{
font-size
:
24px
;
font-weight
:
bold
;
color
:
#000000
;
padding-top
:
15px
;
}
//
overflow
:
hidden
;
.title_name
{
font-size
:
24px
;
font-weight
:
bold
;
color
:
#000000
;
padding-top
:
15px
;
}
.col_style
{
font-size
:
18px
;
font-weight
:
500
;
color
:
#666
;
}
.col_style
{
font-size
:
18px
;
font-weight
:
500
;
color
:
#666
;
}
.fontgay
{
text-indent
:
4em
;
color
:
#999
;
font-size
:
14px
;
font-weight
:
200
;
}
.fontgay
{
text-indent
:
4em
;
color
:
#999
;
font-size
:
14px
;
font-weight
:
200
;
}
#fatherbox
{
padding-top
:
30px
;
height
:
380px
;
overflow-y
:
scroll
;
overflow
:
hidden
;
border-radius
:
5px
;
font-size
:
16px
;
background
:
#fff
;
}
#fatherbox
{
padding-top
:
30px
;
height
:
380px
;
overflow-y
:
scroll
;
overflow
:
hidden
;
border-radius
:
5px
;
font-size
:
16px
;
background
:
#fff
;
}
#echart
{
width
:
100%
;
height
:
100%
;
}
#echart
{
width
:
100%
;
height
:
100%
;
}
.fr
{
float
:
right
;
}
.fr
{
float
:
right
;
}
.descend
{
color
:
#ff0000
;
}
.redicon
{
color
:
#ff0000
;
}
.ascend
{
color
:
green
;
}
.greenicon
{
color
:
green
;
}
.tables
{
width
:
100%
;
height
:
200px
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
15px
;
font-size
:
16px
;
}
.tables
{
width
:
100%
;
height
:
200px
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
15px
;
font-size
:
16px
;
}
.whitebg
{
min-height
:
1000px
;
float
:
left
;
border-radius
:
5px
;
}
.whitebg
{
min-height
:
1000px
;
float
:
left
;
border-radius
:
5px
;
}
.index_l
{
width
:
76%
;
}
.index_l
{
width
:
76%
;
}
.circle
{
width
:
80px
;
height
:
80px
;
background
:
#999
;
border-radius
:
50%
;
margin
:
0
auto
;
.circle
{
img
{
border-radius
:
50%
;
width
:
80px
;
height
:
80px
;
background
:
#999
;
border-radius
:
50%
;
margin
:
0
auto
;
img
{
border-radius
:
50%
;
width
:
80px
;
height
:
80px
;
}
}
}
.index_r
{
width
:
23%
;
margin-left
:
1%
;
.qy_R
{
background
:
#fff
;
min-height
:
1267px
;
border-radius
:
5px
;
.index_r
{
width
:
23%
;
margin-left
:
1%
;
.inedx_r_top_t
{
border-radius
:
5px
;
height
:
270px
;
background-size
:
100%
100%
;
background
:
url("../assets/index/yd.png")
no-repeat
;
background-size
:
cover
;
padding
:
20px
10px
10px
10px
;
color
:
#fff
;
.flexspan
{
height
:
40px
;
line-height
:
40px
;
background
:
#fff
;
color
:
#0079de
;
border-radius
:
4px
;
margin-top
:
30px
;
}
.qy_R
{
background
:
#fff
;
min-height
:
1267px
;
border-radius
:
5px
;
.margint20
{
margin-top
:
31px
;
}
.inedx_r_top_t
{
border-radius
:
5px
;
height
:
270px
;
background-size
:
100%
100%
;
background
:
url('../assets/index/yd.png')
no-repeat
;
background-size
:
cover
;
padding
:
20px
10px
10px
10px
;
color
:
#fff
;
.flexspan
{
height
:
40px
;
line-height
:
40px
;
background
:
#fff
;
color
:
#0079de
;
border-radius
:
4px
;
margin-top
:
30px
;
}
p
{
padding-top
:
9
px
;
}
.margint20
{
margin-top
:
31
px
;
}
.p1
{
font-size
:
16px
;
font-weight
:
500
;
color
:
#ffffff
;
}
p
{
padding-top
:
9px
;
}
.p2
{
font-size
:
14
px
;
font-weight
:
4
00
;
color
:
#d3e8
ff
;
}
.p1
{
font-size
:
16
px
;
font-weight
:
5
00
;
color
:
#ffff
ff
;
}
.p3
{
font-size
:
18px
;
}
.p2
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#d3e8ff
;
}
.p4
{
color
:
#ffffff
;
padding-top
:
10px
;
}
.p3
{
font-size
:
18px
;
}
.img
{
margin
:
30px
;
width
:
175px
;
height
:
175px
;
.p4
{
color
:
#ffffff
;
padding-top
:
10px
;
}
}
.inedx_r_top_bottom
{
padding
:
10px
30px
;
margin-top
:
29px
;
.img
{
margin
:
30px
;
width
:
175px
;
height
:
175px
;
}
.inedx_r_top_bottomp1
{
font-size
:
16px
;
color
:
#333333
;
}
.inedx_r_top_bottom
{
padding
:
10px
30px
;
margin-top
:
29px
;
ul
{
margin-top
:
20px
;
}
.inedx_r_top_bottomp1
{
font-size
:
16px
;
color
:
#333333
;
}
ul
li
{
font-size
:
14px
;
line-height
:
35px
;
font-weight
:
500
;
color
:
#666
;
ul
{
margin-top
:
20px
;
}
span
{
color
:
#999999
;
}
ul
li
{
font-size
:
14px
;
line-height
:
35px
;
font-weight
:
500
;
color
:
#666
;
span
{
color
:
#999999
;
}
}
}
}
}
.box
{
width
:
100%
;
}
.box
{
width
:
100%
;
}
.titlebox
{
height
:
80px
;
padding
:
10px
0
;
background
:
#f1f1f1
;
.titlebox
{
height
:
80px
;
padding
:
10px
0
;
background
:
#f1f1f1
;
p
{
line-height
:
30px
;
margin
:
0
;
padding
:
0
;
}
p
{
line-height
:
30px
;
margin
:
0
;
padding
:
0
;
}
}
.adminname
{
font-size
:
20px
;
font-weight
:
bold
;
}
.adminname
{
font-size
:
20px
;
font-weight
:
bold
;
}
.dataall
{
width
:
100%
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
20px
;
font-size
:
16px
;
}
.dataall
{
width
:
100%
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
20px
;
font-size
:
16px
;
}
.car
{
line-height
:
70px
;
.car
{
line-height
:
70px
;
.grid-content
{
overflow
:
hidden
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
10px
30px
;
.grid-content
{
overflow
:
hidden
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
10px
30px
;
.craname
{
line-height
:
50px
;
font-size
:
16px
;
}
.craname
{
line-height
:
50px
;
font-size
:
16px
;
}
img
{
width
:
50px
;
height
:
50px
;
border-radius
:
50%
;
background
:
#eee
;
}
img
{
width
:
50px
;
height
:
50px
;
border-radius
:
50%
;
background
:
#eee
;
}
}
}
.card
{
margin-top
:
40px
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
20px
;
font-size
:
16px
;
}
}
.card
{
margin-top
:
40px
;
background
:
#fff
;
border-radius
:
5px
;
padding
:
20px
;
font-size
:
16px
;
}
</
style
>
linkwe-ui/src/views/material/poster.vue
View file @
39cb025
...
...
@@ -35,7 +35,7 @@ export default {
required
:
true
,
message
:
'请选择海报类型'
},
delFlag
:
{
status
:
{
required
:
true
,
message
:
'请选择是否启用'
}
...
...
@@ -74,7 +74,7 @@ export default {
title
:
data
.
title
,
categoryId
:
data
.
categoryId
,
type
:
data
.
type
,
delFlag
:
data
.
delFlag
,
status
:
data
.
status
,
backgroundImgPath
:
data
.
backgroundImgPath
,
posterJSON
:
JSON
.
parse
(
data
.
otherField
)
}
...
...
@@ -85,7 +85,7 @@ export default {
title
:
''
,
// 海报名称
categoryId
:
''
,
// 所属分类
type
:
'1'
,
// 海报类型
delFlag
:
0
,
// 是否启用
status
:
0
,
// 是否启用
backgroundImgPath
:
''
,
// 图片url
mediaId
:
''
// 图片id
}
...
...
@@ -276,12 +276,15 @@ export default {
case
'image'
:
case
'qrcode'
:
new
fabric
.
Image
.
fromURL
(
type
==
'image'
?
obj
:
'http://demo.linkwechat.cn/lib/qrCode.png'
,
(
img
)
=>
{
img
.
set
(
options
)
// img.scale(this.canvas.width / img.width / 2)
img
.
scaleToWidth
(
200
)
this
.
canvas
.
add
(
img
).
setActiveObject
(
img
)
})
new
fabric
.
Image
.
fromURL
(
type
==
'image'
?
obj
:
'http://demo.linkwechat.cn/lib/qrCode.png'
,
(
img
)
=>
{
img
.
set
(
options
)
// img.scale(this.canvas.width / img.width / 2)
img
.
scaleToWidth
(
200
)
this
.
canvas
.
add
(
img
).
setActiveObject
(
img
)
}
)
break
default
:
...
...
@@ -343,12 +346,14 @@ export default {
vo
=
list
[
i
]
let
isText
=
vo
.
type
==
'i-text'
let
align
=
(
vo
.
textAlign
&&
(
vo
.
textAlign
===
'left'
?
1
:
vo
.
textAlign
===
'center'
?
2
:
3
))
||
1
let
align
=
(
vo
.
textAlign
&&
(
vo
.
textAlign
===
'left'
?
1
:
vo
.
textAlign
===
'center'
?
2
:
3
))
||
1
let
posData
=
{
id
:
null
,
// 修改的时候后端默认没增删,沟通后让先传null
content
:
vo
.
text
||
''
,
// 文本内容
delFlag
:
0
,
// 1 启动 0 删除 暂时写死
status
:
0
,
// 1 启动 0 删除 暂时写死
fontColor
:
vo
.
fill
||
'#000000'
,
fontId
:
null
,
// TODO 后端让传NULL isText ? i : null, // 字体ID 与imgPath互斥
fontSize
:
parseInt
(
vo
.
fontSize
),
...
...
@@ -401,16 +406,38 @@ export default {
<div>
<MaPage
ref=
"page"
type=
"5"
@
listChange=
"listChange"
:selected=
"ids"
v-slot=
"
{ list }">
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
style=
"margin-bottom: 24px; min-width: 220px"
v-for=
"(item, index) in list"
:key=
"index"
>
<el-col
:span=
"6"
style=
"margin-bottom: 24px; min-width: 220px"
v-for=
"(item, index) in list"
:key=
"index"
>
<el-card
shadow=
"hover"
body-style=
"padding: 0px;"
>
<div
class=
"img-wrap"
>
<el-image
class=
"poster-img"
:src=
"item.materialUrl"
fit=
"contain"
></el-image>
<div
class=
"actions"
>
<el-tag
class=
"actions-btn"
type=
"success"
size=
"mini"
effect=
"dark"
@
click=
"preview(item.materialUrl)"
<el-tag
class=
"actions-btn"
type=
"success"
size=
"mini"
effect=
"dark"
@
click=
"preview(item.materialUrl)"
>
预览
</el-tag
>
<el-tag
class=
"actions-btn"
type=
"success"
size=
"mini"
effect=
"dark"
@
click=
"edit(item)"
>
编辑
</el-tag>
<el-tag
class=
"actions-btn"
type=
"success"
size=
"mini"
effect=
"dark"
@
click=
"remove(item.id)"
<el-tag
class=
"actions-btn"
type=
"success"
size=
"mini"
effect=
"dark"
@
click=
"edit(item)"
>
编辑
</el-tag
>
<el-tag
class=
"actions-btn"
type=
"success"
size=
"mini"
effect=
"dark"
@
click=
"remove(item.id)"
>
删除
</el-tag
>
</div>
...
...
@@ -491,8 +518,8 @@ export default {
<el-checkbox
label=
"名片"
value=
"2"
></el-checkbox>
</el-checkbox-group>
</el-form-item>
-->
<el-form-item
label=
"是否启用"
prop=
"
delFlag
"
>
<el-radio-group
v-model=
"form.
delFlag
"
>
<el-form-item
label=
"是否启用"
prop=
"
status
"
>
<el-radio-group
v-model=
"form.
status
"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
</el-radio-group>
...
...
@@ -522,7 +549,8 @@ export default {
<div
style=
""
>
<div
id=
"canvas-wrap"
>
<i
class=
"el-icon-error"
id=
"deleteBtn"
></i>
<canvas
id=
"canvas"
width=
"300"
height=
"500"
style=
"border: 1px solid #ddd;"
>
</canvas>
<canvas
id=
"canvas"
width=
"300"
height=
"500"
style=
"border: 1px solid #ddd;"
>
</canvas>
</div>
<div
id=
"tbody-containerui-image-editor-controls"
>
<ul
class=
"menu"
>
...
...
@@ -541,9 +569,15 @@ export default {
</div>
-->
<!--
<div>
-->
<div>
<button
class=
"btn-text-style"
@
click=
"setAttr('textAlign', 'left')"
>
左对齐
</button>
<button
class=
"btn-text-style"
@
click=
"setAttr('textAlign', 'center')"
>
居中
</button>
<button
class=
"btn-text-style"
@
click=
"setAttr('textAlign', 'right')"
>
右对齐
</button>
<button
class=
"btn-text-style"
@
click=
"setAttr('textAlign', 'left')"
>
左对齐
</button>
<button
class=
"btn-text-style"
@
click=
"setAttr('textAlign', 'center')"
>
居中
</button>
<button
class=
"btn-text-style"
@
click=
"setAttr('textAlign', 'right')"
>
右对齐
</button>
</div>
</li>
<li
class=
"menu-item"
>
...
...
@@ -557,7 +591,12 @@ export default {
</el-dialog>
</MaPage>
<!-- 选择素材弹窗 -->
<SelectMaterial
:visible
.
sync=
"dialogVisibleSelectMaterial"
type=
"1"
:showArr=
"[1]"
@
success=
"submitSelectMaterial"
>
<SelectMaterial
:visible
.
sync=
"dialogVisibleSelectMaterial"
type=
"0"
:showArr=
"[0]"
@
success=
"submitSelectMaterial"
>
</SelectMaterial>
</div>
</
template
>
...
...
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