作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改订单操作按钮

... ... @@ -85,7 +85,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'order_status', title: __('Order_status'),formatter: Table.api.formatter.label,searchList:{'1': '通过','2':'未通过'}},
{field: 'paytime', title: __('Paytime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'expirationtime', title: __('Expirationtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
formatter: function (value,row,index) {
var that = $.extend({},this);
var table = $(that.table).clone(true);
if(row.status == 1){
$(table).data('operate-edit',null);
$(table).data('operate-del',null);
}
that.table = table;
return Table.api.formatter.operate.call(that,value,row,index);
}
}
]
]
});
... ...