...
|
...
|
@@ -6,10 +6,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
Table.api.init({
|
|
|
extend: {
|
|
|
index_url: 'user/user_house/index' + location.search,
|
|
|
add_url: 'user/user_house/add',
|
|
|
edit_url: 'user/user_house/edit',
|
|
|
del_url: 'user/user_house/del',
|
|
|
// add_url: 'user/user_house/add',
|
|
|
// edit_url: 'user/user_house/edit',
|
|
|
// del_url: 'user/user_house/del',
|
|
|
multi_url: 'user/user_house/multi',
|
|
|
examine_url: 'user/user_house/examine',
|
|
|
table: 'user_house',
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -25,16 +26,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
{field: 'house_id', title: __('House_id')},
|
|
|
{field: 'user.nickname', title: __('User.nickname')},
|
|
|
{field: 'house.name', title: __('House.name')},
|
|
|
{field: 'name', title: __('Name')},
|
|
|
{field: 'status', title: __('Status')},
|
|
|
{field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"2":__('Status 2'),"3":__('Status 3')}, formatter: Table.api.formatter.status},
|
|
|
{field: 'phone', title: __('Phone')},
|
|
|
{field: 'remark', title: __('Remark')},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'user.nickname', title: __('User.nickname')},
|
|
|
{field: 'house.name', title: __('House.name')},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
|
|
|
buttons: [
|
|
|
{
|
...
|
...
|
@@ -46,7 +45,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
url: $.fn.bootstrapTable.defaults.extend.examine_url+'/status/2',
|
|
|
confirm: '是否确认通过审核?',
|
|
|
visible:function (row) {
|
|
|
if(row.status == 0){
|
|
|
if(row.status == 1){
|
|
|
return true;
|
|
|
}else{
|
|
|
return false;
|
...
|
...
|
@@ -65,7 +64,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
url: $.fn.bootstrapTable.defaults.extend.examine_url+'/status/3',
|
|
|
confirm: '是否确认驳回审核?',
|
|
|
visible:function (row) {
|
|
|
if(row.status == 0){
|
|
|
if(row.status == 1){
|
|
|
return true;
|
|
|
}else{
|
|
|
return false;
|
...
|
...
|
|