ProjectEqAreaView.js 1.28 KB
let action = null;

layui.config({
    base: "/js/",
    version: 111
}).use(['system'], function () {
    var form = layui.form,
        $ = layui.jquery,
        system = layui.system,
        sysU = new system.u(),
        areaName = 'configure',
        tableName = 'BaseProject';

    action = {
     
    }

    var app = {
        data: {
            cols: null,
            tableIns: null,
            tableElem: "mainList",
          
            selectOption: {
                //返回的数据 用于后续操作
                selectData: {

                }
            }
        },
        methods: {
            initTable: function () {
                let options = {
                    elem: "#" + app.data.tableElem,
                    url: `/${areaName}/${tableName}/Load`,
                    cols: sysU.columnRecord(app.data.tableElem, app.data.cols),
                    toolbar: '#toolbarTable',
                }
                app.data.tableIns = sysU.initTable(options);
            },
            initFrom: function () {
                sysU.initSelect(app.data.selectOption);
            },
        

        },
        registerEvent: function () {

        },
      
        init: function () {
            app.registerEvent();
          

        }
    };
    app.init();
});