csx 3 anni fa
parent
commit
84109cf219
1 ha cambiato i file con 17 aggiunte e 1 eliminazioni
  1. 17 1
      controllers/role_controller.go

+ 17 - 1
controllers/role_controller.go Vedi File

227
 	//透析管理
227
 	//透析管理
228
 	_, _, originDialysis := service.GetOtherAllGeneralPurviewVMsProcessed("/dialysis/manage")
228
 	_, _, originDialysis := service.GetOtherAllGeneralPurviewVMsProcessed("/dialysis/manage")
229
 	//库房管理
229
 	//库房管理
230
-	_, _, originStock := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/manage")
230
+	_, _, originStock := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/manange")
231
 	//配置管理
231
 	//配置管理
232
 	//_, _, orginConfig := service.GetOtherAllGeneralPurviewVMsProcessed("/config/manage")
232
 	//_, _, orginConfig := service.GetOtherAllGeneralPurviewVMsProcessed("/config/manage")
233
 
233
 
254
 	_, _, originSelfPreparedMedicinePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/selfPreparedMedicineIndex")
254
 	_, _, originSelfPreparedMedicinePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/selfPreparedMedicineIndex")
255
 	_, _, originOtherPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/other")
255
 	_, _, originOtherPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/other")
256
 
256
 
257
+	_, _, originCkPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/stock/warehousequery")
258
+
257
 	_, _, originIntegrationPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/integration/manage")
259
 	_, _, originIntegrationPurview := service.GetOtherAllGeneralPurviewVMsProcessed("/integration/manage")
258
 	_, _, originTemplatePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/template/manage")
260
 	_, _, originTemplatePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/template/manage")
259
 	_, _, originDictMedicinePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/dict/manage")
261
 	_, _, originDictMedicinePurview := service.GetOtherAllGeneralPurviewVMsProcessed("/dict/manage")
501
 		subOtherPurviewTreeViewModel = append(subOtherPurviewTreeViewModel, temp)
503
 		subOtherPurviewTreeViewModel = append(subOtherPurviewTreeViewModel, temp)
502
 	}
504
 	}
503
 
505
 
506
+	subCkPurviewTreeViewModel := []*service.PurviewTreeViewModel{}
507
+	for _, item := range originCkPurview {
508
+		temp := &service.PurviewTreeViewModel{
509
+			ID:     item.Id,
510
+			PID:    item.Parentid,
511
+			Name:   item.Name,
512
+			Number: 1,
513
+		}
514
+		subCkPurviewTreeViewModel = append(subCkPurviewTreeViewModel, temp)
515
+	}
516
+
504
 	subIntegrationPurviewTreeViewModel := []*service.PurviewTreeViewModel{}
517
 	subIntegrationPurviewTreeViewModel := []*service.PurviewTreeViewModel{}
505
 	for _, item := range originIntegrationPurview {
518
 	for _, item := range originIntegrationPurview {
506
 		temp := &service.PurviewTreeViewModel{
519
 		temp := &service.PurviewTreeViewModel{
585
 		if item.Name == "其他管理" {
598
 		if item.Name == "其他管理" {
586
 			item.Childs = append(item.Childs, subOtherPurviewTreeViewModel...)
599
 			item.Childs = append(item.Childs, subOtherPurviewTreeViewModel...)
587
 		}
600
 		}
601
+		if item.Name == "仓库管理" {
602
+			item.Childs = append(item.Childs, subCkPurviewTreeViewModel...)
603
+		}
588
 
604
 
589
 	}
605
 	}
590
 
606