summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangwenrui <[email protected]>2021-03-29 13:42:40 +0800
committerwangwenrui <[email protected]>2021-03-29 13:42:40 +0800
commit78c8ed98a19ec2dd160bb09876d8287e9caaf92f (patch)
tree04fb4634066b52b75f534268769f726a49ba64de
parentfbeec0964ed893706b16a22b9a0904d3fe1dbfde (diff)
fix:修复地图选点问题
-rw-r--r--nezha-fronted/src/components/common/latlngPicker.vue4
-rw-r--r--nezha-fronted/src/components/page/config/system.vue2
2 files changed, 3 insertions, 3 deletions
diff --git a/nezha-fronted/src/components/common/latlngPicker.vue b/nezha-fronted/src/components/common/latlngPicker.vue
index 5a372a0e0..f52c0393f 100644
--- a/nezha-fronted/src/components/common/latlngPicker.vue
+++ b/nezha-fronted/src/components/common/latlngPicker.vue
@@ -7,9 +7,9 @@
</el-input>
</div>
<div class="input-box-item" v-if="showZoom">
- <el-input-number controls-position="right" :min="this.mapParam.minZoom" :max="this.mapParam.maxZoom" :step="1" v-model="mapParam.zoom">
+ <el-input controls-position="right" :min="this.mapParam.minZoom" :max="this.mapParam.maxZoom" :step="1" v-model="mapParam.zoom">
<template slot="prepend">{{$t('config.system.basic.zoom')}}</template>
- </el-input-number>
+ </el-input>
</div>
<div class="input-box-item" style="margin-right: unset !important;width: 30px !important;flex:unset;" @click="mapConfigVisible = true"><i class="nz-icon nz-icon-shuidi" style="color:rgb(238, 157, 63)"></i></div>
</div>
diff --git a/nezha-fronted/src/components/page/config/system.vue b/nezha-fronted/src/components/page/config/system.vue
index 18fc9a927..817e3f90c 100644
--- a/nezha-fronted/src/components/page/config/system.vue
+++ b/nezha-fronted/src/components/page/config/system.vue
@@ -43,7 +43,7 @@
</el-select>
</el-form-item>
<el-form-item :label="$t('config.system.basic.mapConfig')" >
- <latlng-picker :init-data="basic.map_center_config" ref="latlngPicker"></latlng-picker>
+ <latlng-picker :init-data="basic.map_center_config" ref="latlngPicker" :show-zoom="true"></latlng-picker>
</el-form-item>
<el-form-item :label="$t('config.system.basic.unsaved')" prop="unsaved_change">
<el-switch v-model.number="basic.unsaved_change" active-color="rgb(238, 157, 63)" active-value='on' inactive-value='off' id="system-baisc-unsaved_change">