Pārlūkot izejas kodu

增加部门下拉树多选判断

金隅分支
liangkun pirms 3 gadiem
vecāks
revīzija
a99b9b3da6
1 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  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 Parādīt failu

@@ -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);


Notiek ielāde…
Atcelt
Saglabāt