Commit d3084055 by liimin

1

1 parent fbbbd788
......@@ -354,7 +354,7 @@ export default {
},
{
label: '营销文案',
prop: 'test',
prop: 'content',
width: 600,
fixed: 'right'
},
......@@ -710,7 +710,7 @@ export default {
let list = this.$refs.clientManage.data
if (!list?.length) return
list = list.map(element => {
element.test = '正在生成中...'
element.content = '正在生成中...'
return element
})
// let content = '我有一批客户,资料(id,customerName,customerSex,customerPhone,buyDate,carVin,carNumber) 分别是:'
......@@ -732,16 +732,16 @@ export default {
// }
// console.log(result)
// let _obj = result.data
// this.$refs.clientManage.data[index].test = _obj.content
// this.$refs.clientManage.data[index].content = _obj.content
// this.$refs.clientManage.data = this.$refs.clientManage.data
list.map((k, i) => {
k.test = result?.data?.customers[i]?.content || '生成文案异常,请重试!'
k.content = result?.data?.customers[i]?.content || '生成文案异常,请重试!'
const { customerName, customerSex, customerPhone } = k
k.test &&
k.test != '生成文案异常,请重试!' &&
k.content &&
k.content != '生成文案异常,请重试!' &&
setTimeout(() => {
this.$notify({
title: '发送成功',
title: `发送成功!`,
message: `${customerName}${{ 1: '先生', 2: '女士' }[customerSex] || '先生/女士'},手机号:${customerPhone} 发送成功.`,
type: 'success'
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!