| public/xcxjingqingmap/css/body.css | ●●●●● patch | view | raw | blame | history | |
| public/xcxjingqingmap/js/move.js | ●●●●● patch | view | raw | blame | history | |
| public/xcxjingqingmap/js/vueMain.js | ●●●●● patch | view | raw | blame | history | |
| public/xcxjingqingmap/xcxmap.html | ●●●●● patch | view | raw | blame | history |
public/xcxjingqingmap/css/body.css
@@ -62,3 +62,10 @@ justify-content: center; border-top: 1px solid rgb(138, 138, 138); } .el-tabs{ width: 92%; } .el-tabs__nav-scroll{ display: flex; justify-content: center; } public/xcxjingqingmap/js/move.js
@@ -83,9 +83,9 @@ that.div.on('touchend', function () {//抬起重置 once = true;//抬起重置鼠标点击位置 if (that.state == 'down') {//两种模式 var chous = Math.abs(that.__yy - that.__sy) < that.__wy / 4; var chous = Math.abs(that.__yy - that.__sy) < that.__wy / 8; } else if (that.state == 'up') { var chous = Math.abs(that.__yy - that.__sy) > that.__wy / 4; var chous = Math.abs(that.__yy - that.__sy) > that.__wy / 8; } if (chous) { that.changeDomPosition(0, 0, (parseFloat(that.__wy / 10) * 3.999));//改变位置 public/xcxjingqingmap/js/vueMain.js
@@ -25,7 +25,7 @@ }, beginCome() { this.getdata = this.getQueryVariable('data');//url解码 console.log(this.getdata) // console.log(this.getdata) // this.getdata = [{ // jd: 115.91042800000002, // wd: 28.68094757898212, @@ -57,7 +57,7 @@ var that = this; var center = [data[0].wd,data[0].jd]; this.seedata = data[0].datas; console.log(this.seedata) // console.log(this.seedata) var createMap = () => { map = L.map('map', { //初始化地图 center: center, @@ -96,7 +96,7 @@ busIcon = new transportIcon({ iconUrl: './img/red.png' }); console.log(data, 43545343) // console.log(data, 43545343) var setData = (a) => {//定义图标 marker = L.marker([a.wd, a.jd], { icon: a.dtype == 0 ? carIcon : a.dtype == 1 ? planeIcon : a.dtype == 2 ? busIcon : '', public/xcxjingqingmap/xcxmap.html
@@ -56,7 +56,6 @@ <div class="title-span"> </div> </div> <div class="main"> <div> <el-tabs v-model="activeName" @tab-click="handleClick"> <el-tab-pane label="警情信息" name="first"> <div class="f-main"> @@ -86,12 +85,11 @@ </div> --> </div> </el-tab-pane> <!-- <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane> <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane> <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane> <!-- <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane> <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane> --> </el-tabs> <!-- {{seedata.jd}}-{{seedata.wd}} --> </div> </div> </div> </div>