...
|
...
|
@@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'user.nickname', title: __('用户名')},
|
|
|
{field: 'user.mobile', title: __('账号')},
|
|
|
{field: 'name', title: __('Name')},
|
|
|
{field: 'address', title: __('Address')},
|
|
|
{field: 'license', title: __('License'), events: Table.api.events.image, formatter: Table.api.formatter.images, searchable: false},
|
...
|
...
|
@@ -80,7 +80,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
title: '员工名单',
|
|
|
classname: 'btn btn-xs btn-primary btn-dialog',
|
|
|
icon: '',
|
|
|
url: 'mobile/company_user/?company_id={id}',
|
|
|
url: 'mobile/company_user?company_id={id}',
|
|
|
visible:function (row) {
|
|
|
if(row.status == '1'){
|
|
|
return true;
|
...
|
...
|
@@ -93,7 +93,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
title: '员工记录',
|
|
|
classname: 'btn btn-xs btn-primary btn-dialog',
|
|
|
icon: '',
|
|
|
url: 'mobile/company_user_log/?company_id={id}',
|
|
|
url: 'mobile/company_user_log?company_id={id}',
|
|
|
visible:function (row) {
|
|
|
if(row.status == '1'){
|
|
|
return true;
|
...
|
...
|
@@ -117,23 +117,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
table.bootstrapTable('refresh');
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name: 'setuser',
|
|
|
text: '设为企业管理员',
|
|
|
title: '设为企业管理员',
|
|
|
classname: 'btn btn-xs btn-primary btn-ajax',
|
|
|
icon: '',
|
|
|
url: 'mobile/company/setgroup?group_id=1',
|
|
|
confirm: '是否确认拒绝审核?',
|
|
|
visible:function (row) {
|
|
|
if(row.user.group_id == 0){
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
success: function (data) {
|
|
|
table.bootstrapTable('refresh');
|
|
|
}
|
|
|
}
|
|
|
// {
|
|
|
// name: 'setuser',
|
|
|
// text: '设为企业管理员',
|
|
|
// title: '设为企业管理员',
|
|
|
// classname: 'btn btn-xs btn-primary btn-ajax',
|
|
|
// icon: '',
|
|
|
// url: 'mobile/company/setgroup?group_id=1',
|
|
|
// confirm: '是否确认拒绝审核?',
|
|
|
// visible:function (row) {
|
|
|
// if(row.user.group_id == 0){
|
|
|
// return true;
|
|
|
// }
|
|
|
// },
|
|
|
// success: function (data) {
|
|
|
// table.bootstrapTable('refresh');
|
|
|
// }
|
|
|
// }
|
|
|
], formatter: Table.api.formatter.operate,
|
|
|
}
|
|
|
]
|
...
|
...
|
|