Explorar o código

日执行-应用功能

Shan9312 hai 1 ano
pai
achega
c769a524cb

BIN=BIN
dist-tmr-20240711.zip


+ 11 - 0
src/views/formulationPlan/dailyExecutionPlan/revisePlan.vue

@@ -121,6 +121,12 @@ export default {
         this.requestParam.parammaps = {}
         this.requestParam.parammaps.pastureid = Cookies.get('pastureid')
         this.requestParam.parammaps.date = this.date
+        const loading =  this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
         PostDataByName(this.requestParam).then(response => {
           if (response.msg === 'fail') {
             this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
@@ -129,7 +135,12 @@ export default {
             this.closeDialog()
             this.$parent.getList()
           }
+             
+          setTimeout(() => {
+            loading.close()
+          }, 5000);
         })
+
       }).catch(() => {
         this.$message({ type: 'info', message: '已取消应用' })
       })