zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<template>
  <div>
    <el-container>
      <el-header>项目管理</el-header>
      <el-container>
        <el-aside width="180px">
          <el-menu :default-active="$route.path">
            <el-menu-item-group>
              <el-menu-item> <router-link to="/"><el-button round size="mini">返回列表</el-button> </router-link></el-menu-item>
            </el-menu-item-group>
            <el-menu-item :index="'/area/building/details/'">
              <span slot="title">楼栋信息</span>
            </el-menu-item>
            <el-menu-item :index="'/area/building/details/'">
              <span slot="title">影像资料信息</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-container>
          <el-main>
            <router-view></router-view>
          </el-main>
<!--          <el-footer>-->
<!--            <el-row :gutter="20" type="flex" justify="space-around">-->
<!--              <el-col :span="8">-->
<!--                <el-button size="mini" v-if="prevPageBtn"  @click="handlePrevPage">上一页</el-button>-->
<!--                <el-button size="mini" type="primary" v-if="nextPageBtn" @click="handleNextPage">下一页</el-button>-->
<!--              </el-col>-->
<!--            </el-row>-->
<!--          </el-footer>-->
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>
 
<script>
//import '../area/style/area.styl'
import { queryTabAttrs } from '@/api/area'
import { mapState } from 'vuex'
export default {
  data: function () {
    return {
      menu: [],
      swithMenu: [],
      nextPageBtn: false,
      prevPageBtn: false,
      currentIndex: 0,
      tabName: 'projectBasicInformation'
    }
  },
  // created () {
  //   this.initMenu()
  // },
  // computed: {
  //   ...mapState({
  //     detailsParams: state => state.risk.detailsParams
  //   })
  // },
  // methods: {
  //   initMenu () {
  //     let params = {
  //       isManage: true,
  //       modify: false,
  //       objectType: this.detailsParams.objectType,
  //       serialno: this.detailsParams.serialno
  //     }
  //     queryTabAttrs(params).then(res => {
  //       this.menu = res.result
  //       this.swithMenu = this.menu.filter(item => item.isClick === true)
  //       this.currentIndex = this.menu.findIndex((item) => {
  //         return item.tabName === this.tabName
  //       })
  //       this.prevPageBtn = Boolean(this.swithMenu[this.currentIndex - 1])
  //       this.nextPageBtn = Boolean(this.swithMenu[this.currentIndex + 1])
  //     })
  //   },
  //   handleSwith (value) {
  //     this.tabName = value
  //     this.$router.push({ path: '/area/projectManagement/details/' + value })
  //     this.initMenu()
  //   },
  //   handleNextPage () {
  //     this.tabName = this.swithMenu[this.currentIndex + 1].tabName
  //     this.goDetails(this.tabName)
  //     this.initMenu()
  //   },
  //   handlePrevPage () {
  //     this.tabName = this.swithMenu[this.currentIndex - 1].tabName
  //     this.goDetails(this.tabName)
  //     this.initMenu()
  //   },
  //   goDetails (value) {
  //     this.$router.push({ path: '/area/projectManagement/details/' + value })
  //   }
  // }
}
</script>
 
<style lang="stylus" scoped>
// .el-header{
//   padding-left: 20px;
//   height: 46px !important;
//   line-height: 46px;
//   font-size: 14px;
//   background-color: #F9F9F9;
// }
  .el-aside{
    border-right 1px solid #eee
  }
  // .el-footer{
  //   position: fixed
  //   width 100%
  //   bottom 0
  //   background-color white
  //   height 100px !important
  //   padding-top 20px
  // }
</style>