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

修改订单操作按钮

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