This commit is contained in:
parent
45157e2ee9
commit
133043bf97
|
@ -9,7 +9,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|||
// 创建axios实例
|
||||
const service = axios.create({
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.NODE_ENV === "production" ? `${window.dasConfig.protocol}${window.dasConfig.ip}:${window.dasConfig.port}/${window.dasConfig.prodApi}` : process.env.VUE_APP_BASE_API,
|
||||
baseURL: process.env.NODE_ENV === "production" ? `${window.dasConfig.protocol}${window.dasConfig.ip}:${window.dasConfig.port}${window.dasConfig.prodApi}` : process.env.VUE_APP_BASE_API,
|
||||
// 超时
|
||||
timeout: 10000
|
||||
})
|
||||
|
|
|
@ -60,12 +60,12 @@
|
|||
<el-table-column label="建筑类型" align="center" prop="buildingType" :formatter="statusFormat" />
|
||||
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-search"
|
||||
@click="handleDetails(scope.row)"
|
||||
>建筑设备</el-button> -->
|
||||
>建筑设备</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<el-tab-pane label="区域空间" name="space">
|
||||
<div class="tabs-body">
|
||||
<space v-if="activeName === 'space'" :infoData="infoData"></space>
|
||||
<building-space v-if="activeName === 'space' && infoData" :infoData="infoData"></building-space>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
||||
|
@ -34,13 +34,13 @@ import {
|
|||
getRegion
|
||||
} from "@/api/iot/region";
|
||||
import Info from './Info'
|
||||
import Space from './Space'
|
||||
import BuildingSpace from './BuildingSpace'
|
||||
export default {
|
||||
name: 'DetailsWrap',
|
||||
props: ['sourceKey'],
|
||||
components: {
|
||||
Info,
|
||||
Space
|
||||
BuildingSpace
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -50,7 +50,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.getInfoByProjectId()
|
||||
this.activeName = 'info'
|
||||
this.activeName = 'space'
|
||||
},
|
||||
methods: {
|
||||
getInfoByProjectId() {
|
||||
|
|
Loading…
Reference in New Issue