update src/views/system/dict/data/index.vue.
在【字典名称】即,字典类型更新时,无需重新点击查询,否则每次想在本页面编辑其他字典数据时,需要点击一下查询按钮 Signed-off-by: AKING <2734339436@qq.com>pull/828/head
parent
9e75e98a3f
commit
060e5014c4
|
|
@ -8,7 +8,7 @@
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item label="字典名称" prop="dictType">
|
<el-form-item label="字典名称" prop="dictType">
|
||||||
<el-select v-model="queryParams.dictType" class="!w-240px">
|
<el-select v-model="queryParams.dictType" class="!w-240px" @change="dictChange">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dictTypeList"
|
v-for="item in dictTypeList"
|
||||||
:key="item.type"
|
:key="item.type"
|
||||||
|
|
@ -171,6 +171,12 @@ const handleQuery = () => {
|
||||||
getList()
|
getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 字典类型更改同时更新列表数据 */
|
||||||
|
const dictChange = (v) => {
|
||||||
|
queryParams.dictType = v
|
||||||
|
handleQuery()
|
||||||
|
}
|
||||||
|
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
const resetQuery = () => {
|
const resetQuery = () => {
|
||||||
queryFormRef.value.resetFields()
|
queryFormRef.value.resetFields()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue