diff --git a/package-lock.json b/package-lock.json index 4a2e42a..3062122 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "jspdf": "^2.5.1", "lodash-es": "^4.17.21", "mitt": "^3.0.1", + "nanoid": "^5.0.4", "normalize.css": "^8.0.1", "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^3.2.1", @@ -4198,20 +4199,14 @@ "dev": true }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + "version": "5.0.4", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-5.0.4.tgz", + "integrity": "sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==", "bin": { - "nanoid": "bin/nanoid.cjs" + "nanoid": "bin/nanoid.js" }, "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "node": "^18 || >=20" } }, "node_modules/natural-compare": { @@ -4633,6 +4628,17 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, + "node_modules/postcss/node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", diff --git a/package.json b/package.json index da0bcef..95fca50 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "jspdf": "^2.5.1", "lodash-es": "^4.17.21", "mitt": "^3.0.1", + "nanoid": "^5.0.4", "normalize.css": "^8.0.1", "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^3.2.1", diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index 20e8413..a8072c0 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -675,6 +675,84 @@ export default [ meta: { title: "离岗管理", isSubMenu: false }, component: "off_duty_management/leave/index", }, + { + path: "/off_duty_management/login_record", + meta: { title: "登录记录", isSubMenu: false }, + component: "off_duty_management/login_record/index", + }, + ], + }, + { + path: "/risk_statement", + redirect: "/risk_statement/risk_four_color_chart", + meta: { title: "风险提示", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/risk_statement/risk_four_color_chart", + meta: { title: "风险四色图", isSubMenu: false }, + component: "risk_statement/risk_four_color_chart/index", + }, + { + path: "/risk_statement/risk_notification_card", + meta: { title: "风险告知卡", isSubMenu: false }, + component: "risk_statement/risk_notification_card/index", + }, + { + path: "/risk_statement/job_notification_card", + meta: { title: "岗位告知卡", isSubMenu: false }, + component: "risk_statement/job_notification_card/index", + }, + { + path: "/risk_statement/safety_production_commitment_card", + meta: { title: "安全生产承诺卡", isSubMenu: false }, + component: "risk_statement/safety_production_commitment_card/index", + }, + { + path: "/risk_statement/emergency_response_card", + meta: { title: "应急处置卡", isSubMenu: false }, + component: "risk_statement/emergency_response_card/index", + }, + ], + }, + { + path: "/dynamic_evaluation", + redirect: "/dynamic_evaluation/risk_control_menu", + meta: { title: "动态评估", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/dynamic_evaluation/risk_control_menu", + meta: { title: "风险管控动态评估菜单", isSubMenu: false }, + component: "children", + children: [ + { path: "", component: "dynamic_evaluation/risk_control_menu/index" }, + { + path: "/dynamic_evaluation/risk_control_menu/add", + meta: { + title: "新增", + activeMenu: "/dynamic_evaluation/risk_control_menu", + }, + component: "dynamic_evaluation/risk_control_menu/add", + }, + { + path: "/dynamic_evaluation/risk_control_menu/view", + meta: { + title: "查看", + activeMenu: "/dynamic_evaluation/risk_control_menu", + }, + component: "dynamic_evaluation/risk_control_menu/add", + }, + { + path: "/dynamic_evaluation/risk_control_menu/edit", + meta: { + title: "编辑", + activeMenu: "/dynamic_evaluation/risk_control_menu", + }, + component: "dynamic_evaluation/risk_control_menu/add", + }, + ], + }, ], }, { diff --git a/src/components/tooltip_img/index.vue b/src/components/tooltip_img/index.vue index c5d13eb..2feaa3c 100644 --- a/src/components/tooltip_img/index.vue +++ b/src/components/tooltip_img/index.vue @@ -1,8 +1,9 @@