123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //加载信息
- $(function(){
- //应急预案获取
- $("#MEET_EMERGENCIES_PLAN_365").initYewuSelect("214","FD_OBJECTID","PLAN_NAME");
-
- 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);//初次预警禁用
- }
- }
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/alert/notice/manage.html";
- }
- //撤回按钮点击事件
- function recall(){
-
- }
|