From 4751b0a10c78be9fbc13707f20e5e6f3b9ba4cc8 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Fri, 25 Jul 2025 08:55:38 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E9=A3=9E=E8=A1=8C=E5=99=A8=E9=A1=B5=E9=9D=A2=E6=89=80=E5=B1=9E?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E3=80=81=E5=8A=A0=E5=85=A5=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E3=80=81=E5=9B=BA=E4=BB=B6=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=9C=AA=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=9C=A8=E7=BA=BF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/workmanagement/device/Aerocraft/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/demo/workmanagement/device/Aerocraft/utils.ts b/src/views/demo/workmanagement/device/Aerocraft/utils.ts index 24ba975..6d13166 100644 --- a/src/views/demo/workmanagement/device/Aerocraft/utils.ts +++ b/src/views/demo/workmanagement/device/Aerocraft/utils.ts @@ -26,7 +26,7 @@ export const columns = [ }, { title: '加入组织时间', - dataIndex: 'updateTime', + dataIndex: 'createTime', }, ]; From a3bd784ee24b1ae7b7181ab98c300b95a410c6b2 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Fri, 25 Jul 2025 09:02:09 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=9C=BA=E5=9C=BA=E5=8F=8A=E9=A3=9E=E8=A1=8C=E5=99=A8=E7=9A=84?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E9=83=BD=E6=9C=AA=E7=94=9F?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/workmanagement/device/Airport/utils.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/demo/workmanagement/device/Airport/utils.ts b/src/views/demo/workmanagement/device/Airport/utils.ts index 560cc45..7606c81 100644 --- a/src/views/demo/workmanagement/device/Airport/utils.ts +++ b/src/views/demo/workmanagement/device/Airport/utils.ts @@ -81,9 +81,16 @@ export const searchFormSchema: FormSchema[] = [ colProps: { span: 4 }, }, { - field: 'model', + field: 'type', label: '设备型号', - component: 'Input', + component: 'Select', + componentProps: { + options: [ + { label: 'Dock 1', value: 'Dock 1' }, + { label: 'Dock 2', value: 'Dock 2' }, + { label: 'Dock 3', value: 'Dock 3' }, + ], + }, colProps: { span: 4 }, }, { From 543c62fef34e8c98991074ceefee26774de843f2 Mon Sep 17 00:00:00 2001 From: userName Date: Fri, 25 Jul 2025 10:42:07 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E7=9C=81=E4=BB=BB=E5=8A=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=8E=E5=B7=A5=E4=BD=9C=E8=AE=A1=E5=88=92=E5=85=B3?= =?UTF-8?q?=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/provincetasks/index.vue | 22 +++++++++++++++++-- .../workplan/components/createWorkPlan.vue | 16 +++++++++----- .../demo/workmanagement/workplan/index.vue | 9 ++++++++ 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/views/demo/provincetasks/index.vue b/src/views/demo/provincetasks/index.vue index 5f2a685..3852ed4 100644 --- a/src/views/demo/provincetasks/index.vue +++ b/src/views/demo/provincetasks/index.vue @@ -1,7 +1,9 @@ - - -
- 涂鸦 + + +
+
@@ -494,18 +501,23 @@ :key="li.id" @click="setNowShowImageData(li)" > -
- -
+ + +
+ +
+
@@ -588,6 +600,7 @@ } from '@ant-design/icons-vue'; import dayjs from 'dayjs'; import { UpdatePicStatus, UpdatePicName } from '@/api/demo/mediaLibrary'; + import { graffiti_svg } from './svg'; import { getAppEnvConfig } from '@/utils/env'; import { cloneDeep } from 'lodash-es'; import { useMessage } from '@/hooks/web/useMessage'; @@ -687,7 +700,7 @@ // ---------------------------------------------------------------------- // 缩放比例 - const scale = ref(1); + const scale = ref(0.9); // 放大函数 function zoomIn() { if (scale.value < 4) { @@ -754,7 +767,7 @@ // 刷新 function refresh() { - scale.value = 1; + scale.value = 0.9; rotationAngle.value = 0; graffitiFlag.value = false; getImageWidthAndHeight(); diff --git a/src/views/demo/system/mediaLibrary/path/pathLeftMenu.vue b/src/views/demo/system/mediaLibrary/path/pathLeftMenu.vue index 4a23c4c..f5487ea 100644 --- a/src/views/demo/system/mediaLibrary/path/pathLeftMenu.vue +++ b/src/views/demo/system/mediaLibrary/path/pathLeftMenu.vue @@ -8,7 +8,7 @@ >
- +
{ if (newValue) { // 地图照片-地面点 - bottomPointGraphicData.forEach((graphicLayer) => { - if (graphicLayer.options.id == newValue.id + '_bottom') { - if (newValue.showOnMap == 1) { - graphicLayer.show = newValue.display == 1 ? true : false; - } else { - graphicLayers.removeGraphic(graphicLayer); - } - } - }); + // bottomPointGraphicData.forEach((graphicLayer) => { + // if (graphicLayer.options.id == newValue.id + '_bottom') { + // if (newValue.showOnMap == 1) { + // graphicLayer.show = newValue.display == 1 ? true : false; + // } else { + // graphicLayers.removeGraphic(graphicLayer); + // } + // } + // }); // 地图照片-飞行点 flightointGraphicData.forEach((graphicLayer) => { if (graphicLayer.options.id == newValue.id + '_flight') { @@ -349,9 +349,9 @@ // 地图照片-初始化-遍历展示 const showAllImageDataList = async () => { // 删除旧数据 - bottomPointGraphicData?.forEach((graphicLayer) => { - graphicLayers.removeGraphic(graphicLayer); - }); + // bottomPointGraphicData?.forEach((graphicLayer) => { + // graphicLayers.removeGraphic(graphicLayer); + // }); flightointGraphicData?.forEach((graphicLayer) => { graphicLayers.removeGraphic(graphicLayer); }); @@ -362,7 +362,7 @@ graphicLayers.removeGraphic(graphicLayer); }); // 图层数据 - bottomPointGraphicData = []; + // bottomPointGraphicData = []; flightointGraphicData = []; bottomImagePolylineGraphicData = []; imageGraphicData = []; @@ -414,18 +414,18 @@ Cesium.Cartesian3.fromDegrees(position[0], position[1]), ).then((point) => { // 地面点 - let bottomPointGraphic = new mars3d.graphic.BillboardEntity({ - id: item.id + '_bottom', - position: [position[0], position[1], point.height], - style: { - image: '/src/assets/images/flightoperation/mediaLibraryPoint.png', - clampToGround: true, - scale: 1, - verticalOrigin: Cesium.VerticalOrigin.BOTTOM, - }, - hasEdit: false, - show: item.display == 1 ? true : false, - }); + // let bottomPointGraphic = new mars3d.graphic.BillboardEntity({ + // id: item.id + '_bottom', + // position: [position[0], position[1], point.height], + // style: { + // image: '/src/assets/images/flightoperation/mediaLibraryPoint.png', + // clampToGround: true, + // scale: 1, + // verticalOrigin: Cesium.VerticalOrigin.BOTTOM, + // }, + // hasEdit: false, + // show: item.display == 1 ? true : false, + // }); if (index + 1 < props.allImageDataList.length) { const afterItem = props.allImageDataList[index + 1]; let lng = afterItem.lng - item.lng; @@ -555,7 +555,7 @@ } }); // 将地面点 添加到图层中 - graphicLayers.addGraphic(bottomPointGraphic); + // graphicLayers.addGraphic(bottomPointGraphic); // 将飞行点 添加到图层中 graphicLayers.addGraphic(flightointGraphic); // 地面点到展示图片的线 添加到图层中 @@ -563,10 +563,53 @@ // 展示图片 添加到图层中 graphicLayers.addGraphic(imageGraphic); // 数据 - bottomPointGraphicData.push(bottomPointGraphic); + // bottomPointGraphicData.push(bottomPointGraphic); flightointGraphicData.push(flightointGraphic); bottomImagePolylineGraphicData.push(bottomImagePolylineGraphic); imageGraphicData.push(imageGraphic); + + // 初始选中 + if (props.nowShowImageData && props.nowShowImageData.id) { + // 飞行点 + flightointGraphicData?.forEach((graphicLayer) => { + if (props.nowShowImageData.id + '_flight' == graphicLayer.options.id) { + graphicLayer.show = true; + } + }); + // 地面点到展示图片的线 + bottomImagePolylineGraphicData?.forEach((graphicLayer) => { + if (props.nowShowImageData.id + '_polyline' == graphicLayer.options.id) { + let defaultPosition = graphicLayer.options.defaultPosition; + let surfaceHeight = graphicLayer.options.surfaceHeight; + graphicLayer.positions = [ + Cesium.Cartesian3.fromDegrees( + defaultPosition[0], + defaultPosition[1], + surfaceHeight, + ), + Cesium.Cartesian3.fromDegrees( + defaultPosition[0], + defaultPosition[1], + defaultPosition[2] * 2, + ), + ]; + graphicLayer.setStyle({ + color: '#2d8cf0', + }); + } + }); + // 展示图片 + imageGraphicData?.forEach((graphicLayer) => { + if (props.nowShowImageData.id + '_image' == graphicLayer.options.id) { + graphicLayer.setStyle({ + image: graphicLayer.options.chooseImage, + label: { + show: true, + }, + }); + } + }); + } }); }; } diff --git a/src/views/demo/system/mediaLibrary/path/svg.ts b/src/views/demo/system/mediaLibrary/path/svg.ts index 29c7a8e..63d9e08 100644 --- a/src/views/demo/system/mediaLibrary/path/svg.ts +++ b/src/views/demo/system/mediaLibrary/path/svg.ts @@ -22,4 +22,18 @@ height="18" d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14L6 17h12l-3.86-5.14z" fill="#ffffff" > -`; \ No newline at end of file +`; + + +export const graffiti_svg = ` + + + + + + + + + + +` \ No newline at end of file diff --git a/src/views/demo/system/mediaLibrary/preview/index.vue b/src/views/demo/system/mediaLibrary/preview/index.vue index 434dd33..03e2e37 100644 --- a/src/views/demo/system/mediaLibrary/preview/index.vue +++ b/src/views/demo/system/mediaLibrary/preview/index.vue @@ -116,7 +116,7 @@