|
@@ -7,7 +7,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'companycomment/index' + location.search,
|
|
|
add_url: 'companycomment/add',
|
|
|
- edit_url: 'companycomment/edit',
|
|
|
+// edit_url: 'companycomment/edit',
|
|
|
del_url: 'companycomment/del',
|
|
|
multi_url: 'companycomment/multi',
|
|
|
import_url: 'companycomment/import',
|
|
@@ -22,18 +22,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
|
+ search:false,
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
+ {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
+ {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
{field: 'company_id', title: __('Company_id')},
|
|
|
+ {field: 'company.name', title: __('Company.name'), operate: 'LIKE'},
|
|
|
{field: 'info', title: __('Info'), operate: 'LIKE'},
|
|
|
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
- {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
- {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
- {field: 'company.name', title: __('Company.name'), operate: 'LIKE'},
|
|
|
+
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|