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 9fc2ce3c
authored
Oct 14, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
9a6d32ac
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
201 additions
and
61 deletions
css/employee.css
css/main.css
html/employee/add.html
html/employee/detail.html
html/employee/index.html
html/merchant/add.html
html/merchant/detail.html
html/merchant/index.html
html/role/detail.html
js/treeTab.js
css/employee.css
View file @
9fc2ce3
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
.add
.layui-input-block
,
.add
.layui-input-block
,
.detail
.layui-input-inline
{
.detail
.layui-input-inline
{
width
:
3
2
0px
;
width
:
3
6
0px
;
}
}
.add
.layui-form-label
,
.add
.layui-form-label
,
.detail
.layui-form-label
{
.detail
.layui-form-label
{
...
...
css/main.css
View file @
9fc2ce3
...
@@ -137,6 +137,17 @@ footer {
...
@@ -137,6 +137,17 @@ footer {
color
:
#37383A
;
color
:
#37383A
;
}
}
.clearfix
{
zoom
:
1
;
}
.clearfix
::after
{
content
:
""
;
display
:
block
;
height
:
0
;
clear
:
both
;
visibility
:
hidden
;
}
.pr-parent-ul
{
.pr-parent-ul
{
display
:
flex
;
display
:
flex
;
}
}
...
@@ -182,7 +193,7 @@ footer {
...
@@ -182,7 +193,7 @@ footer {
}
}
.layui-tab-content
{
.layui-tab-content
{
/* margin-top: 20px; */
/* margin-top: 20px; */
background-color
:
#fff
;
/* background-color: #fff; */
}
}
.layui-tab-content
.layui-form-pane
.layui-form-label
{
.layui-tab-content
.layui-form-pane
.layui-form-label
{
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -201,3 +212,22 @@ footer {
...
@@ -201,3 +212,22 @@ footer {
.m-t-md
{
.m-t-md
{
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.layui-tab-content
{
position
:
relative
;
}
.layui-no-data
{
width
:
100%
;
height
:
200px
;
}
.layui-no-data
.no-data
{
position
:
absolute
;
top
:
50%
;
width
:
100%
;
text-align
:
center
;
font-size
:
14px
;
line-height
:
22px
;
transform
:
translateY
(
-50%
);
}
.layui-no-data
.no-data
div
{
margin-top
:
12px
;
}
\ No newline at end of file
\ No newline at end of file
html/employee/add.html
View file @
9fc2ce3
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
<label
class=
"layui-form-label required"
>
可见商户:
</label>
<label
class=
"layui-form-label required"
>
可见商户:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<input
class=
"layui-input"
placeholder=
"可见商户"
id=
"searchMerchant"
/>
<input
class=
"layui-input"
placeholder=
"可见商户"
id=
"searchMerchant"
/>
<ul
id=
"visibleInferiorMerTree"
class=
"ztree wrapper-tree"
></ul>
<ul
id=
"visibleInferiorMerTree"
style=
"height: 200px; overflow-y: auto;"
class=
"ztree wrapper-tree"
></ul>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
// merchantAccountLevel: 1,
// merchantAccountLevel: 1,
// merchantId: 81
// merchantId: 81
// }
// }
if
(
accountInfo
.
merchantAccountLevel
&&
!
id
)
{
if
(
accountInfo
&&
!
id
)
{
$
(
'#btnGroup'
).
addClass
(
'show'
)
$
(
'#btnGroup'
).
addClass
(
'show'
)
}
}
// 判断是从商户过来还是员工
// 判断是从商户过来还是员工
...
@@ -479,7 +479,7 @@
...
@@ -479,7 +479,7 @@
$
(
'.img-add'
).
removeClass
(
'show'
)
$
(
'.img-add'
).
removeClass
(
'show'
)
$
(
'.img-add'
).
addClass
(
'hide'
)
$
(
'.img-add'
).
addClass
(
'hide'
)
}
}
var
visibleInferiorMerArr
=
data
.
visibleInferiorMer
.
split
(
','
)
var
visibleInferiorMerArr
=
data
.
visibleInferiorMer
?
data
.
visibleInferiorMer
.
split
(
','
)
:
[]
$
.
each
(
visibleInferiorMerArr
,
function
(
index
,
item
)
{
$
.
each
(
visibleInferiorMerArr
,
function
(
index
,
item
)
{
visibleInferiorMerArr
[
index
]
=
+
item
visibleInferiorMerArr
[
index
]
=
+
item
})
})
...
...
html/employee/detail.html
View file @
9fc2ce3
...
@@ -57,6 +57,32 @@
...
@@ -57,6 +57,32 @@
width
:
100%
;
width
:
100%
;
height
:
1px
;
height
:
1px
;
}
}
.layui-tab-content
{
position
:
relative
;
}
.layui-no-data
{
width
:
100%
;
height
:
500px
;
}
.layui-no-data
.no-data
{
position
:
absolute
;
top
:
50%
;
height
:
50%
;
width
:
100%
;
text-align
:
center
;
font-size
:
14px
;
line-height
:
22px
;
}
.layui-no-data
.no-data
div
{
margin-top
:
12px
;
}
.show
{
display
:
inline-block
;
}
.hide
{
display
:
none
;
}
</style>
</style>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
...
...
html/employee/index.html
View file @
9fc2ce3
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
{
field
:
'createdAccount'
,
title
:
'创建者'
,
align
:
'center'
},
{
field
:
'createdAccount'
,
title
:
'创建者'
,
align
:
'center'
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
112
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
112
},
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
var
colums
=
[
var
colums
=
[
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
{
field
:
'entmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'entmicroName'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
112
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
112
},
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
//创建table实例
//创建table实例
...
...
html/merchant/add.html
View file @
9fc2ce3
...
@@ -9,16 +9,7 @@
...
@@ -9,16 +9,7 @@
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
<style>
.clearfix
{
zoom
:
1
;
}
.clearfix
::after
{
content
:
""
;
display
:
block
;
height
:
0
;
clear
:
both
;
visibility
:
hidden
;
}
.edit-box
{
.edit-box
{
/* width: 1046px; */
/* width: 1046px; */
padding
:
20px
20px
;
padding
:
20px
20px
;
...
...
html/merchant/detail.html
View file @
9fc2ce3
...
@@ -113,13 +113,8 @@
...
@@ -113,13 +113,8 @@
margin-bottom
:
21px
;
margin-bottom
:
21px
;
}
}
.bg-detail
{
/* background-color: #fff !important; */
/* padding-bottom: 62px; */
}
.tabmutiple-content-wrap
{
.tabmutiple-content-wrap
{
background-color
:
#f
4f6fc
;
background-color
:
#f
ff
;
padding-top
:
10px
;
padding-top
:
10px
;
margin
:
0
20px
;
margin
:
0
20px
;
}
}
...
@@ -155,7 +150,7 @@
...
@@ -155,7 +150,7 @@
position
:
relative
;
position
:
relative
;
background-color
:
#fff
;
background-color
:
#fff
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
min-height
:
300px
;
/* min-height: 300px; */
}
}
.grayLine
{
.grayLine
{
position
:
absolute
;
position
:
absolute
;
...
@@ -165,7 +160,19 @@
...
@@ -165,7 +160,19 @@
width
:
100%
;
width
:
100%
;
height
:
1px
;
height
:
1px
;
}
}
.account-type-span
{
display
:
inline-block
;
/* width: 100px; */
/* height: 32px; */
padding
:
9px
15px
;
background-color
:
#f3f2ff
;
border-radius
:
4px
;
color
:
#5850ff
;
line-height
:
14px
;
}
.detail-content
{
padding
:
30px
0
;
}
</style>
</style>
</head>
</head>
...
@@ -178,47 +185,62 @@
...
@@ -178,47 +185,62 @@
<li
style=
"padding: 0;width: 90px;margin-right: 20px;"
>
上级/下级商户
</li>
<li
style=
"padding: 0;width: 90px;margin-right: 20px;"
>
上级/下级商户
</li>
<li
style=
"padding: 0;width: 90px;"
>
修改记录
</li>
<li
style=
"padding: 0;width: 90px;"
>
修改记录
</li>
</ul>
</ul>
<div
class=
"layui-tab-content m-t-md"
>
<div
class=
"layui-tab-content
clearfix
m-t-md"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"MsgWrap
"
get
>
<div
class=
"MsgWrap
layui-row"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title"
>
账户信息
</h3>
<h3
class=
"content-title"
>
账户信息
</h3>
<div
class=
"detail-content clearfix"
>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
登录账户名:
</label>
<label
class=
"layui-form-label"
>
登录账户名:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLoginAccount"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLoginAccount"
></div>
</div>
</div>
</div>
</div>
<!-- <div class="layui-form-item">
<label class="layui-form-label">账户类型:</label>
<div class="layui-input-block">
<div class="layui-form-mid layui-word-aux" id="accountTypeNames"></div>
</div>
</div>
</div> --
>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item mb21
"
>
<div
class=
"layui-form-item mb21 layui-col-md5
"
>
<label
class=
"layui-form-label"
>
账户等级:
</label>
<label
class=
"layui-form-label"
>
账户等级:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"accountLevelName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"accountLevelName"
></div>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="layui-form-item">
<label class="layui-form-label">账户类型:</label>
<div class="layui-input-block">
<div class="layui-form-mid layui-word-aux" id="accountTypeNames"></div>
</div>
</div> -->
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item mb21"
>
<div
class=
"layui-form-item mb21"
>
<label
class=
"layui-form-label"
>
开通模式:
</label>
<label
class=
"layui-form-label"
>
开通模式:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantModelName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantModelName"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item mb21"
>
<div
class=
"layui-form-item mb21"
>
<label
class=
"layui-form-label"
>
账户状态:
</label>
<label
class=
"layui-form-label"
>
账户状态:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"statusName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"statusName"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item mb21"
>
<div
class=
"layui-form-item mb21"
>
<label
class=
"layui-form-label"
>
关联企业微信名:
</label>
<label
class=
"layui-form-label"
>
关联企业微信名:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"entmicroName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"entmicroName"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
账户有效期:
</label>
<label
class=
"layui-form-label"
>
账户有效期:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
...
@@ -226,66 +248,100 @@
...
@@ -226,66 +248,100 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
账户类型:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-word-aux"
id=
"accountAuth"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"MsgWrap"
>
<div
class=
"MsgWrap"
>
<h3
class=
"content-title"
>
功能权限
</h3>
<h3
class=
"content-title"
>
功能权限
</h3>
<div
class=
"tabmutiple-content-wrap"
>
<div
class=
"tabmutiple-content-wrap
detail-content
"
>
<div
class=
"layui-tab tabmutiple-content"
lay-filter=
"roleAuth"
>
<div
class=
"layui-tab tabmutiple-content"
lay-filter=
"roleAuth"
>
<ul
class=
"layui-tab-title"
></ul>
<ul
class=
"layui-tab-title"
></ul>
<div
class=
"layui-tab-content"
></div>
<div
class=
"layui-tab-content"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"MsgWrap"
>
<div
class=
"MsgWrap
clearfix"
style=
"margin-bottom: 100px;
"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title"
>
企业信息
</h3>
<h3
class=
"content-title"
>
企业信息
</h3>
<div
class=
"detail-content clearfix"
>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户名称:
</label>
<label
class=
"layui-form-label"
>
商户名称:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantName"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
简称:
</label>
<label
class=
"layui-form-label"
>
简称:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantAbbreviation"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantAbbreviation"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户类型:
</label>
<label
class=
"layui-form-label"
>
商户类型:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantTypeName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantTypeName"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
id=
"orgTxt"
>
身份证:
</label>
<label
class=
"layui-form-label"
id=
"orgTxt"
>
身份证:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantOrgcode"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantOrgcode"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
地址:
</label>
<label
class=
"layui-form-label"
>
地址:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantAddress"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantAddress"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
联系人:
</label>
<label
class=
"layui-form-label"
>
联系人:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLegalPerson"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLegalPerson"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
联系电话:
</label>
<label
class=
"layui-form-label"
>
联系电话:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLegalPersonPhone"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLegalPersonPhone"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
营业范围:
</label>
<label
class=
"layui-form-label"
>
营业范围:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"businessScopName"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"businessScopName"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
...
@@ -294,6 +350,8 @@
...
@@ -294,6 +350,8 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"layui-tab-item"
>
<div
class=
"wrapper-merchant"
>
<div
class=
"wrapper-merchant"
>
<div
class=
"merchant-left"
>
<div
class=
"merchant-left"
>
...
@@ -352,7 +410,7 @@
...
@@ -352,7 +410,7 @@
<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'
,
'gtree'
,
'helper'
,
'table'
,
'form'
,
'treeTab'
,
'laypage'
],
function
()
{
layui
.
use
([
'request'
,
'gtree'
,
'helper'
,
'table'
,
'form'
,
'treeTab'
,
'laypage'
],
function
()
{
var
$
=
layui
.
$
var
$
=
layui
.
$
var
request
=
layui
.
request
var
request
=
layui
.
request
var
tree
=
layui
.
gtree
var
tree
=
layui
.
gtree
...
@@ -386,7 +444,7 @@
...
@@ -386,7 +444,7 @@
'entmicroName'
'entmicroName'
]
]
var
roleData
=
{}
var
roleData
=
{}
var
accountAuth
=
[]
var
recordPage
=
{
var
recordPage
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
...
@@ -395,7 +453,7 @@
...
@@ -395,7 +453,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
//首次不执行
//首次不执行
...
@@ -474,7 +532,7 @@
...
@@ -474,7 +532,7 @@
id
:
merchantId
,
id
:
merchantId
,
method
:
'cn.com.glsx.merchants.merchant.findMerchantDetail'
method
:
'cn.com.glsx.merchants.merchant.findMerchantDetail'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
// businessScopeCustomize
// businessScopeCustomize
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
roleData
=
helper
.
clone
(
true
,
res
.
data
)
roleData
=
helper
.
clone
(
true
,
res
.
data
)
...
@@ -487,6 +545,7 @@
...
@@ -487,6 +545,7 @@
if
(
roleData
.
merchantType
==
2
)
{
if
(
roleData
.
merchantType
==
2
)
{
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
}
}
console
.
log
(
roleData
)
// callback(roleData.accountTypes)
// callback(roleData.accountTypes)
}
}
})
})
...
@@ -498,11 +557,11 @@
...
@@ -498,11 +557,11 @@
method
:
'cn.com.glsx.merchants.merchant.findMenuFunTreeByMerId'
,
method
:
'cn.com.glsx.merchants.merchant.findMenuFunTreeByMerId'
,
id
:
merchantId
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
&&
res
.
data
&&
res
.
data
.
length
!=
0
)
{
if
(
res
.
code
==
'0'
&&
res
.
data
&&
res
.
data
.
length
!=
0
)
{
var
authList
=
res
.
data
var
authList
=
res
.
data
console
.
log
(
authList
)
console
.
log
(
authList
)
$
.
each
(
authList
,
function
(
index
,
item
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
treeTab
.
tabAdd
(
treeTab
.
tabAdd
(
{
{
title
:
item
.
accounttypeName
,
title
:
item
.
accounttypeName
,
...
@@ -510,9 +569,11 @@
...
@@ -510,9 +569,11 @@
},
},
true
true
)
)
accountAuth
.
push
(
item
.
accounttypeName
)
$
(
'#accountAuth'
).
append
(
'<span class="account-type-span">'
+
item
.
accounttypeName
+
'</span>'
)
var
menuData
=
[]
var
menuData
=
[]
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
,
...
@@ -526,7 +587,6 @@
...
@@ -526,7 +587,6 @@
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
item
.
products
[
0
].
productId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
item
.
products
[
0
].
productId
treeTab
.
tabChange
(
filterName
,
productId
)
treeTab
.
tabChange
(
filterName
,
productId
)
}
else
{
}
else
{
}
}
})
})
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
...
@@ -541,7 +601,7 @@
...
@@ -541,7 +601,7 @@
method
:
'cn.com.glsx.merchants.menu.findSubordinateRelationship'
,
method
:
'cn.com.glsx.merchants.menu.findSubordinateRelationship'
,
id
:
merchantId
id
:
merchantId
},
},
function
(
res
)
{
function
(
res
)
{
console
.
log
(
res
.
data
)
console
.
log
(
res
.
data
)
var
data
=
res
.
data
var
data
=
res
.
data
$
(
'#secondmerchantName'
).
text
(
data
.
merchantName
)
$
(
'#secondmerchantName'
).
text
(
data
.
merchantName
)
...
@@ -561,7 +621,7 @@
...
@@ -561,7 +621,7 @@
id
:
merchantId
,
id
:
merchantId
,
method
:
'cn.com.glsx.merchants.merchant.findMerchantTree'
method
:
'cn.com.glsx.merchants.merchant.findMerchantTree'
}
}
request
(
treeParams
,
function
(
res
)
{
request
(
treeParams
,
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
treeObj
=
tree
.
create
(
'merchantTree'
,
res
.
data
,
null
,
{
treeObj
=
tree
.
create
(
'merchantTree'
,
res
.
data
,
null
,
{
...
@@ -579,7 +639,7 @@
...
@@ -579,7 +639,7 @@
}
}
function
bindEvent
()
{
function
bindEvent
()
{
$
(
'#merchantBtn'
).
on
(
'click'
,
function
()
{
$
(
'#merchantBtn'
).
on
(
'click'
,
function
()
{
var
txt
=
$
(
'#treeInput'
).
val
()
var
txt
=
$
(
'#treeInput'
).
val
()
if
(
!
txt
)
{
if
(
!
txt
)
{
treeObj
.
showNodes
(
all_nodes
)
treeObj
.
showNodes
(
all_nodes
)
...
@@ -644,7 +704,7 @@
...
@@ -644,7 +704,7 @@
})
})
// table搜索
// table搜索
$
(
'#tableSearch'
).
on
(
'click'
,
function
()
{
$
(
'#tableSearch'
).
on
(
'click'
,
function
()
{
var
search
=
$
(
'#tableSearchForm'
).
val
()
var
search
=
$
(
'#tableSearchForm'
).
val
()
console
.
log
(
search
)
console
.
log
(
search
)
getSecondTable
({
getSecondTable
({
...
@@ -653,7 +713,7 @@
...
@@ -653,7 +713,7 @@
return
false
return
false
})
})
$
(
'#closeEl'
).
on
(
'click'
,
function
()
{
$
(
'#closeEl'
).
on
(
'click'
,
function
()
{
go
(
'merchant'
,
'index'
)
go
(
'merchant'
,
'index'
)
})
})
...
@@ -668,7 +728,7 @@
...
@@ -668,7 +728,7 @@
},
},
search
search
)
)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
// console.log(res)
// console.log(res)
var
data
=
res
.
data
var
data
=
res
.
data
var
options
=
{
var
options
=
{
...
@@ -688,9 +748,9 @@
...
@@ -688,9 +748,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 @
9fc2ce3
...
@@ -248,17 +248,20 @@
...
@@ -248,17 +248,20 @@
{
{
field
:
'merchantNo'
,
field
:
'merchantNo'
,
title
:
'商户号'
,
title
:
'商户号'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'merchantName'
,
field
:
'merchantName'
,
title
:
'商户名称'
,
title
:
'商户名称'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'merchantModelName'
,
field
:
'merchantModelName'
,
title
:
'模式'
,
title
:
'模式'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'accountTypeNames'
,
field
:
'accountTypeNames'
,
...
@@ -276,12 +279,14 @@
...
@@ -276,12 +279,14 @@
{
{
field
:
'accountLevelName'
,
field
:
'accountLevelName'
,
title
:
'账户等级'
,
title
:
'账户等级'
,
align
:
'center'
align
:
'center'
,
width
:
100
},
},
{
{
field
:
'parentMerchant'
,
field
:
'parentMerchant'
,
title
:
'上级商户'
,
title
:
'上级商户'
,
align
:
'center'
align
:
'center'
,
width
:
120
},
},
{
{
field
:
'statusName'
,
field
:
'statusName'
,
...
@@ -303,7 +308,7 @@
...
@@ -303,7 +308,7 @@
field
:
'entmicroName'
,
field
:
'entmicroName'
,
title
:
'关联的企业微信'
,
title
:
'关联的企业微信'
,
align
:
'center'
,
align
:
'center'
,
width
:
1
2
0
width
:
1
3
0
// }, {
// }, {
// field: 'merchantAddress',
// field: 'merchantAddress',
// title: '商户地址',
// title: '商户地址',
...
@@ -320,7 +325,7 @@
...
@@ -320,7 +325,7 @@
align
:
'left'
,
align
:
'left'
,
title
:
'操作'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
toolbar
:
'#merchantBtns'
,
width
:
15
0
,
width
:
22
0
,
fixed
:
'right'
fixed
:
'right'
// },
// },
// {
// {
...
@@ -403,7 +408,7 @@
...
@@ -403,7 +408,7 @@
align
:
'left'
,
align
:
'left'
,
title
:
'操作'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
toolbar
:
'#merchantBtns'
,
width
:
22
0
,
width
:
15
0
,
fixed
:
'right'
fixed
:
'right'
}
}
]
]
...
...
html/role/detail.html
View file @
9fc2ce3
...
@@ -50,6 +50,13 @@
...
@@ -50,6 +50,13 @@
background-color
:
#fff
;
background-color
:
#fff
;
height
:
100%
;
height
:
100%
;
}
}
.show
{
display
:
inline-block
;
}
.hide
{
display
:
none
;
}
</style>
</style>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
...
...
js/treeTab.js
View file @
9fc2ce3
...
@@ -7,6 +7,7 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
...
@@ -7,6 +7,7 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
var
templateData
=
{}
var
templateData
=
{}
var
treeData
=
{}
var
treeData
=
{}
var
selectEl
=
{}
var
selectEl
=
{}
var
$
=
layui
.
$
// 树相关的方法
// 树相关的方法
var
treeTab
=
{
var
treeTab
=
{
/**
/**
...
@@ -34,7 +35,17 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
...
@@ -34,7 +35,17 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
// 选项卡标题的lay-id属性值
// 选项卡标题的lay-id属性值
id
:
id
id
:
id
})
})
var
getTpl
=
'<div class="layui-tab layui-tab-card" lay-filter="treeTab{{d.id}}"><ul class="layui-tab-title"></ul> <div class="layui-tab-content"></div></div>'
var
getTpl
=
`<div class="layui-tab layui-tab-card" lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-no-data show" id="nodata
${
id
}
">
<div class="no-data">
<img src="../../css/img/no-data.png" />
<div>暂无数据</div>
</div>
</div>
</div>
</div>`
view
=
document
.
getElementById
(
'role'
+
id
)
view
=
document
.
getElementById
(
'role'
+
id
)
templateData
.
id
=
id
// 渲染模版的数据
templateData
.
id
=
id
// 渲染模版的数据
laytpl
(
getTpl
).
render
(
templateData
,
function
(
html
)
{
laytpl
(
getTpl
).
render
(
templateData
,
function
(
html
)
{
...
@@ -121,8 +132,10 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
...
@@ -121,8 +132,10 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
treeListData
=
i
.
merchantProTreeResponses
treeListData
=
i
.
merchantProTreeResponses
}
}
})
})
console
.
log
(
'treeListData'
,
treeListData
)
var
treedom
=
'tree_'
+
productId
var
treedom
=
'tree_'
+
productId
treeData
[
id
][
item
.
value
].
treeObj
=
tree
.
create
(
treedom
,
treeListData
,
{
chkDisabled
:
true
})
treeData
[
id
][
item
.
value
].
treeObj
=
tree
.
create
(
treedom
,
treeListData
,
{
chkDisabled
:
true
})
},
},
treeTabDetail
:
function
(
item
,
id
,
productTreeList
)
{
treeTabDetail
:
function
(
item
,
id
,
productTreeList
)
{
var
productId
=
'tab_'
+
id
+
'_'
+
item
.
value
var
productId
=
'tab_'
+
id
+
'_'
+
item
.
value
...
@@ -147,6 +160,14 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
...
@@ -147,6 +160,14 @@ layui.define(['element', 'laytpl', 'gtree', 'xmSelect'], function (exports) {
enable
:
false
enable
:
false
}
}
})
})
console
.
log
(
productTreeList
)
if
(
productTreeList
&&
productTreeList
.
length
!=
0
)
{
$
(
`#nodata
${
id
}
`
).
removeClass
(
'show'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'hide'
)
}
else
{
$
(
`#nodata
${
id
}
`
).
removeClass
(
'hide'
)
$
(
`#nodata
${
id
}
`
).
addClass
(
'show'
)
}
}
}
}
}
exports
(
'treeTab'
,
treeTab
)
exports
(
'treeTab'
,
treeTab
)
...
...
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