|
@@ -14,6 +14,7 @@ export class SysConfigComponent implements OnInit {
|
14
|
14
|
loading1 = false; //查询信息的loading
|
15
|
15
|
loading2 = false; //保存信息的loading
|
16
|
16
|
loading3 = false; //刷新字典缓存信息的loading
|
|
17
|
+ loading4 = false; //护士默认角色
|
17
|
18
|
initConfig = []; //接口配置列表
|
18
|
19
|
config = []; //配置列表[key,value,id]
|
19
|
20
|
promptContent: string; //操作提示框提示信息
|
|
@@ -36,6 +37,7 @@ export class SysConfigComponent implements OnInit {
|
36
|
37
|
orderClearUserSwitch: [null, [Validators.required]],
|
37
|
38
|
deptQRCode: [null, [Validators.required]],
|
38
|
39
|
workOrderSettings: [5, [Validators.required]],
|
|
40
|
+ defaultRoleOfNurse: [null, [Validators.required]],
|
39
|
41
|
formUrl: [{ value: null, disabled: true }, [Validators.required]],
|
40
|
42
|
serviceUrl: [{ value: null, disabled: true }, [Validators.required]],
|
41
|
43
|
cachePath: [{ value: null, disabled: true }, [Validators.required]],
|
|
@@ -44,6 +46,22 @@ export class SysConfigComponent implements OnInit {
|
44
|
46
|
});
|
45
|
47
|
this.getDeptType();
|
46
|
48
|
this.coopBtns = this.tool.initCoopBtns(this.route);
|
|
49
|
+ this.getRoleList();
|
|
50
|
+ }
|
|
51
|
+ // 角色列表
|
|
52
|
+ roleList = [];
|
|
53
|
+ getRoleList() {
|
|
54
|
+ let postData = {
|
|
55
|
+ idx: 0,
|
|
56
|
+ sum: 10,
|
|
57
|
+ };
|
|
58
|
+ this.loading4 = true;
|
|
59
|
+ this.mainService
|
|
60
|
+ .getFetchDataList("user/data", "role", postData)
|
|
61
|
+ .subscribe((result) => {
|
|
62
|
+ this.loading4 = false;
|
|
63
|
+ this.roleList = result.list;
|
|
64
|
+ });
|
47
|
65
|
}
|
48
|
66
|
// 刷新字典缓存
|
49
|
67
|
refresh() {
|
|
@@ -76,6 +94,7 @@ export class SysConfigComponent implements OnInit {
|
76
|
94
|
item.keyconfig === "orderClearUserSwitch" ||
|
77
|
95
|
item.keyconfig === "deptQRCode" ||
|
78
|
96
|
item.keyconfig === "workOrderSettings" ||
|
|
97
|
+ item.keyconfig === "defaultRoleOfNurse" ||
|
79
|
98
|
item.keyconfig === "busiViewDeptId"
|
80
|
99
|
);
|
81
|
100
|
filterData.forEach((item) => {
|
|
@@ -90,6 +109,8 @@ export class SysConfigComponent implements OnInit {
|
90
|
109
|
item.valueconfig = this.validateForm.controls.deptQRCode.value;
|
91
|
110
|
} else if (item.keyconfig === "workOrderSettings") {
|
92
|
111
|
item.valueconfig = this.validateForm.controls.workOrderSettings.value;
|
|
112
|
+ } else if (item.keyconfig === "defaultRoleOfNurse") {
|
|
113
|
+ item.valueconfig = this.validateForm.controls.defaultRoleOfNurse.value;
|
93
|
114
|
} else if (item.keyconfig === "busiViewDeptId") {
|
94
|
115
|
item.valueconfig = this.validateForm.controls.busiViewDeptId.value;
|
95
|
116
|
}
|
|
@@ -155,6 +176,11 @@ export class SysConfigComponent implements OnInit {
|
155
|
176
|
case "workOrderSettings":
|
156
|
177
|
this.validateForm.controls.workOrderSettings.setValue(c[1]);
|
157
|
178
|
break;
|
|
179
|
+ case "defaultRoleOfNurse":
|
|
180
|
+ this.validateForm.controls.defaultRoleOfNurse.setValue(
|
|
181
|
+ c[1] - 0
|
|
182
|
+ );
|
|
183
|
+ break;
|
158
|
184
|
case "formUri":
|
159
|
185
|
this.validateForm.controls.formUrl.setValue(c[1]);
|
160
|
186
|
break;
|