|
@@ -718,9 +718,8 @@ export default {
|
|
|
|
|
|
//分析列表显隐
|
|
//分析列表显隐
|
|
async openAnalyzeList(itemModel) {
|
|
async openAnalyzeList(itemModel) {
|
|
- if (this.layerList.length == 0) {
|
|
|
|
- this.SelectConstructionModelHendle(itemModel);
|
|
|
|
- }
|
|
|
|
|
|
+ this.SelectConstructionModelHendle(itemModel);
|
|
|
|
+
|
|
const classList =
|
|
const classList =
|
|
this.$refs[itemModel.id + "AnalyzeList"][0].$el.classList;
|
|
this.$refs[itemModel.id + "AnalyzeList"][0].$el.classList;
|
|
classList.toggle("none");
|
|
classList.toggle("none");
|
|
@@ -758,33 +757,35 @@ export default {
|
|
|
|
|
|
//选中报建模型
|
|
//选中报建模型
|
|
SelectConstructionModelHendle(Minfo) {
|
|
SelectConstructionModelHendle(Minfo) {
|
|
- this.removeModel();
|
|
|
|
- this.WaitingSelectionModel = null;
|
|
|
|
- this.removeAll();
|
|
|
|
- // 清除其他选定样式
|
|
|
|
- for (let key in this.$refs) {
|
|
|
|
- if (key.indexOf("Model") !== -1) {
|
|
|
|
- let item = this.$refs[key][0];
|
|
|
|
- item.childNodes.forEach((Citem) => {
|
|
|
|
- if (
|
|
|
|
- Citem.className &&
|
|
|
|
- Citem.className.indexOf("status ce") !== -1
|
|
|
|
- ) {
|
|
|
|
- Citem.style.display = "none";
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- // 添加当前选定样式及待选模型
|
|
|
|
- this.$refs["Model" + Minfo.id][0].childNodes.forEach((item) => {
|
|
|
|
- if (item.className && item.className.indexOf("status ce") !== -1) {
|
|
|
|
- item.style.display = "block";
|
|
|
|
- this.WaitingSelectionModel = Minfo;
|
|
|
|
|
|
+ if (this.WaitingSelectionModel != Minfo) {
|
|
|
|
+ this.removeModel();
|
|
|
|
+ this.WaitingSelectionModel = null;
|
|
|
|
+ this.removeAll();
|
|
|
|
+ // 清除其他选定样式
|
|
|
|
+ for (let key in this.$refs) {
|
|
|
|
+ if (key.indexOf("Model") !== -1) {
|
|
|
|
+ let item = this.$refs[key][0];
|
|
|
|
+ item.childNodes.forEach((Citem) => {
|
|
|
|
+ if (
|
|
|
|
+ Citem.className &&
|
|
|
|
+ Citem.className.indexOf("status ce") !== -1
|
|
|
|
+ ) {
|
|
|
|
+ Citem.style.display = "none";
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ // 添加当前选定样式及待选模型
|
|
|
|
+ this.$refs["Model" + Minfo.id][0].childNodes.forEach((item) => {
|
|
|
|
+ if (item.className && item.className.indexOf("status ce") !== -1) {
|
|
|
|
+ item.style.display = "block";
|
|
|
|
+ this.WaitingSelectionModel = Minfo;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
- //添加模型
|
|
|
|
- this.addModel(Minfo);
|
|
|
|
|
|
+ //添加模型
|
|
|
|
+ this.addModel(Minfo);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//添加项目模型
|
|
//添加项目模型
|
|
openAddConstructionModelInfo(info) {
|
|
openAddConstructionModelInfo(info) {
|
|
@@ -989,13 +990,9 @@ export default {
|
|
let that = this;
|
|
let that = this;
|
|
that.layerDataList = [];
|
|
that.layerDataList = [];
|
|
Cesium.when(modelLayer, async function (layers) {
|
|
Cesium.when(modelLayer, async function (layers) {
|
|
- debugger;
|
|
|
|
layers.forEach((layer) => {
|
|
layers.forEach((layer) => {
|
|
layer.shadowType = 2;
|
|
layer.shadowType = 2;
|
|
that.layerList.push(layer.name);
|
|
that.layerList.push(layer.name);
|
|
- // let style = new Cesium.Style3D();
|
|
|
|
- // style.bottomAltitude = window.modelBottomAltitude; //底部高度
|
|
|
|
- // layer.style3D = style;
|
|
|
|
});
|
|
});
|
|
|
|
|
|
//获取模型信息
|
|
//获取模型信息
|
|
@@ -1033,14 +1030,13 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- debugger;
|
|
|
|
that.layerDataList.forEach((layerData) => {
|
|
that.layerDataList.forEach((layerData) => {
|
|
// 添加模型楼号
|
|
// 添加模型楼号
|
|
let SMID = layerData.data.find((c) => c.label == "SMID").value;
|
|
let SMID = layerData.data.find((c) => c.label == "SMID").value;
|
|
let HEIGHT = layerData.data.find((c) => c.label == "HEIGHT").value;
|
|
let HEIGHT = layerData.data.find((c) => c.label == "HEIGHT").value;
|
|
let x = layerData.geometry.center.x;
|
|
let x = layerData.geometry.center.x;
|
|
let y = layerData.geometry.center.y;
|
|
let y = layerData.geometry.center.y;
|
|
- let z = Number(HEIGHT);
|
|
|
|
|
|
+ let z = Number(HEIGHT) + 29.7;
|
|
|
|
|
|
let BUILDNO = "";
|
|
let BUILDNO = "";
|
|
if (layerData.data.find((c) => c.label == "BUILDNO")) {
|
|
if (layerData.data.find((c) => c.label == "BUILDNO")) {
|
|
@@ -1074,7 +1070,7 @@ export default {
|
|
),
|
|
),
|
|
//打开背景 打开背景 (不会被线段覆盖)
|
|
//打开背景 打开背景 (不会被线段覆盖)
|
|
showBackground: true,
|
|
showBackground: true,
|
|
- heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
|
|
|
|
|
|
+ heightReference: Cesium.HeightReference.NONE,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -1102,8 +1098,6 @@ export default {
|
|
|
|
|
|
Cesium.when
|
|
Cesium.when
|
|
.all(modifiedPromises, async function (modelLayers) {
|
|
.all(modifiedPromises, async function (modelLayers) {
|
|
- debugger;
|
|
|
|
-
|
|
|
|
for (let index = 0; index < modelLayers.length; index++) {
|
|
for (let index = 0; index < modelLayers.length; index++) {
|
|
let modelData = {
|
|
let modelData = {
|
|
id: uuidv4(),
|
|
id: uuidv4(),
|
|
@@ -1163,7 +1157,6 @@ export default {
|
|
modelData.layerDataList.push(layerData);
|
|
modelData.layerDataList.push(layerData);
|
|
});
|
|
});
|
|
|
|
|
|
- debugger;
|
|
|
|
// modelData.layerDataList.forEach((layerData) => {
|
|
// modelData.layerDataList.forEach((layerData) => {
|
|
// // 添加模型楼号
|
|
// // 添加模型楼号
|
|
// let SMID = layerData.data.find((c) => c.label == "SMID").value;
|
|
// let SMID = layerData.data.find((c) => c.label == "SMID").value;
|
|
@@ -1210,7 +1203,7 @@ export default {
|
|
// ),
|
|
// ),
|
|
// //打开背景 打开背景 (不会被线段覆盖)
|
|
// //打开背景 打开背景 (不会被线段覆盖)
|
|
// showBackground: true,
|
|
// showBackground: true,
|
|
- // heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
|
|
|
|
|
|
+ // heightReference: Cesium.HeightReference.NONE ,
|
|
// },
|
|
// },
|
|
// });
|
|
// });
|
|
|
|
|
|
@@ -1485,7 +1478,6 @@ export default {
|
|
},
|
|
},
|
|
// 生成限高
|
|
// 生成限高
|
|
async HighLimit(Minfo) {
|
|
async HighLimit(Minfo) {
|
|
- debugger;
|
|
|
|
let that = this;
|
|
let that = this;
|
|
let JZXGD = 0;
|
|
let JZXGD = 0;
|
|
let DKBM = [];
|
|
let DKBM = [];
|
|
@@ -1519,7 +1511,6 @@ export default {
|
|
queryBySQLParameters
|
|
queryBySQLParameters
|
|
);
|
|
);
|
|
|
|
|
|
- debugger;
|
|
|
|
if (e && e.totalCount > 0) {
|
|
if (e && e.totalCount > 0) {
|
|
e.features.forEach((feature) => {
|
|
e.features.forEach((feature) => {
|
|
feature.fieldNames.forEach((fieldName, i) => {
|
|
feature.fieldNames.forEach((fieldName, i) => {
|
|
@@ -1545,7 +1536,6 @@ export default {
|
|
JZXGD = Number(
|
|
JZXGD = Number(
|
|
GHYDlayerData.data.find((c) => c.label == "JZXGD").value
|
|
GHYDlayerData.data.find((c) => c.label == "JZXGD").value
|
|
);
|
|
);
|
|
- debugger;
|
|
|
|
let entity = viewer.entities.add({
|
|
let entity = viewer.entities.add({
|
|
id: "polygonA",
|
|
id: "polygonA",
|
|
polygon: {
|
|
polygon: {
|
|
@@ -1575,7 +1565,7 @@ export default {
|
|
backgroundColor: new Cesium.Color(0.0, 0.0, 0.0, 0.0),
|
|
backgroundColor: new Cesium.Color(0.0, 0.0, 0.0, 0.0),
|
|
//打开背景 打开背景 (不会被线段覆盖)
|
|
//打开背景 打开背景 (不会被线段覆盖)
|
|
showBackground: true,
|
|
showBackground: true,
|
|
- heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
|
|
|
|
|
|
+ heightReference: Cesium.HeightReference.NONE,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
// that.layerList.forEach((layer) => {
|
|
// that.layerList.forEach((layer) => {
|
|
@@ -1608,7 +1598,6 @@ export default {
|
|
let LANDNO = layerData.data.find((c) => c.label == "LANDNO").value;
|
|
let LANDNO = layerData.data.find((c) => c.label == "LANDNO").value;
|
|
|
|
|
|
if (bm.value == LANDNO) {
|
|
if (bm.value == LANDNO) {
|
|
- debugger;
|
|
|
|
let SMID = layerData.data.find((c) => c.label == "SMID").value;
|
|
let SMID = layerData.data.find((c) => c.label == "SMID").value;
|
|
let Height = layerData.data.find(
|
|
let Height = layerData.data.find(
|
|
(c) => c.label == "HEIGHT"
|
|
(c) => c.label == "HEIGHT"
|
|
@@ -1655,7 +1644,7 @@ export default {
|
|
),
|
|
),
|
|
//打开背景 打开背景 (不会被线段覆盖)
|
|
//打开背景 打开背景 (不会被线段覆盖)
|
|
showBackground: true,
|
|
showBackground: true,
|
|
- heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
|
|
|
|
|
|
+ heightReference: Cesium.HeightReference.NONE,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -1687,7 +1676,6 @@ export default {
|
|
* 查询200米范围内的道路
|
|
* 查询200米范围内的道路
|
|
*/
|
|
*/
|
|
async getBufferTraffic() {
|
|
async getBufferTraffic() {
|
|
- debugger;
|
|
|
|
let that = this;
|
|
let that = this;
|
|
let geo = this.LandPlanningList[0].geometry;
|
|
let geo = this.LandPlanningList[0].geometry;
|
|
|
|
|
|
@@ -1722,7 +1710,6 @@ export default {
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
queryByGeometryParameters
|
|
queryByGeometryParameters
|
|
);
|
|
);
|
|
- debugger;
|
|
|
|
|
|
|
|
if (e && e.totalCount > 0) {
|
|
if (e && e.totalCount > 0) {
|
|
e.features.forEach((feature) => {
|
|
e.features.forEach((feature) => {
|
|
@@ -1796,7 +1783,6 @@ export default {
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
queryByGeometryParameters
|
|
queryByGeometryParameters
|
|
);
|
|
);
|
|
- debugger;
|
|
|
|
|
|
|
|
if (e && e.totalCount > 0) {
|
|
if (e && e.totalCount > 0) {
|
|
e.features.forEach((feature) => {
|
|
e.features.forEach((feature) => {
|
|
@@ -1886,7 +1872,6 @@ export default {
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
queryByGeometryParameters
|
|
queryByGeometryParameters
|
|
);
|
|
);
|
|
- debugger;
|
|
|
|
|
|
|
|
if (e && e.totalCount > 0) {
|
|
if (e && e.totalCount > 0) {
|
|
e.features.forEach((feature) => {
|
|
e.features.forEach((feature) => {
|
|
@@ -1993,7 +1978,6 @@ export default {
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
layer.date_server.url + "/featureResults.json?returnContent=true",
|
|
queryByGeometryParameters
|
|
queryByGeometryParameters
|
|
);
|
|
);
|
|
- debugger;
|
|
|
|
|
|
|
|
if (e && e.totalCount > 0) {
|
|
if (e && e.totalCount > 0) {
|
|
e.features.forEach((feature) => {
|
|
e.features.forEach((feature) => {
|
|
@@ -2159,7 +2143,6 @@ export default {
|
|
outlineWidth: 2.0,
|
|
outlineWidth: 2.0,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
- debugger;
|
|
|
|
const point = viewer.entities.add({
|
|
const point = viewer.entities.add({
|
|
id: "DLTBlable-" + DLTBlayerData.id,
|
|
id: "DLTBlable-" + DLTBlayerData.id,
|
|
//点
|
|
//点
|
|
@@ -2212,10 +2195,11 @@ export default {
|
|
async getnorm(Minfo) {
|
|
async getnorm(Minfo) {
|
|
//组装指标对象
|
|
//组装指标对象
|
|
let tableDataList = [];
|
|
let tableDataList = [];
|
|
- debugger;
|
|
|
|
for (let index = 0; index < this.LandPlanningList.length; index++) {
|
|
for (let index = 0; index < this.LandPlanningList.length; index++) {
|
|
const LandPlanning = this.LandPlanningList[index];
|
|
const LandPlanning = this.LandPlanningList[index];
|
|
- let KG_Data = {};
|
|
|
|
|
|
+ let KG_Data = {},
|
|
|
|
+ TJFA_Data = {},
|
|
|
|
+ FA_Data = {};
|
|
KG_Data.DKBM = LandPlanning.data.find((c) => c.label == "DKBM")
|
|
KG_Data.DKBM = LandPlanning.data.find((c) => c.label == "DKBM")
|
|
? LandPlanning.data.find((c) => c.label == "DKBM").value
|
|
? LandPlanning.data.find((c) => c.label == "DKBM").value
|
|
: "";
|
|
: "";
|
|
@@ -2252,7 +2236,7 @@ export default {
|
|
: "";
|
|
: "";
|
|
KG_Data.JRJZMJD = "";
|
|
KG_Data.JRJZMJD = "";
|
|
KG_Data.JRJZMJX = "";
|
|
KG_Data.JRJZMJX = "";
|
|
- let FA_Data = {};
|
|
|
|
|
|
+
|
|
if (Minfo.dataurl && Minfo.dataSourceName) {
|
|
if (Minfo.dataurl && Minfo.dataSourceName) {
|
|
//获取项目范围数据数据
|
|
//获取项目范围数据数据
|
|
let queryByGeometryParameters = {
|
|
let queryByGeometryParameters = {
|
|
@@ -2270,7 +2254,6 @@ export default {
|
|
|
|
|
|
//项目用地总面积
|
|
//项目用地总面积
|
|
let xmzmj = 0;
|
|
let xmzmj = 0;
|
|
- debugger;
|
|
|
|
if (e && e.totalCount > 0) {
|
|
if (e && e.totalCount > 0) {
|
|
e.features.forEach((feature) => {
|
|
e.features.forEach((feature) => {
|
|
let DataPs = feature.geometry.points.map((item) => [
|
|
let DataPs = feature.geometry.points.map((item) => [
|
|
@@ -2315,10 +2298,8 @@ export default {
|
|
let dxjzzmj = 0;
|
|
let dxjzzmj = 0;
|
|
//最大建筑高度
|
|
//最大建筑高度
|
|
let maxJZGD = 0;
|
|
let maxJZGD = 0;
|
|
- debugger;
|
|
|
|
if (e2 && e2.totalCount > 0) {
|
|
if (e2 && e2.totalCount > 0) {
|
|
e2.features.forEach((feature) => {
|
|
e2.features.forEach((feature) => {
|
|
- debugger;
|
|
|
|
let BUILDAREAIndex = feature.fieldNames.findIndex(
|
|
let BUILDAREAIndex = feature.fieldNames.findIndex(
|
|
(c) => c == "BUILDAREA"
|
|
(c) => c == "BUILDAREA"
|
|
);
|
|
);
|
|
@@ -2381,11 +2362,10 @@ export default {
|
|
//建筑密度
|
|
//建筑密度
|
|
FA_Data.JZMD = (Number(FA_Data.JDMJ / FA_Data.YDMJ) * 100).toFixed(2);
|
|
FA_Data.JZMD = (Number(FA_Data.JDMJ / FA_Data.YDMJ) * 100).toFixed(2);
|
|
}
|
|
}
|
|
- tableDataList.push({ Minfo, KG_Data, FA_Data });
|
|
|
|
|
|
+ tableDataList.push({ Minfo, KG_Data, FA_Data, TJFA_Data });
|
|
}
|
|
}
|
|
var result = await this.buidAreaAndParksComputer(Minfo, false);
|
|
var result = await this.buidAreaAndParksComputer(Minfo, false);
|
|
if (result != null) {
|
|
if (result != null) {
|
|
- debugger;
|
|
|
|
for (var i = 0; i < tableDataList.length; i++) {
|
|
for (var i = 0; i < tableDataList.length; i++) {
|
|
var item = tableDataList[i];
|
|
var item = tableDataList[i];
|
|
|
|
|
|
@@ -2394,11 +2374,17 @@ export default {
|
|
);
|
|
);
|
|
debugger;
|
|
debugger;
|
|
if (land == null) continue;
|
|
if (land == null) continue;
|
|
- tableDataList[i].FA_Data.JZMJ = land.jrmj;
|
|
|
|
|
|
+ tableDataList[i].FA_Data.JZMJ = land.mj;
|
|
tableDataList[i].FA_Data.JRJZMJ = land.jrmj;
|
|
tableDataList[i].FA_Data.JRJZMJ = land.jrmj;
|
|
tableDataList[i].FA_Data.RJL = (
|
|
tableDataList[i].FA_Data.RJL = (
|
|
land.jrmj / item.FA_Data.YDMJ
|
|
land.jrmj / item.FA_Data.YDMJ
|
|
).toFixed(2);
|
|
).toFixed(2);
|
|
|
|
+
|
|
|
|
+ //开发商提交的方案文档指标
|
|
|
|
+
|
|
|
|
+ tableDataList[i].TJFA_Data.JZMJ = land.famj;
|
|
|
|
+ tableDataList[i].TJFA_Data.JRJZMJ = land.fajrmj;
|
|
|
|
+ tableDataList[i].infoData = land;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.openZBFXInfo([tableDataList]);
|
|
this.openZBFXInfo([tableDataList]);
|
|
@@ -2498,7 +2484,7 @@ export default {
|
|
getFeatureMode: "SQL",
|
|
getFeatureMode: "SQL",
|
|
datasetNames: dataSources,
|
|
datasetNames: dataSources,
|
|
queryParameter: {
|
|
queryParameter: {
|
|
- attributeFilter: "SMID>-1",
|
|
|
|
|
|
+ attributeFilter: "SMID!=''",
|
|
},
|
|
},
|
|
// hasGeometry: "true",
|
|
// hasGeometry: "true",
|
|
maxFeatures: 10000,
|
|
maxFeatures: 10000,
|
|
@@ -2737,6 +2723,13 @@ export default {
|
|
var VisitorFldIndex = that.getfldIndex(fieldInfos, VisitorFld);
|
|
var VisitorFldIndex = that.getfldIndex(fieldInfos, VisitorFld);
|
|
var VisitorFldVal = 0.0;
|
|
var VisitorFldVal = 0.0;
|
|
|
|
|
|
|
|
+ var FAAreaFld = window.CarPark.FAAreaFld; //方案建筑面积
|
|
|
|
+ var FAAreaFldIndex = that.getfldIndex(fieldInfos, FAAreaFld);
|
|
|
|
+ var FAAreaFldVal = 0.0;
|
|
|
|
+ var FAJRAreaFld = window.CarPark.FAJRAreaFld; //方案计容建筑面积
|
|
|
|
+ var FAJRAreaFldIndex = that.getfldIndex(fieldInfos, FAJRAreaFld);
|
|
|
|
+ var FAJRAreaFldVal = 0.0;
|
|
|
|
+
|
|
var landList = [
|
|
var landList = [
|
|
// //地块
|
|
// //地块
|
|
// {
|
|
// {
|
|
@@ -2801,6 +2794,14 @@ export default {
|
|
//面积
|
|
//面积
|
|
if (smareaFldIndex > -1)
|
|
if (smareaFldIndex > -1)
|
|
smareaFldVal = parseFloat(curFeature.fieldValues[smareaFldIndex]);
|
|
smareaFldVal = parseFloat(curFeature.fieldValues[smareaFldIndex]);
|
|
|
|
+
|
|
|
|
+ //方案面积 新增 20240717
|
|
|
|
+ if (FAAreaFldIndex > -1)
|
|
|
|
+ FAAreaFldVal = parseFloat(curFeature.fieldValues[FAAreaFldIndex]);
|
|
|
|
+ //方案计容面积
|
|
|
|
+ if (FAJRAreaFldIndex > -1)
|
|
|
|
+ FAJRAreaFldVal = parseFloat(curFeature.fieldValues[FAJRAreaFldIndex]);
|
|
|
|
+
|
|
//计容率
|
|
//计容率
|
|
if (JRRationFldIndex > -1)
|
|
if (JRRationFldIndex > -1)
|
|
JRRationFldVal = parseFloat(curFeature.fieldValues[JRRationFldIndex]);
|
|
JRRationFldVal = parseFloat(curFeature.fieldValues[JRRationFldIndex]);
|
|
@@ -2840,6 +2841,9 @@ export default {
|
|
VisitorFldVal = parseInt(curFeature.fieldValues[VisitorFldIndex]);
|
|
VisitorFldVal = parseInt(curFeature.fieldValues[VisitorFldIndex]);
|
|
else VisitorFldVal = 0;
|
|
else VisitorFldVal = 0;
|
|
|
|
|
|
|
|
+ if (BuidNoFldVal == "无" || BuidNoFldVal == "") {
|
|
|
|
+ BuidNoFldVal = "地下";
|
|
|
|
+ }
|
|
allItems.push({
|
|
allItems.push({
|
|
landNo: LandNoFldVal,
|
|
landNo: LandNoFldVal,
|
|
buildNo: BuidNoFldVal,
|
|
buildNo: BuidNoFldVal,
|
|
@@ -2848,6 +2852,8 @@ export default {
|
|
area: smareaFldVal,
|
|
area: smareaFldVal,
|
|
jrRation: JRRationFldVal,
|
|
jrRation: JRRationFldVal,
|
|
jrArea: JRAreaFldVal,
|
|
jrArea: JRAreaFldVal,
|
|
|
|
+ faArea: FAAreaFldVal,
|
|
|
|
+ faJRArea: FAJRAreaFldVal,
|
|
house: houseFldVal,
|
|
house: houseFldVal,
|
|
b144: B144FldVal,
|
|
b144: B144FldVal,
|
|
rooms: RoomFldVal,
|
|
rooms: RoomFldVal,
|
|
@@ -2879,6 +2885,9 @@ export default {
|
|
//地块的建筑面积和计容面积
|
|
//地块的建筑面积和计容面积
|
|
var landMJ = 0.0;
|
|
var landMJ = 0.0;
|
|
var landJRMJ = 0.0;
|
|
var landJRMJ = 0.0;
|
|
|
|
+ ///方案面积 新增 20240717
|
|
|
|
+ var landFAMJ = 0.0;
|
|
|
|
+ var landFAJRMJ = 0.0;
|
|
//当前地块所有建筑
|
|
//当前地块所有建筑
|
|
var curLandBuilds = [];
|
|
var curLandBuilds = [];
|
|
// {
|
|
// {
|
|
@@ -2886,24 +2895,28 @@ export default {
|
|
// buildNo: '',
|
|
// buildNo: '',
|
|
// mj: 0,
|
|
// mj: 0,
|
|
// jrmj: 0,
|
|
// jrmj: 0,
|
|
|
|
+ // famj:0, 20240717 新增
|
|
// floorCount: 0,
|
|
// floorCount: 0,
|
|
// floors: [
|
|
// floors: [
|
|
// //单层
|
|
// //单层
|
|
// {
|
|
// {
|
|
- // // layer: '',
|
|
|
|
- // // house: 0,
|
|
|
|
- // // B144: 0,
|
|
|
|
- // // rooms: '',
|
|
|
|
- // // mj: 0.00,
|
|
|
|
- // // jrmj: 0.00
|
|
|
|
|
|
+ // layer: '',
|
|
|
|
+ // house: 0,
|
|
|
|
+ // B144: 0,
|
|
|
|
+ // rooms: '',
|
|
|
|
+ // mj: 0.00,
|
|
|
|
+ // jrmj: 0.00,
|
|
|
|
+ // famj: 0.00, 20240717 新增
|
|
// }
|
|
// }
|
|
// ]
|
|
// ]
|
|
// }
|
|
// }
|
|
for (var k = 0; k < buidNoList.length; k++) {
|
|
for (var k = 0; k < buidNoList.length; k++) {
|
|
//当前建筑
|
|
//当前建筑
|
|
var curBuildNo = buidNoList[k];
|
|
var curBuildNo = buidNoList[k];
|
|
- var buildMj = 0.0;
|
|
|
|
- var buildJRMj = 0.0;
|
|
|
|
|
|
+ var buildMJ = 0.0;
|
|
|
|
+ var buildJRMJ = 0.0;
|
|
|
|
+ var buildFAMJ = 0.0; //20240717 新增
|
|
|
|
+ var buildFAJRMJ = 0.0;
|
|
var floorList = [];
|
|
var floorList = [];
|
|
var ytList = [];
|
|
var ytList = [];
|
|
var buildItemList = landGroup.filter((t) => t.buildNo == curBuildNo);
|
|
var buildItemList = landGroup.filter((t) => t.buildNo == curBuildNo);
|
|
@@ -2914,6 +2927,8 @@ export default {
|
|
if (ytList.indexOf(yt) == -1) ytList.push(yt);
|
|
if (ytList.indexOf(yt) == -1) ytList.push(yt);
|
|
landMJ += buildItemList[m].area;
|
|
landMJ += buildItemList[m].area;
|
|
landJRMJ += buildItemList[m].jrArea;
|
|
landJRMJ += buildItemList[m].jrArea;
|
|
|
|
+ landFAMJ += buildItemList[m].faArea;
|
|
|
|
+ landFAJRMJ += buildItemList[m].faJRArea;
|
|
}
|
|
}
|
|
var curfloors = [];
|
|
var curfloors = [];
|
|
var singleBuild = {};
|
|
var singleBuild = {};
|
|
@@ -2927,18 +2942,23 @@ export default {
|
|
//当前楼层的面积、计容面积、房间数等
|
|
//当前楼层的面积、计容面积、房间数等
|
|
var mj = 0.0;
|
|
var mj = 0.0;
|
|
var jrmj = 0.0;
|
|
var jrmj = 0.0;
|
|
|
|
+ var famj = 0.0; //20240717 新增
|
|
|
|
+ var fajrmj = 0.0;
|
|
var rooms = 0;
|
|
var rooms = 0;
|
|
- var layer = floorText;
|
|
|
|
|
|
+ // var layer = floorText;
|
|
var house = 0;
|
|
var house = 0;
|
|
var B144 = 0;
|
|
var B144 = 0;
|
|
curFloors.forEach((item, index) => {
|
|
curFloors.forEach((item, index) => {
|
|
mj += item.area;
|
|
mj += item.area;
|
|
jrmj += item.jrArea;
|
|
jrmj += item.jrArea;
|
|
|
|
+ famj += item.faArea; //20240717 新增
|
|
|
|
+ fajrmj += item.faJRArea;
|
|
house += item.house;
|
|
house += item.house;
|
|
B144 += item.b144;
|
|
B144 += item.b144;
|
|
});
|
|
});
|
|
var floorClass = [];
|
|
var floorClass = [];
|
|
// classes: [{yt: '', house: 0,B144: 0,rooms: '',mj: 0.00,jrmj: 0.00,}]
|
|
// classes: [{yt: '', house: 0,B144: 0,rooms: '',mj: 0.00,jrmj: 0.00,}]
|
|
|
|
+ // 用途-----start
|
|
for (var t = 0; t < ytList.length; t++) {
|
|
for (var t = 0; t < ytList.length; t++) {
|
|
var curyt = ytList[t];
|
|
var curyt = ytList[t];
|
|
var ytHouse = 0;
|
|
var ytHouse = 0;
|
|
@@ -2946,6 +2966,8 @@ export default {
|
|
var ytrooms = 0;
|
|
var ytrooms = 0;
|
|
var ytytmj = 0.0;
|
|
var ytytmj = 0.0;
|
|
var ytjrmj = 0.0;
|
|
var ytjrmj = 0.0;
|
|
|
|
+ var ytfamj = 0.0; //20240717
|
|
|
|
+ var ytfajrmj = 0.0;
|
|
var teachers = 0.0;
|
|
var teachers = 0.0;
|
|
var seats = 0.0;
|
|
var seats = 0.0;
|
|
var visitor = 0.0;
|
|
var visitor = 0.0;
|
|
@@ -2956,6 +2978,8 @@ export default {
|
|
ytrooms += tt.rooms;
|
|
ytrooms += tt.rooms;
|
|
ytytmj += tt.area;
|
|
ytytmj += tt.area;
|
|
ytjrmj += tt.jrArea;
|
|
ytjrmj += tt.jrArea;
|
|
|
|
+ ytfamj += tt.faArea;
|
|
|
|
+ ytfajrmj += tt.faJRArea;
|
|
ytHouse += tt.house;
|
|
ytHouse += tt.house;
|
|
teachers += tt.teachers;
|
|
teachers += tt.teachers;
|
|
seats += tt.seats;
|
|
seats += tt.seats;
|
|
@@ -2968,11 +2992,14 @@ export default {
|
|
rooms: ytrooms,
|
|
rooms: ytrooms,
|
|
mj: ytytmj,
|
|
mj: ytytmj,
|
|
jrmj: ytjrmj,
|
|
jrmj: ytjrmj,
|
|
|
|
+ famj: ytfamj,
|
|
|
|
+ fajrmj: ytfajrmj,
|
|
teachers: teachers,
|
|
teachers: teachers,
|
|
seats: seats,
|
|
seats: seats,
|
|
visitor: visitor,
|
|
visitor: visitor,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ // 用途-----end
|
|
floors.push({
|
|
floors.push({
|
|
layer: floorText,
|
|
layer: floorText,
|
|
// class: yt,
|
|
// class: yt,
|
|
@@ -2981,15 +3008,21 @@ export default {
|
|
rooms: rooms,
|
|
rooms: rooms,
|
|
mj: mj,
|
|
mj: mj,
|
|
jrmj: jrmj,
|
|
jrmj: jrmj,
|
|
|
|
+ famj: famj,
|
|
|
|
+ fajrmj: fajrmj,
|
|
classes: floorClass,
|
|
classes: floorClass,
|
|
});
|
|
});
|
|
- buildMj += mj;
|
|
|
|
- buildJRMj += jrmj;
|
|
|
|
|
|
+ buildMJ += mj;
|
|
|
|
+ buildJRMJ += jrmj;
|
|
|
|
+ buildFAMJ += famj;
|
|
|
|
+ buildFAJRMJ += fajrmj;
|
|
}
|
|
}
|
|
singleBuild = {
|
|
singleBuild = {
|
|
buildNo: curBuildNo,
|
|
buildNo: curBuildNo,
|
|
- mj: buildMj,
|
|
|
|
- jrmj: buildJRMj,
|
|
|
|
|
|
+ mj: buildMJ,
|
|
|
|
+ jrmj: buildJRMJ,
|
|
|
|
+ famj: buildFAMJ,
|
|
|
|
+ fajrmj: buildFAJRMJ,
|
|
floorCount: floorList.length,
|
|
floorCount: floorList.length,
|
|
floors: floors,
|
|
floors: floors,
|
|
};
|
|
};
|
|
@@ -3000,6 +3033,8 @@ export default {
|
|
buildNum: buidNoList.length,
|
|
buildNum: buidNoList.length,
|
|
mj: landMJ,
|
|
mj: landMJ,
|
|
jrmj: landJRMJ,
|
|
jrmj: landJRMJ,
|
|
|
|
+ famj: landFAMJ,
|
|
|
|
+ fajrmj: landFAJRMJ,
|
|
jdcCount: landjdcCount,
|
|
jdcCount: landjdcCount,
|
|
fjdcCount: landfjdcCount,
|
|
fjdcCount: landfjdcCount,
|
|
builds: curLandBuilds,
|
|
builds: curLandBuilds,
|