xuqiang 4 yıl önce
ebeveyn
işleme
9fc395eb4a

+ 26 - 24
src/main/pc-space/src/views/AssetDetail.vue

@@ -553,31 +553,33 @@ export default {
                 });
         },
         send() {
-            this.$confirm('未认证不能转增,是否认证', '认证', {
-                confirmButtonText: '确定',
-                cancelButtonText: '取消',
-                customClass: 'myClass',
-                center: true
-            }).then(() => {
-                this.add();
-                this.$nextTick(() => {
-                    console.log(this.lists);
-                    setTimeout(() => {
-                        if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == false) {
-                            this.add();
-                            this.$router.push('/userauthentication');
-                            this.$refs.send.show = true;
-                        }
-                    }, 1000);
-                    setTimeout(() => {
-                        if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == true) {
-                            this.add();
-                            this.$router.push('/enterpriseauthentication');
-                            this.$refs.send.show = true;
-                        }
-                    }, 1000);
+            if (this.userInfo.authStatus === 'SUCCESS') {
+                this.$refs.send.show = true;
+            } else {
+                this.$confirm('未认证不能转增,是否认证', '认证', {
+                    confirmButtonText: '确定',
+                    cancelButtonText: '取消',
+                    customClass: 'myClass',
+                    center: true
+                }).then(() => {
+                    this.add();
+                    this.$nextTick(() => {
+                        console.log(this.lists);
+                        setTimeout(() => {
+                            if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == false) {
+                                this.add();
+                                this.$router.push('/userauthentication');
+                            }
+                        }, 1000);
+                        setTimeout(() => {
+                            if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == true) {
+                                this.add();
+                                this.$router.push('/enterpriseauthentication');
+                            }
+                        }, 1000);
+                    });
                 });
-            });
+            }
         }
     }
 };

+ 2 - 2
src/main/pc-space/src/views/Send.vue

@@ -183,7 +183,7 @@ export default {
                         })
                         .catch(e => {
                             if (e) {
-                                this.$message(e.error);
+                                this.$message.error(e.error);
                             }
                         });
                 })
@@ -217,7 +217,7 @@ export default {
                 })
                 .catch(e => {
                     if (e) {
-                        this.$toast(e.error);
+                        this.$message.error(e.error);
                     }
                 });
         }