|
|
@@ -109,6 +109,33 @@ var bootstrap = function ($, learun) { |
|
|
|
{ label: "邮政编码", name: "PostalCode", width: 100, align: "left" }, |
|
|
|
{ label: "联系电话", name: "Mobile", width: 100, align: "left" }, |
|
|
|
{ label: "实践与成绩", name: "Achievement", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "附件", name: "FilePath", width: 500, align: "center", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
$.ajax({ |
|
|
|
url: '/LR_SystemModule/Annexes/GetAnnexesFileList', |
|
|
|
data: { folderId: value }, |
|
|
|
type: 'GET', |
|
|
|
dataType: "json", |
|
|
|
async: false, |
|
|
|
cache: false, |
|
|
|
success: function (res) { |
|
|
|
var bb = ''; |
|
|
|
//$.each(res.data, function (i, item) { |
|
|
|
// bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ',' |
|
|
|
//}) |
|
|
|
$.each(res.data, function (i, item) { |
|
|
|
bb += '<span onclick="downLoad(\'' + |
|
|
|
item.F_Id + |
|
|
|
'\')" style="color:blue">' + |
|
|
|
item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + |
|
|
|
'</span>, '; |
|
|
|
}) |
|
|
|
callback(bb); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
@@ -127,3 +154,11 @@ var bootstrap = function ($, learun) { |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
} |
|
|
|
function downLoad(fileId, fileTwo) { |
|
|
|
if (fileTwo) { |
|
|
|
top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () { |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' }); |
|
|
|
} |