Browse Source

部门回显bug调整

origin/feature/monitoring
Jackwang 4 years ago
parent
commit
85956e47d3
  1. 3
      src/views/modules/news/notice-add-or-update.vue

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

@ -263,6 +263,7 @@ export default {
},
//
dataFormSubmitHandle: debounce(function () {
console.log(this.dataForm.noticeContent)
if (this.dataForm.noticeContent != null && this.dataForm.noticeContent !== undefined) {
this.dataForm.noticeContent = this.removeHTMLTag(this.dataForm.noticeContent)
if ((this.dataForm.noticeContent).length > 10000) {
@ -277,7 +278,7 @@ export default {
if (!valid) {
return false
}
this.$http[!this.dataForm.id ? 'post' : 'put']('/news/notice', this.dataForm).then(({ data: res }) => {
this.$http[!this.dataForm.id ? 'post' : 'put']('/news/notice/saveOrUpContent', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

Loading…
Cancel
Save