<!-- Generated template for the SearchSidebarComponent component -->

<div class="search-sidebar">
    <div class="all-address">
        <div>
            <p>隶属</p>
            <span (click)="selectArea(item)" *ngFor="let item of areaList"
                  [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '1'">
            <p>行业</p>
            <span (click)="selectIndustry(item)" *ngFor="let item of industryList"
                  [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '0'">
            <p>行业</p>
            <span (click)="selectLawIndustry(item)" *ngFor="let item of lawIndustryList"
                  [ngClass]="{'selectItem':lawIndustryObj?.code == item.code}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '1'">
            <p>经费</p>
            <span (click)="selectFunding(item)" *ngFor="let item of fundingList"
            [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '1'">
            <p>单位</p>
            <span (click)="selectCause(item)" *ngFor="let item of causeList"
                  [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '1'">
            <p>参公</p>
            <span (click)="selectMale(item)" *ngFor="let item of maleList"
                  [ngClass]="{'selectItem':maleObj?.code == item.code}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '0'">
            <p>规格</p>
            <span (click)="selectSpecifications(item)" *ngFor="let item of specificationsList"
                  [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '2'">
            <p>性质</p>
            <span (click)="selectNature(item)" *ngFor="let item of natureList"
                  [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
        <div *ngIf="unitType == '2'">
            <p>类别</p>
            <span (click)="selectCategory(item)" *ngFor="let item of categoryList"
                  [ngClass]="{'selectItem': item.active}">{{item.name}}</span>
        </div>
    </div>
    <div class="footer">
        <div tappable (click)="reset()">重置</div>
        <div tappable (click)="confirm()">确定</div>
    </div>
</div>
