|
@@ -122,6 +122,7 @@ export class HushijiandanComponent implements OnInit {
|
122
|
122
|
}
|
123
|
123
|
// 关闭倒计时
|
124
|
124
|
closeTime = 3;
|
|
125
|
+ closeTimeFlag;
|
125
|
126
|
timerCloseTime = null;
|
126
|
127
|
changeShow = true;
|
127
|
128
|
currentHospital; //当前院区
|
|
@@ -130,6 +131,7 @@ export class HushijiandanComponent implements OnInit {
|
130
|
131
|
logTime = 0; //综合日志自动刷新秒数
|
131
|
132
|
logTimeConst = 30; //综合日志自动刷新秒数
|
132
|
133
|
ngOnInit() {
|
|
134
|
+ this.getCloseTimeFlag();
|
133
|
135
|
this.currentUser = this.tool.getCurrentUserDept();
|
134
|
136
|
console.log(this.currentUser, this.tabSearchCont);
|
135
|
137
|
//防抖
|
|
@@ -140,7 +142,7 @@ export class HushijiandanComponent implements OnInit {
|
140
|
142
|
this.getDeptTaskType(v);
|
141
|
143
|
});
|
142
|
144
|
this.currentHospital = this.tool.getCurrentHospital();
|
143
|
|
- this.changeKs();
|
|
145
|
+
|
144
|
146
|
this.initLogin();
|
145
|
147
|
this.getDeptTaskType();
|
146
|
148
|
this.initForm();
|
|
@@ -210,6 +212,25 @@ export class HushijiandanComponent implements OnInit {
|
210
|
212
|
this.remarksEle.nativeElement.focus();
|
211
|
213
|
this.workOrderRemark += item;
|
212
|
214
|
}
|
|
215
|
+ // 获取护士端弹窗的配置
|
|
216
|
+ // (1) 当用户设置为正数时,用户必须查看此窗体指定秒数。
|
|
217
|
+ // (2) 当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。
|
|
218
|
+ // (3) 如果用户填写0则为无自动关闭和强制查看时间。
|
|
219
|
+ getCloseTimeFlag() {
|
|
220
|
+ let postData = {
|
|
221
|
+ idx: 0,
|
|
222
|
+ sum: 1,
|
|
223
|
+ systemConfiguration: { keyconfig: "nurseDeptSwitchTip" },
|
|
224
|
+ };
|
|
225
|
+ this.mainService
|
|
226
|
+ .getFetchDataList("simple/data", "systemConfiguration", postData)
|
|
227
|
+ .subscribe((result) => {
|
|
228
|
+ if (result.status == 200) {
|
|
229
|
+ this.closeTimeFlag = result.list[0].valueconfig - 0;
|
|
230
|
+ this.changeKs();
|
|
231
|
+ }
|
|
232
|
+ });
|
|
233
|
+ }
|
213
|
234
|
//获取综合日志
|
214
|
235
|
rLoading = false;
|
215
|
236
|
listDeptOrderRecords: any = [];
|
|
@@ -349,12 +370,20 @@ export class HushijiandanComponent implements OnInit {
|
349
|
370
|
// 切换科室
|
350
|
371
|
changeKs() {
|
351
|
372
|
this.hsPromptModalShow = true;
|
352
|
|
- this.closeTime = 3;
|
|
373
|
+ // (1) 当用户设置为正数时,用户必须查看此窗体指定秒数。
|
|
374
|
+ // (2) 当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。
|
|
375
|
+ // (3) 如果用户填写0则为无自动关闭和强制查看时间。
|
|
376
|
+ if (this.closeTimeFlag === 0) {
|
|
377
|
+ return;
|
|
378
|
+ }
|
|
379
|
+ this.closeTime = Math.abs(this.closeTimeFlag);
|
353
|
380
|
clearInterval(this.timerCloseTime);
|
354
|
381
|
this.timerCloseTime = setInterval(() => {
|
355
|
|
- this.closeTime = Math.max(--this.closeTime, -1);
|
356
|
|
- if (this.closeTime === -1) {
|
357
|
|
- this.hsPromptModalShow = false;
|
|
382
|
+ this.closeTime = Math.max(--this.closeTime, 0);
|
|
383
|
+ if (this.closeTime === 0) {
|
|
384
|
+ if (this.closeTimeFlag <= 0) {
|
|
385
|
+ this.hsPromptModalShow = false;
|
|
386
|
+ }
|
358
|
387
|
clearInterval(this.timerCloseTime);
|
359
|
388
|
}
|
360
|
389
|
}, 1000);
|