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;
}