upd:调整菜单
This commit is contained in:
72
public/assets/js/backend/zy/game/activity.js
Normal file
72
public/assets/js/backend/zy/game/activity.js
Normal file
@@ -0,0 +1,72 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'zy/game/activity/index' + location.search,
|
||||
add_url: 'zy/game/activity/add',
|
||||
edit_url: 'zy/game/activity/edit',
|
||||
del_url: 'zy/game/activity/del',
|
||||
multi_url: 'zy/game/activity/multi',
|
||||
import_url: 'zy/game/activity/import',
|
||||
table: 'zy_activity',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
fixedColumns: true,
|
||||
fixedRightNumber: 1,
|
||||
columns: [
|
||||
[
|
||||
{ checkbox: true },
|
||||
{ field: 'id', title: __('Id') },
|
||||
{ field: 'pid', title: __('Pid') },
|
||||
{ field: 'stadium.name', title: __('Stadium.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content },
|
||||
{ field: 'club.name', title: __('Club.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content },
|
||||
{ field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content },
|
||||
{ field: 'address', title: __('Address'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content },
|
||||
{ field: 'field', title: __('Field'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content },
|
||||
{ field: 'is_public', title: __('Is_public'), formatter: Table.api.formatter.label, searchList: { 0: __('Is_public0'), 1: __('Is_public1') } },
|
||||
{ field: 'team_type', title: __('Team_type'), formatter: Table.api.formatter.label, searchList: { 3: __('Team_type3'), 1: __('Team_type1'), 2: __('Team_type2') } },
|
||||
{ field: 'rule_type', title: __('Rule_type'), formatter: Table.api.formatter.label, searchList: { 1: __('Rule_type1'), 2: __('Rule_type2'), 3: __('Rule_type3'), 4: __('Rule_type4'), 5: __('Rule_type5'), 6: __('Rule_type6') } },
|
||||
{ field: 'week', title: __('Week'), formatter: Table.api.formatter.label, searchList: { 0: __('Week0'), 1: __('Week1'), 2: __('Week2'), 3: __('Week3'), 4: __('Week4'), 5: __('Week5'), 6: __('Week6') } },
|
||||
{ field: 'type', title: __('Type'), formatter: Table.api.formatter.label, searchList: { 0: __('Type0'), 1: __('Type1') } },
|
||||
{ field: 'start_time', title: __('Start_time') },
|
||||
{ field: 'end_time', title: __('End_time') },
|
||||
{ field: 'game_time', title: __('Game_time') },
|
||||
{ field: 'limit_num', title: __('Limit_num') },
|
||||
{ field: 'is_bring', title: __('Is_bring'), formatter: Table.api.formatter.label, searchList: { 0: __('Is_bring0'), 1: __('Is_bring1') } },
|
||||
{ field: 'bring_num', title: __('Bring_num') },
|
||||
{ field: 'status', title: __('Status'), formatter: Table.api.formatter.label, searchList: { 0: __('Status0'), 1: __('Status1') } },
|
||||
{ field: 'create_time', title: __('Create_time'), operate: 'RANGE', addclass: 'datetimerange', autocomplete: false },
|
||||
{ field: 'update_time', title: __('Update_time'), operate: 'RANGE', addclass: 'datetimerange', autocomplete: false },
|
||||
{ field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate }
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
76
public/assets/js/backend/zy/game/game.js
Normal file
76
public/assets/js/backend/zy/game/game.js
Normal file
@@ -0,0 +1,76 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'zy/game/game/index' + location.search,
|
||||
add_url: 'zy/game/game/add',
|
||||
edit_url: 'zy/game/game/edit',
|
||||
del_url: 'zy/game/game/del',
|
||||
multi_url: 'zy/game/game/multi',
|
||||
import_url: 'zy/game/game/import',
|
||||
table: 'zy_game',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
fixedColumns: true,
|
||||
fixedRightNumber: 1,
|
||||
columns: [
|
||||
[
|
||||
{checkbox: true},
|
||||
{field: 'id', title: __('Id')},
|
||||
{field: 'pid', title: __('Pid')},
|
||||
{field: 'activity.name', title: __('Activity.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'stadium.name', title: __('Stadium.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'club.name', title: __('Club.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{ field: 'is_public', title: __('Is_public'), formatter: Table.api.formatter.label, searchList: { 0: __('Is_public0'), 1: __('Is_public1') } },
|
||||
{ field: 'team_type', title: __('Team_type'), formatter: Table.api.formatter.label, searchList: { 3: __('Team_type3'), 1: __('Team_type1'), 2: __('Team_type2') } },
|
||||
{ field: 'rule_type', title: __('Rule_type'), formatter: Table.api.formatter.label, searchList: { 1: __('Rule_type1'), 2: __('Rule_type2'), 3: __('Rule_type3'), 4: __('Rule_type4'), 5: __('Rule_type5'), 6: __('Rule_type6') } },
|
||||
{ field: 'week', title: __('Week'), formatter: Table.api.formatter.label, searchList: { 0: __('Week0'), 1: __('Week1'), 2: __('Week2'), 3: __('Week3'), 4: __('Week4'), 5: __('Week5'), 6: __('Week6') } },
|
||||
{field: 'date', title: __('Date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
{field: 'start_time', title: __('Start_time')},
|
||||
{field: 'end_time', title: __('End_time')},
|
||||
{field: 'game_time', title: __('Game_time'), operate:'BETWEEN'},
|
||||
{field: 'address', title: __('Address'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'field', title: __('Field'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'limit_num', title: __('Limit_num')},
|
||||
{field: 'join_num', title: __('Join_num')},
|
||||
{field: 'attention', title: __('Attention')},
|
||||
{ field: 'is_bring', title: __('Is_bring'), formatter: Table.api.formatter.label, searchList: { 0: __('Is_bring0'), 1: __('Is_bring1') } },
|
||||
{field: 'bring_num', title: __('Bring_num')},
|
||||
{ field: 'status', title: __('Status'), formatter: Table.api.formatter.label, searchList: { 0: __('Status0'), 1: __('Status1') } },
|
||||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
58
public/assets/js/backend/zy/game/game_join.js
Normal file
58
public/assets/js/backend/zy/game/game_join.js
Normal file
@@ -0,0 +1,58 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'zy/game/game_join/index' + location.search,
|
||||
add_url: 'zy/game/game_join/add',
|
||||
edit_url: 'zy/game/game_join/edit',
|
||||
del_url: 'zy/game/game_join/del',
|
||||
multi_url: 'zy/game/game_join/multi',
|
||||
import_url: 'zy/game/game_join/import',
|
||||
table: 'zy_game_join',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
columns: [
|
||||
[
|
||||
{checkbox: true},
|
||||
{field: 'id', title: __('Id')},
|
||||
{field: 'activity.name', title: __('Activity.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'game.name', title: __('Game.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
||||
{field: 'order.order_sn', title: __('Order.order_sn'), operate: 'LIKE'},
|
||||
{field: 'status', title: __('Status')},
|
||||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
71
public/assets/js/backend/zy/game/game_match.js
Normal file
71
public/assets/js/backend/zy/game/game_match.js
Normal file
@@ -0,0 +1,71 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'zy/game/game_match/index' + location.search,
|
||||
add_url: 'zy/game/game_match/add',
|
||||
edit_url: 'zy/game/game_match/edit',
|
||||
del_url: 'zy/game/game_match/del',
|
||||
multi_url: 'zy/game/game_match/multi',
|
||||
import_url: 'zy/game/game_match/import',
|
||||
table: 'zy_game_match',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
fixedColumns: true,
|
||||
fixedRightNumber: 1,
|
||||
columns: [
|
||||
[
|
||||
{checkbox: true},
|
||||
{field: 'id', title: __('Id')},
|
||||
{field: 'stadium.name', title: __('Stadium.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'club.name', title: __('Club.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'activity.name', title: __('Activity.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'game.name', title: __('Game.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
// {field: 'gym_id', title: __('Gym_id')},
|
||||
// {field: 'club_id', title: __('Club_id')},
|
||||
// {field: 'act_id', title: __('Act_id')},
|
||||
// {field: 'game_id', title: __('Game_id')},
|
||||
{field: 'level', title: __('Level')},
|
||||
{field: 'turn', title: __('Turn')},
|
||||
{field: 'round1', title: __('Round1'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'round2', title: __('Round2'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'round3', title: __('Round3'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'scoreA', title: __('ScoreA')},
|
||||
{field: 'scoreB', title: __('ScoreB')},
|
||||
{field: 'winner', title: __('Winner'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
70
public/assets/js/backend/zy/game/participant.js
Normal file
70
public/assets/js/backend/zy/game/participant.js
Normal file
@@ -0,0 +1,70 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'zy/game/participant/index' + location.search,
|
||||
add_url: 'zy/game/participant/add',
|
||||
edit_url: 'zy/game/participant/edit',
|
||||
del_url: 'zy/game/participant/del',
|
||||
multi_url: 'zy/game/participant/multi',
|
||||
import_url: 'zy/game/participant/import',
|
||||
table: 'zy_participant',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
fixedColumns: true,
|
||||
fixedRightNumber: 1,
|
||||
columns: [
|
||||
[
|
||||
{checkbox: true},
|
||||
{field: 'id', title: __('Id')},
|
||||
{field: 'user_id', title: __('User_id')},
|
||||
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'avatar', title: __('Avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
|
||||
{field: 'gender', title: __('Gender')},
|
||||
{field: 'game_join_id', title: __('Game_join_id')},
|
||||
{field: 'game_id', title: __('Game_id')},
|
||||
{field: 'game.name', title: __('Game.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'team', title: __('Team'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
{field: 'order', title: __('Order')},
|
||||
{field: 'rank', title: __('Rank')},
|
||||
{field: 'status', title: __('Status')},
|
||||
{field: 'signin', title: __('Signin')},
|
||||
{field: 'score', title: __('Score')},
|
||||
{field: 'net_score', title: __('Net_score')},
|
||||
{field: 'win', title: __('Win')},
|
||||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
||||
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
Reference in New Issue
Block a user