|
@@ -224,6 +224,9 @@ export default {
|
|
|
},
|
|
|
async cutFill() {
|
|
|
this.loading = true;
|
|
|
+ viewer.entities.removeAll();
|
|
|
+ viewer.dataSources.removeAll();
|
|
|
+ viewer.scene.globe.removeAllModifyRegion();
|
|
|
let res = await cutFill({ ...this.form, buffer: undefined });
|
|
|
this.loading = false;
|
|
|
if (res.success) {
|
|
@@ -235,13 +238,14 @@ export default {
|
|
|
if (typeof res.data[key] == "number")
|
|
|
this.cutData[key] = res.data[key].toFixed(2);
|
|
|
});
|
|
|
- this.cutData.cz = this.cutData.cutVolume - this.cutData.fillVolume;
|
|
|
+ this.cutData.cz = Number(
|
|
|
+ this.cutData.cutVolume - this.cutData.fillVolume
|
|
|
+ ).toFixed(2);
|
|
|
|
|
|
// let pitch = Cesium.Math.toRadians(-45.0);
|
|
|
let params = { sw: 0.001, fill_a: 0.2 };
|
|
|
// let fn = (data) => { data.name = "cut_fill" };
|
|
|
- viewer.entities.removeAll();
|
|
|
- viewer.dataSources.removeAll();
|
|
|
+
|
|
|
loadGeoJSON(res.data.bottomGeomBuffer, "#916E54", {}, (data) => {
|
|
|
data.entities.values.forEach((entity, ei) => {
|
|
|
if (entity.polygon) {
|