caozhaorui 1 year ago
parent
commit
57eebd1f67
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/gis/layout/index.vue

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

@@ -89,11 +89,11 @@
               link="number"
               label=""
               :min="1"
-              :max="30"
+              :max="60"
               :clearable="false"
               v-model:param="qyParams.qyInfo[qyParams.qyInfo.tab].radius"
               @blur="handleRangeBlur"/>
-          <div class="radius-max __hover" @click="qyParams.qyInfo[qyParams.qyInfo.tab].radius < 30 ? (qyParams.qyInfo[qyParams.qyInfo.tab].radius++) : undefined">+</div>
+          <div class="radius-max __hover" @click="qyParams.qyInfo[qyParams.qyInfo.tab].radius < 60 ? (qyParams.qyInfo[qyParams.qyInfo.tab].radius++) : undefined">+</div>
           km
           <div class="submit __hover" @click="onRadiusSubmit">确定</div>
           <div class="reset __hover" @click="onRadiusReset">重置</div>
@@ -407,7 +407,7 @@ export default defineComponent({
                 3: {},
                 4: {},
                 5: {
-                  radius: 1,
+                  radius: 10,
                   center: feat.getGeometry().getCoordinates(),
                   tableData: [],
                   loading: false
@@ -547,7 +547,7 @@ export default defineComponent({
       that.$api.deviceQuery({
         lon: state.qyParams.qyInfo.coordinates[0],
         lat: state.qyParams.qyInfo.coordinates[1],
-        radius: 0.5
+        radius: state.qyParams.qyInfo['5'].radius
       }).then((res: any) => {
         // console.log(res)
         // for (let i = 0; i < 500; i++) {