|
@@ -35,7 +35,102 @@ $(document).ready(function () {
|
|
|
alert("保存失败,请查看输入数据");
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+ $("#createNormal").click(()=>{
|
|
|
+ $("#createNormal").click(async function() {
|
|
|
+ let explorer =[
|
|
|
+ {
|
|
|
+ "dispName": "学校",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "dispName": "教学楼",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "academicBuilding",
|
|
|
+ "monomerType": "building"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "体育馆",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "gymnasium",
|
|
|
+ "monomerType": "building"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "食堂",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "Canteen",
|
|
|
+ "monomerType": "building"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "集体宿舍",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "collectiveDormitory",
|
|
|
+ "monomerType": "building"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "key": "school"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "医院",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "dispName": "门诊楼",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "outpatientBuilding",
|
|
|
+ "monomerType": "building"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "住院楼",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "inpatientBuilding",
|
|
|
+ "monomerType": "building"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "集体宿舍",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "collectiveDormitory",
|
|
|
+ "monomerType": "building"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "key": "hospital"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "市政工程",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "dispName": "新建改建扩建",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "newConstruction",
|
|
|
+ "monomerType": "civil"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "景观提升",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "landscapeImprovement",
|
|
|
+ "monomerType": "civil"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "养护大中修",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "curing",
|
|
|
+ "monomerType": "civil"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dispName": "小修保养",
|
|
|
+ "isHaveStructuralSegment": "true",
|
|
|
+ "key": "routineMaintenance",
|
|
|
+ "monomerType": "civil"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "key": "municipalConstruction"
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ try {
|
|
|
+ let jsonText = JSON.stringify(explorer);
|
|
|
+ $("#templateLibs").val(JSON.stringify(JSON.parse(jsonText),null,4));
|
|
|
+ }catch (err){
|
|
|
+ console.log(err);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
|
|
|
});
|