maotao 3 viikkoa sitten
vanhempi
commit
9bcf8f1fc0

+ 2 - 2
src/app/components/configurationCenter/configuration-hospital/configuration-hospital.component.html

@@ -121,7 +121,7 @@
121
 						
121
 						
122
 						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmDefaultCategory' && alarmAutoSwitch">
122
 						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmDefaultCategory' && alarmAutoSwitch">
123
 							<span>{{ item.desc }}:</span>
123
 							<span>{{ item.desc }}:</span>
124
-							<nz-select class="w220px" nzShowSearch nzAllowClear [nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value" (nzOnSearch)="changeCommonInp('category', $event)">
124
+							<nz-select class="w350px" nzShowSearch nzAllowClear [nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value" (nzOnSearch)="changeCommonInp('category', $event)">
125
 							  <ng-container *ngFor="let option of malfunctionData">
125
 							  <ng-container *ngFor="let option of malfunctionData">
126
 							    <nz-option *ngIf="!isLoading" [nzLabel]="option.mutiCategory" [nzValue]="option.id"></nz-option>
126
 							    <nz-option *ngIf="!isLoading" [nzLabel]="option.mutiCategory" [nzValue]="option.id"></nz-option>
127
 							  </ng-container>
127
 							  </ng-container>
@@ -133,7 +133,7 @@
133
 						
133
 						
134
 						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmUrgentRange' && alarmAutoSwitch">
134
 						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmUrgentRange' && alarmAutoSwitch">
135
 							<span>{{ item.desc }}:</span>
135
 							<span>{{ item.desc }}:</span>
136
-							<nz-select class="w220px" nzShowSearch nzAllowClear nzMode="multiple"
136
+							<nz-select class="w350px" nzShowSearch nzAllowClear nzMode="multiple"
137
 								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
137
 								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
138
 							  <ng-container *ngFor="let option of alarmData">
138
 							  <ng-container *ngFor="let option of alarmData">
139
 							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
139
 							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>

+ 3 - 0
src/app/components/configurationCenter/configuration-hospital/configuration-hospital.component.less

@@ -8,6 +8,9 @@
8
 	.w220px{
8
 	.w220px{
9
 		width: 220px;
9
 		width: 220px;
10
 	}
10
 	}
11
+	.w350px{
12
+		width: 350px;
13
+	}
11
 	.w100px{
14
 	.w100px{
12
 			width: 100px !important;
15
 			width: 100px !important;
13
 		}
16
 		}

+ 2 - 2
src/app/views/emergency-info/emergency-info.component.html

@@ -93,7 +93,7 @@
93
             <td>{{ data.alarmId || '-' }}</td>
93
             <td>{{ data.alarmId || '-' }}</td>
94
             <td>{{ data.alarmSource || '-' }}</td>
94
             <td>{{ data.alarmSource || '-' }}</td>
95
             <td>{{ data.alarmContent || '-' }}</td>
95
             <td>{{ data.alarmContent || '-' }}</td>
96
-            <td>{{ data.alarmStatus?.name }}</td>
96
+            <td [ngClass]="{'red': data.alarmStatus?.value == 1, 'yellow ': data.alarmStatus?.value == 2, 'green ': data.alarmStatus?.value == 4}">{{ data.alarmStatus?.name }}</td>
97
 						<td>{{ data.alarmIp || '-' }}</td>
97
 						<td>{{ data.alarmIp || '-' }}</td>
98
 						<td>{{ data.alarmUrgency?.name }}</td>
98
 						<td>{{ data.alarmUrgency?.name }}</td>
99
 						<td>{{ data.alarmActiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
99
 						<td>{{ data.alarmActiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
@@ -101,7 +101,7 @@
101
             <td>
101
             <td>
102
               <div class="coop">
102
               <div class="coop">
103
                 <span *ngIf="coopBtns.view" (click)="look(data)">查看</span>
103
                 <span *ngIf="coopBtns.view" (click)="look(data)">查看</span>
104
-                <span *ngIf="coopBtns.send && (data.alarmStatus.value == 1 || data.alarmStatus.value == 3)" (click)="send(data)">消息发送</span>
104
+                <span *ngIf="coopBtns.send && data.alarmStatus.value == 1" (click)="send(data)">消息发送</span>
105
 								<span *ngIf="coopBtns.add && (data.alarmStatus.value == 1 || data.alarmStatus.value == 3)" (click)="addOrder(data)">建单</span>
105
 								<span *ngIf="coopBtns.add && (data.alarmStatus.value == 1 || data.alarmStatus.value == 3)" (click)="addOrder(data)">建单</span>
106
               </div>
106
               </div>
107
             </td>
107
             </td>

+ 13 - 0
src/app/views/emergency-info/emergency-info.component.less

@@ -6,6 +6,19 @@
6
 	cursor: pointer;
6
 	cursor: pointer;
7
 	text-decoration: underline;
7
 	text-decoration: underline;
8
 }
8
 }
9
+
10
+.red{
11
+	color: red !important;
12
+}
13
+
14
+.yellow{
15
+	color: #ffaa00 !important;
16
+}
17
+
18
+.green{
19
+	color: #49b586 !important;
20
+}
21
+
9
 .save {
22
 .save {
10
   position: fixed;
23
   position: fixed;
11
   left: 0;
24
   left: 0;

+ 10 - 1
src/app/views/emergency-info/emergency-info.component.ts

@@ -276,6 +276,7 @@ export class EmergencyInfoComponent implements OnInit {
276
         this.btnLoading = false;
276
         this.btnLoading = false;
277
         this.hideModal();
277
         this.hideModal();
278
         this.initForm();
278
         this.initForm();
279
+				this.operateType = 'no'
279
         if (data.status == 200) {
280
         if (data.status == 200) {
280
           this.showPromptModal(this.add ? "新增" : "编辑", true, "");
281
           this.showPromptModal(this.add ? "新增" : "编辑", true, "");
281
         } else {
282
         } else {
@@ -295,6 +296,7 @@ export class EmergencyInfoComponent implements OnInit {
295
         this.btnLoading = false;
296
         this.btnLoading = false;
296
         this.hideModal();
297
         this.hideModal();
297
         this.initForm();
298
         this.initForm();
299
+				this.operateType = 'no'
298
         if (data.status == 200) {
300
         if (data.status == 200) {
299
           this.showPromptModal(this.add ? "新增" : "编辑", true, "");
301
           this.showPromptModal(this.add ? "新增" : "编辑", true, "");
300
         } else {
302
         } else {
@@ -340,6 +342,7 @@ export class EmergencyInfoComponent implements OnInit {
340
 	  .subscribe((data) => {
342
 	  .subscribe((data) => {
341
 	    this.btnLoading = false;
343
 	    this.btnLoading = false;
342
 	    this.hideOptModal();
344
 	    this.hideOptModal();
345
+			this.operateType = 'no'
343
 	    if (data.status == 200) {
346
 	    if (data.status == 200) {
344
 	      this.showPromptModal("操作", true, "");
347
 	      this.showPromptModal("操作", true, "");
345
 	    } else {
348
 	    } else {
@@ -366,6 +369,7 @@ export class EmergencyInfoComponent implements OnInit {
366
 	}
369
 	}
367
 	
370
 	
368
 	// 确定发送消息
371
 	// 确定发送消息
372
+	operateType:any;
369
 	confirmSend(){
373
 	confirmSend(){
370
 		let data = {
374
 		let data = {
371
 			alarm:{
375
 			alarm:{
@@ -380,6 +384,7 @@ export class EmergencyInfoComponent implements OnInit {
380
 		    this.btnLoading = false;
384
 		    this.btnLoading = false;
381
 				this.sendModal = false;
385
 				this.sendModal = false;
382
 		    if (data.status == 200) {
386
 		    if (data.status == 200) {
387
+					this.operateType = 'send'
383
 		      this.showPromptModal("操作", true, "");
388
 		      this.showPromptModal("操作", true, "");
384
 		    } else {
389
 		    } else {
385
 		      this.showPromptModal("操作", false, data.msg);
390
 		      this.showPromptModal("操作", false, data.msg);
@@ -496,7 +501,11 @@ export class EmergencyInfoComponent implements OnInit {
496
     setTimeout(() => {
501
     setTimeout(() => {
497
       this.promptModalShow = true;
502
       this.promptModalShow = true;
498
     }, 100);
503
     }, 100);
499
-    this.getList(true);
504
+		if(this.operateType = 'send'){
505
+			this.getList();
506
+		}else{
507
+			this.getList(true);
508
+		}
500
   }
509
   }
501
 
510
 
502
   // 边输边搜节流阀
511
   // 边输边搜节流阀

+ 2 - 1
src/app/views/fuwutai/fuwutai.component.ts

@@ -3601,7 +3601,8 @@ export class FuwutaiComponent implements OnInit {
3601
       idx: 0,
3601
       idx: 0,
3602
       sum: 20,
3602
       sum: 20,
3603
       user: {
3603
       user: {
3604
-        hospital: this.isRelatedDepartment ? undefined : { id: this.incidentModel.hosId },
3604
+				statisticalHosId: this.isRelatedDepartment ? undefined :  this.incidentModel.hosId,
3605
+        // hospital: this.isRelatedDepartment ? undefined : { id: this.incidentModel.hosId },
3605
         dept: this.isRelatedDepartment ? { id: this.incidentModel.department } : undefined,
3606
         dept: this.isRelatedDepartment ? { id: this.incidentModel.department } : undefined,
3606
         name: keyWord,
3607
         name: keyWord,
3607
 				// phone: this.incidentModel.incomingPhone || undefined
3608
 				// phone: this.incidentModel.incomingPhone || undefined

+ 2 - 1
src/app/views/main/main.component.ts

@@ -1261,7 +1261,8 @@ export class MainComponent implements OnInit, OnDestroy {
1261
 	    idx: 0,
1261
 	    idx: 0,
1262
 	    sum: 20,
1262
 	    sum: 20,
1263
 	    user: {
1263
 	    user: {
1264
-	      hospital: this.isRelatedDepartment ? undefined : { id: this.incidentModel.hosId },
1264
+				statisticalHosId: this.isRelatedDepartment ? undefined :  this.incidentModel.hosId,
1265
+	      // hospital: this.isRelatedDepartment ? undefined : { id: this.incidentModel.hosId },
1265
 	      dept: this.isRelatedDepartment ? { id: this.incidentModel.department } : undefined,
1266
 	      dept: this.isRelatedDepartment ? { id: this.incidentModel.department } : undefined,
1266
 	      name: keyWord,
1267
 	      name: keyWord,
1267
 	      // simpleQuery: true,
1268
 	      // simpleQuery: true,

+ 1 - 0
src/app/views/work-log/work-log.component.ts

@@ -92,6 +92,7 @@ export class WorkLogComponent implements OnInit {
92
 	
92
 	
93
 	// 获取操作人
93
 	// 获取操作人
94
 	operationUser:any;
94
 	operationUser:any;
95
+	allWorker:any = [];
95
 	getAllWorker(e?, those?) {
96
 	getAllWorker(e?, those?) {
96
 	  let that = those || this;
97
 	  let that = those || this;
97
 	  let postData = {
98
 	  let postData = {