123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
-
-
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParnet_ids();
-
- //加载信息
- $(function(){
- //应急预案获取
- $("#MEET_EMERGENCIES_PLAN_365").initYewuSelect("214","FD_OBJECTID","PLAN_NAME");
-
- //初始化预警范围下拉框
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#EARLY_WARNING_AREA_OBJ_365").data("data",data);
- $("#EARLY_WARNING_AREA_OBJ_365").render();
- }, "json");
-
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];//获取记录id
- getFileList(fd_id);//加载附件调用的方法
- $('#fileListLegend').css("display","block");
- $('#fileList').css("display","block");
- var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
- var params = {
- classid : '365',
- objectID : fd_id
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- success : function(data){
- $('#fillForm').ajaxWrite({data:data});
- $('#fillForm input[name="classid"]').val('365');
- $('#fillForm input[name="EARLY_WARNING_PROPERTY_365"]').val(data.EARLY_WARNING_PROPERTY_365);
- for(var i in data){
- $('#'+i).html(data[i]);
- }
- level();
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- });
-
- //两个预警级别的复选框获取值的方法
- function level(){
- //预警性质
- if($("#temp1").val() == "初次发布"){
- $("#EARLY_WARNING_PROPERTY_365").attr('checked','checked');
- //$("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//初次发布禁用
- //$("#WETHER_EW_ADJUST_365").attr("disabled",true);//是否预警禁用
- $("#last1").attr("disabled",true);//上次预警单号禁用
- $("#PREV_EW_LEVEL_365").attr("disabled",true);//上次级别禁用
- $("#PREV_EW_LEVEL_365").render();
- }
- //是否预警调整
- if($("#temp2").val() == "是"){
- $("#WETHER_EW_ADJUST_365").attr('checked','checked');
- $("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//是否预警调整禁用
- //$("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//初次预警禁用
- }
- b();
- }
- /* //选择初次发布
- function a(){
- $("#EARLY_WARNING_PROPERTY_365").attr('checked','checked');
- //$("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//初次发布禁用
- $("#WETHER_EW_ADJUST_365").attr("disabled",true);//是否预警禁用
- $("#last1").attr("disabled",true);//上次预警单号禁用
- $("#PREV_EW_LEVEL_365").attr("disabled",true);//上次级别禁用
- $("#PREV_EW_LEVEL_365").render();
- } */
- //选择预警调整
- function b(){
- $("#WETHER_EW_ADJUST_365").attr('checked','checked');//勾选是否预警调整
- //$("#WETHER_EW_ADJUST_365").attr("disabled",true);//是否预警调整禁用
- $("#EARLY_WARNING_PROPERTY_365").attr('checked',false);//初次发布取消勾选
- $("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//初次预警禁用
- $("#last1").attr("disabled",false);//上次预警单号解禁
- //$("#last1").attr("val",);
- $("#PREV_EW_LEVEL_365").attr("disabled",false);//上次级别解禁
- $("#PREV_EW_LEVEL_365").render();
- }
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/alert/notice/manage.html";
- }
- //发布按钮点击事件
- function issue(){
- /* var myDate=allGetServerTime() ;
- //alert(myDate);
- window.location.href="/nwyj/page/business/em/alert/notice/manage.html";*/
- }
- //保存按钮点击事件
- function save(){
-
- }
|