|
@@ -60,7 +60,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
classname: 'btn btn-xs btn-primary btn-dialog btn-detail',
|
|
|
icon: 'fa fa-list',
|
|
|
url: 'user_order/edit',
|
|
|
- width:'700',
|
|
|
callback: function (data) {
|
|
|
//Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
},
|
|
@@ -69,14 +68,29 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'send_detail',
|
|
|
+ text: __('运送详情'),
|
|
|
+ title: __('运送详情'),
|
|
|
+ classname: 'btn btn-xs btn-primary btn-dialog btn-send_detail',
|
|
|
+ icon: 'fa fa-list',
|
|
|
+ url: 'user_order/send_detail',
|
|
|
+ callback: function (data) {
|
|
|
+ //Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ //返回true时按钮显示,返回false隐藏
|
|
|
+ return $('#table').data('operate-send_detail')===1;
|
|
|
+ }
|
|
|
+ },
|
|
|
],
|
|
|
}
|
|
|
]
|
|
|
],
|
|
|
onLoadSuccess:function(){
|
|
|
// 这里就是数据渲染结束后的回调函数
|
|
|
- $(".btn-detail,.btn-detail").data("area", ['1000px','100%']);
|
|
|
- $(".btn-detail,.btn-detail").data("shade", [0.5,"#000"]);
|
|
|
+ $(".btn-detail,.btn-send_detail").data("area", ['1000px','100%']);
|
|
|
+ $(".btn-detail,.btn-send_detail").data("shade", [0.5,"#000"]);
|
|
|
}
|
|
|
});
|
|
|
|