Selaa lähdekoodia

列表是否显示追加人按钮

seimin 1 vuosi sitten
vanhempi
commit
a2e9ba3b3c

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

@@ -41,6 +41,11 @@
41 41
             </nz-option>
42 42
           </nz-select>
43 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 49
       </div>
45 50
       <!-- 自动建单配置 -->
46 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 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
         }

+ 1 - 1
src/main.ts

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