|
@@ -0,0 +1,67 @@
|
|
|
+<template>
|
|
|
+ <div id="manageTenantZone">
|
|
|
+ <el-row style="margin:5px 0 0 0;">
|
|
|
+ <el-button style="float:left;" size="small" type="default" icon="el-icon-back" @click="goback"></el-button>
|
|
|
+ <floor-cascader @change="changeFloor"></floor-cascader>
|
|
|
+ <my-cascader ref="cascader" @change="changeDevice"></my-cascader>
|
|
|
+ <el-button style="float:right;margin-top:1px;">取消</el-button>
|
|
|
+ <el-button style="float:right;margin-top:1px;margin-right:10px;">确认</el-button>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="main-container"></el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import floorCascader from "@/components/ledger/lib/floorCascader";
|
|
|
+import myCascader from "@/components/ledger/lib/cascader";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ floorCascader,
|
|
|
+ myCascader
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {};
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters("layout", ["projectId", "projects"])
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ mounted() {
|
|
|
+ // this.canvasWidth = this.$refs.graphy.offsetWidth;
|
|
|
+ // this.canvasHeight = this.$refs.graphy.offsetHeight;
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 返回
|
|
|
+ goback() {
|
|
|
+ this.$router.push({ name: "facilityLedger" })
|
|
|
+ },
|
|
|
+ //修改楼层
|
|
|
+ changeFloor(value) {
|
|
|
+ console.log(value);
|
|
|
+ },
|
|
|
+ //修改设备族
|
|
|
+ changeDevice(value) {
|
|
|
+ console.log(value);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ projectId() {
|
|
|
+ this.$router.push({ name: "facilityLedger" })
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="less" scoped>
|
|
|
+@normal-border-color: #e4e4e4;
|
|
|
+@normal-border-active-color: #e8e8e8;
|
|
|
+#manageTenantZone {
|
|
|
+ height: 100%;
|
|
|
+ .main-container {
|
|
|
+ margin-top: 10px;
|
|
|
+ background: #fff;
|
|
|
+ border: 1px solid @normal-border-color;
|
|
|
+ height: calc(100% - 53px);
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|