|
@@ -138,7 +138,7 @@
|
|
|
},
|
|
|
created() {
|
|
|
this.subForm = this.register_form_data;
|
|
|
-
|
|
|
+
|
|
|
if (this.person_data) {
|
|
|
this.subForm.name = this.subForm.name ? this.subForm.name : this.person_data.name;
|
|
|
this.subForm.telephone = this.subForm.telephone ? this.subForm.telephone : this.person_data.phone;
|
|
@@ -217,11 +217,18 @@
|
|
|
API_Person.register(this.subForm).then(response => {
|
|
|
this.isLoading = false;
|
|
|
|
|
|
- mui.toast('提交成功,等待审核中');
|
|
|
- this.$router.push({
|
|
|
- name: 'UserLogin',
|
|
|
- project: 'pension'
|
|
|
- })
|
|
|
+ if (this.person_data) {
|
|
|
+ mui.toast('提交成功');
|
|
|
+ //跳转到项目主页上去
|
|
|
+ window.location.href = '../pension/#/master';
|
|
|
+ } else {
|
|
|
+ mui.toast('提交成功,等待审核中');
|
|
|
+ this.$router.push({
|
|
|
+ name: 'UserLogin',
|
|
|
+ project: 'pension'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}).catch(error => {
|
|
|
this.isLoading = false;
|
|
@@ -232,7 +239,7 @@
|
|
|
//弹出提示
|
|
|
alertTips() {
|
|
|
mui.alert('照片将用于人脸识别设备,请上传清晰的免冠登记照或肩部以上近照。', ' ', function() {
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
asynCallBack() {
|