From e9eab3126703f73906f055020aaeede45184e7ec Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 19 Apr 2023 17:13:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fd/AppPointsReview/integralAdd.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/project/fd/AppPointsReview/integralAdd.vue b/src/project/fd/AppPointsReview/integralAdd.vue index ea670de6..fe0b0c95 100644 --- a/src/project/fd/AppPointsReview/integralAdd.vue +++ b/src/project/fd/AppPointsReview/integralAdd.vue @@ -19,7 +19,8 @@
*事件类型
- + + 请选择
@@ -104,14 +105,6 @@ export default { onShow() { 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: { submit() { 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() { this.$http.post(`/app/appintegralrule/listByFdGirdMember?openId=${this.form.userId}`).then(res=> { @@ -189,6 +186,7 @@ export default { this.form.applyIntegral = '' this.form.applyItemId = '' this.form.applyItemName = '' + this.dictList = [] this.getType() }, }