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 4a3f312e
authored
Nov 02, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
462b6c6d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
22 additions
and
300 deletions
src/api/modules/channel.js
src/assets/css/common.scss
src/assets/img/channel/count1.png
src/assets/img/channel/count2.png
src/components/basic-title/index.vue
src/components/draggable/vue-draggable-resizable.vue
src/components/screenTag/index.vue
src/components/selectCrowd/index.vue
src/components/selectEmp/index.vue
src/components/selectTag/index.vue
src/components/vue-draggable-resizable.vue
src/components/welcome/tag-textarea.vue
src/components/welcome/welcomeWords.vue
src/config/index.js
src/router/routes.js
src/setup/qiankun.js
src/setup/render.js
src/utils/util.js
src/api/modules/channel.js
View file @
4a3f312
...
@@ -31,11 +31,7 @@ const getFollower = params => {
...
@@ -31,11 +31,7 @@ const getFollower = params => {
const
querylabeltree
=
params
=>
{
const
querylabeltree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
sessionId
=
session
params
.
sessionId
=
session
<<<<<<<
HEAD
return
http
({
=======
return
http_tag
({
return
http_tag
({
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
url
:
'/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
...
@@ -44,11 +40,7 @@ const querylabeltree = params => {
...
@@ -44,11 +40,7 @@ const querylabeltree = params => {
}
}
const
queryCrowdtree
=
params
=>
{
const
queryCrowdtree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
<<<<<<<
HEAD
return
http
({
=======
return
http_tag
({
return
http_tag
({
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
url
:
'/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
...
...
src/assets/css/common.scss
View file @
4a3f312
...
@@ -101,34 +101,12 @@ img {
...
@@ -101,34 +101,12 @@ img {
.scrm-box-f
{
.scrm-box-f
{
background
:
#ffffff
;
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
{
.scrm-flex
{
display
:
flex
;
display
:
flex
;
}
}
.task_icon
{
position
:
relative
;
&
:
:
after
{
content
:
''
;
position
:
absolute
;
top
:
8px
;
left
:
-10px
;
width
:
6px
;
height
:
6px
;
border-radius
:
4px
;
}
}
.green-icon
{
&
:
:
after
{
background
:
#2cca74
;
}
}
.yellow-icon
{
&
:
:
after
{
background
:
#fdb757
;
}
}
::-webkit-scrollbar
{
::-webkit-scrollbar
{
/*滚动条整体样式*/
/*滚动条整体样式*/
...
@@ -170,46 +148,6 @@ img {
...
@@ -170,46 +148,6 @@ 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
;
}
.el-message--info
{
height
:
40px
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
}
.el-message
.el-icon-info
{
color
:
#5850ff
;
font-size
:
16px
;
}
.el-radio
:focus:not
(
.is-focus
)
:not
(
:active
)
:not
(
.is-disabled
)
.el-radio__inner
{
box-shadow
:
none
!
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
;
display
:
none
;
}
}
...
...
src/assets/img/channel/count1.png
View file @
4a3f312
2.93 KB
|
W:
|
H:
1.84 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/img/channel/count2.png
View file @
4a3f312
2.91 KB
|
W:
|
H:
1.95 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/basic-title/index.vue
View file @
4a3f312
...
@@ -26,10 +26,7 @@ export default {
...
@@ -26,10 +26,7 @@ export default {
},
},
filters
:
{
filters
:
{
ellipsis
(
value
,
that
)
{
ellipsis
(
value
,
that
)
{
<<<<<<<
HEAD
=======
console
.
log
(
value
,
that
)
console
.
log
(
value
,
that
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
value
.
length
>
that
.
textLength
)
{
if
(
value
.
length
>
that
.
textLength
)
{
that
.
tooltipStatus
=
true
that
.
tooltipStatus
=
true
return
value
.
slice
(
0
,
that
.
textLength
)
+
'...'
return
value
.
slice
(
0
,
that
.
textLength
)
+
'...'
...
...
src/components/draggable/vue-draggable-resizable.vue
View file @
4a3f312
This diff is collapsed.
Click to expand it.
src/components/screenTag/index.vue
View file @
4a3f312
<
template
>
<
template
>
<div
class=
"tag-main"
>
<div
class=
"tag-main"
>
<<<<<<
< HEAD
<el-dialog
bigTitle=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
=======
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div
class=
"tag-panel"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
<div
class=
"tag-title"
>
预选标签
</div>
...
...
src/components/selectCrowd/index.vue
View file @
4a3f312
...
@@ -7,11 +7,7 @@
...
@@ -7,11 +7,7 @@
-->
-->
<
template
>
<
template
>
<div>
<div>
<<<<<<
< HEAD
<GLDialog
title=
"人群筛选"
:hasFooter=
"true"
:visible
.
sync=
"crowdVisible"
mode=
"big"
>
=======
<el-dialog
:title=
"'人群筛选'"
:width=
"'1080px'"
:visible
.
sync=
"crowdVisible"
v-if=
"crowdVisible"
>
<el-dialog
:title=
"'人群筛选'"
:width=
"'1080px'"
:visible
.
sync=
"crowdVisible"
v-if=
"crowdVisible"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div
class=
"member-wrapper"
>
<div
class=
"member-wrapper"
>
<div
class=
"member-left"
>
<div
class=
"member-left"
>
<div
class=
"member-title"
>
<div
class=
"member-title"
>
...
@@ -47,11 +43,7 @@
...
@@ -47,11 +43,7 @@
<el-button
style=
"width: 68px;"
size=
"small"
@
click=
"crowdVisible = false"
>
取 消
</el-button>
<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>
<el-button
style=
"width: 68px;"
size=
"small"
type=
"primary"
@
click
.
native=
"handleConfirm"
>
确 定
</el-button>
</span>
</span>
<<<<<<
< HEAD
</GLDialog>
=======
</el-dialog>
</el-dialog>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</
template
>
</
template
>
...
@@ -105,10 +97,7 @@ export default {
...
@@ -105,10 +97,7 @@ export default {
},
},
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
<<<<<<<
HEAD
=======
// console.log(val)
// console.log(val)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
inner
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
inner
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
innerTags
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
innerTags
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
crowdVisible
=
true
this
.
crowdVisible
=
true
...
...
src/components/selectEmp/index.vue
View file @
4a3f312
<
template
>
<
template
>
<div
class=
"square-main"
v-loading=
"loading"
>
<div
class=
"square-main"
v-loading=
"loading"
>
<
GLDialog
title=
"选择跟进专员"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisibl
e"
>
<
el-dialog
title=
"选择跟进专员"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClos
e"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form-item
size=
"small"
label=
"员工"
>
<el-form-item
size=
"small"
label=
"员工"
>
<el-input
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入员工姓名"
></el-input>
<el-input
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入员工姓名"
></el-input>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click
.
native=
"handleSelect"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click
.
native=
"handleSelect"
>
确 定
</el-button>
</span>
</span>
</
GLD
ialog>
</
el-d
ialog>
</div>
</div>
</
template
>
</
template
>
...
...
src/components/selectTag/index.vue
View file @
4a3f312
<
template
>
<
template
>
<div
class=
"tag-main"
>
<div
class=
"tag-main"
>
<
GLDialog
bigTitle=
"选择标签"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisible"
mode=
"big
"
>
<
el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose
"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
<div
class=
"tag-title"
>
预选标签
</div>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</el-button>
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
</span>
</
GLD
ialog>
</
el-d
ialog>
</div>
</div>
</template>
</template>
...
@@ -216,6 +216,7 @@ export default {
...
@@ -216,6 +216,7 @@ export default {
}
}
})
})
.
filter
(
item
=>
item
)
.
filter
(
item
=>
item
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
},
//全选
//全选
...
@@ -354,6 +355,5 @@ export default {
...
@@ -354,6 +355,5 @@ export default {
}
}
.tag-selected-box
{
.tag-selected-box
{
min-height
:
200px
;
min-height
:
200px
;
overflow
:
auto
;
}
}
</
style
>
</
style
>
src/components/vue-draggable-resizable.vue
View file @
4a3f312
This diff is collapsed.
Click to expand it.
src/components/welcome/tag-textarea.vue
View file @
4a3f312
...
@@ -264,21 +264,8 @@ export default {
...
@@ -264,21 +264,8 @@ export default {
}
}
let
htm
=
target
.
innerHTML
let
htm
=
target
.
innerHTML
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
<<<<<<<
HEAD
<<<<<<<
HEAD
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
)
{
=======
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
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
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
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
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
return
`[
${
s
}
]`
})
})
...
@@ -311,21 +298,8 @@ export default {
...
@@ -311,21 +298,8 @@ export default {
let
htm
=
target
.
innerHTML
let
htm
=
target
.
innerHTML
console
.
log
(
htm
)
console
.
log
(
htm
)
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
<<<<<<<
HEAD
<<<<<<<
HEAD
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
)
{
=======
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
)
{
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
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
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
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
return
`[
${
s
}
]`
})
})
...
...
src/components/welcome/welcomeWords.vue
View file @
4a3f312
...
@@ -51,15 +51,7 @@
...
@@ -51,15 +51,7 @@
<span
v-else
>
{{ item.name }}
</span>
<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-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)"
/>
<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)"
/>
<<<<<<
< HEAD
<<<<<<<
HEAD
<
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>
=======
<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'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
<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>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -71,7 +63,6 @@
...
@@ -71,7 +63,6 @@
</div>
</div>
</div>
</div>
<ActivityModel
ref=
"activity"
@
selectActivity=
"selectActivity"
></ActivityModel>
<ActivityModel
ref=
"activity"
@
selectActivity=
"selectActivity"
></ActivityModel>
<!-- <material-model v-if="isMaterialVisible" :isMaterialVisible.sync="isMaterialVisible" @handleMaterialConfirm="handleMaterialConfirm" @handleMaterialClose="handleMaterialClose"></material-model> -->
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -86,14 +77,6 @@ const ATT_TYPE = {
...
@@ -86,14 +77,6 @@ const ATT_TYPE = {
}
}
import
emoji
from
'@/utils/emo'
import
emoji
from
'@/utils/emo'
import
ActivityModel
from
'./activityModel'
import
ActivityModel
from
'./activityModel'
<<<<<<<
HEAD
<<<<<<<
HEAD
// import materialModel from './materialModel'
=======
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// import materialModel from './materialModel'
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
import
Emotion
from
'./emotionWords'
import
Emotion
from
'./emotionWords'
import
wTextarea
from
'./tag-textarea'
import
wTextarea
from
'./tag-textarea'
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
...
@@ -101,14 +84,6 @@ export default {
...
@@ -101,14 +84,6 @@ export default {
name
:
'WelcomeWords'
,
name
:
'WelcomeWords'
,
components
:
{
components
:
{
ActivityModel
,
ActivityModel
,
<<<<<<<
HEAD
<<<<<<<
HEAD
// materialModel,
=======
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// materialModel,
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
Emotion
,
Emotion
,
wTextarea
wTextarea
},
},
...
@@ -117,14 +92,6 @@ export default {
...
@@ -117,14 +92,6 @@ export default {
return
{
return
{
loading
:
false
,
loading
:
false
,
emotionStatus
:
false
,
emotionStatus
:
false
,
<<<<<<<
HEAD
<<<<<<<
HEAD
isMaterialVisible
:
false
,
=======
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
isMaterialVisible
:
false
,
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
btnList
:
[
btnList
:
[
{
{
id
:
1
,
id
:
1
,
...
@@ -146,12 +113,6 @@ export default {
...
@@ -146,12 +113,6 @@ export default {
type
:
'nickname'
,
type
:
'nickname'
,
funName
:
'nickname'
funName
:
'nickname'
},
},
// {
// id: 5,
// name: '素材',
// type: 'material',
// funName: 'material'
// },
{
{
id
:
4
,
id
:
4
,
name
:
'活动'
,
name
:
'活动'
,
...
@@ -268,33 +229,11 @@ export default {
...
@@ -268,33 +229,11 @@ 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
)
{
handleFun
(
name
)
{
if
(
name
==
'nickname'
)
{
if
(
name
==
'nickname'
)
{
this
.
$refs
.
textContent
.
addTag
(
'@昵称'
)
this
.
$refs
.
textContent
.
addTag
(
'@昵称'
)
}
else
if
(
name
==
'activity'
)
{
}
else
if
(
name
==
'activity'
)
{
this
.
$refs
.
activity
.
init
()
this
.
$refs
.
activity
.
init
()
}
else
if
(
name
==
'material'
)
{
this
.
handleMaterialClose
()
}
}
},
},
close
(
index
)
{
close
(
index
)
{
...
@@ -302,7 +241,6 @@ export default {
...
@@ -302,7 +241,6 @@ export default {
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
},
},
textInput
(
val
)
{
textInput
(
val
)
{
val
=
val
.
replace
(
/ /g
,
''
)
const
hasText
=
this
.
previewList
.
some
(
item
=>
item
.
attType
==
1
)
const
hasText
=
this
.
previewList
.
some
(
item
=>
item
.
attType
==
1
)
if
(
hasText
)
{
if
(
hasText
)
{
this
.
$set
(
this
.
previewList
,
0
,
{
this
.
$set
(
this
.
previewList
,
0
,
{
...
@@ -338,8 +276,6 @@ export default {
...
@@ -338,8 +276,6 @@ export default {
}
}
}
}
},
},
<<<<<<<
HEAD
=======
insertHtmlAtCaret
(
html
)
{
insertHtmlAtCaret
(
html
)
{
var
sel
,
range
,
frag
var
sel
,
range
,
frag
if
(
window
.
getSelection
)
{
if
(
window
.
getSelection
)
{
...
@@ -368,8 +304,7 @@ export default {
...
@@ -368,8 +304,7 @@ export default {
}
}
}
}
},
},
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
changeInput
:
utils
.
debounce
(
function
()
{
changeInput
:
utils
.
debounce
(
function
()
{
console
.
log
(
document
.
getElementById
(
'editor'
).
childNodes
)
console
.
log
(
document
.
getElementById
(
'editor'
).
childNodes
)
var
allNodes
=
document
.
getElementById
(
'editor'
).
childNodes
var
allNodes
=
document
.
getElementById
(
'editor'
).
childNodes
var
str
=
''
var
str
=
''
...
@@ -388,17 +323,8 @@ export default {
...
@@ -388,17 +323,8 @@ export default {
this
.
previewList
=
val
this
.
previewList
=
val
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
<<<<<<<
HEAD
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
attContent
=
obj
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<wise id="1">@昵称</wise>'
)
let
attContent
=
obj
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<wise id="1">@昵称</wise>'
)
<<<<<<<
HEAD
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
...
src/config/index.js
View file @
4a3f312
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version:
* @version:
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditors:
limi
n
* @LastEditTime: 202
2-10-26 15:54:49
* @LastEditTime: 202
1-09-07 14:38:52
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
// let request = require('@/http/request.js')
...
@@ -17,13 +17,8 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -17,13 +17,8 @@ export const fetchConfig = function(isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
return
Promise
.
resolve
(
cfg
)
}
}
<<<<<<<
HEAD
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
=======
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/router/routes.js
View file @
4a3f312
const
staticRoutes
=
Object
.
freeze
([
const
staticRoutes
=
Object
.
freeze
([{
{
name
:
'channel'
,
name
:
'channel'
,
path
:
'/channel/index'
,
path
:
'/channel/index'
,
component
:
resolve
=>
require
([
`@/views/channel/index.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/channel/index.vue`
],
resolve
),
meta
:
{}
meta
:
{},
},
},
{
{
name
:
'channel'
,
name
:
'channel'
,
path
:
'/channel/store/:id/:codeUuid/:codeState'
,
path
:
'/channel/store/:id/:codeUuid/:codeState'
,
component
:
resolve
=>
require
([
`@/views/channel/store.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/channel/store.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'addCode'
,
name
:
'addCode'
,
path
:
'/channel/addCode/:id/:codeUuid'
,
path
:
'/channel/addCode/:id/:codeUuid'
,
component
:
resolve
=>
require
([
`@/views/channel/addCode.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/channel/addCode.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'poster'
,
name
:
'poster'
,
path
:
'/channel/poster/:id'
,
path
:
'/channel/poster/:id'
,
component
:
resolve
=>
require
([
`@/views/channel/poster.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/channel/poster.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'square'
,
name
:
'square'
,
path
:
'/square/index'
,
path
:
'/square/index'
,
component
:
resolve
=>
require
([
`@/views/square/index.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/square/index.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'import'
,
name
:
'import'
,
path
:
'/square/import'
,
path
:
'/square/import'
,
component
:
resolve
=>
require
([
`@/views/square/import.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/square/import.vue`
],
resolve
),
meta
:
{}
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'customDetail'
,
name
:
'customDetail'
,
path
:
'/square/customDetail'
,
path
:
'/square/customDetail'
,
component
:
resolve
=>
require
([
`@/views/square/customDetail.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/square/customDetail.vue`
],
resolve
),
meta
:
{}
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'importResult'
,
name
:
'importResult'
,
path
:
'/square/importResult/:id'
,
path
:
'/square/importResult/:id'
,
component
:
resolve
=>
require
([
`@/views/square/importResult.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/square/importResult.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'drainage'
,
name
:
'drainage'
,
path
:
'/square/drainage'
,
path
:
'/square/drainage'
,
component
:
resolve
=>
require
([
`@/views/square/drainage.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/square/drainage.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'market'
,
name
:
'market'
,
path
:
'/market/index'
,
path
:
'/market/index'
,
component
:
resolve
=>
require
([
`@/views/market/index.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/market/index.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'config'
,
name
:
'config'
,
path
:
'/market/config'
,
path
:
'/market/config'
,
component
:
resolve
=>
require
([
`@/views/market/config.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/market/config.vue`
],
resolve
),
meta
:
{}
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'configDetail'
,
name
:
'configDetail'
,
path
:
'/market/configDetail/:id?'
,
path
:
'/market/configDetail/:id?'
,
component
:
resolve
=>
require
([
`@/views/market/configDetail.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/market/configDetail.vue`
],
resolve
),
meta
:
{}
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'effect'
,
name
:
'effect'
,
path
:
'/market/effect/:id?'
,
path
:
'/market/effect/:id?'
,
component
:
resolve
=>
require
([
`@/views/market/effect.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/market/effect.vue`
],
resolve
),
meta
:
{}
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'overview'
,
name
:
'overview'
,
path
:
'/overview/index'
,
path
:
'/overview/index'
,
component
:
resolve
=>
require
([
`@/views/overview/index.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/overview/index.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'friends'
,
name
:
'friends'
,
path
:
'/friends/index/:id'
,
path
:
'/friends/index/:id'
,
component
:
resolve
=>
require
([
`@/views/friends/index.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/friends/index.vue`
],
resolve
),
meta
:
{
permissions
:
[
'新增'
]
}
meta
:
{
permissions
:
[
'新增'
]
}
}
}])
])
export
default
staticRoutes
export
default
staticRoutes
\ No newline at end of file
\ No newline at end of file
src/setup/qiankun.js
View file @
4a3f312
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-08-30 10:21:19
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-28 15:21:03
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
// import { message } from '@/plugins/element.js'
// import { message } from '@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
<<<<<<<
HEAD
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
,
GLDialog
,
GLTableButton
,
GLTabs
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
GLEditor
from
'glsx-components/src/packages/Editor'
//权限按钮 (根据权限动态创建)
=======
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
collectForm
from
'@/components/collectForm'
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
import
GLFull
from
'@/components/GLFull'
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLCombiForm
)
<<<<<<<
HEAD
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLTableButton
)
// Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index'
Vue
.
component
(
'GLEditor'
,
GLEditor
)
Vue
.
component
(
'GLFull'
,
GLFull
)
Vue
.
component
(
'GLTabs'
,
GLTabs
)
=======
Vue
.
component
(
'GLFull'
,
GLFull
)
Vue
.
component
(
collectForm
.
name
,
collectForm
)
// import GLTable from '@/components/glsx-table/index'
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
// Vue.component('GLTable', GLTable)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
// import 'glsx-components/src/theme/theme.scss'
// import 'glsx-components/src/theme/theme.scss'
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
import
'@/assets/css/common.scss'
import
'@/assets/css/common.scss'
...
@@ -51,10 +23,6 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
...
@@ -51,10 +23,6 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
<<<<<<<
HEAD
=======
Vue
.
prototype
.
$tracker
=
common
.
tracker
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
:
request_tag
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
:
request_tag
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
...
...
src/setup/render.js
View file @
4a3f312
...
@@ -17,19 +17,6 @@ const render = (base, routes) => {
...
@@ -17,19 +17,6 @@ const render = (base, routes) => {
routes
,
routes
,
mode
:
'history'
mode
:
'history'
})
})
<<<<<<<
HEAD
=======
// router.beforeEach((to, from, next) => {
// const pageName = to.meta.title
// Vue.prototype.$tracker.track(
// {
// pageName
// },
// 'pv'
// )
// next()
// })
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
router
.
afterEach
(()
=>
{
router
.
afterEach
(()
=>
{
document
.
querySelector
(
'#app'
).
scrollTop
=
0
document
.
querySelector
(
'#app'
).
scrollTop
=
0
})
})
...
...
src/utils/util.js
View file @
4a3f312
...
@@ -110,10 +110,6 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
...
@@ -110,10 +110,6 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
a
.
href
=
url
// 将生成的URL设置为a.href属性
a
.
href
=
url
// 将生成的URL设置为a.href属性
a
.
dispatchEvent
(
event
)
// 触发a的单击事件
a
.
dispatchEvent
(
event
)
// 触发a的单击事件
}
}
<<<<<<<
HEAD
image
.
src
=
imgsrc
.
replace
(
/https
?
:/
,
''
)
=======
image
.
src
=
imgsrc
image
.
src
=
imgsrc
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
export
default
util
export
default
util
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