fastadmin列表页先弹窗提示然后弹框的实现方式
代码:{
name: 'stop',
text: __('停单'),
title: __('客户停单'),
classname: 'btn btn-xs btn-danger btn-dialog',
url: 'lxsnai/order/stop',
confirm: '确认该日期要停止配送吗?',
success: function (data, ret) {
Layer.alert(ret.msg, function() {
window.location.reload();
});
return false;
},
visible: function (row) {
if (row.status==1) {
return true;
}
}
},
{
name: 'reback',
text: __('复单'),
title: __('恢复客户停单'),
classname: 'btn btn-xs btn-info btn-dialog',
url: 'lxsnai/order/reback',
confirm: '确认要恢复该日期配送吗?',
success: function (data, ret) {
Layer.alert(ret.msg, function() {
window.location.reload();
});
return false;
},
visible: function (row) {
if (row.status==1) {
return true;
}
}
},
页:
[1]