|
@@ -1724,7 +1724,7 @@ class PlanRegion extends BaseWidget {
|
|
|
usertoken: this.AppX.appConfig.usertoken,
|
|
|
layerids: this.iszgs == true ? JSON.stringify(this.config.layerids_zgs) : JSON.stringify(this.config.layerids),
|
|
|
group_fields: [],
|
|
|
- statistic_field: (calculateType == 2 ? "PIPELENGTH" : "OBJECTID"),
|
|
|
+ statistic_field: (calculateType == 2 ? "SHAPE.LEN" : "OBJECTID"),
|
|
|
statistic_type: ((calculateType == 3 || calculateType == 1) ? 1 : 2),
|
|
|
where: "",
|
|
|
geometry: this.tempregionjson,
|
|
@@ -1762,12 +1762,12 @@ class PlanRegion extends BaseWidget {
|
|
|
if (data.code == 10000) {
|
|
|
|
|
|
var data2 = JSON.stringify(data);
|
|
|
- var data3 = data2.replace(/PIPELENGTH/g, "长度/m");
|
|
|
+ var data3 = data2.replace(/SHAPE.LEN/g, "长度/m");
|
|
|
var data4 = JSON.parse(data3);
|
|
|
var length = 0.00;
|
|
|
for (var i = 0; i < data4.result.rows.length; i++) {
|
|
|
for (var k = 0; k < data.result.rows[i].rows.length; k++) {
|
|
|
- length = (length + data.result.rows[i].rows[k]["PIPELENGTH"]).toFixed(2) - 0;
|
|
|
+ length = (length + data.result.rows[i].rows[k]["SHAPE.LEN"]).toFixed(2) - 0;
|
|
|
}
|
|
|
}
|
|
|
this.pipe_length = length;
|