| | |
| | | |
| | | <!-- 左侧面板 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="12"> |
| | | <a-col :md="7" :sm="8"> |
| | | <a-form-item label="字典名称" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}"> |
| | | <a-input placeholder="请输入字典名称" v-model="queryParam.dictName"></a-input> |
| | | <a-col |
| | | :md="7" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="字典名称" |
| | | :labelCol="{span: 6}" |
| | | :wrapperCol="{span: 14, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请输入字典名称" |
| | | v-model="queryParam.dictName" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="7" :sm="8"> |
| | | <a-form-item label="字典编号" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}"> |
| | | <a-input placeholder="请输入字典编号" v-model="queryParam.dictCode"></a-input> |
| | | <a-col |
| | | :md="7" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="字典编号" |
| | | :labelCol="{span: 6}" |
| | | :wrapperCol="{span: 14, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请输入字典编号" |
| | | v-model="queryParam.dictCode" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="7" :sm="8"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | <a-col |
| | | :md="7" |
| | | :sm="8" |
| | | > |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | |
| | | <div class="table-operator" style="border-top: 5px"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">添加</a-button> |
| | | |
| | | <div |
| | | class="table-operator" |
| | | style="border-top: 5px" |
| | | > |
| | | <a-button |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | >添加</a-button> |
| | | <a-button |
| | | type="primary" |
| | | icon="sync" |
| | | @click="refleshCache()" |
| | | >刷新缓存</a-button> |
| | | </div> |
| | | |
| | | <a-table |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | @change="handleTableChange" |
| | | > |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a @click="handleEdit(record)"> |
| | | <a-icon type="edit"/> |
| | | 编辑 |
| | |
| | | <a-divider type="vertical"/> |
| | | <a @click="editDictItem(record)"><a-icon type="setting"/> 字典配置</a> |
| | | <a-divider type="vertical"/> |
| | | <a-popconfirm title="确定删除吗?" @confirm="() =>handleDelete(record.id)"> |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | | @confirm="() =>handleDelete(record.id)" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | |
| | | </div> |
| | | <dict-modal ref="modalForm" @ok="modalFormOk"></dict-modal> <!-- 字典类型 --> |
| | | <dict-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | ></dict-modal> <!-- 字典类型 --> |
| | | <dict-item-list ref="dictItemList"></dict-item-list> |
| | | <dict-delete-list ref="dictDeleteList" @refresh="() =>loadData()"></dict-delete-list> |
| | | <dict-delete-list |
| | | ref="dictDeleteList" |
| | | @refresh="() =>loadData()" |
| | | ></dict-delete-list> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | @import '~@assets/less/common.less'; |
| | | </style> |