Browse Source

城市体检-首页修改20250418-05

zhiyuan-007 3 days ago
parent
commit
e6e2a38e96
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/views/cstj/problemsMain/index.vue

+ 2 - 4
src/views/cstj/problemsMain/index.vue

@@ -173,7 +173,7 @@
           </el-col>
           <el-col :span="15">
             <div class="map-container">
-              <div class="map_type">
+              <div class="map_type" v-show="singleForm.id!=''">
                 <el-form ref="singleProblemRef" :model="singleForm"  label-width="80px">
                   <el-form-item label="点位名称" prop="proPoint">
                     <el-input v-model="singleForm.proPoint" placeholder="请输入点位名称" />
@@ -473,7 +473,6 @@ const getTargetList = async (year) => {
 };
 
 function drawGeometry(){
-  singleForm.value;
   DrawGeometry({
     type: singleForm.value.type,
     status: true,
@@ -496,8 +495,7 @@ function submitSingleForm(){
       item.geojson = toFullGeoJson(singleForm.value.shape);
     }
   })
-  ClearSketchLayer()
-
+  cancelSingleForm()
 }