diff --git a/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html b/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html index 87db796..48ea23c 100644 --- a/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html +++ b/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html @@ -116,11 +116,11 @@ layout("/layouts/platform.html"){ - + - + @@ -364,6 +364,24 @@ layout("/layouts/platform.html"){ el: '#app', mixins: [initTableMixins], data() { + const validIntroduce = (rule, value, callback) => { + if (!this.formData.stjs || !dd3s.html2txt(this.formData.stjs)) { + callback(new Error('必填')); + } else if (dd3s.html2txt(this.formData.stjs).length < 200) { + callback(new Error('协会介绍至少需要200字')); + } else { + callback(); + } + }; + const validStzz = (rule, value, callback) => { + if (!this.formData.stzz || !dd3s.html2txt(this.formData.stzz)) { + callback(new Error('必填')); + } else if (dd3s.html2txt(this.formData.stzz).length < 30) { + callback(new Error('协会宗旨至少需要30字')); + } else { + callback(); + } + }; return { clubUserTableData: [], sponsorData: [ @@ -385,6 +403,8 @@ layout("/layouts/platform.html"){ establishReport: [{required: true, message: '必填', trigger: ['blur', 'change']}], rulesFile: [{required: true, message: '必填', trigger: ['blur', 'change']}], yearPlanFile: [{required: true, message: '必填', trigger: ['blur', 'change']}], + stjs: [{validator: validIntroduce, trigger: ['blur', 'change']}], + stzz: [{validator: validStzz, trigger: ['blur', 'change']}], }, typeOptions: [], userLoading: false,