Browse Source

计算提示修改

jwyu 1 year ago
parent
commit
e353cb8422

+ 4 - 1
src/views/dataEntry_manage/databaseComponents/batchComputedSave.vue

@@ -272,9 +272,12 @@ export default {
             if(!isEnough) return this.$message.warning('请填写完整信息');
 
             this.loading=true
-            this.$message.success('请等待计算完成,该过程可能持续2-3分钟')
+            const tipMsg=setTimeout(() => {
+                this.$message.success('请等待计算完成,该过程可能持续2-3分钟')
+            }, 500);
             const res=this.isEdit?await dataBaseInterface.batchCalculateTargetEdit(params) : await dataBaseInterface.batchCalculateTargetAdd(params)
             this.loading=false
+            clearTimeout(tipMsg)
             
             if(res.Ret !== 200) return