Commit d0f81810 by wuyiping

修复刑事主案类别联动bug

parent 0d918d81
......@@ -1717,29 +1717,6 @@ function getCookie(name){
return null;
}
$('#ajzlb').combotree({
onSelect: function (row) {
if (row != null) {
$('#ajxzlb').combotree('clear');
$('#xalbdmbcms').combotree('clear');
$('#ajxzlb').combotree({
codetype: "queryAjxzlbDicJson?code_val=" + row.id
});
openCombotree('ajxzlb');
}
}
});
$('#ajxzlb').combotree({
onSelect: function (row) {
if (row != null) {
$('#xalbdmbcms').combotree('clear');
$('#xalbdmbcms').combotree({
codetype: "queryXalbdmbcmsDicJson?code_val=" + row.id
});
openCombotree('xalbdmbcms');
}
}
});
$(function(){
openCombotrees();
})
......@@ -233,8 +233,17 @@ var navCategoryFormUtils = {
var codetype =$(this).combotree('options').codetype;
var index = codetype.indexOf("type=");
var code = $(this).attr("id");
var type = "";
if(index>0) {
var type = codetype.substring(index + 5, codetype.length);
type = codetype.substring(index + 5, codetype.length);
}else{
if(code=="ajxzlb"){
type="CODE_AJXZLB";
}else if(code=="xalbdmbcms"){
type="CODE_XALBDMBCMS";
}
}
if(type){
$.ajax({
type: "get",
url: "getCodeNameByCodeVal",
......@@ -246,6 +255,21 @@ var navCategoryFormUtils = {
}
});
}
if(code=="ajzlb"){
$('#ajxzlb').combotree('clear');
$('#xalbdmbcms').combotree('clear');
$('#ajxzlb').combotree({
codetype: "queryAjxzlbDicJson?code_val=" + n
});
openCombotree('ajxzlb');
}
if(code=="ajxzlb"){
$('#xalbdmbcms').combotree('clear');
$('#xalbdmbcms').combotree({
codetype: "queryXalbdmbcmsDicJson?code_val=" + n
});
openCombotree('xalbdmbcms');
}
}
}
});
......
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