|
@@ -30,9 +30,9 @@ getLocation 定位
|
|
<div v-for="(item,index) in pointNoData" :key="index">
|
|
<div v-for="(item,index) in pointNoData" :key="index">
|
|
<div class="point">
|
|
<div class="point">
|
|
<span>{{item.Name}}</span>
|
|
<span>{{item.Name}}</span>
|
|
- <el-button @click="getDetails(item)">编辑点位标签</el-button>
|
|
|
|
- <el-button :disabled="!(item.X == 0 && item.Y == 0)" @click="btnClick(item)">
|
|
|
|
- {{ item.X == 0 && item.Y == 0 ? '插旗' : '定位'}}</el-button>
|
|
|
|
|
|
+ <el-button size="mini" @click="getDetails(item)" icon="el-icon-edit-outline"></el-button>
|
|
|
|
+ <el-button :disabled="!map" size="mini" @click="btnClick(item)"
|
|
|
|
+ :icon="item.X == 0 && item.Y == 0 ? 'el-icon-s-flag' : 'el-icon-place'"></el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -97,7 +97,7 @@ getLocation 定位
|
|
<template v-for="(item,index) in installPic">
|
|
<template v-for="(item,index) in installPic">
|
|
<div class="point-image" :key="index">
|
|
<div class="point-image" :key="index">
|
|
<i class="el-icon-delete" @click="delImage(index,installPic)"></i>
|
|
<i class="el-icon-delete" @click="delImage(index,installPic)"></i>
|
|
- <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200&height=200'" alt>
|
|
|
|
|
|
+ <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200&height=200'" alt>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<load-img keyName="安装位置" @getKey="getKey"></load-img>
|
|
<load-img keyName="安装位置" @getKey="getKey"></load-img>
|
|
@@ -107,7 +107,7 @@ getLocation 定位
|
|
<template v-for="(item,index) in panorama">
|
|
<template v-for="(item,index) in panorama">
|
|
<div class="point-image" :key="index">
|
|
<div class="point-image" :key="index">
|
|
<i class="el-icon-delete" @click="delImage(index,panorama)"></i>
|
|
<i class="el-icon-delete" @click="delImage(index,panorama)"></i>
|
|
- <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200&height=200'" alt>
|
|
|
|
|
|
+ <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200&height=200'" alt>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<load-img keyName="全景照片" @getKey="getKey"></load-img>
|
|
<load-img keyName="全景照片" @getKey="getKey"></load-img>
|
|
@@ -117,7 +117,7 @@ getLocation 定位
|
|
<template v-for="(item,index) in rimPic">
|
|
<template v-for="(item,index) in rimPic">
|
|
<div class="point-image" :key="index">
|
|
<div class="point-image" :key="index">
|
|
<i class="el-icon-delete" @click="delImage(index,rimPic)"></i>
|
|
<i class="el-icon-delete" @click="delImage(index,rimPic)"></i>
|
|
- <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200&height=200'" alt>
|
|
|
|
|
|
+ <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200&height=200'" alt>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<load-img keyName="周边照片" @getKey="getKey"></load-img>
|
|
<load-img keyName="周边照片" @getKey="getKey"></load-img>
|
|
@@ -127,7 +127,7 @@ getLocation 定位
|
|
<template v-for="(item,index) in videoPic">
|
|
<template v-for="(item,index) in videoPic">
|
|
<div class="point-image" :key="index">
|
|
<div class="point-image" :key="index">
|
|
<i class="el-icon-delete" @click="delImage(index,videoPic)"></i>
|
|
<i class="el-icon-delete" @click="delImage(index,videoPic)"></i>
|
|
- <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200&height=200'" alt>
|
|
|
|
|
|
+ <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200&height=200'" alt>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<load-img keyName="视频" @getKey="getKey"></load-img>
|
|
<load-img keyName="视频" @getKey="getKey"></load-img>
|
|
@@ -137,7 +137,7 @@ getLocation 定位
|
|
<template v-for="(item,index) in elsePic">
|
|
<template v-for="(item,index) in elsePic">
|
|
<div class="point-image" :key="index">
|
|
<div class="point-image" :key="index">
|
|
<i class="el-icon-delete" @click="delImage(index,elsePic)"></i>
|
|
<i class="el-icon-delete" @click="delImage(index,elsePic)"></i>
|
|
- <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200&height=200'" alt>
|
|
|
|
|
|
+ <img :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200&height=200'" alt>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<load-img keyName="其他照片" @getKey="getKey"></load-img>
|
|
<load-img keyName="其他照片" @getKey="getKey"></load-img>
|
|
@@ -260,6 +260,7 @@ export default {
|
|
confirmButtonText: '更新',
|
|
confirmButtonText: '更新',
|
|
cancelButtonText: '创建'
|
|
cancelButtonText: '创建'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
|
+ this.$emit("closeCanvas")
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'updateLocationPointZone',
|
|
name: 'updateLocationPointZone',
|
|
params: { item: item, floorData: this.floorOption, nowBuildFloor: this.buildingData }
|
|
params: { item: item, floorData: this.floorOption, nowBuildFloor: this.buildingData }
|
|
@@ -336,29 +337,23 @@ export default {
|
|
getPointList() {
|
|
getPointList() {
|
|
if (this.buildingData[0] && this.buildingData[1]) {
|
|
if (this.buildingData[0] && this.buildingData[1]) {
|
|
let param = {
|
|
let param = {
|
|
- Filters: `BuildId='${this.buildingData[0]}';floorId='${this.buildingData[1]}'`,
|
|
|
|
- "Cascade": [{ "Name": "imageList" }]
|
|
|
|
- };
|
|
|
|
- // console.log(param)
|
|
|
|
- //当index为1时FloorId为空
|
|
|
|
|
|
+ Filters: `BuildId='${this.buildingData[0]}';floorId='${this.buildingData[1]}'`,
|
|
|
|
+ "Cascade": [{ "Name": "imageList" }]
|
|
|
|
+ };
|
|
if (this.index == "1") {
|
|
if (this.index == "1") {
|
|
- // param.FloorId = "";
|
|
|
|
|
|
+ param.Filters = `BuildId='${this.buildingData[0]}';floorId isNull`
|
|
}
|
|
}
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|
|
locationPointQuery(param, res => {
|
|
locationPointQuery(param, res => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
- console.log(res)
|
|
|
|
- // res.data.PointList.splice(0, 1);
|
|
|
|
- this.pointData = res.Content;
|
|
|
|
|
|
+ if (this.index == "1") {
|
|
|
|
+ this.pointNoData = res.Content;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.pointData = res.Content;
|
|
|
|
+ }
|
|
this.$emit("getPointList", res.Content);
|
|
this.$emit("getPointList", res.Content);
|
|
- // if (this.index == "1") {
|
|
|
|
- // this.pointNoData = res.data.PointList;
|
|
|
|
- // } else {
|
|
|
|
- // this.$emit("getPointList", res.data.PointList);
|
|
|
|
- // this.pointData = res.data.PointList;
|
|
|
|
- // }
|
|
|
|
})
|
|
})
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//初始化
|
|
//初始化
|