81,094
社区成员
发帖
与我相关
我的任务
分享
//该方法返回查询的数据
@RequestMapping("/goSipProductMain.do")
public ModelAndView goSipProductMain(HttpServletRequest request, HttpServletResponse response) {
Map<String, Object> param = this.getRequestMap(request);
ReturnMsg msg = prdService.queryProductStructure(param);
return returnPage(response, msg, "newtouch/product/SipProductMain");
}
//设置参数
var setting_product = {
view : {
selectedMulti : false
},
callback : {
onRightClick : onRightClick_product,
onClick: zTreeOnClick_product
},
async:{
autoParam:["node_no","node_type","node_code"], //异步加载时需要提交的参数,多个用逗号分隔
contentType: "application/json",//提交参数方式,这里 JSON 格式
enable: true,//异步处理
type:"post",
url:"<%=path%>/goSipProductMain.do"
},
data : {
key : {
name : "node_name"
},
simpleData : {
enable : true,
idKey : "node_no",
pIdKey : "up_node",
rootPId : null
}
}
};
//jsp页面初始化的时候会加载
$(function() {
zTree_product = $.fn.zTree.init(ns.find("#tree_product_config"), setting_product, ${json}.data);
rMenu_product = ns.find("#rMenu_product");
rMenu_product.css({
"visibility" : "hidden"
});
});