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

Commit cb0ee4e1 authored by sangchunxi's avatar sangchunxi

驳回 bug修复

parent 8d3927aa
......@@ -158,7 +158,12 @@
type: Number(detailObj.type),
uid: detailObj.uid,
}
} else {
} else { // 驳回
// 驳回原因必填
if (!$('.reason_text').val()) {
$('.requireFalseText').text('驳回原因为必填项!')
return
}
var postData = {
id: Number(detailObj.id),
orgId: '',
......@@ -168,23 +173,18 @@
}
}
// 驳回原因必填
if ($('.reason_text').val()) {
$('.requireFalseText').text('')
$.ajax({
type: 'post',
url: smilePrefix + "/check/updateById",
headers: {"Content-Type": "application/json;charset=UTF-8"},
data: JSON.stringify(postData),
success: function (e) {
$(".layui-layer-close1").click();
alert(e.msg)
location.reload();
}
})
} else {
$('.requireFalseText').text('驳回原因为必填项!')
}
$('.requireFalseText').text('')
$.ajax({
type: 'post',
url: smilePrefix + "/check/updateById",
headers: {"Content-Type": "application/json;charset=UTF-8"},
data: JSON.stringify(postData),
success: function (e) {
$(".layui-layer-close1").click();
alert(e.msg)
location.reload();
}
})
}
......
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