Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-08-30 19:29:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d1c9cfcea1fe15aba21be5a07e6aab402e80482f
d1c9cfce
1 parent
aced3383
modify
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
32 deletions
src/utils/index.js
src/views/et86Config/et86HsCodeBlack/index.vue
src/views/et86Config/et86RuleConfig/index.vue
src/views/et86Config/et86ShipmentDesc/index.vue
src/utils/index.js
View file @
d1c9cfc
...
...
@@ -424,21 +424,21 @@ export function restTableHeight($refs) {
if
(
key
==
"ylTable"
)
{
$refs
[
key
].
$children
.
map
((
item
)
=>
{
if
(
item
.
$el
.
id
==
"group-btn"
)
{
console
.
log
(
"group-btn:"
,
getPropertyValue
(
item
.
$el
));
//
console.log("group-btn:", getPropertyValue(item.$el));
// table表格组合按钮
heigth
+=
getPropertyValue
(
item
.
$el
);
heigth
+=
item
.
$el
.
clientHeight
;
}
else
if
(
item
.
$el
.
className
==
"el-pagination is-background"
)
{
// table表格组合分页
if
(
item
.
$el
.
offsetParent
.
className
==
"pagination-container"
)
{
console
.
log
(
"pagination:"
,
getPropertyValue
(
item
.
$el
.
offsetParent
)
);
console
.
log
(
"paginationClientHeight:"
,
getPropertyValue
(
item
.
$el
.
offsetParent
.
clientHeight
)
);
//
console.log(
//
"pagination:",
//
getPropertyValue(item.$el.offsetParent)
//
);
//
console.log(
//
"paginationClientHeight:",
//
getPropertyValue(item.$el.offsetParent.clientHeight)
//
);
heigth
+=
getPropertyValue
(
item
.
$el
.
offsetParent
);
heigth
+=
item
.
$el
.
offsetParent
.
clientHeight
;
}
...
...
@@ -448,22 +448,22 @@ export function restTableHeight($refs) {
if
(
$refs
[
key
].
hasOwnProperty
(
"$el"
))
{
heigth
+=
$refs
[
key
].
$el
.
clientHeight
;
heigth
+=
getPropertyValue
(
$refs
[
key
].
$el
);
console
.
log
(
"ruleForm:"
,
$refs
[
key
].
$el
.
clientHeight
,
getPropertyValue
(
$refs
[
key
].
$el
)
);
//
console.log(
//
"ruleForm:",
//
$refs[key].$el.clientHeight,
//
getPropertyValue($refs[key].$el)
//
);
}
else
{
console
.
log
(
"ruleForm:"
,
$refs
[
key
]);
//
console.log("ruleForm:", $refs[key]);
heigth
+=
$refs
[
key
].
$el
.
clientHeight
;
heigth
+=
getPropertyValue
(
$refs
[
key
]);
}
}
}
else
if
(
key
==
"formHeaderRef"
)
{
console
.
log
(
"formHeaderRef:"
,
getPropertyValue
(
$refs
[
key
]));
//
console.log("formHeaderRef:", getPropertyValue($refs[key]));
heigth
+=
getPropertyValue
(
$refs
[
key
]);
}
});
console
.
log
(
"heigth:"
,
heigth
);
//
console.log("heigth:", heigth);
return
heigth
;
}
...
...
src/views/et86Config/et86HsCodeBlack/index.vue
View file @
d1c9cfc
...
...
@@ -141,8 +141,8 @@ export default {
},
mounted() {
this.$nextTick(() => {
console.log(this.$refs)
this.tableAttr.maxHeight =
window.innerHeight - restTableHeight(this.$refs);
this.tableAttr.maxHeight =
window.innerHeight - restTableHeight(this.$refs);
});
},
methods: {
...
...
src/views/et86Config/et86RuleConfig/index.vue
View file @
d1c9cfc
...
...
@@ -71,9 +71,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
console.log(window.innerHeight);
console.log(restTableHeight(this.$refs));
// this.tableAttr.maxHeight = window.innerHeight - restTableHeight(this.$refs);
this.tableAttr.maxHeight = window.innerHeight - restTableHeight(this.$refs);
});
},
methods: {
...
...
src/views/et86Config/et86ShipmentDesc/index.vue
View file @
d1c9cfc
...
...
@@ -141,16 +141,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
let app = document.querySelector(".app-main");
if (this.$store.getters.appMainBlockClientHeight) {
this.tableAttr.maxHeight =
this.$store.getters.appMainBlockClientHeight -
restTableHeight(this.$refs);
} else {
this.tableAttr.maxHeight =
app.clientHeight - restTableHeight(this.$refs);
}
console.log(this.tableAttr.maxHeight);
this.tableAttr.maxHeight = window.innerHeight - restTableHeight(this.$refs);
});
},
methods: {
...
...
Please
register
or
login
to post a comment