Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 12d53168
authored
Jun 09, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
d9794659
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
14 deletions
src/views/home/ai/detail.vue
src/views/home/aiCall.vue
src/views/home/components/ai/AddTask.vue
src/views/home/components/scene-subscription/index.vue
src/views/home/ai/detail.vue
View file @
12d5316
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-02 14:10:14
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-0
8 15:32:0
5
* @LastEditTime: 2023-06-0
9 14:03:4
5
* @FilePath: \scrm-micro-home\src\views\home\ai\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -48,7 +48,6 @@
<
script
>
const
ANSWER
=
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'成功'
,
value
:
'success'
},
{
label
:
'空号'
,
value
:
'notexist'
},
{
labe
:
'关机'
,
value
:
'poweroff'
},
{
label
:
'停机'
,
value
:
'stopped'
},
...
...
@@ -319,8 +318,8 @@ export default {
contentEcho
()
{
this
.
$apis
.
aiCall
.
contentEcho
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
detail
=
res
||
{}
cons
ole
.
log
(
res
)
this
.
notConnectPhoneStatusList
=
res
.
notConnectPhoneStatusList
||
this
.
statusItem
cons
t
notConnectPhoneStatusList
=
res
.
notConnectPhoneStatusList
||
[]
this
.
notConnectPhoneStatusList
=
(
notConnectPhoneStatusList
.
length
&&
notConnectPhoneStatusList
)
||
this
.
statusItem
})
},
beforeSearchFn
()
{
...
...
src/views/home/aiCall.vue
View file @
12d5316
...
...
@@ -33,7 +33,7 @@
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDel(scope.scope)"
v-if=
"scope.scope.taskStatus == 1"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"goDetail(scope.scope)"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.taskStatus != 4"
>
编辑
</el-button>
</div>
<template
slot=
"taskStatus"
slot-scope=
"scope"
>
<div
:class=
"['task_icon', `task_icon$
{scope.scope.taskStatus}`]">
{{
findStatus
(
scope
.
scope
.
taskStatus
)
}}
</div>
...
...
src/views/home/components/ai/AddTask.vue
View file @
12d5316
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-07 14:22:41
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-09 1
0:54:51
* @LastEditTime: 2023-06-09 1
1:54:55
* @FilePath: \scrm-micro-home\src\views\home\components\ai\addTask.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -30,12 +30,12 @@
</div>
<a
href=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/AI续保提醒 - 模板.xlsx"
>
下载模板
</a>
</div>
<div
class=
"file-tips"
v-if=
"!fileName && !importVisible"
>
<div
class=
"file-tips"
v-if=
"!
addForm.
fileName && !importVisible"
>
支持扩展名:xls,xlsx
</div>
<div
class=
"file-tips"
v-if=
"fileName"
>
<div
class=
"file-tips"
v-if=
"
addForm.
fileName"
>
<i
class=
"el-icon-success"
></i>
文件已上传(
{{
fileName
}}
)
文件已上传(
{{
addForm
.
fileName
}}
)
</div>
<div
class=
"file-tips"
v-if=
"importVisible"
>
<i
class=
"el-icon-error"
></i>
...
...
@@ -79,6 +79,7 @@ export default {
autoSend
:
0
,
businessType
:
1
,
messageContent
:
'选择AI后展示'
,
fileName
:
''
,
merchantNameParam
:
this
.
$globalState
.
session
.
merchantName
},
addRules
:
{
...
...
@@ -98,10 +99,9 @@ export default {
//获取详情
conditionPage
(
id
)
{
this
.
$apis
.
aiCall
.
contentEcho
({
id
}).
then
(
res
=>
{
const
{
id
,
messageContent
,
robotId
,
aiStartTime
,
merchantNameParam
,
excelUrl
}
=
res
this
.
addForm
=
{
autoSend
:
0
,
taskId
:
id
,
messageContent
,
robotId
,
merchantNameParam
,
aiStartTime
:
dayjs
(
+
aiStartTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
const
{
id
,
messageContent
,
robotId
,
aiStartTime
,
merchantNameParam
,
excelUrl
,
excelName
}
=
res
this
.
addForm
=
{
fileName
:
excelName
,
autoSend
:
0
,
taskId
:
id
,
messageContent
,
robotId
,
merchantNameParam
,
aiStartTime
:
dayjs
(
+
aiStartTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
this
.
excelUrl
=
this
.
url
=
excelUrl
this
.
fileName
=
excelUrl
.
split
(
'/'
).
pop
()
})
},
//选择ai
...
...
@@ -170,7 +170,7 @@ export default {
if
(
res
.
error
>
0
)
{
this
.
importVisible
=
true
}
else
{
this
.
fileName
=
fileName
this
.
addForm
.
fileName
=
fileName
this
.
url
=
url
}
}
...
...
src/views/home/components/scene-subscription/index.vue
View file @
12d5316
...
...
@@ -36,6 +36,26 @@
</div>
</div>
</div>
<GLDialog
title=
"提示"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisible"
>
<div
class=
"dialog-body-panel"
>
<div
class=
"dialog-header"
>
<i
class=
"el-icon-warning"
></i>
<span>
AI续保提醒为付费订阅功能
</span>
</div>
<div
class=
"dialog-tips"
>
试用期内您有
<i>
500
</i>
个通话的体验额度。若需开通订阅请扫码申请开通,将有运营人员与您对接。
</div>
<div
class=
"dialog-qrcode"
>
<img
src=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/aicode.png"
alt=
""
/>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleJump('/home/aiCall')"
>
已知晓,并开启试用
</el-button>
</span>
</GLDialog>
</div>
</
template
>
<
script
>
...
...
@@ -64,7 +84,8 @@ import { mapGetters } from 'vuex'
export
default
{
data
()
{
return
{
sceneData
sceneData
,
dialogVisible
:
false
}
},
computed
:
{
...
...
@@ -79,6 +100,11 @@ export default {
},
handleJump
(
path
)
{
if
(
path
==
'/home/aiCall'
)
{
if
(
!
sessionStorage
.
getItem
(
'isClick_AI'
))
{
this
.
dialogVisible
=
true
sessionStorage
.
setItem
(
'isClick_AI'
,
true
)
return
}
this
.
$router
.
push
(
path
)
return
}
...
...
@@ -96,6 +122,38 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.dialog-body-panel
{
padding
:
10px
;
.dialog-header
{
line-height
:
40px
;
i
{
font-size
:
32px
;
color
:
#5850ff
;
vertical-align
:
sub
;
}
span
{
font-weight
:
600
;
font-size
:
20px
;
color
:
#333333
;
}
}
.dialog-tips
{
padding
:
10px
20px
;
color
:
#333333
ff
;
font-size
:
16px
;
line-height
:
24px
;
i
{
color
:
#5850ff
;
}
}
.dialog-qrcode
{
width
:
160px
;
height
:
160px
;
margin
:
10px
auto
;
padding
:
2px
;
border
:
1px
dashed
#999
;
}
}
.subscript-wrap
{
margin-bottom
:
16px
;
padding
:
17px
20px
15px
;
...
...
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