Commit d3084055 by liimin

1

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