From bfdde738d060c50f30a41595ffd6dfcd24abc3d4 Mon Sep 17 00:00:00 2001 From: jlzhou <12020042@qq.com> Date: Mon, 24 Feb 2025 15:42:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bi-ui/env/.env | 6 +- bi-ui/package.json | 11 +- bi-ui/pnpm-lock.yaml | 70 +++-- bi-ui/src/assets/css/main.scss | 37 ++- bi-ui/src/components/global/WCode.vue | 228 ++++++++++++++++ bi-ui/src/components/global/WEffectLight.vue | 50 ++++ bi-ui/src/components/global/WEffectNoise.vue | 82 ++++++ .../src/components/global/WEffectNoiseBg.vue | 63 +++++ bi-ui/src/components/global/WFullscreen.vue | 2 +- bi-ui/src/pages/test.vue | 1 + bi-ui/src/pages/test/FlyingLine.vue | 2 + bi-ui/src/pages/test/components.vue | 252 ++++++++++++++++++ bi-ui/src/pages/test/icon.vue | 4 + bi-ui/vite.config.mjs | 8 +- 14 files changed, 776 insertions(+), 40 deletions(-) create mode 100644 bi-ui/src/components/global/WCode.vue create mode 100644 bi-ui/src/components/global/WEffectLight.vue create mode 100644 bi-ui/src/components/global/WEffectNoise.vue create mode 100644 bi-ui/src/components/global/WEffectNoiseBg.vue create mode 100644 bi-ui/src/pages/test/components.vue diff --git a/bi-ui/env/.env b/bi-ui/env/.env index 3995f5d..56ff2b4 100644 --- a/bi-ui/env/.env +++ b/bi-ui/env/.env @@ -1,5 +1,5 @@ VITE_BASE_API='/api' -VITE_APP_NAME='测试数据展示大屏' +VITE_APP_NAME='智慧能源综合管控平台' VITE_APP_CONTEXT_PATH="/bi/" -VITE_DEFAULT_USER="admin" -VITE_DEFAULT_PASSWORD="Vy6uPKcsHe3GupRpXZA8tzV9/EDbzkJ8wl6TS0q88POF1jQbm1NLMxU9dYzxva0tWQx7JKOGNOkaAOdFqay5t/aXx2qVaIGCBTb9vuKnJbtxMRZZso5IgEpHbR945Vk65BQyrOopDdNdPEm8nqJGcG6hJUiZbaRcgDCcAC7Q9nY=" \ No newline at end of file +VITE_DEFAULT_USER="bi" +VITE_DEFAULT_PASSWORD="w8N9m8qQ+Z+skmrpPDl11TyJGTLX9hdwiA8DaeGxrS5peXwzcIwLiUUyzGJKUy/+BGZaSF40Y7fzUpjkAHvhwF9a7uZyzZlOhO+XSUUTgyj7bFNQCaYXFqb+ZAFpBWczopm95i/krFDfgiS4AmRv2Bb0wkegV5z071EjiCfOuPA=" \ No newline at end of file diff --git a/bi-ui/package.json b/bi-ui/package.json index 2f9d9b2..a25a796 100644 --- a/bi-ui/package.json +++ b/bi-ui/package.json @@ -13,17 +13,20 @@ "preview": "vite preview" }, "dependencies": { - "@microsoft/fetch-event-source": "2.0.1", "@element-plus/icons-vue": "2.3.1", + "@microsoft/fetch-event-source": "2.0.1", + "@vueuse/components": "^12.7.0", + "@vueuse/core": "^12.7.0", "axios": "0.27.2", + "crypto-js": "4.2.0", "echarts": "5.4.2", "element-plus": "2.9.2", - "crypto-js": "4.2.0", - "jsencrypt": "^3.3.2", "file-saver": "2.0.5", + "highlight.js": "^11.11.1", + "jsencrypt": "^3.3.2", + "mescroll.js": "1.4.2", "mitt": "3.0.1", "normalize.css": "^8.0.1", - "mescroll.js": "1.4.2", "nprogress": "^0.2.0", "pinia": "2.0.22", "pinia-plugin-persist": "1.0.0", diff --git a/bi-ui/pnpm-lock.yaml b/bi-ui/pnpm-lock.yaml index 8a641ca..8c75685 100644 --- a/bi-ui/pnpm-lock.yaml +++ b/bi-ui/pnpm-lock.yaml @@ -14,6 +14,12 @@ importers: '@microsoft/fetch-event-source': specifier: 2.0.1 version: 2.0.1 + '@vueuse/components': + specifier: ^12.7.0 + version: 12.7.0 + '@vueuse/core': + specifier: ^12.7.0 + version: 12.7.0 axios: specifier: 0.27.2 version: 0.27.2 @@ -29,6 +35,9 @@ importers: file-saver: specifier: 2.0.5 version: 2.0.5 + highlight.js: + specifier: ^11.11.1 + version: 11.11.1 jsencrypt: specifier: ^3.3.2 version: 3.3.2 @@ -80,7 +89,7 @@ importers: version: 1.84.0 unplugin-auto-import: specifier: 0.11.4 - version: 0.11.4(@vueuse/core@11.2.0(vue@3.5.13))(rollup@4.34.4) + version: 0.11.4(@vueuse/core@12.7.0)(rollup@4.34.4) vite: specifier: 5.4.11 version: 5.4.11(@types/node@20.14.2)(sass@1.84.0)(terser@5.31.1) @@ -615,20 +624,23 @@ packages: '@vue/shared@3.5.13': resolution: {integrity: sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==} - '@vueuse/core@11.2.0': - resolution: {integrity: sha512-JIUwRcOqOWzcdu1dGlfW04kaJhW3EXnnjJJfLTtddJanymTL7lF1C0+dVVZ/siLfc73mWn+cGP1PE1PKPruRSA==} + '@vueuse/components@12.7.0': + resolution: {integrity: sha512-LbaKPOx9sTPRxI8ymJt3VCm2CifmC432yaXxCGbjkuKIh2jyNlXvE7sGrLm7kbC7WkBJnUXzm3K/cI1pIE8ueQ==} + + '@vueuse/core@12.7.0': + resolution: {integrity: sha512-jtK5B7YjZXmkGNHjviyGO4s3ZtEhbzSgrbX+s5o+Lr8i2nYqNyHuPVOeTdM1/hZ5Tkxg/KktAuAVDDiHMraMVA==} '@vueuse/core@9.13.0': resolution: {integrity: sha512-pujnclbeHWxxPRqXWmdkKV5OX4Wk4YeK7wusHqRwU0Q7EFusHoqNA/aPhB6KCh9hEqJkLAJo7bb0Lh9b+OIVzw==} - '@vueuse/metadata@11.2.0': - resolution: {integrity: sha512-L0ZmtRmNx+ZW95DmrgD6vn484gSpVeRbgpWevFKXwqqQxW9hnSi2Ppuh2BzMjnbv4aJRiIw8tQatXT9uOB23dQ==} + '@vueuse/metadata@12.7.0': + resolution: {integrity: sha512-4VvTH9mrjXqFN5LYa5YfqHVRI6j7R00Vy4995Rw7PQxyCL3z0Lli86iN4UemWqixxEvYfRjG+hF9wL8oLOn+3g==} '@vueuse/metadata@9.13.0': resolution: {integrity: sha512-gdU7TKNAUVlXXLbaF+ZCfte8BjRJQWPCa2J55+7/h+yDtzw3vOoGQDRXzI6pyKyo6bXFT5/QoPE4hAknExjRLQ==} - '@vueuse/shared@11.2.0': - resolution: {integrity: sha512-VxFjie0EanOudYSgMErxXfq6fo8vhr5ICI+BuE3I9FnX7ePllEsVrRQ7O6Q1TLgApeLuPKcHQxAXpP+KnlrJsg==} + '@vueuse/shared@12.7.0': + resolution: {integrity: sha512-coLlUw2HHKsm7rPN6WqHJQr18WymN4wkA/3ThFaJ4v4gWGWAQQGK+MJxLuJTBs4mojQiazlVWAKNJNpUWGRkNw==} '@vueuse/shared@9.13.0': resolution: {integrity: sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==} @@ -1161,6 +1173,10 @@ packages: resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} hasBin: true + highlight.js@11.11.1: + resolution: {integrity: sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==} + engines: {node: '>=12.0.0'} + htmlparser2@3.10.1: resolution: {integrity: sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==} @@ -2375,8 +2391,7 @@ snapshots: '@types/web-bluetooth@0.0.16': {} - '@types/web-bluetooth@0.0.20': - optional: true + '@types/web-bluetooth@0.0.20': {} '@vitejs/plugin-vue@4.6.2(vite@5.4.11(@types/node@20.14.2)(sass@1.84.0)(terser@5.31.1))(vue@3.5.13)': dependencies: @@ -2479,16 +2494,22 @@ snapshots: '@vue/shared@3.5.13': {} - '@vueuse/core@11.2.0(vue@3.5.13)': + '@vueuse/components@12.7.0': + dependencies: + '@vueuse/core': 12.7.0 + '@vueuse/shared': 12.7.0 + vue: 3.5.13 + transitivePeerDependencies: + - typescript + + '@vueuse/core@12.7.0': dependencies: '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 11.2.0 - '@vueuse/shared': 11.2.0(vue@3.5.13) - vue-demi: 0.14.10(vue@3.5.13) + '@vueuse/metadata': 12.7.0 + '@vueuse/shared': 12.7.0 + vue: 3.5.13 transitivePeerDependencies: - - '@vue/composition-api' - - vue - optional: true + - typescript '@vueuse/core@9.13.0(vue@3.5.13)': dependencies: @@ -2500,18 +2521,15 @@ snapshots: - '@vue/composition-api' - vue - '@vueuse/metadata@11.2.0': - optional: true + '@vueuse/metadata@12.7.0': {} '@vueuse/metadata@9.13.0': {} - '@vueuse/shared@11.2.0(vue@3.5.13)': + '@vueuse/shared@12.7.0': dependencies: - vue-demi: 0.14.10(vue@3.5.13) + vue: 3.5.13 transitivePeerDependencies: - - '@vue/composition-api' - - vue - optional: true + - typescript '@vueuse/shared@9.13.0(vue@3.5.13)': dependencies: @@ -3174,6 +3192,8 @@ snapshots: he@1.2.0: {} + highlight.js@11.11.1: {} + htmlparser2@3.10.1: dependencies: domelementtype: 1.3.1 @@ -4067,7 +4087,7 @@ snapshots: universalify@2.0.1: {} - unplugin-auto-import@0.11.4(@vueuse/core@11.2.0(vue@3.5.13))(rollup@4.34.4): + unplugin-auto-import@0.11.4(@vueuse/core@12.7.0)(rollup@4.34.4): dependencies: '@antfu/utils': 0.6.3 '@rollup/pluginutils': 5.1.4(rollup@4.34.4) @@ -4076,7 +4096,7 @@ snapshots: unimport: 0.7.1(rollup@4.34.4) unplugin: 0.10.2 optionalDependencies: - '@vueuse/core': 11.2.0(vue@3.5.13) + '@vueuse/core': 12.7.0 transitivePeerDependencies: - rollup diff --git a/bi-ui/src/assets/css/main.scss b/bi-ui/src/assets/css/main.scss index 3afe3d3..9a9db95 100644 --- a/bi-ui/src/assets/css/main.scss +++ b/bi-ui/src/assets/css/main.scss @@ -129,9 +129,40 @@ width: 1em; height: 1em; border-radius: 1em; - border: .2em solid currentColor; - border-top-color: #0000; - animation: w-am-loading 1s infinite; + border: solid .2em currentColor; + mask-image: conic-gradient(from 0deg, #0000 0%, #000 75%, #000 83%, #0000 85%); + animation: w-am-loading 1s ease infinite; + } + + .w-inner-loading { + pointer-events: none; + user-select: none; + position: relative; + display: flex; + justify-content: center; + align-items: center; + + + &::before { + content: ''; + position: absolute; + inset: 0; + background-color: var(--bg-color, #0003); + backdrop-filter: blur(.1em); + } + + &::after { + position: absolute; + content: ''; + font-size: var(--size,1em); + display: block; + width: 1em; + height: 1em; + border-radius: 1em; + border: solid .2em var(--loading-color, currentColor); + mask-image: conic-gradient(from 0deg, #0000 0%, #000 75%, #000 83%, #0000 85%); + animation: w-am-loading 1s ease infinite; + } } @keyframes w-am-loading { diff --git a/bi-ui/src/components/global/WCode.vue b/bi-ui/src/components/global/WCode.vue new file mode 100644 index 0000000..aa3877d --- /dev/null +++ b/bi-ui/src/components/global/WCode.vue @@ -0,0 +1,228 @@ + + + \ No newline at end of file diff --git a/bi-ui/src/components/global/WEffectLight.vue b/bi-ui/src/components/global/WEffectLight.vue new file mode 100644 index 0000000..a1e8153 --- /dev/null +++ b/bi-ui/src/components/global/WEffectLight.vue @@ -0,0 +1,50 @@ + + + \ No newline at end of file diff --git a/bi-ui/src/components/global/WEffectNoise.vue b/bi-ui/src/components/global/WEffectNoise.vue new file mode 100644 index 0000000..3115efd --- /dev/null +++ b/bi-ui/src/components/global/WEffectNoise.vue @@ -0,0 +1,82 @@ + + + \ No newline at end of file diff --git a/bi-ui/src/components/global/WEffectNoiseBg.vue b/bi-ui/src/components/global/WEffectNoiseBg.vue new file mode 100644 index 0000000..9ac8e17 --- /dev/null +++ b/bi-ui/src/components/global/WEffectNoiseBg.vue @@ -0,0 +1,63 @@ + + + \ No newline at end of file diff --git a/bi-ui/src/components/global/WFullscreen.vue b/bi-ui/src/components/global/WFullscreen.vue index 69d6e59..e00bac6 100644 --- a/bi-ui/src/components/global/WFullscreen.vue +++ b/bi-ui/src/components/global/WFullscreen.vue @@ -1,5 +1,5 @@ diff --git a/bi-ui/src/pages/test/components.vue b/bi-ui/src/pages/test/components.vue new file mode 100644 index 0000000..f025d08 --- /dev/null +++ b/bi-ui/src/pages/test/components.vue @@ -0,0 +1,252 @@ + + + \ No newline at end of file diff --git a/bi-ui/src/pages/test/icon.vue b/bi-ui/src/pages/test/icon.vue index 107d525..22c23c1 100644 --- a/bi-ui/src/pages/test/icon.vue +++ b/bi-ui/src/pages/test/icon.vue @@ -1,10 +1,14 @@