1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!-- 建筑立面图 -->
- <template>
- <div class='build-list'>
- <el-table :data='tableData' style='width: 100%' @row-click='innerVisible = true'>
- <el-table-column type='index' label='序号' width='80'></el-table-column>
- <el-table-column prop='xm' label='项目' width='160'>
- <template slot-scope='{row}'>{{row.xm || '--'}}</template>
- </el-table-column>
- <el-table-column prop='unit' label='单位'>
- <template slot-scope='{row}'>{{row.unit || '--'}}</template>
- </el-table-column>
- <el-table-column prop='shopsnum' label='图例'>
- <template slot-scope='{row}'>{{row.shopsnum || '--'}}</template>
- </el-table-column>
- </el-table>
- <div>
- <img src alt />
- </div>
- </div>
- </template>
- <script>
- import { queryEquipmentList } from '@/api/equipmentList.js'
- import { mapGetters } from 'vuex'
- export default {
- components: { Select, EqDetail },
- data() {
- return {
- tableData: []
- }
- },
- computed: {
- ...mapGetters(['floorSelect'])
- },
- methods: {
- getList() {
- let postParams = {
- tab_code: this.param
- }
- let data = {
- plazaId: this.$store.state.plazaId,
- major: this.major
- }
- queryEquipmentList({ data, postParams }).then(res => {
- console.log(res)
- this.tableData = res.data.data
- this.total = res.data.count
- })
- }
- },
- mounted() {}
- }
- </script>
- <style lang="less" scoped>
- .build-list {
- .eq-list-top {
- display: flex;
- margin-bottom: 12px;
- }
- td {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .foot {
- height: 32px;
- display: flex;
- justify-content: flex-end;
- margin-top: 28px;
- }
- }
- </style>
|