|
@@ -22,6 +22,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
pk: 'id',
|
|
pk: 'id',
|
|
sortName: 'id',
|
|
sortName: 'id',
|
|
|
|
+ fixedColumns: true,
|
|
|
|
+ fixedRightNumber: 1,
|
|
search: false,
|
|
search: false,
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
@@ -29,12 +31,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'user_id', title: __('User_id')},
|
|
{field: 'user_id', title: __('User_id')},
|
|
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
|
+ // {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
|
+
|
|
{field: 'truename', title: __('Truename'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'truename', title: __('Truename'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'gender', title: __('Gender'), searchList: {"1":__('Gender 1'),"0":__('Gender 0')}, formatter: Table.api.formatter.normal},
|
|
{field: 'gender', title: __('Gender'), searchList: {"1":__('Gender 1'),"0":__('Gender 0')}, formatter: Table.api.formatter.normal},
|
|
{field: 'mobile', title: __('Mobile'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'mobile', title: __('Mobile'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
+ {field: 'birthday', title: __('Birthday'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'address', title: __('Address'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'address', title: __('Address'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'jiankang', title: __('Jiankang'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'jiankang', title: __('Jiankang'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
|
+ {field: 'shequ', title: __('Shequ'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
+ {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
|
|
|
|
+
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
]
|
|
]
|
|
]
|
|
]
|