Forráskód Böngészése

前:二级单位添加年审加loading

wd 4 éve
szülő
commit
2d2636e010

+ 6 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/basicindex.vue

@@ -201,7 +201,7 @@
         </el-form>
         <span style="float: right;margin-top:-10px;">
           <el-button size="small" @click="addshow = false">取 消</el-button>
-          <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
+          <el-button type="primary" size="small" @click="addAnnualAudit()" :loading="addLoading">确 定</el-button>
         </span>
         <br>
       </el-dialog>
@@ -451,6 +451,7 @@
         this.entityForm.SupplierName = obj.Realname
       },
       addAnnualAudit () {
+        this.addLoading = true
         this.$refs['EntityFormref'].validate((valid) => {
           if (valid) {
             this.entityForm.auditer = this.auditer
@@ -478,9 +479,13 @@
                   message: res.data.message
                 })
               }
+              this.addLoading = false
             }).catch(err => {
+              this.addLoading = false
               console.error(err)
             })
+          } else {
+            this.addLoading = false
           }
         })
       },

+ 6 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/goodsindex.vue

@@ -201,7 +201,7 @@
         </el-form>
         <span style="float: right;margin-top:-10px;">
           <el-button size="small" @click="addshow = false">取 消</el-button>
-          <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
+          <el-button type="primary" size="small" @click="addAnnualAudit()" :loading="addLoading">确 定</el-button>
         </span>
         <br>
       </el-dialog>
@@ -451,6 +451,7 @@
         this.entityForm.SupplierName = obj.Realname
       },
       addAnnualAudit () {
+        this.addLoading = true
         this.$refs['EntityFormref'].validate((valid) => {
           if (valid) {
             this.entityForm.auditer = this.auditer
@@ -480,9 +481,13 @@
                   message: res.data.message
                 })
               }
+              this.addLoading = false
             }).catch(err => {
+              this.addLoading = false
               console.error(err)
             })
+          } else {
+            this.addLoading = false
           }
         })
       },

+ 6 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/techindex.vue

@@ -200,7 +200,7 @@
         </el-form>
         <span style="float: right;margin-top:-10px;">
           <el-button size="small" @click="addshow = false">取 消</el-button>
-          <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
+          <el-button type="primary" size="small" @click="addAnnualAudit()" :loading="addLoading">确 定</el-button>
         </span>
         <br>
       </el-dialog>
@@ -453,6 +453,7 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
         this.entityForm.SupplierName = obj.Realname
       },
       addAnnualAudit () {
+        this.addLoading = true
         this.$refs['EntityFormref'].validate((valid) => {
           if (valid) {
             this.entityForm.auditer = this.auditer
@@ -481,9 +482,13 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
                   message: res.data.message
                 })
               }
+              this.addLoading = false
             }).catch(err => {
+              this.addLoading = false
               console.error(err)
             })
+          } else {
+            this.addLoading = false
           }
         })
       },