| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <div class="row-fluid sortable">
- <div class="box span12">
- <div class="box-header well" data-original-title>
- <h2><i class="icon-user"></i> <a ng-click="load('weight')">已推广标准器件 </a> / <a ng-click="load('disweight')">搜索标准器件</a></h2>
- </div>
- <div class="box-content" ng-show="isDisable">
- <!-- ng-tableStart -->
- <div class="fullscreen" style="padding: 10px;overflow-y:auto;">
- <table ng-table="brandsTableParams" class="table table-condensed table-bordered table-striped">
- <tr ng-repeat="brand in $data">
- <td data-title="'器件名'" filter="{code: 'text'}">{{brand.code}}</td>
- <td data-title="'品牌名'" filter="{brand.nameCn: 'text'}">{{brand.brand.nameCn}}</td>
- <td data-title="'权重'" >{{brand.searchWeight}}</td>
- <td data-title="'操作'">
- <button ng-click="updateweight(brand)" class="btn btn-danger btn-sm" ng-if="!brand.searchWeight"><i class="fa fa-check"></i> 推广</button>
- <button ng-click="disweight(brand)" class="btn btn-danger btn-sm" ng-if="brand.searchWeight"><i class="fa fa-check"></i> 解除推广</button>
- <button ng-click="updateweight(brand)" class="btn btn-danger btn-sm" ng-if="brand.searchWeight"><i class="fa fa-check"></i> 修改推广</button>
- <input type="number" style="height: 30px" ng-model="brand.inputWeight"/>
- </td>
- </tr>
- </table>
- </div>
- <!-- ng-tableEnd -->
- </div>
- <div class="box-content" ng-show="!isDisable">
- <!-- ng-tableStart -->
- <div class="fullscreen" style="padding: 10px;overflow-y:auto;">
- <input style="height: 30px" ng-model="keyword"/>
- <button ng-click="searchComponent(keyword)" class="btn btn-danger btn-sm" ><i class="fa fa-check"></i> 搜索器件</button>
- <table ng-table="searchTableParams" class="table table-condensed table-bordered table-striped">
- <tr ng-repeat="brand in $data">
- <td data-title="'器件名'" filter="{code: 'text'}">{{brand.code}}</td>
- <td data-title="'品牌名'" filter="{brand.nameCn: 'text'}">{{brand.brand.nameCn}}</td>
- <td data-title="'权重'" >{{brand.searchWeight}}</td>
- <td data-title="'操作'">
- <button ng-click="updateweight(brand)" class="btn btn-danger btn-sm" ng-if="!brand.searchWeight"><i class="fa fa-check"></i> 推广</button>
- <button ng-click="disweight(brand)" class="btn btn-danger btn-sm" ng-if="brand.searchWeight"><i class="fa fa-check"></i> 解除推广</button>
- <button ng-click="updateweight(brand)" class="btn btn-danger btn-sm" ng-if="brand.searchWeight"><i class="fa fa-check"></i> 修改推广</button>
- <input type="number" style="height: 30px" ng-model="brand.inputWeight"/>
- </td>
- </tr>
- </table>
- </div>
- <!-- ng-tableEnd -->
- </div>
- </div><!--/span-->
- </div><!--/row-->
|