|
@@ -43,9 +43,9 @@
|
|
添加数据集
|
|
添加数据集
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="editBtn pointClound" @click="showType=3">
|
|
|
|
|
|
+ <!-- <div class="editBtn pointClound" @click="showType=3">
|
|
平面图
|
|
平面图
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -198,12 +198,17 @@
|
|
<div class="defaultPic itemBox active">
|
|
<div class="defaultPic itemBox active">
|
|
<div class="ctrlBox">
|
|
<div class="ctrlBox">
|
|
<p class="ctrlTitle">默认平面图</p>
|
|
<p class="ctrlTitle">默认平面图</p>
|
|
- <div class="ctrlBtn">
|
|
|
|
- <i class="ctrlIcon refreshIcon"></i>
|
|
|
|
- <p class="ctrlText">更新</p>
|
|
|
|
- <div class="tipBox" title="修改点云或数据集后,请更新平面图"></div>
|
|
|
|
|
|
+ <el-popconfirm placement="top" title="系统将创建新的平面图,您上传的平面图将被清除,是否继续?" :hide-icon="true" @confirm="refreshConfirm">
|
|
|
|
+ <el-button slot="reference">
|
|
|
|
+ <div class="ctrlBtn">
|
|
|
|
+ <i class="ctrlIcon refreshIcon"></i>
|
|
|
|
+ <p class="ctrlText">更新</p>
|
|
|
|
+ <!-- <div class="tipBox" title="修改点云或数据集后,请更新平面图"></div> -->
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -212,11 +217,16 @@
|
|
|
|
|
|
<p class="ctrlTitle">自定义平面图</p>
|
|
<p class="ctrlTitle">自定义平面图</p>
|
|
<div class="btnBox">
|
|
<div class="btnBox">
|
|
- <div class="ctrlBtn">
|
|
|
|
- <i class="ctrlIcon disableIcon "></i>
|
|
|
|
- <p class="ctrlText">删除</p>
|
|
|
|
|
|
+ <el-popconfirm placement="top" title="确认删除?" :hide-icon="true" @confirm="delConfirm">
|
|
|
|
+ <el-button slot="reference">
|
|
|
|
+ <div class="ctrlBtn">
|
|
|
|
+ <i class="ctrlIcon disableIcon "></i>
|
|
|
|
+ <p class="ctrlText">删除</p>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
|
- </div>
|
|
|
|
<div class="ctrlBtn">
|
|
<div class="ctrlBtn">
|
|
<i class="ctrlIcon downloadIcon"></i>
|
|
<i class="ctrlIcon downloadIcon"></i>
|
|
<p class="ctrlText">下载</p>
|
|
<p class="ctrlText">下载</p>
|
|
@@ -359,7 +369,8 @@
|
|
const origin = window.location.origin + window.location.pathname
|
|
const origin = window.location.origin + window.location.pathname
|
|
const tokenKry = 'ls.' + origin + '#JWT'
|
|
const tokenKry = 'ls.' + origin + '#JWT'
|
|
this.token = localStorage.getItem(tokenKry)
|
|
this.token = localStorage.getItem(tokenKry)
|
|
- // alert(sceneNum)
|
|
|
|
|
|
+ axios.defaults.headers.common['X-Authorization'] = this.token;
|
|
|
|
+ // alert(sceneNum)
|
|
this.getContorlPoint()
|
|
this.getContorlPoint()
|
|
// this.sceneNum = window.location.pathname.split('/')[2]
|
|
// this.sceneNum = window.location.pathname.split('/')[2]
|
|
// this.$nextTick(() => {
|
|
// this.$nextTick(() => {
|
|
@@ -494,35 +505,31 @@
|
|
|
|
|
|
commit() {
|
|
commit() {
|
|
this.handleData()
|
|
this.handleData()
|
|
- Promise.all([
|
|
|
|
- axios.post('/indoor/' + sceneNum + '/api/controlPoint/save', {
|
|
|
|
- ageControlLocation1: this.ageControlLocation1,
|
|
|
|
- ageControlLocation2: this.ageControlLocation2,
|
|
|
|
- gpsControlCoordinate1: this.gpsControlCoordinate1,
|
|
|
|
- gpsControlCoordinate2: this.gpsControlCoordinate2,
|
|
|
|
- sceneNum: sceneNum,
|
|
|
|
- // id: 1
|
|
|
|
- })
|
|
|
|
- .catch(function(error) {
|
|
|
|
|
|
+ this.showLoading('请稍后...')
|
|
|
|
+ axios.post('/indoor/' + sceneNum + '/api/controlPoint/save', {
|
|
|
|
+ ageControlLocation1: this.ageControlLocation1,
|
|
|
|
+ ageControlLocation2: this.ageControlLocation2,
|
|
|
|
+ gpsControlCoordinate1: this.gpsControlCoordinate1,
|
|
|
|
+ gpsControlCoordinate2: this.gpsControlCoordinate2,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
+ IV.api.AuthenticationService.sendAuthenticationChanged()
|
|
|
|
+ this.getContorlPoint()
|
|
|
|
+ this.hideLoading()
|
|
this.$message({
|
|
this.$message({
|
|
- message: '控制点上传失败',
|
|
|
|
- type: 'error',
|
|
|
|
|
|
+ message: '控制点上传成功',
|
|
|
|
+ type: 'success',
|
|
duration: 2000,
|
|
duration: 2000,
|
|
});
|
|
});
|
|
- }),
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- // this.getImageTransform()
|
|
|
|
- // .catch(_ => {
|
|
|
|
- // alert('地图数据上传失败')
|
|
|
|
- // })
|
|
|
|
- ]).then(() => {
|
|
|
|
- this.getContorlPoint()
|
|
|
|
|
|
+ }).catch(function(error) {
|
|
|
|
+ this.hideLoading()
|
|
this.$message({
|
|
this.$message({
|
|
- message: '控制点上传成功',
|
|
|
|
- type: 'success',
|
|
|
|
|
|
+ message: '控制点上传失败',
|
|
|
|
+ type: 'error',
|
|
duration: 2000,
|
|
duration: 2000,
|
|
});
|
|
});
|
|
- // alert('控制点上传成功')
|
|
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
@@ -622,7 +629,12 @@
|
|
obj.selectionStart = obj.selectionEnd = len;
|
|
obj.selectionStart = obj.selectionEnd = len;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ refreshConfirm() {
|
|
|
|
+ console.log('refreshConfirm')
|
|
|
|
+ },
|
|
|
|
+ delConfirm() {
|
|
|
|
+ console.log('delConfirm')
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|