实预测类型切换时,清除选中状态和数据
Showing
1 changed file
with
13 additions
and
1 deletions
| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 | <div class="tab-header"> | 3 | <div class="tab-header"> |
| 4 | <el-row class="searchContent"> | 4 | <el-row class="searchContent"> |
| 5 | <el-col :span="8"> | 5 | <el-col :span="8"> |
| 6 | <el-radio-group v-model="syclx"> | 6 | <el-radio-group v-model="syclx" @change="syclxChange"> |
| 7 | <el-radio-button label="1">实测</el-radio-button> | 7 | <el-radio-button label="1">实测</el-radio-button> |
| 8 | <el-radio-button label="0">预测</el-radio-button> | 8 | <el-radio-button label="0">预测</el-radio-button> |
| 9 | </el-radio-group> | 9 | </el-radio-group> |
| ... | @@ -437,6 +437,18 @@ export default { | ... | @@ -437,6 +437,18 @@ export default { |
| 437 | plshClose() { | 437 | plshClose() { |
| 438 | this.plShVisible = false; | 438 | this.plShVisible = false; |
| 439 | }, | 439 | }, |
| 440 | //改变是预测数据类型 | ||
| 441 | syclxChange(val){ | ||
| 442 | //清空已选中层户 | ||
| 443 | this.cbsmList = []; | ||
| 444 | this.bsms = []; | ||
| 445 | console.log(this.$refs.lpbContent.$refs.hBsm,'this.$refs.lpbContent'); | ||
| 446 | this.$refs.lpbContent.$refs.hBsm.forEach(item=>{ | ||
| 447 | if (item.className == "tdSelect") { | ||
| 448 | item.className = ""; | ||
| 449 | } | ||
| 450 | }) | ||
| 451 | }, | ||
| 440 | //获取高度计算lpb内容区高度 | 452 | //获取高度计算lpb内容区高度 |
| 441 | getHeight() { | 453 | getHeight() { |
| 442 | this.lpbContentHight = window.innerHeight - 285; | 454 | this.lpbContentHight = window.innerHeight - 285; | ... | ... |
-
Please register or sign in to post a comment