<div class="content" id="dictionary">
  <div class="contentInner">
    <div class="address">
      <overlay-scrollbars #osComponentRef1 class="contentBody">
        <div class="contentItem" [title]="item.name" [ngClass]="{ active: item.id === activeDictionaryKey.id }" (click)="clickDictionaryKey(item)" *ngFor="let item of hospitalTabList">{{ item.name }}</div>
      </overlay-scrollbars>
    </div>
    <div class="addressAssign" *ngIf="activeDictionaryKey.key=='asset_consumables'">
			<div class="hos-title">{{currentHospital.hosName}}</div>
      <overlay-scrollbars #osComponentRef2 class="contentBody2">
        <div class="contentBody">
          <div class="classList" *ngFor="let item of hospitalList">
      			<div class="mar-10" *ngIf="item.key!='itsmWorkHourQuoteDept' && 
						item.key!='itsmConsumableQuoteDept' &&
						item.key!='itsmEvaluationTime' &&
						item.key!='itsmUserEvaluation' && 
						item.key!='itsmCallbackEvaluation' && 
						item.key!='itsmUserBadEvaluationRange' && 
						item.key!='itsmCallbackBadEvaluationRange'
						&& !item.show && item.value2=='asset_consumables'">
      				<span>{{ item.desc }}：</span>
      				<nz-radio-group [(ngModel)]="item.value" (ngModelChange)="radioChange(item)">
      				  <label nz-radio nzValue="1">是</label>
      				  <label nz-radio nzValue="0">否</label>
      				</nz-radio-group>
      			</div>
            
      			<div class="mar-10" *ngIf="item.key=='itsmWorkHourQuoteDept' && itsmQuoteOtherDeptWorkHourType && item.value2=='asset_consumables'">
      				<span class="w100px">{{ item.desc }}：</span>
      				<nz-select class="w220px" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear
      					[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
      				  <ng-container *ngFor="let option of maintainDept">
      				    <nz-option [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
      				  </ng-container>
      				</nz-select>
      			</div>
      			
      			<div class="mar-10" *ngIf="item.key=='itsmConsumableQuoteDept' && itsmQuoteOtherDeptConsumableType && item.value2=='asset_consumables'">
      				<span class="w100px">{{ item.desc }}：</span>
      				<nz-select class="w220px" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear
      					[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
      				  <ng-container *ngFor="let option of maintainDept">
      				    <nz-option [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
      				  </ng-container>
      				</nz-select>
      			</div>
      			
          </div>
        </div>
      	<div class="contentBtns">
      	  <button nz-button nzType="primary" [nzLoading]="btnLoading" (click)="submitMessageForm()">确定</button>
      	</div>
      </overlay-scrollbars>
    </div>
		<div class="addressAssign" *ngIf="activeDictionaryKey.key=='evaluation'">
			<div class="hos-title">{{currentHospital.hosName}}</div>
		  <overlay-scrollbars #osComponentRef2 class="contentBody2">
		    <div class="contentBody">
		      <div class="classList" *ngFor="let item of hospitalList">
						
						<div class="mar-10" *ngIf="item.value2 == 'evaluation' && item.key=='itsmEvaluationTime'">
							<span class="w100px">{{ item.desc }}：</span>
							<input nz-input class="w220px" [(ngModel)]="item.value" [placeholder]="'请输入'+item.desc" />
						</div>
						
						<div class="mar-10" *ngIf="item.value2 == 'evaluation' && item.key=='itsmUserEvaluation'">
							<span class="w100px">{{ item.desc }}：</span>
							<nz-select class="w220px" nzShowSearch nzAllowClear
								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
							  <ng-container *ngFor="let option of dicData">
							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
							  </ng-container>
							</nz-select>
						</div>
						<div class="mar-10" *ngIf="item.value2 == 'evaluation' && item.key=='itsmCallbackEvaluation'">
							<span class="w100px">{{ item.desc }}：</span>
							<nz-select class="w220px" nzShowSearch nzAllowClear
								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
							  <ng-container *ngFor="let option of dicData">
							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
							  </ng-container>
							</nz-select>
						</div>
						<div class="mar-10" *ngIf="item.value2 == 'evaluation' && item.key=='itsmUserBadEvaluationRange'">
							<span class="w100px">{{ item.desc }}：</span>
							<nz-select class="w220px" nzMode="multiple" nzShowSearch nzAllowClear
								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
							  <ng-container *ngFor="let option of dicData">
							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
							  </ng-container>
							</nz-select>
						</div>
						<div class="mar-10" *ngIf="item.value2 == 'evaluation' && item.key=='itsmCallbackBadEvaluationRange'">
							<span class="w100px">{{ item.desc }}：</span>
							<nz-select class="w220px" nzMode="multiple" nzShowSearch nzAllowClear
								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
							  <ng-container *ngFor="let option of dicData">
							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
							  </ng-container>
							</nz-select>
						</div>
		      </div>
		    </div>
		  	<div class="contentBtns">
		  	  <button nz-button nzType="primary" [nzLoading]="btnLoading" (click)="submitMessageForm()">确定</button>
		  	</div>
		  </overlay-scrollbars>
		</div>
		<div class="addressAssign" *ngIf="activeDictionaryKey.key=='alarm'">
			<div class="hos-title">{{currentHospital.hosName}}</div>
		  <overlay-scrollbars #osComponentRef2 class="contentBody2">
		    <div class="contentBody">
		      <div class="classList" *ngFor="let item of hospitalList">
						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmAutoCreate'">
							<span>{{ item.desc }}：</span>
							<nz-radio-group [(ngModel)]="item.value" (ngModelChange)="radioAutoChange(item)">
							  <label nz-radio nzValue="1">是</label>
							  <label nz-radio nzValue="0">否</label>
							</nz-radio-group>
						</div>
						
						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmDefaultCategory' && alarmAutoSwitch">
							<span>{{ item.desc }}：</span>
							<nz-select class="w350px" nzShowSearch nzAllowClear [nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value" (nzOnSearch)="changeCommonInp('category', $event)">
							  <ng-container *ngFor="let option of malfunctionData">
							    <nz-option *ngIf="!isLoading" [nzLabel]="option.mutiCategory" [nzValue]="option.id"></nz-option>
							  </ng-container>
							  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
							    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
							  </nz-option>
							</nz-select>
						</div>
						
						<div class="mar-10" *ngIf="item.value2 == 'alarm' && item.key=='itsmAlarmUrgentRange' && alarmAutoSwitch">
							<span>{{ item.desc }}：</span>
							<nz-select class="w350px" nzShowSearch nzAllowClear nzMode="multiple"
								[nzPlaceHolder]="'请选择'+item.desc" [(ngModel)]="item.value">
							  <ng-container *ngFor="let option of alarmData">
							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
							  </ng-container>
							</nz-select>
						</div>
		      </div>
					<div class="mar-10 red" *ngIf="alarmAutoSwitch">
						默认获取告警状态为“告警中”进行自动建单
					</div>
		    </div>
		  	<div class="contentBtns">
		  	  <button nz-button nzType="primary" [nzLoading]="btnLoading" (click)="submitMessageForm()">确定</button>
		  	</div>
		  </overlay-scrollbars>
		</div>
  </div>
</div>

<!-- 操作成功/失败提示框 -->
<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  [info]="promptInfo">
</app-prompt-modal>
