浏览代码

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

lizhenhao 2 年之前
父节点
当前提交
3de30b76ab
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 5 2
      src/views/modules/sys/project/AssessForm.vue
  2. 3 0
      src/views/modules/sys/project/ConsultationForm.vue

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

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

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

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