text: define(['jquery', 'bootstrap', 'backend', 'table', 'form','bootstrap-treegrid'], function ($, undefined, Backend, Table, Form,undefinded) {
  
      var Controller = {
          index: function () {
              // 初始化表格参数配置
              Table.api.init({
                  extend: {
                      index_url: 'industry/index',
                      add_url: 'industry/add',
                      edit_url: 'industry/edit',
                      del_url: 'industry/del',
                      table: 'industry',
                  }
              });
  
              var table = $("#table");
  
              // 初始化表格
              table.bootstrapTable({
                  url: $.fn.bootstrapTable.defaults.extend.index_url,
                  pk: 'id',
                  escape: false,
                  sortName: 'id',
                  pagination: false,
                  commonSearch: false,
                  columns: [
                      [
                          {checkbox: true},
                          {
                              field: 'idcode', title: __('ID'), align: 'left'
                          },
                          {
                              field: 'code', title: '代码', align: 'left'
                          },
                          {
                              field: 'name', title: __('Name'), align: 'left'
                          },
                          {
                              field: 'operate',
                              title: __('Operate'),
                              table: table,
                              events: Table.api.events.operate,
                              formatter: Table.api.formatter.operate,
  
                          }
                      ]
                  ],
                  treeShowField:"name",
                  parentIdField:"pid",
                  onLoadSuccess:function (data) {
                      table.treegrid({
                          treeColumn: 1,
                          onChange: function () {
                              table.bootstrapTable('resetWidth');
                          }
                      });
                  }
              });
  
              // 为表格绑定事件
              Table.api.bindevent(table);
          },
          add: function () {
              Controller.api.bindevent();
          },
          edit: function () {
              Controller.api.bindevent();
          },
          api: {
              bindevent: function () {
                  Form.api.bindevent($("form[role=form]"));
              }
          }
      };
      return Controller;
  });