Browse Source

志愿者积分调整 行为选择

feature/syp_points
songyunpeng 5 years ago
parent
commit
b1e972ad4b
  1. 32
      src/views/modules/points/volunteerinfo-points-adjust.vue

32
src/views/modules/points/volunteerinfo-points-adjust.vue

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

Loading…
Cancel
Save