appServiceAccessDialog.html
4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<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>