layui.config({ base: basePath, version: skyeyeVersion }).extend({ window: 'js/winui.window' }).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { winui.renderColor(); var $ = layui.$, form = layui.form, table = layui.table; // 我借用中的证照列表 table.render({ id: 'messageTable', elem: '#messageTable', method: 'post', url: sysMainMation.admBasePath + 'queryMyRevertLicencePageList', where: getTableParams(), even: true, page: true, limits: getLimits(), limit: getLimit(), cols: [[ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, { field: 'name', title: '证照名称', align: 'left', width: 140 }, { field: 'licenceNum', title: '证照编号', align: 'left', width: 160 }, { field: 'licenceAdmin', title: '管理员', align: 'left', width: 120, templet: function(d) { return getNotUndefinedVal(d.licenceAdminMation?.name); }}, ]], done: function(json) { matchingLanguage(); initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入证照名称,证照编号", function () { table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); }); } }); form.render(); $("body").on("click", "#reloadTable", function() { loadTable(); }); function loadTable() { table.reloadData("messageTable", {where: getTableParams()}); } function getTableParams() { return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable")); } exports('myLicenceManagement', {}); });