|
@@ -111,6 +111,7 @@
|
|
|
v-model="form.certificateUserId"
|
|
|
style="width:400px;"
|
|
|
placeholder="请选择"
|
|
|
+ @change="selectUser"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in userData"
|
|
@@ -291,6 +292,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectUser(){
|
|
|
+ let _this = this;
|
|
|
+ this.userData.forEach(vo => {
|
|
|
+ if(_this.form.certificateUserId == vo.id){
|
|
|
+ _this.form.certificateId = vo.idNumber;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
async init () {
|
|
|
if (this.$route.query.id != 0) {
|
|
|
await this.getById()
|