代申请

This commit is contained in:
liuye
2023-04-19 17:13:16 +08:00
parent b2d314120e
commit e9eab31267

View File

@@ -19,7 +19,8 @@
<div class="item mar-b32"> <div class="item mar-b32">
<div class="left"><span class="tips">*</span>事件类型</div> <div class="left"><span class="tips">*</span>事件类型</div>
<div class="right"> <div class="right">
<AiSelect :list="dictList" v-model="form.applyItemId"></AiSelect> <AiSelect :list="dictList" v-model="form.applyItemId" @data="selectType" v-if="dictList.length"></AiSelect>
<span v-else class="color-999">请选择</span>
</div> </div>
</div> </div>
<div class="item mar-b32"> <div class="item mar-b32">
@@ -104,14 +105,6 @@ export default {
onShow() { onShow() {
document.title = '积分代申请' document.title = '积分代申请'
}, },
watch: {
'form.applyItemId'(v) {
if(v) {
this.form.applyItemName = this.list.filter(e=> (e.id==v))[0].ruleName
this.form.applyIntegral = this.list.filter(e => (e.id == v))[0].integral
}
}
},
methods: { methods: {
submit() { submit() {
if(this.flag) return if(this.flag) return
@@ -151,6 +144,10 @@ export default {
} }
}) })
}, },
selectType(selecteds) {
this.form.applyItemName = this.list.filter(e=> (e.id==selecteds[0].value))[0].ruleName
this.form.applyIntegral = this.list.filter(e => (e.id == selecteds[0].value))[0].integral
},
// 事件类型 // 事件类型
getType() { getType() {
this.$http.post(`/app/appintegralrule/listByFdGirdMember?openId=${this.form.userId}`).then(res=> { this.$http.post(`/app/appintegralrule/listByFdGirdMember?openId=${this.form.userId}`).then(res=> {
@@ -189,6 +186,7 @@ export default {
this.form.applyIntegral = '' this.form.applyIntegral = ''
this.form.applyItemId = '' this.form.applyItemId = ''
this.form.applyItemName = '' this.form.applyItemName = ''
this.dictList = []
this.getType() this.getType()
}, },
} }