fixed vacation rule issue

MOHEMM-Q3-DEV-LATEST
enadhilal 4 years ago
parent e7f39ba02f
commit 47b9209497

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

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

Loading…
Cancel
Save