CzRger 1 year ago
parent
commit
2c2fbb8e29
2 changed files with 4 additions and 5 deletions
  1. 3 4
      src/views/gis/layout/index.vue
  2. 1 1
      src/views/gis/layout/tools/analysis.vue

+ 3 - 4
src/views/gis/layout/index.vue

@@ -51,9 +51,8 @@
     <div class="gis-content">
       <RouterViewCom/>
     </div>
-    <VideoPlayKedaCom v-if="showVideo" v-model:layout="videoLayout" :form="qyParams.sbInfo" @close="showVideo = false"/>
   </div>
-
+  <VideoPlayKedaCom v-if="showVideo" v-model:layout="videoLayout" :form="qyParams.sbInfo" @close="showVideo = false"/>
   <div ref="ref_qyDom" class="qy-info" :class="`qy--info-${qyParams.qyInfo.tab}`">
     <div class="qy-bg-icon qy-bg-icon-1"/>
     <div class="qy-bg-icon qy-bg-icon-2"/>
@@ -106,7 +105,7 @@
                   :width="width"
                   :height="height"
                   :data="qyParams.qyInfo[qyParams.qyInfo.tab].tableData"
-                  :center="qyParams.qyInfo['5'].center"
+                  :center="qyParams.qyInfo.coordinates"
               />
               <!--                <el-table-v2-->
               <!--                    class="__gis-overlay_table-v2"-->
@@ -493,7 +492,7 @@ export default defineComponent({
       // setCircle()
     }
     const setCircle = () => {
-      const circle = turf.circle(state.qyParams.qyInfo.coordinates, state.qyParams.qyInfo['5'].radius, {units: 'kilometers'})
+      const circle = turf.circle(state.qyParams.qyInfo.coordinates, state.qyParams.qyInfo['5'].radius, {steps: 1024, units: 'kilometers'})
       state.qyParams.analysisCircle.setGeometry(new geom.Polygon(circle.geometry.coordinates))
     }
     const onRadiusSubmit = () => {

+ 1 - 1
src/views/gis/layout/tools/analysis.vue

@@ -321,7 +321,7 @@ export default defineComponent({
       }
     }
     const  setCircle = () => {
-      const circle = turf.circle(state.cusTransfer.draw.center, state.cusTransfer.draw.radius, {units: 'kilometers'})
+      const circle = turf.circle(state.cusTransfer.draw.center, state.cusTransfer.draw.radius, {steps: 1024, units: 'kilometers'})
       state.cusTransfer.analysisFeat.setGeometry(new geom.Polygon(circle.geometry.coordinates))
     }
     const initData = () => {