edy 3 лет назад
Родитель
Сommit
446b1d9c89
2 измененных файлов: 30 добавлений и 9 удалений
  1. +24
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js
  2. +6
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js

+ 24
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js Просмотреть файл

@@ -83,13 +83,31 @@ var bootstrap = function ($, learun) {
{
label: "填报时间", name: "FillingTime", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'CycleTime',
callback: function (_data) {
callback(_data.text);
if (value.indexOf(',') != -1) {
var content = '';
var timearr = value.split(',');
for (var i = 0; i < timearr.length; i++) {
learun.clientdata.getAsync('dataItem',
{
key: timearr[i],
code: 'CycleTime',
callback: function (_data) {
content += _data.text + ',';
}
});
}
});
content = content.substring(0, content.length - 1);
callback(content);
} else {
learun.clientdata.getAsync('dataItem',
{
key: value,
code: 'CycleTime',
callback: function (_data) {
callback(_data.text);
}
});
}
}
},
{


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


Загрузка…
Отмена
Сохранить