/**定义变量**/ var _this = this; /**私有方法**/ /***新增信息***/ _this.save = function(){ var message=''; var equipmentval; var equipmenttext; var safeyval; var safetext; var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]"); if(!checkTime()){ return; }else if(!decideTime()){ return ; }else if(pattern.test($("#MISSION_NAME_703").val())){ top.Dialog.alert("填报要求名称不能包含特殊字符"); return; } $('#editForm input[name="classid"]').val('703'); //获得填报地区名 var write_area=$("#WRITE_AREA_ID_703_show").val(); $("#WRITE_AREA_703").val(write_area); //获取表名及部门名称 if($("#EQUIPMENT_DEPT").attr("relText")!="请选择" && $("#EQUIPMENT_DEPT").attr("relText")!=undefined){ var tb1=''; equipmentval = splits($("#EQUIPMENT_DEPT").attr("relValue")); equipmenttext = $("#EQUIPMENT_DEPT").attr("relText"); var nodes = $("#EQUIPMENT_DEPT").data("selectedNodes"); for(var i=0;i/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]"); if(!checkTime()){ return; }else if(!decideTime()){ return ; }else if(pattern.test($("#MISSION_NAME_703").val())){ top.Dialog.alert("填报要求名称不能包含特殊字符"); return; } $('#editForm input[name="classid"]').val('703'); //获得填报地区名 var write_area=$("#WRITE_AREA_ID_703_show").val(); $("#WRITE_AREA_703").val(write_area); //获取表名及部门名称 if($("#EQUIPMENT_DEPT").attr("relText")!="请选择" && $("#EQUIPMENT_DEPT").attr("relText")!=undefined){ var tb1=''; equipmentval = splits($("#EQUIPMENT_DEPT").attr("relValue")); equipmenttext = $("#EQUIPMENT_DEPT").attr("relText"); var nodes = $("#EQUIPMENT_DEPT").data("selectedNodes"); for(var i=0;i