Commit ecd3bb0d by 姜鹏凯

短链推广

1 parent f32597b5
......@@ -7,13 +7,13 @@
<TextareaExtend
:disabled="isDetail"
v-model="talkForm.templateInfo"
:toolbar="['emoji']"
:toolbar="isDetail ? [] : ['emoji']"
maxlength="2000"
show-word-limit
placeholder="请输入"
:autosize="{ minRows: 5, maxRows: 20 }"
clearable
:autofocus="false"
:autofocus="true"
@input="changeInfo"
/>
</el-form-item>
......
......@@ -108,7 +108,7 @@
taskSendTime: '',
taskEndTime: ''
},
attachmentsList: [],
attachments: [],
senderList: []
},
submitLoading: false,
......@@ -125,11 +125,11 @@
},
data: {
type: Object,
default: () => []
default: {}
},
posterObj: {
type: Object,
default: () => []
default: {}
}
},
watch: {
......@@ -151,7 +151,7 @@
this.preview.templateInfo = data.templateInfo
},
getPreviewInfo(data) {
this.preview = data
this.preview.previewData = JSON.parse(JSON.stringify(data.previewData))
if (this.baseData.style == 1) {
this.preview.previewData.unshift({
mediaType: '5',
......@@ -350,6 +350,7 @@
this.$emit('steps', step)
},
getData(data) {
console.log(data)
this.baseData = data
this.$emit('update', this.baseData)
}
......
......@@ -73,7 +73,6 @@
templateInfo: '',
attachments: []
},
previewData: [],
form: {
type: 0,
client: {
......@@ -100,6 +99,7 @@
this.form.attachments.forEach((dd) => {
if (dd.msgType == 'text') {
this.attachmentsData.templateInfo = dd.content
this.$forceUpdate()
} else {
arr.push(dd)
}
......@@ -133,11 +133,10 @@
changeInfo(data) {
this.form.client.content = data
this.$emit('update', this.form)
this.$emit('previewText', { templateInfo: data, previewData: this.previewData })
this.$emit('previewText', { templateInfo: data })
},
getPhoneData(data) {
this.previewData = data
this.$emit('preview', { templateInfo: this.attachmentsData.templateInfo, previewData: data })
this.$emit('preview', { previewData: data })
},
getAttentment(data) {
this.form.attachments = data
......
......@@ -12,7 +12,7 @@
<TextareaExtend
:disabled="isDetail"
v-model="templateInfo"
:toolbar="isDetail ? '' : ['emoji']"
:toolbar="isDetail ? [] : ['emoji']"
maxlength="2000"
show-word-limit
placeholder="请输入"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!