字典数据页面中,添加字典名称下拉框变更事件

This commit is contained in:
HuangXin 2022-07-02 07:09:24 +00:00 committed by Gitee
parent b9931cda30
commit 23f11c7deb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="字典名称" prop="dictType"> <el-form-item label="字典名称" prop="dictType">
<el-select v-model="queryParams.dictType"> <el-select v-model="queryParams.dictType" @change="handleDictTypeChange">
<el-option <el-option
v-for="item in typeOptions" v-for="item in typeOptions"
:key="item.dictId" :key="item.dictId"
@ -358,6 +358,12 @@ export default {
this.title = "修改字典数据"; this.title = "修改字典数据";
}); });
}, },
/** 字典类型 下拉框变更事件 */
handleDictTypeChange(val) {
this.queryParams.dictType = val
this.getList();
},
/** 提交按钮 */ /** 提交按钮 */
submitForm: function() { submitForm: function() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {