浏览代码

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

seimin 4 月之前
父节点
当前提交
096b9f300d
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. 3 0
      src/app/services/tool.service.ts
  2. 6 3
      src/app/views/users-management/users-management.component.ts

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

@@ -289,6 +289,9 @@ export class ToolService {
289 289
 				case "strideLook":
290 290
 				  coopBtns.strideLook = true; //跨科查看
291 291
 				  break;
292
+				case "crossHospital":
293
+				  coopBtns.crossHospital = true; //跨部门选组
294
+				  break;
292 295
       }
293 296
     });
294 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 258
     let groupData = {
259 259
       group2: {
260
-        hospitals: hid,
260
+        hospitals: this.coopBtns.crossHospital ? undefined : hid,
261 261
         typeIds: '1,3',
262
+        crossHospital: this.coopBtns.crossHospital ? hid : undefined,
262 263
       },
263 264
       idx: 0,
264 265
       sum: 9999,
@@ -304,8 +305,9 @@ export class UsersManagementComponent implements OnInit {
304 305
     };
305 306
     let groupData = {
306 307
       group2: {
307
-        hospitals: id,
308
+        hospitals: this.coopBtns.crossHospital ? undefined : id,
308 309
         typeIds: '1,3',
310
+        crossHospital: this.coopBtns.crossHospital ? id : undefined,
309 311
       },
310 312
       idx: 0,
311 313
       sum: 9999,
@@ -474,8 +476,9 @@ export class UsersManagementComponent implements OnInit {
474 476
     };
475 477
     let groupData = {
476 478
       group2: {
477
-        hospitals: hid,
479
+        hospitals: this.coopBtns.crossHospital ? undefined : hid,
478 480
         typeIds: '1,3',
481
+        crossHospital: this.coopBtns.crossHospital ? hid : undefined,
479 482
       },
480 483
       idx: 0,
481 484
       sum: 9999,