|
@@ -14,6 +14,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
bind_url: 'goods/bind_goods',
|
|
|
statistics_url: 'goods/goods_statistics',
|
|
|
amount_rank_url: 'goods/goods_buy_rank',
|
|
|
+ order_amount_rank_url: 'goods/order_amount_rank',
|
|
|
table: 'goods',
|
|
|
}
|
|
|
});
|
|
@@ -83,6 +84,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return table.data('operate-buy_rank');
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('订单金额排名'),
|
|
|
+ title: __('订单金额排名'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ icon: 'fa',
|
|
|
+ url: extend.order_amount_rank_url,
|
|
|
+ extend:`data-area='["800px","80%"]'`,
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return table.data('operate-order_amount_rank');
|
|
|
+ }
|
|
|
+ },
|
|
|
]}
|
|
|
]
|
|
|
],
|
|
@@ -134,12 +149,30 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'nickname', title: __('用户名')},
|
|
|
{field: 'amount', title: __('金额')},
|
|
|
]
|
|
|
- ],
|
|
|
- onLoadSuccess(){
|
|
|
- setTimeout(()=>{
|
|
|
- $('.btn-editone').attr('data-area','["100%","100%"]')
|
|
|
- },100)
|
|
|
- }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+ Table.api.bindevent(table);
|
|
|
+ },
|
|
|
+ order_amount_rank(){
|
|
|
+ Table.api.init()
|
|
|
+ var table = $("#table");
|
|
|
+ // 初始化表格
|
|
|
+ table.bootstrapTable({
|
|
|
+ url: location.href,
|
|
|
+ pk: 'id',
|
|
|
+ sortName: 'id',
|
|
|
+ searchFormVisible:false,
|
|
|
+ showExport:false,
|
|
|
+ commonSearch:false,
|
|
|
+ search:false,
|
|
|
+ columns: [
|
|
|
+ [
|
|
|
+ {field: 'rank', title: __('排名')},
|
|
|
+ {field: 'order_no', title: __('订单号')},
|
|
|
+ {field: 'nickname', title: __('用户名')},
|
|
|
+ {field: 'amount', title: __('金额')},
|
|
|
+ ]
|
|
|
+ ]
|
|
|
});
|
|
|
Table.api.bindevent(table);
|
|
|
},
|