authenList.vm
8.19 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
#set($page_title="认证管理列表") #set($crumbs="首页:/home,认证管理列表")
<div class="row">
<div class="col-xs-12">
<div class="table-header">认证管理</div>
<input type="hidden" id="staId" value="$!{param.userType}"/>
<input type="hidden" id="typId" value="$!{param.state}"/>
<div class="table-responsive">
<div id="sample-table-2_wrapper" class="dataTables_wrapper"
role="grid">
<div class="row">
<div class="col-sm-6" style="width: 100%">
<div id="sample-table-2_length" class="dataTables_length">
<form action="${webUtils.getLocalPath("memberCenterAuthen/list.do")}" id="form" method="post"
class="form-horizontal">
<input type="hidden" id="currPageId" name="currPage"
value=""/>
<input type="hidden" id="pageSizeId" name="pageSize"
value="$!{page.pageSize}"/>
<input type="hidden" id="currPageId" name="totalPage"
value="$!{page.totalPage}"/>
<input type="hidden" id="currPageId" name="totalSize"
value="$!{page.totalSize}"/>
<div class="row">
<div class="col-xs-4">
<div class="form-group">
<label class="col-xs-3 control-label text-right">申请编号: </label>
<div class="col-xs-9">
<input type="text" name="param[authenticationStateId]" class="form-control" value="$!{param.authenticationStateId}" >
</div>
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label class="col-xs-3 control-label text-right">申请人: </label>
<div class="col-xs-9">
<input type="text" name="param[realName]" class="form-control" value="$!{param.realName}" >
</div>
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label class="col-xs-3 control-label text-right">状态: </label>
<div class="col-xs-9">
<select name="param[state]" id="selectStateId" style="width:100%;">
#foreach($param in $!{statusMap.keySet()})
<option value="$param">${statusMap.get($param)}</option>
#end
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<div class="form-group">
<label class="col-xs-3 control-label text-right">申请时间: </label>
<div class="col-xs-4">
<input type="text" readonly="readonly" style="height:34px;" name="param[startSubmitTime]" value="$!{param.startSubmitTime}" onfocus="var d5222=$dp.$('d5222');WdatePicker({onpicked:function(){d5222.focus();},dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'d5222\')}'})" class="form-control form-time" id="d5221">
</div>
<div class="col-xs-4">
<input type="text" readonly="readonly" style="height:34px;" name="param[endSubmitTime]" value="$!{param.endSubmitTime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'d5221\')}'})" class="form-control form-time" id="d5222">
</div>
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label class="col-xs-3 control-label text-right">认证类型: </label>
<div class="col-xs-9">
<select name="param[userType]" id="selectId" style="width:100%;">
#foreach($param in $!{typeMap.keySet()})
<option value="$param">${typeMap.get($param)}</option>
#end
</select>
</div>
</div>
</div>
</div>
<div class="clearfix">
<span
class="pull-right"> <input type="submit" value="查询结果">
<input type="button" value="清空条件"
onclick="cleanForm('form');">
</span>
</div>
</div>
</form>
</div>
</div>
</div>
<table id="sample-table-2"
class="table table-striped table-bordered table-hover dataTable"
aria-describedby="sample-table-2_info">
<thead>
<tr role="row">
<th>申请编号</th>
<th>申请时间</th>
<th>申请人</th>
<th>认证类型</th>
<th>状态</th>
<th><i class="icon-time bigger-110 hidden-480"></i>操作</th>
</tr>
</thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
#foreach($obj in $!{page.list})
<tr>
<td>$!{obj.id}</td>
<td>
#if($!{obj.submitTime}!="")
$!{dateFormatUtils.format($!{obj.submitTime},"yyyy-MM-dd HH:mm:ss")}
#end
</td>
<td>$!{obj.realName}</td>
<td>
#if( $!{obj.userType}==1)
实名认证
#end
#if( $!{obj.userType}==2)
企业认证
#end
</td>
<td>
#if( $!{obj.state}==1)
审核通过
#end
#if( $!{obj.state}==2)
审核中
#end
#if( $!{obj.state}==3)
审核不通过
#end
</td>
<td>
#if( $!{obj.state}==2)
<a href="${webUtils.getLocalPath("
memberCenterAuthen/getAuthenInfo.do?authenId=$!{obj.id}&status=$!{obj.state}&userId=$!{obj.userId}&userType=$!{obj.userType} ")} " >审核</a>
#end
#if( $!{obj.state}==1)
<a href="${webUtils.getLocalPath("
memberCenterAuthen/getAuthenInfo.do?authenId=$!{obj.id}&status=$!{obj.state}&userId=$!{obj.userId}&userType=$!{obj.userType} ")} " >查看</a>
#end
#if( $!{obj.state}==3)
<a href="${webUtils.getLocalPath("
memberCenterAuthen/getAuthenInfo.do?authenId=$!{obj.id}&status=$!{obj.state}&userId=$!{obj.userId}&userType=$!{obj.userType} ")} " >查看</a>
#end
</td>
</tr>
#end
</tbody>
</table>
<div class="row">
<div class="col-sm-6">
</div>
<div class="col-sm-6">
<div class="dataTables_paginate paging_bootstrap">
<div class="pull-right">
#page($!{page.totalPage},$!{page.currPage})
</div>
<span class="pull-right" style="line-height: 33px;">
#set($tmpPage = $page.currPage + 1)
查询出$!{page.totalSize}条数据,共$!{page.totalPage}页,当前第$!{tmpPage}页
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script language="javascript" type="text/javascript" src="$!{webUtils.getCommonAssetsPath("common/date/WdatePicker.js")}"></script>
<script type="text/javascript">
$(function (){
var state = $("#staId").val();
if(state!=""){
$("#selectId option[value='"+state+"']").attr("selected",true);
}
var state = $("#typId").val();
if(state!=""){
$("#selectStateId option[value='"+state+"']").attr("selected",true);
}
})
function authen() {
$("#modal-form1").modal();
}
function cleanForm(id) {
var form = $("#" + id);
form.find("input[type=text]").each(function() {
var obj = $(this);
obj.val("");
});
form.find("select").each(function() {
var obj = $(this);
obj.val("0");
});
form.find("input[type=radio],input[type=checkbox]").each(function() {
$(this).attr("checked", false);
})
}
</script>
<script src="$!{webUtils.getAssetsPath("/js/diligrp.form.js")}"></script>