From cff739c566d13b4159bebc7cbf65297a711693c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BE=9A=E7=A5=96=E6=9C=9B?= <573413756@qq.com>
Date: Sat, 8 Oct 2022 20:36:40 +0800
Subject: [PATCH] add lowcode example
---
xiuosiot-frontend/src/router/index.js | 14 ++++++++++----
.../{heatStation => AiCity}/index.vue | 2 +-
.../views/configuration/bridgeMachine/index.vue | 16 ++++++++++++++++
.../configuration/transferStation/index.vue | 9 ++++++++-
4 files changed, 35 insertions(+), 6 deletions(-)
rename xiuosiot-frontend/src/views/configuration/{heatStation => AiCity}/index.vue (51%)
create mode 100644 xiuosiot-frontend/src/views/configuration/bridgeMachine/index.vue
diff --git a/xiuosiot-frontend/src/router/index.js b/xiuosiot-frontend/src/router/index.js
index 3da830d..d828f12 100644
--- a/xiuosiot-frontend/src/router/index.js
+++ b/xiuosiot-frontend/src/router/index.js
@@ -195,10 +195,16 @@ export const constantRoutes = [
meta: { title: '变电站' }
},
{
- path: 'heatStation',
- name: 'HeatStation',
- component: () => import('@/views/configuration/heatStation'),
- meta: { title: '换热站' }
+ path: 'aicity',
+ name: 'AiCity',
+ component: () => import('@/views/configuration/AiCity'),
+ meta: { title: '智慧城市' }
+ },
+ {
+ path: 'bridgeMachine',
+ name: 'BridgeMachine',
+ component: () => import('@/views/configuration/bridgeMachine'),
+ meta: { title: '大方架桥机' }
}
]
},
diff --git a/xiuosiot-frontend/src/views/configuration/heatStation/index.vue b/xiuosiot-frontend/src/views/configuration/AiCity/index.vue
similarity index 51%
rename from xiuosiot-frontend/src/views/configuration/heatStation/index.vue
rename to xiuosiot-frontend/src/views/configuration/AiCity/index.vue
index f56f49d..eaff397 100644
--- a/xiuosiot-frontend/src/views/configuration/heatStation/index.vue
+++ b/xiuosiot-frontend/src/views/configuration/AiCity/index.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/xiuosiot-frontend/src/views/configuration/bridgeMachine/index.vue b/xiuosiot-frontend/src/views/configuration/bridgeMachine/index.vue
new file mode 100644
index 0000000..a2933b3
--- /dev/null
+++ b/xiuosiot-frontend/src/views/configuration/bridgeMachine/index.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/xiuosiot-frontend/src/views/configuration/transferStation/index.vue b/xiuosiot-frontend/src/views/configuration/transferStation/index.vue
index 251f196..11eab69 100644
--- a/xiuosiot-frontend/src/views/configuration/transferStation/index.vue
+++ b/xiuosiot-frontend/src/views/configuration/transferStation/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,6 +10,13 @@ export default {
iframeHeight() {
return window.innerHeight - 185
}
+ },
+ mounted() {
+ const test = document.getElementById('ifm').onload = function() {
+ document.getElementById('ifm')// 获取到iframe
+
+ console.log('test', test)
+ }
}
}