Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-ui
Commits
df03df8d
Commit
df03df8d
authored
Oct 09, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国际化
parent
5fbf0157
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2927 additions
and
2908 deletions
+2927
-2908
th_TH.json
src/i18n/lang/th_TH.json
+2904
-2903
zh_CN.json
src/i18n/lang/zh_CN.json
+2
-1
index.vue
src/views/system/menu/index.vue
+21
-4
No files found.
src/i18n/lang/th_TH.json
View file @
df03df8d
This diff is collapsed.
Click to expand it.
src/i18n/lang/zh_CN.json
View file @
df03df8d
...
...
@@ -2947,5 +2947,6 @@
"成功生成到自定义路径:"
:
"成功生成到自定义路径:"
,
"确认要强制同步
\"
"
:
"确认要强制同步
\"
"
,
"
\"
表结构吗?"
:
"
\"
表结构吗?"
,
"复制成功"
:
"复制成功"
"复制成功"
:
"复制成功"
,
"泰文名称"
:
"泰文名称"
}
src/views/system/menu/index.vue
View file @
df03df8d
...
...
@@ -9,6 +9,14 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('泰文名称')"
prop=
"menuNameTh"
>
<el-input
v-model=
"queryParams.menuNameTh"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
:label=
"$t('common.status')"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
clearable
>
<el-option
...
...
@@ -57,6 +65,7 @@
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}"
>
<el-table-column
prop=
"menuName"
:label=
"$t('菜单名称')"
:show-overflow-tooltip=
"true"
/>
<el-table-column
prop=
"menuNameTh"
:label=
"$t('泰文名称')"
:show-overflow-tooltip=
"true"
/>
<el-table-column
prop=
"icon"
:label=
"$t('图标')"
align=
"center"
width=
"100"
>
<template
slot-scope=
"scope"
>
<svg-icon
:icon-class=
"scope.row.icon"
/>
...
...
@@ -117,7 +126,7 @@
/>
</el-form-item>
</el-col>
<el-col
:span=
"
24
"
>
<el-col
:span=
"
12
"
>
<el-form-item
:label=
"$t('菜单类型')"
prop=
"menuType"
>
<el-radio-group
v-model=
"form.menuType"
>
<el-radio
label=
"M"
>
{{$t('目录')}}
</el-radio>
...
...
@@ -126,6 +135,11 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('显示排序')"
prop=
"orderNum"
>
<el-input-number
v-model=
"form.orderNum"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
</el-col>
<el-col
:span=
"24"
v-if=
"form.menuType != 'F'"
>
<el-form-item
:label=
"$t('菜单图标')"
prop=
"icon"
>
<el-popover
...
...
@@ -154,10 +168,11 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('
显示排序')"
prop=
"orderNum
"
>
<el-input
-number
v-model=
"form.orderNum"
controls-position=
"right"
:min=
"0
"
/>
<el-form-item
:label=
"$t('
泰文名称')"
prop=
"menuNameTh
"
>
<el-input
v-model=
"form.menuNameTh
"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
v-if=
"form.menuType != 'F'"
>
<el-form-item>
<span
slot=
"label"
>
...
...
@@ -293,6 +308,7 @@ export default {
// 查询参数
queryParams
:
{
menuName
:
undefined
,
menuNameTh
:
undefined
,
visible
:
undefined
},
// 表单参数
...
...
@@ -334,7 +350,7 @@ export default {
}
return
{
id
:
node
.
menuId
,
label
:
node
.
menuName
,
label
:
localStorage
.
getItem
(
"lang"
)
===
'th'
&&
node
.
menuNameTh
?
node
.
menuNameTh
:
menuName
,
children
:
node
.
children
};
},
...
...
@@ -358,6 +374,7 @@ export default {
menuId
:
undefined
,
parentId
:
0
,
menuName
:
undefined
,
menuNameTh
:
undefined
,
icon
:
undefined
,
menuType
:
"M"
,
orderNum
:
undefined
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment