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>
<!DOCTYPE html>
<html
lang=
"zh"
>
<html
lang=
"zh"
>
<head>
<meta
charset=
"utf-8"
/>
<head>
<meta
content=
"IE=edge"
/>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<title>
商户管理
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
</head>
<style>
<body>
.search-block
{
<div
id=
"app"
>
padding
:
8px
8px
;
<main>
}
<div
id=
"tree"
></div>
</style>
</main>
<title>
商户管理
</title>
</div>
</head>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<body>
<script>
<div
id=
"app"
>
layui
.
use
([
'gtree'
,
'request'
,
'store'
],
function
()
{
<main>
var
tree
=
layui
.
gtree
<!-- <div id="tree"></div> -->
var
request
=
layui
.
request
<div
class=
"search-block"
>
request
({
a
:
1
})
<form
class=
"layui-form"
>
var
inst
=
tree
.
create
(
'tree'
,
[
<div
class=
"layui-inline"
>
{
<div
class=
"layui-input-inline"
style=
"width: 120px;"
>
id
:
1
,
<select
name=
"name"
id=
"searchName"
lay-filter=
"nameFilter"
></select>
label
:
'一级菜单'
,
</div>
children
:
[
<div
class=
"layui-input-inline"
style=
"width: 300px;"
>
{
<input
class=
"layui-input"
placeholder=
"请输入"
name=
"nameVal"
>
id
:
4
,
</div>
label
:
'二级菜单'
,
</div>
children
:
[
<div
class=
"layui-inline"
>
{
<label
class=
"layui-form-label"
>
客户状态:
</label>
id
:
9
,
<div
class=
"layui-input-inline"
>
label
:
'三级功能'
,
<select
name=
"status"
>
children
:
[
<option
value=
""
>
请选择客户状态
</option>
// value: '1,2,3|人保,平安,寿险'
<option
value=
"0"
>
正常
</option>
{
<option
value=
"1"
>
异常
</option>
id
:
111
,
</select>
label
:
'人保'
,
</div>
logo
:
'PR'
</div>
},
<div
style=
"float: right;"
>
{
<div
class=
"layui-inline"
>
id
:
112
,
<input
class=
"layui-input"
placeholder=
"请输入客户名称"
>
label
:
'平安'
,
</div>
logo
:
'PR'
<div
class=
"layui-inline"
>
},
<button
class=
"layui-btn"
>
查询
</button>
{
</div>
id
:
113
,
</div>
label
:
'寿险'
,
</form>
logo
:
'PR'
</div>
}
<table
class=
"layui-table"
id=
"merchantTable"
></table>
]
</main>
},
</div>
{
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
id
:
10
,
<script
src=
"/js/load.js"
></script>
label
:
'三级功能-1'
,
<script>
value
:
null
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
:
2
,
id
:
'1'
,
label
:
'一级菜单2'
,
RoleName
:
'账号登陆名'
children
:
[
},
{
{
id
:
'2'
,
id
:
5
,
RoleName
:
'手机号'
label
:
'二级菜单2'
,
}]
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
:
[
children
:
[
// value: '1,2,3|人保,平安,寿险'
// value: '1,2,3|人保,平安,寿险'
{
{
id
:
11
4
,
id
:
11
1
,
label
:
'人保'
,
label
:
'人保'
,
logo
:
'PR'
logo
:
'PR'
},
},
{
{
id
:
11
5
,
id
:
11
2
,
label
:
'平安'
,
label
:
'平安'
,
logo
:
'PR'
logo
:
'PR'
},
},
{
{
id
:
11
6
,
id
:
11
3
,
label
:
'寿险'
,
label
:
'寿险'
,
logo
:
'PR'
logo
:
'PR'
}
}
]
]
},
},
{
{
id
:
6
,
id
:
10
,
label
:
'二级菜单2.0'
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>
getTabelList
(
merchantTable
)
</html>
// 获取
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
\ 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