字段新增、编辑添加长度限制,最大50个字符
This commit is contained in:
@@ -94,7 +94,7 @@ export default {
|
|||||||
title: '#',
|
title: '#',
|
||||||
dataIndex: '',
|
dataIndex: '',
|
||||||
key: 'rowIndex',
|
key: 'rowIndex',
|
||||||
width: 120,
|
width: 50,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender: function (t, r, index) {
|
customRender: function (t, r, index) {
|
||||||
return parseInt(index) + 1
|
return parseInt(index) + 1
|
||||||
@@ -119,6 +119,7 @@ export default {
|
|||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 220,
|
||||||
scopedSlots: { customRender: 'action' }
|
scopedSlots: { customRender: 'action' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
:wrapperCol="wrapperCol"
|
:wrapperCol="wrapperCol"
|
||||||
prop="itemValue"
|
prop="itemValue"
|
||||||
label="数据值">
|
label="数据值">
|
||||||
<a-input placeholder="请输入数据值" v-model="model.itemValue" />
|
<a-input placeholder="请输入数据值" :maxLength="50" v-model="model.itemValue" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|
||||||
<a-form-model-item
|
<a-form-model-item
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
prop="dictName"
|
prop="dictName"
|
||||||
required
|
required
|
||||||
label="字典名称">
|
label="字典名称">
|
||||||
<a-input placeholder="请输入字典名称" v-model="model.dictName"/>
|
<a-input placeholder="请输入字典名称" :maxLength="50" v-model="model.dictName"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|
||||||
<a-form-model-item
|
<a-form-model-item
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
prop="dictCode"
|
prop="dictCode"
|
||||||
required
|
required
|
||||||
label="字典编码">
|
label="字典编码">
|
||||||
<a-input placeholder="请输入字典编码" v-model="model.dictCode"/>
|
<a-input placeholder="请输入字典编码" :maxLength="50" v-model="model.dictCode"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|
||||||
<a-form-model-item
|
<a-form-model-item
|
||||||
|
|||||||
Reference in New Issue
Block a user