|
@@ -94,12 +94,10 @@ export class OrderManagementComponent implements OnInit {
|
94
|
94
|
this.pageIndex = 1;
|
95
|
95
|
this.association = null;
|
96
|
96
|
this.tasktype = null;
|
97
|
|
- if (!this.coopBtns.currentDept) {
|
98
|
|
- // 权限没有当前科室
|
|
97
|
+ if (!(this.coopBtns.currentDept && !this.coopBtns.allOrders)) {
|
99
|
98
|
this.department = null;
|
100
|
99
|
}
|
101
|
|
- if (!this.coopBtns.currentUser) {
|
102
|
|
- // 权限没有当前人员
|
|
100
|
+ if (!(this.coopBtns.currentUser && !this.coopBtns.allOrders)) {
|
103
|
101
|
this.worker = null;
|
104
|
102
|
}
|
105
|
103
|
this.gdcode = "";
|
|
@@ -190,6 +188,12 @@ export class OrderManagementComponent implements OnInit {
|
190
|
188
|
// 表格数据
|
191
|
189
|
loading1 = false;
|
192
|
190
|
getList() {
|
|
191
|
+ // 三个权限都没有,则不展示
|
|
192
|
+ if(!this.coopBtns.currentDept && !this.coopBtns.currentUser && !this.coopBtns.allOrders){
|
|
193
|
+ this.listOfData = [];
|
|
194
|
+ this.listLength = 0;
|
|
195
|
+ return;
|
|
196
|
+ }
|
193
|
197
|
var that = this;
|
194
|
198
|
let data: any = {
|
195
|
199
|
idx: that.pageIndex - 1,
|
|
@@ -282,12 +286,12 @@ export class OrderManagementComponent implements OnInit {
|
282
|
286
|
this.alldepart = data.list;
|
283
|
287
|
this.isLoading = false;
|
284
|
288
|
if (dept === undefined && this.coopBtns.currentDept) {
|
285
|
|
- // 初次渲染,权限有当前科室,则回显申请科室,并禁用
|
|
289
|
+ // 初次渲染,权限有当前科室工单,则回显申请科室
|
286
|
290
|
this.alldepart = [this.loginUser.dept];
|
287
|
291
|
this.department = this.loginUser.dept.id;
|
288
|
292
|
}
|
289
|
293
|
if (dept === undefined && this.coopBtns.currentUser) {
|
290
|
|
- // 初次渲染,权限有当前人员,则回显执行支助人员,并禁用
|
|
294
|
+ // 初次渲染,权限有当前人员工单,则回显执行支助人员
|
291
|
295
|
this.allWorker = [this.loginUser];
|
292
|
296
|
this.worker = this.loginUser.id;
|
293
|
297
|
}
|