From b3e18824e3f829cf32fc20e67701571f7cfbbdda Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Wed, 9 Mar 2022 15:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Standardselection/index.vue | 19 ++++++++++++------- .../src/components/libraryAddForm/index.vue | 11 ++++++++++- jero-web/src/components/search/index.vue | 3 ++- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/jero-web/src/components/Standardselection/index.vue b/jero-web/src/components/Standardselection/index.vue index 6306badcc..6a34a26b5 100644 --- a/jero-web/src/components/Standardselection/index.vue +++ b/jero-web/src/components/Standardselection/index.vue @@ -140,15 +140,20 @@ handleSubmit() { let content = [] let replace_standard_id = [] - this.content.forEach(res => { - content.push(res.title) - replace_standard_id.push(res.id) - }) - this.$emit('input', content.join(',')) - this.$emit('change',this.query.db_field_name,replace_standard_id.join(',')) - this.visible = false + if (this.content && this.content.length > 0){ + this.content.forEach(res => { + content.push(res.title) + replace_standard_id.push(res.id) + }) + this.$emit('input', content.join(',')) + this.$emit('change',this.query.db_field_name,replace_standard_id.join(',')) + this.visible = false + }else{ + this.$message.warning(this.$t('selectLeastOne')) + } }, indexclick(event) { + console.log(event) this.$emit('input', event.target.value) }, onSelectChange(value) { diff --git a/jero-web/src/components/libraryAddForm/index.vue b/jero-web/src/components/libraryAddForm/index.vue index 5d22f845d..c3d246ed3 100644 --- a/jero-web/src/components/libraryAddForm/index.vue +++ b/jero-web/src/components/libraryAddForm/index.vue @@ -8,7 +8,7 @@
- +
* @@ -400,6 +400,14 @@ }) } } + if (res.field_show_type === '1' || res.field_show_type === '2' || + res.field_show_type === '8' || res.field_show_type === '9' || res.field_show_type === '10'){ + rule.push({ + max: res.db_length, + message: res.db_field_txt+'不能超出'+res.db_length+'个字符', + trigger: 'blur' + }) + } if (rule.length > 0) { rules[res.db_field_name] = rule } @@ -449,6 +457,7 @@ }, StandardselectionChange(value, id) { this.formInline[value + '_id'] = id + this.formInline = {...this.formInline} } } } diff --git a/jero-web/src/components/search/index.vue b/jero-web/src/components/search/index.vue index 5968499a0..153fbf701 100644 --- a/jero-web/src/components/search/index.vue +++ b/jero-web/src/components/search/index.vue @@ -16,7 +16,8 @@ :placeholder="$t('PleaseSelect')+item.db_field_txt" />
-
+
{{item.db_field_txt}}