From e01e5bddc49a6719b6ff54b89467c04a5aaca6a4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 31 May 2024 18:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=9B=BE=E8=B0=B1=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 2 +- package.json | 2 + pnpm-lock.yaml | 31 ++ src/Layout/index.vue | 120 ++++- src/assets/icons/PPT.svg | 1 + src/assets/icons/六边形2号.svg | 1 + src/assets/icons/博士帽.svg | 1 + src/assets/icons/排序.svg | 1 + src/assets/icons/文本.svg | 1 + src/assets/icons/案例.svg | 1 + src/assets/icons/测试.svg | 1 + src/assets/icons/知识点.svg | 1 + src/assets/icons/简介.svg | 1 + src/assets/icons/视频.svg | 1 + src/assets/images/jinglingtu.png | Bin 0 -> 36443 bytes src/permissions.ts | 7 +- src/router/module/constRouter/index.ts | 6 +- src/views/home/index.vue | 2 +- .../professionalProfile/components/index.js | 217 +++++++++ src/views/professionalProfile/index.vue | 427 +++++++++++++++++- 20 files changed, 808 insertions(+), 16 deletions(-) create mode 100644 src/assets/icons/PPT.svg create mode 100644 src/assets/icons/六边形2号.svg create mode 100644 src/assets/icons/博士帽.svg create mode 100644 src/assets/icons/排序.svg create mode 100644 src/assets/icons/文本.svg create mode 100644 src/assets/icons/案例.svg create mode 100644 src/assets/icons/测试.svg create mode 100644 src/assets/icons/知识点.svg create mode 100644 src/assets/icons/简介.svg create mode 100644 src/assets/icons/视频.svg create mode 100644 src/assets/images/jinglingtu.png create mode 100644 src/views/professionalProfile/components/index.js diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 111cee4..624b859 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -42,7 +42,7 @@ module.exports = { 'no-useless-escape': 'off', // 禁止不必要的转义字符 // typeScript (https://typescript-eslint.io/rules) - '@typescript-eslint/no-unused-vars': 'error', // 禁止定义未使用的变量 + '@typescript-eslint/no-unused-vars': 'warn', // 禁止定义未使用的变量 '@typescript-eslint/prefer-ts-expect-error': 'error', // 禁止使用 @ts-ignore '@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型 '@typescript-eslint/no-non-null-assertion': 'off', diff --git a/package.json b/package.json index f09a05c..a2df517 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,8 @@ "@antv/g6": "3.8.3", "@element-plus/icons-vue": "^2.3.1", "axios": "^1.6.8", + "echarts": "^5.5.0", + "echarts-liquidfill": "^3.1.0", "element-plus": "^2.6.2", "install": "^0.13.0", "lib-flexible": "^0.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ee9f2d..523a786 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,6 +13,12 @@ dependencies: axios: specifier: ^1.6.8 version: 1.6.8 + echarts: + specifier: ^5.5.0 + version: 5.5.0 + echarts-liquidfill: + specifier: ^3.1.0 + version: 3.1.0(echarts@5.5.0) element-plus: specifier: ^2.6.2 version: 2.6.2(vue@3.4.21) @@ -2273,6 +2279,21 @@ packages: domhandler: 5.0.3 dev: true + /echarts-liquidfill@3.1.0(echarts@5.5.0): + resolution: {integrity: sha512-5Dlqs/jTsdTUAsd+K5LPLLTgrbbNORUSBQyk8PSy1Mg2zgHDWm83FmvA4s0ooNepCJojFYRITTQ4GU1UUSKYLw==} + peerDependencies: + echarts: ^5.0.1 + dependencies: + echarts: 5.5.0 + dev: false + + /echarts@5.5.0: + resolution: {integrity: sha512-rNYnNCzqDAPCr4m/fqyUFv7fD9qIsd50S6GDFgO1DxZhncCsNsG7IfUlAlvZe5oSEQxtsjnHiUuppzccry93Xw==} + dependencies: + tslib: 2.3.0 + zrender: 5.5.0 + dev: false + /electron-to-chromium@1.4.717: resolution: {integrity: sha512-6Fmg8QkkumNOwuZ/5mIbMU9WI3H2fmn5ajcVya64I5Yr5CcNmO7vcLt0Y7c96DCiMO5/9G+4sI2r6eEvdg1F7A==} dev: true @@ -5210,6 +5231,10 @@ packages: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: false + /tslib@2.3.0: + resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} + dev: false + /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} @@ -5540,3 +5565,9 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true + + /zrender@5.5.0: + resolution: {integrity: sha512-O3MilSi/9mwoovx77m6ROZM7sXShR/O/JIanvzTwjN3FORfLSr81PsUGd7jlaYOeds9d8tw82oP44+3YucVo+w==} + dependencies: + tslib: 2.3.0 + dev: false diff --git a/src/Layout/index.vue b/src/Layout/index.vue index 5f3c27d..bf87edf 100644 --- a/src/Layout/index.vue +++ b/src/Layout/index.vue @@ -4,6 +4,7 @@