zhangzengfei
2021-05-13 32719a325eb17289e11be401b3ed642f82912f52
src/pages/panoramicView/components/LabelMark.vue
@@ -297,7 +297,7 @@
  },
  methods: {
    labelOver(item) {
      debugger
      // debugger
      this.$nextTick(() => {
        item.isShow = true;
      })
@@ -360,8 +360,21 @@
    },
    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);
      }
    },
@@ -399,7 +412,7 @@
      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();