seimin před 6 měsíci
rodič
revize
260e472ff6

+ 1 - 1
src/app/components/configurationCenter/configuration-category/configuration-category.component.ts

@@ -169,7 +169,7 @@ export class ConfigurationCategoryComponent implements OnInit {
169 169
       group2: {
170 170
         groupName: keyword,
171 171
         hospitals: this.validateConfigForm.value.dutyId,
172
-        type: 1,
172
+        type: 3,
173 173
       },
174 174
       idx: 0,
175 175
       sum: 10,

+ 2 - 2
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.html

@@ -41,8 +41,8 @@
41 41
                     </nz-input-group>
42 42
                   </nz-form-control>
43 43
                 </nz-form-item>
44
-                <i class="icon_transport transport-tag27fuben ml8" (click)="addField(i)"></i>
45
-                <i class="icon_transport transport-shanchu1 ml8" *ngIf="dictionaryList.length > 1 && !data.system" (click)="removeField(data, i)"></i>
44
+                <i class="icon_transport transport-tag27fuben ml8" (click)="addField(i)" *ngIf="!(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree')"></i>
45
+                <i class="icon_transport transport-shanchu1 ml8" *ngIf="dictionaryList.length > 1 && !data.system && !(activeDictionaryKey.key === 'incident_status' || activeDictionaryKey.key === 'incident_degree')" (click)="removeField(data, i)"></i>
46 46
               </div>
47 47
             </div>
48 48
           </form>

+ 5 - 1
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.ts

@@ -165,7 +165,11 @@ export class ConfigurationDictionaryComponent implements OnInit {
165 165
       this.dictionaryList.forEach((obj, i) => {
166 166
         for (const key in obj) {
167 167
           if(key !== 'id' && key !== 'system'){
168
-            this.validateDictionaryForm.addControl(key + '_' + obj.id, new FormControl({value: obj[key], disabled: key === 'value' ? obj.system : false}, [Validators.required]))
168
+            if(this.activeDictionaryKey.key === 'incident_status' || this.activeDictionaryKey.key === 'incident_degree'){
169
+              this.validateDictionaryForm.addControl(key + '_' + obj.id, new FormControl({value: obj[key], disabled: true}, [Validators.required]))
170
+            }else{
171
+              this.validateDictionaryForm.addControl(key + '_' + obj.id, new FormControl({value: obj[key], disabled: key === 'value' ? obj.system : false}, [Validators.required]))
172
+            }
169 173
           }
170 174
         }
171 175
       })

+ 7 - 2
src/app/views/fuwutai/fuwutai.component.html

@@ -2176,9 +2176,14 @@
2176 2176
                     <!-- 时间 -->
2177 2177
                     <div class="shijian">
2178 2178
                       <span class="left"></span>
2179
-                      <span class="right">
2180
-                        {{ data.acceptDate | date: "MM-dd HH:mm" }}
2179
+                      <span class="right" *ngIf="data.state.value === 'accept' || data.state.value === 'cancel' || data.state.value === 'reject';else notReq">
2180
+                        {{ data.startDate | date: "MM-dd HH:mm" }}
2181 2181
                       </span>
2182
+                      <ng-template #notReq>
2183
+                        <span class="right" *ngIf="data.state.value !== 'accept'">
2184
+                          {{ data.acceptDate | date: "MM-dd HH:mm" }}
2185
+                        </span>
2186
+                      </ng-template>
2182 2187
                     </div>
2183 2188
                   </div>
2184 2189
                 </div>