Browse Source

列表是否显示追加人按钮

seimin 1 year ago
parent
commit
a2e9ba3b3c

+ 5 - 0
src/app/views/other-page-control/other-page-control.component.html

@@ -41,6 +41,11 @@
41
             </nz-option>
41
             </nz-option>
42
           </nz-select>
42
           </nz-select>
43
         </div>
43
         </div>
44
+        <!-- 列表是否显示追加人按钮 -->
45
+        <div class="display_flex align-items_center mb8" *ngIf="clinicalMultiplayerMode[0].checked">
46
+          <nz-form-label class="label">列表是否显示追加人按钮</nz-form-label>
47
+          <nz-checkbox-group [(ngModel)]="showAppendUser"></nz-checkbox-group>
48
+        </div>
44
       </div>
49
       </div>
45
       <!-- 自动建单配置 -->
50
       <!-- 自动建单配置 -->
46
       <div *ngIf="tabModalName=='automaticOrderCreation'">
51
       <div *ngIf="tabModalName=='automaticOrderCreation'">

+ 11 - 0
src/app/views/other-page-control/other-page-control.component.ts

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

+ 1 - 1
src/main.ts

@@ -8,7 +8,7 @@ if (environment.production) {
8
   enableProdMode();
8
   enableProdMode();
9
   if (window) {
9
   if (window) {
10
     window.console.log = function () { };
10
     window.console.log = function () { };
11
-    console.info('v2.4.37');
11
+    console.info('v2.4.38');
12
   }
12
   }
13
 }
13
 }
14
 platformBrowserDynamic().bootstrapModule(AppModule)
14
 platformBrowserDynamic().bootstrapModule(AppModule)