|
@@ -138,11 +138,13 @@ export default {
|
|
|
userId: val.user_id,
|
|
|
limitId: val.limit_id
|
|
|
}
|
|
|
+ const value = val[type]
|
|
|
+ const noValue = this.emptyValue(value) || value === ''
|
|
|
if (type === 'total_limit') {
|
|
|
payload.reqType = 'maxNums'
|
|
|
- payload.maxNums = Number(val[type])
|
|
|
+ payload.maxNums = noValue ? Number(value) : ''
|
|
|
} else if (type === 'daily_limit') {
|
|
|
- payload.limitNum = Number(val[type])
|
|
|
+ payload.limitNum = noValue ? Number(value) : ''
|
|
|
}
|
|
|
setLimit_recordpersonListInter(payload).then(res => {
|
|
|
if (res.data.status == 1) {
|
|
@@ -163,9 +165,8 @@ export default {
|
|
|
},
|
|
|
// 获取当前点击页数据
|
|
|
getPageData (page) {
|
|
|
- if (this.currentIndex == 0) {
|
|
|
- this.sj_getDataList()
|
|
|
- }
|
|
|
+ this.pageobj.current = page
|
|
|
+ this.record_getDataList()
|
|
|
},
|
|
|
onSizeChange (size) {
|
|
|
this.pageobj.pageSize = size
|