From 0c974a10fddfa22190753f915f98ed43d958138d Mon Sep 17 00:00:00 2001 From: liuchuang <123456> Date: Wed, 4 Nov 2020 16:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8F=91=E5=B8=83=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E3=80=81=E9=80=9A=E7=9F=A5=E5=AD=97=E6=95=B0=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/news/allnews-add-or-update.vue | 4 ++-- src/views/modules/news/allnotice-add-or-update.vue | 5 +---- src/views/modules/news/news-add-or-update.vue | 3 --- src/views/modules/news/notice-add-or-update.vue | 3 --- 4 files changed, 3 insertions(+), 12 deletions(-) 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) {