|
@@ -72,7 +72,7 @@
|
|
|
<!-- 添加-修改楼层 -->
|
|
|
<addFloor :title="floorTitle" ref="addFloorDialog" :curBuildId="curBuildId" :curFloorId="curFloorId" @refresh="refresh" />
|
|
|
<!-- 添加-修改建筑 -->
|
|
|
- <addBuild :title="buildTitle" ref="addBuildDialog" />
|
|
|
+ <addBuild :title="buildTitle" ref="addBuildDialog" :currentType="currentType"/>
|
|
|
<!-- 删除建筑-删除楼层 -->
|
|
|
<el-dialog title="提示" :visible.sync="delDialogVis" width="20%" @close="handleClose" id="messageDialog">
|
|
|
<div>确定要删除该{{delText}}?</div>
|
|
@@ -90,23 +90,24 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import addFloor from "@/views/ready/buildfloor/addFloor/index";
|
|
|
-import addBuild from "@/components/ready/buildfloor/addBuild";
|
|
|
-import { mapGetters, mapActions } from "vuex";
|
|
|
-import addConnectivity from "@/components/ready/buildfloor/addConnectivity";
|
|
|
-import checkGraphy from "./drawGraphy/checkGraphy"; //查看图片
|
|
|
-import { buildingQueryAndCount, floorQueryAndSign, manageDeleteFloor } from "@/api/scan/request";
|
|
|
-export default {
|
|
|
- components: {
|
|
|
- addFloor,
|
|
|
- addBuild,
|
|
|
- addConnectivity,
|
|
|
- checkGraphy
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- repetitionGraphyVisible: false, // 替换平面图弹窗
|
|
|
- floorTitle: "添加楼层",
|
|
|
+ import addFloor from "@/views/ready/buildfloor/addFloor/index";
|
|
|
+ import addBuild from "@/components/ready/buildfloor/addBuild";
|
|
|
+ import {mapGetters} from "vuex";
|
|
|
+ import addConnectivity from "@/components/ready/buildfloor/addConnectivity";
|
|
|
+ import checkGraphy from "./drawGraphy/checkGraphy"; //查看图片
|
|
|
+ import {buildingQueryAndCount, floorQueryAndSign, manageDeleteFloor} from "@/api/scan/request";
|
|
|
+
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ addFloor,
|
|
|
+ addBuild,
|
|
|
+ addConnectivity,
|
|
|
+ checkGraphy
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ repetitionGraphyVisible: false, // 替换平面图弹窗
|
|
|
+ floorTitle: "添加楼层",
|
|
|
buildTitle: "添加建筑",
|
|
|
delDialogVis: false,
|
|
|
delText: "建筑",
|
|
@@ -117,18 +118,19 @@ export default {
|
|
|
},
|
|
|
buildList: [],
|
|
|
tableData: [],
|
|
|
- page: {
|
|
|
- pageSize: 500,
|
|
|
- pageSizes: [10, 20, 50, 100],
|
|
|
- pageNumber: 1,
|
|
|
- total: 0
|
|
|
- },
|
|
|
- loading: false, //列表loading
|
|
|
- curBuildId: "", //当前选中的建筑id
|
|
|
- curFloorId: "", //当前选中的楼层id
|
|
|
- modelId: "",
|
|
|
- alreadyRelatedModel: []
|
|
|
- };
|
|
|
+ page: {
|
|
|
+ pageSize: 500,
|
|
|
+ pageSizes: [10, 20, 50, 100],
|
|
|
+ pageNumber: 1,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
+ loading: false, //列表loading
|
|
|
+ curBuildId: "", //当前选中的建筑id
|
|
|
+ curFloorId: "", //当前选中的楼层id
|
|
|
+ modelId: "",
|
|
|
+ alreadyRelatedModel: [],
|
|
|
+ currentType: 'add'
|
|
|
+ };
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId"])
|
|
@@ -164,8 +166,8 @@ export default {
|
|
|
},
|
|
|
//add build
|
|
|
addBuild() {
|
|
|
- this.$message.warning("开发中...");
|
|
|
- return;
|
|
|
+ // this.$message.warning("开发中...");
|
|
|
+ // return;
|
|
|
this.$refs.addBuildDialog.showDialog();
|
|
|
},
|
|
|
//delete build
|
|
@@ -177,8 +179,9 @@ export default {
|
|
|
},
|
|
|
//edit build
|
|
|
editBuild() {
|
|
|
- this.$message.warning("开发中...");
|
|
|
- return;
|
|
|
+ this.currentType = 'edit'
|
|
|
+ this.buildTitle = '编辑建筑'
|
|
|
+ this.$refs.addBuildDialog.showDialog();
|
|
|
},
|
|
|
//delete floor
|
|
|
handleDelete(floor) {
|