标签化:标签体系构建调整
This commit is contained in:
parent
c463250fae
commit
d21697d3aa
|
@ -3,7 +3,7 @@
|
|||
<div class="mod-sys__dict">
|
||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||
<el-form-item>
|
||||
<el-input v-model="dataForm.dictName" placeholder="标签名称" clearable></el-input>
|
||||
<el-input v-model="dataForm.dictName" placeholder="分类名称" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="getDataList()">{{ $t('query') }}</el-button>
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
<template>
|
||||
<el-dialog :visible.sync="visible" :title="!dataForm.id ? $t('add') : $t('update')" :close-on-click-modal="false"
|
||||
:close-on-press-escape="false">
|
||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()"
|
||||
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()"
|
||||
label-width="120px">
|
||||
<el-form-item prop="dictName" label="标签名称">
|
||||
<el-input v-model="dataForm.dictName" :placeholder="$t('dict.dictName')"></el-input>
|
||||
<el-form-item prop="dictName" label="分类名称">
|
||||
<el-input v-model="dataForm.dictName" placeholder="分类名称"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="dictType" label="英文名称">
|
||||
<el-input v-model="dataForm.dictType" :placeholder="$t('dict.dictType')"></el-input>
|
||||
<el-form-item prop="dictType" label="编号">
|
||||
<el-input v-model="dataForm.dictType" placeholder="编号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="remark" :label="$t('dict.remark')">
|
||||
<el-input type="textarea" :rows="4" v-model="dataForm.remark" :placeholder="$t('dict.remark')"></el-input>
|
||||
<el-form-item prop="remark" label="描述">
|
||||
<el-input type="textarea" :rows="4" v-model="dataForm.remark" placeholder="描述"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template slot="footer">
|
||||
|
@ -35,21 +35,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
dataRule() {
|
||||
return {
|
||||
dictName: [
|
||||
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
|
||||
],
|
||||
dictType: [
|
||||
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
|
||||
],
|
||||
sort: [
|
||||
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.visible = true
|
||||
|
|
Loading…
Reference in New Issue