Commit c341df48 authored by liuna's avatar liuna

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

--新增质量质量规则修改
parent 7959a444
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="slideMenu" id="cbp-spmenu-s2" style=""> <div class="slideMenu" id="cbp-spmenu-s2" style="">
<div class="form"> <div class="form">
<tags:Public_ProvinceTag />
<tags:GJFX_datasource_channle_business/> <tags:GJFX_datasource_channle_business/>
<button id="submit" class="btn btn-primary" onclick="ruleResultSubmit()">提交</button> <button id="submit" class="btn btn-primary" onclick="ruleResultSubmit()">提交</button>
...@@ -113,15 +113,13 @@ $("#createRule").click(function(){ ...@@ -113,15 +113,13 @@ $("#createRule").click(function(){
var dataSource=getStatsDataSourceCheckedValuesString(); var dataSource=getStatsDataSourceCheckedValuesString();
var chnnal=getStatsChannelCheckedValuesString(); var chnnal=getStatsChannelCheckedValuesString();
var bussines=getStatsBusinessCheckedValuesString(); var bussines=getStatsBusinessCheckedValuesString();
var province=getProvinceCheckedValuesString();
if(dataSource==""){ if(dataSource==""){
$.alert("数据来源的选择不能为空"); $.alert("数据来源的选择不能为空");
}else if(chnnal===""){ }else if(chnnal===""){
$.alert("渠道的选择不能为空"); $.alert("渠道的选择不能为空");
}else if(bussines===""){ }else if(bussines===""){
$.alert("业务的选择不能为空"); $.alert("业务的选择不能为空");
}else if(province===""){
$.alert("省份的选择不能为空");
}else{ }else{
toggleMenu('slidePushMenus');//隐藏筛选项 toggleMenu('slidePushMenus');//隐藏筛选项
//数据来源标签 //数据来源标签
...@@ -133,13 +131,11 @@ $("#createRule").click(function(){ ...@@ -133,13 +131,11 @@ $("#createRule").click(function(){
//业务标签 //业务标签
$('#BusinessTag').text("业务").append($("<span class='badge'></span>").text(getStatsBusinessCheckedValues().length)).attr('data-original-title',getStatsBusinessCheckedTitlesString()).tooltip(); $('#BusinessTag').text("业务").append($("<span class='badge'></span>").text(getStatsBusinessCheckedValues().length)).attr('data-original-title',getStatsBusinessCheckedTitlesString()).tooltip();
//省份标签
$('#ProvinceTag').text("省份").append($("<span class='badge'></span>").text(getProvinceCheckedValues().length)).attr('data-original-title',getProvinceCheckedTitles()).tooltip();
$.ajax({ $.ajax({
type : 'GET', type : 'GET',
contentType : 'application/json', contentType : 'application/json',
url: "${ctx}/AnalysisSupport/QualityRuleResult/ruleTableChange?province="+province+"&dataSource="+dataSource+"&chnnal="+chnnal+"&bussines="+bussines, url: "${ctx}/AnalysisSupport/QualityRuleResult/ruleTableChange?dataSource="+dataSource+"&chnnal="+chnnal+"&bussines="+bussines,
dataType : 'text', dataType : 'text',
async: false, async: false,
beforeSend: function(data) { beforeSend: function(data) {
...@@ -158,7 +154,7 @@ $("#createRule").click(function(){ ...@@ -158,7 +154,7 @@ $("#createRule").click(function(){
} }
function ruleResultReset(){ function ruleResultReset(){
ProvinceReset();
statsDataSourceReset();//三级联动重置 statsDataSourceReset();//三级联动重置
} }
$("#updateRule").click(function(){ $("#updateRule").click(function(){
...@@ -168,7 +164,23 @@ $("#updateRule").click(function(){ ...@@ -168,7 +164,23 @@ $("#updateRule").click(function(){
$("#deleteRule").click(function(){ $("#deleteRule").click(function(){
var pageNum = $("#goPageNo").val(); var pageNum = $("#goPageNo").val();
location.href="${ctx}/AnalysisSupport/RuleDelete?qualityRuleId="+qualityRuleId; $.dialog({
title: "提醒",
content:"确定删除质量规则?",
ok: function(){
$.ajax({
type: 'get',
url: "${ctx}/AnalysisSupport/QualityRuleResult/deleteOneRule?qualityRuleId="+qualityRuleId,
success:function(){
window.location.href="${ctx}/AnalysisSupport/QualityRuleResult"
}
});
},
okValue:"确定",
cancel: function(){},
cancelValue:"取消",
lock:true
});
}); });
</script> </script>
......
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