diff --git a/src/App.vue b/src/App.vue index f5c078c..e613056 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,6 +13,7 @@ import { useAppStore } from '@/store/modules/app'; const appStore = useAppStore(); + onMounted(() => { nextTick(() => { // 初始化主题样式 diff --git a/src/assets/electronicComponents/1.png b/src/assets/electronicComponents/1.png index dfb6fb7..ed92000 100644 Binary files a/src/assets/electronicComponents/1.png and b/src/assets/electronicComponents/1.png differ diff --git a/src/assets/electronicComponents/2.png b/src/assets/electronicComponents/2.png index 7ae1dbe..0425660 100644 Binary files a/src/assets/electronicComponents/2.png and b/src/assets/electronicComponents/2.png differ diff --git a/src/utils/alarmReminder.js b/src/utils/alarmReminder.js new file mode 100644 index 0000000..1dac36e --- /dev/null +++ b/src/utils/alarmReminder.js @@ -0,0 +1 @@ +const websocketUrl = 'ws://119.45.202.115:7181/ws'; diff --git a/src/views/visualEditor/index.vue b/src/views/visualEditor/index.vue index 95cf22f..128050e 100644 --- a/src/views/visualEditor/index.vue +++ b/src/views/visualEditor/index.vue @@ -130,7 +130,17 @@ :key="key" :label="monitorType.find((e) => e.value === key)?.label" :value="key" - v-for="(value, key) in deviceData.find((e) => e.id === nodeData.id)?.options" + v-for="key in [ + ...new Set( + nodeData.id + .replaceAll(',', ',') + .split(',') + .map((v) => { + return Object.keys(deviceData.find((e) => e.id === v)?.options); + }) + .flat() + ) + ]" /> @@ -161,6 +171,7 @@ + @@ -779,9 +790,9 @@ const transformData = (arr) => { } ] */ + const getDeviceData = () => { getIotEnvMonitorLatestAll().then((res) => { - console.log(transformData(res.data)); deviceData.value = transformData(res.data); //collectTime objid monitorCode monitorId monitorType }); @@ -910,6 +921,7 @@ watch( } } } + .moduleCard { width: calc(50% - 4px); display: inline-block; @@ -946,4 +958,4 @@ watch( .no-click { pointer-events: none !important; } - \ No newline at end of file + diff --git a/src/views/visualEditor/list.vue b/src/views/visualEditor/list.vue new file mode 100644 index 0000000..23d15fb --- /dev/null +++ b/src/views/visualEditor/list.vue @@ -0,0 +1,184 @@ + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + 新增 + + + 删除 + + + + + + + + + + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} + + + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/visualEditor/nodes/circuitComponent.vue b/src/views/visualEditor/nodes/circuitComponent.vue index 132bc86..af3714d 100644 --- a/src/views/visualEditor/nodes/circuitComponent.vue +++ b/src/views/visualEditor/nodes/circuitComponent.vue @@ -61,9 +61,7 @@ const props = defineProps({ required: true } }); -onMounted(() => { - console.log(props); -}); +onMounted(() => {});