修改禅道bug
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
<a-input class="box-input inputWid"
|
<a-input class="box-input inputWid"
|
||||||
:disabled="item.isLock == '1' ? true: false"
|
:disabled="item.isLock == '1' ? true: false"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
: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,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
v-model="item.dataValue"/>
|
v-model="item.dataValue"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
:disabled="item.isLock == '1' ? true: false"
|
:disabled="item.isLock == '1' ? true: false"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
: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,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
v-model="item.dataValue"/>
|
v-model="item.dataValue"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
<div v-else-if="item.controlVerify == '2'">
|
<div v-else-if="item.controlVerify == '2'">
|
||||||
<a-input class="box-input inputWid"
|
<a-input class="box-input inputWid"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
|
@input="onInput"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
:disabled="item.isLock == '1' ? true: false"
|
:disabled="item.isLock == '1' ? true: false"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
@@ -385,7 +385,7 @@
|
|||||||
<a-input class="box-input inputWid"
|
<a-input class="box-input inputWid"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
:disabled="item.isLock == '1' ? true: false"
|
:disabled="item.isLock == '1' ? true: false"
|
||||||
onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"
|
@input="onInput"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
v-model="item.dataValue"/>
|
v-model="item.dataValue"/>
|
||||||
@@ -549,7 +549,7 @@
|
|||||||
:disabled="item.isLock == '1' ? true: false"
|
:disabled="item.isLock == '1' ? true: false"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
: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,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
v-model="item.dataValue"/>
|
v-model="item.dataValue"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -663,6 +663,15 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
uploadSuccess(data) {
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
@@ -732,10 +741,11 @@
|
|||||||
|
|
||||||
.selectWid .ant-select-selection {
|
.selectWid .ant-select-selection {
|
||||||
height: 38px !important;
|
height: 38px !important;
|
||||||
line-height: 38px!important;
|
line-height: 38px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectWid .ant-select-selection__rendered {
|
.selectWid .ant-select-selection__rendered {
|
||||||
line-height: 36px!important;
|
line-height: 36px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user