|
@@ -8,7 +8,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
index_url: 'party/party/index' + location.search,
|
|
index_url: 'party/party/index' + location.search,
|
|
add_url: 'party/party/add',
|
|
add_url: 'party/party/add',
|
|
edit_url: 'party/party/edit',
|
|
edit_url: 'party/party/edit',
|
|
- // del_url: 'party/party/del',
|
|
|
|
|
|
+ del_url: 'party/party/del',
|
|
multi_url: 'party/party/multi',
|
|
multi_url: 'party/party/multi',
|
|
import_url: 'party/party/import',
|
|
import_url: 'party/party/import',
|
|
table: 'party',
|
|
table: 'party',
|
|
@@ -26,31 +26,35 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
[
|
|
[
|
|
{checkbox: true},
|
|
{checkbox: true},
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'id', title: __('Id')},
|
|
- {field: 'user.u_id', title: __('User_id')},
|
|
|
|
- {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
|
|
|
+ {field: 'user_id', title: __('User_id')},
|
|
{field: 'room_type', title: __('Room_type'), searchList: {"1":__('Room_type 1'),"2":__('Room_type 2')}, formatter: Table.api.formatter.normal},
|
|
{field: 'room_type', title: __('Room_type'), searchList: {"1":__('Room_type 1'),"2":__('Room_type 2')}, formatter: Table.api.formatter.normal},
|
|
|
|
+ {field: 'is_cool', title: __('Is_cool'), searchList: {"1":__('Is_cool 1'),"0":__('Is_cool 0')}, formatter: Table.api.formatter.normal},
|
|
{field: 'party_id', title: __('Party_id')},
|
|
{field: 'party_id', title: __('Party_id')},
|
|
- {field: 'is_cool', title: __('Is_cool'), searchList: {"0":__('Is_cool 0'),"1":__('Is_cool 1')}, formatter: Table.api.formatter.normal},
|
|
|
|
- {field: 'party_type.name', title: __('Party_type'), searchList: Config.partyTypeList},
|
|
|
|
{field: 'party_hot', title: __('Party_hot')},
|
|
{field: 'party_hot', title: __('Party_hot')},
|
|
{field: 'party_name', title: __('Party_name'), operate: 'LIKE'},
|
|
{field: 'party_name', title: __('Party_name'), operate: 'LIKE'},
|
|
- {field: 'party_logo', title: __('Party_logo'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false},
|
|
|
|
- // {field: 'party_notice', title: __('Party_notice'), operate: 'LIKE'},
|
|
|
|
- // {field: 'party_notice_detail', title: __('Party_notice_detail'), operate: 'LIKE'},
|
|
|
|
- //{field: 'naming', title: __('Naming')},
|
|
|
|
- // {field: 'is_online', title: __('Is_online'), searchList: {"1":__('Is_online 1'),"0":__('Is_online 0')}, formatter: Table.api.formatter.normal},
|
|
|
|
|
|
+ {field: 'party_logo', title: __('Party_logo'), operate: 'LIKE'},
|
|
|
|
+ {field: 'party_notice', title: __('Party_notice'), operate: 'LIKE'},
|
|
|
|
+ {field: 'party_notice_detail', title: __('Party_notice_detail'), operate: 'LIKE'},
|
|
|
|
+ {field: 'platRate', title: __('Platrate')},
|
|
|
|
+ {field: 'guilderRate', title: __('Guilderrate')},
|
|
|
|
+ {field: 'naming', title: __('Naming')},
|
|
|
|
+ {field: 'is_online', title: __('Is_online'), searchList: {"1":__('Is_online 1'),"0":__('Is_online 0')}, formatter: Table.api.formatter.normal},
|
|
{field: 'status', title: __('Status'), searchList: {"-1":__('Status -1'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
|
|
{field: 'status', title: __('Status'), searchList: {"-1":__('Status -1'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
|
|
- {field: 'is_close', title: __('Is_close'), searchList: {"1":__('Is_close 1'),"0":__('Is_close 0')}, formatter: Table.api.formatter.normal},
|
|
|
|
{field: 'is_recommend', title: __('Is_recommend'), searchList: {"1":__('Is_recommend 1'),"0":__('Is_recommend 0')}, formatter: Table.api.formatter.normal},
|
|
{field: 'is_recommend', title: __('Is_recommend'), searchList: {"1":__('Is_recommend 1'),"0":__('Is_recommend 0')}, formatter: Table.api.formatter.normal},
|
|
- //{field: 'party_type', title: __('Party_type')},
|
|
|
|
- {field: 'platRate', title: __('平台抽成(%)')},
|
|
|
|
- {field: 'guilderRate', title: __('族长抽成(%)')},
|
|
|
|
- // {field: 'party_pass', title: __('Party_pass'), operate: 'LIKE'},
|
|
|
|
- // {field: 'is_screen', title: __('Is_screen'), searchList: {"1":__('Is_screen 1'),"0":__('Is_screen 0')}, formatter: Table.api.formatter.normal},
|
|
|
|
|
|
+ {field: 'is_close', title: __('Is_close'), searchList: {"1":__('Is_close 1'),"0":__('Is_close 0')}, formatter: Table.api.formatter.normal},
|
|
|
|
+ {field: 'party_type', title: __('Party_type')},
|
|
|
|
+ {field: 'party_pass', title: __('Party_pass'), operate: 'LIKE'},
|
|
|
|
+ {field: 'is_screen', title: __('Is_screen'), searchList: {"1":__('Is_screen 1'),"0":__('Is_screen 0')}, formatter: Table.api.formatter.normal},
|
|
{field: 'on_model', title: __('On_model'), searchList: {"1":__('On_model 1'),"2":__('On_model 2')}, formatter: Table.api.formatter.normal},
|
|
{field: 'on_model', title: __('On_model'), searchList: {"1":__('On_model 1'),"2":__('On_model 2')}, formatter: Table.api.formatter.normal},
|
|
- // {field: 'background', title: __('Background'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false},
|
|
|
|
- // {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
|
|
|
+ {field: 'background', title: __('Background'), operate: 'LIKE'},
|
|
|
|
+ {field: 'updatetime', title: __('Updatetime'), 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: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
|
+ {field: 'type', title: __('Type')},
|
|
|
|
+ {field: 'sign_time', title: __('Sign_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
|
+ {field: 'easemob_room_id', title: __('Easemob_room_id'), operate: 'LIKE'},
|
|
|
|
+ {field: 'is_public', title: __('Is_public'), searchList: {"1":__('Is_public 1'),"0":__('Is_public 0')}, formatter: Table.api.formatter.normal},
|
|
|
|
+ {field: 'seatnum', title: __('Seatnum')},
|
|
|
|
+ {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
{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}
|
|
]
|
|
]
|
|
]
|
|
]
|
|
@@ -67,9 +71,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
},
|
|
},
|
|
api: {
|
|
api: {
|
|
bindevent: function () {
|
|
bindevent: function () {
|
|
- /*$("#c-party_type").data("params",function(){
|
|
|
|
- return {custom:{room_type:$("#c-room_type").val()}};
|
|
|
|
- });*/
|
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
Form.api.bindevent($("form[role=form]"));
|
|
}
|
|
}
|
|
}
|
|
}
|