|
@@ -410,6 +410,29 @@ export default {
|
|
|
// 去掉前后空格
|
|
|
handleTrim(form,fild){
|
|
|
this[form][fild] = this[form][fild].trim()
|
|
|
+ },
|
|
|
+ // 获取机构信息
|
|
|
+ getInfo(){
|
|
|
+ let MethodName = "/OrgServer/Manager/OrgManager/GetOrgInfo";
|
|
|
+ let data = {
|
|
|
+ id: this.id
|
|
|
+ }
|
|
|
+ getLogin(MethodName, data)
|
|
|
+ .then((res) => {
|
|
|
+ if(res.status===1){
|
|
|
+ let form = this.organizeForm
|
|
|
+ let result = res.org
|
|
|
+ form.name = result.name
|
|
|
+ form.sn = result.sn
|
|
|
+ form.orgType = result.type
|
|
|
+ form.selectedOptions = result.city_id
|
|
|
+ form.personalCeil = result.max_person_count
|
|
|
+ form.validity = [result.effective_date_begin,result.effective_date_end]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -421,6 +444,7 @@ export default {
|
|
|
}
|
|
|
if(this.id){
|
|
|
obj.text = '编辑机构'
|
|
|
+ this.getInfo()
|
|
|
}
|
|
|
this.breadcrumbList.push(obj)
|
|
|
this.getProvinceList()
|