| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div> |
| | | <div style="margin-top: 20px;"><button class="layui-btn" @click="resetMap">重置地图</button></div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div style="padding: 40px 20px 10px 10px;flex: 5;margin-top: -70px;"> |
| | | <el-slider v-model="showScale" :marks="showScaleMarks"></el-slider> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | resetMap() { |
| | | let that = this |
| | | $.ajax({ |
| | | url: baseUrl + "/map/resetMap/" + this.currentLev + "/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | dataType: 'json', |
| | | data: {}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | that.currentLev++; |
| | | if (that.currentLev > 4) { |
| | | that.currentLev = 1 |
| | | } |
| | | $layui.layer.msg("操作成功"); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | $layui.layer.msg(res.msg); |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | }) |
| | | |