瀏覽代碼

增加部门下拉树多选判断

金隅分支
liangkun 3 年之前
父節點
當前提交
a99b9b3da6
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. +6
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js

+ 6
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js 查看文件

@@ -548,7 +548,8 @@
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
//url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTreeNoCheck',
// 访问数据接口参数
param: { companyId: '', parentId: '0' },
}
@@ -561,7 +562,9 @@
}
if (typeof (op.select) == 'function')
dfop.select = op.select;

if (dfop.type == "treemultiple") {
dfop.url = top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree';
}
return $(this).lrselect(dfop);;
};

@@ -696,7 +699,7 @@
$this.attr('type', 'lr-' + dfop.type);
var thisId = $this.attr('id');

if (op.data!=null) {
if (op.data != null) {
$.each(op.data, function (id, item) {
var $point = $('<label><input name="' + thisId + '" value="' + item.value + '"' + ' type="' + dfop.type + '">' + item.text + '</label>');
$this.append($point);


Loading…
取消
儲存