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
 		this.ServeJSON()
179
 		this.ServeJSON()
180
 	} else {
180
 	} else {
181
 		redirectURL := "" // beego.AppConfig.String("submodule_domain_dialysis_manage")
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
 		this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
192
 		this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
184
 			"url": redirectURL,
193
 			"url": redirectURL,