fixed vacation rule issue

enad-Q3
enadhilal 4 years ago
parent e7f39ba02f
commit 47b9209497

@ -33,9 +33,9 @@
<!-- //// okText='{{"general, ok" | translate }}' cancelText='{{"general, cancel" | translate }}'/// -->
<div class="selectItem">
<label class="label">{{'vacation-rule, itemType' | translate}}</label>
<select class="label-Select" [(ngModel)]="index" (ionChange)="vacationRuleSel($event)" required>
<option [selected]="x.ITEM_TYPE_DISPLAY_NAME" value="{{i}}"
*ngFor="let x of ruleTypeList; let i=index;">
<select class="label-Select" name="selectAbsenceType" #selectAbsenceType="ngModel" [(ngModel)]="index" (change)="vacationRuleSel()" required>
<option value="noType" selected hidden selected><p>{{ts.trPK('absenceList','selectType')}}</p></option>
<option value="{{i}}" *ngFor="let x of ruleTypeList; let i=index;">
{{x.ITEM_TYPE_DISPLAY_NAME}} </option>
</select>
</div>

@ -26,7 +26,7 @@ import { WorkListReplacementRollComponent } from 'src/app/notification/work-list
})
export class VacationTypeComponent implements OnInit {
ruleTypeList: any;
index: any;
index = 'noType';
vactionRuleSelected:any =-1;
notificationTypeSelected: number;
notification_list: any; ////
@ -165,13 +165,11 @@ export class VacationTypeComponent implements OnInit {
}
vacationRuleSel(event){
this.vactionRuleSelected=event.detail.value;
vacationRuleSel(){
this.vactionRuleSelected = this.index;
if(this.notificationTypeShow){
//this.notificationTypeShow = false
this.notificationTypeShow = false
this.notifTypeSelP2 = "*";
//this.part3show = false
}
if (this.createVacationRuleShow){
this.createVacationRuleShow = false
@ -180,11 +178,6 @@ export class VacationTypeComponent implements OnInit {
}
console.log("event: "+ event.detail.value);
}
notificationSel(event){

Loading…
Cancel
Save