Browse Source

新闻与通知修改

master
yujintao 6 years ago
parent
commit
45f1fb29ff
  1. 4
      src/views/modules/news/news-add-or-update.vue
  2. 2
      src/views/modules/news/notice-add-or-update.vue

4
src/views/modules/news/news-add-or-update.vue

@ -232,7 +232,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.dataForm = res.data
this.dataForm = { ...this.dataForm, ...res.data }
this.resetRegistTime()
this.quillEditor.root.innerHTML = res.data.newsContent
if (this.dataForm.streetId) {
@ -371,7 +371,7 @@ export default {
}
})
}).catch(() => { })
this.dataForm = []
this.dataForm = {}
})
}, 1000, { 'leading': true, 'trailing': false })
},

2
src/views/modules/news/notice-add-or-update.vue

@ -197,7 +197,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.dataForm = res.data
this.dataForm = { ...this.dataForm, ...res.data }
this.quillEditor.root.innerHTML = res.data.noticeContent
if (this.dataForm.streetId) {
if (this.dataForm.communityId === 0) {

Loading…
Cancel
Save