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
7d571469
Commit
7d571469
authored
Oct 10, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国际化
parent
df03df8d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
22 deletions
+42
-22
th_TH.json
src/i18n/lang/th_TH.json
+12
-2
zh_CN.json
src/i18n/lang/zh_CN.json
+11
-1
index.js
src/router/index.js
+15
-15
index.vue
src/views/system/menu/index.vue
+1
-2
userInfo.vue
src/views/system/user/profile/userInfo.vue
+1
-0
RightPanel.vue
src/views/tool/build/RightPanel.vue
+2
-2
No files found.
src/i18n/lang/th_TH.json
View file @
7d571469
...
...
@@ -2703,7 +2703,7 @@
"用户密码不能为空"
:
"รหัสผ่านผู้ใช้ต้องไม่ว่างเปล่า"
,
"
\"
用户吗?"
:
"
\"
ผู้ใช้ไหม?"
,
"个人信息"
:
"ข้อมูลส่วนบุคล"
,
"用户
"
:
"อีเมล
ผู้ใช้"
,
"用户
邮箱"
:
"กล่องจดหมายของ
ผู้ใช้"
,
"所属部门"
:
"แผนกที่สังกัด"
,
"所属角色"
:
"บทบาทที่สังกัด"
,
"基本资料"
:
"ข้อมูลพื้นฐาน"
,
...
...
@@ -2948,5 +2948,15 @@
"确认要强制同步
\"
"
:
"ยืนยันที่จะซิงค์บังคับ
\"
"
,
"
\"
表结构吗?"
:
"
\"
โครงสร้างตารางไหม?"
,
"复制成功"
:
"คัดลอกสำเร็จ"
,
"泰文名称"
:
"ชื่อภาษาไทย"
"泰文名称"
:
"ชื่อภาษาไทย"
,
"个人中心"
:
"ศูนย์ส่วนบุคคล"
,
"分配用户"
:
"กำหนดผู้ใช้"
,
"规则组成"
:
"องค์ประกอบของกฎ"
,
"库区设置"
:
"การตั้งค่าพื้นที่ห้องสมุด"
,
"使用甘特图排产"
:
"ใช้ Gantt Diagram เพื่อขับไล่การผลิต"
,
"修改生成配置"
:
"แก้ไขการกำหนดค่าการสร้าง"
,
"出厂检验"
:
"การตรวจสอบโรงงาน"
,
"库位设置"
:
"การตั้งค่าไลบรารี"
,
"分配角色"
:
"กำหนดบทบาท"
,
"菜单字段"
:
"menuNameTh"
}
\ No newline at end of file
src/i18n/lang/zh_CN.json
View file @
7d571469
...
...
@@ -2948,5 +2948,15 @@
"确认要强制同步
\"
"
:
"确认要强制同步
\"
"
,
"
\"
表结构吗?"
:
"
\"
表结构吗?"
,
"复制成功"
:
"复制成功"
,
"泰文名称"
:
"泰文名称"
"泰文名称"
:
"泰文名称"
,
"个人中心"
:
"个人中心"
,
"分配用户"
:
"分配用户"
,
"规则组成"
:
"规则组成"
,
"库区设置"
:
"库区设置"
,
"使用甘特图排产"
:
"使用甘特图排产"
,
"修改生成配置"
:
"修改生成配置"
,
"出厂检验"
:
"出厂检验"
,
"库位设置"
:
"库位设置"
,
"分配角色"
:
"分配角色"
,
"菜单字段"
:
"menuName"
}
src/router/index.js
View file @
7d571469
import
Vue
from
'vue'
import
Router
from
'vue-router'
import
i18n
from
'@/i18n'
Vue
.
use
(
Router
)
/* Layout */
...
...
@@ -70,7 +70,7 @@ export const constantRoutes = [
path
:
'index'
,
component
:
()
=>
import
(
'@/views/index'
),
name
:
'Index'
,
meta
:
{
title
:
'首页'
,
icon
:
'dashboard'
,
affix
:
true
}
meta
:
{
title
:
i18n
.
tc
(
'首页'
)
,
icon
:
'dashboard'
,
affix
:
true
}
}
]
},
...
...
@@ -84,7 +84,7 @@ export const constantRoutes = [
path
:
'profile'
,
component
:
()
=>
import
(
'@/views/system/user/profile/index'
),
name
:
'Profile'
,
meta
:
{
title
:
'个人中心'
,
icon
:
'user'
}
meta
:
{
title
:
i18n
.
tc
(
'个人中心'
)
,
icon
:
'user'
}
}
]
}
...
...
@@ -102,7 +102,7 @@ export const dynamicRoutes = [
path
:
'role/:userId(
\\
d+)'
,
component
:
()
=>
import
(
'@/views/system/user/authRole'
),
name
:
'AuthRole'
,
meta
:
{
title
:
'分配角色'
,
activeMenu
:
'/system/user'
}
meta
:
{
title
:
i18n
.
tc
(
'分配角色'
)
,
activeMenu
:
'/system/user'
}
}
]
},
...
...
@@ -116,7 +116,7 @@ export const dynamicRoutes = [
path
:
'user/:roleId(
\\
d+)'
,
component
:
()
=>
import
(
'@/views/system/role/authUser'
),
name
:
'AuthUser'
,
meta
:
{
title
:
'分配用户'
,
activeMenu
:
'/system/role'
}
meta
:
{
title
:
i18n
.
tc
(
'分配用户'
)
,
activeMenu
:
'/system/role'
}
}
]
},
...
...
@@ -130,7 +130,7 @@ export const dynamicRoutes = [
path
:
'index/:dictId(
\\
d+)'
,
component
:
()
=>
import
(
'@/views/system/dict/data'
),
name
:
'Data'
,
meta
:
{
title
:
'字典数据'
,
activeMenu
:
'/system/dict'
}
meta
:
{
title
:
i18n
.
tc
(
'字典数据'
)
,
activeMenu
:
'/system/dict'
}
}
]
},
...
...
@@ -144,7 +144,7 @@ export const dynamicRoutes = [
path
:
'index/:ruleId(
\\
d+)'
,
component
:
()
=>
import
(
'@/views/system/autocode/part'
),
name
:
'AutoCode'
,
meta
:
{
title
:
'规则组成'
,
activeMenu
:
'/system/autocode'
}
meta
:
{
title
:
i18n
.
tc
(
'规则组成'
)
,
activeMenu
:
'/system/autocode'
}
}
]
},
...
...
@@ -158,7 +158,7 @@ export const dynamicRoutes = [
path
:
'index'
,
component
:
()
=>
import
(
'@/views/mes/wm/location/index'
),
name
:
'locationList'
,
meta
:
{
title
:
'库区设置'
,
activeMenu
:
'/mes/wm/location'
}
meta
:
{
title
:
i18n
.
tc
(
'库区设置'
)
,
activeMenu
:
'/mes/wm/location'
}
}
]
},
...
...
@@ -172,7 +172,7 @@ export const dynamicRoutes = [
path
:
'index'
,
component
:
()
=>
import
(
'@/views/mes/wm/area/index'
),
name
:
'areaList'
,
meta
:
{
title
:
'库位设置'
,
activeMenu
:
'/mes/wm/area'
}
meta
:
{
title
:
i18n
.
tc
(
'库位设置'
)
,
activeMenu
:
'/mes/wm/area'
}
}
]
},
...
...
@@ -186,7 +186,7 @@ export const dynamicRoutes = [
path
:
'ganttedit'
,
component
:
()
=>
import
(
"@/views/mes/pro/schedule/ganttedit"
),
name
:
'ganttEdit'
,
meta
:
{
title
:
'使用甘特图排产'
,
activeMenu
:
'/mes/pro/schedule'
}
meta
:
{
title
:
i18n
.
tc
(
'使用甘特图排产'
)
,
activeMenu
:
'/mes/pro/schedule'
}
}
]
},
...
...
@@ -200,7 +200,7 @@ export const dynamicRoutes = [
path
:
'index'
,
component
:
()
=>
import
(
'@/views/monitor/job/log'
),
name
:
'JobLog'
,
meta
:
{
title
:
'调度日志'
,
activeMenu
:
'/monitor/job'
}
meta
:
{
title
:
i18n
.
tc
(
'调度日志'
)
,
activeMenu
:
'/monitor/job'
}
}
]
},
...
...
@@ -214,7 +214,7 @@ export const dynamicRoutes = [
path
:
'index/:tableId(
\\
d+)'
,
component
:
()
=>
import
(
'@/views/tool/gen/editTable'
),
name
:
'GenEdit'
,
meta
:
{
title
:
'修改生成配置'
,
activeMenu
:
'/tool/gen'
}
meta
:
{
title
:
i18n
.
tc
(
'修改生成配置'
)
,
activeMenu
:
'/tool/gen'
}
}
]
},
...
...
@@ -229,21 +229,21 @@ export const dynamicRoutes = [
component
:
()
=>
import
(
'@/views/mes/qc/pendinginspect/iqc'
),
name
:
'iqcadd'
,
props
:
true
,
meta
:
{
title
:
'来料检验'
,
activeMenu
:
'/mes/qc/pendinginspect/iqc'
}
meta
:
{
title
:
i18n
.
tc
(
'来料检验'
)
,
activeMenu
:
'/mes/qc/pendinginspect/iqc'
}
},
{
path
:
'pqc'
,
component
:
()
=>
import
(
'@/views/mes/qc/pendinginspect/pqc'
),
name
:
'pqcadd'
,
props
:
true
,
meta
:
{
title
:
'过程检验'
,
activeMenu
:
'/mes/qc/pendinginspect/pqc'
}
meta
:
{
title
:
i18n
.
tc
(
'过程检验'
)
,
activeMenu
:
'/mes/qc/pendinginspect/pqc'
}
},
{
path
:
'oqc'
,
component
:
()
=>
import
(
'@/views/mes/qc/oqc/index'
),
name
:
'oqcadd'
,
props
:
true
,
meta
:
{
title
:
'出厂检验'
,
activeMenu
:
'/mes/qc/pendinginspect/oqc'
}
meta
:
{
title
:
i18n
.
tc
(
'出厂检验'
)
,
activeMenu
:
'/mes/qc/pendinginspect/oqc'
}
}
]
}
...
...
src/views/system/menu/index.vue
View file @
7d571469
...
...
@@ -282,7 +282,6 @@ import { listMenu, getMenu, delMenu, addMenu, updateMenu } from "@/api/system/me
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
IconSelect
from
"@/components/IconSelect"
;
export
default
{
name
:
"Menu"
,
dicts
:
[
'sys_show_hide'
,
'sys_normal_disable'
],
...
...
@@ -350,7 +349,7 @@ export default {
}
return
{
id
:
node
.
menuId
,
label
:
localStorage
.
getItem
(
"lang"
)
===
'th'
&&
node
.
menuNameTh
?
node
.
menuNameTh
:
menuName
,
label
:
node
[
this
.
$t
(
'菜单字段'
)]
?
node
[
this
.
$t
(
'菜单字段'
)]
:
node
.
menuName
,
children
:
node
.
children
};
},
...
...
src/views/system/user/profile/userInfo.vue
View file @
7d571469
...
...
@@ -85,6 +85,7 @@ export default {
updateUserProfile
(
this
.
user
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'common.edit_success'
));
setLocal
(
this
.
user
.
locale
.
substring
(
0
,
2
))
this
.
$store
.
dispatch
(
'updateRoutes'
)
});
}
});
...
...
src/views/tool/build/RightPanel.vue
View file @
7d571469
...
...
@@ -530,7 +530,7 @@
</template>
<
script
>
import
i18n
from
'@/i18n'
import
{
isArray
}
from
'util'
import
draggable
from
'vuedraggable'
...
...
@@ -545,7 +545,7 @@ import {
const
dateTimeFormat
=
{
date
:
'yyyy-MM-dd'
,
week
:
this
.
$t
(
'yyyy 第 WW 周'
),
week
:
i18n
.
tc
(
'yyyy 第 WW 周'
),
month
:
'yyyy-MM'
,
year
:
'yyyy'
,
datetime
:
'yyyy-MM-dd HH:mm:ss'
,
...
...
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