var enclosureList = new Array();
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
var reg = new RegExp("
", "g");
showGrid({
id: "showForm",
url: flowableBasePath + "inspection006",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/vehicleManageInspection/vehicleManageInspectionDetailsTemplate.tpl'),
ajaxSendLoadBefore: function(hdb){
},
ajaxSendAfter:function (json) {
// 附件回显
if(json.bean.enclosureInfo.length != 0 && json.bean.enclosureInfo != ""){
enclosureList = json.bean.enclosureInfo;
var str = "";
$.each([].concat(enclosureList), function(i, item){
str += '' + item.name + '
';
});
$("#enclosureUploadBtn").html(str);
}
matchingLanguage();
}
});
$("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html());
});
});
});