Introducing new features. 优化字典查询

This commit is contained in:
aeizzz 2023-02-07 15:52:17 +08:00
parent f7e3df12a1
commit dffbdbc743

View File

@ -2,10 +2,15 @@
<el-card shadow="hover" class="layout-padding-auto">
<el-row v-show="showSearch" class="mb8">
<el-form :model="state.queryForm" ref="queryRef" :inline="true">
<el-form-item :label="$t('post.postName')" prop="postName">
<el-input :placeholder="$t('post.inputpostNameTip')" v-model="state.queryForm.postName"
<el-form-item label="类型" prop="dictType">
<el-input placeholder="请输入类型" v-model="state.queryForm.dictType"
style="max-width: 180px" />
</el-form-item>
<el-form-item label="字典类型" prop="systemFlag">
<el-select v-model="state.queryForm.systemFlag" clearable>
<el-option v-for="(item,index) in dict_type" :label="item.label" :value="item.value" :key="index"></el-option>
</el-select>
</el-form-item>
<el-form-item class="ml2">
<el-button icon="search" type="primary" @click="getDataList">
{{ $t('common.queryBtn') }}
@ -98,6 +103,7 @@ const showDictITem = (row: any) => {
//
const resetQuery = () => {
queryRef.value.resetFields()
state.queryForm = {}
getDataList()
}
//