标签:OLE repeat party val pre div lis art nbsp
使用 ng-selected 指令
<div class="form-group"> <label for="role" class="col-sm-2 control-label">所属权限</label> <div id="roleId" class="col-sm-10"> <select class="form-control input-sm" ng-model="doctor.role" name="role" id="role"> <option ng-repeat="role in roles" ng-selected="doctor.role.id == role.id" value="{{role}}" >{{role.roleName}}</option> </select> </div> </div>
<div class="form-group"> <label for="partyid" class="col-sm-2 control-label">所属公司</label> <div id="party" class="col-sm-10"> <select class="form-control input-sm" ng-model="doctor.orgCode" name="partyid" id="partyid"> <option value="1268" >CPI_330048_上电投资</option> <option ng-repeat="party in partyList" ng-selected="doctor.orgCode == party.partyid" value="{{party.partyid}}" >{{party.partyname}} </option> </select> </div> </div>
标签:OLE repeat party val pre div lis art nbsp
原文地址:https://www.cnblogs.com/zhou-pan/p/9510180.html