Browse Source

去掉发布新闻、通知字数限制

feature/syp_points
liuchuang 5 years ago
parent
commit
0c974a10fd
  1. 4
      src/views/modules/news/allnews-add-or-update.vue
  2. 5
      src/views/modules/news/allnotice-add-or-update.vue
  3. 3
      src/views/modules/news/news-add-or-update.vue
  4. 3
      src/views/modules/news/notice-add-or-update.vue

4
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

5
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 {

3
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

3
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) {

Loading…
Cancel
Save