appServiceAccessDialog.html 4.12 KB
<div class="inmodal">
    <div class="modal-header">
        <h4 class="modal-title">{{id ? '修改':'添加'}}</h4>
        <button type="button" class="close" data-dismiss="modal" ng-click="$dismiss()">
            <span aria-hidden="true">×</span> <span class="sr-only">Close</span>
        </button>
    </div>
    <div class="modal-body ofy-visible">
        <form class="form-horizontal form-fixed form-fixed-7" name="creatForm">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                	<div class="form-group">
                        <label class="col-sm-2 control-label required">所属应用:</label>
                        <div class="col-sm-8">
                            <!-- <select class="form-control a_select mt3" ng-model="appAccessId" style="width: 200px;" required>
								<option value="">全部</option>
								<option ng-repeat="item in appAccessList" value="{{item.id}}">{{item.appId}}</option>
							</select> -->
							<ui-select class="a_select pd0 " ng-model="info.appAccess" name="appAccess" theme="select2" style="width:500px;">
                           		<ui-select-match placeholder="全部">{{$select.selected.appId}}</ui-select-match>
                           		<ui-select-choices repeat="item in (appAccessList | filter: $select.search) track by item.id">
                            		<span ng-bind="item.appId"></span>
                          		</ui-select-choices>
                       		</ui-select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label required">授权服务:</label>
                        <div class="col-sm-8">
                            <!-- <select class="form-control a_select mt3" ng-model="serviceId" style="width: 200px;" required>
								<option value="">全部</option>
								<option ng-repeat="item in serviceList" value="{{item.id}}">{{item.appId}}</option>
							</select> -->
							<ui-select class="a_select pd0 " ng-model="info.service" name="service" theme="select2" style="width:500px;">
                           		<ui-select-match placeholder="全部">{{$select.selected.serviceName}}({{$select.selected.serviceMethod}})</ui-select-match>
                           		<ui-select-choices repeat="item in (serviceList | filter: $select.search) track by item.id">
                            		<span ng-bind="item.serviceName"></span>(<span ng-bind="item.serviceMethod"></span>)
                          		</ui-select-choices>
                       		</ui-select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label required">服务版本:</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" placeholder="服务版本" name="serviceVersion" maxlength="32" ng-model="info.serviceVersion" required>
                        </div>
                    </div>
                    <div class="form-group">
                    	<label class="col-sm-2 control-label">服务状态:</label>
                        <div class="col-sm-6">
                         	<ui-select class="a_select pd0 " ng-model="info.serviceStatus" name="serviceStatus" theme="select2" style="width:300px;">
                           		<ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
                           		<ui-select-choices repeat="item in serviceStatusList | filter:{name:$select.search}">
                            		<span ng-bind="item.name"></span>
                          		</ui-select-choices>
                       		</ui-select>
            			</div>
            		</div>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button ng-if="parentData.userType != 2" type="button" class="btn btn-primary" ng-click="ok()" ladda="submiting" data-style="expand-right">确认</button>
        <button type="button" class="btn btn-default" ng-click="$dismiss()">取消</button>
    </div>
</div>