From 23a560563a24094aefcb576cdf31ef9b31299b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B5=E5=86=AC=E6=A2=85?= Date: Sat, 15 Dec 2018 11:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89app=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specific/SpecificServiceCfgController.java | 3 +++ src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java b/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java index 0792b515c..6f4fba9b0 100644 --- a/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java +++ b/src/main/java/com/nis/web/controller/specific/SpecificServiceCfgController.java @@ -29,6 +29,7 @@ import com.nis.util.Constants; import com.nis.util.DictUtils; import com.nis.util.StringUtils; import com.nis.web.controller.BaseController; +import com.nis.web.security.UserUtils; @Controller @RequestMapping(value = "${adminPath}/specific/specificServiceCfg") @@ -462,7 +463,9 @@ public class SpecificServiceCfgController extends BaseController { map.put("name",cfg.getSpecServiceName()); map.put("serviceType",cfg.getCfgType()); map.put("businessType",cfg.getBusinessType()); + map.put("serviceCode",cfg.getSpecServiceCode()); map.put("groupId",cfg.getGroupId()); + map.put("addFlag",UserUtils.getUser().getId()); return map; }catch (Exception e) { e.printStackTrace(); diff --git a/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp b/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp index bc12fc8bb..ebef93518 100644 --- a/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp +++ b/src/main/webapp/WEB-INF/views/sys/tagTreeselect.jsp @@ -283,8 +283,11 @@ success:function(data){ treeNode.id=data.id; treeNode.groupId=data.groupId; - treeNode.specServiceCode=data.specServiceCode; + treeNode.serviceCode=data.serviceCode; + treeNode.serviceType=data.serviceType; treeNode.user=data.addFlag; + treeNode.pId=data.pId; + treeNode.name=data.name; var zTree = $.fn.zTree.getZTreeObj("tree"); zTree.updateNode(treeNode); closeTip(); @@ -376,8 +379,7 @@ var id="manual"+new Date().getTime(); var zTree = $.fn.zTree.getZTreeObj("tree"); //addSelectedNode zTree.addNodes(treeNode, {id:id, pId:treeNode.id,parentTId:treeNode.tId, name:" ", - businessType:treeNode.id.replace("businessType",""),user:"${userId}",serviceType:treeNode.serviceType,groupId:"", - serviceCode:""}); + businessType:treeNode.id.replace("businessType",""),user:"${userId}",serviceType:treeNode.serviceType,groupId:"",serviceCode:""}); var node = zTree.getNodeByParam("id", id,treeNode); if(node){ zTree.updateNode(node); @@ -411,9 +413,10 @@ editBtn.bind("click", function(){ var zTree = $.fn.zTree.getZTreeObj("tree"); //替代beforeEditName - if(confirm("" + treeNode.name + "?")){ + /* if(confirm("" + treeNode.name + "?")){ zTree.editName(treeNode); - } + } */ + zTree.editName(treeNode); return; }); }