bossInterviewJobTransferDetails.js 1.2 KB
Newer Older
doc_wei's avatar
doc_wei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
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 $ = layui.$;

        showGrid({
            id: "showForm",
            url: flowableBasePath + "queryBossInterviewJobTransferDetailsById",
            params: {id: parent.rowId},
            pagination: false,
            method: "GET",
            template: $("#beanTemplate").html(),
            ajaxSendLoadBefore: function(hdb, json){
                json.bean.remark = stringManipulation.textAreaShow(json.bean.remark);
                json.bean.transferTypeName = bossUtil.getTransferTypeNameById(json.bean.transferType);
            },
            ajaxSendAfter: function(json){
                // 附件回显
                skyeyeEnclosure.showDetails({'enclosureUpload': json.bean.enclosureInfo});

                matchingLanguage();
            }
        });

        $("body").on("click", ".enclosureItem", function(){
            download(fileBasePath + $(this).attr("rowpath"), $(this).html());
        });
    });
});