diff --git a/.env.development b/.env.development
index af9ba00..e881401 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
# 页面标题
-VITE_APP_TITLE = 若依管理系统
+VITE_APP_TITLE = 智能缝纫管理系统
# 开发环境配置
VITE_APP_ENV = 'development'
diff --git a/.env.production b/.env.production
index cbabf89..1b9de68 100644
--- a/.env.production
+++ b/.env.production
@@ -1,5 +1,5 @@
# 页面标题
-VITE_APP_TITLE = 若依管理系统
+VITE_APP_TITLE = 智能缝纫管理系统
# 生产环境配置
VITE_APP_ENV = 'production'
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 489cba1..f2f0ace 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -2,8 +2,8 @@
- {{ item.meta.title }}
- {{ item.meta.title }}
+ {{ menusTitle(item.meta.title) }}
+ {{ menusTitle(item.meta.title) }}
@@ -13,7 +13,15 @@
const route = useRoute();
const router = useRouter();
const levelList = ref([])
-
+import { useI18n } from 'vue-i18n'
+let {te,t} = useI18n();
+//菜单栏国际化
+function menusTitle(item) {
+ if (te("menus." + item)) {
+ return t("menus." + item)
+ }
+ return item
+}
function getBreadcrumb() {
// only show routes with meta.title
let matched = route.matched.filter(item => item.meta && item.meta.title);
diff --git a/src/lang/i18n-en-US.js b/src/lang/i18n-en-US.js
index 6953b04..2bfdfd4 100644
--- a/src/lang/i18n-en-US.js
+++ b/src/lang/i18n-en-US.js
@@ -2,21 +2,25 @@ export default {
"menus":{
"home": "Home",
"dashboard": "Dashboard",
- "system": "System",
- "user": "User",
- "role": "Role",
- "menu": "Menu",
- "dept": "Dept",
- "dict": "Dict",
- "config": "Config",
- "notice": "Notice",
- "log": "Log",
- "loginLog": "Login Log",
- "task": "Task",
- "druid": "Druid",
- "druidWallBoard": "Wall Board",
- "druidSql": "SQL",
- "druidStat": "Stat",
+ "Device": "Device",
+ "Product": "Product",
+ "System": "System",
+ "User": "User",
+ "Role": "Role",
+ "Menu": "Menu",
+ "Dept": "Dept",
+ "Job": "Job",
+ "Dict": "Dict",
+ "Config": "Config",
+ "Notice": "Notice",
+ "Log": "Log",
+ "LoginLog": "LoginLog",
+ "Task": "Task",
+ "Druid": "Druid",
+ "Tools": "Tools",
+ "DruidWallBoard": "DruidWallBoard",
+ "DruidSql": "DruidSql",
+ "DruidStat": "DruidStat",
},
"common": {
"add": "Add",
diff --git a/src/lang/i18n-zh-CN.js b/src/lang/i18n-zh-CN.js
index 47eca40..c10c193 100644
--- a/src/lang/i18n-zh-CN.js
+++ b/src/lang/i18n-zh-CN.js
@@ -3,21 +3,25 @@ export default {
"menus":{
"home": "首页",
"dashboard": "仪表盘",
- "system": "系统管理",
- "user": "用户管理",
- "role": "角色管理",
- "menu": "菜单管理",
- "dept": "部门管理",
- "dict": "字典管理",
- "config": "参数管理",
- "notice": "通知公告",
- "log": "操作日志",
- "loginLog": "登录日志",
- "task": "定时任务",
- "druid": "监控管理",
- "druidWallBoard": "大盘监控",
- "druidSql": "SQL监控",
- "druidStat": "统计监控",
+ "Device": "设备管理",
+ "Product": "产品管理",
+ "System": "系统管理",
+ "User": "用户管理",
+ "Role": "角色管理",
+ "Menu": "菜单管理",
+ "Dept": "部门管理",
+ "Job": "岗位管理",
+ "Dict": "字典管理",
+ "Config": "参数管理",
+ "Notice": "通知公告",
+ "Log": "操作日志",
+ "LoginLog": "登录日志",
+ "Task": "定时任务",
+ "Druid": "系统监控",
+ "Tools": "系统工具",
+ "DruidWallBoard": "大盘监控",
+ "DruidSql": "SQL监控",
+ "DruidStat": "统计监控",
},
"common":{
"add": "新增",
diff --git a/src/views/casm/product/add_edit.vue b/src/views/casm/product/add_edit.vue
new file mode 100644
index 0000000..6a38617
--- /dev/null
+++ b/src/views/casm/product/add_edit.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/casm/product/index.vue b/src/views/casm/product/index.vue
index bbc827c..a160a3b 100644
--- a/src/views/casm/product/index.vue
+++ b/src/views/casm/product/index.vue
@@ -1,8 +1,202 @@
- 产品管理
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index bb486e9..83089fb 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -55,7 +55,11 @@
:default-expand-all="isExpandAll"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
>
-
+
+
+ {{ menusTitle(scope.row.menuName) }}
+
+
@@ -279,6 +283,8 @@
import { addMenu, delMenu, getMenu, listMenu, updateMenu } from "@/api/system/menu";
import SvgIcon from "@/components/SvgIcon";
import IconSelect from "@/components/IconSelect";
+import { useI18n } from 'vue-i18n'
+let {te,t} = useI18n();
const { proxy } = getCurrentInstance();
const { sys_show_hide, sys_normal_disable } = proxy.useDict("sys_show_hide", "sys_normal_disable");
@@ -293,6 +299,14 @@ const isExpandAll = ref(false);
const refreshTable = ref(true);
const iconSelectRef = ref(null);
+
+//菜单栏国际化
+function menusTitle(item) {
+ if (te("menus." + item)) {
+ return t("menus." + item)
+ }
+ return item
+}
const data = reactive({
form: {},
queryParams: {