Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 42455ee0
authored
Sep 07, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit:外呼短信支持编辑
1 parent
b191cc0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
13 deletions
src/api/modules/outbound.js
src/views/outbound/index.vue
src/api/modules/outbound.js
View file @
42455ee
...
...
@@ -143,4 +143,16 @@ const getOutBoundtaskMessage = params => {
returnAll
:
true
})
}
export
default
{
getOutBoundtaskMessage
,
getTaskList
,
getStatusStatistics
,
setOutBoundNum
,
createExecuteTask
,
getRobotList
,
getCallerList
,
taskbaseDetails
,
getphoneStatusList
,
downloadPhoneList
,
updateStatus
,
updatePhoneStatus
,
getOutBoundNum
}
// 修改外呼任务短信内容
const
updateOutBoundtaskMessage
=
params
=>
{
params
.
method
=
'entmicro.api.outbound.task.message.detail.update'
return
http
({
url
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
updateOutBoundtaskMessage
,
getOutBoundtaskMessage
,
getTaskList
,
getStatusStatistics
,
setOutBoundNum
,
createExecuteTask
,
getRobotList
,
getCallerList
,
taskbaseDetails
,
getphoneStatusList
,
downloadPhoneList
,
updateStatus
,
updatePhoneStatus
,
getOutBoundNum
}
src/views/outbound/index.vue
View file @
42455ee
...
...
@@ -42,7 +42,7 @@
</
template
>
<
template
slot=
"excelName"
slot-scope=
"scope"
>
<div
class=
"flex"
>
<el-tooltip
v-if=
"scope.scope.excelName.length >= Math.ceil((320 - 36) / 14)"
effect=
"light"
placement=
"top"
popper-class=
"base-popper"
:content=
"scope.scope.excelName"
>
<el-tooltip
v-if=
"scope.scope.excelName
&&scope.scope.excelName
.length >= Math.ceil((320 - 36) / 14)"
effect=
"light"
placement=
"top"
popper-class=
"base-popper"
:content=
"scope.scope.excelName"
>
<div
class=
"excelName"
>
{{
scope
.
scope
.
excelName
}}
</div>
</el-tooltip>
<div
v-else
>
{{
scope
.
scope
.
excelName
}}
</div>
...
...
@@ -60,9 +60,7 @@
<el-button
type=
"text"
v-if=
"scope.scope.taskStatus == 2"
@
click=
"handleStop(scope.scope, 1)"
>
暂停
</el-button>
<el-button
type=
"text"
v-if=
"currentIndex == 4"
@
click=
"download(scope.scope, 'taskId')"
>
下载
</el-button>
<div
class=
"upload-btn"
v-if=
"currentIndex == 4"
>
<el-button
type=
"text"
size=
"small"
>
导入
</el-button>
<el-button
type=
"text"
size=
"small"
>
导入
</el-button>
<input
type=
"file"
style=
"opacity: 0"
:ref=
"'file' + scope.scope.id"
accept=
"*"
@
change=
"importExcel($event, scope.scope)"
/>
</div>
</div>
...
...
@@ -82,10 +80,18 @@
<p
class=
"marked"
>
默认所有外呼任务按此规则进行外呼
</p>
</GLDialog>
<!-- 外呼短信 -->
<GLDialog
:mode=
"mode"
title=
"外呼短信"
:hasFooter=
"false"
:visible
.
sync=
"outboundmarketVisible"
>
<div
class=
"market-note"
>
{{ marketNote }}
<GLDialog
:mode=
"mode"
title=
"外呼短信"
:visible
.
sync=
"outboundmarketVisible"
@
onCancel=
"handleMessageClose"
@
onOk=
"handleMessageConfirm"
>
<div
class=
"gl-form-min"
>
<el-form
ref=
"outboundsetRef"
:model=
"outboundForm"
label-width=
"154px"
:rules=
"outboundRule"
>
<el-form-item
label=
"短信签名:"
>
<el-input
v-model=
"message.messageAutograph"
></el-input>
</el-form-item>
<el-form-item
label=
"短信内容:"
>
<el-input
v-model=
"message.messageDetail"
type=
"textarea"
:rows=
"3"
></el-input>
</el-form-item>
</el-form>
</div>
<div
class=
"market-note"
>
【{{ this.message.messageAutograph }}】 {{ this.message.messageDetail }}{{ this.message.messageSuffix }}
</div>
</GLDialog>
<!-- 开启外呼确认 -->
<GLDialog
:mode=
"mode"
title=
"开启外呼确认"
:visible
.
sync=
"openVisible"
@
onCancel=
"handleOpenOutboundClose"
@
onOk=
"handleOpenOutboundConfirm"
>
...
...
@@ -144,6 +150,11 @@ export default {
outboundmarketVisible
:
false
,
openVisible
:
false
,
taskData
:
{},
message
:
{
messageAutograph
:
''
,
messageDetail
:
''
,
messageSuffix
:
''
},
marketNote
:
''
,
outboundForm
:
{
outboundNum
:
60
,
...
...
@@ -650,6 +661,28 @@ export default {
}
})
},
handleMessageConfirm
()
{
let
{
message
:
{
id
,
messageAutograph
,
messageDetail
}
}
=
this
let
params
=
{
id
,
messageAutograph
,
messageDetail
}
this
.
$apis
.
outbound
.
updateOutBoundtaskMessage
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'修改成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
0
)
{
this
.
outboundmarketVisible
=
false
}
})
},
handleMessageClose
()
{
this
.
outboundmarketVisible
=
false
},
//营销短信
marketing
(
data
)
{
let
params
=
{
...
...
@@ -657,11 +690,11 @@ export default {
}
this
.
$apis
.
outbound
.
getOutBoundtaskMessage
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
outboundmarketVisible
=
true
this
.
marketNote
=
res
.
data
.
messageDetail
this
.
outboundmarketVisible
=
true
this
.
message
=
{
...
res
.
data
}
this
.
message
.
messageDetail
=
this
.
message
.
messageDetail
.
replace
(
/【.*】/
,
''
)
}
})
},
//外呼详情
handleDetails
(
data
)
{
...
...
@@ -1026,11 +1059,20 @@ export default {
/
deep
/
.row-expand-cover
.el-table__expand-icon
{
visibility
:
hidden
;
}
/
deep
/
.el-textarea
{
width
:
432px
!important
;
}
.market-note
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
22px
;
color
:
#666666
;
line-height
:
20px
;
padding
:
8px
;
background
:
#f9f9f9
;
margin-left
:
154px
;
width
:
432px
;
box-sizing
:
border-box
;
margin-top
:
-12px
;
}
}
</
style
>
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