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 c65873d0
authored
Jun 19, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
朋友圈模块
1 parent
5a248ec9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
11 deletions
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/index.vue
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
View file @
c65873d
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
<el-cascader
<el-cascader
v-model=
"talkForm.categoryId"
v-model=
"talkForm.categoryId"
:options=
"treeData[0].children"
:options=
"treeData[0].children"
:props=
"groupProps"
></el-cascader>
:props=
"groupProps"
></el-cascader>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"话术标题"
label=
"话术标题"
...
@@ -111,7 +112,8 @@
...
@@ -111,7 +112,8 @@
'后重新尝试'
'后重新尝试'
"
"
placement=
"top-start"
placement=
"top-start"
:disabled=
"talkList.length < maxlength"
>
:disabled=
"talkList.length < maxlength"
>
<
template
#
reference
>
<
template
#
reference
>
<el-dropdown
<el-dropdown
@
command=
"moveGroup"
@
command=
"moveGroup"
...
@@ -166,12 +168,11 @@
...
@@ -166,12 +168,11 @@
'后重新尝试'
'后重新尝试'
"
"
placement=
"top-start"
placement=
"top-start"
:disabled=
"talkList.length < maxlength"
>
:disabled=
"talkList.length < maxlength"
>
<
template
#
reference
>
<
template
#
reference
>
<div
class=
"ml20"
>
<div
class=
"ml20"
>
<el-button
<el-button
@
click=
"choseCenter"
:disabled=
"talkList.length >= maxlength"
>
@
click=
"choseCenter"
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
>
从素材中心选择
从素材中心选择
</el-button>
</el-button>
</div>
</div>
...
@@ -228,7 +229,8 @@
...
@@ -228,7 +229,8 @@
@
dialogClose=
"dialogClose"
@
dialogClose=
"dialogClose"
:materialTalkList=
"talkList"
:materialTalkList=
"talkList"
:moduleType=
"moduleType"
:moduleType=
"moduleType"
:maxlength=
"maxlength"
/>
:maxlength=
"maxlength"
/>
<!-- 模板库 -->
<!-- 模板库 -->
<el-dialog
<el-dialog
:title=
"otherType === 2 ? '选择群发模板' : '选择欢迎语模板'"
:title=
"otherType === 2 ? '选择群发模板' : '选择欢迎语模板'"
...
@@ -236,7 +238,8 @@
...
@@ -236,7 +238,8 @@
width=
"60%"
width=
"60%"
append-to-body
append-to-body
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
v-if=
"welcomVisible"
>
v-if=
"welcomVisible"
>
<TemplateLibrary
@
changeObj=
"changeObj"
:isGroup=
"otherType === 2"
/>
<TemplateLibrary
@
changeObj=
"changeObj"
:isGroup=
"otherType === 2"
/>
<
template
#
footer
>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<div
class=
"dialog-footer"
>
...
@@ -261,7 +264,8 @@
...
@@ -261,7 +264,8 @@
:defaultValues=
"selectedUserList"
:defaultValues=
"selectedUserList"
v-model:visible=
"dialogVisibleSelectUser"
v-model:visible=
"dialogVisibleSelectUser"
title=
"选择使用员工"
title=
"选择使用员工"
@
success=
"selectedUser"
></SelectUser>
@
success=
"selectedUser"
></SelectUser>
</div>
</div>
</template>
</template>
...
@@ -589,8 +593,23 @@ export default {
...
@@ -589,8 +593,23 @@ export default {
},
},
getItemArry
(
val
,
length
)
{
getItemArry
(
val
,
length
)
{
this
.
talkList
=
this
.
talkList
.
concat
(
val
)
this
.
talkList
=
this
.
talkList
.
concat
(
val
)
if
(
this
.
otherType
===
3
)
{
if
(
this
.
otherType
===
3
)
{
this
.
maxlength
=
length
// 朋友圈模块需要控制只能选择最多9个图片或者1个其他类型的文件
let
img
=
0
let
other
=
0
this
.
talkList
.
forEach
((
item
)
=>
{
if
(
item
.
mediaType
===
'0'
)
{
img
++
}
else
{
other
++
}
})
if
(
img
>
1
)
{
this
.
maxlength
=
9
}
else
if
(
other
===
1
)
{
this
.
maxlength
=
1
}
if
(
this
.
maxlength
===
9
)
{
if
(
this
.
maxlength
===
9
)
{
this
.
fontType
=
'图片类型的附件'
this
.
fontType
=
'图片类型的附件'
}
else
{
}
else
{
...
...
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/index.vue
View file @
c65873d
...
@@ -283,7 +283,12 @@ export default {
...
@@ -283,7 +283,12 @@ export default {
},
},
centerSubmit
()
{
centerSubmit
()
{
if
(
this
.
ids
.
length
+
this
.
talkListLength
>
this
.
maxlength2
)
{
if
(
this
.
ids
.
length
+
this
.
talkListLength
>
this
.
maxlength2
)
{
this
.
$message
.
error
(
'最多新建或选择'
+
this
.
maxlength2
+
'个素材'
)
if
(
this
.
isFriends
)
{
this
.
$message
.
error
(
'除图片素材可选9条数据,其他类型仅可选择一条数据,且只能选择一种类型'
)
}
else
{
this
.
$message
.
error
(
'最多新建或选择'
+
this
.
maxlength2
+
'个素材'
)
}
return
return
}
else
{
}
else
{
this
.
dialogVisibel
=
false
this
.
dialogVisibel
=
false
...
...
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