Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
e1dc01f4
Commit
e1dc01f4
authored
Dec 26, 2024
by
honghy
Committed by
wux
Dec 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表页面固定滚动条在底部
parent
10d78293
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
12 deletions
+91
-12
index.vue
src/views/ecw/customer/index.vue
+21
-3
index.vue
src/views/ecw/myCustomerService/index.vue
+18
-3
index.vue
src/views/ecw/oceanCustomer/index.vue
+16
-0
logListCommon.vue
src/views/ecw/offer/logListCommon.vue
+18
-3
index.vue
src/views/ecw/order/index.vue
+18
-3
No files found.
src/views/ecw/customer/index.vue
View file @
e1dc01f4
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
</el-row>
</el-row>
<!-- 列表 -->
<!-- 列表 -->
<el-table
ref=
"multipleTable"
border
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
ref=
"multipleTable"
border
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
id=
"dataTable"
:height=
"autoHeight"
>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
:label=
"$t('客户编号')"
align=
"center"
fixed
>
<el-table-column
:label=
"$t('客户编号')"
align=
"center"
fixed
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
...
@@ -905,7 +905,8 @@ export default {
...
@@ -905,7 +905,8 @@ export default {
productTypeList
:
[],
productTypeList
:
[],
productList
:
[],
productList
:
[],
competitorList
:
[],
competitorList
:
[],
deptList
:
[]
deptList
:
[],
autoHeight
:
500
}
}
},
},
computed
:
{
computed
:
{
...
@@ -1380,6 +1381,10 @@ export default {
...
@@ -1380,6 +1381,10 @@ export default {
this
.
list
=
response
.
data
.
list
this
.
list
=
response
.
data
.
list
this
.
total
=
response
.
data
.
total
this
.
total
=
response
.
data
.
total
this
.
loading
=
false
this
.
loading
=
false
this
.
$nextTick
(()
=>
{
this
.
getHeight
()
})
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
...
@@ -1525,7 +1530,20 @@ export default {
...
@@ -1525,7 +1530,20 @@ export default {
}
else
{
}
else
{
return
null
return
null
}
}
},
//表格高度自适应
getHeight
()
{
let
getHeightFromBottom
=
(
element
,
variableHeight
)
=>
{
const
elementRect
=
element
.
getBoundingClientRect
().
top
;
const
windowHeight
=
window
.
innerHeight
;
const
elementHeightFromBottom
=
windowHeight
-
elementRect
;
const
result
=
elementHeightFromBottom
-
variableHeight
;
return
result
;
}
}
const
element
=
document
.
getElementById
(
'
dataTable
'
);
const
variableHeight
=
70
;
// 给定的变量高度 一般留于分页器高度
this
.
autoHeight
=
getHeightFromBottom
(
element
,
variableHeight
)
;
},
}
}
}
}
</
script
>
</
script
>
src/views/ecw/myCustomerService/index.vue
View file @
e1dc01f4
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
</el-row>
</el-row>
<!-- 列表 -->
<!-- 列表 -->
<el-table
ref=
"multipleTable"
border
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
ref=
"multipleTable"
border
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
id=
"dataTable"
:height=
"autoHeight"
>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
:label=
"$t('客户编号')"
align=
"center"
fixed
>
<el-table-column
:label=
"$t('客户编号')"
align=
"center"
fixed
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
...
@@ -628,7 +628,8 @@ export default {
...
@@ -628,7 +628,8 @@ export default {
productTypeList
:
[],
productTypeList
:
[],
productList
:
[],
productList
:
[],
competitorList
:
[],
competitorList
:
[],
deptList
:
[]
deptList
:
[],
autoHeight
:
500
}
}
},
},
activated
()
{
activated
()
{
...
@@ -694,6 +695,7 @@ export default {
...
@@ -694,6 +695,7 @@ export default {
this
.
list
=
response
.
data
.
list
this
.
list
=
response
.
data
.
list
this
.
total
=
response
.
data
.
total
this
.
total
=
response
.
data
.
total
this
.
loading
=
false
this
.
loading
=
false
this
.
getHeight
()
})
})
},
},
remoteMethod
(
val
)
{
remoteMethod
(
val
)
{
...
@@ -970,7 +972,20 @@ export default {
...
@@ -970,7 +972,20 @@ export default {
}
else
{
}
else
{
return
null
return
null
}
}
},
//表格高度自适应
getHeight
()
{
let
getHeightFromBottom
=
(
element
,
variableHeight
)
=>
{
const
elementRect
=
element
.
getBoundingClientRect
().
top
;
const
windowHeight
=
window
.
innerHeight
;
const
elementHeightFromBottom
=
windowHeight
-
elementRect
;
const
result
=
elementHeightFromBottom
-
variableHeight
;
return
result
;
}
}
const
element
=
document
.
getElementById
(
'
dataTable
'
);
const
variableHeight
=
70
;
// 给定的变量高度 一般留于分页器高度
this
.
autoHeight
=
getHeightFromBottom
(
element
,
variableHeight
)
;
},
},
},
watch
:
{
watch
:
{
selectCustomerList
(
val
)
{
selectCustomerList
(
val
)
{
...
...
src/views/ecw/oceanCustomer/index.vue
View file @
e1dc01f4
...
@@ -219,6 +219,7 @@
...
@@ -219,6 +219,7 @@
v-loading=
"loading"
v-loading=
"loading"
:data=
"list"
:data=
"list"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
id=
"dataTable"
:height=
"autoHeight"
>
>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
:label=
"$t('客户编号')"
align=
"center"
fixed
>
<el-table-column
:label=
"$t('客户编号')"
align=
"center"
fixed
>
...
@@ -654,6 +655,7 @@ export default {
...
@@ -654,6 +655,7 @@ export default {
productList
:
[],
productList
:
[],
competitorList
:
[],
competitorList
:
[],
deptList
:
[],
deptList
:
[],
autoHeight
:
500
};
};
},
},
created
()
{
created
()
{
...
@@ -777,6 +779,7 @@ export default {
...
@@ -777,6 +779,7 @@ export default {
this
.
list
=
response
.
data
.
list
;
this
.
list
=
response
.
data
.
list
;
this
.
total
=
response
.
data
.
total
;
this
.
total
=
response
.
data
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
getHeight
();
});
});
},
},
remoteMethod
(
val
)
{
remoteMethod
(
val
)
{
...
@@ -1066,6 +1069,19 @@ export default {
...
@@ -1066,6 +1069,19 @@ export default {
return
null
return
null
}
}
},
},
//表格高度自适应
getHeight
()
{
let
getHeightFromBottom
=
(
element
,
variableHeight
)
=>
{
const
elementRect
=
element
.
getBoundingClientRect
().
top
;
const
windowHeight
=
window
.
innerHeight
;
const
elementHeightFromBottom
=
windowHeight
-
elementRect
;
const
result
=
elementHeightFromBottom
-
variableHeight
;
return
result
;
}
const
element
=
document
.
getElementById
(
'
dataTable
'
);
const
variableHeight
=
70
;
// 给定的变量高度 一般留于分页器高度
this
.
autoHeight
=
getHeightFromBottom
(
element
,
variableHeight
)
;
},
},
},
};
};
</
script
>
</
script
>
src/views/ecw/offer/logListCommon.vue
View file @
e1dc01f4
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getDataSpaceCustomerFollowupList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getDataSpaceCustomerFollowupList"
></right-toolbar>
</el-row>
</el-row>
<el-table
ref=
"multipleTable"
border
:data=
"customerFollowList"
v-loading=
"loading"
@
selection-change=
"handleSelectionChange"
style=
"width: 100%"
>
<el-table
ref=
"multipleTable"
border
:data=
"customerFollowList"
v-loading=
"loading"
@
selection-change=
"handleSelectionChange"
style=
"width: 100%"
id=
"dataTable"
:height=
"autoHeight"
>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
fixed
></el-table-column>
<el-table-column
prop=
"customerNumber"
:label=
"$t('客户编号')"
width=
"120"
fixed
>
<el-table-column
prop=
"customerNumber"
:label=
"$t('客户编号')"
width=
"120"
fixed
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -198,7 +198,8 @@ export default {
...
@@ -198,7 +198,8 @@ export default {
followTime
:
[
""
,
""
],
followTime
:
[
""
,
""
],
nextTime
:
[
""
,
""
],
nextTime
:
[
""
,
""
],
customerCreateTime
:
[
""
,
""
]
customerCreateTime
:
[
""
,
""
]
}
},
autoHeight
:
500
}
}
},
},
created
()
{
created
()
{
...
@@ -316,6 +317,7 @@ export default {
...
@@ -316,6 +317,7 @@ export default {
this
.
customerFollowList
=
r
.
data
.
list
this
.
customerFollowList
=
r
.
data
.
list
this
.
customerFollowTotal
=
r
.
data
.
total
this
.
customerFollowTotal
=
r
.
data
.
total
this
.
loading
=
false
this
.
loading
=
false
this
.
getHeight
()
})
})
},
},
reset
()
{
reset
()
{
...
@@ -328,7 +330,20 @@ export default {
...
@@ -328,7 +330,20 @@ export default {
pageSize
:
10
pageSize
:
10
}
}
this
.
getDataSpaceCustomerFollowupList
()
this
.
getDataSpaceCustomerFollowupList
()
},
//表格高度自适应
getHeight
()
{
let
getHeightFromBottom
=
(
element
,
variableHeight
)
=>
{
const
elementRect
=
element
.
getBoundingClientRect
().
top
;
const
windowHeight
=
window
.
innerHeight
;
const
elementHeightFromBottom
=
windowHeight
-
elementRect
;
const
result
=
elementHeightFromBottom
-
variableHeight
;
return
result
;
}
}
const
element
=
document
.
getElementById
(
'
dataTable
'
);
const
variableHeight
=
70
;
// 给定的变量高度 一般留于分页器高度
this
.
autoHeight
=
getHeightFromBottom
(
element
,
variableHeight
)
;
},
}
}
}
}
</
script
>
</
script
>
src/views/ecw/order/index.vue
View file @
e1dc01f4
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
</el-row>
</el-row>
<!-- 列表 -->
<!-- 列表 -->
<el-table
v-loading=
"loading"
border
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
border
:data=
"list"
@
selection-change=
"handleSelectionChange"
id=
"dataTable"
:height=
"autoHeight"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
:label=
"$t('订单编号')"
width=
"120px"
align=
"center"
prop=
"orderNo"
fixed
>
<el-table-column
:label=
"$t('订单编号')"
width=
"120px"
align=
"center"
prop=
"orderNo"
fixed
>
...
@@ -843,7 +843,8 @@ export default {
...
@@ -843,7 +843,8 @@ export default {
pickRatio
:
{
pickRatio
:
{
key
:
"
eqPickRatio
"
,
key
:
"
eqPickRatio
"
,
value
:
""
value
:
""
}
},
autoHeight
:
500
}
}
},
},
watch
:
{
watch
:
{
...
@@ -1314,6 +1315,7 @@ export default {
...
@@ -1314,6 +1315,7 @@ export default {
this
.
list
=
[]
this
.
list
=
[]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
list
=
response
.
data
.
list
this
.
list
=
response
.
data
.
list
this
.
getHeight
()
})
})
this
.
total
=
response
.
data
.
total
this
.
total
=
response
.
data
.
total
this
.
loading
=
false
this
.
loading
=
false
...
@@ -1499,7 +1501,20 @@ export default {
...
@@ -1499,7 +1501,20 @@ export default {
// 自动去除空格
// 自动去除空格
replaceSpace
(
obj
,
field
)
{
replaceSpace
(
obj
,
field
)
{
obj
[
field
]
=
obj
[
field
].
replace
(
/
\s
+/g
,
""
)
obj
[
field
]
=
obj
[
field
].
replace
(
/
\s
+/g
,
""
)
},
//表格高度自适应
getHeight
()
{
let
getHeightFromBottom
=
(
element
,
variableHeight
)
=>
{
const
elementRect
=
element
.
getBoundingClientRect
().
top
;
const
windowHeight
=
window
.
innerHeight
;
const
elementHeightFromBottom
=
windowHeight
-
elementRect
;
const
result
=
elementHeightFromBottom
-
variableHeight
;
return
result
;
}
}
const
element
=
document
.
getElementById
(
'
dataTable
'
);
const
variableHeight
=
70
;
// 给定的变量高度 一般留于分页器高度
this
.
autoHeight
=
getHeightFromBottom
(
element
,
variableHeight
)
;
},
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment