|
@@ -16,6 +16,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
amount_rank_url: 'goods/goods_buy_rank',
|
|
|
order_amount_rank_url: 'goods/order_amount_rank',
|
|
|
order_num_rank_url: 'goods/order_num_rank',
|
|
|
+ copy_url: 'goods/copy',
|
|
|
table: 'goods',
|
|
|
}
|
|
|
});
|
|
@@ -64,7 +65,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
name: 'detail',
|
|
|
text: __('商品组合'),
|
|
|
title: __('商品组合'),
|
|
|
- classname: 'btn btn-xs btn-primary btn-dialog',
|
|
|
+ classname: 'btn btn-xs btn-primary btn-dialog btn-operation',
|
|
|
icon: 'fa',
|
|
|
url: extend.bind_url,
|
|
|
callback: function (data) {
|
|
@@ -77,7 +78,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
name: 'detail',
|
|
|
text: __('数据统计'),
|
|
|
title: __('数据统计'),
|
|
|
- classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog btn-operation btn-operation-mt10',
|
|
|
icon: 'fa',
|
|
|
url: extend.statistics_url,
|
|
|
extend:`data-area='["800px","80%"]'`,
|
|
@@ -91,7 +92,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
name: 'detail',
|
|
|
text: __('采购金额排名'),
|
|
|
title: __('采购金额排名'),
|
|
|
- classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog btn-operation btn-operation-mt10',
|
|
|
icon: 'fa',
|
|
|
url: extend.amount_rank_url,
|
|
|
extend:`data-area='["800px","80%"]'`,
|
|
@@ -105,7 +106,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
name: 'detail',
|
|
|
text: __('订单金额排名'),
|
|
|
title: __('订单金额排名'),
|
|
|
- classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog btn-operation btn-operation-mt10',
|
|
|
icon: 'fa',
|
|
|
url: extend.order_amount_rank_url,
|
|
|
extend:`data-area='["800px","80%"]'`,
|
|
@@ -119,7 +120,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
name: 'detail',
|
|
|
text: __('订单笔数排名'),
|
|
|
title: __('订单笔数排名'),
|
|
|
- classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog btn-operation btn-operation-mt10',
|
|
|
icon: 'fa',
|
|
|
url: extend.order_num_rank_url,
|
|
|
extend:`data-area='["800px","80%"]'`,
|
|
@@ -129,6 +130,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return table.data('operate-order_num_rank');
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('复制商品'),
|
|
|
+ title: __('复制商品'),
|
|
|
+ classname: 'btn btn-xs btn-danger btn-ajax btn-operation btn-operation-mt10',
|
|
|
+ icon: 'fa',
|
|
|
+ url: extend.copy_url,
|
|
|
+ extend:`data-area='["800px","80%"]'`,
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return table.data('operate-copy');
|
|
|
+ }
|
|
|
+ },
|
|
|
]},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate},
|
|
|
]
|