数据字典添加字典英文名称
This commit is contained in:
@@ -151,7 +151,9 @@ module.exports = {
|
|||||||
permissionTemporrily:'普通员工暂此权限',
|
permissionTemporrily:'普通员工暂此权限',
|
||||||
DepartmentRole:'部门角色',
|
DepartmentRole:'部门角色',
|
||||||
DictionaryName:'字典名称',
|
DictionaryName:'字典名称',
|
||||||
|
DictionaryEnName:'字典英文名称',
|
||||||
enterDictionary:'请输入字典名称',
|
enterDictionary:'请输入字典名称',
|
||||||
|
enterEnDictionary:'请输入字典英文名称',
|
||||||
DictionaryNumber:'字典编号',
|
DictionaryNumber:'字典编号',
|
||||||
enterDictionaryNumber:'请输入字典编号',
|
enterDictionaryNumber:'请输入字典编号',
|
||||||
DictionaryInformation:'字典信息',
|
DictionaryInformation:'字典信息',
|
||||||
|
|||||||
@@ -10,6 +10,11 @@
|
|||||||
<a-input :placeholder="$t('enterDictionary')" v-model="queryParam.dictName"></a-input>
|
<a-input :placeholder="$t('enterDictionary')" v-model="queryParam.dictName"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :md="7" :sm="8">
|
||||||
|
<a-form-item :label="$t('DictionaryEnName')" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
||||||
|
<a-input :placeholder="$t('enterEnDictionary')" v-model="queryParam.dictEnName"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
<a-col :md="7" :sm="8">
|
<a-col :md="7" :sm="8">
|
||||||
<a-form-item :label="$t('DictionaryNumber')" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
<a-form-item :label="$t('DictionaryNumber')" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
||||||
<a-input :placeholder="$t('enterDictionaryNumber')" v-model="queryParam.dictCode"></a-input>
|
<a-input :placeholder="$t('enterDictionaryNumber')" v-model="queryParam.dictCode"></a-input>
|
||||||
@@ -105,6 +110,12 @@
|
|||||||
align: "left",
|
align: "left",
|
||||||
dataIndex: 'dictName',
|
dataIndex: 'dictName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('DictionaryEnName'),
|
||||||
|
align: "left",
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'dictEnName',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('DictionaryNumber'),
|
title: this.$t('DictionaryNumber'),
|
||||||
align: "left",
|
align: "left",
|
||||||
@@ -172,6 +183,7 @@
|
|||||||
searchReset() {
|
searchReset() {
|
||||||
var that = this;
|
var that = this;
|
||||||
that.queryParam.dictName = "";
|
that.queryParam.dictName = "";
|
||||||
|
that.queryParam.dictEnName = "";
|
||||||
that.queryParam.dictCode = "";
|
that.queryParam.dictCode = "";
|
||||||
that.loadData(this.ipagination.current);
|
that.loadData(this.ipagination.current);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,6 +18,13 @@
|
|||||||
<a-input :placeholder="$t('enterDictionary')" v-decorator.trim="[ 'dictName', validatorRules.dictName]"/>
|
<a-input :placeholder="$t('enterDictionary')" v-decorator.trim="[ 'dictName', validatorRules.dictName]"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
<a-form-item
|
||||||
|
:labelCol="labelCol"
|
||||||
|
:wrapperCol="wrapperCol"
|
||||||
|
:label="$t('DictionaryName')">
|
||||||
|
<a-input :placeholder="$t('enterDictionary')" v-decorator.trim="[ 'dictEnName', validatorRules.dictEnName]"/>
|
||||||
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:labelCol="labelCol"
|
:labelCol="labelCol"
|
||||||
:wrapperCol="wrapperCol"
|
:wrapperCol="wrapperCol"
|
||||||
@@ -61,6 +68,9 @@
|
|||||||
form: this.$form.createForm(this),
|
form: this.$form.createForm(this),
|
||||||
validatorRules: {
|
validatorRules: {
|
||||||
dictName: { rules: [{ required: true, message: this.$t('enterDictionary') }] },
|
dictName: { rules: [{ required: true, message: this.$t('enterDictionary') }] },
|
||||||
|
dictEnName: {
|
||||||
|
rules: [{ required: true, message: this.$t('enterEnDictionary') }]
|
||||||
|
},
|
||||||
dictCode: {
|
dictCode: {
|
||||||
rules: [{ required: true, message: this.$t('enterDictionaryCode') },
|
rules: [{ required: true, message: this.$t('enterDictionaryCode') },
|
||||||
{ validator: this.validateDictCode }]
|
{ validator: this.validateDictCode }]
|
||||||
@@ -103,7 +113,7 @@
|
|||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.model, 'dictName', 'dictCode', 'description'))
|
this.form.setFieldsValue(pick(this.model, 'dictName', 'dictEnName', 'dictCode', 'description'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 确定
|
// 确定
|
||||||
@@ -114,6 +124,7 @@
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
values.dictName = (values.dictName || '').trim()
|
values.dictName = (values.dictName || '').trim()
|
||||||
|
values.dictEnName = (values.dictEnName || '').trim()
|
||||||
values.dictCode = (values.dictCode || '').trim()
|
values.dictCode = (values.dictCode || '').trim()
|
||||||
values.description = (values.description || '').trim()
|
values.description = (values.description || '').trim()
|
||||||
let formData = Object.assign(this.model, values)
|
let formData = Object.assign(this.model, values)
|
||||||
|
|||||||
Reference in New Issue
Block a user