From daa59776e367eeb38573336ee5be381ebaf4b3c6 Mon Sep 17 00:00:00 2001 From: z Date: Fri, 19 Jan 2024 08:21:45 +0800 Subject: [PATCH] init --- package-lock.json | 28 +- package.json | 1 + src/assets/js/asyncRouter.js | 78 +++++ src/components/tooltip_img/index.vue | 3 +- src/layout/header/index.vue | 37 +-- src/pinia/miscellaneous.js | 18 -- src/request/dynamic_evaluation.js | 8 + src/request/off_duty_management.js | 5 + src/request/risk_statement.js | 11 + .../enterprise_report/index.vue | 111 +------ .../risk_control_menu/add.vue | 281 ++++++++++++++++++ .../components/assessment_results.vue | 52 ++++ .../risk_control_menu/index.vue | 120 ++++++++ .../components/select_risk.vue | 2 +- .../components/un_qualified.vue | 4 +- .../leave/components/approval.vue | 73 +++++ .../leave/components/cancel.vue | 64 ++++ .../leave/components/edit.vue | 108 +++++++ src/views/off_duty_management/leave/index.vue | 69 ++++- .../login_record/index.vue | 98 ++++++ .../risk_control/ledger/components/add.vue | 2 +- .../emergency_response_card/index.vue | 9 + .../job_notification_card/index.vue | 88 ++++++ .../risk_four_color_chart/components/add.vue | 101 +++++++ .../risk_four_color_chart/index.vue | 203 +++++++++++++ .../risk_notification_card/index.vue | 62 ++++ .../index.vue | 9 + 27 files changed, 1490 insertions(+), 155 deletions(-) delete mode 100644 src/pinia/miscellaneous.js create mode 100644 src/request/dynamic_evaluation.js create mode 100644 src/request/risk_statement.js create mode 100644 src/views/dynamic_evaluation/risk_control_menu/add.vue create mode 100644 src/views/dynamic_evaluation/risk_control_menu/components/assessment_results.vue create mode 100644 src/views/dynamic_evaluation/risk_control_menu/index.vue create mode 100644 src/views/off_duty_management/leave/components/approval.vue create mode 100644 src/views/off_duty_management/leave/components/cancel.vue create mode 100644 src/views/off_duty_management/leave/components/edit.vue create mode 100644 src/views/off_duty_management/login_record/index.vue create mode 100644 src/views/risk_statement/emergency_response_card/index.vue create mode 100644 src/views/risk_statement/job_notification_card/index.vue create mode 100644 src/views/risk_statement/risk_four_color_chart/components/add.vue create mode 100644 src/views/risk_statement/risk_four_color_chart/index.vue create mode 100644 src/views/risk_statement/risk_notification_card/index.vue create mode 100644 src/views/risk_statement/safety_production_commitment_card/index.vue 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 @@