| | |
| | | }, |
| | | methods: { |
| | | labelOver(item) { |
| | | debugger |
| | | // debugger |
| | | this.$nextTick(() => { |
| | | item.isShow = true; |
| | | }) |
| | |
| | | }, |
| | | async submitInfo() { |
| | | this.isEdit = false; |
| | | |
| | | if (this.curCameraData.coords.length > 0 && this.curCameraData.coords.length < 4) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "保存失败! 至少需要标记4处!" |
| | | }) |
| | | return |
| | | } |
| | | |
| | | let res = await updateCameraMarks(this.curCameraData); |
| | | if (res.success) { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "保存成功" |
| | | }) |
| | | this.findCameraMarks(this.curCameraData.cameraId); |
| | | } |
| | | }, |
| | |
| | | let param = new FormData(); |
| | | param.append('file', params.file) |
| | | putPanoramaPic(param).then(res => { |
| | | debugger |
| | | // debugger |
| | | //_this.panoramaPath = res.data.panoramaPath + '?' + Math.random(); |
| | | _this.getPanorama() |
| | | _this.$parent.$refs['tracePlot'] && _this.$parent.$refs['tracePlot'].getPanorama(); |