|
@ -263,6 +263,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 表单提交 |
|
|
// 表单提交 |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
|
|
|
console.log(this.dataForm.noticeContent) |
|
|
if (this.dataForm.noticeContent != null && this.dataForm.noticeContent !== undefined) { |
|
|
if (this.dataForm.noticeContent != null && this.dataForm.noticeContent !== undefined) { |
|
|
this.dataForm.noticeContent = this.removeHTMLTag(this.dataForm.noticeContent) |
|
|
this.dataForm.noticeContent = this.removeHTMLTag(this.dataForm.noticeContent) |
|
|
if ((this.dataForm.noticeContent).length > 10000) { |
|
|
if ((this.dataForm.noticeContent).length > 10000) { |
|
@ -277,7 +278,7 @@ export default { |
|
|
if (!valid) { |
|
|
if (!valid) { |
|
|
return false |
|
|
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) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
|