Shan9312 1 год назад
Родитель
Сommit
c769a524cb
2 измененных файлов с 11 добавлено и 0 удалено
  1. BIN
      dist-tmr-20240711.zip
  2. 11 0
      src/views/formulationPlan/dailyExecutionPlan/revisePlan.vue

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 = {}
         this.requestParam.parammaps.pastureid = Cookies.get('pastureid')
         this.requestParam.parammaps.pastureid = Cookies.get('pastureid')
         this.requestParam.parammaps.date = this.date
         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 => {
         PostDataByName(this.requestParam).then(response => {
           if (response.msg === 'fail') {
           if (response.msg === 'fail') {
             this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
             this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
@@ -129,7 +135,12 @@ export default {
             this.closeDialog()
             this.closeDialog()
             this.$parent.getList()
             this.$parent.getList()
           }
           }
+             
+          setTimeout(() => {
+            loading.close()
+          }, 5000);
         })
         })
+
       }).catch(() => {
       }).catch(() => {
         this.$message({ type: 'info', message: '已取消应用' })
         this.$message({ type: 'info', message: '已取消应用' })
       })
       })