Prechádzať zdrojové kódy

Merge branch 'hjw-documentCollection' into 'master-copy'

Update documentCollectionApprovalExcel.vue

See merge request spfm/spfm-market-front!418
胡俊炜 2 rokov pred
rodič
commit
3226e5e529

+ 8 - 2
src/pages/main/documentCollection/documentCollectionApprovalExcel.vue

@@ -463,7 +463,12 @@ export default {
                 },
             }).then((res) => {
                 this.loading = false;
-                if (res.data.result === 1) {
+                if (res.data.desc == '请编辑回复内容后提交') {
+                    _this.$message({
+                        message: res.data.desc,
+                        type: 'error'
+                    });
+                } else if (res.data.result === 1) {
                     _this.$message({
                         message: res.data.desc,
                         type: 'error'
@@ -474,7 +479,7 @@ export default {
                         message: '处理成功',
                         type: 'success'
                     });
-                    this.BtnDisabled = false
+                    
                     //没找到关闭标签页之前的临时处理措施
                     // const newUrl = '#' + this.$route.path + '?type=5&id=' + this.getUrlKey("id");
                     // console.log(newUrl);
@@ -484,6 +489,7 @@ export default {
                     //this.$router.go(-1);
                     this.$router.push("documentCollectionApproval");
                 }
+                this.BtnDisabled = false
             });
 
         },