angular下拉

<div class="form-group col-sm-4">
<label class="col-sm-5 control-label"><b class="text-danger"></b> 合同状态: </label>
<div class="col-sm-7">
<input type="hidden" name="contractStatus" id="contractStatus" value="$!contractDTO.contractStatus"/>
<div class="demo-con" ng-controller="selectController">
<ui-select ng-model="data.cuyStatusId" theme="select2" search-enabled="false" style="width:100%">
<ui-select-match placeholder="请选择" style="padding:0 0 0 10px">{{$select.selected.name}}
<input type="hidden" name="conStatus" id="conStatus" value="{{$select.selected.id}}"/>
</ui-select-match>
<ui-select-choices repeat="item.id as item in cuyType | filter: $select.search" οnclick="getStuts();">
<div ng-bind-html="item.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
</div>
</div>
</div>

 

 

angular.module('SelectApp', ['ngSanitize','ui.select'])
.controller('selectController', ['$scope', function ($scope) {
$scope.data= {
cuyStatusId: '$!contractStatus'
} ;
// $scope.business = '';
$scope.cuyType = [
// {name: '起草中', id: '0'},
{name: '审批中', id: '1'},
{name: '待用印', id: '2'},
{name: '待归档', id: '3'},
{name: '已归档', id: '4'}
]
}]);
angular.bootstrap(document, ['SelectApp']);

转载于:https://www.cnblogs.com/whb11/p/6243953.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值