From a5a71ebd864456e34fa1250a8c8ea1a907abcda8 Mon Sep 17 00:00:00 2001
From: qq787203167 <787203167@qq.com>
Date: Wed, 6 Jul 2022 09:52:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/CollectionType/index.vue | 24 +++++++++++++------
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue
index 74052d9b3..635d03811 100644
--- a/jero-web/src/components/CollectionType/index.vue
+++ b/jero-web/src/components/CollectionType/index.vue
@@ -28,7 +28,7 @@
@@ -182,7 +182,7 @@
:maxLength="1000"
:disabled="item.isLock == '1' ? true: false"
:placeholder="$t('pleaseEnter')+$t('chinese')"
- onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
+ @input="onInput"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
v-model="item.dataValue"/>
@@ -276,7 +276,7 @@
@@ -549,7 +549,7 @@
:disabled="item.isLock == '1' ? true: false"
:maxLength="1000"
:placeholder="$t('pleaseEnter')+$t('chinese')"
- onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
+ @input="onInput"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
v-model="item.dataValue"/>
@@ -663,6 +663,15 @@
})
},
methods: {
+ onInput(r) {
+ let value = r.target.value
+ r.target.value = value.replace(/[^\u4e00-\u9fa5]/g, '')
+ this.detailDate.list.forEach((item) => {
+ if (item.controlVerify == '2') {
+ item.dataValue = r.target.value
+ }
+ })
+ },
uploadSuccess(data) {
let attIdList = []
if (data && data.length > 0) {
@@ -732,10 +741,11 @@
.selectWid .ant-select-selection {
height: 38px !important;
- line-height: 38px!important;
+ line-height: 38px !important;
}
+
.selectWid .ant-select-selection__rendered {
- line-height: 36px!important;
+ line-height: 36px !important;
}