判断
This commit is contained in:
@@ -151,13 +151,15 @@ export default {
|
||||
if (res?.data) {
|
||||
this.info = res.data,
|
||||
this.integralInfo = res.data.integralRule
|
||||
this.scoreItem = JSON.parse(res.data.integralRule.ladderRule).map(e=>{
|
||||
return {
|
||||
dictName: e.viewCount,
|
||||
dictValue: e.integral.toString()
|
||||
}
|
||||
})
|
||||
if(res.data.integralRule.ruleType == 1) {
|
||||
this.scoreItem = JSON.parse(res.data.integralRule.ladderRule)?.map(e=>{
|
||||
return {
|
||||
dictName: e.viewCount,
|
||||
dictValue: e.integral.toString()
|
||||
}
|
||||
})
|
||||
}
|
||||
if(res.data.integralRule.ruleType == 0) {
|
||||
this.form.auditIntegral = this.integralInfo.integral
|
||||
}
|
||||
}
|
||||
@@ -192,7 +194,7 @@ export default {
|
||||
|
||||
onConfirm() {
|
||||
if(this.integralInfo.ruleType == 2 && this.form.pass == 1) {
|
||||
this.form.integralItem = this.scoreItem.filter(e=> e.dictValue == this.form.auditIntegral)[0].dictName
|
||||
this.form.integralItem = this.scoreItem.filter(e=> e.dictValue == this.form.auditIntegral)[0]?.dictName
|
||||
}
|
||||
if(this.integralInfo.ruleType == 0 && this.form.pass == 1) {
|
||||
this.form.auditIntegral = this.integralInfo.integral
|
||||
|
||||
Reference in New Issue
Block a user