1.驳回操作添加驳回理由
case 'shno':
var data = checkStatus.data;
if (data.length<=0) {
layer.alert("请至少选中一项", {icon: 5});
return;
}
var arr = [];
for (var i = 0; i < data.length; i++) {
arr.push(data[i].articleId);
}
layer.prompt({
title: '请输入驳回理由:',
value: '',
formType: 3
}, function (name, index) {
$.ajax({
url: '${ctx}/article/shno',
data: {articleIdStr:arr.join(","), reason:name},
method: 'post',
dataType: 'json',
success: function (res) {
if (res.code == 10200) {
layer.close(index);
layer.alert("操作成功", {icon: 6});
$(".layui-laypage-btn")[0].click();
}else {
layer.close(index);
layer.msg(res.message, {icon: 5});
}
},
error: function () {
layer.close(index);
layer.msg("系统繁忙,请稍后再试!", {icon: 5});
}
});
});