Kaynağa Gözat

项目管理-上传未完成不可以提交

lizhenhao 2 yıl önce
ebeveyn
işleme
3de30b76ab

+ 5 - 2
src/views/modules/sys/project/AssessForm.vue

@@ -645,6 +645,9 @@
       },
       // 表单提交
       doSubmit () {
+        if (this.progressFlag === true) {
+          this.$message.warning('文件正在上传中,请稍等')
+        }
         this.$refs['inputForm'].validate((valid) => {
           if (valid) {
             this.loading = true
@@ -676,10 +679,10 @@
           }
         })
       },
-      close () {
+      async close () {
         this.$refs.inputForm.resetFields()
-        this.visible = false
         this.showVi = true
+        this.visible = false
       },
       async httpRequest (file) {
         await httpRequest(file, fileName(file), 'projectRecords')

+ 3 - 0
src/views/modules/sys/project/ConsultationForm.vue

@@ -629,6 +629,9 @@
       },
       // 表单提交
       doSubmit () {
+        if (this.progressFlag === true) {
+          this.$message.warning('文件正在上传中,请稍等')
+        }
         this.$refs['inputForm'].validate((valid) => {
           if (valid) {
             this.loading = true