text: define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  
      var Controller = {
          index: function () {
              // 初始化表格参数配置
              Table.api.init({
                  extend: {
                      index_url: 'basic/circuit/index' + location.search,
                      add_url: 'basic/circuit/add',
                      edit_url: 'basic/circuit/edit',
                      del_url: 'basic/circuit/del',
                      multi_url: 'basic/circuit/multi',
                      table: 'sms_info_circuit',
                  }
              });
  
              var table = $("#table");
  
              // 初始化表格
              table.bootstrapTable({
                  url: $.fn.bootstrapTable.defaults.extend.index_url,
                  pk: 'id',
                  sortName: 'id',
                  search: true,                       //1.快捷搜索框,设置成false隐藏
                  showToggle: false,                  //2.列表和视图切换
                  // showColumns: false,                 //3.字段显示
                  // showExport: false,                  //4.导出按钮
                  commonSearch: false,                //5.通用搜索框
                  pagination: true,                   //6.是否显示分页条
                  // onlyInfoPagination: true,           //7.只显示总数据数
                  // showHeader: false,                  //8.是否显示列头
                  // paginationVAlign: 'top',            //9.指定分页条垂直位置
                  columns: [
                      [
                          {checkbox: true},
                          {field: 'id', title: __('Id')},
                          {field: 'circuit_name', title: __('Circuit_name'),operate:'like'},
                          {field: 'price', title: __('Price'),operate:false},
                          {field: 'remark', title: __('Remark'),operate:'like'},
                          {field: 'status', title: __('Status'),
                              formatter: Table.api.formatter.status,
                              custom: {0: 'gray', 1: 'success'},
                              searchList:{0:'无效',1:'有效'},
                              // operate: false
                          },
                          {field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange'},
                          {field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
                          {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                      ]
                  ]
              });
  
              // 为表格绑定事件
              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;
  });