123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <div class="form-group condition-row" ng-repeat="devConditionItem in dialogData.devCondition"
- ng-click="conditionFun.editPanelLoaded()">
- <div class="col-sm-1">
- <label class=" control-label text-left ">条件{{$index+1}}</label>
- </div>
- <div class="col-sm-3">
- <label class="i-checks">
- <input type="checkbox"
- ng-true-value="true" ng-change="conditionFun.selectAllAgent(devConditionItem)"
- ng-false-value="false" ng-model="devConditionItem.selectAgentAll"><i></i>
- {{devConditionItem.selectAgentAll?'全不选':'全选'}}
- </label>
- <ui-select multiple ng-model="devConditionItem.selectAgents" theme="bootstrap"
- ng-click="conditionFun.initAgent(devConditionItem)"
- ng-change="conditionFun.changeAgent(devConditionItem)">
- <ui-select-match placeholder="选择代理商">{{$item.nickname}}</ui-select-match>
- <ui-select-choices
- repeat="item in (devConditionItem.agentList| filter: $select.search) ">
- <div ng-bind-html="item.nickname | highlight: $select.search"></div>
- </ui-select-choices>
- </ui-select>
- </div>
- <div class="col-sm-3">
- <label class="i-checks">
- <input type="checkbox"
- ng-true-value="true" ng-change="conditionFun.selectAllDealer(devConditionItem)"
- ng-false-value="false" ng-model="devConditionItem.selectDealerAll"><i></i>
- {{devConditionItem.selectDealerAll?'全不选':'全选'}}
- </label>
- <ui-select multiple ng-model="devConditionItem.selectDealers" theme="bootstrap"
- ng-change="conditionFun.changeDealer(devConditionItem)">
- <ui-select-match placeholder="选择经销商">{{$item.dealerName}}</ui-select-match>
- <ui-select-choices group-by="conditionFun.groupByAgent"
- repeat="dealer in (devConditionItem.dealerList| filter: $select.search) track by dealer.dealerId">
- <div ng-bind-html="dealer.dealerName | highlight: $select.search"></div>
- </ui-select-choices>
- </ui-select>
- </div>
- <div class="col-sm-3">
- <label class="i-checks">
- <input type="checkbox"
- ng-true-value="true" ng-change="conditionFun.selectAllGroup(devConditionItem)"
- ng-false-value="false" ng-model="devConditionItem.selectGroupAll"><i></i>
- {{devConditionItem.selectGroupAll?'全不选':'全选'}}
- </label>
- <ui-select multiple ng-model="devConditionItem.selectGroups" theme="bootstrap"
- ng-change="conditionFun.changeGroup(devConditionItem)">
- <ui-select-match placeholder="选择地址">{{$item.groupName}}</ui-select-match>
- <ui-select-choices group-by="conditionFun.groupByDealer"
- repeat="item in devConditionItem.groupList| filter: $select.search">
- <div ng-bind-html="item.groupName | highlight: $select.search"></div>
- </ui-select-choices>
- </ui-select>
- </div>
- <div class="col-sm-2">
- <button type="button" class="btn btn-danger"
- ng-click="conditionFun.deleteDevCondition($index)">删除
- </button>
- <button type="button" class="btn btn-dark" ng-click="conditionFun.addDevCondition()">添加
- </button>
- </div>
- </div>
|