| | |
| | | } |
| | | |
| | | addExternalperson(this.accountform).then(response => { |
| | | if (response.code == 200) { |
| | | if (response.code == 200) { |
| | | // //重新获取账户列表 |
| | | // listExternalperson().then(res => { |
| | | // this.accountlist = res.rows; |
| | | // }); |
| | | |
| | | console.log("addExternalperson", response.data.id); |
| | | if (this.accountselectform.usertype == "org") { |
| | | this.accountlist.push({ |
| | | id: 0, |
| | | id: response.data.id, |
| | | userno: this.accountform.userno, |
| | | username: this.accountform.username, |
| | | idcardno: this.accountform.idcardno, |
| | |
| | | unitname: this.accountform.unitname, |
| | | userid: this.accountform.username |
| | | }); |
| | | |
| | | this.$modal.msgSuccess("您已添加成功新账户信息!"); |
| | | |
| | | } else { |
| | | this.accountlist.push({ |
| | | id: 0, |
| | | id: response.data.id, |
| | | userno: this.accountform.userno, |
| | | username: this.accountform.username, |
| | | idcardno: this.accountform.idcardno, |
| | |
| | | unitname: this.accountform.unitname, |
| | | userid: this.accountform.username + '(' + this.accountform.idcardno + ')' |
| | | }); |
| | | |
| | | this.$modal.msgSuccess( |
| | | "您已添加成功新账户信息,需要在账号状态启用后才能被使用!" |
| | | ); |
| | | this.$modal.msgSuccess("您已添加成功新账户信息,需要在账号状态启用后才能被使用!"); |
| | | return; |
| | | } |
| | | this.accountselectform.accountno = this.accountform.userno; |
| | | this.accountselectform.accountname = this.accountselectform.username; |
| | | |
| | | console.log("this.accountlist", this.accountlist); |
| | | console.log("this.accountselectform.accountno", this.accountselectform.accountno); |
| | | |
| | | // //重新获取账户列表 |
| | | // listExternalperson().then(res => { |
| | | // this.accountlist = res.rows; |
| | | // }); |
| | | |
| | | //赋值信息 |
| | | this.accountlist.map(res => { |