|
|
@@ -106,18 +106,32 @@ var bootstrap = function ($, learun) { |
|
|
|
{ label: "分组名称", name: "GroupName", width: 100, align: "left"}, |
|
|
|
{ label: "当前积分", name: "Integral", width: 100, align: "left"}, |
|
|
|
{ |
|
|
|
label: "证书", name: "Path", width: 100, align: "left", |
|
|
|
label: "证书", name: "Path", width:400, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', |
|
|
|
{ |
|
|
|
url: '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, |
|
|
|
sync: true, |
|
|
|
callback: function (_data) { |
|
|
|
if (_data.F_FileName) { |
|
|
|
callback('<span onclick="downLoad(\'' + _data['F_Id'] + '\',\'' + value + '\',\'' + $.lrToken + '\')" style="color:blue">' + _data['F_FileName'] + '</span>'); |
|
|
|
} |
|
|
|
} |
|
|
|
$.ajax({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, |
|
|
|
type: "GET", |
|
|
|
dataType: "json", |
|
|
|
async: true, |
|
|
|
success: function (result) { |
|
|
|
var html = ""; |
|
|
|
result.data.forEach((_data) => { |
|
|
|
html+=('<span onclick="downLoad(\'' + _data['F_Id'] + '\',\'' + value + '\',\'' + $.lrToken + '\')" style="color:blue">' + _data['F_FileName'] + '</span>、'); |
|
|
|
}); |
|
|
|
callback(html.slice(0, -1)); |
|
|
|
} |
|
|
|
}); |
|
|
|
//learun.clientdata.getAsync('custmerData', |
|
|
|
// { |
|
|
|
// url: '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, |
|
|
|
// sync: true, |
|
|
|
// callback: function (_data) { |
|
|
|
// console.log(_data) |
|
|
|
// if (_data.F_FileName) { |
|
|
|
// callback('<span onclick="downLoad(\'' + _data['F_Id'] + '\',\'' + value + '\',\'' + $.lrToken + '\')" style="color:blue">' + _data['F_FileName'] + '</span>'); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }); |
|
|
|
} |
|
|
|
// learun.clientdata.getAsync('custmerData', |
|
|
|
// { |
|
|
|