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 e9318ce0
authored
Sep 03, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决商户固定列错位问题,调整列名宽度
1 parent
9b05ed52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
10 deletions
html/merchant/index.html
html/merchant/index.html
View file @
e9318ce
...
@@ -10,12 +10,16 @@
...
@@ -10,12 +10,16 @@
<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>
/*
/*
.merchant .layui-table-view {
.merchant .layui-table-view {
margin: -5px 20px;
overflow-x: auto;
} */
/* .merchant .layui-table-box{
min-width: 1512px;
} */
} */
.merchant
.layui-table
{
.merchant
.layui-table
{
margin
:
0
;
margin
:
0
;
width
:
100%
;
}
}
.merchant
#searchForm
.layui-inline
{
.merchant
#searchForm
.layui-inline
{
...
@@ -194,6 +198,33 @@
...
@@ -194,6 +198,33 @@
elem
:
'#merchantTable'
,
elem
:
'#merchantTable'
,
page
:
false
,
page
:
false
,
skin
:
'nob'
,
skin
:
'nob'
,
done
:
function
()
{
$
(
"[data-field='lowerHairPath']"
).
css
(
'display'
,
'none'
);
$
(
".layui-table-main tr"
).
each
(
function
(
index
,
val
)
{
$
(
$
(
".layui-table-fixed-l .layui-table-body tbody tr"
)[
index
]).
height
(
$
(
val
).
height
());
$
(
$
(
".layui-table-fixed-r .layui-table-body tbody tr"
)[
index
]).
height
(
$
(
val
).
height
());
});
//动态监听表头高度变化,冻结行跟着改变高度
$
(
".layui-table-header tr"
).
resize
(
function
()
{
$
(
".layui-table-header tr"
).
each
(
function
(
index
,
val
)
{
$
(
$
(
".layui-table-fixed .layui-table-header table tr"
)[
index
]).
height
(
$
(
val
).
height
());
});
});
//初始化高度,使得冻结行表头高度一致
$
(
".layui-table-header tr"
).
each
(
function
(
index
,
val
)
{
$
(
$
(
".layui-table-fixed .layui-table-header table tr"
)[
index
]).
height
(
$
(
val
).
height
());
});
//动态监听表体高度变化,冻结行跟着改变高度
$
(
".layui-table-body tr"
).
resize
(
function
()
{
$
(
".layui-table-body tr"
).
each
(
function
(
index
,
val
)
{
$
(
$
(
".layui-table-fixed .layui-table-body table tr"
)[
index
]).
height
(
$
(
val
).
height
());
});
});
//初始化高度,使得冻结行表体高度一致
$
(
".layui-table-body tr"
).
each
(
function
(
index
,
val
)
{
$
(
$
(
".layui-table-fixed .layui-table-body table tr"
)[
index
]).
height
(
$
(
val
).
height
());
});
},
cols
:
[
cols
:
[
[{
[{
field
:
'index'
,
field
:
'index'
,
...
@@ -203,11 +234,13 @@
...
@@ -203,11 +234,13 @@
},
{
},
{
field
:
'merchantNo'
,
field
:
'merchantNo'
,
title
:
'商户号'
,
title
:
'商户号'
,
align
:
'center'
align
:
'center'
,
width
:
80
},
{
},
{
field
:
'merchantName'
,
field
:
'merchantName'
,
title
:
'商户名称'
,
title
:
'商户名称'
,
align
:
'center'
align
:
'center'
,
width
:
90
},
{
},
{
field
:
'accountTypeNames'
,
field
:
'accountTypeNames'
,
title
:
'账户类型'
,
title
:
'账户类型'
,
...
@@ -222,19 +255,23 @@
...
@@ -222,19 +255,23 @@
},
{
},
{
field
:
'accountLevelName'
,
field
:
'accountLevelName'
,
title
:
'账户等级'
,
title
:
'账户等级'
,
align
:
'center'
align
:
'center'
,
width
:
90
},
{
},
{
field
:
'parentMerchant'
,
field
:
'parentMerchant'
,
title
:
'上级商户'
,
title
:
'上级商户'
,
align
:
'center'
align
:
'center'
,
width
:
90
},
{
},
{
field
:
'statusName'
,
field
:
'statusName'
,
title
:
'账户状态'
,
title
:
'账户状态'
,
align
:
'center'
align
:
'center'
,
width
:
90
},
{
},
{
field
:
'merchantLegalPerson'
,
field
:
'merchantLegalPerson'
,
title
:
'联系人'
,
title
:
'联系人'
,
align
:
'center'
align
:
'center'
,
width
:
90
},
{
},
{
field
:
'merchantLegalPersonPhone'
,
field
:
'merchantLegalPersonPhone'
,
title
:
'手机号'
,
title
:
'手机号'
,
...
@@ -254,8 +291,8 @@
...
@@ -254,8 +291,8 @@
align
:
'left'
,
align
:
'left'
,
title
:
'操作'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
toolbar
:
'#merchantBtns'
,
width
:
220
width
:
220
,
//
fixed: 'right'
fixed
:
'right'
}]
}]
]
]
})
})
...
...
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