Commit 94b35711 by liimin

2

1 parent c0b3b468
......@@ -339,7 +339,7 @@ export default {
},
{
label: '营销文案',
prop: 'test',
prop: 'test'
},
{
label: '购车时间',
......@@ -365,9 +365,9 @@ export default {
flushTime: false,
orderform: { order: '', result: '' },
disabled: false,
placeholder: '帮我针对车牌号为粤B开头的车主发一条5.1节日关怀',
placeholder: '帮我针对车牌号为粤B开头的车主发一条4s营销文案',
drawer: false,
gptRequest:false
gptRequest: false
}
},
created() {
......@@ -670,13 +670,12 @@ export default {
// }
//searchForm
this.searchForm = { ...data,customerSex:Number(data.customerSex) }
console.log(this.searchForm )
this.searchForm = { ...data, customerSex: Number(data.customerSex) }
console.log(this.searchForm)
// 设置 searchForm
this.searchTable()
// list
// list
} else {
this.$message.error(message)
}
......@@ -689,23 +688,22 @@ export default {
},
// 获取节日祝福语
async getGptList(){
if(!this.gptRequest){
return false;
async getGptList() {
if (!this.gptRequest) {
return false
}
let list = this.$refs.clientManage.data;
let list = this.$refs.clientManage.data
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 => {
console.log(result)
let _obj = result.data;
let _obj = result.data
k.test = _obj.content
})
return k;
return k
})
}
},
mounted() {}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!