Sfoglia il codice sorgente

feat:新增左侧菜单图标

sunqijun 1 mese fa
parent
commit
919fb7a5ad

+ 1 - 0
src/assets/svg/book-open-text.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1981FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open-text-icon lucide-book-open-text"><path d="M12 7v14"/><path d="M16 12h2"/><path d="M16 8h2"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/><path d="M6 12h2"/><path d="M6 8h2"/></svg>

+ 1 - 0
src/assets/svg/book-text.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1981FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-text-icon lucide-book-text"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><path d="M8 11h8"/><path d="M8 7h6"/></svg>

File diff suppressed because it is too large
+ 1 - 0
src/assets/svg/circle-star.svg


+ 1 - 0
src/assets/svg/circuit-board.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1981FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circuit-board-icon lucide-circuit-board"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M11 9h4a2 2 0 0 0 2-2V3"/><circle cx="9" cy="9" r="2"/><path d="M7 21v-4a2 2 0 0 1 2-2h4"/><circle cx="15" cy="15" r="2"/></svg>

+ 1 - 0
src/assets/svg/newspaper.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1981FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-newspaper-icon lucide-newspaper"><path d="M15 18h-5"/><path d="M18 14h-8"/><path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2"/><rect width="8" height="4" x="10" y="6" rx="1"/></svg>

File diff suppressed because it is too large
+ 1 - 0
src/assets/svg/scan-eye.svg


+ 1 - 0
src/assets/svg/triangle-alert.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1981FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-alert-icon lucide-triangle-alert"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>

+ 8 - 0
src/router/router-icons.ts

@@ -93,4 +93,12 @@ export const constantRouterIcon = {
   pdstRiskIdentification: renderSvg('pdstRiskIdentification'),
   pdstResponsibility: renderSvg('pdstResponsibility'),
   pdstDataoverview: renderSvg('pdstDataoverview'),
+  // 生产安全侧边菜单图标
+  BookOpenText: renderSvg('book-open-text'),
+  BookText: renderSvg('book-text'),
+  CircleStar: renderSvg('circle-star'),
+  ScanEye: renderSvg('scan-eye'),
+  TriangleAlert: renderSvg('triangle-alert'),
+  CircuitBoard: renderSvg('circuit-board'),
+  Newspaper: renderSvg('newspaper'),
 };

+ 1 - 1
src/router/routers/production-safety-router/hiddenTroubleInvestigationAndGovernance.ts

@@ -8,7 +8,7 @@
     redirect: '/work-safety/hidden-trouble-investigation-and-governance/employee-report-hidden-trouble-management',
     meta: {
       title: '隐患排查治理',
-      icon: 'OverviewIcon',
+      icon: 'TriangleAlert',
       isRoot: false,
       hidden: false,
       noCache: false,

+ 1 - 1
src/router/routers/production-safety-router/productionSafetySystem.ts

@@ -8,7 +8,7 @@ const productionSafetySystemRoutes: RouteComponent[] = [{
   redirect: '/work-safety/production-safety-system/safety-assessment',
   meta: {
     title: '生产安全体系',
-    icon: 'OverviewIcon',
+    icon: 'CircuitBoard',
     isRoot: false,
     hidden: false,
     noCache: false,

+ 1 - 1
src/router/routers/production-safety-router/responsibility-implementation.ts

@@ -9,7 +9,7 @@ const responsibilityImplementationRoutes: RouteComponent[] = [{
       redirect: '',
       meta: {
         title: '安全责任落实',
-        icon: 'OverviewIcon',
+        icon: 'Newspaper',
         isRoot: false,
         hidden: false,
         noCache: false,

+ 1 - 1
src/router/routers/production-safety-router/risk-identification-and-control.ts

@@ -9,7 +9,7 @@ const riskIdentificationAndControlRoutes: RouteComponent[] = [{
   redirect: '',
   meta: {
     title: '风险识别与管控',
-    icon: 'OverviewIcon',
+    icon: 'ScanEye',
     isRoot: false,
     hidden: false,
     noCache: false,

+ 1 - 1
src/router/routers/production-safety-router/safetyAssessment.ts

@@ -8,7 +8,7 @@
     redirect: '/work-safety/safety-assessment/inventory',
     meta: {
       title: '安全奖惩与考核',
-      icon: 'OverviewIcon',
+      icon: 'CircleStar',
       isRoot: false,
       hidden: false,
       noCache: false,

+ 1 - 1
src/router/routers/production-safety-router/safetyCulture.ts

@@ -8,7 +8,7 @@ const safetyCultureRoutes: RouteComponent[] = [{
   redirect: '/work-safety/safety-culture/accident-case-management',
   meta: {
     title: '安全文化',
-    icon: 'OverviewIcon',
+    icon: 'BookText',
     isRoot: false,
     hidden: false,
     noCache: false,

+ 1 - 1
src/router/routers/production-safety-router/safetyTrainingAndEducation.ts

@@ -8,7 +8,7 @@ const safetyTrainingAndEducationRoutes: RouteComponent[] = [{
   redirect: '/work-safety/safety-training-and-education/education-training-plan-management',
   meta: {
     title: '安全教育培训',
-    icon: 'OverviewIcon',
+    icon: 'BookOpenText',
     isRoot: false,
     hidden: false,
     noCache: false,