zhanbo.xu

feat: 新增功能&&修改字段

...@@ -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 - this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = "auto"; 106 + if (this.parentDom.$refs.tables) {
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 });
126 - if (!data[`${type}PopoverType`]) { 128 + if (this.parentDom.$refs.tables) {
127 - this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = 129 + if (!data[`${type}PopoverType`]) {
128 - "hidden"; 130 + this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY =
129 - } else { 131 + "hidden";
130 - this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = "auto"; 132 + } else {
133 + this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY =
134 + "auto";
135 + }
131 } 136 }
137 +
132 this.$emit("popoverChange", { 138 this.$emit("popoverChange", {
133 tableData: arr, 139 tableData: arr,
134 data: data, 140 data: data,
......