|
|
|
@ -322,9 +322,6 @@
|
|
|
|
|
var tr = $(this).parents('tr').eq(0)
|
|
|
|
|
var id = tr.attr('data-id')
|
|
|
|
|
var otherQuota = tr.attr('data-other-quota')
|
|
|
|
|
if (!isNumber(otherQuota)) {
|
|
|
|
|
return layer.msg('额外额度只能为正整数')
|
|
|
|
|
}
|
|
|
|
|
box.find('[name=id]').val(id)
|
|
|
|
|
box.find('[name=other_quota]').val(otherQuota)
|
|
|
|
|
layer.open({
|
|
|
|
@ -340,6 +337,9 @@
|
|
|
|
|
var box = $('#other-quota-box')
|
|
|
|
|
var id = box.find('[name=id]').val()
|
|
|
|
|
var otherQuota = box.find('[name=other_quota]').val()
|
|
|
|
|
if (!isNumber(otherQuota)) {
|
|
|
|
|
return layer.msg('额外额度只能为正整数')
|
|
|
|
|
}
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('setOtherQuota')}",
|
|
|
|
|
type: "POST",
|
|
|
|
|