|
@@ -11,8 +11,8 @@
|
|
|
<a-col :span="6">
|
|
|
<a-form-item label="乐豆余额" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
|
<div class="input-number">
|
|
|
- <a-input-number id="releaseRecordList-inputNumber" v-model="queryParam.currentGoldMin" :min="0" @change="onChange" />-
|
|
|
- <a-input-number id="inputNumber" v-model="queryParam.currentGoldMax" :min="0" @change="onChange" />
|
|
|
+ <a-input-number id="releaseRecordList-inputNumber" v-model="queryParam.currentGoldMin" :max="999999999" @change="onChange" />-
|
|
|
+ <a-input-number id="inputNumber" v-model="queryParam.currentGoldMax" :max="999999999" @change="onChange" />
|
|
|
</div>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -208,18 +208,30 @@ export default {
|
|
|
|
|
|
},
|
|
|
refresh () {
|
|
|
- // const isVal = this.queryParam.currentGoldMin && this.queryParam.currentGoldMin != 0
|
|
|
- if (((this.queryParam.currentGoldMin && this.queryParam.currentGoldMin != 0) && this.queryParam.currentGoldMax) && (this.queryParam.currentGoldMin > this.queryParam.currentGoldMax)) {
|
|
|
+ const isONull = this.queryParam.currentGoldMin === null
|
|
|
+ const isOEmpty = this.queryParam.currentGoldMin === ''
|
|
|
+ const isOZero = this.queryParam.currentGoldMin === 0
|
|
|
+ const isTNull = this.queryParam.currentGoldMax === null
|
|
|
+ const isTEmpty = this.queryParam.currentGoldMax === ''
|
|
|
+ const isTZero = this.queryParam.currentGoldMax === 0
|
|
|
+ // 第一个为空(可为null可为空字符)第二个不为空
|
|
|
+ // 第一个不为空第二个为空(可为null可为空字符)
|
|
|
+ // 第一个大于第二个
|
|
|
+ if ((isONull || isOEmpty) && (this.queryParam.currentGoldMax || isTZero)) {
|
|
|
this.$message.error('请输入正确的查询范围!')
|
|
|
return
|
|
|
}
|
|
|
- if (((!this.queryParam.currentGoldMin && this.queryParam.currentGoldMin != 0) && this.queryParam.currentGoldMax) || (this.queryParam.currentGoldMin && !this.queryParam.currentGoldMax)) {
|
|
|
+ if ((this.queryParam.currentGoldMin || isOZero) && (isTNull || isTEmpty)) {
|
|
|
this.$message.error('请输入正确的查询范围!')
|
|
|
return
|
|
|
- } else {
|
|
|
- this.$refs.table.refresh()
|
|
|
- }
|
|
|
- this.$refs.table.refresh()
|
|
|
+ }
|
|
|
+ if (this.queryParam.currentGoldMin > this.queryParam.currentGoldMax) {
|
|
|
+ this.$message.error('请输入正确的查询范围!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.queryParam.currentGoldMin = this.queryParam.currentGoldMin > 999999999 ? 999999999 : this.queryParam.currentGoldMin
|
|
|
+ this.queryParam.currentGoldMax = this.queryParam.currentGoldMax > 999999999 ? 999999999 : this.queryParam.currentGoldMax
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 查看用户详情
|
|
|
handleUser (row) {
|