Przeglądaj źródła

feat(package): 添加 echarts 图表库依赖

- 在 package.json 中添加 echarts 6.0.0 版本依赖
- 更新 package-lock.json 同步添加 echarts 及其依赖项 tslib 和 zrender
- 添加统计分析相关路由配置
- 新增统计分析页面路由:收据统计、退据统计
- 为新路由页面设置基础路径和图标信息
nahida 7 miesięcy temu
rodzic
commit
0e6657fe3e
3 zmienionych plików z 45 dodań i 0 usunięć
  1. 26 0
      package-lock.json
  2. 1 0
      package.json
  3. 18 0
      src/router/route.ts

+ 26 - 0
package-lock.json

@@ -12,6 +12,7 @@
         "@vueuse/core": "^13.4.0",
         "axios": "^1.10.0",
         "docx-preview": "^0.3.5",
+        "echarts": "^6.0.0",
         "element-plus": "^2.10.2",
         "lucide-vue-next": "^0.525.0",
         "pinia": "^3.0.1",
@@ -3729,6 +3730,16 @@
       "dev": true,
       "license": "MIT"
     },
+    "node_modules/echarts": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/echarts/-/echarts-6.0.0.tgz",
+      "integrity": "sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==",
+      "license": "Apache-2.0",
+      "dependencies": {
+        "tslib": "2.3.0",
+        "zrender": "6.0.0"
+      }
+    },
     "node_modules/electron-to-chromium": {
       "version": "1.5.173",
       "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.173.tgz",
@@ -6384,6 +6395,12 @@
         "typescript": ">=4.8.4"
       }
     },
+    "node_modules/tslib": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
+      "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==",
+      "license": "0BSD"
+    },
     "node_modules/type-check": {
       "version": "0.4.0",
       "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz",
@@ -7187,6 +7204,15 @@
       "funding": {
         "url": "https://github.com/sponsors/sindresorhus"
       }
+    },
+    "node_modules/zrender": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/zrender/-/zrender-6.0.0.tgz",
+      "integrity": "sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==",
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "tslib": "2.3.0"
+      }
     }
   }
 }

+ 1 - 0
package.json

@@ -17,6 +17,7 @@
     "@vueuse/core": "^13.4.0",
     "axios": "^1.10.0",
     "docx-preview": "^0.3.5",
+    "echarts": "^6.0.0",
     "element-plus": "^2.10.2",
     "lucide-vue-next": "^0.525.0",
     "pinia": "^3.0.1",

+ 18 - 0
src/router/route.ts

@@ -110,6 +110,24 @@ export const routeList:RouterType[] = [
     icon: 'Location',
     addr: 'zfgl/zftjgl',
   },
+  {
+    path: 'tj',
+    name: '统计分析',
+    icon: 'Location',
+    addr: 'tj',
+  },
+  {
+    path: 'tj/sjtj',
+    name: '收据统计',
+    icon: 'Location',
+    addr: 'tj/sjtj',
+  },
+  {
+    path: 'tj/tjtj',
+    name: '退据统计',
+    icon: 'Location',
+    addr: 'tj/tjtj',
+  }
   // {
   //   path: 'gzfxx',
   //   name: '公租房信息',