|
@@ -32,8 +32,18 @@
|
|
|
}
|
|
|
"
|
|
|
>
|
|
|
- <el-icon class="pointer font-18 margin-right-10" title="定位" @click="mapview(item1)"><location /></el-icon>
|
|
|
- <el-icon class="pointer font-18 " title="删除" @click="deleteprogramme($event, item1)"><delete /></el-icon>
|
|
|
+ <el-icon
|
|
|
+ class="pointer font-18 margin-right-10"
|
|
|
+ title="定位"
|
|
|
+ @click="mapview(item1)"
|
|
|
+ ><location
|
|
|
+ /></el-icon>
|
|
|
+ <el-icon
|
|
|
+ class="pointer font-18"
|
|
|
+ title="删除"
|
|
|
+ @click="deleteprogramme($event, item1)"
|
|
|
+ ><delete
|
|
|
+ /></el-icon>
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -90,8 +100,18 @@
|
|
|
}
|
|
|
"
|
|
|
>
|
|
|
- <el-icon class="pointer font-18 margin-right-10" title="定位" @click="mapview(item)"><location /></el-icon>
|
|
|
- <el-icon class="pointer font-18 " title="添加到已选方案" @click="addprogramme($event, item)"><plus /></el-icon>
|
|
|
+ <el-icon
|
|
|
+ class="pointer font-18 margin-right-10"
|
|
|
+ title="定位"
|
|
|
+ @click="mapview(item)"
|
|
|
+ ><location
|
|
|
+ /></el-icon>
|
|
|
+ <el-icon
|
|
|
+ class="pointer font-18"
|
|
|
+ title="添加到已选方案"
|
|
|
+ @click="addprogramme($event, item)"
|
|
|
+ ><plus
|
|
|
+ /></el-icon>
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -207,8 +227,8 @@ export default {
|
|
|
JSON.stringify(
|
|
|
prop.tempObj.items.filter((item1) => {
|
|
|
return item1.bsm == item.bsm;
|
|
|
- })
|
|
|
- )
|
|
|
+ }),
|
|
|
+ ),
|
|
|
);
|
|
|
prop.xzjgObj.items.push(temp[0]);
|
|
|
},
|
|
@@ -230,7 +250,7 @@ export default {
|
|
|
},
|
|
|
submit() {
|
|
|
if (xzjg.reportText == "查看报告") {
|
|
|
- window.open(xzjg.model.fxbg.replace('.docx','.pdf'), "_blank");
|
|
|
+ window.open(xzjg.model.fxbg.replace(".docx", ".pdf"), "_blank");
|
|
|
return;
|
|
|
}
|
|
|
if (xzjg.bgList.length == 0) {
|
|
@@ -249,26 +269,28 @@ export default {
|
|
|
SaveWordFile({
|
|
|
bsm: prop.rwBsm,
|
|
|
xzbsm: json,
|
|
|
- }).then((res) => {
|
|
|
- parent.emit("update:loading", false);
|
|
|
- if (res.success && res.data != null) {
|
|
|
- ElMessage.success("报告生成成功!");
|
|
|
- xzjg.model = res.data;
|
|
|
- xzjg.reportText = "查看报告";
|
|
|
- }else{
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ parent.emit("update:loading", false);
|
|
|
+ if (res.success && res.data != null) {
|
|
|
+ ElMessage.success("报告生成成功!");
|
|
|
+ xzjg.model = res.data;
|
|
|
+ xzjg.reportText = "查看报告";
|
|
|
+ } else {
|
|
|
+ parent.emit("update:loading", false);
|
|
|
+ ElMessage.success("报告生成失败!");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
parent.emit("update:loading", false);
|
|
|
ElMessage.success("报告生成失败!");
|
|
|
- }
|
|
|
- }).catch(() => {
|
|
|
- parent.emit("update:loading", false);
|
|
|
- ElMessage.success("报告生成失败!");
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
- downReport(){
|
|
|
- window.open(xzjg.model.zip, "_blank");
|
|
|
+ downReport() {
|
|
|
+ window.open(xzjg.model.zipfile, "_blank");
|
|
|
},
|
|
|
loadJgMap() {
|
|
|
if (xzjg.layer == null) {
|
|
@@ -299,7 +321,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
function (feature, popup) {
|
|
|
- console.log(feature)
|
|
|
+ console.log(feature);
|
|
|
//获取选址结果
|
|
|
GetXzJgByBsm({
|
|
|
jgbsm: feature.get("BSM"),
|
|
@@ -334,14 +356,14 @@ export default {
|
|
|
html += `<li><span>${
|
|
|
jg.yxyzmc
|
|
|
}:</span><span>压占面积${Number(jg.fxjg).toFixed(
|
|
|
- 0
|
|
|
+ 0,
|
|
|
)}m²</span></li>`;
|
|
|
});
|
|
|
}
|
|
|
popup({}, html);
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
);
|
|
|
arcMap.addLayer(xzjg.layer);
|
|
|
}
|
|
@@ -351,10 +373,10 @@ export default {
|
|
|
`RWBSM='${prop.rwBsm}'`,
|
|
|
function (fs) {
|
|
|
xzjg.layer.getSource().addFeatures(fs);
|
|
|
- }
|
|
|
+ },
|
|
|
);
|
|
|
},
|
|
|
- loadJg(bsm){
|
|
|
+ loadJg(bsm) {
|
|
|
prop.rwBsm = bsm;
|
|
|
if (xzjg.layer) {
|
|
|
xzjg.layer.getSource().clear();
|
|
@@ -367,15 +389,15 @@ export default {
|
|
|
xzjg.reportText = "查看报告";
|
|
|
}
|
|
|
},
|
|
|
- initData(){
|
|
|
+ initData() {
|
|
|
xzjg.model = prop.rwObj;
|
|
|
xzjg.bgList = prop.tempObj.items.filter(
|
|
|
- (item) => !prop.xzjgObj.items.some((ele) => ele.bsm === item.bsm)
|
|
|
+ (item) => !prop.xzjgObj.items.some((ele) => ele.bsm === item.bsm),
|
|
|
);
|
|
|
xzjg.bgList.sort(function (a, b) {
|
|
|
return parseInt(a.yxfa) - parseInt(b.yxfa);
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
});
|
|
|
watch(
|
|
|
() => prop.activeTabs,
|
|
@@ -383,7 +405,7 @@ export default {
|
|
|
if (newValue == "scjg") {
|
|
|
xzjg.initData();
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
);
|
|
|
return { ...toRefs(xzjg) };
|
|
|
},
|