From 21403a56438d8b5fb44d40b54ad4b0af9b0959aa Mon Sep 17 00:00:00 2001 From: zhangquan <2523589960@qq.com> Date: Mon, 9 Jun 2025 09:53:55 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CesiumMap/utils/layerFn.js | 2 +- .../gisManagement/configStyle/styleDialog.vue | 32 +++++++------------ 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/src/components/CesiumMap/utils/layerFn.js b/src/components/CesiumMap/utils/layerFn.js index 6b451cb..1ccea53 100644 --- a/src/components/CesiumMap/utils/layerFn.js +++ b/src/components/CesiumMap/utils/layerFn.js @@ -142,7 +142,7 @@ const createPolygonFeature = (style, position, text, layer) => { const cloneStyle = (style) => { const clone = {}; for (let key in style) { - console.log(key); + // console.log(key); if (key === "id") { clone[key] = style[key]; } else if (key === "properties") { diff --git a/src/views/gisManagement/configStyle/styleDialog.vue b/src/views/gisManagement/configStyle/styleDialog.vue index b0999d4..0f98d3c 100644 --- a/src/views/gisManagement/configStyle/styleDialog.vue +++ b/src/views/gisManagement/configStyle/styleDialog.vue @@ -2,7 +2,7 @@
- + @@ -322,7 +322,7 @@ const mapOptions = { y: defaultPoint[1], z: 5000, heading: 0, - pitch: -90, + pitch: -89.9, roll: 0 } } @@ -344,6 +344,14 @@ const form = ref({ description: '', config: '', }) +const rules = { + styleName: [ + { required: true, message: '请输入样式名称', trigger: 'blur' } + ], + styleType: [ + { required: true, message: '请选择样式类型', trigger: 'change' } + ], +} const showPoint = ref(false) const formPoint = ref({ pixelSize: 10, @@ -538,7 +546,7 @@ const refreshMap = () => { if (showBillboard.value) options.billboard = formBillboard.value if (showLabel.value) options.label = formLabel.value options.common = formCommon.value - console.log('更新样式配置:', JSON.stringify(options)) + // console.log('更新样式配置:', JSON.stringify(options)) form.value.config = JSON.stringify(options) if (entity) { @@ -630,24 +638,6 @@ const reset = () => { * 确定 */ const handleConfirm = () => { - // proxy.$refs["styleRef"].validate(valid => { - // if (valid) { - // if (form.value.userId != null) { - // updateUser(form.value).then(response => { - // proxy.$modal.msgSuccess("修改成功") - // open.value = false - // getList() - // }) - // } else { - // addUser(form.value).then(response => { - // proxy.$modal.msgSuccess("新增成功") - // open.value = false - // getList() - // }) - // } - // } - // }) - proxy.$refs["formRef"].validate(valid => { if (valid) { if (form.value.id) {