Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 388753ee
authored
Jan 01, 2022
by
yangming
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
end
1 parent
55fa78e7
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
293 additions
and
106 deletions
src/assets/css/common.scss
src/components/basic-title/index.vue
src/components/selectEmp/index.vue
src/components/selectTag/index.vue
src/components/welcome/activityModel.vue
src/components/welcome/emotionWords.vue
src/components/welcome/tag-textarea.vue
src/store/index.js
src/views/channel/addCode.vue
src/views/channel/components/channelList.vue
src/views/channel/components/channelStatistics.vue
src/views/channel/components/empDetail.vue
src/views/channel/poster.vue
src/views/market/config.vue
src/views/market/index.vue
src/views/square/drainage.vue
src/views/square/import.vue
src/views/square/importResult.vue
src/assets/css/common.scss
View file @
388753e
...
...
@@ -148,3 +148,27 @@ img {
.el-table
tbody
tr
:hover
>
td
{
background
:
#f4f3ff
!
important
;
}
.el-message-box
.el-message-box__title
,
.el-message-box
.el-message-box__headerbtn
{
display
:
none
;
}
.el-message-box__content
{
text-align
:
center
;
padding
:
50px
0px
50px
;
}
.el-message-box__status.el-icon-warning
{
display
:
none
;
}
.el-message-box__btns
{
text-align
:
center
;
padding
:
20px
0px
10px
;
border-top
:
1px
solid
#E6E6E6
;
}
.el-message-box__btns
button
:nth-child
(
2
)
{
margin-left
:
40px
;
}
.el-message-box__status
+
.el-message-box__message
{
padding
:
0px
10px
;
}
.el-message-box--center
{
padding
:
0px
;
}
\ No newline at end of file
src/components/basic-title/index.vue
View file @
388753e
<
template
>
<div
class=
"basic-panel"
>
<el-
tooltip
class=
"item"
effect=
"dark"
:content=
"content"
placement=
"top
"
v-if=
"tooltipStatus"
>
<div
class=
"basic-title"
>
{{
content
|
ellipsis
(
this
)
}}
</div>
</el-
tooltip
>
<el-
popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"content
"
v-if=
"tooltipStatus"
>
<div
class=
"basic-title"
slot=
"reference"
>
{{
content
|
ellipsis
(
this
)
}}
</div>
</el-
popover
>
<div
class=
"basic-title"
v-else
>
{{
content
|
ellipsis
(
this
)
}}
</div>
</div>
</
template
>
...
...
src/components/selectEmp/index.vue
View file @
388753e
...
...
@@ -9,7 +9,7 @@
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
></GLTable>
<GLTable
v-if=
"dialogVisible"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
></GLTable>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
>
新增专员
</a>
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
...
...
src/components/selectTag/index.vue
View file @
388753e
...
...
@@ -38,7 +38,7 @@
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
>
没有意向标签?点我创建
</a>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
v-if=
"this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2"
>
没有意向标签?点我创建
</a>
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
...
...
@@ -102,9 +102,6 @@ export default {
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
this
.
dialogVisible
=
false
// console.log(location.host+'/custom/tagsManage/index')
// this.$history.push('/custom/tagsManage/index')
// window.open(location.host+'/custom/tagsManage/index')
},
init
(
item
)
{
this
.
labelGroupName
=
''
...
...
src/components/welcome/activityModel.vue
View file @
388753e
...
...
@@ -68,7 +68,9 @@
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
v-show=
"modelList.length"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName != 1"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 2 && memberMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 4 && couponMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 5 && activityMenu"
>
立即添加
</el-button>
</span>
</el-dialog>
</div>
...
...
@@ -81,6 +83,7 @@ export default {
data
()
{
return
{
dialogVisible
:
false
,
couponMenu
:
false
,
loading
:
false
,
activeName
:
'3'
,
modelList
:
[],
...
...
@@ -187,6 +190,29 @@ export default {
})
},
init
()
{
this
.
couponMenu
=
false
this
.
activityMenu
=
false
this
.
memberMenu
=
false
const
menu
=
JSON
.
parse
(
sessionStorage
[
'SCRM_BASE_MENULIST'
])
menu
.
forEach
(
item
=>
{
if
(
item
.
name
==
'marketing'
)
{
if
(
!
item
.
children
)
{
return
}
item
.
children
.
forEach
(
itm
=>
{
console
.
log
(
itm
.
path
)
if
(
itm
.
path
==
'/couponManage/index'
)
{
this
.
couponMenu
=
true
}
if
(
itm
.
path
==
'/seckillActivity/index'
)
{
this
.
activityMenu
=
true
}
if
(
itm
.
path
==
'^'
)
{
this
.
memberMenu
=
true
}
})
}
})
this
.
dialogVisible
=
true
this
.
getModelList
()
this
.
selectItem
=
{}
...
...
@@ -199,6 +225,13 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.square-main
{
/deep/
{
.el-dialog__footer
{
text-align
:
center
;
}
}
}
.model-panel
{
.model-panel-tab
{
display
:
flex
;
...
...
src/components/welcome/emotionWords.vue
View file @
388753e
...
...
@@ -67,6 +67,9 @@ export default {
/deep/
{
img
{
width
:
24px
;
-webkit-user-select
:
none
;
cursor
:
default
;
pointer-events
:
none
;
}
}
}
...
...
src/components/welcome/tag-textarea.vue
View file @
388753e
...
...
@@ -178,6 +178,7 @@ export default {
// 创建a标签
let
node
=
document
.
createElement
(
'img'
)
node
.
src
=
url
// node.setAttribute('ondragstart', 'return false;')
this
.
insertNode
(
node
)
},
onFocus
()
{
...
...
@@ -190,13 +191,14 @@ export default {
insertNode
(
node
)
{
// 在内容中插入标签
// 删掉选中的内容(如有)
if
(
this
.
savedRange
.
startContainer
)
{
if
(
this
.
savedRange
.
startContainer
)
{
this
.
insertNodeFirst
(
node
)
}
else
{
document
.
querySelector
(
'.w-textarea_input'
).
focus
()
setTimeout
(()
=>
{
}
else
{
document
.
querySelector
(
'.w-textarea_input'
).
focus
()
setTimeout
(()
=>
{
this
.
insertNodeFirst
(
node
)
},
100
)
document
.
querySelector
(
'.w-textarea_input'
).
blur
()
},
100
)
}
},
insertNodeFirst
(
node
)
{
...
...
@@ -330,7 +332,7 @@ export default {
})
let
Textnode
=
document
.
createElement
(
'div'
)
Textnode
.
innerHTML
=
replaceImg
this
.
currentText
=
Textnode
.
innerText
this
.
currentText
=
Textnode
.
innerText
.
substring
(
0
,
600
)
this
.
$emit
(
'updateText'
,
this
.
currentText
)
},
placeCaretAtEnd
(
el
)
{
...
...
@@ -470,7 +472,7 @@ export default {
})
let
Textnode
=
document
.
createElement
(
'div'
)
Textnode
.
innerHTML
=
replaceImg
this
.
currentText
=
Textnode
.
innerText
this
.
currentText
=
Textnode
.
innerText
.
substring
(
0
,
600
)
this
.
$emit
(
'updateText'
,
this
.
currentText
)
},
handleDelete
(
e
)
{
...
...
@@ -547,6 +549,9 @@ export default {
img
{
width
:
24px
;
height
:
24px
;
-webkit-user-select
:
none
;
cursor
:
default
;
pointer-events
:
none
;
}
.active
{
background
:
#dcdfe6
;
...
...
src/store/index.js
View file @
388753e
...
...
@@ -17,6 +17,7 @@ const modules = modulesFiles.keys().reduce(
const
value
=
modulesFiles
(
modulePath
)
result
.
getters
[
moduleName
]
=
state
=>
state
[
moduleName
]
result
.
modules
[
moduleName
]
=
value
.
default
console
.
log
(
result
)
return
result
},
{
modules
:
{},
getters
:
{}
}
...
...
src/views/channel/addCode.vue
View file @
388753e
...
...
@@ -57,7 +57,7 @@
<span>
{{ staffInfo.length }}
</span>
人
</span>
<div
class=
"form-tips"
>
客户扫码后将添加所选专员为好友,选择多名专员则按AB
BA
的顺序添加客户
</div>
<div
class=
"form-tips"
>
客户扫码后将添加所选专员为好友,选择多名专员则按AB
AB
的顺序添加客户
</div>
<div
class=
"el-input-tag input-tag-wrapper"
v-show=
"staffInfo.length"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in staffInfo"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"removeStaff(idx)"
>
<i
class=
"el-icon-user-solid"
></i>
...
...
@@ -156,13 +156,16 @@ export default {
},
methods
:
{
goback
()
{
this
.
previewListStart
.
forEach
(
item
=>
{
this
.
$refs
.
welcome
.
previewList
.
forEach
(
itm
=>
{
if
(
item
.
attType
==
itm
.
attType
)
{
if
(
item
.
attContent
!=
itm
.
attContent
)
{
this
.
editStatus
=
true
}
this
.
previewListStart
.
forEach
(
item
=>
{
this
.
$refs
.
welcome
.
previewList
.
forEach
(
itm
=>
{
if
(
item
.
attType
==
itm
.
attType
)
{
if
(
typeof
item
.
attContent
!=
'object'
&&
item
.
attContent
!=
itm
.
attContent
)
{
this
.
editStatus
=
true
}
if
(
typeof
item
.
attContent
==
'object'
&&
item
.
attContent
.
marketingName
!=
itm
.
attContent
.
marketingName
)
{
this
.
editStatus
=
true
}
}
})
})
if
(
this
.
editStatus
||
(
this
.
$refs
.
welcome
.
previewList
.
length
>
0
&&
!
this
.
codeId
))
{
...
...
@@ -304,11 +307,12 @@ export default {
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
}
},
destroyed
()
{
window
.
removeEventListener
(
'resize'
,
this
.
resize
)
},
mounted
()
{
this
.
resize
()
window
.
addEventListener
(
'resize'
,
()
=>
{
this
.
resize
()
})
window
.
addEventListener
(
'resize'
,
this
.
resize
)
const
{
id
,
codeUuid
}
=
this
.
$route
.
params
if
(
id
)
{
this
.
codeId
=
id
...
...
src/views/channel/components/channelList.vue
View file @
388753e
...
...
@@ -26,8 +26,8 @@
<GLButton
type=
"text"
@
click=
"handleAddPoster(scope.scope)"
fn=
"活码海报"
>
活码海报
</GLButton>
</div>
<div
slot=
"yesterdayNum"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,'day')"
v-if=
"scope.scope.yesterdayNum"
>
{{
scope
.
scope
.
yesterdayNum
}}
</div>
<div
v-else
>
0
</div>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'day')"
v-if=
"scope.scope.yesterdayNum"
>
{{
scope
.
scope
.
yesterdayNum
}}
</div>
<div
v-else
>
0
</div>
</div>
<div
slot=
"totalNum"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope)"
v-if=
"scope.scope.totalNum"
>
{{
scope
.
scope
.
totalNum
}}
</div>
...
...
@@ -37,14 +37,14 @@
<el-popover
trigger=
"hover"
placement=
"top"
v-if=
"scope.scope.staffName.split(',').length > 3"
>
<div
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.staffName.split(',')"
:key=
"index"
>
<i
class=
"el-icon-user-solid"
></i>
<GLTitle
:content=
"item"
textLength=
"4"
></GLTitle>
<GLTitle
:content=
"item"
textLength=
"4"
></GLTitle>
</div>
<div
slot=
"reference"
class=
"name-wrapper"
>
<div
v-for=
"(item, index) in scope.scope.staffName.split(',')"
:key=
"index"
v-show=
"index
< 4
"
>
<div
class=
"accountType-row"
>
<i
class=
"el-icon-user-solid"
></i>
<span
v-if=
"index == 3 && scope.scope.staffName.split(',').length > 3"
>
{{
'...('
+
scope
.
scope
.
staffName
.
split
(
','
).
length
+
')'
}}
</span>
<GLTitle
:content=
"item"
textLength=
"4"
v-else
></GLTitle>
<span
v-if=
"index == 3 && scope.scope.staffName.split(',').length > 3"
>
{{
'...('
+
scope
.
scope
.
staffName
.
split
(
','
).
length
+
')'
}}
</span>
<GLTitle
:content=
"item"
textLength=
"4"
v-else
></GLTitle>
</div>
</div>
</div>
...
...
@@ -52,13 +52,13 @@
<div
v-for=
"(item, index) in scope.scope.staffName.split(',')"
:key=
"index"
v-else
>
<div
class=
"accountType-row"
>
<i
class=
"el-icon-user-solid"
></i>
<GLTitle
:content=
"item"
textLength=
"4"
></GLTitle>
<GLTitle
:content=
"item"
textLength=
"4"
></GLTitle>
</div>
</div>
</div>
<div
slot=
"qrCode"
slot-scope=
"scope"
>
<el-popover
placement=
"bottom"
width=
"
2
00"
trigger=
"click"
>
<img
:src=
"scope.scope.qrCode"
style=
"width:
160px; height: 1
60px"
/>
<el-popover
placement=
"bottom"
width=
"
4
00"
trigger=
"click"
>
<img
:src=
"scope.scope.qrCode"
style=
"width:
360px; height: 3
60px"
/>
<img
:src=
"scope.scope.qrCode"
style=
"width: 80px; height: 80px"
slot=
"reference"
/>
</el-popover>
<div
class=
"download-link"
@
click=
"downloadIamge(scope.scope.qrCode)"
>
下载二维码
</div>
...
...
@@ -68,11 +68,11 @@
<!--
<div
:title=
"item.name"
class=
"accountType-row accountType-row-tag"
v-for=
"(item, index) in scope.scope.taggingList"
:key=
"index"
>
{{
item
.
name
.
length
>
8
?
item
.
name
.
substring
(
0
,
8
)
+
'...'
:
item
.
name
}}
</div>
-->
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-for=
"(item, index) in scope.scope.taggingList"
:key=
"index"
></GLTitle>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-for=
"(item, index) in scope.scope.taggingList"
:key=
"index"
></GLTitle>
<div
slot=
"reference"
class=
"name-wrapper"
>
<div
v-for=
"(item, index) in scope.scope.taggingList"
:key=
"index"
v-show=
"index
< 4
"
>
<div
:title=
"item.name"
class=
"accountType-row accountType-row-tag"
v-if=
"index == 3 && scope.scope.taggingList.length > 3"
>
{{
'...('
+
scope
.
scope
.
taggingList
.
length
+
')'
}}
</div>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-else
></GLTitle>
<div
:title=
"item.name"
class=
"accountType-row accountType-row-tag"
v-if=
"index == 3 && scope.scope.taggingList.length > 3"
>
{{
'...('
+
scope
.
scope
.
taggingList
.
length
+
')'
}}
</div>
<GLTitle
:content=
"item.name"
class=
"accountType-row accountType-row-tag"
v-else
></GLTitle>
</div>
</div>
</el-popover>
...
...
@@ -183,8 +183,8 @@ export default {
handleAddPoster
(
scope
)
{
this
.
$router
.
push
(
'/channel/poster/'
+
scope
.
id
)
},
handleEmpDetail
(
scope
,
status
)
{
this
.
$refs
.
empDetailForm
.
init
(
scope
,
status
)
handleEmpDetail
(
scope
,
status
)
{
this
.
$refs
.
empDetailForm
.
init
(
scope
,
status
)
},
downloadIamge
(
imgsrc
)
{
util
.
downloadIamge
(
imgsrc
)
...
...
@@ -239,20 +239,22 @@ export default {
pageSize
:
this
.
$refs
.
table
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
table
.
page
.
pageNum
}
this
.
loading
=
true
;
this
.
loading
=
true
this
.
$apis
.
channel
.
listChannelCodeByPage
(
params
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
if
(
res
)
{
this
.
tableData
=
res
.
data
this
.
tableData
.
forEach
(
item
=>
{
this
.
$set
(
item
,
'taggingList'
,
[])
const
tagging
=
eval
(
item
.
tagging
)
tagging
.
forEach
(
itm
=>
{
let
name
=
itm
.
name
.
split
(
','
)
name
.
forEach
((
tag
,
index
)
=>
{
item
.
taggingList
.
push
({
name
:
tag
})
if
(
tagging
&&
tagging
.
length
>
0
)
{
tagging
.
forEach
(
itm
=>
{
let
name
=
itm
.
name
.
split
(
','
)
name
.
forEach
((
tag
,
index
)
=>
{
item
.
taggingList
.
push
({
name
:
tag
})
})
})
}
)
}
})
this
.
tableTotal
=
res
.
count
}
...
...
@@ -264,7 +266,11 @@ export default {
}
}
</
script
>
<
style
>
.el-popover
{
max-width
:
800px
;
}
</
style
>
<
style
lang=
"scss"
scoped
>
.popover-panel
{
width
:
1000px
;
...
...
src/views/channel/components/channelStatistics.vue
View file @
388753e
...
...
@@ -9,7 +9,7 @@
</el-radio-group>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
class=
"follow-form-item"
label-width=
"80px"
>
<el-form-item
size=
"small"
label=
"添加时间"
>
<el-date-picker
:picker-options=
"pickerOptions"
value-format=
"yyyy-MM-dd"
v-model=
"createTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
<el-date-picker
:picker-options=
"pickerOptions"
@
change=
"handleTime"
value-format=
"yyyy-MM-dd"
v-model=
"createTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
size=
"small"
label=
"渠道名称"
>
<el-input
size=
"small"
v-model=
"tableSearchForm.keyWord"
placeholder=
"请输入渠道名称"
></el-input>
...
...
@@ -37,7 +37,8 @@
<span
:style=
"
{ background: colorList[index] }">
</span>
{{
item
.
codeName
}}
</div>
<div
class=
"chart-item-num"
>
{{
item
.
totalNum
}}
</div>
<div
class=
"chart-item-num link-dialog"
@
click=
"handleEmpDetail(item)"
v-if=
"item.totalNum"
>
{{
item
.
totalNum
}}
</div>
<div
class=
"chart-item-num"
v-else
>
0
</div>
</div>
</div>
<div>
...
...
@@ -48,12 +49,12 @@
</div>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<div
slot=
"newlyCount"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'day',
scope.scope.timeFrame)"
v-if=
"scope.scope.newlyCount"
>
{{
scope
.
scope
.
newlyCount
}}
</div>
<div>
0
</div>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'day',
scope.scope.timeFrame)"
v-if=
"scope.scope.newlyCount"
>
{{
scope
.
scope
.
newlyCount
}}
</div>
<div
v-else
>
0
</div>
</div>
<div
slot=
"newlyKeepCount"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'status',
scope.scope.timeFrame)"
v-if=
"scope.scope.newlyKeepCount"
>
{{
scope
.
scope
.
newlyKeepCount
}}
</div>
<div>
0
</div>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'status',
scope.scope.timeFrame)"
v-if=
"scope.scope.newlyKeepCount"
>
{{
scope
.
scope
.
newlyKeepCount
}}
</div>
<div
v-else
>
0
</div>
</div>
</GLTable>
<select-channel
:colorList=
"colorList"
ref=
"channelForm"
@
selectTable=
"selectTable"
></select-channel>
...
...
@@ -120,9 +121,27 @@ export default {
colorList
:
[
'#5850FF'
,
'#2CCA74'
,
'#EB4E4E'
,
'#FF6D00'
,
'#F8C900'
,
'#2CCAC4'
,
'#E74EEB'
,
'#6F2828'
]
}
},
watch
:
{
createTime
(
value
)
{
if
(
value
)
{
// watch: {
// createTime(value) {
// if (value) {
// this.startTime = value[0]
// this.endTime = value[1]
// this.timeRadio = null
// this.trendType = null
// } else {
// this.startTime = ''
// this.endTime = ''
// this.timeRadio = 1
// this.trendType = 1
// }
// this.getFollower()
// this.codeSearch()
// }
// },
methods
:
{
handleTime
()
{
const
value
=
this
.
createTime
if
(
value
&&
value
.
length
>
0
)
{
this
.
startTime
=
value
[
0
]
this
.
endTime
=
value
[
1
]
this
.
timeRadio
=
null
...
...
@@ -135,12 +154,11 @@ export default {
}
this
.
getFollower
()
this
.
codeSearch
()
}
},
methods
:
{
},
handleTab
()
{
this
.
createTime
=
[];
this
.
trendType
=
this
.
timeRadio
this
.
start
Time
=
''
this
.
create
Time
=
''
this
.
endTime
=
''
this
.
codeSearch
()
this
.
getFollower
()
...
...
@@ -148,8 +166,8 @@ export default {
handleSearch
()
{
this
.
codeSearch
()
},
handleEmpDetail
(
scope
,
value
,
day
)
{
this
.
$refs
.
empDetailForm
.
init
(
scope
,
value
,
day
)
handleEmpDetail
(
scope
,
value
,
day
)
{
this
.
$refs
.
empDetailForm
.
init
(
scope
,
value
,
day
)
},
codeSearch
()
{
var
params
=
{
...
...
@@ -188,7 +206,7 @@ export default {
return
{
codeState
:
item
.
codeState
,
codeName
:
item
.
codeName
,
totalNum
:
item
.
yesterday
Num
totalNum
:
item
.
total
Num
}
})
this
.
getFollower
()
...
...
@@ -196,6 +214,24 @@ export default {
handleChannel
()
{
this
.
$refs
.
channelForm
.
init
(
this
.
codeIds
)
},
getFollowerTotal
()
{
var
params
=
{
pageSize
:
1000
,
pageNum
:
1
}
this
.
$apis
.
channel
.
listChannelCodeByPage
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
this
.
tableData
.
forEach
(
item
=>
{
this
.
selectCode
.
forEach
((
itm
,
index
)
=>
{
if
(
itm
.
codeState
==
item
.
codeState
)
{
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
item
)
}
})
})
})
},
getFollower
()
{
let
codeState
=
this
.
codeIds
.
map
(
item
=>
item
.
codeState
)
var
params
=
{
...
...
@@ -212,7 +248,7 @@ export default {
return
{
codeState
:
item
.
codeState
,
codeName
:
item
.
codeName
,
totalNum
:
item
.
yesterday
Num
totalNum
:
item
.
total
Num
}
})
this
.
codeTrend
()
...
...
src/views/channel/components/empDetail.vue
View file @
388753e
<
template
>
<div
class=
"square-main"
v-loading=
"loading"
>
<el-dialog
title=
"客户
详情
"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-dialog
title=
"客户
列表
"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
class=
"emp-form"
>
<el-form-item
size=
"small"
label=
"客户名称"
>
<el-input
v-model=
"tableSearchForm.customerName"
placeholder=
"请输入客户名称"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"状态"
>
<el-form-item
size=
"small"
label=
"状态"
v-if=
"!pStatus"
>
<el-select
v-model=
"tableSearchForm.status"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionstatus"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"跟进员工"
>
<el-form-item
size=
"small"
label=
"跟进员工"
v-if=
"!staffIds"
>
<el-select
v-model=
"staffId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in staffName"
:key=
"item.staffId"
:label=
"item.staffName"
:value=
"item.staffId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"添加时间"
>
<el-form-item
size=
"small"
label=
"添加时间"
v-if=
"timeStatus"
>
<el-date-picker
:picker-options=
"pickerOptions"
value-format=
"yyyy-MM-dd"
v-model=
"createTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
size=
"small"
>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form>
...
...
@@ -65,7 +65,7 @@ export default {
label
:
'正常'
},
{
value
:
'1'
,
value
:
'
-
1'
,
label
:
'删除好友'
}
],
...
...
@@ -132,7 +132,7 @@ export default {
custState
:
this
.
selectRow
.
codeState
,
staffIds
:
this
.
staffId
?
[
this
.
staffId
]
:
null
}
if
(
this
.
createTime
.
length
>
0
)
{
if
(
this
.
createTime
&&
this
.
createTime
.
length
>
0
)
{
params
.
beginTime
=
this
.
createTime
[
0
]
params
.
endTime
=
this
.
createTime
[
1
]
}
...
...
@@ -156,13 +156,17 @@ export default {
codeState
:
this
.
selectRow
.
codeState
}
this
.
$apis
.
channel
.
getChannelCodeStaffList
(
params
).
then
(
res
=>
{
this
.
staffName
=
[{
staffName
:
'全部'
,
staffId
:
null
}].
concat
(
res
.
data
)
this
.
staffName
=
[{
staffName
:
'全部'
,
staffId
:
null
}].
concat
(
res
.
data
)
})
},
init
(
item
,
value
,
day
)
{
this
.
createTime
=
[]
this
.
pStatus
=
null
this
.
staffIds
=
null
this
.
timeStatus
=
true
;
if
(
value
==
'day'
&&
!
day
)
{
this
.
createTime
=
[
util
.
getDay
(
0
),
util
.
getDay
(
0
)]
this
.
timeStatus
=
false
}
if
(
value
==
'day'
&&
day
)
{
if
(
day
.
indexOf
(
'~'
)
==
-
1
)
{
...
...
@@ -170,6 +174,7 @@ export default {
}
else
{
this
.
createTime
=
[
day
.
split
(
'~'
)[
0
],
day
.
split
(
'~'
)[
1
]]
}
this
.
timeStatus
=
false
}
if
(
value
==
'status'
&&
!
day
)
{
this
.
pStatus
=
'status'
...
...
@@ -181,6 +186,7 @@ export default {
}
else
{
this
.
createTime
=
[
day
.
split
(
'~'
)[
0
],
day
.
split
(
'~'
)[
1
]]
}
this
.
timeStatus
=
false
}
if
(
value
==
'staffIds'
)
{
this
.
staffIds
=
item
.
staffId
...
...
@@ -225,6 +231,13 @@ export default {
text-decoration
:
underline
;
cursor
:
pointer
;
}
.emp-form
{
/deep/
{
.el-date-editor,.el-input
{
width
:
215px
;
}
}
}
.square-main
{
/deep/
{
.el-table
{
...
...
src/views/channel/poster.vue
View file @
388753e
...
...
@@ -5,12 +5,12 @@
</div>
<div
class=
"poster-body"
>
<div
class=
"poster-item"
@
click=
"setPoster(item)"
@
mouseenter=
"item.show = true"
@
mouseleave=
"item.show = false"
v-for=
"(item, index) in posterList"
:key=
"index"
>
<div
class=
"poster-del"
v-show=
"item.show"
@
click=
"handleDelete(item.id)"
>
<div
class=
"poster-del"
v-show=
"item.show"
@
click
.
stop
=
"handleDelete(item.id)"
>
<img
src=
"@/assets/img/del.png"
/>
</div>
<div
class=
"poster-item-box"
v-loading=
"item.loadingImg"
>
<img
:src=
"item.autoUrl"
:src=
"item.
thumbnailUrl?item.thumbnailUrl:item.
autoUrl"
class=
"poster-image"
v-if=
"item.imgWidth"
:style=
"
{
...
...
@@ -19,18 +19,19 @@
}"
/>
</div>
<div
class=
"poster-item-link"
@
click=
"downloadIamge(item.autoUrl)"
>
下载海报
</div>
<div
class=
"poster-item-link"
@
click
.
stop
=
"downloadIamge(item.autoUrl)"
>
下载海报
</div>
</div>
<div
class=
"poster-item"
>
<div
class=
"poster-item-box"
>
<div>
<div
class=
"poster-upload-image"
>
<img
src=
"@/assets/img/channel/upload.png"
/>
<div
class=
"poster-tips"
>
上传海报图片,将自动配上渠道活码
</div>
</div>
<el-upload
action=
"#"
class=
"image-uploader"
:before-upload=
"upLoadImg"
>
<div
class=
"poster-item-link"
>
上传海报
</div>
</el-upload>
<div
class=
"poster-upload-image"
>
<img
src=
"@/assets/img/channel/upload.png"
/>
<div
class=
"poster-tips"
>
上传海报图片,将自动配上渠道活码
</div>
</div>
<div
class=
"image-uploader"
>
<div
class=
"poster-item-link"
>
上传海报
</div>
<input
type=
"file"
class=
"image-uploader"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"upLoadImg"
/>
</div>
</div>
</div>
</div>
...
...
@@ -134,8 +135,8 @@ export default {
},
enterPoster
()
{},
leavePoster
()
{},
upLoadImg
(
fil
e
)
{
cons
ole
.
log
(
file
.
size
/
1024
/
1000
>
5
)
upLoadImg
(
e
)
{
cons
t
file
=
e
.
srcElement
.
files
[
0
]
let
fileName
=
file
.
name
if
(
file
.
name
.
lastIndexOf
(
'.'
)
===
-
1
)
{
this
.
$message
.
info
(
'路径不正确'
)
...
...
@@ -178,6 +179,7 @@ export default {
}
else
{
self
.
loading
=
false
}
self
.
$refs
.
file
.
value
=
''
;
})
}
}
...
...
@@ -230,7 +232,7 @@ export default {
listChannelCodeBill
.
forEach
(
item
=>
{
item
.
show
=
false
item
.
loadingImg
=
true
let
backUrl
=
item
.
autoUrl
let
backUrl
=
item
.
thumbnailUrl
?
item
.
thumbnailUrl
:
item
.
autoUrl
this
.
backUrl
=
backUrl
let
img
=
new
Image
()
img
.
src
=
backUrl
...
...
@@ -274,8 +276,16 @@ export default {
min-height
:
calc
(
100%
-
30px
);
}
.image-uploader
{
display
:
inline-block
;
height
:
20px
;
position
:
relative
;
cursor
:
pointer
;
.poster-item-link
{
position
:
absolute
;
top
:
0px
;
left
:
0px
;
width
:
100%
;
margin
:
0
auto
!important
;
text-align
:
center
;
}
/
deep
/
{
.el-upload-list
{
display
:
none
;
...
...
@@ -344,6 +354,7 @@ export default {
font-weight
:
400
;
color
:
#999999
;
line-height
:
20px
;
margin-bottom
:
20px
;
img
{
width
:
90px
;
height
:
auto
;
...
...
src/views/market/config.vue
View file @
388753e
...
...
@@ -7,12 +7,13 @@
<label>
客户信息
</label>
<div
class=
"upload-box"
>
<div
class=
"upload-file-panel"
>
<
el-upload
action=
""
class=
"image-uploader"
:before-upload=
"uploadFile
"
>
<
div
class=
"image-uploader
"
>
<div
class=
"upload-btn"
>
<i
class=
"el-icon-upload2"
></i>
上传文件
</div>
</el-upload>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"uploadFile"
/>
</div>
<a
class=
"download-url"
href=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/客户信息导入模板.xlsx"
>
下载导入模版
</a>
</div>
<div
class=
"upload-tips"
v-if=
"importName"
>
{{
importName
}}
</div>
...
...
@@ -329,6 +330,7 @@ export default {
this
.
importStatus
=
false
},
handleCancel
()
{
console
.
log
(
this
.
saveStatus
)
if
(
this
.
saveStatus
||
(
this
.
$refs
.
welcome
.
previewList
.
length
>
0
&&
this
.
editStatus
))
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -348,7 +350,8 @@ export default {
tagSelected
(
item
)
{
this
.
tagging
=
item
},
uploadFile
(
file
)
{
uploadFile
(
e
)
{
const
file
=
e
.
srcElement
.
files
[
0
]
let
AllImgExt
=
'.xls|.xlsx'
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
console
.
log
(
extName
)
...
...
@@ -365,6 +368,7 @@ export default {
this
.
$apis
.
common
.
pictureUpload
({
file
:
fileUrl
}).
then
(
res
=>
{
this
.
importName
=
file
.
name
this
.
exportUrl
=
res
this
.
$refs
.
file
.
value
=
''
this
.
handleSaveImport
()
})
}
...
...
@@ -429,7 +433,6 @@ export default {
this
.
empStatus
=
true
return
}
this
.
loading
=
true
this
.
$refs
[
'configForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
let
startTime
,
endTime
...
...
@@ -490,7 +493,7 @@ export default {
})
params
.
welcomeInfo
=
attachmentList
}
this
.
loading
=
true
this
.
$apis
.
marketing
[
config
](
params
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
)
{
...
...
@@ -579,7 +582,7 @@ export default {
}
.welcome-panel
{
margin
:
10px
;
padding
:
0px
20
px
20px
;
padding
:
0px
42
px
20px
;
.welcome-switch
{
margin-bottom
:
20px
;
label
{
...
...
@@ -621,7 +624,16 @@ export default {
.image-uploader
{
display
:
inline-block
;
margin-bottom
:
6px
;
height
:
20px
;
width
:
100px
;
position
:
relative
;
input
{
cursor
:
pointer
;
position
:
absolute
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
font-size
:
0px
;
}
/
deep
/
{
.el-upload-list
{
display
:
none
;
...
...
src/views/market/index.vue
View file @
388753e
...
...
@@ -93,7 +93,8 @@ export default {
},
{
label
:
'创建人'
,
prop
:
'createdName'
prop
:
'createdName'
,
width
:
'220px'
},
{
label
:
'操作'
,
...
...
src/views/square/drainage.vue
View file @
388753e
...
...
@@ -373,6 +373,12 @@ export default {
this
.
saveStatus
=
true
},
deep
:
true
},
autoWelcome
:
{
handler
()
{
this
.
saveStatus
=
true
},
deep
:
true
}
},
methods
:
{
...
...
@@ -425,7 +431,22 @@ export default {
.
catch
(()
=>
{})
},
goback
()
{
if
(
this
.
editStatus
)
{
this
.
previewListStart
.
forEach
(
item
=>
{
this
.
$refs
.
welcome
.
previewList
.
forEach
(
itm
=>
{
if
(
item
.
attType
==
itm
.
attType
)
{
if
(
typeof
item
.
attContent
!=
'object'
&&
item
.
attContent
!=
itm
.
attContent
)
{
this
.
saveStatus
=
true
}
if
(
typeof
item
.
attContent
==
'object'
&&
item
.
attContent
.
marketingName
!=
itm
.
attContent
.
marketingName
)
{
this
.
saveStatus
=
true
}
}
})
})
if
(
this
.
previewListStart
.
length
==
0
&&
this
.
$refs
.
welcome
.
previewList
.
length
>
0
)
{
this
.
saveStatus
=
true
}
if
(
this
.
saveStatus
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -567,7 +588,10 @@ export default {
})
this
.
$refs
.
welcome
.
updateList
(
previewList
)
}
this
.
$nextTick
(()
=>
{
this
.
saveStatus
=
false
this
.
previewListStart
=
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
})
}
})
},
...
...
@@ -600,7 +624,7 @@ export default {
}
.welcome-panel
{
margin
:
10px
;
padding
:
0px
20
px
20px
;
padding
:
0px
42
px
20px
;
.welcome-switch
{
margin-bottom
:
20px
;
label
{
...
...
src/views/square/import.vue
View file @
388753e
...
...
@@ -54,13 +54,14 @@
</div>
</div>
<div
class=
"safe-upload-panel"
id=
"drop_area"
>
<el-upload
action=
""
class=
"image-uploader"
:before-upload=
"uploadFile"
>
<div
class=
"image-uploader"
>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"changeInput"
/>
<div
class=
"safe-upload-icon"
><i
class=
"el-icon-tickets"
></i></div>
</
el-upload
>
</
div
>
<div
class=
"safe-upload-tips"
>
点击或将文件拖拽到这里
{{
importName
?
'重新'
:
''
}}
上传
</div>
<div
class=
"safe-upload-xl"
v-if=
"importName"
>
{{
importName
}}
</div>
<div
class=
"safe-upload-xl"
>
支持扩展名:.xls .xls
l
</div>
<div
class=
"safe-upload-xl"
>
支持扩展名:.xls .xls
x
</div>
<div
class=
"safe-upload-link"
@
click=
"downloadModel"
>
下载模版
</div>
</div>
<div
class=
"safe-upload-footer"
>
...
...
@@ -141,7 +142,7 @@ export default {
this
.
$refs
.
carousel
.
handleMouseEnter
=
()
=>
{}
},
goBack
()
{
this
.
$router
.
push
(
'/square/index'
)
this
.
$router
.
go
(
-
1
)
},
downloadModel
()
{
this
.
$apis
.
square
.
downloadModel
({}).
then
(
res
=>
{
...
...
@@ -163,6 +164,9 @@ export default {
console
.
log
(
fileData
[
1
])
this
.
uploadFile
(
fileData
[
0
])
},
changeInput
(
e
)
{
this
.
uploadFile
(
e
.
target
.
files
[
0
])
},
uploadFile
(
e
)
{
let
AllImgExt
=
'.xls|.xlsx'
let
extName
=
e
.
name
.
substring
(
e
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
...
...
@@ -183,6 +187,7 @@ export default {
this
.
$apis
.
common
.
pictureUpload
({
file
:
fileInfo
}).
then
(
res
=>
{
this
.
fileInfo
=
res
this
.
importName
=
e
.
name
this
.
$refs
.
file
.
value
=
''
;
})
}
}
else
{
...
...
@@ -310,6 +315,19 @@ export default {
font-weight
:
700
;
}
.image-uploader
{
position
:
relative
;
height
:
40px
;
display
:
flex
;
margin
:
20px
0px
;
justify-content
:
center
;
input
{
cursor
:
pointer
;
position
:
absolute
;
top
:
0px
;
width
:
35px
;
height
:
35px
;
font-size
:
0px
;
}
/
deep
/
{
.el-upload-list
{
display
:
none
;
...
...
@@ -336,7 +354,6 @@ export default {
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.15
);
text-align
:
center
;
.safe-upload-icon
{
margin
:
20px
0px
;
i
{
font-size
:
35px
;
color
:
#5850ff
;
...
...
src/views/square/importResult.vue
View file @
388753e
...
...
@@ -2,10 +2,10 @@
<div
class=
"squre-main"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"goBack"
>
返回
</el-button>
<div
class=
"squre-success-panel scrm-box-f"
>
<div
class=
"contact-us-wrap"
>
<
!--
<
div
class=
"contact-us-wrap"
>
<img
src=
"@/assets/img/qrcode.png"
/>
<div
class=
"contact-us-about"
>
联系我们
</div>
</div>
</div>
-->
<div
class=
"squre-success-image"
><i
class=
"el-icon-success"
></i></div>
<div
class=
"squre-success-tips"
>
提交成功
</div>
<div
class=
"squre-success-content"
>
所提交的数据已经过加密,并安全存储专属加密区。
</div>
...
...
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