maotao 3 nedēļas atpakaļ
vecāks
revīzija
9bcf8f1fc0

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

@@ -121,7 +121,7 @@
121 121
 						
122 122
 						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmDefaultCategory' && alarmAutoSwitch">
123 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 125
 							  <ng-container *ngFor="let option of malfunctionData">
126 126
 							    <nz-option *ngIf="!isLoading" [nzLabel]="option.mutiCategory" [nzValue]="option.id"></nz-option>
127 127
 							  </ng-container>
@@ -133,7 +133,7 @@
133 133
 						
134 134
 						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmUrgentRange' && alarmAutoSwitch">
135 135
 							<span>{{ item.desc }}:</span>
136
-							<nz-select class="w220px" nzShowSearch nzAllowClear nzMode="multiple"
136
+							<nz-select class="w350px" nzShowSearch nzAllowClear nzMode="multiple"
137 137
 								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
138 138
 							  <ng-container *ngFor="let option of alarmData">
139 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 8
 	.w220px{
9 9
 		width: 220px;
10 10
 	}
11
+	.w350px{
12
+		width: 350px;
13
+	}
11 14
 	.w100px{
12 15
 			width: 100px !important;
13 16
 		}

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

@@ -93,7 +93,7 @@
93 93
             <td>{{ data.alarmId || '-' }}</td>
94 94
             <td>{{ data.alarmSource || '-' }}</td>
95 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 97
 						<td>{{ data.alarmIp || '-' }}</td>
98 98
 						<td>{{ data.alarmUrgency?.name }}</td>
99 99
 						<td>{{ data.alarmActiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
@@ -101,7 +101,7 @@
101 101
             <td>
102 102
               <div class="coop">
103 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 105
 								<span *ngIf="coopBtns.add && (data.alarmStatus.value == 1 || data.alarmStatus.value == 3)" (click)="addOrder(data)">建单</span>
106 106
               </div>
107 107
             </td>

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

@@ -6,6 +6,19 @@
6 6
 	cursor: pointer;
7 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 22
 .save {
10 23
   position: fixed;
11 24
   left: 0;

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

@@ -276,6 +276,7 @@ export class EmergencyInfoComponent implements OnInit {
276 276
         this.btnLoading = false;
277 277
         this.hideModal();
278 278
         this.initForm();
279
+				this.operateType = 'no'
279 280
         if (data.status == 200) {
280 281
           this.showPromptModal(this.add ? "新增" : "编辑", true, "");
281 282
         } else {
@@ -295,6 +296,7 @@ export class EmergencyInfoComponent implements OnInit {
295 296
         this.btnLoading = false;
296 297
         this.hideModal();
297 298
         this.initForm();
299
+				this.operateType = 'no'
298 300
         if (data.status == 200) {
299 301
           this.showPromptModal(this.add ? "新增" : "编辑", true, "");
300 302
         } else {
@@ -340,6 +342,7 @@ export class EmergencyInfoComponent implements OnInit {
340 342
 	  .subscribe((data) => {
341 343
 	    this.btnLoading = false;
342 344
 	    this.hideOptModal();
345
+			this.operateType = 'no'
343 346
 	    if (data.status == 200) {
344 347
 	      this.showPromptModal("操作", true, "");
345 348
 	    } else {
@@ -366,6 +369,7 @@ export class EmergencyInfoComponent implements OnInit {
366 369
 	}
367 370
 	
368 371
 	// 确定发送消息
372
+	operateType:any;
369 373
 	confirmSend(){
370 374
 		let data = {
371 375
 			alarm:{
@@ -380,6 +384,7 @@ export class EmergencyInfoComponent implements OnInit {
380 384
 		    this.btnLoading = false;
381 385
 				this.sendModal = false;
382 386
 		    if (data.status == 200) {
387
+					this.operateType = 'send'
383 388
 		      this.showPromptModal("操作", true, "");
384 389
 		    } else {
385 390
 		      this.showPromptModal("操作", false, data.msg);
@@ -496,7 +501,11 @@ export class EmergencyInfoComponent implements OnInit {
496 501
     setTimeout(() => {
497 502
       this.promptModalShow = true;
498 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 3601
       idx: 0,
3602 3602
       sum: 20,
3603 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 3606
         dept: this.isRelatedDepartment ? { id: this.incidentModel.department } : undefined,
3606 3607
         name: keyWord,
3607 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 1261
 	    idx: 0,
1262 1262
 	    sum: 20,
1263 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 1266
 	      dept: this.isRelatedDepartment ? { id: this.incidentModel.department } : undefined,
1266 1267
 	      name: keyWord,
1267 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 94
 	operationUser:any;
95
+	allWorker:any = [];
95 96
 	getAllWorker(e?, those?) {
96 97
 	  let that = those || this;
97 98
 	  let postData = {