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