Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cab70ada
authored
Oct 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
a1fafebd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
26 deletions
css/img/zTreeStandard.png
html/employee/add.html
html/employee/detail.html
html/merchant/index.html
css/img/zTreeStandard.png
View file @
cab70ad
10.2 KB
|
W:
|
H:
10.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
html/employee/add.html
View file @
cab70ad
...
@@ -235,7 +235,11 @@
...
@@ -235,7 +235,11 @@
var
visibleMerchant
=
{}
var
visibleMerchant
=
{}
pwd
.
attr
(
'readonly'
,
false
)
pwd
.
attr
(
'readonly'
,
false
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
if
(
accountInfo
&&
!
id
)
{
// var accountInfo = {
// merchantAccountLevel: 1,
// merchantId: 81
// }
if
(
accountInfo
.
merchantAccountLevel
&&
!
id
)
{
$
(
'#btnGroup'
).
addClass
(
'show'
)
$
(
'#btnGroup'
).
addClass
(
'show'
)
}
}
// 判断是从商户过来还是员工
// 判断是从商户过来还是员工
...
...
html/employee/detail.html
View file @
cab70ad
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
.topmidwrap
,
.topmidwrap
,
.topbottomwrap
,
.topbottomwrap
,
.bottomwrap
{
.bottomwrap
{
margin
:
0
20px
0
;
/* margin: 0 20px 0; */
background-color
:
#fff
;
background-color
:
#fff
;
position
:
relative
;
position
:
relative
;
}
}
...
@@ -57,7 +57,14 @@
...
@@ -57,7 +57,14 @@
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<main
class=
"wrapper detail"
>
<main
class=
"wrapper detail"
>
<div
class=
"sub-bg-white"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<ul
class=
"layui-tab-title"
>
<li
lay-id=
"1"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"2"
>
账户权限
</li>
<li
lay-id=
"3"
>
修改记录
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"topwrap"
>
<div
class=
"topwrap"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title"
id=
"basic"
>
<h3
class=
"content-title"
id=
"basic"
>
...
@@ -104,6 +111,8 @@
...
@@ -104,6 +111,8 @@
<ul
id=
"visibleInferiorMerName"
></ul>
<ul
id=
"visibleInferiorMerName"
></ul>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"topbottomwrap"
>
<div
class=
"topbottomwrap"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"accountAuth"
>
账户权限
</h3>
<h3
class=
"content-title sub-title"
id=
"accountAuth"
>
账户权限
</h3>
...
@@ -112,6 +121,8 @@
...
@@ -112,6 +121,8 @@
<div
class=
"layui-tab-content"
></div>
<div
class=
"layui-tab-content"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 40px"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 40px"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3>
...
@@ -120,21 +131,25 @@
...
@@ -120,21 +131,25 @@
<div
id=
"recordPage"
class=
"align-center"
></div>
<div
id=
"recordPage"
class=
"align-center"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"sub-bg-white"
>
<div
class=
"footer-close"
>
<div
class=
"footer-close"
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"return"
>
关闭
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"return"
>
关闭
</button>
</div>
</div>
<div
class=
"fixed-btn"
>
<
!-- <
div class="fixed-btn">
<a id="basicBtn">基本信息</a>
<a id="basicBtn">基本信息</a>
<a id="accountAuthBtn">账户权限</a>
<a id="accountAuthBtn">账户权限</a>
<a id="recordBtn">修改记录</a>
<a id="recordBtn">修改记录</a>
</div>
</div>
-->
</div>
</div>
</main>
</main>
</div>
</div>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
<script>
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
/** 变量 */
/** 变量 */
var
$
=
layui
.
$
var
$
=
layui
.
$
var
request
=
layui
.
request
var
request
=
layui
.
request
...
@@ -156,7 +171,7 @@
...
@@ -156,7 +171,7 @@
elem
:
'recordPage'
,
elem
:
'recordPage'
,
groups
:
5
,
groups
:
5
,
layout
:
[
'count'
,
'page'
,
'skip'
],
layout
:
[
'count'
,
'page'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
jump
:
function
(
obj
,
first
)
{
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageSize
=
obj
.
limit
recordPage
.
pageSize
=
obj
.
limit
//首次不执行
//首次不执行
...
@@ -220,7 +235,7 @@
...
@@ -220,7 +235,7 @@
getRecordTable
()
getRecordTable
()
/** 触发事件 */
/** 触发事件 */
$
(
'#return'
).
on
(
'click'
,
function
()
{
$
(
'#return'
).
on
(
'click'
,
function
()
{
if
(
window
.
location
.
hash
)
{
if
(
window
.
location
.
hash
)
{
window
.
history
.
back
(
-
1
)
window
.
history
.
back
(
-
1
)
window
.
location
.
hash
=
''
window
.
location
.
hash
=
''
...
@@ -228,15 +243,15 @@
...
@@ -228,15 +243,15 @@
window
.
history
.
back
(
-
1
)
window
.
history
.
back
(
-
1
)
})
})
$
(
'#basicBtn'
).
on
(
'click'
,
function
()
{
$
(
'#basicBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#basic'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#basic'
).
scrollIntoView
(
true
)
})
})
$
(
'#accountAuthBtn'
).
on
(
'click'
,
function
()
{
$
(
'#accountAuthBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#accountAuth'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#accountAuth'
).
scrollIntoView
(
true
)
})
})
$
(
'#recordBtn'
).
on
(
'click'
,
function
()
{
$
(
'#recordBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#record'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#record'
).
scrollIntoView
(
true
)
})
})
...
@@ -244,7 +259,7 @@
...
@@ -244,7 +259,7 @@
// 查询员工详情
// 查询员工详情
function
getById
()
{
function
getById
()
{
var
params
=
{
id
:
id
,
method
:
'cn.com.glsx.merchants.staff.staffSearchRequest'
}
var
params
=
{
id
:
id
,
method
:
'cn.com.glsx.merchants.staff.staffSearchRequest'
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
for
(
var
i
in
basicArr
)
{
for
(
var
i
in
basicArr
)
{
...
@@ -252,7 +267,7 @@
...
@@ -252,7 +267,7 @@
}
}
if
(
employeeData
.
visibleInferiorMerName
)
{
if
(
employeeData
.
visibleInferiorMerName
)
{
var
visibleName
=
employeeData
.
visibleInferiorMerName
.
split
(
','
)
var
visibleName
=
employeeData
.
visibleInferiorMerName
.
split
(
','
)
$
.
each
(
visibleName
,
function
(
idx
,
i
)
{
$
.
each
(
visibleName
,
function
(
idx
,
i
)
{
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'</li>'
)
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'</li>'
)
})
})
}
}
...
@@ -260,7 +275,7 @@
...
@@ -260,7 +275,7 @@
var
authList
=
employeeData
.
accountTypeTreeResponseList
var
authList
=
employeeData
.
accountTypeTreeResponseList
console
.
log
(
authList
)
console
.
log
(
authList
)
if
(
authList
&&
authList
.
length
!=
0
)
{
if
(
authList
&&
authList
.
length
!=
0
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
treeTab
.
tabAdd
(
treeTab
.
tabAdd
(
{
{
title
:
item
.
accounttypeName
,
title
:
item
.
accounttypeName
,
...
@@ -271,7 +286,7 @@
...
@@ -271,7 +286,7 @@
var
menuData
=
[]
var
menuData
=
[]
// for (var i = 0; i < item.products)
// for (var i = 0; i < item.products)
if
(
item
.
products
&&
item
.
products
.
length
!=
0
)
{
if
(
item
.
products
&&
item
.
products
.
length
!=
0
)
{
$
.
each
(
item
.
products
,
function
(
idx
,
m
)
{
$
.
each
(
item
.
products
,
function
(
idx
,
m
)
{
treeTab
.
treeTabDetail
(
treeTab
.
treeTabDetail
(
{
{
name
:
m
.
productName
,
name
:
m
.
productName
,
...
@@ -302,9 +317,9 @@
...
@@ -302,9 +317,9 @@
pageSize
:
recordPage
.
pageSize
,
pageSize
:
recordPage
.
pageSize
,
method
:
'cn.com.glsx.merchants.menu.findLog'
method
:
'cn.com.glsx.merchants.menu.findLog'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
var
data
=
res
.
data
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
item
.
index
=
index
+
1
+
recordPage
.
pageSize
*
(
recordPage
.
pageNum
-
1
)
item
.
index
=
index
+
1
+
recordPage
.
pageSize
*
(
recordPage
.
pageNum
-
1
)
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
})
})
...
...
html/merchant/index.html
View file @
cab70ad
...
@@ -341,12 +341,14 @@
...
@@ -341,12 +341,14 @@
{
{
field
:
'merchantName'
,
field
:
'merchantName'
,
title
:
'商户名称'
,
title
:
'商户名称'
,
align
:
'center'
align
:
'center'
,
width
:
150
},
},
{
{
field
:
'
isRelevanc
e'
,
field
:
'
entmicroNam
e'
,
title
:
'关联的企业微信'
,
title
:
'关联的企业微信'
,
align
:
'center'
align
:
'center'
,
width
:
130
},
},
{
{
field
:
'accountTypeNames'
,
field
:
'accountTypeNames'
,
...
@@ -364,22 +366,26 @@
...
@@ -364,22 +366,26 @@
{
{
field
:
'accountLevelName'
,
field
:
'accountLevelName'
,
title
:
'账户等级'
,
title
:
'账户等级'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'parentMerchant'
,
field
:
'parentMerchant'
,
title
:
'上级商户'
,
title
:
'上级商户'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'statusName'
,
field
:
'statusName'
,
title
:
'账户状态'
,
title
:
'账户状态'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'merchantLegalPerson'
,
field
:
'merchantLegalPerson'
,
title
:
'联系人'
,
title
:
'联系人'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'merchantLegalPersonPhone'
,
field
:
'merchantLegalPersonPhone'
,
...
@@ -391,7 +397,7 @@
...
@@ -391,7 +397,7 @@
field
:
'updatedTime'
,
field
:
'updatedTime'
,
title
:
'更新时间'
,
title
:
'更新时间'
,
align
:
'center'
,
align
:
'center'
,
width
:
1
12
width
:
1
20
},
},
{
{
align
:
'left'
,
align
:
'left'
,
...
@@ -542,7 +548,7 @@
...
@@ -542,7 +548,7 @@
})
})
$
(
'#relevancyBtn'
).
on
(
'click'
,
function
()
{
$
(
'#relevancyBtn'
).
on
(
'click'
,
function
()
{
$messenger
.
emit
(
'route-to'
,
{
path
:
'settings/baseInfo/relevance'
,
params
:
{
a
:
111
}
})
$messenger
.
emit
(
'route-to'
,
{
path
:
'
/
settings/baseInfo/relevance'
,
params
:
{
a
:
111
}
})
})
})
// 搜索绑定事件
// 搜索绑定事件
form
.
on
(
'submit(searchSubmit)'
,
function
()
{
form
.
on
(
'submit(searchSubmit)'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment