30398
This commit is contained in:
@@ -108,7 +108,6 @@ export default {
|
||||
this.instance.post(`/app/apppartyintegralinfo/list`, null, {
|
||||
params: {
|
||||
...this.search,
|
||||
type: 1
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
|
||||
@@ -235,6 +235,7 @@ export default {
|
||||
this.form = res.data
|
||||
this.form.ladderIntegral = JSON.parse(res.data.ladderRule)
|
||||
this.form.ruleType = res.data.ruleType
|
||||
this.form.integralArr = [ res.data.integralMin, res.data.integralMax ]
|
||||
this.dialog = true
|
||||
}
|
||||
})
|
||||
@@ -306,12 +307,16 @@ export default {
|
||||
this.getList();
|
||||
},
|
||||
onConfirm() {
|
||||
this.form.integralMin = this.form.integralArr?.[0] || ''
|
||||
this.form.integralMax = this.form.integralArr?.[1] || ''
|
||||
this.form.ladderRule = JSON.stringify(this.form.ladderIntegral)
|
||||
|
||||
if(this.form.integralMin >= this.form.integralMax) {
|
||||
return this.$message.error('请输入正确的区间范围')
|
||||
}
|
||||
|
||||
this.$refs.DialogForm.validate((valid) => {
|
||||
if (valid) {
|
||||
this.form.integralMin = this.form.integralArr?.[0] || ''
|
||||
this.form.integralMax = this.form.integralArr?.[1] || ''
|
||||
this.form.ladderRule = JSON.stringify(this.form.ladderIntegral)
|
||||
|
||||
this.instance.post(`/app/apppartyintegralrule/addOrUpdate`, {
|
||||
...this.form,
|
||||
id: this.form.id || ''
|
||||
|
||||
Reference in New Issue
Block a user