多幢页面样式调整
Showing
2 changed files
with
66 additions
and
20 deletions
| 1 | <template> | 1 | <template> |
| 2 | <div class="dz content-form"> | 2 | <div class="dz content-form" ref="mainBox"> |
| 3 | <el-form ref="form" :model="form" label-width="160px"> | 3 | <el-form ref="form" :model="form" label-width="160px"> |
| 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="dzTable"> | 5 | <table border="1" width="100%" cellspacing="0" cellpadding="0" class="dzTable"> |
| ... | @@ -189,8 +189,8 @@ | ... | @@ -189,8 +189,8 @@ |
| 189 | </tbody> | 189 | </tbody> |
| 190 | </table> | 190 | </table> |
| 191 | </el-form> | 191 | </el-form> |
| 192 | <div style="min-height: 40px;text-align: center;margin-top: 10px"> | 192 | <div class="header-button" :style="{width:mainBoxWidth+'px'}"> |
| 193 | <el-button type="success" @click="onSave">保存</el-button> | 193 | <el-button type="primary" class="saveBtn" @click="onSave">保存</el-button> |
| 194 | <el-button type="primary" @click="onSubmit">提交</el-button> | 194 | <el-button type="primary" @click="onSubmit">提交</el-button> |
| 195 | <el-button type="primary" @click="registerCall">登记调用</el-button> | 195 | <el-button type="primary" @click="registerCall">登记调用</el-button> |
| 196 | </div> | 196 | </div> |
| ... | @@ -281,8 +281,29 @@ | ... | @@ -281,8 +281,29 @@ |
| 281 | }], | 281 | }], |
| 282 | value: '', | 282 | value: '', |
| 283 | ytTitleRowspan:1, //用途的单元格垂直合并数量 | 283 | ytTitleRowspan:1, //用途的单元格垂直合并数量 |
| 284 | mainBoxWidth: 0, | ||
| 284 | } | 285 | } |
| 285 | }, | 286 | }, |
| 287 | created() { | ||
| 288 | if(this.source===1){ | ||
| 289 | this.bsm=this.$route.query.bsm; | ||
| 290 | this.form.dzbsm=this.$route.query.bsm; | ||
| 291 | this.getZddm(this.$store.state.zdbsm); | ||
| 292 | }else { | ||
| 293 | this.bsm=this.$route.query.bsm; | ||
| 294 | this.form.dzbsm=this.$route.query.bsm; | ||
| 295 | } | ||
| 296 | if(this.source!==1){ | ||
| 297 | this.bsm=this.$route.query.bsm; | ||
| 298 | this.form.dzbsm=this.$route.query.bsm; | ||
| 299 | this.getDzDetailByBsm(this.$route.query.bsm) | ||
| 300 | } | ||
| 301 | }, | ||
| 302 | mounted(){ | ||
| 303 | this.$nextTick(() => { | ||
| 304 | this.mainBoxWidth = this.$refs.mainBox.clientWidth; | ||
| 305 | }) | ||
| 306 | }, | ||
| 286 | methods: { | 307 | methods: { |
| 287 | registerCall(){ | 308 | registerCall(){ |
| 288 | let data={ | 309 | let data={ |
| ... | @@ -480,21 +501,6 @@ | ... | @@ -480,21 +501,6 @@ |
| 480 | }) | 501 | }) |
| 481 | }, | 502 | }, |
| 482 | }, | 503 | }, |
| 483 | created() { | ||
| 484 | if(this.source===1){ | ||
| 485 | this.bsm=this.$route.query.bsm; | ||
| 486 | this.form.dzbsm=this.$route.query.bsm; | ||
| 487 | this.getZddm(this.$store.state.zdbsm); | ||
| 488 | }else { | ||
| 489 | this.bsm=this.$route.query.bsm; | ||
| 490 | this.form.dzbsm=this.$route.query.bsm; | ||
| 491 | } | ||
| 492 | if(this.source!==1){ | ||
| 493 | this.bsm=this.$route.query.bsm; | ||
| 494 | this.form.dzbsm=this.$route.query.bsm; | ||
| 495 | this.getDzDetailByBsm(this.$route.query.bsm) | ||
| 496 | } | ||
| 497 | }, | ||
| 498 | computed: { | 504 | computed: { |
| 499 | dzbsm() { | 505 | dzbsm() { |
| 500 | return this.$route.query.bsm; | 506 | return this.$route.query.bsm; |
| ... | @@ -525,6 +531,7 @@ | ... | @@ -525,6 +531,7 @@ |
| 525 | box-sizing: border-box; | 531 | box-sizing: border-box; |
| 526 | padding: 18px; | 532 | padding: 18px; |
| 527 | padding-bottom: 0; | 533 | padding-bottom: 0; |
| 534 | margin-bottom: 50px; | ||
| 528 | .iconfont{ | 535 | .iconfont{ |
| 529 | cursor: pointer; | 536 | cursor: pointer; |
| 530 | } | 537 | } |
| ... | @@ -578,5 +585,26 @@ | ... | @@ -578,5 +585,26 @@ |
| 578 | text-align: center; | 585 | text-align: center; |
| 579 | } | 586 | } |
| 580 | } | 587 | } |
| 588 | .header-button { | ||
| 589 | z-index: 3; | ||
| 590 | height: 50px; | ||
| 591 | position: fixed; | ||
| 592 | bottom: 0; | ||
| 593 | right: 0; | ||
| 594 | text-align: center; | ||
| 595 | background-color: #ffffff; | ||
| 596 | .el-button { | ||
| 597 | padding: 10px 30px; | ||
| 598 | margin-top: 8px; | ||
| 599 | } | ||
| 600 | .saveBtn { | ||
| 601 | background-color: #00CACD; | ||
| 602 | border-color: #00CACD; | ||
| 603 | } | ||
| 604 | .saveBtn:hover { | ||
| 605 | background-color: rgba(0, 202, 205, .8); | ||
| 606 | border-color: rgba(0, 202, 205, .8); | ||
| 607 | } | ||
| 608 | } | ||
| 581 | } | 609 | } |
| 582 | </style> | 610 | </style> | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="content_box"> | 2 | <div class="content_box"> |
| 3 | <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"> | 3 | <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" > |
| 4 | <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane> | 4 | <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane> |
| 5 | <el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane> | 5 | <el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane> |
| 6 | </el-tabs> | 6 | </el-tabs> |
| ... | @@ -43,4 +43,22 @@ | ... | @@ -43,4 +43,22 @@ |
| 43 | watch: {}, | 43 | watch: {}, |
| 44 | }; | 44 | }; |
| 45 | </script> | 45 | </script> |
| 46 | <style scoped lang="less"></style> | 46 | <style scoped lang="less"> |
| 47 | .el-tabs{ | ||
| 48 | height: calc(100% - 50px); | ||
| 49 | /deep/.el-tabs__content{ | ||
| 50 | //height: 100%; | ||
| 51 | /deep/.el-tab-pane{ | ||
| 52 | height: 100%; | ||
| 53 | } | ||
| 54 | background: #eaedf5; | ||
| 55 | padding: 0; | ||
| 56 | } | ||
| 57 | /deep/ .el-tabs__item { | ||
| 58 | height: 48px; | ||
| 59 | } | ||
| 60 | /deep/ .el-tabs__header{ | ||
| 61 | background-color: #ffffff; | ||
| 62 | } | ||
| 63 | } | ||
| 64 | </style> | ... | ... |
-
Please register or sign in to post a comment