正在显示
1 个修改的文件
包含
12 行增加
和
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 | }); |
-
请 注册 或 登录 后发表评论