carView.html 2.47 KB
<div class="inmodal" ng-show='flag'>
  <div class="modal-header">
    {{title}}
  </div>

  <div class="modal-body">
    <ui-select class="a_select pd0" name="carBrand" ng-model="$parent.model.carBrand" ng-change="changeCarBrand($select.selected.id)" theme="select2" style="width:150px;" ng-disabled="fromStateName=='policyList' && (apear=='edit' && status==1) || apear=='detail' || apear=='glUpdateDevice'">
      <ui-select-match placeholder="请选择">
        <span ng-bind="$select.selected.name"></span>
      </ui-select-match>
      <ui-select-choices repeat="item in (carBrandOptions | filter: $select.search) track by item.id">
        <span ng-bind="item.name"></span>
      </ui-select-choices>
    </ui-select>

    <ui-select class="a_select pd0" name="carSmallBrand" ng-model="$parent.model.carSmallBrand" ng-change="changeCarSmallBrand($select.selected.id)" theme="select2" style="width:150px;" ng-disabled="fromStateName=='policyList' && (apear=='edit' && status==1) || apear=='detail' || apear=='glUpdateDevice'">
      <ui-select-match placeholder="请选择">
        <span ng-bind="$select.selected.name"></span>
      </ui-select-match>
      <ui-select-choices repeat="item in (carSmallBrandOptions | filter: $select.search) track by item.id">
        <span ng-bind="item.name"></span>
      </ui-select-choices>
    </ui-select>

    <ui-select class="a_select pd0" name="carSeries" ng-model="$parent.model.carSeries" theme="select2" style="width:150px;" ng-disabled="fromStateName=='policyList' &&(apear=='edit' && status==1) || apear=='detail' || apear=='glUpdateDevice'">
      <ui-select-match placeholder="请选择">
        <span ng-bind="$select.selected.name"></span>
      </ui-select-match>
      <ui-select-choices repeat="item in (carSeriesOptions | filter: $select.search) track by item.id">
        <span ng-bind="item.name"></span>
      </ui-select-choices>
    </ui-select>

    <div class="modal-footer">
      <button type="button" class="btn btn-primary" ng-click="done()">确定</button>
      <button type="button" class="btn btn-default" ng-click="close()">取消</button>
    </div>
  </div>
</div>

<style>
  .modal-body {
    overflow-y: visible !important;
  }
  
  .modal-footer {
    border-top: none !important;
  }
  
  .modal-content {
    animation: showBox .5s forwards;
    box-shadow: none !important;
  }
  
  @keyframes showBox {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .3) !important;
    }
  }
</style>