sth
This commit is contained in:
parent
c7cb40a331
commit
7e4837da66
|
|
@ -3,26 +3,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'echarts', 'echarts-t
|
|||
var Controller = {
|
||||
|
||||
index: function () {
|
||||
|
||||
|
||||
//绑定事件
|
||||
/*$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
var panel = $($(this).attr("href"));
|
||||
var thisVal = $($(this).attr("data-val"));
|
||||
|
||||
if (panel.length > 0) {
|
||||
if(panel.attr("id")){
|
||||
|
||||
}
|
||||
Controller.table[panel.attr("id")].call(this);
|
||||
$(this).on('click', function (e) {
|
||||
$($(this).attr("href")).find(".btn-refresh").trigger("click");
|
||||
});
|
||||
}
|
||||
//移除绑定的事件
|
||||
$(this).unbind('shown.bs.tab');
|
||||
});*/
|
||||
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
var $targetPanel = $($(this).attr("href"));
|
||||
var tabVal = $(this).data('val');
|
||||
|
|
@ -52,17 +33,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'echarts', 'echarts-t
|
|||
{field: 'admin_user', title: __('派单员'),operate: "LIKE"},
|
||||
{field: 'count_num', title: __('总订单数'),operate: false},
|
||||
{field: 'finish_num', title: __('完单数'),operate: false},
|
||||
{field: 'total', title: __('成效额'), operate: false},
|
||||
{field: 'performance', title: __('总业绩'), operate: false},
|
||||
{field: 'cost_total', title: __('总成本'), operate: false},
|
||||
{field: 'refund_total', title: __('退款金额'), operate: false},
|
||||
{field: 'total', title: __('成效额(¥)'), operate: false},
|
||||
{field: 'performance', title: __('总业绩(¥)'), operate: false},
|
||||
{field: 'cost_total', title: __('总成本(¥)'), operate: false},
|
||||
{field: 'refund_total', title: __('退款金额(¥)'), operate: false},
|
||||
{field: 'refund_count', title: __('退款单数'), operate: false},
|
||||
|
||||
{field: 'performance_rate', title: __('利润率(%)'), operate: false},
|
||||
{field: 'trans_rate', title: __('转化率(%)'), operate: false},
|
||||
{field: 'cash_value', title: __('变现值'), operate: false},
|
||||
{field: 'performance_avg', title: __('客单利润'), operate: false},
|
||||
{field: 'total_avg', title: __('客单价'), operate: false},
|
||||
{field: 'performance_avg', title: __('客单利润(¥)'), operate: false},
|
||||
{field: 'total_avg', title: __('客单价(¥)'), operate: false},
|
||||
|
||||
{field: 'avg_time_diff', title: __('派单时效(小时)'), operate: false},
|
||||
|
||||
|
|
@ -110,12 +91,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'echarts', 'echarts-t
|
|||
};
|
||||
|
||||
$.ajax({
|
||||
url: "statistics/dispatcher/chartData", // 替换为你的接口地址
|
||||
url: "statistics/dispatcher/chartData", //
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data:params,
|
||||
success: function (response) {
|
||||
// 假设返回的数据结构是
|
||||
// 数据结构
|
||||
// response = {
|
||||
// source: [
|
||||
// ['产品销售', '2015', '2016', '2017'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user