爱问知识人 爱问教育 医院库

Jquery树形结构移动权限怎么写

首页

Jquery树形结构移动权限怎么写


        

提交回答

全部答案

    2018-04-25 09:20:43
  •   这是JQ的前台代码
    function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                var DeptIds = "";
                for (var i = 0; i /Controllers/CorpDeptInfoAction。
      ashx?__method=drag",
                    data: params,
                    success: function(oData) {
                        var treeObj = $。
      fn。zTree。getZTreeObj("rightTree");
                    for (var i = 0; i corpDeptInfoList = new List(); 
                    for (int i = 0; i < DeptIdList。
      Length; i )
                    {
                        CorpDeptInfo param = new CorpDeptInfo();
                        param。
      DeptId = DeptIdList[i];
                        CorpDeptInfo corpDeptInfo = corpDeptInfoService。GetCorpDeptInfoById(param);
                        corpDeptInfo。
      ParentId = targetId;
                        corpDeptInfoList。Add(corpDeptInfo);
                    }
                    int sResult = corpDeptInfoService。
      UpdateCorpDeptInfoListById(corpDeptInfoList);
                    switch (sResult)
                    {
                        case SystemRightService。
      SUCCESS:
                            result = AppAction。SUCCESS;
                            log。Debug("更新成功");
                            break;
                        default:
                            break;
                    }
                }
                catch (Exception ex)
                {
                    message = "更新权限表失败";
                    log。
      Error("更新失败", ex);
                }
                Hashtable jsonHash = new Hashtable();
                jsonHash。
      Add(AppAction。RESULT, result);
                jsonHash。Add(AppAction。MESSAGE, message);
                string jsonString = JsonMapper。
      ToJson(jsonHash);
                return jsonString;
            }。

    爱***

    2018-04-25 09:20:43

类似问题

换一换

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):