记得上下班打卡 | git大法好,push需谨慎

Commit cb0ee4e1 authored by sangchunxi's avatar sangchunxi

驳回 bug修复

parent 8d3927aa
...@@ -158,7 +158,12 @@ ...@@ -158,7 +158,12 @@
type: Number(detailObj.type), type: Number(detailObj.type),
uid: detailObj.uid, uid: detailObj.uid,
} }
} else { } else { // 驳回
// 驳回原因必填
if (!$('.reason_text').val()) {
$('.requireFalseText').text('驳回原因为必填项!')
return
}
var postData = { var postData = {
id: Number(detailObj.id), id: Number(detailObj.id),
orgId: '', orgId: '',
...@@ -168,23 +173,18 @@ ...@@ -168,23 +173,18 @@
} }
} }
// 驳回原因必填 $('.requireFalseText').text('')
if ($('.reason_text').val()) { $.ajax({
$('.requireFalseText').text('') type: 'post',
$.ajax({ url: smilePrefix + "/check/updateById",
type: 'post', headers: {"Content-Type": "application/json;charset=UTF-8"},
url: smilePrefix + "/check/updateById", data: JSON.stringify(postData),
headers: {"Content-Type": "application/json;charset=UTF-8"}, success: function (e) {
data: JSON.stringify(postData), $(".layui-layer-close1").click();
success: function (e) { alert(e.msg)
$(".layui-layer-close1").click(); location.reload();
alert(e.msg) }
location.reload(); })
}
})
} else {
$('.requireFalseText').text('驳回原因为必填项!')
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment