Commit 939e4f18 by 前端

Merge branch 'huy_dev_v2.7.0' into 'v2.7.0'

修复bug

See merge request !290
2 parents 80a847c0 b9d050e9
......@@ -98,7 +98,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<GLEditor ref="welcome" :form="'customer'" style="line-height: 12px;" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
......
......@@ -34,7 +34,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<GLEditor ref="welcome" :form="'customerGroup'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<GLEditor ref="welcome" :form="'customerGroup'" style="line-height: 12px;" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
......
......@@ -82,8 +82,8 @@ export default {
})
item.attContent = htm
} else if (item.attType != 2 && item.attType != 3) {
console.log(item)
item.attContent = JSON.parse(utils.deepClone(item.attContent))
console.log(item.attContent, JSON.parse(item.attContent).fileName)
item.attContent = JSON.parse(item.attContent)
}
})
}
......@@ -91,7 +91,7 @@ export default {
previewVal: {
handler(val) {
console.log(val)
this.previewList = utils.deepClone(val)
this.previewList = utils.deepClone(val).filter(item => item.attContent)
},
deep: true
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!