|
@@ -11,7 +11,7 @@
|
|
|
<el-switch v-model="showMapPic" @change="changeDisplay" active-color="#15BEC8" inactive-color="#999">
|
|
|
</el-switch>
|
|
|
</div>
|
|
|
- <div class="defaultPic itemBox" :class="!info.status || info.status==0 ?'active':''">
|
|
|
+ <div class="defaultPic itemBox" :class="type==0 ?'active':''">
|
|
|
<div class="ctrlBox">
|
|
|
<div class="ctrlTitle">
|
|
|
默认平面图
|
|
@@ -32,7 +32,7 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div class="diyPic itemBox " :class=" info.status==1 ?'active':''">
|
|
|
+ <div class="diyPic itemBox " :class=" type==1 ?'active':''">
|
|
|
<div class="ctrlBox">
|
|
|
|
|
|
<p class="ctrlTitle">自定义平面图</p>
|
|
@@ -75,6 +75,7 @@
|
|
|
return {
|
|
|
showMapPic: false,
|
|
|
info: {},
|
|
|
+ type: -1,
|
|
|
downloadUrl: 'https://laser.4dkankan.com/'
|
|
|
}
|
|
|
},
|
|
@@ -179,6 +180,7 @@
|
|
|
axios.get(`/indoor/${sceneNum}/api/tiled_maps/detail`).then(res => {
|
|
|
console.log(res.data.data)
|
|
|
this.info = res.data.data
|
|
|
+ this.type = this.info.status || 0
|
|
|
if (this.info.display) {
|
|
|
this.showMapPic = true
|
|
|
} else {
|