From 5fd691c7b552d47bcfb2b9303c37ee74023832cb Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 17 Nov 2025 20:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontent/ops_vue_js/package-lock.json | 7 ++ frontent/ops_vue_js/package.json | 1 + .../ops_vue_js/src/components/HeardMain.vue | 2 +- .../ops_vue_js/src/components/datePicker.vue | 66 ++++++++++++++ .../src/components/settingNavigation.vue | 32 +++++++ frontent/ops_vue_js/src/i18n/en.json | 23 +++++ frontent/ops_vue_js/src/i18n/zh-CN.json | 23 +++++ frontent/ops_vue_js/src/router/index.js | 5 ++ .../ops_vue_js/src/views/settings/account.vue | 88 +++++++++++++++++++ 9 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 frontent/ops_vue_js/src/components/datePicker.vue create mode 100644 frontent/ops_vue_js/src/components/settingNavigation.vue create mode 100644 frontent/ops_vue_js/src/views/settings/account.vue diff --git a/frontent/ops_vue_js/package-lock.json b/frontent/ops_vue_js/package-lock.json index 15a8c5d..e746c32 100644 --- a/frontent/ops_vue_js/package-lock.json +++ b/frontent/ops_vue_js/package-lock.json @@ -12,6 +12,7 @@ "@tabler/icons-vue": "^3.35.0", "axios": "^1.13.2", "bootstrap": "^5.3.8", + "litepicker": "^2.0.12", "pinia": "^3.0.4", "vue": "^3.5.22", "vue-i18n": "^11.1.12", @@ -2349,6 +2350,12 @@ "dev": true, "license": "MIT" }, + "node_modules/litepicker": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/litepicker/-/litepicker-2.0.12.tgz", + "integrity": "sha512-1N0sZJca/eALvS1hbJsVqKXwJAmp0BsJn73kZKWGGLjZkvjKr7HXGPV+/shu60aEY/JXoOg2XUmo7hbdIOsFpQ==", + "license": "MIT" + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", diff --git a/frontent/ops_vue_js/package.json b/frontent/ops_vue_js/package.json index 6ec4c15..1d3b721 100644 --- a/frontent/ops_vue_js/package.json +++ b/frontent/ops_vue_js/package.json @@ -16,6 +16,7 @@ "@tabler/icons-vue": "^3.35.0", "axios": "^1.13.2", "bootstrap": "^5.3.8", + "litepicker": "^2.0.12", "pinia": "^3.0.4", "vue": "^3.5.22", "vue-i18n": "^11.1.12", diff --git a/frontent/ops_vue_js/src/components/HeardMain.vue b/frontent/ops_vue_js/src/components/HeardMain.vue index 9f3b915..bcfd566 100644 --- a/frontent/ops_vue_js/src/components/HeardMain.vue +++ b/frontent/ops_vue_js/src/components/HeardMain.vue @@ -213,7 +213,7 @@ onMounted(() => { {{ t("message.user_home") }} - {{ + {{ t("message.user_settings") }} {{ diff --git a/frontent/ops_vue_js/src/components/datePicker.vue b/frontent/ops_vue_js/src/components/datePicker.vue new file mode 100644 index 0000000..5a821a8 --- /dev/null +++ b/frontent/ops_vue_js/src/components/datePicker.vue @@ -0,0 +1,66 @@ + + + diff --git a/frontent/ops_vue_js/src/components/settingNavigation.vue b/frontent/ops_vue_js/src/components/settingNavigation.vue new file mode 100644 index 0000000..fe15ead --- /dev/null +++ b/frontent/ops_vue_js/src/components/settingNavigation.vue @@ -0,0 +1,32 @@ + + + diff --git a/frontent/ops_vue_js/src/i18n/en.json b/frontent/ops_vue_js/src/i18n/en.json index 81fb154..af05767 100644 --- a/frontent/ops_vue_js/src/i18n/en.json +++ b/frontent/ops_vue_js/src/i18n/en.json @@ -47,6 +47,29 @@ "preferences": "Preferences", "administrator": "Administrator" }, + "settings": { + "account_settings": "Account Settings", + "my_account": "My Account", + "profile_information": "Profile Information", + "change_avatar": "Change Avatar", + "change_email": "Change Email", + "name": "Name", + "remark": "Remark", + "email": "Email", + "gender": "Gender", + "male": "Male", + "female": "Female", + "birthday": "Birthday", + "admin": "Admin", + "website_settings": "Website Settings", + "site_name": "Site Name", + "logo_settings": "Logo Settings", + "site_description": "Site Description", + "site_keywords": "Site Keywords", + "save_changes": "Save Changes", + "password": "Password", + "set_new_password": "Set New Password" + }, "button": { "submit": "Submit", "cancel": "Cancel", diff --git a/frontent/ops_vue_js/src/i18n/zh-CN.json b/frontent/ops_vue_js/src/i18n/zh-CN.json index ce80308..66bcda7 100644 --- a/frontent/ops_vue_js/src/i18n/zh-CN.json +++ b/frontent/ops_vue_js/src/i18n/zh-CN.json @@ -47,6 +47,29 @@ "preferences": "偏好设置", "administrator": "管理员" }, + "settings": { + "account_settings": "个人设置", + "my_account": "我的账户", + "profile_information": "个人信息", + "change_avatar": "更改头像", + "change_email": "更改邮箱", + "name": "姓名", + "remark": "备注", + "email": "邮箱", + "gender": "性别", + "male": "男", + "female": "女", + "birthday": "生日", + "admin": "管理员", + "website_settings":"网站设置", + "site_name": "网站名称", + "logo_settings": "Logo设置", + "site_description": "网站描述", + "site_keywords": "网站关键词", + "save_changes": "保存更改", + "password": "密码", + "set_new_password": "设置新密码" + }, "button": { "submit": "提交", "cancel": "取消", diff --git a/frontent/ops_vue_js/src/router/index.js b/frontent/ops_vue_js/src/router/index.js index a991e0c..788290f 100644 --- a/frontent/ops_vue_js/src/router/index.js +++ b/frontent/ops_vue_js/src/router/index.js @@ -45,6 +45,11 @@ const router = createRouter({ path: "/admin", name: "admin", component: () => import("../views/adminView.vue"), + }, + { + path: "/settings/account", + name: "settings account", + component: () => import("../views/settings/account.vue"), }, ], }); diff --git a/frontent/ops_vue_js/src/views/settings/account.vue b/frontent/ops_vue_js/src/views/settings/account.vue new file mode 100644 index 0000000..f42cfd3 --- /dev/null +++ b/frontent/ops_vue_js/src/views/settings/account.vue @@ -0,0 +1,88 @@ + + +