字典项新增上级编号

This commit is contained in:
Yjhon 2022-03-29 15:47:34 +08:00
parent 5f1d3922de
commit 942c97016b
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item ref="parentid" label="所属上级" prop="parentid"> <a-form-model-item ref="parentid" label="上级编号" prop="parentid">
<a-input-number v-if="operable" v-model="form.parentid" :min="0"/> <a-input-number v-if="operable" v-model="form.parentid" :min="0"/>
<span v-else>{{ form.parentid }}</span> <span v-else>{{ form.parentid }}</span>
</a-form-model-item> </a-form-model-item>

View File

@ -66,10 +66,11 @@ export default {
selectedRowKeys: [], // key selectedRowKeys: [], // key
selectedRows: [], // selectedRows: [], //
columns: [ columns: [
{ title: '编号', width: 30, dataIndex: 'id', key: 'id' },
{ title: '词典项名称', width: 30, dataIndex: 'name', key: 'name' }, { title: '词典项名称', width: 30, dataIndex: 'name', key: 'name' },
{ title: '词典项值', width: 30, dataIndex: 'value', key: 'value' }, { title: '词典项值', width: 30, dataIndex: 'value', key: 'value' },
{ title: '词典标识', width: 30, dataIndex: 'dictionaryCode', key: 'dictionaryCode' }, { title: '词典标识', width: 30, dataIndex: 'dictionaryCode', key: 'dictionaryCode' },
{ title: '上级', width: 30, dataIndex: 'parentid', key: 'parentid' }, { title: '上级编号', width: 30, dataIndex: 'parentid', key: 'parentid' },
{ title: '排序', width: 30, dataIndex: 'sortid', key: 'sortid' } { title: '排序', width: 30, dataIndex: 'sortid', key: 'sortid' }
], ],
loadData: parameter => { loadData: parameter => {