diff --git a/src/components/advanced/table-row-check-alert.vue b/src/components/advanced/table-row-check-alert.vue
index 729aa19a..db4e32d6 100644
--- a/src/components/advanced/table-row-check-alert.vue
+++ b/src/components/advanced/table-row-check-alert.vue
@@ -1,4 +1,6 @@
-
+
handleAddType()"
/>
{
size="small"
icon="material-symbols:download-rounded"
class="h-18px text-icon"
- tooltip-content="导出字典类型"
+ :tooltip-content="$t('page.system.dict.exportDictType')"
@click.stop="() => handleExportType()"
/>
handleResetTreeData()"
/>
@@ -354,7 +354,7 @@ const selectable = computed(() => {
@update:selected-keys="handleClickTree"
>
-
+
@@ -362,7 +362,7 @@ const selectable = computed(() => {
-
+
{
- 刷新缓存
+ {{ $t('page.system.dict.refreshCache') }}
diff --git a/src/views/system/dict/modules/dict-data-operate-drawer.vue b/src/views/system/dict/modules/dict-data-operate-drawer.vue
index efdc37bf..f2513440 100644
--- a/src/views/system/dict/modules/dict-data-operate-drawer.vue
+++ b/src/views/system/dict/modules/dict-data-operate-drawer.vue
@@ -34,8 +34,8 @@ const { createRequiredRule } = useFormRules();
const title = computed(() => {
const titles: Record = {
- add: '新增字典数据',
- edit: '编辑字典数据'
+ add: $t('page.system.dict.addDictData'),
+ edit: $t('page.system.dict.editDictData')
};
return titles[props.operateType];
});
@@ -68,9 +68,9 @@ function createDefaultModel(): Model {
type RuleKey = Extract;
const rules: Record = {
- dictCode: createRequiredRule('字典编码不能为空'),
- dictLabel: createRequiredRule('字典标签不能为空'),
- dictValue: createRequiredRule('字典键值不能为空')
+ dictCode: createRequiredRule($t('page.system.dict.form.dictCode.invalid')),
+ dictLabel: createRequiredRule($t('page.system.dict.form.dictLabel.invalid')),
+ dictValue: createRequiredRule($t('page.system.dict.form.dictValue.invalid'))
};
function handleUpdateModelWhenEdit() {
@@ -146,32 +146,41 @@ function renderTagLabel(option: { label: string; value: string }) {
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/src/views/system/dict/modules/dict-data-search.vue b/src/views/system/dict/modules/dict-data-search.vue
index 4c0cfbd3..e1ea2451 100644
--- a/src/views/system/dict/modules/dict-data-search.vue
+++ b/src/views/system/dict/modules/dict-data-search.vue
@@ -34,8 +34,14 @@ async function search() {
-
-
+
+
diff --git a/src/views/system/dict/modules/dict-type-operate-drawer.vue b/src/views/system/dict/modules/dict-type-operate-drawer.vue
index c1cdb51a..61aa1172 100644
--- a/src/views/system/dict/modules/dict-type-operate-drawer.vue
+++ b/src/views/system/dict/modules/dict-type-operate-drawer.vue
@@ -32,8 +32,8 @@ const { createRequiredRule } = useFormRules();
const title = computed(() => {
const titles: Record = {
- add: '新增字典类型',
- edit: '编辑字典类型'
+ add: $t('page.system.dict.addDictType'),
+ edit: $t('page.system.dict.editDictType')
};
return titles[props.operateType];
});
@@ -53,9 +53,9 @@ function createDefaultModel(): Model {
type RuleKey = Extract;
const rules: Record = {
- dictId: createRequiredRule('字典主键不能为空'),
- dictName: createRequiredRule('字典名称不能为空'),
- dictType: createRequiredRule('字典类型不能为空')
+ dictId: createRequiredRule($t('page.system.dict.form.dictValue.invalid')),
+ dictName: createRequiredRule($t('page.system.dict.form.dictName.invalid')),
+ dictType: createRequiredRule($t('page.system.dict.form.dictType.invalid'))
};
function handleUpdateModelWhenEdit() {
@@ -106,14 +106,19 @@ watch(visible, () => {
-
-
+
+
-
-
+
+
-
-
+
+