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
aed74a33
Commit
aed74a33
authored
May 03, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决个人资料页面部门的树形选择框偏移的问题
parent
b291c2cd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
10 deletions
+27
-10
src/main/webapp/WEB-INF/view/common/tags/input.tag
+6
-0
src/main/webapp/WEB-INF/view/system/user/user_add.html
+1
-1
src/main/webapp/WEB-INF/view/system/user/user_edit.html
+1
-1
src/main/webapp/WEB-INF/view/system/user/user_view.html
+3
-8
src/main/webapp/static/modular/system/user/user_info.js
+16
-0
No files found.
src/main/webapp/WEB-INF/view/common/tags/input.tag
View file @
aed74a33
...
...
@@ -36,6 +36,12 @@
@if(isNotEmpty(hidden)){
<input class="form-control" type="hidden" id="${hidden}" value="${hiddenValue!}">
@}
@if(isNotEmpty(selectFlag)){
<div id="${selectId}" style="display: none; position: absolute; z-index: 200;">
<ul id="${selectTreeId}" class="ztree tree-box" style="${selectStyle!}"></ul>
</div>
@}
</div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
...
...
src/main/webapp/WEB-INF/view/system/user/user_add.html
View file @
aed74a33
...
...
@@ -41,7 +41,7 @@
<!-- 这是部门选择的下拉框 -->
<div
id=
"menuContent"
class=
"menuContent"
style=
"display: none; position: absolute; z-index: 200;"
>
<ul
id=
"treeDemo"
class=
"ztree tree-box"
style=
"width: 2
14
px !important;"
></ul>
<ul
id=
"treeDemo"
class=
"ztree tree-box"
style=
"width: 2
49
px !important;"
></ul>
</div>
<div
class=
"row btn-group-m-t"
>
...
...
src/main/webapp/WEB-INF/view/system/user/user_edit.html
View file @
aed74a33
...
...
@@ -40,7 +40,7 @@
<!-- 这是部门选择的下拉框 -->
<div
id=
"menuContent"
class=
"menuContent"
style=
"display: none; position: absolute; z-index: 200;"
>
<ul
id=
"treeDemo"
class=
"ztree tree-box"
style=
"width: 2
14
px !important;"
></ul>
<ul
id=
"treeDemo"
class=
"ztree tree-box"
style=
"width: 2
49
px !important;"
></ul>
</div>
<div
class=
"row btn-group-m-t"
>
...
...
src/main/webapp/WEB-INF/view/system/user/user_view.html
View file @
aed74a33
...
...
@@ -37,20 +37,15 @@
<
#
input
id=
"citySel"
name=
"部门"
underline=
"true"
readonly=
"readonly"
value=
"${deptName}"
hidden=
"deptid"
hiddenValue=
"${user.deptid}"
clickFun=
"UserInfoDlg.showDeptSelectTree(); return false;"
style=
"background-color: #ffffff !important;"
/>
clickFun=
"UserInfoDlg.showInfoDeptSelectTree(); return false;"
style=
"background-color: #ffffff !important;"
selectFlag=
"true"
selectId=
"menuContent"
selectTreeId=
"treeDemo"
selectStyle=
"width:250px !important;"
/>
<
#
input
id=
"phone"
name=
"电话"
value=
"${user.phone}"
/>
</div>
</div>
</div>
<!-- 这是部门选择的下拉框 -->
<div
id=
"menuContent"
class=
"menuContent"
style=
"display: none; position: absolute; z-index: 200;"
>
<ul
id=
"treeDemo"
class=
"ztree tree-box"
style=
""
></ul>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"UserInfoDlg.editSubmit()"
/>
...
...
src/main/webapp/static/modular/system/user/user_info.js
View file @
aed74a33
...
...
@@ -70,6 +70,22 @@ UserInfoDlg.showDeptSelectTree = function() {
};
/**
* 显示用户详情部门选择的树
*
* @returns
*/
UserInfoDlg
.
showInfoDeptSelectTree
=
function
()
{
var
cityObj
=
$
(
"#citySel"
);
var
cityPosition
=
$
(
"#citySel"
).
position
();
$
(
"#menuContent"
).
css
({
left
:
cityPosition
.
left
+
"px"
,
top
:
cityPosition
.
top
+
cityObj
.
outerHeight
()
+
"px"
}).
slideDown
(
"fast"
);
$
(
"body"
).
bind
(
"mousedown"
,
onBodyDown
);
};
/**
* 隐藏部门选择的树
*/
UserInfoDlg
.
hideDeptSelectTree
=
function
()
{
...
...
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