|
|
@ -41,9 +41,9 @@ |
|
|
|
prop="behaviorCode"> |
|
|
|
<el-select v-model="dataForm.behaviorCode"> |
|
|
|
<el-option v-for="item in behaviorTypeList" |
|
|
|
:key="item.dictValue" |
|
|
|
:label="item.dictName" |
|
|
|
:value="item.dictValue"> |
|
|
|
:key="item.behaviorCode" |
|
|
|
:label="item.behaviorDesc" |
|
|
|
:value="item.behaviorCode"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -169,24 +169,24 @@ export default { |
|
|
|
} |
|
|
|
this.$http['post']( |
|
|
|
'/points/pointslogs/confirmAdjustPoint', this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { }) |
|
|
|
}) |
|
|
|
}).catch(() => { }) |
|
|
|
}, 1000, { 'leading': true, 'trailing': false }) |
|
|
|
}), |
|
|
|
getBehaviorTypeList () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/dict/listSimple/pointsrule_behavior`) |
|
|
|
.get(`/points/pointsbehavior/getAllBehaviorDesc`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|