Преглед изворни кода

优化规则明细校验逻辑,调整按钮加载状态位置

yusheng пре 4 месеци
родитељ
комит
424de1613d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/recordComponents/programRulesDialog.vue

+ 1 - 1
src/views/recordComponents/programRulesDialog.vue

@@ -985,10 +985,10 @@
         console.log('this.addForm', this.addForm);
         this.$refs.formRef.validate(async (valid) => {
           if (valid) {
-            this.butLoading = true;
             if (!this.addForm.detailList?.length) {
               return this.$message.success('规则明细不能为空');
             }
+            this.butLoading = true;
 
             try {
               // 赋值创建人和更新人