resourceManage.html
4.35 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">资源管理</a></li>
<li>资源管理</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>资源管理</h4>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源位</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="text" id="inputResourceName" placeholder="请输入资源名" class="form-control" />
</div>
<div class="panel-col" id="category-content">
</div>
<div class="panel-col" id="platform-content">
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/resource/index/index" class="btn btn-info">全部</a>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom: 10px">
<input type="hidden" id="url" value="/runManage/subjectManage/subjectList"/>
<div id="content-list"></div>
</div>
</div>
<script type="text/template" id="search-category">
<select id="choose-category" title="" class="select2-offscreen brandBtn-group">
<option value="">选择分类</option>
[[each data as item index]]
<option value="[[item.sortId]]">[[item.sortName]]</option>
[[/each]]
</select>
</script>
<script type="text/template" id="search-platform">
<select id="choose-platform" title="" class="select2-offscreen brandBtn-group">
<option value="">选择平台</option>
[[each data as item index]]
<option value="[[item.platformId]]">[[item.platformName]]</option>
[[/each]]
</select>
</script>
<script type="text/template" id="edit-template">
<div class="modal-body" id="base-form">
<div class="form-group">
<label class="col-sm-2 control-label">名称</label>
<div class="col-sm-8">
<input type="text" id="name" name="name" value="[[name]]" class="form-control" required>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">分类</label>
<div class="col-sm-8">
<select id="sortId" name="sortId" style="width: 160px;" value="[[sortId]]" required>
<option value="">请选择资源分类</option>
[[each resSorts as item index]]
<option value="[[item.sortId]]">[[item.sortName]]</option>
[[/each]]
</select>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">平台</label>
<div class="col-sm-8">
<select id="platformId" name="platformId" style="width: 160px;" value="[[platformId]]" required>
<option value="">请选择资源平台</option>
[[each resPlatforms as item index]]
<option value="[[item.platformId]]">[[item.platformName]]</option>
[[/each]]
</select>
</div>
</div><!-- form-group -->
<div class="form-group" hidden id="code-content">
<label class="col-sm-2 control-label">位置码</label>
<div class="col-sm-8">
<input type="text" disabled="disabled" value="[[code]]" class="form-control">
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">匹配码</label>
<div class="col-sm-8">
<input type="text" id="matchCode" value="[[matchCode]]" class="form-control">
</div>
</div><!-- form-group -->
<input type="hidden" id="id" value="[[id]]">
</div>
</script>