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 2ea4cbdd
authored
Aug 04, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
6c098b55
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
285 additions
and
226 deletions
src/assets/css/common.scss
src/components/screenTag/index.vue
src/components/selectCrowd/index.vue
src/components/selectEmp/index.vue
src/components/selectTag/index.vue
src/components/welcome/tag-textarea.vue
src/components/welcome/welcomeWords.vue
src/router/routes.js
src/setup/qiankun.js
src/views/channel/addCode.vue
src/views/channel/components/channelList.vue
src/views/channel/components/selectChannel.vue
src/views/channel/poster.vue
src/views/channel/store.vue
src/views/friends/index.vue
src/views/market/components/configInfo.vue
src/views/market/components/customList.vue
src/views/market/config.vue
src/views/market/configDetail.vue
src/views/overview/components/messageList.vue
src/views/overview/index.vue
src/views/square/components/step-second.vue
src/views/square/drainage.vue
src/views/square/import.vue
src/views/square/index.vue
src/assets/css/common.scss
View file @
2ea4cbd
...
...
@@ -101,7 +101,7 @@ img {
.scrm-box-f
{
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0
.1
);
//
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.scrm-flex
{
...
...
@@ -148,7 +148,8 @@ img {
.el-table
tbody
tr
:hover
>
td
{
background
:
#f4f3ff
!
important
;
}
.el-message-box
.el-message-box__title
,
.el-message-box
.el-message-box__headerbtn
{
.el-message-box
.el-message-box__title
,
.el-message-box
.el-message-box__headerbtn
{
display
:
none
;
}
.el-message-box__content
{
...
...
@@ -161,12 +162,12 @@ img {
.el-message-box__btns
{
text-align
:
center
;
padding
:
20px
0px
10px
;
border-top
:
1px
solid
#
E6E6E
6
;
border-top
:
1px
solid
#
e6e6e
6
;
}
.el-message-box__btns
button
:nth-child
(
2
)
{
margin-left
:
40px
;
}
.el-message-box__status
+
.el-message-box__message
{
.el-message-box__status
+
.el-message-box__message
{
padding
:
0px
10px
;
}
.el-message-box--center
{
...
...
@@ -185,5 +186,5 @@ img {
font-size
:
16px
;
}
.el-radio
:focus:not
(
.is-focus
)
:not
(
:active
)
:not
(
.is-disabled
)
.el-radio__inner
{
box-shadow
:
none
!
important
;
}
\ No newline at end of file
box-shadow
:
none
!
important
;
}
src/components/screenTag/index.vue
View file @
2ea4cbd
<
template
>
<div
class=
"tag-main"
>
<el-dialog
t
itle=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<el-dialog
bigT
itle=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
...
...
src/components/selectCrowd/index.vue
View file @
2ea4cbd
...
...
@@ -7,7 +7,7 @@
-->
<
template
>
<div>
<
el-dialog
:title=
"'人群筛选'"
:width=
"'1080px'"
:visible
.
sync=
"crowdVisible"
v-if=
"crowdVisible
"
>
<
GLDialog
title=
"人群筛选"
:hasFooter=
"true"
:visible
.
sync=
"crowdVisible"
mode=
"big
"
>
<div
class=
"member-wrapper"
>
<div
class=
"member-left"
>
<div
class=
"member-title"
>
...
...
@@ -43,7 +43,7 @@
<el-button
style=
"width: 68px;"
size=
"small"
@
click=
"crowdVisible = false"
>
取 消
</el-button>
<el-button
style=
"width: 68px;"
size=
"small"
type=
"primary"
@
click
.
native=
"handleConfirm"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
</div>
</
template
>
...
...
@@ -97,7 +97,6 @@ export default {
},
methods
:
{
init
(
val
)
{
// console.log(val)
this
.
inner
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
innerTags
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
crowdVisible
=
true
...
...
src/components/selectEmp/index.vue
View file @
2ea4cbd
<
template
>
<div
class=
"square-main"
v-loading=
"loading"
>
<
el-dialog
title=
"选择跟进专员"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClos
e"
>
<
GLDialog
title=
"选择跟进专员"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisibl
e"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form-item
size=
"small"
label=
"员工"
>
<el-input
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入员工姓名"
></el-input>
...
...
@@ -15,7 +15,7 @@
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click
.
native=
"handleSelect"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
</div>
</
template
>
...
...
src/components/selectTag/index.vue
View file @
2ea4cbd
<
template
>
<div
class=
"tag-main"
>
<
el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose
"
>
<
GLDialog
bigTitle=
"选择标签"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisible"
mode=
"big
"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
...
...
@@ -44,7 +44,7 @@
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
</div>
</template>
...
...
src/components/welcome/tag-textarea.vue
View file @
2ea4cbd
...
...
@@ -264,8 +264,11 @@ export default {
}
let
htm
=
target
.
innerHTML
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
).
replaceAll
(
'<wise id="1">@昵称</wise>'
,
'@昵称'
).
replaceAll
(
'<br>'
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
cutImg
=
htm
.
replace
(
/<img src="https:
\/\/
img01.glsx.com.cn
\/
weapp
\/
resource
\/
saas
\/
scrm
\/
emoji
\/
/g
,
''
)
.
replace
(
/<wise.+
?(?:
<
\/
wise>
)
/g
,
'@昵称'
)
.
replace
(
/<br>/g
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -298,8 +301,11 @@ export default {
let
htm
=
target
.
innerHTML
console
.
log
(
htm
)
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
).
replaceAll
(
'<wise id="1">@昵称</wise>'
,
'@昵称'
).
replaceAll
(
'<br>'
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
cutImg
=
htm
.
replace
(
/<img src="https:
\/\/
img01.glsx.com.cn
\/
weapp
\/
resource
\/
saas
\/
scrm
\/
emoji
\/
/g
,
''
)
.
replace
(
/<wise.+
?(?:
<
\/
wise>
)
/g
,
'@昵称'
)
.
replace
(
/<br>/g
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -465,4 +471,4 @@ $textColor: #666;
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/components/welcome/welcomeWords.vue
View file @
2ea4cbd
...
...
@@ -51,7 +51,7 @@
<span
v-else
>
{{ item.name }}
</span>
<input
v-if=
"item.type == 'img'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input upload-img"
:accept=
"item.accept || 'image/png, image/jpeg, image/jpg'"
@
change=
"e => handleImgChange(e, item)"
/>
<input
v-else-if=
"item.type == 'video'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input"
:accept=
"item.accept || 'video/*'"
@
change=
"e => handleVideoChange(e, item)"
/>
<el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
<el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity'
|| item.type == 'material'
"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
</div>
</div>
</div>
...
...
@@ -63,6 +63,7 @@
</div>
</div>
<ActivityModel
ref=
"activity"
@
selectActivity=
"selectActivity"
></ActivityModel>
<!-- <material-model v-if="isMaterialVisible" :isMaterialVisible.sync="isMaterialVisible" @handleMaterialConfirm="handleMaterialConfirm" @handleMaterialClose="handleMaterialClose"></material-model> -->
</div>
</template>
<
script
>
...
...
@@ -77,6 +78,7 @@ const ATT_TYPE = {
}
import
emoji
from
'@/utils/emo'
import
ActivityModel
from
'./activityModel'
// import materialModel from './materialModel'
import
Emotion
from
'./emotionWords'
import
wTextarea
from
'./tag-textarea'
import
{
utils
}
from
'glsx-common'
...
...
@@ -84,6 +86,7 @@ export default {
name
:
'WelcomeWords'
,
components
:
{
ActivityModel
,
// materialModel,
Emotion
,
wTextarea
},
...
...
@@ -92,6 +95,7 @@ export default {
return
{
loading
:
false
,
emotionStatus
:
false
,
isMaterialVisible
:
false
,
btnList
:
[
{
id
:
1
,
...
...
@@ -113,6 +117,12 @@ export default {
type
:
'nickname'
,
funName
:
'nickname'
},
// {
// id: 5,
// name: '素材',
// type: 'material',
// funName: 'material'
// },
{
id
:
4
,
name
:
'活动'
,
...
...
@@ -229,11 +239,33 @@ export default {
})
}
},
// 素材
handleMaterialConfirm
(
val
)
{
console
.
log
(
val
)
// additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板)
// objectType 对象类型(1朋友圈模板-单图文,2朋友圈模板-多图文,3朋友圈模板-文字+视频,4朋友圈模板-文字,5优惠券-商城券,6活动-权益卡使用,7活动-权益套餐,8活动-秒杀活动,10-素材)
this
.
editForm
.
object
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
this
.
editRule
.
eventContent
[
0
].
required
=
true
this
.
editForm
.
pushChannelType
=
''
this
.
previewList
=
[
{
attContent
:
val
,
additionalType
:
val
.
additionalType
}
]
this
.
handleMaterialClose
()
},
handleMaterialClose
()
{
this
.
isMaterialVisible
=
!
this
.
isMaterialVisible
},
handleFun
(
name
)
{
if
(
name
==
'nickname'
)
{
this
.
$refs
.
textContent
.
addTag
(
'@昵称'
)
}
else
if
(
name
==
'activity'
)
{
this
.
$refs
.
activity
.
init
()
}
else
if
(
name
==
'material'
)
{
this
.
handleMaterialClose
()
}
},
close
(
index
)
{
...
...
@@ -241,6 +273,7 @@ export default {
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
},
textInput
(
val
)
{
val
=
val
.
replace
(
/ /g
,
''
)
const
hasText
=
this
.
previewList
.
some
(
item
=>
item
.
attType
==
1
)
if
(
hasText
)
{
this
.
$set
(
this
.
previewList
,
0
,
{
...
...
@@ -276,35 +309,7 @@ export default {
}
}
},
insertHtmlAtCaret
(
html
)
{
var
sel
,
range
,
frag
if
(
window
.
getSelection
)
{
sel
=
window
.
getSelection
()
if
(
sel
.
getRangeAt
&&
sel
.
rangeCount
)
{
range
=
sel
.
getRangeAt
(
0
)
range
.
deleteContents
()
var
el
=
document
.
createElement
(
'span'
)
el
.
innerHTML
=
'<span contenteditable="false" class="nickname">@昵称<i class="el-icon-error"></i></span>'
// var el = document.createElement('div')
// el.innerHTML = html
frag
=
document
.
createDocumentFragment
()
var
node
var
lastNode
while
((
node
=
el
.
firstChild
))
{
lastNode
=
frag
.
appendChild
(
node
)
}
range
.
insertNode
(
frag
)
if
(
lastNode
)
{
range
=
range
.
cloneRange
()
range
.
setEndAfter
(
lastNode
)
range
.
collapse
(
true
)
sel
.
removeAllRanges
()
sel
.
addRange
(
range
)
}
}
}
},
changeInput
:
utils
.
debounce
(
function
()
{
changeInput
:
utils
.
debounce
(
function
()
{
console
.
log
(
document
.
getElementById
(
'editor'
).
childNodes
)
var
allNodes
=
document
.
getElementById
(
'editor'
).
childNodes
var
str
=
''
...
...
@@ -323,8 +328,8 @@ export default {
this
.
previewList
=
val
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
let
attContent
=
obj
.
attContent
.
replace
All
(
'[@昵称]'
,
'<wise id="1
">@昵称</wise>'
)
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
attContent
=
obj
.
attContent
.
replace
(
/
\[
@昵称
\]
/g
,
'<wise id="1" contenteditable="false
">@昵称</wise>'
)
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
...
src/router/routes.js
View file @
2ea4cbd
const
staticRoutes
=
Object
.
freeze
([{
const
staticRoutes
=
Object
.
freeze
([
{
name
:
'channel'
,
path
:
'/channel/index'
,
component
:
resolve
=>
require
([
`@/views/channel/index.vue`
],
resolve
),
meta
:
{},
},
{
meta
:
{}
},
{
name
:
'channel'
,
path
:
'/channel/store/:id/:codeUuid/:codeState'
,
component
:
resolve
=>
require
([
`@/views/channel/store.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'addCode'
,
path
:
'/channel/addCode/:id/:codeUuid'
,
component
:
resolve
=>
require
([
`@/views/channel/addCode.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'poster'
,
path
:
'/channel/poster/:id'
,
component
:
resolve
=>
require
([
`@/views/channel/poster.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'square'
,
path
:
'/square/index'
,
component
:
resolve
=>
require
([
`@/views/square/index.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'import'
,
path
:
'/square/import'
,
component
:
resolve
=>
require
([
`@/views/square/import.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'customDetail'
,
path
:
'/square/customDetail'
,
component
:
resolve
=>
require
([
`@/views/square/customDetail.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'importResult'
,
path
:
'/square/importResult/:id'
,
component
:
resolve
=>
require
([
`@/views/square/importResult.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'drainage'
,
path
:
'/square/drainage'
,
component
:
resolve
=>
require
([
`@/views/square/drainage.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'market'
,
path
:
'/market/index'
,
component
:
resolve
=>
require
([
`@/views/market/index.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'config'
,
path
:
'/market/config'
,
component
:
resolve
=>
require
([
`@/views/market/config.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'configDetail'
,
path
:
'/market/configDetail/:id?'
,
component
:
resolve
=>
require
([
`@/views/market/configDetail.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'effect'
,
path
:
'/market/effect/:id?'
,
component
:
resolve
=>
require
([
`@/views/market/effect.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'overview'
,
path
:
'/overview/index'
,
component
:
resolve
=>
require
([
`@/views/overview/index.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'friends'
,
path
:
'/friends/index/:id'
,
component
:
resolve
=>
require
([
`@/views/friends/index.vue`
],
resolve
),
meta
:
{
permissions
:
[
'新增'
]
}
}])
export
default
staticRoutes
\ No newline at end of file
}
])
export
default
staticRoutes
src/setup/qiankun.js
View file @
2ea4cbd
...
...
@@ -2,15 +2,20 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
,
GLDialog
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
GLEditor
from
'glsx-components/src/packages/Editor'
//权限按钮 (根据权限动态创建)
import
GLFull
from
'@/components/GLFull'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLDialog
)
// Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
Vue
.
component
(
'GLEditor'
,
GLEditor
)
Vue
.
component
(
'GLFull'
,
GLFull
)
// import 'glsx-components/src/theme/theme.scss'
import
'glsx-components/dist/glsx-components.css'
import
'@/assets/css/common.scss'
...
...
src/views/channel/addCode.vue
View file @
2ea4cbd
...
...
@@ -79,15 +79,16 @@
<el-switch
v-model=
"autoWelcome"
active-color=
"#5850FF"
inactive-color=
"#999999"
></el-switch>
</div>
<div
class=
"welcome-box"
v-show=
"autoWelcome"
>
<welcome-words
:eventBus=
"eventBus"
ref=
"welcome"
></welcome-words>
<!-- <welcome-words :eventBus="eventBus" ref="welcome"></welcome-words> -->
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
</div>
</div>
</div>
<GLFooter
>
<GLFooter>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<el-button
@
click=
"goback"
>
取消
</el-button>
</GLFooter>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisible = false"
type=
"warning"
content=
"当前有内容信息未保存,是否继续返回?"
:visible
.
sync=
"dialogVisible"
mode=
"small"
></GLDialog>
<select-emp
@
selectTable=
"selectTable"
ref=
"selectEmpForm"
></select-emp>
<select-tag
ref=
"selectTagForm"
@
tagSelected=
"tagSelected"
></select-tag>
</div>
...
...
@@ -95,16 +96,16 @@
<
script
>
import
{
utils
}
from
'glsx-common'
import
Vue
from
'vue'
import
selectEmp
from
'@/components/selectEmp'
import
selectTag
from
'@/components/selectTag'
import
w
elcomeWords
from
'@/components/welcome/welcomeWords.vue
'
import
w
ord
from
'@/mixins/word
'
export
default
{
mixins
:
[
word
],
name
:
'addCode'
,
components
:
{
welcomeWords
,
selectEmp
,
selectTag
},
components
:
{
selectEmp
,
selectTag
},
data
()
{
return
{
eventBus
:
new
Vue
()
,
dialogVisible
:
false
,
addCodeForm
:
{
codeName
:
''
,
codeRemark
:
''
,
...
...
@@ -164,17 +165,14 @@ export default {
})
})
if
(
this
.
editStatus
||
(
this
.
$refs
.
welcome
.
previewList
.
length
>
0
&&
!
this
.
codeId
))
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$router
.
push
(
'/channel/index'
)
})
this
.
dialogVisible
=
true
}
else
{
this
.
$router
.
push
(
'/channel/index'
)
}
},
handleSure
()
{
this
.
$router
.
push
(
'/channel/index'
)
},
removeTag
(
item
,
idx
,
index
)
{
item
.
labelList
.
splice
(
idx
,
1
)
if
(
item
.
labelList
.
length
==
0
)
{
...
...
@@ -202,7 +200,7 @@ export default {
tagSelected
(
item
)
{
this
.
tagging
=
item
},
handleSave
:
utils
.
debounce
(
function
()
{
handleSave
:
utils
.
debounce
(
function
()
{
if
(
this
.
staffInfo
.
length
==
0
)
{
this
.
staffStatus
=
true
return
...
...
@@ -296,7 +294,7 @@ export default {
this
.
previewListStart
=
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
})
})
}
,
}
// resize() {
// this.footerLeft = document.querySelector('.base-container-right').offsetLeft
// this.footerWidth = document.documentElement.clientWidth - this.footerLeft
...
...
@@ -313,11 +311,11 @@ export default {
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.channel-main-welcome
{
margin
:
20px
0px
60
px
;
margin
:
20px
0px
16
px
;
.welcome-panel
{
margin
:
10px
;
padding
:
0px
20px
20px
;
...
...
@@ -406,4 +404,4 @@ export default {
margin-bottom
:
5px
;
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/channel/components/channelList.vue
View file @
2ea4cbd
...
...
@@ -4,7 +4,7 @@
<GLButton
type=
"primary"
size=
"small"
icon=
"el-icon-add"
@
click=
"handleAddCode"
fn=
"新增活码"
>
新建渠道活码
</GLButton>
</div>
<div
class=
"form-panel scrm-box-f"
>
<GLCombiForm
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:rowNumber=
"1"
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
v-loading=
"loading"
ref=
"table"
@
refreshTable=
"handleSearch"
:searchForm=
"tableSearchForm"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<GLButton
type=
"text"
@
click=
"handleDetail(scope.scope)"
fn=
"到店咨询客户数据"
>
数据
</GLButton>
...
...
@@ -22,26 +22,49 @@
</div>
<div
slot=
"staffInfo"
slot-scope=
"scope"
>
<el-popover
trigger=
"hover"
placement=
"top"
v-if=
"staffNameSplit(scope.scope.staffName).length > 3"
>
<div
class=
"accountType-row"
v-for=
"(item, index) in staffNameSplit(scope.scope.staffName)"
:key=
"index"
>
<i
class=
"el-icon-user-solid"
></i>
<GLTitle
:content=
"item"
textLength=
"4"
></GLTitle>
</div>
<GLFull
:labelWidth=
"110"
:label=
"item"
textType=
"user"
:identi=
"
`text_$
{Math.random()
.toString()
.replace('.', '')}`
"
v-for="(item, index) in staffNameSplit(scope.scope.staffName)"
:key="index"
>
</GLFull>
<div
slot=
"reference"
class=
"name-wrapper"
>
<div
v-for=
"(item, index) in staffNameSplit(scope.scope.staffName)"
:key=
"index"
v-show=
"index
< 4
"
>
<div
class=
"accountType-row"
>
<i
class=
"el-icon-user-solid"
></i>
<span
v-if=
"index == 3 && staffNameSplit(scope.scope.staffName).length > 3"
>
{{
'...('
+
staffNameSplit
(
scope
.
scope
.
staffName
).
length
+
')'
}}
</span>
<GLTitle
:content=
"item"
textLength=
"4"
v-else
></GLTitle>
</div>
<template
v-if=
"index == 3 && staffNameSplit(scope.scope.staffName).length > 3"
>
<div
class=
"accountType-row"
>
<i
class=
"el-icon-user-solid"
></i>
<span>
{{
'...('
+
staffNameSplit
(
scope
.
scope
.
staffName
).
length
+
')'
}}
</span>
</div>
</
template
>
<GLFull
:labelWidth=
"110"
:label=
"item"
textType=
"user"
v-if=
"index < 3"
></GLFull>
</div>
</div>
</el-popover>
<div
v-for=
"(item, index) in staffNameSplit(scope.scope.staffName)"
:key=
"index"
v-else
>
<GLFull
:labelWidth=
"110"
:label=
"item"
textType=
"user"
:identi=
"
`text_${Math.random()
.toString()
.replace('.', '')}`
"
v-for=
"(item, index) in staffNameSplit(scope.scope.staffName)"
:key=
"index"
v-else
></GLFull>
<!-- <div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else>
<div class="accountType-row">
<i class="el-icon-user-solid"></i>
<GLTitle :content="item" textLength="4"></GLTitle>
</div>
</div>
</div>
-->
</div>
<div
slot=
"qrCode"
slot-scope=
"scope"
>
<el-popover
placement=
"bottom"
width=
"400"
trigger=
"click"
>
...
...
@@ -77,6 +100,7 @@
</div>
</GLTable>
</div>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisibleDel = false"
type=
"error"
content=
"是否删除?"
:visible
.
sync=
"dialogVisibleDel"
mode=
"small"
></GLDialog>
<emp-detail
ref=
"empDetailForm"
></emp-detail>
</div>
</template>
...
...
@@ -89,6 +113,8 @@ export default {
name
:
'channelList'
,
data
()
{
return
{
dialogVisibleDel
:
false
,
selectItem
:
''
,
loading
:
false
,
tableSearchForm
:
{
staffName
:
''
,
...
...
@@ -215,30 +241,28 @@ export default {
})
.
catch
(()
=>
{})
},
handleDelete
(
scope
)
{
this
.
$confirm
(
'是否删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$apis
.
channel
.
deleteChannelCode
({
id
:
scope
.
id
,
codeUuid
:
scope
.
codeUuid
,
configId
:
scope
.
configId
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
}
this
.
handleSearch
()
handleSure
()
{
const
{
id
,
codeUuid
,
configId
}
=
this
.
selectItem
this
.
$apis
.
channel
.
deleteChannelCode
({
id
,
codeUuid
,
configId
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
}
this
.
handleSearch
()
})
.
catch
(()
=>
{})
this
.
dialogVisibleDel
=
false
},
handleDelete
(
scope
)
{
this
.
dialogVisibleDel
=
true
this
.
selectItem
=
scope
},
listChannelCodeByPage
()
{
const
params
=
{
...
...
src/views/channel/components/selectChannel.vue
View file @
2ea4cbd
<
template
>
<div
class=
"square-main"
>
<
el-dialog
title=
"选择渠道"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleCancel
"
>
<
GLDialog
title=
"选择渠道"
:visible
.
sync=
"dialogVisible"
@
onOk=
"handleSelect"
@
onCancel=
"handleCancel"
mode=
"big
"
>
<div
class=
"square-tabel"
>
<div
class=
"square-tabel-select"
>
<GLTable
ref=
"table"
:hasPage=
"false"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
></GLTable>
...
...
@@ -10,7 +10,7 @@
<div
class=
"selected-panel"
>
<div
class=
"selected-item"
v-for=
"(item, index) in selectedList"
:key=
"index"
>
<div
:title=
"item.codeName"
>
<span
:style=
"
{ background: colorList[index]}">
</span>
<span
:style=
"
{ background: colorList[index]
}">
</span>
{{
item
.
codeName
}}
</div>
<img
src=
"@/assets/img/channel/del.png"
@
click=
"delTag(item)"
/>
...
...
@@ -22,7 +22,7 @@
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</
GLD
ialog>
</div>
</
template
>
...
...
@@ -104,7 +104,7 @@ export default {
this
.
dialogVisible
=
false
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
handleSelect
:
utils
.
debounce
(
function
()
{
handleSelect
:
utils
.
debounce
(
function
()
{
if
(
this
.
selectedList
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择渠道'
)
return
...
...
@@ -119,7 +119,7 @@ export default {
},
300
)
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.square-main
{
...
...
@@ -154,11 +154,11 @@ export default {
white-space
:
nowrap
;
}
span
{
vertical-align
:
middle
;
display
:
inline-block
;
width
:
12px
;
height
:
2px
;
margin-right
:
10px
;
vertical-align
:
middle
;
display
:
inline-block
;
width
:
12px
;
height
:
2px
;
margin-right
:
10px
;
}
img
{
width
:
16px
;
...
...
@@ -182,4 +182,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/channel/poster.vue
View file @
2ea4cbd
<
template
>
<div
class=
"channel-main scrm-box-f"
v-loading=
"loading"
>
<div
class=
"channel-header"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"goBack"
>
返回
</el-button>
</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
.
stop=
"handleDelete(item.id)"
>
...
...
@@ -36,7 +33,7 @@
</div>
</div>
</div>
<
el-dialog
v-loading=
"loadingDrag"
title=
"创建活码海报"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClos
e"
>
<
GLDialog
@
onOk=
"savePoster"
@
onCancel=
"dialogVisible = false"
v-loading=
"loadingDrag"
title=
"创建活码海报"
:visible
.
sync=
"dialogVisibl
e"
>
<div
class=
"poster-draggable-title"
>
拖动活码可调整活码位置
</div>
<div
class=
"poster-draggable"
>
<div
...
...
@@ -66,11 +63,11 @@
>
</vue-draggable-resizable>
</div>
</div>
<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"
type=
"primary"
@
click=
"savePoster"
>
确 定
</el-button>
</span>
</
el-d
ialog>
</span>
-->
</
GLD
ialog>
</div>
</
template
>
...
...
src/views/channel/store.vue
View file @
2ea4cbd
<
template
>
<div
class=
"channel-main scrm-box-f"
>
<div><el-button
type=
"primary"
size=
"small"
@
click=
"goback"
>
返回
</el-button></div>
<div
class=
"detail-form"
>
<el-form
:model=
"detailCodeForm"
label-width=
"120px"
>
<el-row>
...
...
@@ -34,14 +33,14 @@
<div
class=
"count-panel"
>
<div
class=
"count-panel-item"
>
<div
class=
"count-item-title"
>
今日新增客户
</div>
<div
class=
"count-item-num"
@
click=
"handleEmpDetail(detailCodeForm,'day')"
v-if=
"detailCodeForm.yesTodayAddCount"
>
{{ detailCodeForm.yesTodayAddCount }}人
</div>
<div
class=
"count-item-num"
@
click=
"handleEmpDetail(detailCodeForm,
'day')"
v-if=
"detailCodeForm.yesTodayAddCount"
>
{{ detailCodeForm.yesTodayAddCount }}人
</div>
<div
class=
"count-item-num2"
v-else
>
0人
</div>
<img
src=
"@/assets/img/channel/count3.png"
class=
"count-item-icon"
/>
</div>
<div
class=
"count-panel-item"
>
<div
class=
"count-item-title"
>
总新增客户
</div>
<div
class=
"count-item-num"
@
click=
"handleEmpDetail(detailCodeForm)"
v-if=
"detailCodeForm.newlyCount"
>
{{ detailCodeForm.newlyCount }}人
</div>
<div
class=
"count-item-num2"
v-else
>
0人
</div>
<div
class=
"count-item-num2"
v-else
>
0人
</div>
<img
src=
"@/assets/img/channel/count2.png"
class=
"count-item-icon"
/>
</div>
<div
class=
"count-panel-item"
>
...
...
@@ -51,8 +50,8 @@
<img
src=
"@/assets/img/question.png"
slot=
"reference"
class=
"count-item-question"
/>
</el-popover>
</div>
<div
class=
"count-item-num"
@
click=
"handleEmpDetail(detailCodeForm,'status')"
v-if=
"detailCodeForm.newlyKeepCount"
>
{{ detailCodeForm.newlyKeepCount }}人
</div>
<div
class=
"count-item-num2"
v-else
>
0人
</div>
<div
class=
"count-item-num"
@
click=
"handleEmpDetail(detailCodeForm,
'status')"
v-if=
"detailCodeForm.newlyKeepCount"
>
{{ detailCodeForm.newlyKeepCount }}人
</div>
<div
class=
"count-item-num2"
v-else
>
0人
</div>
<img
src=
"@/assets/img/channel/count1.png"
class=
"count-item-icon"
/>
</div>
</div>
...
...
@@ -68,17 +67,17 @@
</div>
<div
slot=
"newlyKeepCount"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope, 'status', scope.scope.dayTime)"
v-if=
"scope.scope.newlyKeepCount"
>
{{ scope.scope.newlyKeepCount }}
</div>
<div
v-else
>
0
</div>
<div
v-else
>
0
</div>
</div>
</GLTable>
<GLTable
v-show=
"activeName == 2"
@
refreshTable=
"listStaff"
:layout=
"layout"
:tableTotal=
"tableTotal"
ref=
"memberTabel"
:tableData=
"getMemberApi"
:tableParams=
"tableMemberParams"
:pageConf=
"pageMemberConf"
:hasNum=
"false"
>
<div
slot=
"newlyCount"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,'staffIds')"
v-if=
"scope.scope.newlyCount"
>
{{ scope.scope.newlyCount }}
</div>
<div
v-else
>
0
</div>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'staffIds')"
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,'statusAndStaffIds')"
v-if=
"scope.scope.newlyKeepCount"
>
{{ scope.scope.newlyKeepCount }}
</div>
<div
v-else
>
0
</div>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope,
'statusAndStaffIds')"
v-if=
"scope.scope.newlyKeepCount"
>
{{ scope.scope.newlyKeepCount }}
</div>
<div
v-else
>
0
</div>
</div>
</GLTable>
<emp-detail
ref=
"empDetailForm"
></emp-detail>
...
...
@@ -155,8 +154,8 @@ export default {
goback
()
{
this
.
$router
.
push
(
'/channel/index'
)
},
handleEmpDetail
(
scope
,
status
,
day
)
{
this
.
$refs
.
empDetailForm
.
init
(
scope
,
status
,
day
)
handleEmpDetail
(
scope
,
status
,
day
)
{
this
.
$refs
.
empDetailForm
.
init
(
scope
,
status
,
day
)
},
detailChannelCode
(
id
,
codeUuid
)
{
let
param
=
{
...
...
@@ -227,7 +226,7 @@ export default {
this
.
listStaff
()
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.link-dialog
{
...
...
@@ -401,4 +400,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/friends/index.vue
View file @
2ea4cbd
...
...
@@ -164,18 +164,11 @@
</div>
</div>
</div>
<div
v-if=
"(editStatus && !configType) || configType"
class=
"footer-panel"
:style=
"
{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<GLFooter
v-if=
"(editStatus && !configType) || configType"
>
<el-button
type=
"primary"
@
click=
"handleSave"
v-if=
"!configType"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"goback"
v-if=
"configType"
>
返回
</el-button>
<el-button
@
click=
"handleCancel"
v-if=
"!configType"
>
取消
</el-button>
</
div
>
</
GLFooter
>
<select-emp
@
selectTable=
"selectTable"
ref=
"selectEmpForm"
></select-emp>
</div>
</
template
>
...
...
@@ -351,7 +344,10 @@ export default {
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
.drainage-wrap
{
margin-bottom
:
20px
;
margin-bottom
:
16px
;
&:nth-child(2)
{
min-height
:
calc
(
100vh
-
490px
);
}
.drainage-title
{
padding-left
:
20px
;
font-size
:
16px
;
...
...
src/views/market/components/configInfo.vue
View file @
2ea4cbd
...
...
@@ -96,6 +96,10 @@
<img
src=
"@/assets/img/guestCustom/icon-applet.png"
alt=
""
/>
<span>
{{ item.attContent }}
</span>
</div>
<div
v-else-if=
"item.attType == 6"
>
<img
src=
"@/assets/img/guestCustom/icon-applet.png"
alt=
""
/>
<span>
{{ JSON.parse(item.attContent).fileName }}
</span>
</div>
<div
v-else-if=
"item.attType == 7"
>
<img
src=
"@/assets/img/guestCustom/icon-applet.png"
alt=
""
/>
<span>
{{ item.attContent.marketingName }}
</span>
...
...
@@ -149,7 +153,7 @@ export default {
},
watch
:
{
'addForm.content'
:
{
handler
:
function
()
{
handler
:
function
()
{
this
.
content
=
[]
let
str
=
this
.
addForm
.
content
let
num
=
70
...
...
@@ -185,7 +189,7 @@ export default {
deep
:
true
},
tagging
:
{
handler
:
function
()
{
handler
:
function
()
{
this
.
taggingLength
=
0
this
.
tagging
.
forEach
(
item
=>
{
this
.
taggingLength
+=
item
.
labelList
.
length
...
...
@@ -217,9 +221,10 @@ export default {
this
.
autoWelcome
=
res
.
autoWelcome
?
true
:
false
const
previewList
=
res
.
dracScrmWelcomeConfigDTOS
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
if
(
item
.
attType
==
1
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<span style="color:#5850FF">@昵称</span>'
)
if
(
item
.
attType
==
1
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<span style="color:#5850FF">@昵称</span>'
)
.
replaceAll
(
/
\n
/g
,
'<br>'
)
return
item
})
console
.
log
(
previewList
)
this
.
welcomeInfo
=
previewList
const
tagging
=
eval
(
res
.
tagging
)
const
taggingList
=
tagging
.
map
(
item
=>
{
...
...
@@ -250,11 +255,11 @@ export default {
this
.
findById
(
id
)
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.channel-main-welcome
{
margin
:
20px
0px
60
px
;
margin
:
20px
0px
16
px
;
.chanel-form-title
{
padding-left
:
20px
;
font-size
:
16px
;
...
...
@@ -699,4 +704,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/market/components/customList.vue
View file @
2ea4cbd
...
...
@@ -25,6 +25,13 @@
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
短信内容
</el-button>
</div>
</GLTable>
<GLDialog
title=
"提示"
:hasFooter=
"true"
:content=
"messageContent"
:visible
.
sync=
"dialogVisible"
mode=
"small"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"dialogVisible = false"
>
确定
</el-button>
</span>
</GLDialog>
</div>
</div>
</
template
>
...
...
@@ -36,7 +43,9 @@ export default {
data
()
{
return
{
loading
:
false
,
messageContent
:
''
,
tableSearchForm
:
{},
dialogVisible
:
false
,
tableData
:
[],
optionstatus
:
[
{
...
...
@@ -88,7 +97,8 @@ export default {
},
methods
:
{
handleDetail
(
scope
)
{
this
.
$alert
(
scope
.
content
,
{
center
:
true
})
this
.
dialogVisible
=
true
this
.
messageContent
=
scope
.
content
},
handleSearch
()
{
this
.
listChannelCodeByPage
()
...
...
@@ -131,7 +141,7 @@ export default {
this
.
listChannelCodeByPage
()
}
}
</
script
>
</
script
>
<
style
>
.el-popover
{
max-width
:
800px
;
...
...
@@ -282,4 +292,4 @@ export default {
//
top
:
7px
;
//
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/market/config.vue
View file @
2ea4cbd
...
...
@@ -193,7 +193,7 @@
<el-switch
v-model=
"autoWelcome"
:disabled=
"!editStatus"
active-color=
"#5850FF"
inactive-color=
"#999999"
></el-switch>
</div>
<div
class=
"welcome-box"
v-show=
"editStatus && autoWelcome"
>
<
welcome-words
:eventBus=
"eventBus"
ref=
"welcome"
></welcome-words
>
<
GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor
>
</div>
<div
class=
"welcome-box"
v-show=
"!editStatus && autoWelcome"
>
<div
class=
"welcome-box-contaner"
>
...
...
@@ -226,16 +226,10 @@
</div>
</div>
</div>
<div
class=
"footer-panel"
:style=
"{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<GLFooter>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
</div>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
</GLFooter>
<div
class=
"import-panel"
v-if=
"importStatus"
>
<div
class=
"import-panel-box"
>
<div
class=
"import-title"
>
操作结果
</div>
...
...
@@ -255,6 +249,7 @@
</div>
</div>
</div>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisible = false"
type=
"warning"
content=
"当前有内容信息未保存,是否继续返回?"
:visible
.
sync=
"dialogVisible"
mode=
"small"
></GLDialog>
<select-emp
ref=
"selectEmpForm"
@
selectTable=
"selectTable"
></select-emp>
<select-tag
ref=
"selectTagForm"
@
tagSelected=
"tagSelected"
></select-tag>
<screen-tag
ref=
"screenTagForm"
@
tagScreened=
"tagScreened"
></screen-tag>
...
...
@@ -266,7 +261,7 @@
<
script
>
import
Vue
from
'vue'
import
w
elcomeWords
from
'@/components/welcome/welcomeWords.vue
'
import
w
ord
from
'@/mixins/word
'
import
selectEmp
from
'@/components/selectEmp'
import
selectTag
from
'@/components/selectTag'
import
screenTag
from
'@/components/screenTag'
...
...
@@ -289,14 +284,14 @@ const validateContent = (rule, value, callback) => {
}
}
export
default
{
mixins
:
[
word
],
name
:
'config'
,
components
:
{
selectEmp
,
selectTag
,
screenTag
,
selectCrowd
,
messageModel
,
welcomeWords
messageModel
},
data
()
{
return
{
...
...
@@ -304,7 +299,6 @@ export default {
selectType
:
1
,
loading
:
false
,
welcomeInfo
:
[],
eventBus
:
new
Vue
(),
taggingLength
:
0
,
autoWelcome
:
true
,
imName
:
''
,
...
...
@@ -329,7 +323,7 @@ export default {
labeling
:
[],
crowding
:
[],
messageItem
:
{},
dialogVisible
:
tru
e
,
dialogVisible
:
fals
e
,
value
:
false
,
value1
:
false
,
dracImFollowStaffResponses
:
[],
...
...
@@ -478,16 +472,13 @@ export default {
goback
()
{
this
.
importStatus
=
false
},
handleSure
()
{
this
.
$router
.
push
(
'/market/index'
)
},
handleCancel
()
{
console
.
log
(
this
.
saveStatus
)
if
(
this
.
saveStatus
||
(
this
.
$refs
.
welcome
&&
this
.
$refs
.
welcome
.
previewList
.
length
>
0
&&
this
.
editStatus
))
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$router
.
push
(
'/market/index'
)
})
this
.
dialogVisible
=
true
}
else
{
this
.
$router
.
push
(
'/market/index'
)
}
...
...
@@ -887,13 +878,13 @@ export default {
}
}
.drainage-wrap
{
margin-bottom
:
20
px
;
margin-bottom
:
16
px
;
&:nth-child(2)
{
margin-bottom
:
20px
;
}
&
.drainage-bottom
{
margin-bottom
:
60
px
;
margin-bottom
:
16
px
;
}
.drainage-title
{
padding-left
:
20px
;
...
...
src/views/market/configDetail.vue
View file @
2ea4cbd
...
...
@@ -5,9 +5,9 @@
<el-tab-pane
label=
"客户列表"
name=
"second"
></el-tab-pane>
</el-tabs>
<component
:is=
"activeName == 'first' ? configInfo : customList"
></component>
<GLFooter>
<
!--
<
GLFooter>
<el-button
type=
"primary"
@
click=
"goback"
>
返回
</el-button>
</GLFooter>
</GLFooter>
-->
</div>
</
template
>
...
...
src/views/overview/components/messageList.vue
View file @
2ea4cbd
...
...
@@ -24,6 +24,13 @@
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
短信内容
</el-button>
</div>
</GLTable>
<GLDialog
title=
"提示"
:hasFooter=
"true"
:content=
"messageContent"
:visible
.
sync=
"dialogVisible"
mode=
"small"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"dialogVisible = false"
>
确定
</el-button>
</span>
</GLDialog>
</div>
</
template
>
...
...
@@ -36,8 +43,10 @@ export default {
},
data
()
{
return
{
messageContent
:
''
,
totalCount
:
0
,
percentage
:
0
,
dialogVisible
:
false
,
optionstatus
:
[
{
value
:
''
,
...
...
@@ -138,7 +147,8 @@ export default {
this
.
$refs
.
employeeRef
.
refreshTable
()
},
handleDetail
(
scope
)
{
this
.
$alert
(
scope
.
content
,
{
center
:
true
})
this
.
dialogVisible
=
true
this
.
messageContent
=
scope
.
content
}
},
mounted
()
{
...
...
src/views/overview/index.vue
View file @
2ea4cbd
...
...
@@ -155,7 +155,7 @@ export default {
}
}
.store-panel
{
margin
:
20
px
auto
;
margin
:
16
px
auto
;
padding
:
20px
;
display
:
flex
;
.store-panel-item
{
...
...
@@ -258,7 +258,7 @@ export default {
}
}
.statistics-main
{
margin-top
:
20
px
;
margin-top
:
16
px
;
.statistics-title
{
font-size
:
20px
;
font-weight
:
500
;
...
...
src/views/square/components/step-second.vue
View file @
2ea4cbd
...
...
@@ -27,7 +27,7 @@
</div>
</div>
</div>
<
el-dialog
title=
"提示"
:visible
.
sync=
"dialogVisible"
width=
"30%"
:before-close=
"handleClose"
top=
"30vh
"
>
<
GLDialog
@
onOk=
"handleSure"
@
onCancel=
"handleCancel"
title=
"提示"
:visible
.
sync=
"dialogVisible"
mode=
"small
"
>
<div
class=
"dialog-body"
>
<div
class=
"dialog-tips-icon"
><i
class=
"el-icon-warning"
></i></div>
<div
class=
"dialog-tips-text"
>
点击继续将开始上传数据文件
</div>
...
...
@@ -36,13 +36,13 @@
,是否继续吗?
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<
!--
<
div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSure"
>
确 定
</el-button>
</div>
</
el-d
ialog>
</div>
-->
</
GLD
ialog>
<div
class=
"loading-containner"
v-if=
"processLoading"
></div>
</div>
</
template
>
...
...
src/views/square/drainage.vue
View file @
2ea4cbd
...
...
@@ -174,7 +174,7 @@
<el-switch
:disabled=
"!editStatus"
v-model=
"autoWelcome"
active-color=
"#5850FF"
inactive-color=
"#999999"
></el-switch>
</div>
<div
class=
"welcome-box"
v-show=
"editStatus && autoWelcome"
>
<
welcome-words
:eventBus=
"eventBus"
ref=
"welcome"
></welcome-words
>
<
GLEditor
ref=
"welcome"
:form=
"'customer'"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor
>
</div>
<div
class=
"welcome-box"
v-show=
"!editStatus && autoWelcome"
>
<div
class=
"welcome-box-contaner"
>
...
...
@@ -275,13 +275,14 @@
</div>
</div>
</div>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisibleTips = false"
type=
"warning"
content=
"当前有内容信息未保存,是否继续返回?"
:visible
.
sync=
"dialogVisibleTips"
mode=
"small"
></GLDialog>
</div>
</template>
<
script
>
import
Vue
from
'vue'
import
word
from
'@/mixins/word'
import
{
utils
}
from
'glsx-common'
import
welcomeWords
from
'@/components/welcome/welcomeWords.vue'
import
selectEmp
from
'@/components/selectEmp'
import
selectTag
from
'@/components/selectTag'
import
messageModel
from
'../market/components/messageModel'
...
...
@@ -293,16 +294,17 @@ const validateTime = (rule, value, callback) => {
}
}
export
default
{
mixins
:
[
word
],
name
:
'drainage'
,
components
:
{
selectEmp
,
selectTag
,
messageModel
,
welcomeWords
messageModel
},
data
()
{
return
{
welcomeInfo
:
[],
dialogVisibleTips
:
false
,
eventBus
:
new
Vue
(),
autoWelcome
:
true
,
editStatus
:
false
,
...
...
@@ -441,17 +443,14 @@ export default {
this
.
saveStatus
=
true
}
if
(
this
.
saveStatus
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$router
.
go
(
-
1
)
})
this
.
dialogVisibleTips
=
true
}
else
{
this
.
$router
.
go
(
-
1
)
}
},
handleSure
()
{
this
.
$router
.
go
(
-
1
)
},
//开关
handleSwitch
()
{
let
params
=
{
...
...
@@ -598,7 +597,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.channel-main-welcome
{
margin
:
20px
0px
60
px
;
margin
:
20px
0px
16
px
;
.chanel-form-title
{
padding-left
:
20px
;
font-size
:
16px
;
...
...
src/views/square/import.vue
View file @
2ea4cbd
...
...
@@ -417,8 +417,8 @@ export default {
}
.squre-safe-panel
{
padding
:
40px
;
margin-top
:
2
0px
;
//
margin-bottom
:
60
px
;
margin-top
:
1
0px
;
margin-bottom
:
16
px
;
/deep/
{
.el-carousel__indicators,
.el-carousel__arrow
{
...
...
@@ -509,7 +509,6 @@ export default {
margin
:
40px
0px
;
height
:
328px
;
background
:
#ffffff
;
box-shadow
:
0px
0px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
border-radius
:
2px
;
display
:
flex
;
justify-content
:
space-between
;
...
...
src/views/square/index.vue
View file @
2ea4cbd
...
...
@@ -482,7 +482,6 @@ export default {
height
:
102px
;
margin
:
20px
0px
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
display
:
flex
;
.square-num-item
{
width
:
50%
;
...
...
@@ -516,7 +515,7 @@ export default {
}
}
.coustom-box-container
{
margin-top
:
20
px
;
margin-top
:
16
px
;
background
:
#ffffff
;
.square-title
{
height
:
55px
;
...
...
@@ -633,7 +632,7 @@ export default {
}
.square-tabel
{
padding
:
20px
;
margin-top
:
20
px
;
margin-top
:
16
px
;
}
.table-btns
a
{
color
:
#5850ff
;
...
...
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