Explorar o código

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

yusheng hai 4 meses
pai
achega
424de1613d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {
               // 赋值创建人和更新人