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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
108 additions
and
28 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
;
...
@@ -200,4 +211,23 @@ footer {
...
@@ -200,4 +211,23 @@ footer {
}
}
.m-t-md
{
.m-t-md
{
margin-top
:
20px
;
margin-top
:
20px
;
}
\ No newline at end of file
\ No newline at end of file
}
.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
This diff is collapsed.
Click to expand it.
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