|
@@ -7,6 +7,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'lottery/draw_record/index' + location.search,
|
|
|
detail_url: 'lottery/draw_record/detail',
|
|
|
+ deliver_url: 'lottery/draw_record/deliver',
|
|
|
del_url: 'lottery/draw_record/del',
|
|
|
multi_url: 'lottery/draw_record/multi',
|
|
|
export_url: 'lottery/draw_record/export',
|
|
@@ -162,17 +163,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
title: '发货',
|
|
|
classname: 'btn btn-xs btn-success btn-dialog',
|
|
|
icon: 'fa fa-truck',
|
|
|
- url: 'lottery/draw_record/deliver',
|
|
|
+ url: 'lottery/draw_record/deliver?win_record_id={win_record_id}',
|
|
|
visible: function(row) {
|
|
|
return row.win_record_id > 0 && row.deliver_status == 0;
|
|
|
},
|
|
|
- extend: 'data-area="[\'600px\', \'400px\']"',
|
|
|
callback: function (data) {
|
|
|
// 可自定义回调
|
|
|
},
|
|
|
- params: function(row) {
|
|
|
- return {id: row.win_record_id};
|
|
|
- }
|
|
|
}
|
|
|
],
|
|
|
formatter: Table.api.formatter.operate
|
|
@@ -193,7 +190,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// // 初始化统计数据
|
|
|
// Controller.api.loadStatistics();
|
|
|
},
|
|
|
-
|
|
|
+ deliver: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
|
|
|
// 解析Config中的JSON字符串的辅助函数
|
|
@@ -212,6 +211,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return configValue;
|
|
|
},
|
|
|
bindevent: function () {
|
|
|
+ Form.api.bindevent($("form[role=form]"));
|
|
|
// 统计按钮
|
|
|
// $(document).on('click', '.btn-statistics', function() {
|
|
|
// $('a[href="#t-statistics"]').tab('show');
|