From abf1afcdf253bf2e5c33665286e3983b2a246bf5 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 30 Aug 2019 17:09:31 +0800 Subject: [PATCH] =?UTF-8?q?desc:=20=E4=BF=AE=E6=94=B9=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/package/draft/editRule.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/package/draft/editRule.vue b/src/views/package/draft/editRule.vue index 3a435eaf1..67c882c76 100644 --- a/src/views/package/draft/editRule.vue +++ b/src/views/package/draft/editRule.vue @@ -2,7 +2,7 @@ - {{ isAdd? $t('global.add'): $t('global.edit') }} + {{ isAdd? $t('global.add'): $t('global.edit') }} {{ $t('global.cancel') }} @@ -231,7 +231,6 @@ export default { }); cb(results); } catch (error) { - console.error(error, '查询用户list'); cb(results); } } else { @@ -264,8 +263,8 @@ export default { this.show = false; }, draftRule() { - if (this.formModel.amount <= this.maxTotal && this.formModel.amount) { - this.$refs.dataform.validateForm(() => { + this.$refs.dataform.validateForm(() => { + if (this.formModel.amount <= this.maxTotal && this.formModel.amount) { if (this.isAdd) { this.$emit('addRuleForm', { operator: OperatorModel.TRANSFER, @@ -294,8 +293,8 @@ export default { }); } this.doClose(); - }); - } + } + }); } } };