Commit c7cfe40d authored by 莫林毅's avatar 莫林毅

修改 了页面

parent 7bdffc50
...@@ -267,8 +267,10 @@ ...@@ -267,8 +267,10 @@
var detailtime=getPeriodString(); var detailtime=getPeriodString();
if(detailtime == "" || detailtime == null||detailtime.length <2){ if(detailtime == "" || detailtime == null||detailtime.length <2){
$.alert("时间范围不能为空"); $.alert("时间范围不能为空");
return ;
}else if(detailProvinceSum==0) { }else if(detailProvinceSum==0) {
$.alert("省份的选择不能为空"); $.alert("省份的选择不能为空");
return ;
}else{ }else{
var detailProvince = getDetailProvinceCheckedValueString(); var detailProvince = getDetailProvinceCheckedValueString();
var dimension=getDetailCheckeddDimension(); var dimension=getDetailCheckeddDimension();
......
...@@ -63,11 +63,9 @@ ...@@ -63,11 +63,9 @@
<tr> <tr>
<td>省份:</td> <td>省份:</td>
<td> <td>
<%--<select class="form-control" name="proviceTd" id="proviceTd" > <div class="checkbox-inline">
<c:forEach var="provice" items="${proviceList}"> <input type="checkbox" name="" id="provinceDetailAll" title="" value="" />全选
<option value="${provice.provinceId}">${provice.provinceName}</option> </div>
</c:forEach>
</select>--%>
<c:forEach var="provice" items="${proviceList}"> <c:forEach var="provice" items="${proviceList}">
<div class="checkbox-inline"> <div class="checkbox-inline">
<label> <label>
...@@ -213,6 +211,19 @@ ...@@ -213,6 +211,19 @@
} }
}); });
//全选和不全选所有的省
$("#provinceDetailAll").click(function () {
if($("#provinceDetailAll").attr("checked") == "checked"){//全选
$("provinceDetail").attr("checked","checked");
$("input[name='provinceDetail']").attr("checked","checked");
}else{//不全选
$("input[name='provinceDetail']").attr("checked",false);
$("input[name='provinceDetail']").attr("disabled",false);
}
});
//模型名称是否重复判断 //模型名称是否重复判断
var isDouble = true; var isDouble = true;
$("#dataModelName").blur(function(){ $("#dataModelName").blur(function(){
...@@ -377,6 +388,7 @@ ...@@ -377,6 +388,7 @@
var kpiWeightTdV=$("#kpiWeightTd").val(); var kpiWeightTdV=$("#kpiWeightTd").val();
$("#modelSubmit").attr("disabled","disabled");
$.ajax({ $.ajax({
type : 'GET', type : 'GET',
async : true, async : true,
...@@ -473,7 +485,7 @@ ...@@ -473,7 +485,7 @@
// var jsonDa=data; // var jsonDa=data;
var strcheckBox=""; var strcheckBox="";
for(var i=0;i<jsonDa.length;i++){ for(var i=0;i<jsonDa.length;i++){
var strInput="<input type='checkbox' onClick='BusinessCheckClick()' id=BusinessCheck_"+jsonDa[i].businessId+" name='BusinessCheck' class='provinceDetail' title='"+jsonDa[i].businessName+" value='"+jsonDa[i].businessId+"'/>"+jsonDa[i].businessName; var strInput="<input type='checkbox' onClick='BusinessCheckClick()' id=BusinessCheck_"+jsonDa[i].businessId+" name='BusinessCheck' class='provinceDetail' title='"+jsonDa[i].businessName+"' value='"+jsonDa[i].businessId+"'/>"+jsonDa[i].businessName;
strcheckBox+=strInput; strcheckBox+=strInput;
} }
$("#businessActivedListTd").append(strcheckBox); $("#businessActivedListTd").append(strcheckBox);
...@@ -523,7 +535,7 @@ ...@@ -523,7 +535,7 @@
var jsonDa=eval('('+data+')'); var jsonDa=eval('('+data+')');
var strcheckBox=""; var strcheckBox="";
for(var i=0;i<jsonDa.length;i++){ for(var i=0;i<jsonDa.length;i++){
var strInput="<input type='checkbox' onClick='BusinessCheckClick()' id=BusinessCheck_"+jsonDa[i].businessId+" name='BusinessCheck' class='provinceDetail' title='"+jsonDa[i].businessName+" value='"+jsonDa[i].businessId+"'/>"+jsonDa[i].businessName; var strInput="<input type='checkbox' onClick='BusinessCheckClick()' id=BusinessCheck_"+jsonDa[i].businessId+" name='BusinessCheck' class='provinceDetail' title='"+jsonDa[i].businessName+"' value='"+jsonDa[i].businessId+"'/>"+jsonDa[i].businessName;
strcheckBox+=strInput; strcheckBox+=strInput;
} }
$("#businessActivedListTd").append(strcheckBox); $("#businessActivedListTd").append(strcheckBox);
...@@ -568,7 +580,7 @@ ...@@ -568,7 +580,7 @@
for(var i=0;i<jsonDa.length;i++){ for(var i=0;i<jsonDa.length;i++){
if($.inArray(jsonDa[i].kpiId,dimKpiSelected) < 0){ if($.inArray(jsonDa[i].kpiId,dimKpiSelected) < 0){
var strInput="<input type='checkbox' id=dimKpiCheck_"+jsonDa[i].kpiId+" name='dimKpiCheck' class='provinceDetail' title='"+jsonDa[i].name+"' value='"+jsonDa[i].kpiId+"'/><font>"+jsonDa[i].name+"</font>"; var strInput="<input type='checkbox' id=dimKpiCheck_"+jsonDa[i].kpiId+" name='dimKpiCheck' class='provinceDetail' title='"+jsonDa[i].name+" "+jsonDa[i].code+"' value='"+jsonDa[i].kpiId+"'/><font>"+jsonDa[i].name+"</font>";
$("#dimKpiListTd").append(strInput); $("#dimKpiListTd").append(strInput);
} }
...@@ -685,7 +697,7 @@ ...@@ -685,7 +697,7 @@
var arrDimKpiChecked=[]; var arrDimKpiChecked=[];
$("input[name='dimKpiCheck']").each(function(e){ $("input[name='dimKpiCheck']").each(function(e){
if($(this).attr("checked")){ if($(this).attr("checked")){
var id_name=$(this).context.id.split("_")[1]+"_"+$(this).context.title; var id_name=$(this).context.id.split("_")[1]+"_"+$(this).context.title.split(" ")[0];
arrDimKpiChecked.push(id_name); arrDimKpiChecked.push(id_name);
} }
}); });
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<form action="#" class="form-horizontal" id="modelMaintainForm" method="post" <form action="#" class="form-horizontal" id="modelMaintainForm" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<table id="modelMaintainTable" class="table-null"> <table id="modelMaintainTable" class="table-null">
<input type="text" id="associationId" value="${anaInfo.associationId}"> <input type="hidden" id="associationId" value="${anaInfo.associationId}">
<input type="hidden" id="dimKpiSelectedList" value="${dimKpiSelectedList}"> <input type="hidden" id="dimKpiSelectedList" value="${dimKpiSelectedList}">
<tr> <tr>
<td>省份:</td> <td>省份:</td>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</div> </div>
</div> </div>
</div> </div>
${anaInfo} <%--${anaInfo}--%>
<script type="text/javascript"> <script type="text/javascript">
......
...@@ -8,9 +8,9 @@ function initTable(){ ...@@ -8,9 +8,9 @@ function initTable(){
header[2] = ["结束时间","failureTitle","10%","16"]; header[2] = ["结束时间","failureTitle","10%","16"];
header[3] = ["省份","provinceName","5%",""]; header[3] = ["省份","provinceName","5%",""];
header[4] = ["类型","channelName","8%",""]; header[4] = ["类型","channelName","8%",""];
header[5] = ["名称告警个数","dataSourceName","8%",""]; header[5] = ["名称","dataSourceName","8%",""];
header[6] = ["异常种类","warningSourceName","8%",""]; header[6] = ["告警个数","warningSourceName","8%",""];
header[7] = ["标告警明细","providerName","8%",""]; header[7] = ["标告警明细","providerName","8%",""];
/*header[8] = ["发生时间","happenTime","10%",""]; /*header[8] = ["发生时间","happenTime","10%",""];
header[9] = ["结束时间","closeTime","10%",""]; header[9] = ["结束时间","closeTime","10%",""];
header[10] = ["详细原因","failureReason","14%","20"]; header[10] = ["详细原因","failureReason","14%","20"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment