Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 94b35711
authored
Mar 30, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2
1 parent
c0b3b468
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
src/views/clientManage/index.vue
src/views/clientManage/index.vue
View file @
94b3571
...
@@ -339,7 +339,7 @@ export default {
...
@@ -339,7 +339,7 @@ export default {
},
},
{
{
label
:
'营销文案'
,
label
:
'营销文案'
,
prop
:
'test'
,
prop
:
'test'
},
},
{
{
label
:
'购车时间'
,
label
:
'购车时间'
,
...
@@ -365,9 +365,9 @@ export default {
...
@@ -365,9 +365,9 @@ export default {
flushTime
:
false
,
flushTime
:
false
,
orderform
:
{
order
:
''
,
result
:
''
},
orderform
:
{
order
:
''
,
result
:
''
},
disabled
:
false
,
disabled
:
false
,
placeholder
:
'帮我针对车牌号为粤B开头的车主发一条
5.1节日关怀
'
,
placeholder
:
'帮我针对车牌号为粤B开头的车主发一条
4s营销文案
'
,
drawer
:
false
,
drawer
:
false
,
gptRequest
:
false
gptRequest
:
false
}
}
},
},
created
()
{
created
()
{
...
@@ -670,13 +670,12 @@ export default {
...
@@ -670,13 +670,12 @@ export default {
// }
// }
//searchForm
//searchForm
this
.
searchForm
=
{
...
data
,
customerSex
:
Number
(
data
.
customerSex
)
}
this
.
searchForm
=
{
...
data
,
customerSex
:
Number
(
data
.
customerSex
)
}
console
.
log
(
this
.
searchForm
)
console
.
log
(
this
.
searchForm
)
// 设置 searchForm
// 设置 searchForm
this
.
searchTable
()
this
.
searchTable
()
// list
// list
}
else
{
}
else
{
this
.
$message
.
error
(
message
)
this
.
$message
.
error
(
message
)
}
}
...
@@ -689,23 +688,22 @@ export default {
...
@@ -689,23 +688,22 @@ export default {
},
},
// 获取节日祝福语
// 获取节日祝福语
async
getGptList
(){
async
getGptList
()
{
if
(
!
this
.
gptRequest
)
{
if
(
!
this
.
gptRequest
)
{
return
false
;
return
false
}
}
let
list
=
this
.
$refs
.
clientManage
.
data
;
let
list
=
this
.
$refs
.
clientManage
.
data
list
.
map
(
k
=>
{
list
.
map
(
k
=>
{
const
content
=
`忽略之前的上下文,
针对
${
k
.
customerName
}
,手机号
${
k
.
customerPhone
}
的客户,生成一条最少100字的营销文案,命名为test,输出json格式`
;
const
content
=
`忽略之前的上下文,
对姓名为
${
k
.
customerName
}
客户,
${
k
.
customerName
}
是一个人,性别为
${{
'1'
:
'男'
,
'2'
:
'女'
}
[k.customerSex] || '先生/女士'},客户手机号为
${
k
.
customerPhone
}
,
${
k
.
customerPhone
}
是客户的电话不是客服电话;生成一条最少100字的4s店新车营销文案,字段命名为content。只需content一个字段即可;输出json格式`
this
.
$apis
.
crowdManage
.
gpt
(
content
).
then
(
result
=>
{
this
.
$apis
.
crowdManage
.
gpt
(
content
).
then
(
result
=>
{
console
.
log
(
result
)
console
.
log
(
result
)
let
_obj
=
result
.
data
;
let
_obj
=
result
.
data
k
.
test
=
_obj
.
content
k
.
test
=
_obj
.
content
})
})
return
k
;
return
k
})
})
}
}
},
},
mounted
()
{}
mounted
()
{}
}
}
...
...
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