Commit 29aec394 authored by liuna's avatar liuna

2017年12月15日 智能分析平台提交内容

--数据质量规则新增页面增加省份、业务和指标全选项
parent 793255b1
......@@ -47,8 +47,9 @@
<table id="ruleMaintainTable" class="table-null">
<tr><td>省份(<font color="red">必填</font>):</td>
<td>
<div class="checkbox-inline"><label><input type="checkbox" id="allProvince" name="allProvince" checked>全选</label></div><br/>
<c:forEach var="province" items="${provinceList}">
<input type="checkbox" name="province" id="province" value="${province.provinceId}" checked>${province.provinceName}
<input type="checkbox" name="province" class="province" id="province" value="${province.provinceId}" checked>${province.provinceName}
</c:forEach>
</td>
</tr>
......@@ -79,6 +80,7 @@
</tr>
<tr><td>业务(<font color="red">必填</font>):</td>
<td >
<div class="checkbox-inline"><label><input type="checkbox" id="allBusiness" name="allBusiness" checked>全选</label></div><br/>
<div id="businesstd"></div>
</td>
......@@ -93,6 +95,7 @@
</td></tr>
<tr><td>指标(<font color="red">必填</font>):</td>
<td>
<div class="checkbox-inline"><label><input type="checkbox" id="allKpi" name="allKpi" checked>全选</label></div><br/>
<div id="kpitd"></div>
</td>
......@@ -544,6 +547,31 @@ var provinceValue = getProvinceCheckedValuesString();
var businessValue = getBusinessCheckedValuesString();
var kpiValue = getKpiCheckedValuesString();
//省份全选
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
}else{//不全选
$(".province").attr("checked",false);
}
});
//业务全选
$("#allBusiness").click(function(){
if($("#allBusiness").attr("checked") == "checked"){//全选
$(".businessItem").attr("checked","checked");
}else{//不全选
$(".businessItem").attr("checked",false);
}
});
//指标全选
$("#allKpi").click(function(){
if($("#allKpi").attr("checked") == "checked"){//全选
$(".kpiItem").attr("checked","checked");
}else{//不全选
$(".kpiItem").attr("checked",false);
}
});
</script>
</body>
......
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