4e564987 by 杨威

户表单样式调整

1 parent efa4437c
1 <template> 1 <template>
2 <div class="h content-form"> 2 <div class="h content-form" ref="mainBox" :class="$route.path == '/h' ? 'hpage':''">
3 <el-form ref="form" :model="form" label-width="160px"> 3 <el-form ref="form" :model="form" label-width="160px" class="form" :style="{'height': $route.path == '/h' ? '100%' : formHeight+'px'}">
4 <Qlr ref="qlrxxModule" :bsm='bsm'></Qlr> 4 <Qlr ref="qlrxxModule" :bsm='bsm'></Qlr>
5 <table border="1" width="100%" cellspacing="0" cellpadding="0" class="hTable"> 5 <table border="1" width="100%" cellspacing="0" cellpadding="0" class="hTable">
6 <tbody> 6 <tbody>
...@@ -391,15 +391,12 @@ ...@@ -391,15 +391,12 @@
391 </tbody> 391 </tbody>
392 </table> 392 </table>
393 </el-form> 393 </el-form>
394 <div class="btnGroup"> 394 <div class="header-button" :style="{width:mainBoxWidth+'px'}">
395 <el-button type="primary" @click="onSave">保存</el-button> 395 <el-button type="primary" class="saveBtn" @click="onSave">保存</el-button>
396 <el-button type="primary" @click="onSubmit">提交</el-button> 396 <el-button type="primary" @click="onSubmit">提交</el-button>
397 <el-button type="primary" @click="registerCall">登记调用</el-button> 397 <el-button type="primary" @click="registerCall">登记调用</el-button>
398 <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
398 </div> 399 </div>
399 <!-- <div style="min-height: 40px;text-align: center;margin-top: 10px">
400 <el-button type="success" @click="onSave">保存</el-button>
401 <el-button type="primary" @click="onSubmit">提交</el-button>
402 </div> -->
403 </div> 400 </div>
404 401
405 </template> 402 </template>
...@@ -425,9 +422,7 @@ ...@@ -425,9 +422,7 @@
425 }, 422 },
426 data () { 423 data () {
427 return { 424 return {
428
429 disableFlag:false, 425 disableFlag:false,
430
431 //树型结构 426 //树型结构
432 show:true, 427 show:true,
433 clearable: true, 428 clearable: true,
...@@ -523,12 +518,18 @@ ...@@ -523,12 +518,18 @@
523 value: '', 518 value: '',
524 ytTitleRowspan:1, //用途的单元格垂直合并数量 519 ytTitleRowspan:1, //用途的单元格垂直合并数量
525 fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量 520 fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
521 formHeight:0,
522 mainBoxWidth:0,
526 } 523 }
527 }, 524 },
528 created(){ 525 created(){
529 let bsm=this.$store.state.hbsm 526 let bsm=this.$store.state.hbsm
530 console.log(bsm,'户BSM') 527 console.log(bsm,'户BSM')
531 this.getHInfo(bsm); 528 this.getHInfo(bsm);
529 this.$nextTick(()=>{
530 this.mainBoxWidth = this.$refs.mainBox.clientWidth;
531 this.formHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 320
532 })
532 }, 533 },
533 methods: { 534 methods: {
534 registerCall(){ 535 registerCall(){
...@@ -883,6 +884,15 @@ ...@@ -883,6 +884,15 @@
883 .el-select{ 884 .el-select{
884 display:block; 885 display:block;
885 } 886 }
887 .form{
888 overflow-y: scroll;
889 overflow-x: hidden;
890 margin-bottom: 30px;
891 }
892 }
893 .hpage{
894 box-sizing: border-box;
895 padding: 8px 6px 18px 18px;
886 } 896 }
887 897
888 table{ 898 table{
...@@ -899,8 +909,25 @@ ...@@ -899,8 +909,25 @@
899 height: 30px !important; 909 height: 30px !important;
900 } 910 }
901 } 911 }
902 .btnGroup{ 912
903 text-align: center; 913 .header-button {
904 margin-top: 20px; 914 height: 50px;
905 } 915 position: fixed;
916 bottom: 0;
917 right: 6px;
918 text-align: center;
919 background-color: #ffffff;
920 .el-button{
921 padding: 10px 30px;
922 margin-top: 8px;
923 }
924 .saveBtn {
925 background-color: #00CACD;
926 border-color: #00CACD;
927 }
928 .saveBtn:hover {
929 background-color: rgba(0, 202, 205, .8);
930 border-color: rgba(0, 202, 205, .8);
931 }
932 }
906 </style> 933 </style>
......
...@@ -551,11 +551,10 @@ export default { ...@@ -551,11 +551,10 @@ export default {
551 }, 551 },
552 //获取选中户bsm 552 //获取选中户bsm
553 getHbsm(data, type) { 553 getHbsm(data, type) {
554 this.bsms = data;
555 if (type) { 554 if (type) {
556 // 双击 555 // 双击
557 this.hbsm = this.bsms[this.bsms.length - 1]; 556 this.hbsm = data;
558 this.$store.state.hbsm=this.hbsm; 557 this.$store.state.hbsm=this.data;
559 this.hbjVisible = true; 558 this.hbjVisible = true;
560 this.$nextTick(function() { 559 this.$nextTick(function() {
561 this.$refs.hbj.getHInfo(this.hbsm); 560 this.$refs.hbj.getHInfo(this.hbsm);
......
...@@ -508,8 +508,8 @@ export default { ...@@ -508,8 +508,8 @@ export default {
508 //户双击事件 508 //户双击事件
509 dbclick(bsm) { 509 dbclick(bsm) {
510 clearTimeout(this.time); 510 clearTimeout(this.time);
511 this.hbsmList.push(bsm); // 将户bsm放进hbsmList 511 // this.hbsmList.push(bsm); // 将户bsm放进hbsmList
512 this.$parent.getHbsm(this.hbsmList, true); 512 this.$parent.getHbsm(bsm, true);
513 }, 513 },
514 //删除多重数组中的某一项 514 //删除多重数组中的某一项
515 deleteArrOption(arr, item) { 515 deleteArrOption(arr, item) {
......