Browse Source

修复创建机构成功后跳转的 bug

庄逸洲 5 years ago
parent
commit
9cd1c996a0
1 changed files with 9 additions and 0 deletions
  1. 9 0
      controllers/org_controller.go

+ 9 - 0
controllers/org_controller.go View File

@@ -179,6 +179,15 @@ func (this *OrgController) CreateSubmit() {
179 179
 		this.ServeJSON()
180 180
 	} else {
181 181
 		redirectURL := "" // beego.AppConfig.String("submodule_domain_dialysis_manage")
182
+		if openXT {
183
+			redirectURL = beego.AppConfig.String("submodule_domain_dialysis_manage")
184
+		} else if openCDM {
185
+			redirectURL = beego.AppConfig.String("submodule_domain_cdm_manage")
186
+		} else if openSCRM {
187
+			redirectURL = beego.AppConfig.String("submodule_domain_patient_manage")
188
+		} else if openMall {
189
+			redirectURL = beego.AppConfig.String("submodule_domain_mall_manage")
190
+		}
182 191
 
183 192
 		this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
184 193
 			"url": redirectURL,