|
@@ -11,12 +11,7 @@
|
|
|
</div>
|
|
|
<h4>建筑</h4>
|
|
|
<div class="build-list">
|
|
|
- <div
|
|
|
- v-for="(item,index) in buildList"
|
|
|
- :key="item.BuildID"
|
|
|
- :class="{'floor-item':true,active:item.active}"
|
|
|
- @click="changeBuild(index)"
|
|
|
- >
|
|
|
+ <div v-for="(item,index) in buildList" :key="item.BuildID" :class="{'floor-item':true,active:item.active}" @click="changeBuild(index)">
|
|
|
<span>
|
|
|
{{item.BuildLocalName || item.BuildName}}
|
|
|
<el-badge class="mark" :is-dot="false" />
|
|
@@ -29,32 +24,18 @@
|
|
|
<el-button size="small" type="default" @click="addFloor">添加楼层</el-button>
|
|
|
</div>
|
|
|
<div class="table-box">
|
|
|
- <el-table
|
|
|
- :data="tableData"
|
|
|
- style="width: 100%"
|
|
|
- height="100%"
|
|
|
- v-loading="loading"
|
|
|
- :header-cell-style="headerStyle"
|
|
|
- >
|
|
|
+ <el-table :data="tableData" style="width: 100%" height="100%" v-loading="loading" :header-cell-style="headerStyle">
|
|
|
<el-table-column label="楼层本地名">
|
|
|
<template slot-scope="scope">{{scope.row.FloorLocalName||scope.row.FloorName}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="楼层信息">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- @click="editFloorData(scope.row)"
|
|
|
- plain
|
|
|
- icon="el-icon-edit-outline"
|
|
|
- ></el-button>
|
|
|
+ <el-button size="mini" @click="editFloorData(scope.row)" plain icon="el-icon-edit-outline"></el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="Datasource" label="平面图">
|
|
|
<template slot-scope="scope">
|
|
|
- <p
|
|
|
- v-if="scope.row.StructureInfo&&scope.row.StructureInfo.FloorMap"
|
|
|
- @click="checfDrawImg(scope.row,1)"
|
|
|
- >
|
|
|
+ <p v-if="scope.row.StructureInfo&&scope.row.StructureInfo.FloorMap" @click="checfDrawImg(scope.row,1)">
|
|
|
<i class="iconfont icon-floorplan"></i>
|
|
|
查看平面图
|
|
|
</p>
|
|
@@ -71,62 +52,29 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="SubTypeName" label="楼层贯通关系">
|
|
|
<template slot-scope="scope">
|
|
|
- <span
|
|
|
- style="margin-right:20px"
|
|
|
- >{{scope.row.FloorThroughList?scope.row.FloorThroughList.length:0}}</span>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- @click="changeConnection(scope.row)"
|
|
|
- plain
|
|
|
- icon="el-icon-edit-outline"
|
|
|
- ></el-button>
|
|
|
+ <span style="margin-right:20px">{{scope.row.FloorThroughList?scope.row.FloorThroughList.length:0}}</span>
|
|
|
+ <el-button size="mini" @click="changeConnection(scope.row)" plain icon="el-icon-edit-outline"></el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="action" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- icon="el-icon-delete"
|
|
|
- ></el-button>
|
|
|
+ <el-button size="mini" @click="handleDelete(scope.row)" type="danger" plain icon="el-icon-delete"></el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<!-- 分页 -->
|
|
|
- <el-pagination
|
|
|
- class="fr"
|
|
|
- v-show="tableData && tableData.length"
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="page.pageNumber"
|
|
|
- :page-sizes="page.pageSizes"
|
|
|
- :page-size="page.pageSize"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="page.total"
|
|
|
- ></el-pagination>
|
|
|
+ <el-pagination class="fr" v-show="tableData && tableData.length" @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ :current-page="page.pageNumber" :page-sizes="page.pageSizes" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="page.total"></el-pagination>
|
|
|
</div>
|
|
|
</el-row>
|
|
|
<!-- 添加-修改楼层 -->
|
|
|
- <addFloor
|
|
|
- :title="floorTitle"
|
|
|
- ref="addFloorDialog"
|
|
|
- :curBuildId="curBuildId"
|
|
|
- :curFloorId="curFloorId"
|
|
|
- @refresh="refresh"
|
|
|
- ></addFloor>
|
|
|
+ <addFloor :title="floorTitle" ref="addFloorDialog" :curBuildId="curBuildId" :curFloorId="curFloorId" @refresh="refresh"></addFloor>
|
|
|
<!-- 添加-修改建筑 -->
|
|
|
<addBuild :title="buildTitle" ref="addBuildDialog"></addBuild>
|
|
|
<!-- 删除建筑-删除楼层 -->
|
|
|
- <el-dialog
|
|
|
- title="提示"
|
|
|
- :visible.sync="delDialogVis"
|
|
|
- width="20%"
|
|
|
- @close="handleClose"
|
|
|
- id="messageDialog"
|
|
|
- >
|
|
|
+ <el-dialog title="提示" :visible.sync="delDialogVis" width="20%" @close="handleClose" id="messageDialog">
|
|
|
<div>确定要删除该{{delText}}?</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="delDialogVis=false">取消</el-button>
|
|
@@ -136,11 +84,7 @@
|
|
|
<!-- 添加贯通关系弹窗 -->
|
|
|
<addConnectivity ref="addConnectivity" @refresh="refresh"></addConnectivity>
|
|
|
<!-- 查看图片弹窗 -->
|
|
|
- <checkGraphy
|
|
|
- :checkGraphyVisible="checkGraphyVisible"
|
|
|
- @handleCloseCGraphy="checkGraphyVisible=false"
|
|
|
- :checkGraphyItem="checkGraphyItem"
|
|
|
- ></checkGraphy>
|
|
|
+ <checkGraphy ref="checkGraphy" @refresh="refresh"></checkGraphy>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -160,7 +104,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- checkGraphyVisible: false, //查看平面图弹窗
|
|
|
repetitionGraphyVisible: false, // 替换平面图弹窗
|
|
|
floorTitle: "添加楼层",
|
|
|
buildTitle: "添加建筑",
|
|
@@ -187,13 +130,12 @@ export default {
|
|
|
curBuildId: "", //当前选中的建筑id
|
|
|
curFloorId: "", //当前选中的楼层id
|
|
|
jsonKey: "",
|
|
|
- checkGraphyItem:{}
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId"])
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() { },
|
|
|
created() {
|
|
|
this.init();
|
|
|
},
|
|
@@ -246,9 +188,9 @@ export default {
|
|
|
this.curFloorId = floor.FloorID;
|
|
|
},
|
|
|
//确认删除弹窗关闭
|
|
|
- handleClose() {},
|
|
|
- handleSizeChange(pageSize) {},
|
|
|
- handleCurrentChange(pageNumber) {},
|
|
|
+ handleClose() { },
|
|
|
+ handleSizeChange(pageSize) { },
|
|
|
+ handleCurrentChange(pageNumber) { },
|
|
|
addFloor() {
|
|
|
this.curFloorId = "";
|
|
|
this.$refs.addFloorDialog.showDialog();
|
|
@@ -296,15 +238,13 @@ export default {
|
|
|
this.$refs.addConnectivity.floor = row;
|
|
|
},
|
|
|
// 查看平面图
|
|
|
- checfDrawImg(item, index) {
|
|
|
+ checfDrawImg(row, index) {
|
|
|
if (3 == index) {
|
|
|
- // 查看
|
|
|
+ this.$refs.checkGraphy.showDialog(row)
|
|
|
this.jsonKey = "";
|
|
|
- this.checkGraphyItem = item
|
|
|
- this.checkGraphyVisible = true;
|
|
|
} else {
|
|
|
- this.jsonKey = item.StructureInfo.FloorMap;
|
|
|
- this.$router.push({ name: "repetitionGraphy",query:{jsonKey:this.jsonKey}});
|
|
|
+ this.jsonKey = row.StructureInfo.FloorMap;
|
|
|
+ this.$router.push({ name: "repetitionGraphy", query: { jsonKey: this.jsonKey } });
|
|
|
}
|
|
|
}
|
|
|
},
|