|
|
@@ -2413,18 +2413,21 @@ INTERFACE_EXPORT = (() => {
|
|
|
|
|
|
|
|
|
let BuildType = "";
|
|
|
- if (baseMap["natureConstruction"].value == "新建") BuildType = 0;
|
|
|
- if (baseMap["natureConstruction"].value == "改扩建") BuildType = 1;
|
|
|
+ const natureConstruction = baseMap["natureConstruction"] || {};
|
|
|
+ if (natureConstruction.value == "新建") BuildType = 0;
|
|
|
+ if (natureConstruction.value == "改扩建") BuildType = 1;
|
|
|
let Terrain = "";
|
|
|
- if (baseMap["terrainCategory"].value == "平原微丘") Terrain = 0;
|
|
|
- if (baseMap["terrainCategory"].value == "山岭重丘") Terrain = 1;
|
|
|
- let DesignSpeed = featrueMap["designSpeed"].value;
|
|
|
+ const terrainCategory = baseMap["terrainCategory"] || {};
|
|
|
+ if (terrainCategory.value == "平原微丘") Terrain = 0;
|
|
|
+ if (terrainCategory.value == "山岭重丘") Terrain = 1;
|
|
|
+ let DesignSpeed = (featrueMap["designSpeed"] || {}).value;
|
|
|
let Structure = "";
|
|
|
- if (featrueMap["pavementStructure"].value == "沥青路面") Structure = 0;
|
|
|
- if (featrueMap["pavementStructure"].value == "水泥混凝土路面") Structure = 1;
|
|
|
- if (featrueMap["pavementStructure"].value == "其他类型路面") Structure = 2;
|
|
|
+ const pavementStructure = featrueMap["pavementStructure"] || {};
|
|
|
+ if (pavementStructure.value == "沥青路面") Structure = 0;
|
|
|
+ if (pavementStructure.value == "水泥混凝土路面") Structure = 1;
|
|
|
+ if (pavementStructure.value == "其他类型路面") Structure = 2;
|
|
|
let RoadGrade = "";
|
|
|
- if (RoadGradeMap[baseMap["roadGrade"].value]) RoadGrade = RoadGradeMap[baseMap["roadGrade"].value];
|
|
|
+ if (RoadGradeMap[(baseMap["roadGrade"] || {value: ''}).value]) RoadGrade = RoadGradeMap[baseMap["roadGrade"].value];
|
|
|
|
|
|
const attrs = [{
|
|
|
name: "PrjArea",
|