|
@@ -111,6 +111,9 @@
|
|
isLoading: false,
|
|
isLoading: false,
|
|
|
|
|
|
roleList: [],
|
|
roleList: [],
|
|
|
|
+
|
|
|
|
+ //默认从里面读取第一条
|
|
|
|
+ companyList: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -157,6 +160,24 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ //获取服务机构公司列表,并设置默认第一条
|
|
|
|
+ getCompanyList() {
|
|
|
|
+ this.isLoading = true;
|
|
|
|
+ API_Person.getServiceCompanyIdList().then(response => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ this.companyList = response.list;
|
|
|
|
+ //设置默认第一条
|
|
|
|
+ if (this.companyList.length > 0) {
|
|
|
|
+ this.subForm.serviceCompanyId = this.companyList[0].id;
|
|
|
|
+ this.subForm.serviceCompanyName = this.companyList[0].name;
|
|
|
|
+ this.set_register_form_data(this.subForm);
|
|
|
|
+ }
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ mui.toast(error);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
asynCallBack() {
|
|
asynCallBack() {
|
|
|
|
|
|
},
|
|
},
|
|
@@ -167,6 +188,8 @@
|
|
mounted() {
|
|
mounted() {
|
|
//获取用户角色列表
|
|
//获取用户角色列表
|
|
this.getRoleList();
|
|
this.getRoleList();
|
|
|
|
+ //获取服务机构公司列表
|
|
|
|
+ this.getCompanyList()
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
|
|
|