classServerDetails.js 1.1 KB
Newer Older
Skyeye云's avatar
Skyeye云 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

var objectId = "";

layui.config({
    base: basePath,
    version: skyeyeVersion
}).extend({
    window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form'], function (exports) {
    winui.renderColor();
    var index = parent.layer.getFrameIndex(window.name);
    var $ = layui.$,
        form = layui.form;

    objectId = GetUrlParam("objectId");
    if (isNull(objectId)) {
        winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000});
        return false;
    }

    showGrid({
        id: "showForm",
Skyeye云's avatar
Skyeye云 已提交
23
        url: reqBasePath + "queryServiceBeanCustom",
Skyeye云's avatar
Skyeye云 已提交
24 25 26 27 28
        params: {className: objectId},
        pagination: false,
        method: 'GET',
        template: $("#beanTemplate").html(),
        ajaxSendLoadBefore: function (hdb, json) {
Skyeye云's avatar
Skyeye云 已提交
29 30
            json.bean.serviceBean.tenantName = skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("tenantEnum", 'enumFiledName', json.bean.serviceBean.tenant, 'name');
            json.bean.serviceBean.flowableName = json.bean.serviceBean.flowable ? '' : '';
Skyeye云's avatar
Skyeye云 已提交
31 32 33 34 35 36 37
        },
        ajaxSendAfter: function (json) {
            matchingLanguage();
            form.render();
        }
    });
});