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