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