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 d9996f13
authored
Jul 27, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户表格
1 parent
a0431127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
201 additions
and
80 deletions
html/merchant/index.html
html/merchant/index.html
View file @
d9996f1
<!DOCTYPE html>
<html
lang=
"zh"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<title>
商户管理
</title>
</head>
<body>
<div
id=
"app"
>
<main>
<div
id=
"tree"
></div>
</main>
</div>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
layui
.
use
([
'gtree'
,
'request'
,
'store'
],
function
()
{
var
tree
=
layui
.
gtree
var
request
=
layui
.
request
request
({
a
:
1
})
var
inst
=
tree
.
create
(
'tree'
,
[
{
id
:
1
,
label
:
'一级菜单'
,
children
:
[
{
id
:
4
,
label
:
'二级菜单'
,
children
:
[
{
id
:
9
,
label
:
'三级功能'
,
children
:
[
// value: '1,2,3|人保,平安,寿险'
{
id
:
111
,
label
:
'人保'
,
logo
:
'PR'
},
{
id
:
112
,
label
:
'平安'
,
logo
:
'PR'
},
{
id
:
113
,
label
:
'寿险'
,
logo
:
'PR'
}
]
},
{
id
:
10
,
label
:
'三级功能-1'
,
value
:
null
}
]
}
]
},
{
id
:
2
,
label
:
'一级菜单2'
,
children
:
[
{
id
:
5
,
label
:
'二级菜单2'
,
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
.search-block
{
padding
:
8px
8px
;
}
</style>
<title>
商户管理
</title>
</head>
<body>
<div
id=
"app"
>
<main>
<!-- <div id="tree"></div> -->
<div
class=
"search-block"
>
<form
class=
"layui-form"
>
<div
class=
"layui-inline"
>
<div
class=
"layui-input-inline"
style=
"width: 120px;"
>
<select
name=
"name"
id=
"searchName"
lay-filter=
"nameFilter"
></select>
</div>
<div
class=
"layui-input-inline"
style=
"width: 300px;"
>
<input
class=
"layui-input"
placeholder=
"请输入"
name=
"nameVal"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
客户状态:
</label>
<div
class=
"layui-input-inline"
>
<select
name=
"status"
>
<option
value=
""
>
请选择客户状态
</option>
<option
value=
"0"
>
正常
</option>
<option
value=
"1"
>
异常
</option>
</select>
</div>
</div>
<div
style=
"float: right;"
>
<div
class=
"layui-inline"
>
<input
class=
"layui-input"
placeholder=
"请输入客户名称"
>
</div>
<div
class=
"layui-inline"
>
<button
class=
"layui-btn"
>
查询
</button>
</div>
</div>
</form>
</div>
<table
class=
"layui-table"
id=
"merchantTable"
></table>
</main>
</div>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
layui
.
use
([
'gtree'
,
'request'
,
'store'
,
'table'
],
function
()
{
var
tree
=
layui
.
gtree
var
request
=
layui
.
request
var
table
=
layui
.
table
var
form
=
layui
.
form
var
$
=
layui
.
$
var
list
=
[{
id
:
'1'
,
RoleName
:
'账号登陆名'
},
{
id
:
'2'
,
RoleName
:
'手机号'
}]
var
select
=
$
(
"#searchName"
)
$
.
each
(
list
,
function
(
index
,
item
)
{
select
.
append
(
new
Option
(
item
.
RoleName
,
item
.
id
))
})
form
.
render
(
'select'
)
// request({
// a: 1
// })
var
inst
=
tree
.
create
(
'tree'
,
[{
id
:
1
,
label
:
'一级菜单'
,
children
:
[{
id
:
4
,
label
:
'二级菜单'
,
children
:
[{
id
:
9
,
label
:
'三级功能'
,
children
:
[
// value: '1,2,3|人保,平安,寿险'
{
id
:
11
4
,
id
:
11
1
,
label
:
'人保'
,
logo
:
'PR'
},
{
id
:
11
5
,
id
:
11
2
,
label
:
'平安'
,
logo
:
'PR'
},
{
id
:
11
6
,
id
:
11
3
,
label
:
'寿险'
,
logo
:
'PR'
}
]
},
{
id
:
6
,
label
:
'二级菜单2.0'
id
:
10
,
label
:
'三级功能-1'
,
value
:
null
}
]
}
])
}]
},
{
id
:
2
,
label
:
'一级菜单2'
,
children
:
[{
id
:
5
,
label
:
'二级菜单2'
,
children
:
[
// value: '1,2,3|人保,平安,寿险'
{
id
:
114
,
label
:
'人保'
,
logo
:
'PR'
},
{
id
:
115
,
label
:
'平安'
,
logo
:
'PR'
},
{
id
:
116
,
label
:
'寿险'
,
logo
:
'PR'
}
]
},
{
id
:
6
,
label
:
'二级菜单2.0'
}
]
}
])
var
merchantTable
=
table
.
render
({
elem
:
'#merchantTable'
,
page
:
true
,
// id: 'testReload',
cols
:
[
[{
field
:
''
,
title
:
'序号'
},
{
field
:
''
,
title
:
'商户号'
},
{
field
:
'merchantName'
,
title
:
'商户名称'
},
{
field
:
'accountTypeNames'
,
title
:
'账户类型'
},
{
field
:
'merchantLoginAccount'
,
title
:
'登录账户'
},
{
field
:
'merchantAccountLevel'
,
title
:
'账户等级'
},
{
field
:
''
,
title
:
'上级商户'
},
{
field
:
'status'
,
title
:
'账户状态'
},
{
field
:
''
,
title
:
'联系人'
},
{
field
:
''
,
title
:
'手机号'
},
{
field
:
''
,
title
:
'商户地址'
},
{
field
:
'expireDate'
,
title
:
'更新时间'
}]
]
})
</script>
</body>
</html>
getTabelList
(
merchantTable
)
// 获取
function
getTabelList
(
merchantTable
,
isResetPageNum
=
false
)
{
request
({
pageNum
:
merchantTable
.
config
.
index
,
pageSize
:
merchantTable
.
config
.
limit
,
method
:
'cn.com.glsx.merchants.menu.findMerchantByPage'
},
function
(
res
)
{
console
.
log
(
res
)
// table.reload('testReload', {
// data: res.data.data
// })
var
data
=
res
.
data
var
options
=
{
data
:
data
.
data
}
if
(
isResetPageNum
)
{
options
.
page
=
{
curr
:
1
}
}
merchantTable
.
reload
(
options
)
})
}
})
</script>
</body>
</html>
\ No newline at end of file
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