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 41deb6a5
authored
Aug 09, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
0f431a53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
css/employee.css
html/merchant/detail.html
html/merchant/index.html
css/employee.css
View file @
41deb6a
...
...
@@ -60,4 +60,7 @@
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
.align-center
{
text-align
:
center
;
}
\ No newline at end of file
html/merchant/detail.html
View file @
41deb6a
...
...
@@ -383,7 +383,7 @@
// table搜索
$
(
'#tableSearch'
).
on
(
'click'
,
function
()
{
var
search
=
$
(
'#tableSearchForm'
).
val
()
search
=
$
(
'#tableSearchForm'
).
val
()
console
.
log
(
search
)
getSecondTable
(
subMerchantTable
,
{
keyword
:
search
})
})
...
...
html/merchant/index.html
View file @
41deb6a
...
...
@@ -43,7 +43,7 @@
<body>
<div
class=
"merchant"
id=
"app"
>
<main>
<main
class=
"bg-white"
>
<!-- <div id="tree"></div> -->
<div
class=
"context-block"
>
<div
class=
"search-block"
>
...
...
@@ -106,7 +106,7 @@
</form>
</div>
<table
class=
"layui-table"
id=
"merchantTable"
lay-filter=
"merchant-table-filter"
></table>
<div
id=
"merchantPage"
></div>
<div
id=
"merchantPage"
class=
"align-center"
></div>
</div>
</main>
</div>
...
...
@@ -154,20 +154,27 @@
pageNum
:
1
,
pageSize
:
10
}
var
lastPageLimit
=
''
var
pageOptions
=
{
elem
:
'merchantPage'
,
groups
:
5
,
layout
:
[
'
limit'
,
'
count'
,
'page'
,
'skip'
],
layout
:
[
'count'
,
'page'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
//obj包含了当前分页的所有参数,比如:
console
.
log
(
obj
.
curr
);
//得到当前页,以便向服务端请求对应页的数据。
console
.
log
(
obj
.
limit
);
//得到每页显示的条数
page
.
pageNum
=
obj
.
curr
page
.
pageSize
=
obj
.
limit
lastPageSize
=
obj
.
limit
// getTabelList()
//首次不执行
if
(
!
first
)
{
if
(
obj
.
limit
==
lastPageLimit
)
{
getTabelList
()
}
else
{
getTabelList
(
true
)
lastPageLimit
=
obj
.
limit
}
//do something
getTabelList
()
}
...
...
@@ -423,7 +430,7 @@
}
})
var
options
=
{
data
:
data
.
data
data
:
data
.
data
,
}
pageOptions
.
count
=
data
.
count
if
(
isResetPageNum
)
{
...
...
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