|
@@ -0,0 +1,171 @@
|
|
|
+<template>
|
|
|
+ <div id="createPoint">
|
|
|
+ <div class="condition">
|
|
|
+ <div class="header">
|
|
|
+ <el-button style="float:left;" size="small" type="default" icon="el-icon-back" @click="goBack"></el-button>
|
|
|
+ <el-button size="small" style="float:right" @click="createZone">创建</el-button>
|
|
|
+ </div>
|
|
|
+ <el-scrollbar style="height:calc(100% - 43px)">
|
|
|
+ <div class="item">
|
|
|
+ <span>基本信息:</span>
|
|
|
+ <div>
|
|
|
+ <label><span style="color:red;">*</span>业务空间名称</label>
|
|
|
+ <el-input placeholder="请输入业务空间名称" v-model="zoneName" clearable style="width:215px;margin-right:10px;"></el-input>
|
|
|
+ <label>业务空间编码</label>
|
|
|
+ <el-input placeholder="请输入业务空间编码" v-model="zoneLocalId" clearable style="width:215px;margin-right:10px;"></el-input>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label><span style="color:red;">*</span>所属建筑楼层</label>
|
|
|
+ <el-cascader placeholder='请选择' :options="options" @change="changeFloor" :props="floorProps" filterable ref="buildfloor"
|
|
|
+ style="width:215px;margin-right:10px;"></el-cascader>
|
|
|
+ <label><span style="color:red;">*</span>业务空间类型</label>
|
|
|
+ <el-select v-model="space" placeholder="请选择空间" style="width:215px;margin-right:10px;">
|
|
|
+ <el-option v-for="item in spaceList" :key="item.Code" :label="item.Name" :value="item.Code">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <span>其它可补充信息:</span>
|
|
|
+ <i style="cursor: pointer;" :class="showEx" @click="showEx = (showEx == 'el-icon-arrow-up' ? 'el-icon-arrow-down' : 'el-icon-arrow-up')"></i>
|
|
|
+ <div v-show="showEx == 'el-icon-arrow-up'">
|
|
|
+ <div class="suppMsg">
|
|
|
+ <label>使用面积:</label>
|
|
|
+ <el-input placeholder="请输入使用面积" v-model="zoneName" clearable style="width:215px;margin-right:10px;"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="suppMsg" >
|
|
|
+ <label>备注文字:</label>
|
|
|
+ <el-input placeholder="请输入备注文字" v-model="zoneName" clearable style="width:215px;margin-right:10px;"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="suppMsg" >
|
|
|
+ <label>所属租户:</label>
|
|
|
+ <el-input placeholder="请输入所属租户" v-model="zoneName" clearable style="width:215px;margin-right:10px;"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="suppMsg" >
|
|
|
+ <label>配电容量:</label>
|
|
|
+ <el-input placeholder="请输入配电容量" v-model="zoneName" clearable style="width:215px;margin-right:10px;"></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <p>位置标签图片信息:</p>
|
|
|
+ <locationPointMsg :pointObj="$route.params.item"></locationPointMsg>
|
|
|
+ </div>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import spaceSelect from "@/components/ledger/lib/spaceSelect";
|
|
|
+import locationPointMsg from '@/views/data_admin/buildGraphy/locationPointMsg'
|
|
|
+import { queryDictionaryHead, buildingQuery, shaftSpaceTypeQuery, shaftSpaceBuildingQuery } from '@/api/scan/request';
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ floorProps: {
|
|
|
+ value: 'BuildID',
|
|
|
+ label: 'BuildLocalName',
|
|
|
+ children: 'Floor'
|
|
|
+ },
|
|
|
+ options: [],//建筑楼层
|
|
|
+ spaceList: [],//空间列表
|
|
|
+ space: '',//当前空间
|
|
|
+ buildFloor: [],//建筑楼层信息
|
|
|
+ zoneName: '',//业务空间名称
|
|
|
+ zoneLocalId: '',//业务空间编码
|
|
|
+ showEx: 'el-icon-arrow-down',//下拉菜单
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters("layout", ["projectId"])
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ spaceSelect,
|
|
|
+ locationPointMsg
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.options = this.$route.params.floorData
|
|
|
+ this.getSpaceList();
|
|
|
+ console.log(this.$route.params.item)
|
|
|
+ console.log(this.$route.params.floorData)
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ //创建
|
|
|
+ createZone(){
|
|
|
+ let param = {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //获取空间列表
|
|
|
+ getSpaceList() {
|
|
|
+ let pa = {
|
|
|
+ Filters: `parentId='Space'`
|
|
|
+ }
|
|
|
+ queryDictionaryHead(pa, res => {
|
|
|
+ this.spaceList = res.Content.filter((item => { return item.Name != '元空间' }));
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //选择楼层
|
|
|
+ changeFloor(val) {
|
|
|
+
|
|
|
+ },
|
|
|
+ //返回
|
|
|
+ goBack() {
|
|
|
+ this.$router.push({
|
|
|
+ name: "buildGraphy",
|
|
|
+ params:{nowBuildFloor: this.$route.params.nowBuildFloor}
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ projectId: {
|
|
|
+ handler(val) {
|
|
|
+ this.goBack();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.condition {
|
|
|
+ position: relative;
|
|
|
+ padding: 10px 10px;
|
|
|
+ display: flex;
|
|
|
+ height: calc(100% - 22px);
|
|
|
+ flex-direction: column;
|
|
|
+ border: 1px solid #dfe6ec;
|
|
|
+ background: #fff;
|
|
|
+ .header {
|
|
|
+ padding-bottom: 10px;
|
|
|
+ border-bottom: 1px solid rgba(0, 0, 0, 0.5);
|
|
|
+ span {
|
|
|
+ line-height: 33px;
|
|
|
+ margin-left: 15px;
|
|
|
+ }
|
|
|
+ /deep/ .buildFloor {
|
|
|
+ line-height: 32px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+/deep/ .el-scrollbar__wrap {
|
|
|
+ overflow-x: hidden;
|
|
|
+}
|
|
|
+.item {
|
|
|
+ padding: 10px 10px;
|
|
|
+ label {
|
|
|
+ display: inline-block;
|
|
|
+ padding: 5px 10px;
|
|
|
+ width:100px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.suppMsg{
|
|
|
+ display:inline-block;
|
|
|
+ position:relative;
|
|
|
+}
|
|
|
+</style>
|