Commit 0f13bb5d authored by 胡斌's avatar 胡斌

Merge remote-tracking branch 'origin/moly'

# Conflicts: # .idea/workspace.xml
parents 445fbf80 fe555508
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="JavaScriptSettings"> <component name="JavaScriptSettings">
<option name="languageLevel" value="ES5" /> <option name="languageLevel" value="ES5" />
</component> </component>
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
<target name="clean"> <target name="clean">
<delete dir="${basedir}/build" /> <delete dir="${basedir}/build" />
<mkdir dir="${basedir}/build" /> <mkdir dir="${basedir}/build" />
</target> </target>
n
<!-- 定义任务,编译src文件夹中的java文件,编译后的class文件放到创建的文件夹下。 --> <!-- 定义任务,编译src文件夹中的java文件,编译后的class文件放到创建的文件夹下。 -->
<target name="compile" depends="clean"> <target name="compile" depends="clean">
<javac target="1.6" debug="on" encoding="UTF-8" srcdir="${basedir}/src/main/java" destdir="${basedir}/build" includeantruntime="false"> <javac target="1.6" debug="on" encoding="UTF-8" srcdir="${basedir}/src/main/java" destdir="${basedir}/build" includeantruntime="false">
<compilerarg value="-Xlint:unchecked" /> <compilerarg value="-Xlit:unchecked" />
<classpath refid="project.lib"></classpath> <classpath refid="project.lib"></classpath>
</javac> </javac>
<native2ascii src="src/main/resources" dest="${basedir}/build" encoding="UTF-8" /> <native2ascii src="src/main/resources" dest="${basedir}/build" encoding="UTF-8" />
......
...@@ -52,7 +52,6 @@ public class AssociateDiagosisConfigurationController { ...@@ -52,7 +52,6 @@ public class AssociateDiagosisConfigurationController {
List<DimAssociationAnaInfo> listDim = new ArrayList<DimAssociationAnaInfo>(); List<DimAssociationAnaInfo> listDim = new ArrayList<DimAssociationAnaInfo>();
// List<DimKpi>listDimKpi=new ArrayList<DimKpi>();
if (detailProvince.equalsIgnoreCase("") && dimension.equalsIgnoreCase("")) {//查找所有 if (detailProvince.equalsIgnoreCase("") && dimension.equalsIgnoreCase("")) {//查找所有
listDim = associateDiagosisConfigurationService.findAllDimAssociationAnaInfo(); listDim = associateDiagosisConfigurationService.findAllDimAssociationAnaInfo();
} }
...@@ -89,7 +88,6 @@ public class AssociateDiagosisConfigurationController { ...@@ -89,7 +88,6 @@ public class AssociateDiagosisConfigurationController {
List<Province> provinceList = (List<Province>) provinceDao.findProvince(); List<Province> provinceList = (List<Province>) provinceDao.findProvince();
model.put("provinceList", provinceList); model.put("provinceList", provinceList);
// model.put("listDimKpi", gson.toJson(listDimKpi));//所有指标
model.put("gzfxDetailInfos", gson.toJson(listDim)); model.put("gzfxDetailInfos", gson.toJson(listDim));
model.put("provinces", gsonP.toJson(provinceList)); model.put("provinces", gsonP.toJson(provinceList));
model.put("indicatorsAll", gsonP.toJson(provinceList));//所有指标 model.put("indicatorsAll", gsonP.toJson(provinceList));//所有指标
...@@ -595,6 +593,38 @@ public class AssociateDiagosisConfigurationController { ...@@ -595,6 +593,38 @@ public class AssociateDiagosisConfigurationController {
} }
@RequestMapping(value = {"/deleteAssociDigConfigM"})
public String deleteAssociDigConfigM(@RequestParam(value = "associationId", defaultValue = "") String associationId, Map model) {
String strR="";
try {
Long associationIdL = Long.parseLong(associationId);//associationId
associateDiagosisConfigurationService.deleteAssociDigConfig(associationIdL);
strR="success";
} catch (Exception e) {
strR="failed";
e.printStackTrace();
}
List<DimAssociationAnaInfo> listDim = new ArrayList<DimAssociationAnaInfo>();
listDim = associateDiagosisConfigurationService.findAllDimAssociationAnaInfo();
Gson gson = new Gson();
List<Province> provinceList = (List<Province>) provinceDao.findProvince();
model.put("provinceList", provinceList);
model.put("gzfxDetailInfos", gson.toJson(listDim));
model.put("provinces", gson.toJson(provinceList));
model.put("indicatorsAll", gson.toJson(provinceList));//所有指标
model.put("deleleMess", strR);//提示信息
return PageURLController.AssociateDiagosisConfiguration;
}
} }
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
<script type="text/javascript" src="${ctx}/static/js/associatediagosisconfiguration.js"></script> <script type="text/javascript" src="${ctx}/static/js/associatediagosisconfiguration.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
var deleleMess=document.getElementById('deleleMess').value;
if(deleleMess === 'success'){
//setTimeout("alert('ok')",2000);
}
var jso = document.getElementById('gzfxDetail').value; var jso = document.getElementById('gzfxDetail').value;
// failureTable(); // failureTable();
// initDateDetail();//初始化 时间范围 // initDateDetail();//初始化 时间范围
...@@ -113,11 +117,12 @@ ...@@ -113,11 +117,12 @@
style="top: -6px;float: right;height: 0px;position: relative;"> style="top: -6px;float: right;height: 0px;position: relative;">
<button id="createIndicatorsBtn" <button id="createIndicatorsBtn"
class="btn-sm btn btn-primary btn-sm btn-group btn-group-cog" class="btn-sm btn btn-primary btn-sm btn-group btn-group-cog"
onclick="createIndicators()">新建关联配置 onclick="createIndicators()">新建
</button> </button>
<button type="button" id="deleteAnaInfo" class="btn btn-danger" disabled>删除</button>
<button id="updateIndicatorsBtn" <button id="updateIndicatorsBtn"
class="btn-sm btn btn-primary btn-sm btn-group btn-group-cog" disabled class="btn-sm btn btn-primary btn-sm btn-group btn-group-cog" disabled
>修改关联配置 >修改
</button> </button>
</div> </div>
</shiro:hasAnyRoles> </shiro:hasAnyRoles>
...@@ -144,6 +149,7 @@ ...@@ -144,6 +149,7 @@
<input type="hidden" id="provinceAll" name="provinceAll" value='${provinces}' /> <input type="hidden" id="provinceAll" name="provinceAll" value='${provinces}' />
<input type="hidden" id="indicatorsAll" name="indicatorsAll" value='${indicatorsAll}' /> <input type="hidden" id="indicatorsAll" name="indicatorsAll" value='${indicatorsAll}' />
<input type="hidden" id="anaInfoSelected" name="anaInfoSelected" value='' /> <input type="hidden" id="anaInfoSelected" name="anaInfoSelected" value='' />
<input type="hidden" id="deleleMess" name="deleleMess" value='${deleleMess}' />
</div> </div>
</div> </div>
</div> </div>
...@@ -180,6 +186,7 @@ ...@@ -180,6 +186,7 @@
$("#updateIndicatorsBtn").attr("disabled","true"); $("#updateIndicatorsBtn").attr("disabled","true");
$("#deleteAnaInfo").attr("disabled","true");
updateTags(true);//更新 tags显示 updateTags(true);//更新 tags显示
} }
...@@ -311,14 +318,27 @@ ...@@ -311,14 +318,27 @@
cancelValue:"取消", cancelValue:"取消",
lock:true lock:true
}); });
/* $.confirm("确定修改模型?", /* $.confirm("确定修改模型?",
function(){location.href="${ctx}/ModelManage/ModelParameterConfiguration?dataModelId="+modelId;}, function(){location.href="${ctx}/ModelManage/ModelParameterConfiguration?dataModelId="+modelId;},
function(){}); */ function(){}); */
}); });
$("#deleteAnaInfo").click(function(){
var associationId= $("#anaInfoSelected").val();
$.dialog({
title: "提醒",
content:"确定删除规则?",
ok: function(){location.href="${ctx}/MonitorOperation/AssociateDiagosisConfiguration/deleteAssociDigConfigM?associationId="+associationId;},
okValue:"确定",
cancel: function(){},
cancelValue:"取消",
lock:true
});
});
</script> </script>
</body> </body>
</html> </html>
...@@ -24,6 +24,7 @@ function failureDelete(){ ...@@ -24,6 +24,7 @@ function failureDelete(){
// 点击单选按钮时 触发 // 点击单选按钮时 触发
function radioChoose(e){ function radioChoose(e){
$("#updateIndicatorsBtn").removeAttr("disabled"); $("#updateIndicatorsBtn").removeAttr("disabled");
$("#deleteAnaInfo").removeAttr("disabled");
$("#anaInfoSelected").val(e.id); $("#anaInfoSelected").val(e.id);
} }
......
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