|
@@ -38,13 +38,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'id', title: __('Id')},
|
|
// {field: 'gh_id', title: __('Gh_id')},
|
|
// {field: 'gh_id', title: __('Gh_id')},
|
|
// {field: 'gonghui.name', title: __('Gonghui.name'), operate: false},
|
|
// {field: 'gonghui.name', title: __('Gonghui.name'), operate: false},
|
|
- {field: 'intro_uid', title: __('Intro_uid')},
|
|
|
|
- {field: 'username', title: __('Username'), operate: 'LIKE'},
|
|
|
|
|
|
+
|
|
|
|
+
|
|
{field: 'nickname', title: __('Nickname'), operate: 'LIKE'},
|
|
{field: 'nickname', title: __('Nickname'), operate: 'LIKE'},
|
|
//{field: 'password', title: __('Password'), operate: 'LIKE'},
|
|
//{field: 'password', title: __('Password'), operate: 'LIKE'},
|
|
//{field: 'salt', title: __('Salt'), operate: 'LIKE'},
|
|
//{field: 'salt', title: __('Salt'), operate: 'LIKE'},
|
|
//{field: 'email', title: __('Email'), operate: 'LIKE'},
|
|
//{field: 'email', title: __('Email'), operate: 'LIKE'},
|
|
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
|
|
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
|
|
|
|
+ {field: 'username', title: __('Username'), operate: 'LIKE'},
|
|
|
|
+ {field: 'intro_uid', title: __('Intro_uid')},
|
|
{field: 'introcode', title: __('Introcode'), operate: 'LIKE'},
|
|
{field: 'introcode', title: __('Introcode'), operate: 'LIKE'},
|
|
{field: 'avatar', title: __('Avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
{field: 'avatar', title: __('Avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
{field: 'real_status', title: __('Real_status'), searchList: {"-1":__('Real_status -1'),"0":__('Real_status 0'),"1":__('Real_status 1'),"2":__('Real_status 2')}, formatter: Table.api.formatter.status},
|
|
{field: 'real_status', title: __('Real_status'), searchList: {"-1":__('Real_status -1'),"0":__('Real_status 0'),"1":__('Real_status 1'),"2":__('Real_status 2')}, formatter: Table.api.formatter.status},
|
|
@@ -107,7 +109,66 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
{field: 'week_profit', title: __('本周收益'), operate: false},
|
|
{field: 'week_profit', title: __('本周收益'), operate: false},
|
|
{field: 'last_week_count', title: __('上周收益'), operate: false},
|
|
{field: 'last_week_count', title: __('上周收益'), operate: false},
|
|
|
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
|
|
|
+ {
|
|
|
|
+ field: 'operate',
|
|
|
|
+ title: __('Operate'),
|
|
|
|
+ width:'130',
|
|
|
|
+ table: table,
|
|
|
|
+ events: Table.api.events.operate,
|
|
|
|
+ formatter: Table.api.formatter.operate,
|
|
|
|
+ // buttons: [
|
|
|
|
+ // {
|
|
|
|
+ // name: 'click',
|
|
|
|
+ // text: __('点击事件'),
|
|
|
|
+ // title: __('点击事件'),
|
|
|
|
+ // classname: 'btn btn-xs btn-info btn-click panda-show',
|
|
|
|
+ // icon: 'fa fa-leaf',
|
|
|
|
+ // dropdown: '更多',//如果包含dropdown,将会以下拉列表的形式展示
|
|
|
|
+ // trigger: 'hover',
|
|
|
|
+ // click: function (data) {
|
|
|
|
+ // Layer.alert("点击按钮执行的事件");
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'detail',
|
|
|
|
+ // text: __('弹出窗口'),
|
|
|
|
+ // classname: 'btn btn-xs btn-primary btn-dialog panda-show',
|
|
|
|
+ // icon: 'fa fa-list',
|
|
|
|
+ // dropdown: '更多',//如果包含dropdown,将会以下拉列表的形式展示
|
|
|
|
+ // url: 'example/bootstraptable/detail',
|
|
|
|
+ // callback: function (data) {
|
|
|
|
+ // Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'ajax',
|
|
|
|
+ // text: __('发送Ajax'),
|
|
|
|
+ // classname: 'btn btn-xs btn-success btn-magic btn-ajax panda-show',
|
|
|
|
+ // icon: 'fa fa-magic',
|
|
|
|
+ // dropdown: '更多',//如果包含dropdown,将会以下拉列表的形式展示
|
|
|
|
+ // confirm: '确认发送Ajax请求?',
|
|
|
|
+ // url: 'example/bootstraptable/detail',
|
|
|
|
+ // success: function (data, ret) {
|
|
|
|
+ // Layer.alert(ret.msg + ",返回数据:" + JSON.stringify(data));
|
|
|
|
+ // //如果需要阻止成功提示,则必须使用return false;
|
|
|
|
+ // //return false;
|
|
|
|
+ // },
|
|
|
|
+ // error: function (data, ret) {
|
|
|
|
+ // console.log(data, ret);
|
|
|
|
+ // Layer.alert(ret.msg);
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'addtabs',
|
|
|
|
+ // text: __('打开选项卡'),
|
|
|
|
+ // classname: 'btn btn-xs btn-warning btn-addtabs panda-show',
|
|
|
|
+ // icon: 'fa fa-folder-o',
|
|
|
|
+ // dropdown: '更多',//如果包含dropdown,将会以下拉列表的形式展示
|
|
|
|
+ // url: 'example/bootstraptable/detail'
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ }
|
|
]
|
|
]
|
|
]
|
|
]
|
|
});
|
|
});
|