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) {