记得上下班打卡 | 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,8 +173,6 @@ ...@@ -168,8 +173,6 @@
} }
} }
// 驳回原因必填
if ($('.reason_text').val()) {
$('.requireFalseText').text('') $('.requireFalseText').text('')
$.ajax({ $.ajax({
type: 'post', type: 'post',
...@@ -182,9 +185,6 @@ ...@@ -182,9 +185,6 @@
location.reload(); 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