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 289ac247
authored
Jun 21, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
朋友圈模块
1 parent
346fe863
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
19 deletions
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
vue3-lw-pc/src/config.js
vue3-lw-pc/src/views/friendCircle/components/SelectMember.vue
vue3-lw-pc/src/views/friendCircle/list.vue
vue3-lw-pc/src/views/friendCircle/publish.vue
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
View file @
289ac24
...
@@ -80,7 +80,6 @@
...
@@ -80,7 +80,6 @@
clearable
clearable
:autofocus=
"true"
:autofocus=
"true"
@
input=
"changeInfo"
@
input=
"changeInfo"
v-if=
"!detail"
/>
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
...
vue3-lw-pc/src/config.js
View file @
289ac24
...
@@ -65,7 +65,7 @@ let config = {
...
@@ -65,7 +65,7 @@ let config = {
services
:
{
services
:
{
wecom
:
'/open'
,
wecom
:
'/open'
,
// system: env.SYSTEM_API,
// system: env.SYSTEM_API,
system
:
'http://192.168.
4.168
:6180'
,
system
:
'http://192.168.
1.90
:6180'
,
common
:
'/common'
,
common
:
'/common'
,
},
},
...
...
vue3-lw-pc/src/views/friendCircle/components/SelectMember.vue
View file @
289ac24
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"lable_text"
>
选择成员来源:
</div>
<div
class=
"lable_text"
>
选择成员来源:
</div>
<div>
<div>
<div
class=
"select_unit"
>
<div
class=
"select_unit"
>
<el-button
@
click=
"dialogVisibleSelectDept = true"
:disabled=
"
isDetail"
<el-button
@
click=
"dialogVisibleSelectDept = true"
v-show=
"!
isDetail"
>
{{
selectedDeptList
.
length
?
'修改'
:
'选择'
}}
部门范围
</el-button
>
{{
selectedDeptList
.
length
?
'修改'
:
'选择'
}}
部门范围
</el-button
>
>
<!--
<el-popover
<!--
<el-popover
...
@@ -24,9 +24,10 @@
...
@@ -24,9 +24,10 @@
{{
item
.
deptName
}}
{{
item
.
deptName
}}
</el-tag>
</el-tag>
</div>
</div>
<span
class=
"tips"
v-else-if=
"isDetail"
>
未选择标签
</span>
</div>
</div>
<div
class=
"select_unit"
>
<div
class=
"select_unit"
>
<el-button
@
click=
"dialogVisibleSelectPost = true"
:disabled=
"
isDetail"
>
<el-button
@
click=
"dialogVisibleSelectPost = true"
v-show=
"!
isDetail"
>
{{
selectedPostList
.
length
?
'修改'
:
'选择'
}}
岗位
{{
selectedPostList
.
length
?
'修改'
:
'选择'
}}
岗位
</el-button>
</el-button>
<div
v-if=
"selectedPostList.length > 0"
>
<div
v-if=
"selectedPostList.length > 0"
>
...
@@ -34,6 +35,7 @@
...
@@ -34,6 +35,7 @@
item
item
}}
</el-tag>
}}
</el-tag>
</div>
</div>
<span
class=
"tips"
v-else-if=
"isDetail"
>
未选择标签
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -41,7 +43,7 @@
...
@@ -41,7 +43,7 @@
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"lable_text"
></div>
<div
class=
"lable_text"
></div>
<div
class=
"select_unit"
>
<div
class=
"select_unit"
>
<el-button
@
click=
"dialogVisibleSelectUser = true"
:disabled=
"
isDetail"
<el-button
@
click=
"dialogVisibleSelectUser = true"
v-show=
"!
isDetail"
>
{{
selectedUserList
.
length
?
'修改'
:
'选择'
}}
员工
</el-button
>
{{
selectedUserList
.
length
?
'修改'
:
'选择'
}}
员工
</el-button
>
>
<div
v-if=
"selectedUserList.length > 0"
>
<div
v-if=
"selectedUserList.length > 0"
>
...
@@ -49,13 +51,14 @@
...
@@ -49,13 +51,14 @@
{{
item
.
name
}}
{{
item
.
name
}}
</el-tag>
</el-tag>
</div>
</div>
<span
class=
"tips"
v-else-if=
"isDetail"
>
未选择标签
</span>
</div>
</div>
</div>
</div>
<!-- 选择客户标签 -->
<!-- 选择客户标签 -->
<div
class=
"flex mt10"
>
<div
class=
"flex mt10"
>
<div
class=
"lable_text"
>
选择客户标签:
</div>
<div
class=
"lable_text"
>
选择客户标签:
</div>
<div
class=
"select_unit"
>
<div
class=
"select_unit"
>
<el-button
plain
@
click=
"dialogVisibleSelectTag = true"
:disabled=
"
isDetail"
<el-button
plain
@
click=
"dialogVisibleSelectTag = true"
v-show=
"!
isDetail"
>
{{
selectedTagList
.
length
?
'修改'
:
'选择'
}}
标签
</el-button
>
{{
selectedTagList
.
length
?
'修改'
:
'选择'
}}
标签
</el-button
>
>
<div
v-if=
"selectedTagList.length > 0"
>
<div
v-if=
"selectedTagList.length > 0"
>
...
@@ -63,6 +66,7 @@
...
@@ -63,6 +66,7 @@
unit
.
name
unit
.
name
}}
</el-tag>
}}
</el-tag>
</div>
</div>
<span
class=
"tips"
v-else-if=
"isDetail"
>
未选择标签
</span>
</div>
</div>
</div>
</div>
<SelectDept
<SelectDept
...
@@ -259,6 +263,11 @@ export default {
...
@@ -259,6 +263,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.tips
{
color
:
#aaa
;
font-size
:
12px
;
line-height
:
30px
;
}
.customer-num
{
.customer-num
{
span
{
span
{
font-size
:
12px
;
font-size
:
12px
;
...
...
vue3-lw-pc/src/views/friendCircle/list.vue
View file @
289ac24
...
@@ -104,7 +104,9 @@
...
@@ -104,7 +104,9 @@
<el-table-column
show-overflow-tooltip
prop=
"finishRate"
label=
"完成率"
></el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"finishRate"
label=
"完成率"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"200"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"200"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
text
@
click=
"remind(row.id)"
v-if=
"row.status === 2"
>
提醒执行
</el-button>
<el-button
text
@
click=
"remind(row.id)"
v-if=
"row.status === 2 && row.sendType !== 0"
>
提醒执行
</el-button
>
<el-button
text
@
click=
"statistics(row)"
>
统计
</el-button>
<el-button
text
@
click=
"statistics(row)"
>
统计
</el-button>
<el-button
text
@
click=
"detailFn(row)"
>
查看
</el-button>
<el-button
text
@
click=
"detailFn(row)"
>
查看
</el-button>
<el-button
text
@
click=
"cease(row.id)"
v-if=
"row.status !== 3"
>
停止
</el-button>
<el-button
text
@
click=
"cease(row.id)"
v-if=
"row.status !== 3"
>
停止
</el-button>
...
...
vue3-lw-pc/src/views/friendCircle/publish.vue
View file @
289ac24
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
ref=
"ruleForm"
ref=
"ruleForm"
>
>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<el-form-item
label=
"任务名称:"
prop=
"name"
>
<el-form-item
label=
"任务名称:"
prop=
"name"
v-if=
"![2, 3].includes(firendType)"
>
<el-input
<el-input
v-model=
"form.name"
v-model=
"form.name"
placeholder=
"请输入任务名称"
placeholder=
"请输入任务名称"
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发送方式:"
prop=
"sendType"
>
<el-form-item
label=
"发送方式:"
prop=
"sendType"
>
<el-radio-group
v-model=
"form.sendType"
:disabled=
"!!firendId"
>
<span
v-if=
"firendType === 3"
>
个人发送
</span>
<el-radio-group
v-model=
"form.sendType"
:disabled=
"!!firendId"
v-else
>
<el-radio
:label=
"0"
<el-radio
:label=
"0"
>
企微群发
>
企微群发
<el-popover
placement=
"top"
trigger=
"hover"
>
<el-popover
placement=
"top"
trigger=
"hover"
>
...
@@ -86,7 +87,11 @@
...
@@ -86,7 +87,11 @@
>
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结束时间:"
prop=
"executeEndTime"
>
<el-form-item
label=
"结束时间:"
prop=
"executeEndTime"
v-if=
"![2, 3].includes(firendType)"
>
<div
class=
"tips"
v-if=
"!firendId"
>
<div
class=
"tips"
v-if=
"!firendId"
>
朋友圈任务可设置截止时间,则未完成的成员不允许再执行本条任务
朋友圈任务可设置截止时间,则未完成的成员不允许再执行本条任务
</div>
</div>
...
@@ -100,7 +105,7 @@
...
@@ -100,7 +105,7 @@
>
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"自动标签:"
>
<el-form-item
label=
"自动标签:"
v-if=
"![2, 3].includes(firendType)"
>
<div
class=
"tips"
>
可根据客户的点赞或评论行为分别打上对应标签
</div>
<div
class=
"tips"
>
可根据客户的点赞或评论行为分别打上对应标签
</div>
<div>
点赞自动打标签:
</div>
<div>
点赞自动打标签:
</div>
<div
v-if=
"likeTagList.length"
>
<div
v-if=
"likeTagList.length"
>
...
@@ -123,16 +128,16 @@
...
@@ -123,16 +128,16 @@
<el-button
type=
"primary"
plain
@
click=
"selectedFn2"
>
选择标签
</el-button>
<el-button
type=
"primary"
plain
@
click=
"selectedFn2"
>
选择标签
</el-button>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"朋友圈内容:"
v-if=
"[2, 3].includes(firendType)"
>
<el-form-item
label=
"朋友圈内容:"
v-if=
"[
1,
2, 3].includes(firendType)"
>
<
!-- <
el-input
<el-input
v-model=
"form.content"
v-model=
"form.content"
placeholder=
"未填写文本内容"
placeholder=
"未填写文本内容"
:disabled=
"true"
:disabled=
"true"
type=
"textarea"
type=
"textarea"
:rows=
"4"
:rows=
"4"
v-if=
"firendType === 1"
v-if=
"firendType === 1"
></el-input>
-->
></el-input>
<div
class=
"firend-box"
>
<div
class=
"firend-box"
v-else
>
<FirendContent
:list=
"friendsList"
:content=
"form.content"
/>
<FirendContent
:list=
"friendsList"
:content=
"form.content"
/>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -284,11 +289,10 @@ export default {
...
@@ -284,11 +289,10 @@ export default {
this
.
commentTagList
=
res
.
data
.
commentTagIds
?
res
.
data
.
commentTagIds
:
[]
this
.
commentTagList
=
res
.
data
.
commentTagIds
?
res
.
data
.
commentTagIds
:
[]
this
.
friendsList
=
res
.
data
.
materialList
?
res
.
data
.
materialList
:
[]
this
.
friendsList
=
res
.
data
.
materialList
?
res
.
data
.
materialList
:
[]
let
obj
=
{
let
obj
=
{
templateInfo
:
res
.
data
.
content
,
templateInfo
:
res
.
data
.
content
?
res
.
data
.
content
:
''
,
attachments
:
res
.
data
.
materialList
,
attachments
:
res
.
data
.
materialList
?
res
.
data
.
materialList
:
[]
,
}
}
this
.
baseData
=
JSON
.
parse
(
JSON
.
stringify
(
obj
))
this
.
baseData
=
JSON
.
parse
(
JSON
.
stringify
(
obj
))
console
.
log
(
291
,
this
.
baseData
)
this
.
setEditTag
()
this
.
setEditTag
()
}
}
})
})
...
@@ -438,8 +442,18 @@ export default {
...
@@ -438,8 +442,18 @@ export default {
}
else
{
}
else
{
this
.
form
.
executeTime
=
''
this
.
form
.
executeTime
=
''
}
}
if
(
this
.
form
.
executeEndTime
)
{
let
time
=
this
.
form
.
executeEndTime
.
getTime
()
let
time2
=
Date
.
now
()
if
(
time2
>
time
)
{
this
.
msgError
(
'结束时间不可早于当前日期!'
)
return
false
}
this
.
form
.
executeEndTime
=
moment
(
this
.
form
.
executeEndTime
).
format
(
'YYYY-MM-DD HH:mm'
)
this
.
form
.
executeEndTime
=
moment
(
this
.
form
.
executeEndTime
).
format
(
'YYYY-MM-DD HH:mm'
)
console
.
log
(
304
,
this
.
form
)
}
else
{
this
.
form
.
executeEndTime
=
''
}
// console.log(304, this.form)
addMoments
(
this
.
form
).
then
((
res
)
=>
{
addMoments
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
'操作成功'
)
...
...
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