|
@@ -26,6 +26,8 @@ export class OtherPageControlComponent implements OnInit {
|
26
|
26
|
];
|
27
|
27
|
// 积分计算方式
|
28
|
28
|
clinicalIntegralCalculationMethod:any = null;
|
|
29
|
+ // 执行方式
|
|
30
|
+ clinicalExecutionMethod:any = null;
|
29
|
31
|
// 配置
|
30
|
32
|
configs:any = {};
|
31
|
33
|
searchTimerSubject = new Subject();
|
|
@@ -46,6 +48,7 @@ export class OtherPageControlComponent implements OnInit {
|
46
|
48
|
console.log(e);
|
47
|
49
|
if(!e[0].checked){
|
48
|
50
|
this.clinicalIntegralCalculationMethod = null;
|
|
51
|
+ this.clinicalExecutionMethod = null;
|
49
|
52
|
this.clinicalTaskIds = [];
|
50
|
53
|
this.showAppendUser[0].checked = 0;
|
51
|
54
|
}
|
|
@@ -114,6 +117,18 @@ export class OtherPageControlComponent implements OnInit {
|
114
|
117
|
.subscribe((data) => {
|
115
|
118
|
this.dLoading = false;
|
116
|
119
|
this.clinicalIntegralCalculationMethods = data;
|
|
120
|
+ this.getClinicalExecutionMethod();
|
|
121
|
+ });
|
|
122
|
+ }
|
|
123
|
+ //获取执行方式
|
|
124
|
+ clinicalExecutionMethods:any = [];
|
|
125
|
+ getClinicalExecutionMethod() {
|
|
126
|
+ this.dLoading = true;
|
|
127
|
+ this.otherPageControlService
|
|
128
|
+ .getDictionary("clinical_execution_method")
|
|
129
|
+ .subscribe((data) => {
|
|
130
|
+ this.dLoading = false;
|
|
131
|
+ this.clinicalExecutionMethods = data;
|
117
|
132
|
this.getConfig();
|
118
|
133
|
});
|
119
|
134
|
}
|
|
@@ -132,6 +147,10 @@ export class OtherPageControlComponent implements OnInit {
|
132
|
147
|
this.msg.create("warning", "请选择积分计算方式!");
|
133
|
148
|
return;
|
134
|
149
|
}
|
|
150
|
+ if(this.clinicalMultiplayerMode[0].checked && !this.clinicalExecutionMethod){
|
|
151
|
+ this.msg.create("warning", "请选择执行方式!");
|
|
152
|
+ return;
|
|
153
|
+ }
|
135
|
154
|
if(this.clinicalMultiplayerMode[0].checked && !this.clinicalTaskIds.length){
|
136
|
155
|
this.msg.create("warning", "请选择关联任务类型!");
|
137
|
156
|
return;
|
|
@@ -147,6 +166,7 @@ export class OtherPageControlComponent implements OnInit {
|
147
|
166
|
hosId: this.hosId,
|
148
|
167
|
clinicalMultiplayerMode: this.clinicalMultiplayerMode[0].checked ? 1 : 0,
|
149
|
168
|
clinicalIntegralCalculationMethod: this.clinicalMultiplayerMode[0].checked ? this.clinicalIntegralCalculationMethod : undefined,
|
|
169
|
+ clinicalExecutionMethod: this.clinicalMultiplayerMode[0].checked ? this.clinicalExecutionMethod : undefined,
|
150
|
170
|
showAppendUser: this.showAppendUser[0].checked ? 1 : 0,
|
151
|
171
|
};
|
152
|
172
|
this.btnLoading = true;
|
|
@@ -180,6 +200,7 @@ export class OtherPageControlComponent implements OnInit {
|
180
|
200
|
this.clinicalMultiplayerMode[0].checked = this.configs.clinicalMultiplayerMode == 1;
|
181
|
201
|
this.showAppendUser[0].checked = this.configs.showAppendUser == 1;
|
182
|
202
|
this.clinicalIntegralCalculationMethod = this.configs.clinicalIntegralCalculationMethod;
|
|
203
|
+ this.clinicalExecutionMethod = this.configs.clinicalExecutionMethod;
|
183
|
204
|
this.clinicalTaskIds = this.configs.clinicalTaskIds ? this.configs.clinicalTaskIds.split(',').map(v => +v) : [];
|
184
|
205
|
}
|
185
|
206
|
});
|