|
@@ -20,6 +20,10 @@ export class OtherPageControlComponent implements OnInit {
|
20
|
20
|
clinicalMultiplayerMode:any[] = [
|
21
|
21
|
{label:'是否开启',value: 0}
|
22
|
22
|
];
|
|
23
|
+ // 列表是否显示追加人按钮
|
|
24
|
+ showAppendUser:any[] = [
|
|
25
|
+ {label:'是否开启',value: 0}
|
|
26
|
+ ];
|
23
|
27
|
// 积分计算方式
|
24
|
28
|
clinicalIntegralCalculationMethod:any = null;
|
25
|
29
|
// 配置
|
|
@@ -43,6 +47,7 @@ export class OtherPageControlComponent implements OnInit {
|
43
|
47
|
if(!e[0].checked){
|
44
|
48
|
this.clinicalIntegralCalculationMethod = null;
|
45
|
49
|
this.clinicalTaskIds = [];
|
|
50
|
+ this.showAppendUser[0].checked = 0;
|
46
|
51
|
}
|
47
|
52
|
}
|
48
|
53
|
|
|
@@ -131,6 +136,10 @@ export class OtherPageControlComponent implements OnInit {
|
131
|
136
|
this.msg.create("warning", "请选择关联任务类型!");
|
132
|
137
|
return;
|
133
|
138
|
}
|
|
139
|
+ if(this.clinicalMultiplayerMode[0].checked && !this.showAppendUser[0].checked){
|
|
140
|
+ this.msg.create("warning", "请选择列表是否显示追加人按钮!");
|
|
141
|
+ return;
|
|
142
|
+ }
|
134
|
143
|
let postData:any = {
|
135
|
144
|
id: this.configs.id,
|
136
|
145
|
associationType: this.associationType.id,
|
|
@@ -138,6 +147,7 @@ export class OtherPageControlComponent implements OnInit {
|
138
|
147
|
hosId: this.hosId,
|
139
|
148
|
clinicalMultiplayerMode: this.clinicalMultiplayerMode[0].checked ? 1 : 0,
|
140
|
149
|
clinicalIntegralCalculationMethod: this.clinicalMultiplayerMode[0].checked ? this.clinicalIntegralCalculationMethod : undefined,
|
|
150
|
+ showAppendUser: this.showAppendUser[0].checked ? 1 : 0,
|
141
|
151
|
};
|
142
|
152
|
this.btnLoading = true;
|
143
|
153
|
this.otherPageControlService
|
|
@@ -168,6 +178,7 @@ export class OtherPageControlComponent implements OnInit {
|
168
|
178
|
if (result.status == 200) {
|
169
|
179
|
this.configs = result.list[0] || {};
|
170
|
180
|
this.clinicalMultiplayerMode[0].checked = this.configs.clinicalMultiplayerMode == 1;
|
|
181
|
+ this.showAppendUser[0].checked = this.configs.showAppendUser == 1;
|
171
|
182
|
this.clinicalIntegralCalculationMethod = this.configs.clinicalIntegralCalculationMethod;
|
172
|
183
|
this.clinicalTaskIds = this.configs.clinicalTaskIds ? this.configs.clinicalTaskIds.split(',').map(v => +v) : [];
|
173
|
184
|
}
|