From cccea320d0e159c66e7fd6b562ba0d886beea298 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Mon, 4 Jul 2022 18:03:10 +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 | 25 +++++++++++++++---- .../ParameterItemCollectionList.vue | 6 ++++- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue index 40d2d66c3..177019a7e 100644 --- a/jero-web/src/components/CollectionType/index.vue +++ b/jero-web/src/components/CollectionType/index.vue @@ -29,7 +29,9 @@ :disabled="item.isLock == '1' ? true: false" :placeholder="$t('pleaseEnter')+$t('chinese')" event.returnValue="false" - onkeyup="(this.a=function(){this.value=this.value.replace(/[^\u4e00-\u9fa5]/g,'');}).call(this)" + ondragenter="return false" + onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" + onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" v-model="item.dataValue"/> @@ -38,6 +40,7 @@ :disabled="item.isLock == '1' ? true: false" :max="99999" :precision="0" + :min="1" :placeholder="$t('enterPositiveInteger')" v-model="item.dataValue"/> @@ -182,8 +185,10 @@ :maxLength="1000" event.returnValue="false" :disabled="item.isLock == '1' ? true: false" + ondragenter="return false" :placeholder="$t('pleaseEnter')+$t('chinese')" - onkeyup="(this.a=function(){this.value=this.value.replace(/[^\u4e00-\u9fa5]/g,'');}).call(this)" + onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" + onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" v-model="item.dataValue"/> @@ -191,6 +196,7 @@ @@ -277,9 +283,11 @@ @@ -288,6 +296,7 @@ :disabled="item.isLock == '1' ? true: false" :max="99999" :precision="0" + :min="1" :placeholder="$t('enterPositiveInteger')" v-model="item.dataValue"/> @@ -385,9 +394,11 @@ @@ -396,6 +407,7 @@ :disabled="item.isLock == '1' ? true: false" :max="99999" :precision="0" + :min="1" :placeholder="$t('enterPositiveInteger')" v-model="item.dataValue"/> @@ -549,8 +561,10 @@ :disabled="item.isLock == '1' ? true: false" :maxLength="1000" event.returnValue="false" + ondragenter="return false" :placeholder="$t('pleaseEnter')+$t('chinese')" - onkeyup="(this.a=function(){this.value=this.value.replace(/[^\u4e00-\u9fa5]/g,'');}).call(this)" + onblur="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" + onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" v-model="item.dataValue"/> @@ -559,6 +573,7 @@ :disabled="item.isLock == '1' ? true: false" :max="99999" :precision="0" + :min="1" :placeholder="$t('enterPositiveInteger')" v-model="item.dataValue"/> diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index 71c29c007..6006c8b5b 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -1154,7 +1154,11 @@ if (num && num == 1) { this.textLoading = true } - postAction('/params/collectManifest/save', configDataList).then((res) => { + let query = { + ...configDataList, + paramsManifestId: this.paramsManifest.id + } + postAction('/params/collectManifest/save', query).then((res) => { if (res.success) { if (num && num == 1) { _this.$message.success(_this.$t('OperationSuccessful'))