diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index 29e3db4..9c471d3 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -30,3 +30,11 @@ data, }) } +// 新增-其他厂商设备 +export function addInstructionOther(data: any) { + return request({ + url: '/system/busConfig/addOther', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index 29e3db4..9c471d3 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -30,3 +30,11 @@ data, }) } +// 新增-其他厂商设备 +export function addInstructionOther(data: any) { + return request({ + url: '/system/busConfig/addOther', + method: 'post', + data, + }) +} diff --git a/src/assets/audio/other.mp3 b/src/assets/audio/other.mp3 new file mode 100644 index 0000000..6ec901f --- /dev/null +++ b/src/assets/audio/other.mp3 Binary files differ diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index 29e3db4..9c471d3 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -30,3 +30,11 @@ data, }) } +// 新增-其他厂商设备 +export function addInstructionOther(data: any) { + return request({ + url: '/system/busConfig/addOther', + method: 'post', + data, + }) +} diff --git a/src/assets/audio/other.mp3 b/src/assets/audio/other.mp3 new file mode 100644 index 0000000..6ec901f --- /dev/null +++ b/src/assets/audio/other.mp3 Binary files differ diff --git a/src/assets/icons/icon-home1.svg b/src/assets/icons/icon-home1.svg new file mode 100644 index 0000000..81aa3eb --- /dev/null +++ b/src/assets/icons/icon-home1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index 29e3db4..9c471d3 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -30,3 +30,11 @@ data, }) } +// 新增-其他厂商设备 +export function addInstructionOther(data: any) { + return request({ + url: '/system/busConfig/addOther', + method: 'post', + data, + }) +} diff --git a/src/assets/audio/other.mp3 b/src/assets/audio/other.mp3 new file mode 100644 index 0000000..6ec901f --- /dev/null +++ b/src/assets/audio/other.mp3 Binary files differ diff --git a/src/assets/icons/icon-home1.svg b/src/assets/icons/icon-home1.svg new file mode 100644 index 0000000..81aa3eb --- /dev/null +++ b/src/assets/icons/icon-home1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 7fe6052..5ad2669 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -599,6 +599,7 @@ } const removeCluster = () => { if (cluster.value) { + map.value.remove(cluster.value) cluster.value.setMap(null) cluster.value = '' } diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index 29e3db4..9c471d3 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -30,3 +30,11 @@ data, }) } +// 新增-其他厂商设备 +export function addInstructionOther(data: any) { + return request({ + url: '/system/busConfig/addOther', + method: 'post', + data, + }) +} diff --git a/src/assets/audio/other.mp3 b/src/assets/audio/other.mp3 new file mode 100644 index 0000000..6ec901f --- /dev/null +++ b/src/assets/audio/other.mp3 Binary files differ diff --git a/src/assets/icons/icon-home1.svg b/src/assets/icons/icon-home1.svg new file mode 100644 index 0000000..81aa3eb --- /dev/null +++ b/src/assets/icons/icon-home1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 7fe6052..5ad2669 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -599,6 +599,7 @@ } const removeCluster = () => { if (cluster.value) { + map.value.remove(cluster.value) cluster.value.setMap(null) cluster.value = '' } diff --git a/src/views/home/dashboard/components/controlMap.vue b/src/views/home/dashboard/components/controlMap.vue index 70763c2..54319dd 100644 --- a/src/views/home/dashboard/components/controlMap.vue +++ b/src/views/home/dashboard/components/controlMap.vue @@ -544,9 +544,20 @@ } } const changeShow = (type: string) => { + mapRef.value.removePolygon() + mapRef.value.removeMarker() + mapRef.value.removePolyline() + mapRef.value.removeMassMarks() + mapRef.value.removeMassLine() + mapRef.value.removeCluster() setTimeout(() => { showStatus.value = type - // console.log(document.getElementById('map'), '1111') + if (type === 'administration') { + drawBj() + } + else { + drawBj1() + } }) setTimeout(() => { @@ -2857,7 +2868,14 @@ changeShow('administration') }, 100) // administration行政 demonstration95示范区 - +const drawMap = () => { + if (showStatus.value === 'administration') { + drawBj() + } + else { + drawBj1() + } +}