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 681f902d
authored
Dec 21, 2021
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fixed
1 parent
e11cee90
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
173 additions
and
211 deletions
linkwe-ui/src/components/WelcomeContent.vue
linkwe-ui/src/views/application/groupFission.vue
linkwe-ui/src/views/application/taskGroup.vue
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
linkwe-ui/src/views/drainageCode/welcome/add.vue
linkwe-ui/src/components/WelcomeContent.vue
View file @
681f902
...
@@ -227,6 +227,10 @@
...
@@ -227,6 +227,10 @@
isSingle
:
{
isSingle
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
strType
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -257,7 +261,9 @@
...
@@ -257,7 +261,9 @@
welList
:
[],
welList
:
[],
welSelected
:
{},
welSelected
:
{},
selectedUserList
:
[],
selectedUserList
:
[],
dialogVisibleSelectUser
:
false
dialogVisibleSelectUser
:
false
,
strTemplate1
:
'%客户昵称%'
,
strTemplate2
:
'#客户昵称#'
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -316,12 +322,13 @@
...
@@ -316,12 +322,13 @@
if
(
val
)
{
if
(
val
)
{
const
textIndex
=
$textarea
.
selectionStart
const
textIndex
=
$textarea
.
selectionStart
if
(
textIndex
==
0
&&
document
.
activeElement
!=
$textarea
)
{
if
(
textIndex
==
0
&&
document
.
activeElement
!=
$textarea
)
{
this
.
form
.
welcomeMsg
+=
'%客户昵称%'
this
.
form
.
welcomeMsg
+=
this
.
strType
?
this
.
strTemplate1
:
this
.
strTemplate2
}
else
{
}
else
{
this
.
form
.
welcomeMsg
=
msg
.
slice
(
0
,
textIndex
)
+
'%客户昵称%'
+
msg
.
slice
(
textIndex
)
let
str
=
this
.
strType
?
this
.
strTemplate1
:
this
.
strTemplate2
this
.
form
.
welcomeMsg
=
msg
.
slice
(
0
,
textIndex
)
+
str
+
msg
.
slice
(
textIndex
)
}
}
}
else
{
}
else
{
this
.
form
.
welcomeMsg
=
msg
.
replace
(
/
\%
客户昵称
\%
/
,
''
)
this
.
form
.
welcomeMsg
=
this
.
strType
?
msg
.
replace
(
/
\%
客户昵称
\%
/
,
''
)
:
msg
.
replace
(
/
\#
客户昵称
\#
/
,
''
)
}
}
},
},
onChooseMaterial
(
materialType
,
rowIndex
)
{
onChooseMaterial
(
materialType
,
rowIndex
)
{
...
...
linkwe-ui/src/views/application/groupFission.vue
View file @
681f902
<
script
>
<
script
>
import
*
as
api
from
'@/api/task'
import
*
as
api
from
'@/api/task'
export
default
{
export
default
{
name
:
'Group'
,
name
:
'Group'
,
data
()
{
data
()
{
return
{
return
{
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
taskName
:
''
,
taskName
:
''
,
startTime
:
''
,
startTime
:
''
,
overTime
:
''
,
overTime
:
''
,
fissionType
:
2
fissionType
:
2
},
},
dateRange
:
[],
dateRange
:
[],
tableData
:
[],
tableData
:
[],
total
:
0
,
total
:
0
,
loading
:
false
loading
:
false
}
}
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
this
.
$store
.
dispatch
(
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
'app/setBusininessDesc'
,
`
`
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
`
`
)
)
},
methods
:
{
getList
(
data
)
{
this
.
loading
=
true
let
params
=
Object
.
assign
({},
this
.
query
,
data
)
api
.
getList
(
params
).
then
(({
rows
,
total
})
=>
{
this
.
tableData
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
},
resetForm
()
{},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`fissionDetail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'addFission'
})
},
},
toEdit
(
row
)
{
methods
:
{
this
.
$router
.
push
({
setChange
(
e
)
{
path
:
`addFission?id=
${
row
.
id
}
`
if
(
e
)
{
})
this
.
query
.
startTime
=
e
[
0
]
this
.
query
.
overTime
=
e
[
1
]
}
else
{
this
.
query
.
startTime
=
''
this
.
query
.
overTime
=
''
}
},
resetFn
()
{
this
.
query
=
{
pageNum
:
1
,
pageSize
:
10
,
taskName
:
''
,
startTime
:
''
,
overTime
:
''
,
fissionType
:
1
}
this
.
dateRange
=
[]
this
.
getList
()
},
getList
(
data
)
{
this
.
loading
=
true
let
params
=
Object
.
assign
({},
this
.
query
,
data
)
api
.
getList
(
params
).
then
(({
rows
,
total
})
=>
{
this
.
tableData
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
},
resetForm
()
{
},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`fissionDetail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'addFission'
})
},
toEdit
(
row
)
{
this
.
$router
.
push
({
path
:
`addFission?id=
${
row
.
id
}
`
})
}
}
}
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
class=
"top-search"
size=
"small"
>
ref=
"queryForm"
:inline=
"true"
:model=
"query"
class=
"top-search"
size=
"small"
>
<el-form-item
label=
"裂变名"
prop=
"taskName"
>
<el-form-item
label=
"裂变名"
prop=
"taskName"
>
<el-input
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"添加日期"
>
<el-form-item
label=
"添加日期"
>
<el-date-picker
<el-date-picker
v-model=
"dateRange"
@
change=
"setChange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
v-model=
"dateRange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
" "
>
<el-form-item
label=
" "
>
<el-button
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"getList(
{ pageNum: 1 })" :loading="loading">查询
</el-button>
v-hasPermi=
"['customerManage:customer:query']"
<el-button
@
click=
"resetFn"
>
清空
</el-button>
type=
"primary"
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
style=
"background: #FA7216;color: #FFFFFF;border-color:#FA7216"
@
click=
"newAdd()"
>
新增任务
</el-button>
@
click=
"getList(
{ pageNum: 1 })"
:loading="loading"
>查询
</el-button
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
style=
"background: #FA7216;color: #FFFFFF;border-color:#FA7216"
@
click=
"newAdd()"
>
新增任务
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
>
...
@@ -113,32 +110,12 @@ export default {
...
@@ -113,32 +110,12 @@ export default {
</el-table-column>
</el-table-column>
<el-table-column
prop=
"operation"
label=
"操作"
>
<el-table-column
prop=
"operation"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
@
click=
"toDetail(scope.row)"
v-hasPermi=
"['enterpriseWechat:view']"
size=
"medium"
type=
"text"
icon=
"el-icon-view"
></el-button>
@
click=
"toDetail(scope.row)"
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"medium"
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color:#E74E59"
></el-button>
v-hasPermi=
"['enterpriseWechat:view']"
size=
"medium"
type=
"text"
icon=
"el-icon-view"
></el-button>
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"medium"
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color:#E74E59"
></el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
</div>
</div>
</template>
</template>
...
...
linkwe-ui/src/views/application/taskGroup.vue
View file @
681f902
<
script
>
<
script
>
import
*
as
api
from
'@/api/task'
import
*
as
api
from
'@/api/task'
export
default
{
export
default
{
name
:
'Group'
,
name
:
'Group'
,
data
()
{
data
()
{
return
{
return
{
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
taskName
:
''
,
taskName
:
''
,
startTime
:
''
,
startTime
:
''
,
overTime
:
''
,
overTime
:
''
,
fissionType
:
1
fissionType
:
1
},
},
dateRange
:
[],
dateRange
:
[],
tableData
:
[],
tableData
:
[],
total
:
0
,
total
:
0
,
loading
:
false
loading
:
false
}
}
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
this
.
$store
.
dispatch
(
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
'app/setBusininessDesc'
,
`
`
<div>是通过管理员统一下发群发消息的任务,将消息推送给员工,员工点击任务按钮进行发送,将任务裂变海报以 H5 网页链接的形式发送给客户。此方式也会消耗一月四次客户群发触达的次数限制。</div>
<div>是通过管理员统一下发群发消息的任务,将消息推送给员工,员工点击任务按钮进行发送,将任务裂变海报以 H5 网页链接的形式发送给客户。此方式也会消耗一月四次客户群发触达的次数限制。</div>
`
`
)
)
},
methods
:
{
getList
(
data
)
{
this
.
loading
=
true
let
params
=
Object
.
assign
({},
this
.
query
,
data
)
api
.
getList
(
params
).
then
(({
rows
,
total
})
=>
{
this
.
tableData
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
},
resetForm
()
{},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`taskDetail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'addTask'
})
},
},
toEdit
(
row
)
{
methods
:
{
this
.
$router
.
push
({
setChange
(
e
)
{
path
:
`addTask?id=
${
row
.
id
}
`
if
(
e
)
{
})
this
.
query
.
startTime
=
e
[
0
]
this
.
query
.
overTime
=
e
[
1
]
}
else
{
this
.
query
.
startTime
=
''
this
.
query
.
overTime
=
''
}
},
resetFn
()
{
this
.
query
=
{
pageNum
:
1
,
pageSize
:
10
,
taskName
:
''
,
startTime
:
''
,
overTime
:
''
,
fissionType
:
1
}
this
.
dateRange
=
[]
this
.
getList
()
},
getList
(
data
)
{
this
.
loading
=
true
let
params
=
Object
.
assign
({},
this
.
query
,
data
)
api
.
getList
(
params
).
then
(({
rows
,
total
})
=>
{
this
.
tableData
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
},
resetForm
()
{
},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`taskDetail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'addTask'
})
},
toEdit
(
row
)
{
this
.
$router
.
push
({
path
:
`addTask?id=
${
row
.
id
}
`
})
}
}
}
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
class=
"top-search"
size=
"small"
>
ref=
"queryForm"
:inline=
"true"
:model=
"query"
class=
"top-search"
size=
"small"
>
<el-form-item
label=
"任务名"
prop=
"taskName"
>
<el-form-item
label=
"任务名"
prop=
"taskName"
>
<el-input
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"添加日期"
>
<el-form-item
label=
"添加日期"
>
<el-date-picker
<el-date-picker
v-model=
"dateRange"
@
change=
"setChange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
v-model=
"dateRange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
" "
>
<el-form-item
label=
" "
>
<el-button
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
:loading=
"loading"
@
click=
"getList(
{ pageNum: 1 })">查询
</el-button>
v-hasPermi=
"['customerManage:customer:query']"
<el-button
@
click=
"resetFn"
>
清空
</el-button>
type=
"primary"
:loading=
"loading"
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"newAdd()"
style=
"background: #FA7216;color: #FFFFFF;border-color:#FA7216"
>
新增任务
</el-button>
@
click=
"getList(
{ pageNum: 1 })"
>查询
</el-button
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"newAdd()"
style=
"background: #FA7216;color: #FFFFFF;border-color:#FA7216"
>
新增任务
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
>
...
@@ -113,32 +111,12 @@ export default {
...
@@ -113,32 +111,12 @@ export default {
</el-table-column>
</el-table-column>
<el-table-column
prop=
"operation"
label=
"操作"
width=
"120"
>
<el-table-column
prop=
"operation"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
@
click=
"toDetail(scope.row)"
v-hasPermi=
"['enterpriseWechat:view']"
size=
"medium"
type=
"text"
icon=
"el-icon-view"
></el-button>
@
click=
"toDetail(scope.row)"
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"medium"
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color:#E74E59"
></el-button>
v-hasPermi=
"['enterpriseWechat:view']"
size=
"medium"
type=
"text"
icon=
"el-icon-view"
></el-button>
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"medium"
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color:#E74E59"
></el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
</div>
</div>
</template>
</template>
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
681f902
This diff is collapsed.
Click to expand it.
linkwe-ui/src/views/drainageCode/welcome/add.vue
View file @
681f902
<
template
>
<
template
>
<div>
<div>
<welcome-content
v-if=
"show"
:isSingle=
"form.welcomeMsgTplType === '3'"
:showTemplate=
"false"
:showMember=
"form.welcomeMsgTplType === '2'"
:showMorMaterial=
"true"
:baseData=
"materialData"
@
submit=
"getWelData"
></welcome-content>
<welcome-content
v-if=
"show"
:
strType=
"form.welcomeMsgTplType === '3'"
:
isSingle=
"form.welcomeMsgTplType === '3'"
:showTemplate=
"false"
:showMember=
"form.welcomeMsgTplType === '2'"
:showMorMaterial=
"true"
:baseData=
"materialData"
@
submit=
"getWelData"
></welcome-content>
</div>
</div>
</
template
>
</
template
>
...
...
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