楼盘表相关代码优化
Showing
2 changed files
with
2 additions
and
11 deletions
... | @@ -81,9 +81,6 @@ export default { | ... | @@ -81,9 +81,6 @@ export default { |
81 | methods: { | 81 | methods: { |
82 | //行操作 | 82 | //行操作 |
83 | handleRowClick(row, index) { | 83 | handleRowClick(row, index) { |
84 | console.log(this.tableData, "this.tableData"); | ||
85 | console.log(this.formData, "this.formData"); | ||
86 | console.log(index); | ||
87 | if (row.cz == "+") { | 84 | if (row.cz == "+") { |
88 | let temp = JSON.parse(JSON.stringify(this.formData)); | 85 | let temp = JSON.parse(JSON.stringify(this.formData)); |
89 | temp.cz = "-"; | 86 | temp.cz = "-"; |
... | @@ -162,12 +159,6 @@ export default { | ... | @@ -162,12 +159,6 @@ export default { |
162 | immediate: true, | 159 | immediate: true, |
163 | deep: true, | 160 | deep: true, |
164 | }, | 161 | }, |
165 | // dialogVisible(n){ | ||
166 | // this.tableData = []; | ||
167 | // if(n){ | ||
168 | // this.tableData.push(this.formData); | ||
169 | // } | ||
170 | // } | ||
171 | }, | 162 | }, |
172 | }; | 163 | }; |
173 | </script> | 164 | </script> | ... | ... |
... | @@ -228,12 +228,11 @@ export default { | ... | @@ -228,12 +228,11 @@ export default { |
228 | }, | 228 | }, |
229 | //打开新建楼盘树结构右键菜单唤起的弹框 | 229 | //打开新建楼盘树结构右键菜单唤起的弹框 |
230 | openLpbDialog(data, type) { | 230 | openLpbDialog(data, type) { |
231 | console.log(data, "data"); | ||
232 | this.treeData = data; | 231 | this.treeData = data; |
233 | this.menuType = type; | 232 | this.menuType = type; |
234 | this.dialogVisible = true; | 233 | this.dialogVisible = true; |
235 | }, | 234 | }, |
236 | //弹框中的保存按钮 | 235 | //弹框中的保存按钮,根据不同菜单点击类型调用不同子组件的保存方法 |
237 | saveInfo() { | 236 | saveInfo() { |
238 | switch (this.menuType) { | 237 | switch (this.menuType) { |
239 | case "ljz": | 238 | case "ljz": |
... | @@ -281,6 +280,7 @@ export default { | ... | @@ -281,6 +280,7 @@ export default { |
281 | window.removeEventListener("resize", this.getHeight); | 280 | window.removeEventListener("resize", this.getHeight); |
282 | }, | 281 | }, |
283 | watch: { | 282 | watch: { |
283 | //树结构和图例伸缩时修改楼盘表主要内容区宽度 | ||
284 | legendToggleFlag(n) { | 284 | legendToggleFlag(n) { |
285 | if (n) { | 285 | if (n) { |
286 | this.lpbContentwidth -= 204; | 286 | this.lpbContentwidth -= 204; | ... | ... |
-
Please register or sign in to post a comment