Browse Source

【用户管理】增加【跨部门选组】权限

seimin 4 months ago
parent
commit
096b9f300d

+ 3 - 0
src/app/services/tool.service.ts

@@ -289,6 +289,9 @@ export class ToolService {
289
 				case "strideLook":
289
 				case "strideLook":
290
 				  coopBtns.strideLook = true; //跨科查看
290
 				  coopBtns.strideLook = true; //跨科查看
291
 				  break;
291
 				  break;
292
+				case "crossHospital":
293
+				  coopBtns.crossHospital = true; //跨部门选组
294
+				  break;
292
       }
295
       }
293
     });
296
     });
294
     console.log(coopBtns);
297
     console.log(coopBtns);

+ 6 - 3
src/app/views/users-management/users-management.component.ts

@@ -257,8 +257,9 @@ export class UsersManagementComponent implements OnInit {
257
     };
257
     };
258
     let groupData = {
258
     let groupData = {
259
       group2: {
259
       group2: {
260
-        hospitals: hid,
260
+        hospitals: this.coopBtns.crossHospital ? undefined : hid,
261
         typeIds: '1,3',
261
         typeIds: '1,3',
262
+        crossHospital: this.coopBtns.crossHospital ? hid : undefined,
262
       },
263
       },
263
       idx: 0,
264
       idx: 0,
264
       sum: 9999,
265
       sum: 9999,
@@ -304,8 +305,9 @@ export class UsersManagementComponent implements OnInit {
304
     };
305
     };
305
     let groupData = {
306
     let groupData = {
306
       group2: {
307
       group2: {
307
-        hospitals: id,
308
+        hospitals: this.coopBtns.crossHospital ? undefined : id,
308
         typeIds: '1,3',
309
         typeIds: '1,3',
310
+        crossHospital: this.coopBtns.crossHospital ? id : undefined,
309
       },
311
       },
310
       idx: 0,
312
       idx: 0,
311
       sum: 9999,
313
       sum: 9999,
@@ -474,8 +476,9 @@ export class UsersManagementComponent implements OnInit {
474
     };
476
     };
475
     let groupData = {
477
     let groupData = {
476
       group2: {
478
       group2: {
477
-        hospitals: hid,
479
+        hospitals: this.coopBtns.crossHospital ? undefined : hid,
478
         typeIds: '1,3',
480
         typeIds: '1,3',
481
+        crossHospital: this.coopBtns.crossHospital ? hid : undefined,
479
       },
482
       },
480
       idx: 0,
483
       idx: 0,
481
       sum: 9999,
484
       sum: 9999,