3.8K Star 14.8K Fork 5K

卓源软件 / JeeSite 4.4 and 5.0

 / 详情

子表格中机构选择组件,设置canSelectParent:true不生效

Done
Opened this issue  
2022-06-23 10:49

是什么问题、该问题是怎么引起的?

  1. 新增/编辑表单页,子表格中机构选择组件,设置canSelectParent:true不生效,依然无法选择父节点

重现步骤、期望结果、截图、代码

{header:'${text("申报单位")}', name:'declareUnitCode', width:100, title:false,
			formatter: function(val, obj, row, act){
				return js.val(row, 'declareUnitCode')+'|'+js.val(row, 'declareUnitName');
			}, editable: true, edittype: "custom", editoptions: {
				custom_element: function(val, editOptions) {
					return js.template('treeselectTpl', {
						id: 'office_'+editOptions.id, title: '机构选择',
						name: 'declareUnitCode', value: val.split('|')[0],
						labelName: 'declareUnitName', labelValue: val.split('|')[1], canSelectParent: true,
						url: '${ctx}/sys/office/treeData', cssClass: '', readonly: false
					});
				}
			}
		},

实际结果、报错信息、截图

![输入图片说明](https://images.gitee.com/uploads/images/2022/0623/104900_68fa141b_8668781.png "屏幕截图.png")

环境版本:

  • JDK版本:1.8
  • 浏览器版本:Chrome xx
  • 平台版本:JeeSite 4.3、4.4、5.0

Comments (1)

ya_jun created任务

参数是在下面的 script 的 tpl 里设置的,在js里传参无效。

ya_jun changed issue state from 待办的 to 已完成

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
6732 thinkgem 1651893329 8668781 ya   jun 1612489146
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.4 and 5.0

Search