Showing
1 changed file
with
7 additions
and
1 deletions
| ... | @@ -103,7 +103,9 @@ export default { | ... | @@ -103,7 +103,9 @@ export default { |
| 103 | //弹框关闭 | 103 | //弹框关闭 |
| 104 | popoverClose() { | 104 | popoverClose() { |
| 105 | this.$emit("popoverClose"); | 105 | this.$emit("popoverClose"); |
| 106 | + if (this.parentDom.$refs.tables) { | ||
| 106 | this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = "auto"; | 107 | this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = "auto"; |
| 108 | + } | ||
| 107 | this.$store.dispatch("setLoadingState", true); | 109 | this.$store.dispatch("setLoadingState", true); |
| 108 | }, | 110 | }, |
| 109 | //弹框状态改版 | 111 | //弹框状态改版 |
| ... | @@ -123,12 +125,16 @@ export default { | ... | @@ -123,12 +125,16 @@ export default { |
| 123 | ); | 125 | ); |
| 124 | } | 126 | } |
| 125 | }); | 127 | }); |
| 128 | + if (this.parentDom.$refs.tables) { | ||
| 126 | if (!data[`${type}PopoverType`]) { | 129 | if (!data[`${type}PopoverType`]) { |
| 127 | this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = | 130 | this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = |
| 128 | "hidden"; | 131 | "hidden"; |
| 129 | } else { | 132 | } else { |
| 130 | - this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = "auto"; | 133 | + this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = |
| 134 | + "auto"; | ||
| 131 | } | 135 | } |
| 136 | + } | ||
| 137 | + | ||
| 132 | this.$emit("popoverChange", { | 138 | this.$emit("popoverChange", { |
| 133 | tableData: arr, | 139 | tableData: arr, |
| 134 | data: data, | 140 | data: data, | ... | ... |
-
Please register or login to post a comment