Commit e641edb1 by xue_wengang

Update sjda.vue

parent ec6f8bef
......@@ -145,7 +145,7 @@
</div>
<div>
<!-- 地图 -->
<div id="map"></div>
<div id="map" style="height:300px"></div>
</div>
</div>
<!--关系分析-->
......@@ -285,13 +285,11 @@ export default {
value: "",
prop: "hjdzXzqhdm"
},
{},
{
label: "现住址",
value: "",
prop: "xzzDzmc"
},
{},
{
label: "出生地",
value: "",
......@@ -468,20 +466,20 @@ export default {
fillColor: "#222293",
img: { src: require("@/assets/img/map/redpoint.png"), scale: 1 }
});
if (res.rows.length > 0) {
for (var i = 0; i < res.rows.length; i++) {
if (res.rows[i].jd && res.rows[i].wd) {
if (res.data.rows.length > 0) {
for (var i = 0; i < res.data.rows.length; i++) {
if (res.data.rows[i].jd && res.data.rows[i].wd) {
dataGeo.push({
geometry: [
parseFloat(res.rows[i].jd),
parseFloat(res.rows[i].wd)
parseFloat(res.data.rows[i].jd),
parseFloat(res.data.rows[i].wd)
], //点[x,y],线[[x,y],[x,y],[x,y]],面[[[x,y],[x,y],[x,y],[x,y]]],圆[x,y]
attributions: null /*存在点上的基本信息*/,
text: i + 1
});
featureArry.push([
parseFloat(res.rows[i].jd),
parseFloat(res.rows[i].wd)
parseFloat(res.data.rows[i].jd),
parseFloat(res.data.rows[i].wd)
]);
}
}
......@@ -550,20 +548,20 @@ export default {
fillColor: "#222293",
img: { src: require("@/assets/img/map/redpoint.png"), scale: 1 }
});
if (res.rows.length > 0) {
for (var i = 0; i < res.rows.length; i++) {
if (res.rows[i].jd && res.rows[i].wd) {
if (res.data.rows.length > 0) {
for (var i = 0; i < res.data.rows.length; i++) {
if (res.data.rows[i].jd && res.data.rows[i].wd) {
dataGeo.push({
geometry: [
parseFloat(res.rows[i].jd),
parseFloat(res.rows[i].wd)
parseFloat(res.data.rows[i].jd),
parseFloat(res.data.rows[i].wd)
], //点[x,y],线[[x,y],[x,y],[x,y]],面[[[x,y],[x,y],[x,y],[x,y]]],圆[x,y]
attributions: null /*存在点上的基本信息*/,
text: i + 1
});
featureArry.push([
parseFloat(res.rows[i].jd),
parseFloat(res.rows[i].wd)
parseFloat(res.data.rows[i].jd),
parseFloat(res.data.rows[i].wd)
]);
}
}
......
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