diff --git a/src/main/java/com/nis/web/controller/TagController.java b/src/main/java/com/nis/web/controller/TagController.java
index bae4a8193..e470d77ce 100644
--- a/src/main/java/com/nis/web/controller/TagController.java
+++ b/src/main/java/com/nis/web/controller/TagController.java
@@ -21,6 +21,8 @@ public class TagController extends BaseController {
model.addAttribute("url", request.getParameter("url")); // 树结构数据URL
model.addAttribute("extId", request.getParameter("extId")); // 排除的编号ID
model.addAttribute("checked", request.getParameter("checked")); // 是否可复选
+ model.addAttribute("checkedPS", request.getParameter("checkedPS")); // 复选框选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空
+ model.addAttribute("unCheckedPS", request.getParameter("unCheckedPS")); // 复选框取消选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空
model.addAttribute("selectIds", request.getParameter("selectIds")); // 指定默认选中的ID
model.addAttribute("isAll", request.getParameter("isAll")); // 是否读取全部数据,不进行权限过滤
model.addAttribute("module", request.getParameter("module")); // 过滤栏目模型(仅针对CMS的Category树)
diff --git a/src/main/webapp/WEB-INF/include/form/basicInfo.jsp b/src/main/webapp/WEB-INF/include/form/basicInfo.jsp
index 1c2702e02..08e4040e5 100644
--- a/src/main/webapp/WEB-INF/include/form/basicInfo.jsp
+++ b/src/main/webapp/WEB-INF/include/form/basicInfo.jsp
@@ -28,7 +28,20 @@
@@ -65,7 +78,20 @@
@@ -97,7 +123,20 @@
diff --git a/src/main/webapp/WEB-INF/tags/sys/treeselect.tag b/src/main/webapp/WEB-INF/tags/sys/treeselect.tag
index 83ac743de..666a60476 100644
--- a/src/main/webapp/WEB-INF/tags/sys/treeselect.tag
+++ b/src/main/webapp/WEB-INF/tags/sys/treeselect.tag
@@ -24,6 +24,8 @@
<%@ attribute name="dataMsgRequired" type="java.lang.String" required="false" description=""%>
<%@ attribute name="selectDepartment" type="java.lang.String" required="false" description="不允许选择部门,自办部门,转办部门"%>
<%@ attribute name="showParentName" type="java.lang.String" required="false" description="显示父类名称"%>
+<%@ attribute name="checkedPS" type="java.lang.String" required="false" description="复选框选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空"%>
+<%@ attribute name="unCheckedPS" type="java.lang.String" required="false" description="复选框取消选中时是否关联父子节点,ps关联父子,p关联父,s关联子,都不关联为空"%>
${title}", 320, 420, {
+ top.$.jBox.open("iframe:${ctx}/tag/treeselect?url="+encodeURIComponent("${url}")+"&selectIds="+$("#${id}Id").val()+"&module=${module}&checked=${checked}&extId=${extId}&isAll=${isAll}", "", 320, 420, {
ajaxData:{selectIds: $("#${id}Id").val()},buttons:{"ok":"ok", ${allowClear?"\"clear\":\"clear\", ":""}"close":true}, submit:function(v, h, f){
if (v=="ok"){
var tree = h.find("iframe")[0].contentWindow.tree;//h.find("iframe").contents();
@@ -54,8 +56,8 @@
nodes = tree.getSelectedNodes();
}
for(var i=0; i
- if (nodes[i].isParent){
- continue; // 如果为复选框选择,则过滤掉父节点
+ if (nodes[i].isParent && "${checkedPS}"!=''){
+ continue; // 如果为复选框选择,并且父子节点有关联,则过滤掉父节点
}//
if (nodes[i].level == 0){
top.$.jBox.tip("("+nodes[i].name+")");
diff --git a/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp b/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp
index bffb9e8ed..04c64cb67 100644
--- a/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp
+++ b/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp
@@ -8,7 +8,7 @@