|
@@ -114,13 +114,19 @@ export default {
|
|
|
title: '乐豆余额',
|
|
|
dataIndex: 'currentGold',
|
|
|
width: 100,
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ customRender: (text) => {
|
|
|
+ return text || 0
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '累计乐豆',
|
|
|
dataIndex: 'totalCarbon',
|
|
|
width: 100,
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ customRender: (text) => {
|
|
|
+ return text || 0
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '注册时间',
|
|
@@ -171,17 +177,6 @@ export default {
|
|
|
return res.data
|
|
|
}
|
|
|
})
|
|
|
- // return customerList({ pageNo: '1', pageSize: '10' }).then(res => {
|
|
|
- // if (res.status == 200) {
|
|
|
- // const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
|
- // for (let i = 0; i < res.data.list.length; i++) {
|
|
|
- // const _item = res.data.list[i]
|
|
|
- // _item.no = no + i + 1
|
|
|
- // _item.status = _item.status + '' === '1'
|
|
|
- // }
|
|
|
- // return res.data
|
|
|
- // }
|
|
|
- // })
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -201,9 +196,11 @@ export default {
|
|
|
this.$message.error('请输入正确的查询范围!')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.queryParam.currentGoldMin || !this.queryParam.currentGoldMax) {
|
|
|
+ if ((!this.queryParam.currentGoldMin && this.queryParam.currentGoldMax) || (this.queryParam.currentGoldMin && !this.queryParam.currentGoldMax)) {
|
|
|
this.$message.error('请输入正确的查询范围!')
|
|
|
return
|
|
|
+ } else {
|
|
|
+ this.$refs.table.refresh()
|
|
|
}
|
|
|
this.$refs.table.refresh()
|
|
|
},
|