diff --git a/src/views/modules/news/allnews-add-or-update.vue b/src/views/modules/news/allnews-add-or-update.vue index de0e711..9c00102 100644 --- a/src/views/modules/news/allnews-add-or-update.vue +++ b/src/views/modules/news/allnews-add-or-update.vue @@ -268,9 +268,9 @@ export default { // 上传图片end // 表单提交 dataFormSubmitHandle: debounce(function () { - if ((this.dataForm.newsContent).length > 10000) { + /*if ((this.dataForm.newsContent).length > 10000) { return this.$message.error('您输入的的内容已超过字数不能提交') - } + }*/ this.$refs['dataForm'].validate((valid) => { if (!valid) { return false diff --git a/src/views/modules/news/allnotice-add-or-update.vue b/src/views/modules/news/allnotice-add-or-update.vue index beb2172..0168329 100644 --- a/src/views/modules/news/allnotice-add-or-update.vue +++ b/src/views/modules/news/allnotice-add-or-update.vue @@ -153,12 +153,9 @@ 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) { - return this.$message.error('您输入的的内容已超过字数不能提交') - } else if (this.dataForm.noticeContent.length === 0) { + if (this.dataForm.noticeContent.length === 0) { return this.$message.error('通知内容不能空') } } else { diff --git a/src/views/modules/news/news-add-or-update.vue b/src/views/modules/news/news-add-or-update.vue index e2e0d2d..e908b1e 100644 --- a/src/views/modules/news/news-add-or-update.vue +++ b/src/views/modules/news/news-add-or-update.vue @@ -279,9 +279,6 @@ export default { // 上传图片end // 表单提交 dataFormSubmitHandle: debounce(function () { - if ((this.dataForm.newsContent).length > 10000) { - return this.$message.error('您输入的的内容已超过字数不能提交') - } this.$refs['dataForm'].validate((valid) => { if (!valid) { return false diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index 399ef65..38d3e58 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -226,9 +226,6 @@ export default { dataFormSubmitHandle: debounce(function () { if (this.dataForm.noticeContent != null && this.dataForm.noticeContent !== undefined) { this.dataForm.noticeContent = this.removeHTMLTag(this.dataForm.noticeContent) - if ((this.dataForm.noticeContent).length > 10000) { - return this.$message.error('您输入的的内容已超过字数不能提交') - } } this.$refs['dataForm'].validate((valid) => { if (!valid) {