|
@@ -7,7 +7,7 @@
|
|
|
:inline="true"
|
|
|
label-width="68px"
|
|
|
>
|
|
|
- <el-form-item label="字典名称" prop="dictType">
|
|
|
+ <el-form-item :label="t('dict.name')" label-width="80px" prop="dictType">
|
|
|
<el-select v-model="queryParams.dictType" class="!w-240px">
|
|
|
<el-option
|
|
|
v-for="item in dictTypeList"
|
|
@@ -17,17 +17,17 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="字典标签" prop="label">
|
|
|
+ <el-form-item :label="t('dict.label')" prop="label">
|
|
|
<el-input
|
|
|
v-model="queryParams.label"
|
|
|
- placeholder="请输入字典标签"
|
|
|
+ :placeholder="t('dict.labelPlace')"
|
|
|
clearable
|
|
|
@keyup.enter="handleQuery"
|
|
|
class="!w-240px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="状态" prop="status">
|
|
|
- <el-select v-model="queryParams.status" placeholder="数据状态" clearable class="!w-240px">
|
|
|
+ <el-form-item :label="t('dict.status')" prop="status">
|
|
|
+ <el-select v-model="queryParams.status" :placeholder="t('dict.statusPlace')" clearable class="!w-240px">
|
|
|
<el-option
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
|
|
|
:key="dict.value"
|
|
@@ -37,15 +37,15 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
- <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
+ <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> {{t('action.search')}}</el-button>
|
|
|
+ <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> {{t('common.reset')}}</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
|
@click="openForm('create')"
|
|
|
v-hasPermi="['system:dict:create']"
|
|
|
>
|
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" /> {{t('action.create')}}
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="success"
|
|
@@ -54,7 +54,7 @@
|
|
|
:loading="exportLoading"
|
|
|
v-hasPermi="['system:dict:export']"
|
|
|
>
|
|
|
- <Icon icon="ep:download" class="mr-5px" /> 导出
|
|
|
+ <Icon icon="ep:download" class="mr-5px" /> {{t('action.export')}}
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -63,26 +63,26 @@
|
|
|
<!-- 列表 -->
|
|
|
<ContentWrap>
|
|
|
<el-table v-loading="loading" :data="list">
|
|
|
- <el-table-column label="字典编码" align="center" prop="id" />
|
|
|
- <el-table-column label="字典标签" align="center" prop="label" />
|
|
|
- <el-table-column label="字典键值" align="center" prop="value" />
|
|
|
- <el-table-column label="字典排序" align="center" prop="sort" />
|
|
|
- <el-table-column label="状态" align="center" prop="status">
|
|
|
+ <el-table-column :label="t('dict.no')" align="center" prop="id" />
|
|
|
+ <el-table-column :label="t('dict.label')" align="center" prop="label" />
|
|
|
+ <el-table-column :label="t('dict.value')" align="center" prop="value" />
|
|
|
+ <el-table-column :label="t('common.sort')" align="center" prop="sort" />
|
|
|
+ <el-table-column :label="t('dict.status')" align="center" prop="status">
|
|
|
<template #default="scope">
|
|
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="颜色类型" align="center" prop="colorType" />
|
|
|
+ <el-table-column :label="t('dict.color')" align="center" prop="colorType" />
|
|
|
<el-table-column label="CSS Class" align="center" prop="cssClass" />
|
|
|
- <el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip />
|
|
|
+ <el-table-column :label="t('dict.remark')" align="center" prop="remark" show-overflow-tooltip />
|
|
|
<el-table-column
|
|
|
- label="创建时间"
|
|
|
+ :label="t('dict.createTime')"
|
|
|
align="center"
|
|
|
prop="createTime"
|
|
|
width="180"
|
|
|
:formatter="dateFormatter"
|
|
|
/>
|
|
|
- <el-table-column label="操作" align="center">
|
|
|
+ <el-table-column :label="t('table.action')" align="center">
|
|
|
<template #default="scope">
|
|
|
<el-button
|
|
|
link
|
|
@@ -204,6 +204,7 @@ const handleExport = async () => {
|
|
|
/** 初始化 **/
|
|
|
onMounted(async () => {
|
|
|
await getList()
|
|
|
+ console.log(route.params.dictType)
|
|
|
// 查询字典(精简)列表
|
|
|
dictTypeList.value = await DictTypeApi.getSimpleDictTypeList()
|
|
|
})
|