|
@@ -5,12 +5,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// 初始化表格参数配置
|
|
|
Table.api.init({
|
|
|
extend: {
|
|
|
- index_url: 'acitve/index' + location.search,
|
|
|
- add_url: 'acitve/add',
|
|
|
- edit_url: 'acitve/edit',
|
|
|
- del_url: 'acitve/del',
|
|
|
- multi_url: 'acitve/multi',
|
|
|
- import_url: 'acitve/import',
|
|
|
+ index_url: 'active/index' + location.search,
|
|
|
+ add_url: 'active/add',
|
|
|
+ edit_url: 'active/edit',
|
|
|
+ del_url: 'active/del',
|
|
|
+ multi_url: 'active/multi',
|
|
|
+ import_url: 'active/import',
|
|
|
table: 'active',
|
|
|
}
|
|
|
});
|
|
@@ -56,6 +56,72 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,
|
|
|
buttons: [
|
|
|
{
|
|
|
+ name: 'activeorder',
|
|
|
+ text: '活动订单',
|
|
|
+ title: __('活动订单'),
|
|
|
+ extend: 'data-area=\'["85%", "85%"]\'',
|
|
|
+ classname: 'btn btn-xs btn-success btn-dialog',
|
|
|
+ icon: 'fa fa-list',
|
|
|
+ url: 'activeorder/index',
|
|
|
+ // callback: function (data) {
|
|
|
+ // Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ // }
|
|
|
+ // success: function (data, ret) {
|
|
|
+ // // Layer.alert(ret.msg + ",返回数据:" + JSON.stringify(data));
|
|
|
+ // Layer.alert(ret.msg);
|
|
|
+ // //如果需要阻止成功提示,则必须使用return false;
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // error: function (data, ret) {
|
|
|
+ // // console.log(data, ret);
|
|
|
+ // Layer.alert(ret.msg);
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // callback: function (data) {
|
|
|
+ // Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ // },
|
|
|
+ // visible: function (row) {
|
|
|
+ // if (row.status == 1 && row.purpose == 3) {
|
|
|
+ // return true;
|
|
|
+ // } else {
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'activeorder',
|
|
|
+ text: '报名人员',
|
|
|
+ title: __('报名人员'),
|
|
|
+ extend: 'data-area=\'["85%", "85%"]\'',
|
|
|
+ classname: 'btn btn-xs btn-success btn-dialog',
|
|
|
+ icon: 'fa fa-list',
|
|
|
+ url: 'activepeople/index',
|
|
|
+ // callback: function (data) {
|
|
|
+ // Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ // }
|
|
|
+ // success: function (data, ret) {
|
|
|
+ // // Layer.alert(ret.msg + ",返回数据:" + JSON.stringify(data));
|
|
|
+ // Layer.alert(ret.msg);
|
|
|
+ // //如果需要阻止成功提示,则必须使用return false;
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // error: function (data, ret) {
|
|
|
+ // // console.log(data, ret);
|
|
|
+ // Layer.alert(ret.msg);
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // callback: function (data) {
|
|
|
+ // Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ // },
|
|
|
+ // visible: function (row) {
|
|
|
+ // if (row.status == 1 && row.purpose == 3) {
|
|
|
+ // return true;
|
|
|
+ // } else {
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ {
|
|
|
name: 'edit',
|
|
|
text: '',
|
|
|
title: __('编辑'),
|