|
@@ -29,23 +29,25 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
+ {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
+ {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
+ {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
{field: 'company_id', title: __('Company_id')},
|
|
|
+ {field: 'company.companyname', title: __('Company.companyname'), operate: 'LIKE'},
|
|
|
+
|
|
|
{field: 'projectname', title: __('Projectname'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
{field: 'projectaddress', title: __('Projectaddress'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
- {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
|
+// {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
|
{field: 'starttime', title: __('Starttime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'endtime', title: __('Endtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'header', title: __('Header'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
- {field: 'header_avatar', title: __('Header_avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
|
- {field: 'header_mobile', title: __('Header_mobile'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
- {field: 'xiaofang', title: __('Xiaofang'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
- {field: 'xiaofang_mobile', title: __('Xiaofang_mobile'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
+// {field: 'header_avatar', title: __('Header_avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
|
|
|
+// {field: 'header_mobile', title: __('Header_mobile'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
+// {field: 'xiaofang', title: __('Xiaofang'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
+// {field: 'xiaofang_mobile', title: __('Xiaofang_mobile'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
{field: 'weituo', title: __('Weituo'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
{field: 'fuwujigou', title: __('Fuwujigou'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
- {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
- {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
- {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
- {field: 'company.companyname', title: __('Company.companyname'), operate: 'LIKE'},
|
|
|
+
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
@@ -73,6 +75,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
+ {field: 'user_id', title: __('User_id')},
|
|
|
+ {field: 'company_id', title: __('Company_id')},
|
|
|
{
|
|
|
field: 'deletetime',
|
|
|
title: __('Deletetime'),
|
|
@@ -95,14 +99,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
url: 'usercompany/restore',
|
|
|
refresh: true
|
|
|
},
|
|
|
- {
|
|
|
+ /*{
|
|
|
name: 'Destroy',
|
|
|
text: __('Destroy'),
|
|
|
classname: 'btn btn-xs btn-danger btn-ajax btn-destroyit',
|
|
|
icon: 'fa fa-times',
|
|
|
url: 'usercompany/destroy',
|
|
|
refresh: true
|
|
|
- }
|
|
|
+ }*/
|
|
|
],
|
|
|
formatter: Table.api.formatter.operate
|
|
|
}
|