From 3cb0bd2d4f7f1f58f11a6ecdde2be16145499b54 Mon Sep 17 00:00:00 2001 From: donghao Date: Fri, 2 Aug 2024 10:59:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=A1=A5=E7=82=B9=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/zh-CN.yaml | 1 + src/router/modules/deviceScene.ts | 2 +- src/router/modules/deviceSetting.ts | 23 ++++++++++ src/views/deviceSetting/index.vue | 70 +++++++++++++++++++++++++++++ 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 src/router/modules/deviceSetting.ts create mode 100644 src/views/deviceSetting/index.vue diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 1b29902..a6f434b 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -26,6 +26,7 @@ menus: hshome: 工作台 hsdevice: 设备列表 hsdeviceScene: 设备现场 + hsdeviceSetting: 设备布点 hsModelList: 模型列表 hsserver: 服务器 hstest: 测试 diff --git a/src/router/modules/deviceScene.ts b/src/router/modules/deviceScene.ts index 0750a6f..96a49ee 100644 --- a/src/router/modules/deviceScene.ts +++ b/src/router/modules/deviceScene.ts @@ -2,7 +2,7 @@ * @Author: donghao donghao@supervision.ltd * @Date: 2024-03-19 15:44:27 * @LastEditors: donghao donghao@supervision.ltd - * @LastEditTime: 2024-03-25 09:42:50 + * @LastEditTime: 2024-08-02 10:56:44 * @FilePath: \General-AI-Platform-Web-Client\src\router\modules\deviceScene.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ diff --git a/src/router/modules/deviceSetting.ts b/src/router/modules/deviceSetting.ts new file mode 100644 index 0000000..4462661 --- /dev/null +++ b/src/router/modules/deviceSetting.ts @@ -0,0 +1,23 @@ +/* + * @Author: donghao donghao@supervision.ltd + * @Date: 2024-08-02 10:50:24 + * @LastEditors: donghao donghao@supervision.ltd + * @LastEditTime: 2024-08-02 10:57:01 + * @FilePath: \General-AI-Platform-Web-Client\src\router\modules\deviceSetting.ts + * @Description: 设备布点路由模块 + */ +import { $t } from "@/plugins/i18n"; + +export default { + path: "/deviceSetting", + meta: { + title: $t("menus.hsdeviceSetting"), + icon: "icon-shebeiguanli-weixuan", + // showLink: false, + bodyClass: "deviceSetting_page", + rank: 8, + roles: ["admin", "common"] + }, + component: () => import("@/views/deviceSetting/index.vue"), + name: "DeviceSetting" +} as RouteConfigsTable; diff --git a/src/views/deviceSetting/index.vue b/src/views/deviceSetting/index.vue new file mode 100644 index 0000000..551e83a --- /dev/null +++ b/src/views/deviceSetting/index.vue @@ -0,0 +1,70 @@ + + +