楼盘表选项卡布局修改
Showing
3 changed files
with
63 additions
and
43 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <div class="edit"> | 2 | <div class="edit"> |
| 3 | <div class="tab-header"> | 3 | <div class="tab-header"> |
| 4 | <el-row class="searchContent"> | 4 | <el-row class="searchContent"> |
| 5 | <el-col :span="6"> | 5 | <el-col :span="24" style="margin:0 0 10px 18px;"> |
| 6 | <el-radio-group v-model="scyclx" @change="scyclxChange"> | 6 | <el-radio-group v-model="scyclx" @change="scyclxChange"> |
| 7 | <el-radio-button label="0">预测</el-radio-button> | 7 | <el-radio-button label="0">预测</el-radio-button> |
| 8 | <el-radio-button label="1">实测</el-radio-button> | 8 | <el-radio-button label="1">实测</el-radio-button> |
| ... | @@ -11,8 +11,6 @@ | ... | @@ -11,8 +11,6 @@ |
| 11 | maxlength="28" | 11 | maxlength="28" |
| 12 | v-model="bdcdyh" | 12 | v-model="bdcdyh" |
| 13 | :style="{ width: inputWidth + 'px' }" | 13 | :style="{ width: inputWidth + 'px' }" |
| 14 | @focus="inputFocus" | ||
| 15 | @blur="inputBlur" | ||
| 16 | @change="inputChange" | 14 | @change="inputChange" |
| 17 | class="searchInput" | 15 | class="searchInput" |
| 18 | placeholder="输入不动产单元号或室号" | 16 | placeholder="输入不动产单元号或室号" |
| ... | @@ -23,8 +21,10 @@ | ... | @@ -23,8 +21,10 @@ |
| 23 | ></i | 21 | ></i |
| 24 | ></el-input> | 22 | ></el-input> |
| 25 | </el-col> | 23 | </el-col> |
| 26 | <el-col :span="18"> | 24 | </el-row> |
| 27 | <div class="fr"> | 25 | <el-row class="searchContent"> |
| 26 | <el-col :span="24"> | ||
| 27 | <div class="fl"> | ||
| 28 | <el-button class="radioBtn" label="1" border @click="create" | 28 | <el-button class="radioBtn" label="1" border @click="create" |
| 29 | ><i class="iconfont iconchuangjianloupan"></i>创建楼盘</el-button | 29 | ><i class="iconfont iconchuangjianloupan"></i>创建楼盘</el-button |
| 30 | > | 30 | > |
| ... | @@ -82,12 +82,17 @@ | ... | @@ -82,12 +82,17 @@ |
| 82 | </div> | 82 | </div> |
| 83 | </el-col> | 83 | </el-col> |
| 84 | </el-row> | 84 | </el-row> |
| 85 | <div class="change"> | ||
| 86 | <i class="iconfont iconloupanbiaoxinxi" v-show="bjztFlag" @click="bjztChange" title="详细信息"></i> | ||
| 87 | <i class="iconfont iconloupanbiaobianji" v-show="!bjztFlag" @click="bjztChange" title="编辑楼盘"></i> | ||
| 88 | </div> | ||
| 85 | </div> | 89 | </div> |
| 86 | <div | 90 | <div |
| 87 | class="tab-content" | 91 | class="tab-content" |
| 88 | ref="tabContent" | 92 | ref="tabContent" |
| 89 | :style="{ height: lpbContentHight + 'px' }" | 93 | :style="{ height: lpbContentHight + 'px' }" |
| 90 | v-loading="lpbloading" | 94 | v-loading="lpbloading" |
| 95 | v-if="bjztFlag" | ||
| 91 | > | 96 | > |
| 92 | <!-- 左侧树结构 --> | 97 | <!-- 左侧树结构 --> |
| 93 | <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> | 98 | <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> |
| ... | @@ -223,6 +228,8 @@ | ... | @@ -223,6 +228,8 @@ |
| 223 | </div> | 228 | </div> |
| 224 | </div> | 229 | </div> |
| 225 | 230 | ||
| 231 | <xxxx v-if="!bjztFlag"></xxxx> | ||
| 232 | |||
| 226 | <!-- 右键菜单弹出框 --> | 233 | <!-- 右键菜单弹出框 --> |
| 227 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="添加" :visible.sync="dialogVisible" width="50%" > | 234 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="添加" :visible.sync="dialogVisible" width="50%" > |
| 228 | <!-- 根据菜单类型(menuType)和右键点击的楼盘类型(treeData.type)来区分弹框内容 --> | 235 | <!-- 根据菜单类型(menuType)和右键点击的楼盘类型(treeData.type)来区分弹框内容 --> |
| ... | @@ -268,6 +275,7 @@ import addZdy from "./zdy/index"; | ... | @@ -268,6 +275,7 @@ import addZdy from "./zdy/index"; |
| 268 | import addCh from "./ch/index"; | 275 | import addCh from "./ch/index"; |
| 269 | import lpbContent from "./lpbContent/index"; | 276 | import lpbContent from "./lpbContent/index"; |
| 270 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb"; | 277 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb"; |
| 278 | import xxxx from '../xxxx/index' | ||
| 271 | 279 | ||
| 272 | export default { | 280 | export default { |
| 273 | name: "", | 281 | name: "", |
| ... | @@ -281,6 +289,7 @@ export default { | ... | @@ -281,6 +289,7 @@ export default { |
| 281 | PlSh, | 289 | PlSh, |
| 282 | PlH, | 290 | PlH, |
| 283 | PlZl, | 291 | PlZl, |
| 292 | xxxx | ||
| 284 | }, | 293 | }, |
| 285 | props: {}, | 294 | props: {}, |
| 286 | data() { | 295 | data() { |
| ... | @@ -300,7 +309,7 @@ export default { | ... | @@ -300,7 +309,7 @@ export default { |
| 300 | pd: [], //创建楼盘的树结构数据 | 309 | pd: [], //创建楼盘的树结构数据 |
| 301 | menuType: "", | 310 | menuType: "", |
| 302 | treeData: {}, | 311 | treeData: {}, |
| 303 | inputWidth: 74, | 312 | inputWidth: 200, |
| 304 | selectedZt: "dyzt", //图例选中项,默认选中单元状态 | 313 | selectedZt: "dyzt", //图例选中项,默认选中单元状态 |
| 305 | dyztList: [ | 314 | dyztList: [ |
| 306 | { | 315 | { |
| ... | @@ -367,6 +376,7 @@ export default { | ... | @@ -367,6 +376,7 @@ export default { |
| 367 | dyztBsmList: {}, //单元状态bsmList | 376 | dyztBsmList: {}, //单元状态bsmList |
| 368 | cbsmList:[], // 层bsmlist | 377 | cbsmList:[], // 层bsmlist |
| 369 | lpbloading:true, | 378 | lpbloading:true, |
| 379 | bjztFlag:true, | ||
| 370 | }; | 380 | }; |
| 371 | }, | 381 | }, |
| 372 | created() { | 382 | created() { |
| ... | @@ -441,6 +451,10 @@ export default { | ... | @@ -441,6 +451,10 @@ export default { |
| 441 | plshClose() { | 451 | plshClose() { |
| 442 | this.plShVisible = false; | 452 | this.plShVisible = false; |
| 443 | }, | 453 | }, |
| 454 | //改变编辑或详细信息状态 | ||
| 455 | bjztChange(){ | ||
| 456 | this.bjztFlag = !this.bjztFlag; | ||
| 457 | }, | ||
| 444 | //改变实预测数据类型 | 458 | //改变实预测数据类型 |
| 445 | scyclxChange(val){ | 459 | scyclxChange(val){ |
| 446 | //清空已选中层户 | 460 | //清空已选中层户 |
| ... | @@ -552,12 +566,12 @@ export default { | ... | @@ -552,12 +566,12 @@ export default { |
| 552 | this.cbsmList = data; | 566 | this.cbsmList = data; |
| 553 | }, | 567 | }, |
| 554 | //不动产单元号输入框事件 | 568 | //不动产单元号输入框事件 |
| 555 | inputFocus() { | 569 | // inputFocus() { |
| 556 | this.inputWidth = 200; | 570 | // this.inputWidth = 200; |
| 557 | }, | 571 | // }, |
| 558 | inputBlur() { | 572 | // inputBlur() { |
| 559 | this.inputWidth = 74; | 573 | // this.inputWidth = 74; |
| 560 | }, | 574 | // }, |
| 561 | inputChange() { | 575 | inputChange() { |
| 562 | if (this.bdcdyh != "") { | 576 | if (this.bdcdyh != "") { |
| 563 | // console.log("查询" + this.bdcdyh); | 577 | // console.log("查询" + this.bdcdyh); |
| ... | @@ -774,7 +788,9 @@ export default { | ... | @@ -774,7 +788,9 @@ export default { |
| 774 | padding: 20px 0; | 788 | padding: 20px 0; |
| 775 | background-color: #ffffff; | 789 | background-color: #ffffff; |
| 776 | margin-bottom: 15px; | 790 | margin-bottom: 15px; |
| 791 | position: relative; | ||
| 777 | .searchContent { | 792 | .searchContent { |
| 793 | margin-left: 50px; | ||
| 778 | box-sizing: border-box; | 794 | box-sizing: border-box; |
| 779 | padding: 0 20px; | 795 | padding: 0 20px; |
| 780 | /deep/.el-radio-button__inner { | 796 | /deep/.el-radio-button__inner { |
| ... | @@ -797,6 +813,22 @@ export default { | ... | @@ -797,6 +813,22 @@ export default { |
| 797 | display: inline-block; | 813 | display: inline-block; |
| 798 | } | 814 | } |
| 799 | } | 815 | } |
| 816 | .change{ | ||
| 817 | position: absolute; | ||
| 818 | left: 0; | ||
| 819 | top: 0; | ||
| 820 | height: 100%; | ||
| 821 | width: 70px; | ||
| 822 | border-right: 1px solid #dedede; | ||
| 823 | i{ | ||
| 824 | cursor: pointer; | ||
| 825 | color: #0090FF; | ||
| 826 | font-size: 36px; | ||
| 827 | display: inherit; | ||
| 828 | text-align: center; | ||
| 829 | line-height: 128px; | ||
| 830 | } | ||
| 831 | } | ||
| 800 | .radioBtn { | 832 | .radioBtn { |
| 801 | margin-left: 10px; | 833 | margin-left: 10px; |
| 802 | padding: 12px 10px; | 834 | padding: 12px 10px; | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="lpb"> | 2 | <div class="lpb"> |
| 3 | <el-tabs v-model="activeName" type="card" @tab-click="handleClick"> | ||
| 4 | <el-tab-pane label="编辑楼盘" name="edit"> | ||
| 5 | <bjlp></bjlp> | 3 | <bjlp></bjlp> |
| 4 | <!-- <el-tabs v-model="activeName" type="card" @tab-click="handleClick"> | ||
| 5 | <el-tab-pane label="编辑楼盘" name="edit"> | ||
| 6 | </el-tab-pane> | 6 | </el-tab-pane> |
| 7 | <el-tab-pane label="预览楼盘" name="preview"> | 7 | <el-tab-pane label="预览楼盘" name="preview"> |
| 8 | <yllp></yllp> | 8 | <yllp></yllp> |
| ... | @@ -10,17 +10,15 @@ | ... | @@ -10,17 +10,15 @@ |
| 10 | <el-tab-pane label="详细信息" name="detail"> | 10 | <el-tab-pane label="详细信息" name="detail"> |
| 11 | <xxxx></xxxx> | 11 | <xxxx></xxxx> |
| 12 | </el-tab-pane> | 12 | </el-tab-pane> |
| 13 | </el-tabs> | 13 | </el-tabs> --> |
| 14 | </div> | 14 | </div> |
| 15 | </template> | 15 | </template> |
| 16 | 16 | ||
| 17 | <script> | 17 | <script> |
| 18 | import bjlp from "./bjlp" | 18 | import bjlp from "./bjlp" |
| 19 | import yllp from "./yllp" | ||
| 20 | import xxxx from "./xxxx" | ||
| 21 | export default { | 19 | export default { |
| 22 | name:"", | 20 | name:"", |
| 23 | components:{bjlp,yllp,xxxx}, | 21 | components:{bjlp}, |
| 24 | props:{}, | 22 | props:{}, |
| 25 | data() { | 23 | data() { |
| 26 | return { | 24 | return { | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class=""> | 2 | <div class=""> |
| 3 | <el-radio-group v-model="scyclx" @change="scyclxChange"> | ||
| 4 | <el-radio-button label="0">预测</el-radio-button> | ||
| 5 | <el-radio-button label="1">实测</el-radio-button> | ||
| 6 | </el-radio-group> | ||
| 7 | <el-button @click="update">更新数据</el-button> | ||
| 8 | <el-table | 3 | <el-table |
| 9 | :data="tableData" | 4 | :data="tableData" |
| 10 | style="width: 100%;margin-bottom: 20px;" | 5 | style="width: 100%;margin-bottom: 20px;" |
| ... | @@ -14,6 +9,7 @@ | ... | @@ -14,6 +9,7 @@ |
| 14 | :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> | 9 | :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> |
| 15 | <el-table-column | 10 | <el-table-column |
| 16 | prop="mc" | 11 | prop="mc" |
| 12 | width="200" | ||
| 17 | label="地址(单元名称)"> | 13 | label="地址(单元名称)"> |
| 18 | </el-table-column> | 14 | </el-table-column> |
| 19 | <el-table-column | 15 | <el-table-column |
| ... | @@ -73,7 +69,6 @@ export default { | ... | @@ -73,7 +69,6 @@ export default { |
| 73 | tableData: [], | 69 | tableData: [], |
| 74 | scData:[], | 70 | scData:[], |
| 75 | ycData:[], | 71 | ycData:[], |
| 76 | scyclx:'0', | ||
| 77 | } | 72 | } |
| 78 | }, | 73 | }, |
| 79 | created(){}, | 74 | created(){}, |
| ... | @@ -82,13 +77,6 @@ export default { | ... | @@ -82,13 +77,6 @@ export default { |
| 82 | }, | 77 | }, |
| 83 | methods:{ | 78 | methods:{ |
| 84 | 79 | ||
| 85 | scyclxChange(){ | ||
| 86 | if(this.scyclx === '0'){ | ||
| 87 | this.tableData = this.ycData; | ||
| 88 | }else { | ||
| 89 | this.tableData = this.scData; | ||
| 90 | } | ||
| 91 | }, | ||
| 92 | 80 | ||
| 93 | chFilter(row, column){ | 81 | chFilter(row, column){ |
| 94 | if(row.ch === 0){ | 82 | if(row.ch === 0){ |
| ... | @@ -106,26 +94,20 @@ export default { | ... | @@ -106,26 +94,20 @@ export default { |
| 106 | } | 94 | } |
| 107 | }, | 95 | }, |
| 108 | 96 | ||
| 109 | update(){ | 97 | // update(){ |
| 110 | this.getData(); | 98 | // this.getData(); |
| 111 | }, | 99 | // }, |
| 112 | 100 | ||
| 113 | getData(){ | 101 | getData(){ |
| 114 | let zrzbsm = this.$store.state.zrzbsm; | 102 | let zrzbsm = this.$store.state.zrzbsm; |
| 115 | // let scyclx = this.scyclx; | 103 | // let scyclx = this.scyclx; |
| 116 | getDetailInfo(zrzbsm,'0').then((res)=>{ | 104 | getDetailInfo(zrzbsm,this.$parent.scyclx).then((res)=>{ |
| 117 | if(res.code===200){ | 105 | if(res.code===200){ |
| 118 | console.log(res.result) | 106 | console.log(res.result) |
| 119 | this.ycData = res.result; | 107 | this.ycData = res.result; |
| 120 | this.tableData=this.ycData; | 108 | this.tableData=this.ycData; |
| 121 | } | 109 | } |
| 122 | }); | 110 | }); |
| 123 | getDetailInfo(zrzbsm,'1').then((res)=>{ | ||
| 124 | if(res.code===200){ | ||
| 125 | console.log(res.result) | ||
| 126 | this.scData = res.result; | ||
| 127 | } | ||
| 128 | }) | ||
| 129 | }, | 111 | }, |
| 130 | 112 | ||
| 131 | load(tree, treeNode, resolve) { | 113 | load(tree, treeNode, resolve) { |
| ... | @@ -148,8 +130,16 @@ export default { | ... | @@ -148,8 +130,16 @@ export default { |
| 148 | 130 | ||
| 149 | 131 | ||
| 150 | }, | 132 | }, |
| 151 | computed: {}, | 133 | computed: { |
| 152 | watch: {}, | 134 | scyclx(){ |
| 135 | return this.$parent.scyclx | ||
| 136 | } | ||
| 137 | }, | ||
| 138 | watch: { | ||
| 139 | scyclx(){ | ||
| 140 | this.getData(); | ||
| 141 | } | ||
| 142 | }, | ||
| 153 | } | 143 | } |
| 154 | </script> | 144 | </script> |
| 155 | <style scoped lang="less"> | 145 | <style scoped lang="less"> | ... | ... |
-
Please register or sign in to post a comment