{{ event.location }}
{{ formatTime(event.time) }}
diff --git a/src/views/component/RealTimeImageCenter.vue b/src/views/component/RealTimeImageCenter.vue
index ce9fe06..e9260d5 100644
--- a/src/views/component/RealTimeImageCenter.vue
+++ b/src/views/component/RealTimeImageCenter.vue
@@ -16,6 +16,13 @@ const areaData = ref({
unit: "m²",
});
+const props = defineProps({
+ popUpContent: {
+ type: Object,
+ default: () => ({
+ })
+ }
+});
// 车位数据
const parkingData = ref([
{ label: "充电车位", value: 1888 },
@@ -113,6 +120,7 @@ const togglePoint = async (point: any) => {
}
};
onMounted(() => {
+ console.log(props.popUpContent, 'ddddddddddddd')
const endTime = dayjs().endOf('day').format('YYYY-MM-DD HH:mm:ss');
getVideoDeviceList({ endTime: endTime, currentPage: 1, pageSize: 2 }).then((res) => { //暂时是公共的 先取两条
console.log(res, 'rrrrrrrrrrrrrrrrrrrrrrrrrsssssssssssss')
@@ -136,9 +144,9 @@ onMounted(() => {
@@ -148,19 +156,19 @@ onMounted(() => {
-
![服务区]()
+
- 占地面积(m²)
+ {{ props.popUpContent.areaData.name1 }}
- {{ areaData.value }}
+ {{ props.popUpContent.areaData.value }}
-
+
{{ item.label }}
{{ item.value }}
diff --git a/src/views/component/center.vue b/src/views/component/center.vue
index c9da09c..bf1d62c 100644
--- a/src/views/component/center.vue
+++ b/src/views/component/center.vue
@@ -4,8 +4,8 @@
@@ -33,7 +33,61 @@
:key="area"
@click="selectServiceArea(area)"
>
- {{ area }}
+ {{ area.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -60,7 +114,7 @@
×
-
+
@@ -409,15 +470,26 @@ const toggleSelection = (index: number) => {
交通流量趋势
-
-
+ :style="{
+ backgroundImage: `url(${
+ item.isActive ? item.activeImg : item.defaultImg
+ })`,
+ }"
+ >
-
@@ -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.128:8090/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
+});