sysUserEdit.html
3.8 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
<!DOCTYPE html>
<html lang="zh">
#@header()
<body>
<div>
<ol class="breadcrumb">
<li>
<a>用户管理</a>
</li>
<li>
<a style="color: gray;">/</a>
</li>
<li>
<a href="#(contextPath)/sysUser/list">用户列表</a>
</li>
<li>
<a style="color: gray;">/</a>
</li>
<li class="active">新建用户</li>
</ol>
<div style="margin: 10px;">
<form action="#(contextPath)/sysUser/submit" method="post">
<table class="table table-bordered table-advance table-hover">
#if(sysUser)
<tr style="display: none;">
<td>用户ID</td>
<td>
<input class="form-control" type="text" name="sysUser.id"
value="#(sysUser.id)" />
</td>
</tr>
#end
<tr>
<td>姓名</td>
<td><input class="form-control" name="sysUser.realName" type="text"
value="#(sysUser.realName??)" required /></td>
</tr>
<tr>
<td>手机</td>
<td><input class="form-control" name="sysUser.phone" type="text"
value="#(sysUser.phone??)" min-lenght="11" />
</td>
</tr>
<tr>
<td>账号</td>
<td><input class="form-control" name="sysUser.username" type="text"
value="#(sysUser.username??)" required /></td>
</tr>
<tr>
<td>密码</td>
<td><input class="form-control" name="sysUser.password" type="text" required /></td>
</tr>
#if(roleList)
<tr>
<td>角色</td>
<td>
<select id="roleList" style="padding-top: 5px;width: 400px;" name="sysUser.roleLevel" onchange="onChangeRole()" required>
<option value="">请选择角色</option>
#for(role : roleList)
<option value="#(role.level)"
#if(sysUser.roleLevel??==role.level)
selected
#end
>
#(role.name)
</option>
#end
</select>
</td>
</tr>
#end
#if(agentList)
<tr id="agentTr" style="display:none;width: 100%;">
<td>公司</td>
<td>
<select id="agentList" style="padding-top: 5px;width: 400px;" name="sysUser.agentName" required>
<option value="">选择货代公司</option>
<option value="无">无货代公司</option>
#for(agent : agentList)
<option value="#(agent.nameCN)"
#if(sysUser.agentName??==agent.nameCN)
selected
#end
>
#(agent.nameCN)
</option>
#end
</select>
</td>
</tr>
#end
#if(stationList)
<tr id="stationTr" style="display:none; width: 100%;">
<td>货站</td>
<td>
<select id="stationList" style="padding-top: 5px;width: 400px;" name="sysUser.stationArea" required>
#for(station : stationList)
<option value="#(station.areaCode)"
#if(sysUser.stationArea??==station.areaCode)
selected
#end
>
#(station.name)
</option>
#end
</select>
</td>
</tr>
#end
<tr>
<td>备注</td>
<td><input class="form-control" name="sysUser.remark" type="text"
value="#(sysUser.remark??)" /></td>
</tr>
</table>
<label style="color: red; font-size: 16px;">#(errorMsg??)</label>
<div class="form-actions" style="margin-top: 10px; margin-left: 40%;">
<button class="btn btn-success" type="submit">保 存</button>
<a class="btn" type="button" href="#(contextPath)/sysUser/list" style="margin-left: 30px;">返 回</a>
</div>
</form>
</div>
</div>
<script type="text/javascript" src="#(contextPath)/js/sysUser.js?ver=#(version)"></script>
<script type="text/javascript">
onChangeRole();
#if(flag)
showTip('#(flag)');
#end
</script>
</body>
</html>