Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6a7cf74f
authored
Nov 06, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'vue3-master' into xxj-23.10.16-老客拉群优化-open
2 parents
284cc12c
e0bfacb7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
35 deletions
vue3-lw-pc/src/components/MessageContentForm.vue
vue3-lw-pc/src/components/RequestChartTable.vue
vue3-lw-pc/src/components/SelectTag.vue
vue3-lw-pc/src/components/common/QuillEditor.vue
vue3-lw-pc/src/views/communityOperating/newCustomer/statistics.vue
vue3-lw-pc/src/views/contentCenter/components/MaPage.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/articleAdd.vue
vue3-lw-pc/src/components/MessageContentForm.vue
View file @
6a7cf74
...
@@ -266,11 +266,7 @@
...
@@ -266,11 +266,7 @@
show-word-limit
></el-input>
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<!-- 富文本content -->
<!-- 富文本content -->
<DefineQuillEditor
<QuillEditor
style=
"margin: 10px 10px 0"
v-model=
"form.content"
ref=
"myQuillEditor"
></QuillEditor>
style=
"margin: 10px 10px 0"
:value=
"form.content"
@
change=
"getContent"
ref=
"myQuillEditor"
></DefineQuillEditor>
</
template
>
</
template
>
<!-- 海报 -->
<!-- 海报 -->
<
template
v-else-if=
"type === '5'"
>
<
template
v-else-if=
"type === '5'"
>
...
@@ -289,7 +285,7 @@
...
@@ -289,7 +285,7 @@
<
script
>
<
script
>
import
PosterAdd
from
'@/views/contentCenter/components/PosterAdd.vue'
import
PosterAdd
from
'@/views/contentCenter/components/PosterAdd.vue'
import
Define
QuillEditor
from
'@/components/common/QuillEditor.vue'
import
QuillEditor
from
'@/components/common/QuillEditor.vue'
import
{
add
,
update
}
from
'@/api/material'
import
{
add
,
update
}
from
'@/api/material'
var
validateHtml
=
(
rule
,
value
,
callback
)
=>
{
var
validateHtml
=
(
rule
,
value
,
callback
)
=>
{
if
(
/
\.
html$/gi
.
test
(
value
))
{
if
(
/
\.
html$/gi
.
test
(
value
))
{
...
@@ -309,7 +305,7 @@ export default {
...
@@ -309,7 +305,7 @@ export default {
name
:
'message-content-form'
,
name
:
'message-content-form'
,
components
:
{
components
:
{
PosterAdd
,
PosterAdd
,
Define
QuillEditor
,
QuillEditor
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -451,9 +447,6 @@ export default {
...
@@ -451,9 +447,6 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
getContent
(
con
)
{
this
.
form
.
content
=
con
},
getPicUrl
(
val
)
{
getPicUrl
(
val
)
{
this
.
form
.
coverUrl
=
val
this
.
form
.
coverUrl
=
val
},
},
...
...
vue3-lw-pc/src/components/RequestChartTable.vue
View file @
6a7cf74
...
@@ -173,7 +173,7 @@ export default {
...
@@ -173,7 +173,7 @@ export default {
<slot
:data=
"data"
></slot>
<slot
:data=
"data"
></slot>
<pagination
<pagination
style=
"
bottom: 0;
margin-bottom: -20px"
style=
"margin-bottom: -20px"
:total=
"total"
:total=
"total"
v-model:page=
"query.pageNum"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
v-model:limit=
"query.pageSize"
...
...
vue3-lw-pc/src/components/SelectTag.vue
View file @
6a7cf74
...
@@ -15,7 +15,7 @@ export default {
...
@@ -15,7 +15,7 @@ export default {
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'选择标签
'
,
// default: '
',
},
},
// "标签分组类型(1:客户标签;2:群标签)"
// "标签分组类型(1:客户标签;2:群标签)"
type
:
{
type
:
{
...
@@ -78,7 +78,10 @@ export default {
...
@@ -78,7 +78,10 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<el-dialog
:title=
"title"
v-model=
"Pvisible"
:destroy-on-close=
"destroyOnClose"
>
<el-dialog
:title=
"title || `选择$
{type == 1 ? '客户' : '客群'}标签`"
v-model="Pvisible"
:destroy-on-close="destroyOnClose">
<div>
<div>
<SelectTag1
:type=
"type"
:isSingle=
"isSingle"
v-model:selected=
"selectedList"
></SelectTag1>
<SelectTag1
:type=
"type"
:isSingle=
"isSingle"
v-model:selected=
"selectedList"
></SelectTag1>
<slot></slot>
<slot></slot>
...
...
vue3-lw-pc/src/components/common/QuillEditor.vue
View file @
6a7cf74
...
@@ -19,14 +19,17 @@ import SelectEmoji from '@/components/SelectEmoji'
...
@@ -19,14 +19,17 @@ import SelectEmoji from '@/components/SelectEmoji'
export
default
{
export
default
{
components
:
{
QuillEditor
,
SelectEmoji
},
components
:
{
QuillEditor
,
SelectEmoji
},
props
:
{
props
:
{
v
alue
:
{
modelV
alue
:
{
type
:
String
,
type
:
String
,
},
},
},
},
emits
:
[
'
chang
e'
],
emits
:
[
'
update:modelValu
e'
],
watch
:
{
watch
:
{
value
(
val
)
{
modelValue
:
{
this
.
content
=
val
immediate
:
true
,
handler
(
val
)
{
this
.
content
=
val
},
},
},
imgUrl
(
val
)
{
imgUrl
(
val
)
{
let
quill
=
this
.
$refs
.
quill
.
getQuill
()
let
quill
=
this
.
$refs
.
quill
.
getQuill
()
...
@@ -89,7 +92,7 @@ export default {
...
@@ -89,7 +92,7 @@ export default {
},
},
methods
:
{
methods
:
{
onEditorChange
()
{
onEditorChange
()
{
this
.
$emit
(
'
chang
e'
,
this
.
content
)
this
.
$emit
(
'
update:modelValu
e'
,
this
.
content
)
},
},
onProgress
(
percent
)
{
onProgress
(
percent
)
{
this
.
uploadLoading
=
percent
>
0
&&
percent
<
100
this
.
uploadLoading
=
percent
>
0
&&
percent
<
100
...
...
vue3-lw-pc/src/views/communityOperating/newCustomer/statistics.vue
View file @
6a7cf74
...
@@ -69,7 +69,13 @@
...
@@ -69,7 +69,13 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"groupName"
label=
"进入客群"
>
<el-table-column
align=
"center"
prop=
"groupName"
label=
"进入客群"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<div
class=
"g-color cp"
@
click=
";(externalUserid = row.externalUserid), (dialogVisible = true)"
>
<div
class=
"g-color cp"
@
click=
"
;(externalUserid = row.externalUserid),
(dialogVisible = true),
$refs.RequestChartTableDialog?.getList()
"
>
{{
row
.
joinGroupNumber
}}
{{
row
.
joinGroupNumber
}}
</div>
</div>
</
template
>
</
template
>
...
@@ -94,8 +100,8 @@
...
@@ -94,8 +100,8 @@
<el-dialog
title=
"进入客群"
v-model=
"dialogVisible"
:close-on-click-modal=
"false"
>
<el-dialog
title=
"进入客群"
v-model=
"dialogVisible"
:close-on-click-modal=
"false"
>
<RequestChartTable
<RequestChartTable
ref=
"
importRecord
"
ref=
"
RequestChartTableDialog
"
style=
"padding: 0"
style=
"padding: 0
0 20px 0
"
:request=
"
:request=
"
(query) => (
(query) => (
(query.id = $route.query.id), (query.externalUserid = externalUserid), api.getCustomerToGroupList(query)
(query.id = $route.query.id), (query.externalUserid = externalUserid), api.getCustomerToGroupList(query)
...
...
vue3-lw-pc/src/views/contentCenter/components/MaPage.vue
View file @
6a7cf74
...
@@ -901,11 +901,7 @@ export default {
...
@@ -901,11 +901,7 @@ export default {
<
template
v-else-if=
"type === '1'"
>
<
template
v-else-if=
"type === '1'"
>
<el-form-item
label=
"语音"
prop=
"materialUrl"
>
<el-form-item
label=
"语音"
prop=
"materialUrl"
>
<Voice
v-if=
"form.materialUrl"
:amrUrl=
"form.materialUrl"
></Voice>
<Voice
v-if=
"form.materialUrl"
:amrUrl=
"form.materialUrl"
></Voice>
<Upload
<Upload
v-model:fileUrl=
"form.materialUrl"
:type=
"type"
:format=
"audioType"
>
v-model:fileUrl=
"form.materialUrl"
v-model:fileName=
"form.materialName"
:type=
"type"
:format=
"audioType"
>
<template
#
tip
><div>
只能上传amr格式的语音文件。单个文件大小不超过2M,时长不超过1分钟
</div></
template
>
<template
#
tip
><div>
只能上传amr格式的语音文件。单个文件大小不超过2M,时长不超过1分钟
</div></
template
>
</Upload>
</Upload>
</el-form-item>
</el-form-item>
...
@@ -935,7 +931,6 @@ export default {
...
@@ -935,7 +931,6 @@ export default {
<Upload
<Upload
v-if=
"dialogVisible"
v-if=
"dialogVisible"
v-model:fileUrl=
"form.materialUrl"
v-model:fileUrl=
"form.materialUrl"
v-model:fileName=
"form.materialName"
:format=
"['mp4', 'mov']"
:format=
"['mp4', 'mov']"
@
getPicUrl=
"getPicUrl"
@
getPicUrl=
"getPicUrl"
:type=
"type"
>
:type=
"type"
>
...
@@ -971,7 +966,6 @@ export default {
...
@@ -971,7 +966,6 @@ export default {
<Upload
<Upload
v-if=
"dialogVisible"
v-if=
"dialogVisible"
v-model:fileUrl=
"form.materialUrl"
v-model:fileUrl=
"form.materialUrl"
v-model:fileName=
"form.materialName"
:type=
"type"
:type=
"type"
:format=
"['doc', 'docx', 'pdf', 'ppt', 'pptx', 'pps', 'pptsx']"
>
:format=
"['doc', 'docx', 'pdf', 'ppt', 'pptx', 'pps', 'pptsx']"
>
<template
#
tip
><div>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div></
template
>
<template
#
tip
><div>
支持pdf/ppt/word文件,单个文件大小不超过50M
</div></
template
>
...
...
vue3-lw-pc/src/views/contentCenter/trackMaterial/articleAdd.vue
View file @
6a7cf74
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<el-col
:span=
"18"
class=
"g-card"
style=
"margin-right: 16px; margin-top: 10px"
>
<el-col
:span=
"18"
class=
"g-card"
style=
"margin-right: 16px; margin-top: 10px"
>
<el-form-item
label-width=
"0px"
>
<el-form-item
label-width=
"0px"
>
<!-- 富文本content -->
<!-- 富文本content -->
<
!--
<quill-editor
v-model=
"form.content"
ref=
"myQuillEditor"
></quill-editor>
--
>
<
QuillEditor
v-model=
"form.content"
ref=
"myQuillEditor"
></QuillEditor
>
<
DefineQuillEditor
:value=
"form.content"
@
change=
"getContent"
ref=
"myQuillEditor"
></DefineQuillEditor
>
<
!--
<DefineQuillEditor
:value=
"form.content"
@
change=
"getContent"
ref=
"myQuillEditor"
></DefineQuillEditor>
--
>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
class=
"g-card"
>
<el-col
:span=
"6"
class=
"g-card"
>
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
</template>
</template>
<
script
>
<
script
>
import
Define
QuillEditor
from
'@/components/common/QuillEditor.vue'
import
QuillEditor
from
'@/components/common/QuillEditor.vue'
import
{
getTree
,
add
,
update
,
getList
}
from
'@/api/material'
import
{
getTree
,
add
,
update
,
getList
}
from
'@/api/material'
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
// import * as Quill from 'quill'
// import * as Quill from 'quill'
export
default
{
export
default
{
components
:
{
Define
QuillEditor
,
PreviewInPhone
},
components
:
{
QuillEditor
,
PreviewInPhone
},
data
()
{
data
()
{
return
{
return
{
form
:
{},
// 素材表单
form
:
{},
// 素材表单
...
@@ -116,9 +116,6 @@ export default {
...
@@ -116,9 +116,6 @@ export default {
// Quill.register(Align, true)
// Quill.register(Align, true)
},
},
methods
:
{
methods
:
{
getContent
(
con
)
{
this
.
form
.
content
=
con
},
preview
()
{
preview
()
{
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
mobForm
=
[]
this
.
mobForm
=
[]
...
...
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