Commit 94b35711 by liimin

2

1 parent c0b3b468
...@@ -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() {}
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!