管道基础大数据平台系统开发-【前端】-新系統界面
王旭
2023-05-10 86cdd4e6eece0ee4679e62ae347ec003db7d7425
src/components/mapsdk.vue
@@ -75,16 +75,16 @@
            <el-form
              ref="form"
              :model="coordFrom"
              label-width="50px"
            >
              <el-form-item label="经度:">
                <el-input v-model="coordFrom.lon"></el-input>
                <el-input v-model="coordFrom.lon" placeholder="请输入经度"></el-input>
              </el-form-item>
              <el-form-item label="纬度:">
                <el-input v-model="coordFrom.lat"></el-input>
                <el-input v-model="coordFrom.lat" placeholder="请输入维度"></el-input>
              </el-form-item>
              <el-form-item label="高度:">
                <el-input v-model="coordFrom.height"></el-input>
                <el-input v-model="coordFrom.height" placeholder="请输入高度"></el-input>
              </el-form-item>
              <el-form-item>
                <el-button
@@ -409,6 +409,20 @@
                </div>
              </td>
            </tr>
            <tr>
              <td>淤泥质土</td>
              <td>
                <div style="width:100px;height:20px;background:rgba(75,74,78,1)">
                </div>
              </td>
            </tr>
            <tr>
              <td>其他</td>
              <td>
                <div style="width:100px;height:20px;background:rgba(225,225,225,1)">
                </div>
              </td>
            </tr>
          </table>
        </el-card>
      </div>
@@ -724,9 +738,9 @@
        val: 50,
      },
      coordFrom: {
        lon: 116.3911,
        lat: 39.9115,
        height: 100000,
        lon: "",
        lat:"",
        height: "",
      },
      listData: {
        name: null,
@@ -904,8 +918,13 @@
        licenseServer: window.sceneConfig.licenseServer,
      });
      window.Viewer = window.sgworld._Viewer;
      if (is_production) {
        Viewer.imageryLayers.removeAll();
      }
      //定位
      // sgworld.Navigate.jumpTo({
      //   //跳转视角
@@ -935,6 +954,25 @@
      //开启深度检测
      // sgworld.Analysis.depthTestAgainstTerrain(true)
      Viewer.scene.globe.depthTestAgainstTerrain = true;
      if (is_production) {
        var base_ulr = window.sceneConfig.baseUrl;
        if (base_ulr.indexOf('{host}') > -1) {
          base_ulr = base_ulr.replace("{host}", iisHost)
        }
        Viewer.imageryLayers.addImageryProvider(
          new Cesium.UrlTemplateImageryProvider({
            url: base_ulr,
            maximumLevel: 9
          })
        );
        window.BaseMapLayer = Viewer.imageryLayers.addImageryProvider(
          new Cesium.UrlTemplateImageryProvider({
            url: base_ulr,
          })
        );
      }
      var option = {
        url: window.sceneConfig.SGUrl,
@@ -1495,7 +1533,7 @@
        return
      }
      if (res.result.length <= 0) {
        this.$message.error('暂无附件');
        this.$message('暂无附件');
        return
      }
@@ -1722,7 +1760,7 @@
      z-index: 40;
      position: absolute;
      right: 8%;
      bottom: 1%;
      bottom: 10%;
    }
    .propertiesPop {
      width: 350px;