|
@@ -33,16 +33,18 @@
|
|
</div> -->
|
|
</div> -->
|
|
<div id="plane">
|
|
<div id="plane">
|
|
|
|
|
|
- <div class="main" v-if="!isEdit && !isUpload">
|
|
|
|
|
|
+ <div class="main" v-if="showType==0">
|
|
<!-- <div class="title">定位</div> -->
|
|
<!-- <div class="title">定位</div> -->
|
|
<p class="desc">提示:当前控制点坐标为系统提供的默认值,请将控制点坐标调整为真实的地理坐标。</p>
|
|
<p class="desc">提示:当前控制点坐标为系统提供的默认值,请将控制点坐标调整为真实的地理坐标。</p>
|
|
<div class="editBtn" @click="openEdit">修改控制点</div>
|
|
<div class="editBtn" @click="openEdit">修改控制点</div>
|
|
|
|
|
|
|
|
|
|
- <div class="editBtn pointClound" @click="isUpload=true">
|
|
|
|
|
|
+ <div class="editBtn pointClound" @click="showType=2">
|
|
添加数据集
|
|
添加数据集
|
|
- <!-- <input id="file" multiple="multiple" accept=".e57, .pts, .ptx, .ply, .xyz, .las" @change="upLoadPointClound" type="file"> -->
|
|
|
|
- <!-- <input id="file" multiple="multiple" accept=".las" @change="upLoadPointClound($event)" type="file"> -->
|
|
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="editBtn pointClound" @click="showType=3">
|
|
|
|
+ 平面图
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@@ -51,11 +53,18 @@
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
- <div class="control_box" v-if="isEdit">
|
|
|
|
|
|
+ <div class="control_box" v-if="showType==1">
|
|
|
|
+ <div class="headerBack">
|
|
|
|
+ <div class="topBox">
|
|
|
|
+ <i class="backIcon" @click="showType=0"></i>
|
|
|
|
+ <p class="headerTitle">修改控制点</p>
|
|
|
|
+ </div>
|
|
|
|
+ <p style="padding-left: 32px;" class="desc">通过两个控制点坐标确定点云在地图上的位置</p>
|
|
|
|
+ </div>
|
|
<div class="scrollBox">
|
|
<div class="scrollBox">
|
|
|
|
|
|
- <h4>修改控制点 </h4>
|
|
|
|
- <p class="desc">通过两个控制点坐标确定点云在地图上的位置</p>
|
|
|
|
|
|
+ <!-- <h4>修改控制点 </h4>
|
|
|
|
+ <p class="desc">通过两个控制点坐标确定点云在地图上的位置</p> -->
|
|
<p class="itemTitle">EPSG 坐标系 </p>
|
|
<p class="itemTitle">EPSG 坐标系 </p>
|
|
<div class="formItem">
|
|
<div class="formItem">
|
|
<div class="allIpt">
|
|
<div class="allIpt">
|
|
@@ -169,7 +178,7 @@
|
|
<button id="clear">取消</button> -->
|
|
<button id="clear">取消</button> -->
|
|
<!-- <div id="clear" @click="getImageTransform">提交地图信息</div> -->
|
|
<!-- <div id="clear" @click="getImageTransform">提交地图信息</div> -->
|
|
<!-- <div id="clear" @click="clearMap">取消</div> -->
|
|
<!-- <div id="clear" @click="clearMap">取消</div> -->
|
|
- <div id="clear" @click="isEdit=false">取消</div>
|
|
|
|
|
|
+ <div id="clear" @click="showType=0">取消</div>
|
|
<div class="submitBtn" @click="commit()">
|
|
<div class="submitBtn" @click="commit()">
|
|
保存
|
|
保存
|
|
</div>
|
|
</div>
|
|
@@ -178,8 +187,56 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
- <upload-pointClound v-if="isUpload" />
|
|
|
|
- <!-- <image-tranform ref="imageTranform" /> -->
|
|
|
|
|
|
+ <upload-pointClound v-if="showType==2" />
|
|
|
|
+ <div id="planePic" v-if="showType==3">
|
|
|
|
+ <div class="headerBack">
|
|
|
|
+ <div class="topBox">
|
|
|
|
+ <i class="backIcon" @click="showType =0"></i>
|
|
|
|
+ <p class="headerTitle">平面图</p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="defaultPic itemBox active">
|
|
|
|
+ <div class="ctrlBox">
|
|
|
|
+ <p class="ctrlTitle">默认平面图</p>
|
|
|
|
+ <div class="ctrlBtn">
|
|
|
|
+ <i class="ctrlIcon refreshIcon"></i>
|
|
|
|
+ <p class="ctrlText">更新</p>
|
|
|
|
+ <div class="tipBox" title="修改点云或数据集后,请更新平面图"></div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="diyPic itemBox ">
|
|
|
|
+ <div class="ctrlBox">
|
|
|
|
+
|
|
|
|
+ <p class="ctrlTitle">自定义平面图</p>
|
|
|
|
+ <div class="btnBox">
|
|
|
|
+ <div class="ctrlBtn">
|
|
|
|
+ <i class="ctrlIcon disableIcon "></i>
|
|
|
|
+ <p class="ctrlText">删除</p>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ctrlBtn">
|
|
|
|
+ <i class="ctrlIcon downloadIcon"></i>
|
|
|
|
+ <p class="ctrlText">下载</p>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ctrlBtn">
|
|
|
|
+ <i class="ctrlIcon uploadIcon"></i>
|
|
|
|
+ <p class="ctrlText">上传</p>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="tipText">
|
|
|
|
+ 操作说明<br/> 1. 下载默认平面图,支持.png文件下载;<br /> 2. 解压下载的压缩包,替换压缩包中的图片文件;<br /> (文件名,图片大小、格式需与原图保持一致)
|
|
|
|
+ <br /> 3. 上传平面图<br />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -232,8 +289,7 @@
|
|
status: 0,
|
|
status: 0,
|
|
showImageTranform: true,
|
|
showImageTranform: true,
|
|
showImageTranform1: true,
|
|
showImageTranform1: true,
|
|
- isEdit: false,
|
|
|
|
- isUpload: false,
|
|
|
|
|
|
+ showType: 0,
|
|
pointLayerArray: [],
|
|
pointLayerArray: [],
|
|
map: null,
|
|
map: null,
|
|
gaodeMapLayer: {},
|
|
gaodeMapLayer: {},
|
|
@@ -291,6 +347,7 @@
|
|
blat: '22',
|
|
blat: '22',
|
|
balt: ''
|
|
balt: ''
|
|
},
|
|
},
|
|
|
|
+ token: null
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -299,7 +356,10 @@
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
- // alert(sceneNum)
|
|
|
|
|
|
+ const origin = window.location.origin + window.location.pathname
|
|
|
|
+ const tokenKry = 'ls.' + origin + '#JWT'
|
|
|
|
+ this.token = localStorage.getItem(tokenKry)
|
|
|
|
+ // alert(sceneNum)
|
|
this.getContorlPoint()
|
|
this.getContorlPoint()
|
|
// this.sceneNum = window.location.pathname.split('/')[2]
|
|
// this.sceneNum = window.location.pathname.split('/')[2]
|
|
// this.$nextTick(() => {
|
|
// this.$nextTick(() => {
|
|
@@ -528,7 +588,7 @@
|
|
|
|
|
|
},
|
|
},
|
|
openEdit() {
|
|
openEdit() {
|
|
- this.isEdit = true
|
|
|
|
|
|
+ this.showType = 1
|
|
this.ax = this.showData.ax
|
|
this.ax = this.showData.ax
|
|
this.ay = this.showData.ay
|
|
this.ay = this.showData.ay
|
|
this.bx = this.showData.bx
|
|
this.bx = this.showData.bx
|
|
@@ -538,29 +598,13 @@
|
|
this.blon = this.showData.blon
|
|
this.blon = this.showData.blon
|
|
this.blat = this.showData.blat
|
|
this.blat = this.showData.blat
|
|
},
|
|
},
|
|
- showLoading() {
|
|
|
|
- $('body').append(' <div id="upload-loading"><img class="icon" src="../img/icon/loading.png" alt=""><span class="text">上传中...</span></div>');
|
|
|
|
|
|
+ showLoading(str) {
|
|
|
|
+ $('body').append(' <div id="upload-loading"><img class="icon" src="../img/icon/loading.png" alt=""><span class="text">' + str + '</span></div>');
|
|
},
|
|
},
|
|
hideLoading() {
|
|
hideLoading() {
|
|
$('#upload-loading').remove()
|
|
$('#upload-loading').remove()
|
|
},
|
|
},
|
|
- upLoadPointClound(e) {
|
|
|
|
- const files = e.target.files[0];
|
|
|
|
- console.log(files)
|
|
|
|
- var formData = new FormData();
|
|
|
|
- formData.append("file", files);
|
|
|
|
-
|
|
|
|
- axios.post('/indoor/' + sceneNum + '/api/controlPoint/test', formData).catch(err => {
|
|
|
|
- // alert(1)
|
|
|
|
- this.showLoading()
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.hideLoading()
|
|
|
|
- IV.api.AuthenticationService.sendAuthenticationChanged()
|
|
|
|
- // IV.SidebarMenuService.goToItem(IV.SidebarMenuService.items[1])
|
|
|
|
-
|
|
|
|
- }, 2000);
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
limtInput(value) {
|
|
limtInput(value) {
|
|
this[value] = this[value].replace(/[^\-?\d.]/g, '')
|
|
this[value] = this[value].replace(/[^\-?\d.]/g, '')
|
|
},
|
|
},
|