Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
c6d9949b
Commit
c6d9949b
authored
Apr 10, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理的所有按钮标签化
parent
dc3dbdd4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
28 deletions
+24
-28
src/main/webapp/WEB-INF/view/common/tags/button.tag
+2
-1
src/main/webapp/WEB-INF/view/common/tags/nbutton.tag
+4
-0
src/main/webapp/WEB-INF/view/system/user/user.html
+14
-27
src/main/webapp/static/modular/system/user/user.js
+4
-0
No files found.
src/main/webapp/WEB-INF/view/common/tags/button.tag
View file @
c6d9949b
<button type="button" class="btn btn-primary" onclick="${clickFun}"><i
<button type="button" class="btn btn-primary" onclick="${clickFun}"><i
class="fa
fa-search
"></i> ${name}
class="fa
${icon}
"></i> ${name}
</button>
</button>
\ No newline at end of file
src/main/webapp/WEB-INF/view/common/tags/nbutton.tag
0 → 100644
View file @
c6d9949b
<button type="button" class="btn btn-primary button-margin" onclick="${clickFun}"><i
class="fa ${icon}"></i> ${name}
</button>
\ No newline at end of file
src/main/webapp/WEB-INF/view/system/user/user.html
View file @
c6d9949b
...
@@ -16,40 +16,27 @@
...
@@ -16,40 +16,27 @@
<
#
NameCon
id=
"userName"
name=
"用户名称"
/>
<
#
NameCon
id=
"userName"
name=
"用户名称"
/>
</div>
</div>
<div
class=
"col-sm-3"
>
<div
class=
"col-sm-3"
>
<
#
button
name=
"搜索"
clickFun=
"clickS
earch()"
/>
<
#
button
name=
"搜索"
icon=
"fa-search"
clickFun=
"MgrUser.s
earch()"
/>
</div>
</div>
</div>
</div>
<!-- End 搜索条件 -->
<!-- End 搜索条件 -->
<div
class=
"hidden-xs"
id=
"managerTableToolbar"
role=
"group"
>
<div
class=
"hidden-xs"
id=
"managerTableToolbar"
role=
"group"
>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"MgrUser.openAddMgr()"
><i
<
#
button
name=
"添加"
icon=
"fa-plus"
clickFun=
"MgrUser.openAddMgr()"
/>
class=
"fa fa-plus"
></i>
添加
<
#
nbutton
name=
"修改"
icon=
"fa-edit"
clickFun=
"MgrUser.openChangeUser()"
/>
</button>
<
#
nbutton
name=
"删除"
icon=
"fa-remove"
clickFun=
"MgrUser.delMgrUser()"
/>
<button
type=
"button"
class=
"btn btn-primary button-margin"
<
#
nbutton
name=
"重置密码"
icon=
"fa-refresh"
clickFun=
"MgrUser.resetPwd()"
/>
onclick=
"MgrUser.openChangeUser()"
><i
class=
"fa fa-edit"
></i>
修改
<
#
nbutton
name=
"冻结"
icon=
"fa-warning"
clickFun=
"MgrUser.freezeAccount()"
/>
</button>
<
#
nbutton
name=
"解除冻结"
icon=
"fa-check-circle"
clickFun=
"MgrUser.unfreeze()"
/>
<button
type=
"button"
class=
"btn btn-primary button-margin"
onclick=
"MgrUser.delMgrUser()"
>
<
#
nbutton
name=
"角色分配"
icon=
"fa-user-secret"
clickFun=
"MgrUser.roleAssign()"
/>
<i
class=
"fa fa-remove"
></i>
删除
</button>
<button
type=
"button"
class=
"btn btn-primary button-margin"
onclick=
"MgrUser.resetPwd()"
><i
class=
"fa fa-refresh"
></i>
重置密码
</button>
<button
type=
"button"
class=
"btn btn-primary button-margin"
onclick=
"MgrUser.freezeAccount()"
><i
class=
"fa fa-warning"
></i>
冻结
</button>
<button
type=
"button"
class=
"btn btn-primary button-margin"
onclick=
"MgrUser.unfreeze()"
><i
class=
"fa fa-check-circle"
></i>
解除冻结
</button>
<button
type=
"button"
class=
"btn btn-primary button-margin"
onclick=
"MgrUser.roleAssign()"
>
<i
class=
"fa fa-user-secret"
></i>
角色分配
</button>
</div>
</div>
<table
id=
"managerTable"
data-mobile-responsive=
"true"
data-click-to-select=
"true"
>
<!-- 成员列表 -->
<table
id=
"managerTable"
data-mobile-responsive=
"true"
data-click-to-select=
"true"
>
<thead>
<thead>
<tr>
<tr>
<th
data-field=
"selectItem"
data-checkbox=
"true"
></th>
<th
data-field=
"selectItem"
data-checkbox=
"true"
></th>
</tr>
</tr>
</thead>
</thead>
</table>
</table>
<!-- End 成员列表 -->
<!-- End 成员列表 -->
...
...
src/main/webapp/static/modular/system/user/user.js
View file @
c6d9949b
...
@@ -169,6 +169,10 @@ MgrUser.resetPwd = function(){
...
@@ -169,6 +169,10 @@ MgrUser.resetPwd = function(){
}
}
};
};
MgrUser
.
search
=
function
(){
alert
(
"abcd"
);
}
$
(
function
(){
$
(
function
(){
var
defaultColunms
=
MgrUser
.
initColumn
();
var
defaultColunms
=
MgrUser
.
initColumn
();
var
table
=
new
BSTable
(
"managerTable"
,
"/mgr/list"
,
defaultColunms
);
var
table
=
new
BSTable
(
"managerTable"
,
"/mgr/list"
,
defaultColunms
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment