3.5K Unstar Star 9.6K Fork 4.1K

卓源软件 / JeeSite 4.2Java

点击左边树结构查询没有问题,但是一旦联合右上表单输入框查询时,左边的值就拿不到

Open
itchenl  Opened this issue
No description.
4601 konbluesky 1578914268 total 2 participants

Comments (1)

4601 konbluesky 1578914268
erimer 2019-05-09 17:42

左侧树单击后 请求的参数

ctrlPermi: 2
loginCode: 
userName: 
email: 
mobile: 
phone: 
refName: 
employee.office.officeName: 财务部
employee.office.officeCode: SDQD02
employee.company.companyName: 
employee.company.companyCode: 
employee.postCode: 
status: 
pageNo: 
pageSize: 
orderBy:

单击子页"查询"按钮的请求参数

ctrlPermi: 2
loginCode: 
userName: 
email: 
mobile: 
phone: 
refName: 
employee.office.officeName: 财务部
employee.office.officeCode:
employee.company.companyName: 
employee.company.companyCode: 
employee.postCode: 
status: 
pageNo: 
pageSize: 
orderBy: 

employee.office.officeCode 参数丢失,不明原因

empUserIndex.html 文件 line:38-60

// 树结构初始化加载
var setting = {view:{selectedMulti:false},data:{key:{title:"title"},simpleData:{enable:true}},
	callback:{onClick:function(event, treeId, treeNode){
		tree.expandNode(treeNode);
		win.$('button[type=reset]').click();
		win.$('#officeCode').val(treeNode.id);
		win.$('#officeName').val(treeNode.name);
		win.page();
	}}
}, tree, loadTree = function(){
	js.ajaxSubmit("${ctx}/sys/office/treeData?___t=" + new Date().getTime(), {ctrlPermi:'2'/*1拥有的权限 2管理的权限*/}, function(data){
		tree = $.fn.zTree.init($("#tree"), setting, data);//.expandAll(true);
		// 展开第一级节点
		var nodes = tree.getNodesByParam("level", 0);
		for(var i=0; i<nodes.length; i++) {
			tree.expandNode(nodes[i], true, false, false);
		}
		// 展开第二级节点
// 		nodes = tree.getNodesByParam("level", 1);
// 		for(var i=0; i<nodes.length; i++) {
// 			tree.expandNode(nodes[i], true, false, false);
// 		}
	}, null, null, js.text('loading.message'));
};loadTree();

疑似解决的方法:
注释"win.$('button[type=reset]').click();",

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.2

Search