diff --git a/package-lock.json b/package-lock.json index a8e65a1..4500e3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "btgxq-population-bigdata", "version": "0.0.0", "dependencies": { + "axios": "^1.6.2", "echarts": "^5.4.3", "echarts-gl": "^2.0.9", "stylus": "^0.61.0", @@ -663,6 +664,21 @@ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.8.tgz", "integrity": "sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==" }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -682,6 +698,17 @@ "resolved": "https://registry.npmmirror.com/claygl/-/claygl-1.3.0.tgz", "integrity": "sha512-+gGtJjT6SSHD2l2yC3MCubW/sCV40tZuSs5opdtn79vFSGUgp/lH139RNEQ6Jy078/L0aV8odCw8RSrUcMfLaQ==" }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -708,6 +735,14 @@ } } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/echarts": { "version": "5.4.3", "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.3.tgz", @@ -771,6 +806,32 @@ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, + "node_modules/follow-redirects": { + "version": "1.15.3", + "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -834,6 +895,25 @@ "node": ">=12" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -915,6 +995,11 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/rollup": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.4.1.tgz", @@ -1455,6 +1540,21 @@ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.8.tgz", "integrity": "sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==" }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "axios": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", + "requires": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -1474,6 +1574,14 @@ "resolved": "https://registry.npmmirror.com/claygl/-/claygl-1.3.0.tgz", "integrity": "sha512-+gGtJjT6SSHD2l2yC3MCubW/sCV40tZuSs5opdtn79vFSGUgp/lH139RNEQ6Jy078/L0aV8odCw8RSrUcMfLaQ==" }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -1492,6 +1600,11 @@ "ms": "2.1.2" } }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, "echarts": { "version": "5.4.3", "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.3.tgz", @@ -1545,6 +1658,21 @@ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, + "follow-redirects": { + "version": "1.15.3", + "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==" + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -1592,6 +1720,19 @@ "@jridgewell/sourcemap-codec": "^1.4.15" } }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -1638,6 +1779,11 @@ "source-map-js": "^1.0.2" } }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "rollup": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.4.1.tgz", diff --git a/package.json b/package.json index 8cdc21f..baa12c6 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "axios": "^1.6.2", "echarts": "^5.4.3", "echarts-gl": "^2.0.9", "stylus": "^0.61.0", diff --git a/public/assets/imgs/icon/shbz1.png b/public/assets/imgs/icon/shbz1.png index d9041f7..84db4e0 100644 Binary files a/public/assets/imgs/icon/shbz1.png and b/public/assets/imgs/icon/shbz1.png differ diff --git a/public/assets/imgs/icon/shbz2.png b/public/assets/imgs/icon/shbz2.png index 84db4e0..d9041f7 100644 Binary files a/public/assets/imgs/icon/shbz2.png and b/public/assets/imgs/icon/shbz2.png differ diff --git a/public/assets/imgs/icon/shbz3.png b/public/assets/imgs/icon/shbz3.png index 4e21cd8..6e8c015 100644 Binary files a/public/assets/imgs/icon/shbz3.png and b/public/assets/imgs/icon/shbz3.png differ diff --git a/public/assets/imgs/icon/shbz4.png b/public/assets/imgs/icon/shbz4.png index 6e8c015..4e21cd8 100644 Binary files a/public/assets/imgs/icon/shbz4.png and b/public/assets/imgs/icon/shbz4.png differ diff --git a/src/App.vue b/src/App.vue index afb6b9a..52765ef 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,10 @@ diff --git a/src/components/card/PersonPercent.vue b/src/components/card/PersonPercent.vue index 6b63700..6040442 100644 --- a/src/components/card/PersonPercent.vue +++ b/src/components/card/PersonPercent.vue @@ -1,7 +1,7 @@ diff --git a/src/components/circle/CircleWave.vue b/src/components/circle/CircleWave.vue index 77da6bc..91106b1 100644 --- a/src/components/circle/CircleWave.vue +++ b/src/components/circle/CircleWave.vue @@ -1,5 +1,5 @@ + + + + \ No newline at end of file diff --git a/src/components/echarts/Bar.vue b/src/components/echarts/Bar.vue index 1f0a5ed..2c159dd 100644 --- a/src/components/echarts/Bar.vue +++ b/src/components/echarts/Bar.vue @@ -42,6 +42,10 @@ const init = () => { text: props.title }, tooltip: {}, + grid: { + left: 50, + top: 10 + }, xAxis: { type: 'category', data: props.xData diff --git a/src/components/echarts/BarSpike.vue b/src/components/echarts/BarSpike.vue index 7e87501..8664e90 100644 --- a/src/components/echarts/BarSpike.vue +++ b/src/components/echarts/BarSpike.vue @@ -42,6 +42,10 @@ const init = () => { text: props.title }, tooltip: {}, + grid: { + left: 50, + top: 10 + }, xAxis: { type: 'category', data: props.xData diff --git a/src/components/echarts/Pie3d.vue b/src/components/echarts/Pie3d.vue index 6b43015..0e96e44 100644 --- a/src/components/echarts/Pie3d.vue +++ b/src/components/echarts/Pie3d.vue @@ -274,7 +274,7 @@ const dataSource = [ const init = () => { // const colorList = ["#D98053", "#E2B062", "#5A9CF1", "#6ED3D3"]; const colorList = []; - const paramsList = dataSource.map((item, index) => { + const paramsList = props.data.map((item, index) => { return { ...item, shading: "realistic", diff --git a/src/components/scroll/ScrollPanel.vue b/src/components/scroll/ScrollPanel.vue index 1f72ae9..a6d70b8 100644 --- a/src/components/scroll/ScrollPanel.vue +++ b/src/components/scroll/ScrollPanel.vue @@ -7,12 +7,12 @@ 占有率(%)
- -
- 序号 - 民族民族民族民族民族 - 人数(人) - 占有率(%) + +
+ {{ index + 1 }} + {{ item.name }} + {{ item.value }} + {{ item.percent }}
@@ -21,46 +21,15 @@ \ No newline at end of file diff --git a/src/module/ModuleLeft1.vue b/src/module/ModuleLeft1.vue index f47b7c8..746a518 100644 --- a/src/module/ModuleLeft1.vue +++ b/src/module/ModuleLeft1.vue @@ -1,26 +1,37 @@ \ No newline at end of file diff --git a/src/module/ModuleLeft2.vue b/src/module/ModuleLeft2.vue index 9da45af..45dddec 100644 --- a/src/module/ModuleLeft2.vue +++ b/src/module/ModuleLeft2.vue @@ -1,35 +1,35 @@ \ No newline at end of file diff --git a/src/module/ModuleRight2.vue b/src/module/ModuleRight2.vue index 3a50b1d..1584343 100644 --- a/src/module/ModuleRight2.vue +++ b/src/module/ModuleRight2.vue @@ -3,11 +3,11 @@
- +
- - + +
@@ -15,11 +15,27 @@ \ No newline at end of file diff --git a/src/style.css b/src/style.css index 2340bb3..d515d51 100644 --- a/src/style.css +++ b/src/style.css @@ -14,6 +14,7 @@ html, body { height: max-content; margin: 0; padding: 0; + background-color: rgba(0, 2, 5) } #app { diff --git a/vite.config.js b/vite.config.js index 05c1740..9c87972 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,5 +3,9 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ + base: './', + server: { + host: '0.0.0.0', + }, plugins: [vue()], })