merchantSelect.html 2.82 KB
<div class="form-group" ng-show="filter.factoryMerchantList.length > 1">
    <label class="control-label" ng-repeat="userType in $root.allUserTypeList | filter:{confKey:5}">{{userType.confValue}}:</label>
    <ui-select ng-model="filter.factoryMerchantList.selected" theme="select2" on-select="pickFactoryMerchant($select.selected.merchantId)" style="width: 200px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.merchantName"></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.factoryMerchantList | filter: $select.search) track by $index">
            <span ng-bind="item.merchantName"></span>
        </ui-select-choices>
    </ui-select>
</div>
<div class="form-group" ng-show="filter.provinceMerchantList.length > 1">
    <label class="control-label" ng-repeat="userType in $root.allUserTypeList | filter:{confKey:4}">{{userType.confValue}}:</label>
    <ui-select ng-model="filter.provinceMerchantList.selected" theme="select2" on-select="pickProvinceMerchant($select.selected.merchantId)" style="width: 200px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.merchantName" ng-blur=""></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.provinceMerchantList | filter: $select.search) track by $index">
            <span ng-bind="item.merchantName"></span>
        </ui-select-choices>
    </ui-select>
</div>
<div class="form-group" ng-show="filter.cityMerchantList.length > 1">
    <label class="control-label" ng-repeat="userType in $root.allUserTypeList | filter:{confKey:3}">{{userType.confValue}}:</label>
    <ui-select ng-model="filter.cityMerchantList.selected" theme="select2" on-select="pickCityMerchant($select.selected.merchantId)" style="width: 200px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.merchantName"></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.cityMerchantList | filter: $select.search) track by $index">
            <span ng-bind="item.merchantName"></span>
        </ui-select-choices>
    </ui-select> 
</div>
<div class="form-group" ng-show="filter.merchantList.length > 1">
    <label class="control-label" ng-repeat="userType in $root.allUserTypeList | filter:{confKey:2}">{{userType.confValue}}:</label>
    <ui-select ng-model="filter.merchantList.selected" theme="select2" on-select="pickMerchant($select.selected.merchantId)" style="width: 200px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.merchantName"></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.merchantList | filter: $select.search) track by $index">
            <span ng-bind="item.merchantName"></span>
        </ui-select-choices>
    </ui-select>
</div>