陈少旭 7 ヶ月 前
コミット
8fa1c7f3bd
共有1 個のファイルを変更した22 個の追加0 個の削除を含む
  1. 22 0
      controllers/role_controller.go

+ 22 - 0
controllers/role_controller.go ファイルの表示

@@ -238,7 +238,9 @@ func (this *RoleAPIController) EditPurviewInitData() {
238 238
 	_, _, DengjiPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/hospitalRecord/index")
239 239
 	_, _, GongjuPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/hisTool")
240 240
 	_, _, ShoufeiPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/hospitalCharges")
241
+
241 242
 	_, _, outpatientRegistrationPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/outpatientRegistration/index")
243
+
242 244
 	_, _, outpatientRegistrationPurviewTwo := service.GetOtherAllGeneralPurviewVMsProcessed("/outpatientDoctorStation")
243 245
 	_, _, outpatientRegistrationPurviewThree := service.GetOtherAllGeneralPurviewVMsProcessed("/outpatientCharges")
244 246
 	_, _, outpatientRegistrationPurviewFour := service.GetOtherAllGeneralPurviewVMsProcessed("/hospitalStation")
@@ -252,6 +254,8 @@ func (this *RoleAPIController) EditPurviewInitData() {
252 254
 	_, _, originDevicePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/device/manage")
253 255
 	_, _, originDataUploadPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/data/upload")
254 256
 
257
+	_, _, originDialysisanalysisPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/Dialysisanalysis")
258
+
255 259
 	_, _, originConsumablesPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/consumablesManagement")
256 260
 	_, _, originDrugsPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/drugs")
257 261
 	_, _, originSelfPreparedMedicinePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/selfPreparedMedicineIndex")
@@ -394,11 +398,15 @@ func (this *RoleAPIController) EditPurviewInitData() {
394 398
 	}
395 399
 
396 400
 	for _, item := range subOutpatientPurviewTreeViewModel {
401
+
397 402
 		if item.Name == "押金管理" {
398 403
 			item.Childs = append(item.Childs, subYajinPurviewTreeViewModel...)
399 404
 		}
400 405
 
401 406
 		if item.Name == "门诊挂号" {
407
+			for _, subitem := range subPurviewTreeViewModel {
408
+				fmt.Println(subitem.Name)
409
+			}
402 410
 			item.Childs = append(item.Childs, subPurviewTreeViewModel...)
403 411
 		}
404 412
 
@@ -664,6 +672,17 @@ func (this *RoleAPIController) EditPurviewInitData() {
664 672
 		subBedPrviewTreeViewModel = append(subBedPrviewTreeViewModel, temp)
665 673
 	}
666 674
 
675
+	subDialysisanalysisPrviewTreeViewModel := []*service.PurviewTreeViewModel{}
676
+	for _, item := range originDialysisanalysisPurview {
677
+		temp := &service.PurviewTreeViewModel{
678
+			ID:     item.Id,
679
+			PID:    item.Parentid,
680
+			Name:   item.Name,
681
+			Number: 1,
682
+		}
683
+		subDialysisanalysisPrviewTreeViewModel = append(subDialysisanalysisPrviewTreeViewModel, temp)
684
+	}
685
+
667 686
 	for _, item := range subDialysisPurviewTreeViewModel {
668 687
 		if item.Name == "透析记录" {
669 688
 			item.Childs = append(item.Childs, purviews_func...)
@@ -689,6 +708,9 @@ func (this *RoleAPIController) EditPurviewInitData() {
689 708
 		if item.Name == "质控上报" {
690 709
 			item.Childs = append(item.Childs, subDataUploadPurviewTreeViewModel...)
691 710
 		}
711
+		if item.Name == "专业质控" {
712
+			item.Childs = append(item.Childs, subDialysisanalysisPrviewTreeViewModel...)
713
+		}
692 714
 	}
693 715
 
694 716
 	for _, item := range subStockPurviewTreeViewModel {