Compare commits

...

2 Commits

Author SHA1 Message Date
徐景良 68bc07c8f0 Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua 2024-06-17 09:23:42 +08:00
徐景良 7a940b54e2 merge 2024-06-17 09:23:39 +08:00
1 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<div class="properties-body" v-if="formConfig.currentItem?.itemProps">
<Empty class="hint-box" v-if="!formConfig.currentItem.key" description="未选择控件" />
<Form
v-else-if="formConfig.currentItem.field == 'mapgeom'"
v-else-if="formConfig.currentItem.component == 'MapGeom'"
label-align="left"
layout="vertical"
description="图斑控件"
@ -178,15 +178,16 @@
watch(
() => formConfig.value,
() => {
console.log("formConfig",formConfig.value);
if (formConfig.value.currentItem) {
formConfig.value.currentItem.itemProps = formConfig.value.currentItem.itemProps || {};
formConfig.value.currentItem.itemProps.labelCol =
formConfig.value.currentItem.itemProps.labelCol || {};
formConfig.value.currentItem.itemProps.wrapperCol =
formConfig.value.currentItem.itemProps.wrapperCol || {};
if (formConfig.value.currentItem.field === 'MapGeom') {
if (formConfig.value.currentItem.component === 'MapGeom') {
//
formConfig.value.currentItem.mapSetData = formConfig.value.currentItem.mapSetData || {
formConfig.value.currentItem.mapSetData = formConfig.value.currentItem.mapSetData ? formConfig.value.currentItem.mapSetData : {
chooseLayer: '',
isAllowEditPolygon: false,
isEnablePostionJump: false,