|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<a class="netsale-position" href="javascript:;" name="position11"></a>
|
|
|
<div class="panel-btns" style="display: none;">
|
|
|
<a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
|
|
|
</div>
|
|
|
<h2 class="panel-title">(商品)品牌关联</h2>
|
|
|
</div>
|
|
|
<div id="brandWrap" class="panel-body">
|
|
|
<div class="form-group selected-brand" style="min-height: 60px;"></div>
|
|
|
<div id="brand-list" class="form-group brand-list"></div>
|
|
|
</div>
|
|
|
<div class="panel-footer">
|
|
|
<a id="saveBrandRelation" href="javascript:;" class="btn btn-primary">保存</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script type="text/template" id="brandTemp">
|
|
|
[[each map as item index]]
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-1" style="text-align:center;">[[index]]</div>
|
|
|
<div class="col-sm-10">
|
|
|
[[each item as a index]]
|
|
|
<div class="col-sm-2">
|
|
|
<label style="width:80%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;cursor: pointer;">
|
|
|
<input name="brandRelationList" type="checkbox" value="[[a.id]]" data-name="[[a.brandName]]">
|
|
|
[[a.brandName]]
|
|
|
</label>
|
|
|
</div>
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
</div>
|
|
|
[[/each]]
|
|
|
</script>
|
|
|
<script type="text/template" id="brandShowTemp">
|
|
|
<input id="brandRelationList" type="hidden" value="[[brandRelation]]" for="checkbox">
|
|
|
[[each brandRelationList as a index]]
|
|
|
<div class="col-sm-2" data-id="[[a.brandId]]">[[a.brandName]]</div>
|
|
|
[[/each]]
|
|
|
</script> |
|
|
\ No newline at end of file |