diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..a361d5e Binary files /dev/null and b/dist.zip differ diff --git a/src/api/modules/index.ts b/src/api/modules/index.ts index 82166cf..255f94f 100644 --- a/src/api/modules/index.ts +++ b/src/api/modules/index.ts @@ -106,3 +106,7 @@ export const getVideoDeviceList = (param: any = {}) => { export const videoStream=(param:any={})=>{ return GET('/video/stream',param) } +// 今日各监测点车流情况 +export const getPointTraffic=(param:any={})=>{ + return GET('/device/trafficFlow/pointTraffic',param) +} \ No newline at end of file diff --git a/src/views/component/EventStatus.vue b/src/views/component/EventStatus.vue index 76d8f15..cb4235e 100644 --- a/src/views/component/EventStatus.vue +++ b/src/views/component/EventStatus.vue @@ -18,7 +18,6 @@ @@ -544,16 +624,16 @@ const toggleSelection = (index: number) => { &.car { border-radius: 8px 8px 8px 8px; background: rgba(253, 187, 103, 0.1); - color: #FDBB67; + color: #fdbb67; } &.truck { - color: #59A2FC; + color: #59a2fc; background-color: rgba(0, 200, 255, 0.1); } &.bus { - color: #00FFFF; + color: #00ffff; background-color: rgba(0, 255, 255, 0.1); } } diff --git a/src/views/component/monitoring-points-chart.vue b/src/views/component/monitoring-points-chart.vue index 2b09c3b..a5ca534 100644 --- a/src/views/component/monitoring-points-chart.vue +++ b/src/views/component/monitoring-points-chart.vue @@ -1,28 +1,23 @@ `, - }, - }, - minify: true, - }), + inject: { + data: { + injectMapScript: ``, + }, + }, + minify: true, + }), // Compression({ // algorithm: 'gzip', // test: /\.(js|css|html|json|svg|jpe?g|png|gif)$/i, @@ -47,32 +46,37 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => { ], publicDir: "public", build: { - outDir: 'dist', - assetsDir: 'static' + outDir: "dist", + assetsDir: "static", }, server: { - host: '0.0.0.0', + host: "0.0.0.0", port: 8080, open: true, strictPort: false, proxy: { [viteEnv.VITE_APP_CONTROL_BASE_API]: { - target: 'http://172.16.1.133:8081/xjIotApi', + target: "http://172.16.1.128:8090/xjIotApi", changeOrigin: true, - rewrite: (path) => path.replace(new RegExp(`^${viteEnv.VITE_APP_CONTROL_BASE_API}`), ''), + rewrite: (path) => + path.replace( + new RegExp(`^${viteEnv.VITE_APP_CONTROL_BASE_API}`), + "" + ), }, [viteEnv.VITE_APP_BASE_API]: { - target: 'http://172.16.1.133:8081/iotApi', + target: "http://172.16.1.128:8090/iotApi", changeOrigin: true, - rewrite: (path) => path.replace(new RegExp(`^${viteEnv.VITE_APP_BASE_API}`), ''), - } + rewrite: (path) => + path.replace(new RegExp(`^${viteEnv.VITE_APP_BASE_API}`), ""), + }, }, }, resolve: { alias: { "@": resolve(__dirname, "./src"), - "components": resolve(__dirname, "./src/components"), - "api": resolve(__dirname, "./src/api") + components: resolve(__dirname, "./src/components"), + api: resolve(__dirname, "./src/api"), }, }, css: { @@ -81,6 +85,6 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => { additionalData: `@use "./src/assets/css/variable.scss" as *;`, }, }, - } + }, }; -}); \ No newline at end of file +});