Browse Source

数据字典新增和编辑页面增加数据分组字段

master
yunuo970428 3 years ago
parent
commit
155b11b2a9
  1. 10
      anrui-system-ui/src/views/dictManage/dictCommon.vue

10
anrui-system-ui/src/views/dictManage/dictCommon.vue

@ -58,6 +58,12 @@
{{ form.dictType }} {{ form.dictType }}
</td> </td>
</tr> </tr>
<tr>
<td>数据分组</td>
<td>
<el-input v-model="form.groupName"></el-input>
</td>
</tr>
<tr> <tr>
<td>数据key</td> <td>数据key</td>
<td> <td>
@ -96,6 +102,7 @@ export default {
form: { form: {
dictKey: '', dictKey: '',
dictType: '', dictType: '',
groupName: '',
dictValue: '', dictValue: '',
parentSid: '' parentSid: ''
}, },
@ -120,6 +127,7 @@ export default {
handler(val) { handler(val) {
this.form.parentSid = val.sid this.form.parentSid = val.sid
this.form.dictType = val.dictType this.form.dictType = val.dictType
this.form.groupName = val.groupName
this.page.params.parentSid = val.sid this.page.params.parentSid = val.sid
this.page.params.dictType = val.dictType this.page.params.dictType = val.dictType
this.getPageList(this.page) this.getPageList(this.page)
@ -172,12 +180,14 @@ export default {
this.dialogTitle = '新增' this.dialogTitle = '新增'
this.editDialog = true this.editDialog = true
this.form.dictKey = '' this.form.dictKey = ''
this.form.groupName = ''
this.form.dictValue = '' this.form.dictValue = ''
this.form.sid = '' this.form.sid = ''
}, },
closeDict() { closeDict() {
this.form.parentSid = '' this.form.parentSid = ''
this.form.dictType = '' this.form.dictType = ''
this.form.groupName = ''
this.page.params.parentSid = '' this.page.params.parentSid = ''
this.page.params.dictType = '' this.page.params.dictType = ''
this.$emit('doback') this.$emit('doback')

Loading…
Cancel
Save