Commit 5743d466 by xue_wengang

ditu

parent 9e55a22b
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<script src="<%= BASE_URL %>OpMap/jquery-3.3.1.js"></script> <script src="<%= BASE_URL %>OpMap/jquery-3.3.1.js"></script>
<script src="<%= BASE_URL %>OpMap/ol.js"></script> <script src="<%= BASE_URL %>OpMap/ol.js"></script>
<script src="<%= BASE_URL %>OpMap/OpMap.js"></script> <script src="<%= BASE_URL %>OpMap/OpMap.js"></script>
<script src="<%= BASE_URL %>OpMap/config_internet.js"></script> <script src="<%= BASE_URL %>OpMap/config.js"></script>
<!-- <script src="<%= BASE_URL %>OpMap/config.js"></script> --> <!-- <script src="<%= BASE_URL %>OpMap/config.js"></script> -->
<link type="text/css" href="<%= BASE_URL %>OpMap/ol.css"/> <link type="text/css" href="<%= BASE_URL %>OpMap/ol.css"/>
</head> </head>
......
...@@ -9,8 +9,8 @@ let base = { ...@@ -9,8 +9,8 @@ let base = {
// ztptURL: "http://26.120.5.129:8006", //通辽 // ztptURL: "http://26.120.5.129:8006", //通辽
ztptURL: "http://89.0.23.237:8088", ztptURL: "http://89.0.23.237:8088",
codeUrl: "", codeUrl: "",
BaseURL: "/apiAjzbGaw", //基础查询页得ip BaseURL: "/apiXzxt", //基础查询页得ip
rzURL: "/apiXzxtGaw", //刑专二期得(日志)ip rzURL: "/apiXzxt", //刑专二期得(日志)ip
// bigwfwurl: "", // bigwfwurl: "",
// bigservicesurl: "", // bigservicesurl: "",
// alyIP: "", // alyIP: "",
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</div> --> </div> -->
</div> </div>
<!--3--> <!--3-->
<div> <!-- <div>
<div class="wrap wrap1"> <div class="wrap wrap1">
<div class="bt"> <div class="bt">
<img src="@/assets/img/ryda/title5.svg" />地址/轨迹 <img src="@/assets/img/ryda/title5.svg" />地址/轨迹
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<!--4--> <!--4-->
<div> <div>
<div class="wrap wrap614"> <div class="wrap wrap614">
......
...@@ -480,13 +480,13 @@ export default { ...@@ -480,13 +480,13 @@ export default {
this.featureArry = []; this.featureArry = [];
var dataGeo = []; var dataGeo = [];
opMap.$setLayer(parmL); opMap.$setLayer(parmL);
// opMap.$setLayer({ opMap.$setLayer({
// layerId: "LineString", layerId: "LineString",
// borderColor: "#129233", borderColor: "#129233",
// strokeWidth: 2, strokeWidth: 2,
// fillColor: "#222293", fillColor: "#222293",
// img: { src: poi, scale: 1 }, img: { src: poi, scale: 1 },
// }); });
res.data.rows.sort(function (a, b) { res.data.rows.sort(function (a, b) {
return new Date(b.fxsj) - new Date(a.fxsj); return new Date(b.fxsj) - new Date(a.fxsj);
}); });
...@@ -522,17 +522,17 @@ export default { ...@@ -522,17 +522,17 @@ export default {
img: { src: poi, scale: 1 }, img: { src: poi, scale: 1 },
}; };
opMap.$RenderLayer(parmR); opMap.$RenderLayer(parmR);
// opMap.$RenderLayer({ opMap.$RenderLayer({
// layerId: "LineString", layerId: "LineString",
// type: "LineString", type: "LineString",
// data: [{ geometry: this.featureArry, attributions: null }], data: [{ geometry: this.featureArry, attributions: null }],
// text: "", text: "",
// radius: "", radius: "",
// borderColor: "#", borderColor: "#",
// fillColor: "#DC1096", fillColor: "#DC1096",
// strokeWidth: 2, strokeWidth: 2,
// img: { src: poi, scale: 1 }, img: { src: poi, scale: 1 },
// }); });
} }
}); });
}, },
...@@ -590,6 +590,7 @@ export default { ...@@ -590,6 +590,7 @@ export default {
target_pos = targetPos, target_pos = targetPos,
//总的步长 //总的步长
count = Math.round(self._getDistance(init_pos, target_pos) / step); count = Math.round(self._getDistance(init_pos, target_pos) / step);
debugger
if (count < 1) { if (count < 1) {
++self.indexi; ++self.indexi;
self.moveFeatureFlag( self.moveFeatureFlag(
...@@ -600,6 +601,7 @@ export default { ...@@ -600,6 +601,7 @@ export default {
); );
return; return;
} }
debugger
self._intervalFlag = setInterval(function () { self._intervalFlag = setInterval(function () {
if (currentCount >= count) { if (currentCount >= count) {
clearInterval(self._intervalFlag); clearInterval(self._intervalFlag);
...@@ -657,7 +659,7 @@ export default { ...@@ -657,7 +659,7 @@ export default {
img: { src: iphone, scale: 1 }, img: { src: iphone, scale: 1 },
}; };
opMap.$clearLayer({ layerId: "carPoint" }); opMap.$clearLayer({ layerId: "carPoint" });
// self.$RenderLayer(parm); //////////////////////////////////////////// // opMap.$RenderLayer(parm);
opMap opMap
.$getLayer({ layerId: "carPoint" }) .$getLayer({ layerId: "carPoint" })
.getSource() .getSource()
...@@ -696,7 +698,7 @@ export default { ...@@ -696,7 +698,7 @@ export default {
var b = initPos, var b = initPos,
c = targetPos - initPos, c = targetPos - initPos,
t = currentCount, t = currentCount,
d = count; d = 1;
return (c * t) / d + b; return (c * t) / d + b;
}, },
...@@ -704,6 +706,7 @@ export default { ...@@ -704,6 +706,7 @@ export default {
_getDistance(pxA, pxB) { _getDistance(pxA, pxB) {
var opMap = new OpMap(); var opMap = new OpMap();
var length = opMap.$getDistance({ leftPoint: pxA, rightPoint: pxB }); var length = opMap.$getDistance({ leftPoint: pxA, rightPoint: pxB });
debugger
return length; return length;
}, },
/** /**
......
...@@ -69,7 +69,7 @@ module.exports = { ...@@ -69,7 +69,7 @@ module.exports = {
} }
}, },
"/apiXzxt": { "/apiXzxt": {
target: "http://192.168.0.148:8501/", //统一的请求头部每次修改都要重启才会生效 target: "http://192.168.0.153:8501/", //统一的请求头部每次修改都要重启才会生效
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment