|
@@ -26,6 +26,8 @@ export class SysConfigComponent implements OnInit {
|
26
|
26
|
promptInfo: string; //操作结果提示信息
|
27
|
27
|
promptModalShow: boolean; //操作提示框是否展示
|
28
|
28
|
coopBtns = {};
|
|
29
|
+ formatterSecond = (value: number) => `${value} 秒`;
|
|
30
|
+ parserSecond = (value: string) => value.replace(' 秒', '');
|
29
|
31
|
menu = JSON.parse(localStorage.getItem("menu")) || []; //菜单
|
30
|
32
|
constructor(
|
31
|
33
|
private mainService: MainService,
|
|
@@ -51,6 +53,7 @@ export class SysConfigComponent implements OnInit {
|
51
|
53
|
itsmIncident: [null, [Validators.required]],
|
52
|
54
|
workOrderSettings: [5, [Validators.required]],
|
53
|
55
|
nurseDeptSwitchTip: [0, [Validators.required]],
|
|
56
|
+ refreshNurseWorkOrderTime: [60, [Validators.required]],
|
54
|
57
|
updateTipsForNurses: [""],
|
55
|
58
|
systemName: [""],
|
56
|
59
|
largeScreenName: [""],
|
|
@@ -132,6 +135,7 @@ export class SysConfigComponent implements OnInit {
|
132
|
135
|
item.keyconfig === "itsmIncident" ||
|
133
|
136
|
item.keyconfig === "workOrderSettings" ||
|
134
|
137
|
item.keyconfig === "nurseDeptSwitchTip" ||
|
|
138
|
+ item.keyconfig === "refreshNurseWorkOrderTime" ||
|
135
|
139
|
item.keyconfig === "updateTipsForNurses" ||
|
136
|
140
|
item.keyconfig === "systemName" ||
|
137
|
141
|
item.keyconfig === "largeScreenName" ||
|
|
@@ -159,6 +163,8 @@ export class SysConfigComponent implements OnInit {
|
159
|
163
|
item.valueconfig = this.validateForm.controls.workOrderSettings.value;
|
160
|
164
|
} else if (item.keyconfig === "nurseDeptSwitchTip") {
|
161
|
165
|
item.valueconfig = this.validateForm.controls.nurseDeptSwitchTip.value;
|
|
166
|
+ } else if (item.keyconfig === "refreshNurseWorkOrderTime") {
|
|
167
|
+ item.valueconfig = this.validateForm.controls.refreshNurseWorkOrderTime.value;
|
162
|
168
|
} else if (item.keyconfig === "updateTipsForNurses") {
|
163
|
169
|
item.valueconfig = this.validateForm.controls.updateTipsForNurses.value;
|
164
|
170
|
} else if (item.keyconfig === "systemName") {
|
|
@@ -246,6 +252,9 @@ export class SysConfigComponent implements OnInit {
|
246
|
252
|
case "nurseDeptSwitchTip":
|
247
|
253
|
this.validateForm.controls.nurseDeptSwitchTip.setValue(c[1]);
|
248
|
254
|
break;
|
|
255
|
+ case "refreshNurseWorkOrderTime":
|
|
256
|
+ this.validateForm.controls.refreshNurseWorkOrderTime.setValue(c[1]);
|
|
257
|
+ break;
|
249
|
258
|
case "updateTipsForNurses":
|
250
|
259
|
this.validateForm.controls.updateTipsForNurses.setValue(c[1]);
|
251
|
260
|
break;
|