Commit 3501ddfd by 姜鹏凯

Merge branch 'develop'

2 parents c732bdce 8ca46a1b
......@@ -77,7 +77,7 @@
form: {
type: 0,
group: {
contnet: '',
content: '',
type: 0,
userIds: '',
sendType: 0,
......@@ -91,6 +91,19 @@
},
methods: {
setData() {
if (!this.form.group) {
this.form.group = {
type: 0,
content: '',
userIds: '',
sendType: 0,
taskSendTime: '',
taskEndTime: ''
}
}
if (!this.form.attachments) {
this.form.attachments = []
}
if (this.form.attachments) {
let arr = []
this.form.attachments.forEach((dd) => {
......@@ -98,7 +111,7 @@
arr.push(dd)
}
})
this.attachmentsData.templateInfo = this.form.client.content
this.attachmentsData.templateInfo = this.form.group.content
let data = setAttachments(arr)
this.attachmentsData.attachments = data
this.$emit('preview', {
......@@ -106,19 +119,6 @@
})
this.$emit('previewText', { templateInfo: JSON.parse(JSON.stringify(this.attachmentsData.templateInfo)) })
}
if (!this.form.group) {
this.form.group = {
type: 0,
content: '',
userIds: '',
sendType: 0,
taskSendTime: '',
taskEndTime: ''
}
}
if (!this.form.attachments) {
this.form.attachments = []
}
},
changeInfo(data) {
this.form.group.content = data
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!