Преглед на файлове

认证信息提交后跳转

sunjh преди 6 години
родител
ревизия
60b1a3e36b

+ 15 - 1
src/components/authen/AgencyAuthenticationCreate.vue

@@ -167,7 +167,21 @@ export default {
     submitInfoSuccess (res) {
       console.log(res)
       this.hideLoading()
-      notify('success', '认证信息上传成功')
+      this.$confirm('认证信息提交成功,将于10个工作日内审核完成')
+        .then(_ => {
+          //done()
+          this.$router.push({
+            name: 'AgencyAuthentication',
+            params: {userId: this.user.userVO.id}
+          })
+          this.hideDialog()
+        })
+        .catch(_ => {
+          this.$router.push({
+            name: 'AgencyAuthentication',
+            params: {userId: this.user.userVO.id}
+          })
+        })
     },
     submitInfoFail (error) {
       this.hideLoading()

+ 15 - 1
src/components/authen/EnterpriseAuthenticationCreate.vue

@@ -131,7 +131,21 @@ export default {
     submitInfoSuccess (res) {
       this.hideLoading()
       console.log(res)
-      notify('success', '认证信息上传成功')
+      this.$confirm('认证信息提交成功,将于10个工作日内审核完成')
+        .then(_ => {
+          //done()
+          this.$router.push({
+            name: 'EnterpriseAuthentication',
+            params: {userId: this.user.userVO.id}
+          })
+          this.hideDialog()
+        })
+        .catch(_ => {
+          this.$router.push({
+            name: 'EnterpriseAuthentication',
+            params: {userId: this.user.userVO.id}
+          })
+        })
     },
     submitInfoFail (error) {
       this.hideLoading()

+ 15 - 1
src/components/authen/IndividualAuthenticationCreate.vue

@@ -133,7 +133,21 @@ export default {
     submitInfoSuccess (res) {
       this.hideLoading()
       console.log(res)
-      notify('success', '认证信息上传成功')
+      this.$confirm('认证信息提交成功,将于10个工作日内审核完成')
+        .then(_ => {
+          //done()
+          this.$router.push({
+            name: 'IndividualAuthentication',
+            params: {userId: this.user.userVO.id}
+          })
+          this.hideDialog()
+        })
+        .catch(_ => {
+          this.$router.push({
+            name: 'IndividualAuthentication',
+            params: {userId: this.user.userVO.id}
+          })
+        })
     },
     submitInfoFail (error) {
       this.hideLoading()