管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-05-11 63be6c3a6e0308812cb9f0ab26a15aff293200a0
src/components/mapsdk.vue
@@ -1016,7 +1016,9 @@
      window.pickedColor;
      window.modeCatchHandler = new Cesium.ScreenSpaceEventHandler(Viewer.scene.canvas);
      window.modeCatchHandler.setInputAction((event) => {
        window.pickedFeature && (window.pickedFeature.color = window.pickedColor);
        if (window.pickedColor) {
          window.pickedFeature && (window.pickedFeature.color = window.pickedColor);
        }
        window.pickedFeature = sgworld.Viewer.scene.pick(event.position);
        if (Cesium.defined(window.pickedFeature)) {
          if (window.pickedFeature.primitive instanceof Cesium.Cesium3DTileset) {
@@ -1038,10 +1040,11 @@
        const data = await comprehensive_selectPubById({ id: result.tileset.pubid })
        if (data.code != 200) {
          return
        } else {
          modelKey = JSON.parse(data.result.json).modelid
        }
        if (!JSON.parse(data.result.json)) {
          return this.$message('没有数据,无法获取主键ID');
        }
        modelKey = JSON.parse(data.result.json).modelid
        if (!modelKey) {
          return this.$message('没有模型主键ID,无法查询数据');
        }