北京经济技术开发区经开区虚拟城市项目-【前端】-Web
suerprisePlus
2024-11-19 b37aea3e032a573ad0ae6172ee4e08144db6758f
功能优化
已添加1个文件
已修改4个文件
52 ■■■■■ 文件已修改
src/components/left/leftmenu.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menu/signalling.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menu/tools/special.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/right/FCFH.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sw.zip 补丁 | 查看 | 原始文档 | blame | 历史
src/components/left/leftmenu.vue
@@ -853,8 +853,8 @@
            coord[2]
          ),
          orientation: {
            heading: Cesium.Math.toRadians(coord[3] ? coord[3] : -90),
            pitch: Cesium.Math.toRadians(coord[4] ? coord[4] : 0),
            heading: Cesium.Math.toRadians(coord[3] ? coord[3] : 0),
            pitch: Cesium.Math.toRadians(coord[4] ? coord[4] : -90),
            roll: Cesium.Math.toRadians(0.0)
          },
          duration: 2 //飞行时间8s
src/components/menu/signalling.vue
@@ -15,16 +15,18 @@
            </div>
        </div>
        <div class="signaSlider">
            <el-slider v-model="sliderValue" @change="handleSliderChange" :format-tooltip="formatTooltip"
                :marks="silderMark" :step="1" :min="0" :max="47" show-stops>
            </el-slider>
        </div>
        <div class="signaButton">
            <div class="signalling_play" @click="signallingPlay()">
                <img src="~@/assets/img/new/rightArrow.png" />
            </div>
        </div>
            <div class="sliderBox">
                <el-slider v-model="sliderValue" @change="handleSliderChange" :format-tooltip="formatTooltip"
                    :marks="silderMark" :step="1" :min="0" :max="47" show-stops>
                </el-slider>
            </div>
        </div>
        <!-- <div class="signalling_describe">单位:万人</div>
        <div>
            <ul class="signalling_ul">
@@ -95,15 +97,21 @@
}
.signaSlider {
    margin: 20px 20px;
    display: flex;
    align-items: center;
    margin: 10px 0px;
    width: 100%;
}
.signaButton {
    width: 100%;
    width: 40px;
    display: flex;
    justify-content: center;
    margin-right: 10px;
}
.sliderBox{
    flex: 1;
}
.signalling_type {
src/components/menu/tools/special.vue
@@ -226,6 +226,7 @@
window.divPoint3 = null;
window.instance = null;
let tooltipHTML;
let tooltip;
window.divPoint1 = null;
window.pickFeature = null;
window.imgUrl = null;
@@ -565,6 +566,10 @@
            sgworld.Creator.DeleteObject(buildingPolygon);
            buildingPolygon = null;
          }
          if (tooltip) {
            tooltip.show(false);
            tooltip = null;
          }
          if (nPickFeature.primitive instanceof Cesium.Billboard) {
            if (nPickFeature.id.length > 0) {
              return;
@@ -794,11 +799,11 @@
                    value && (tooltipHTML += `<p>${i}:${value || "无"}</p>`);
                  }
                  // if (tooltip) {
                  //   tooltip.show(false);
                  //   tooltip = null;
                  // }
                  var tooltip = sgworld.Core.CreateResultTooltip(window.Viewer, {
                  if (tooltip) {
                    tooltip.show(false);
                    tooltip = null;
                  }
                  tooltip = sgworld.Core.CreateResultTooltip(window.Viewer, {
                    color: "black",
                    addY: 0,
                    far: 200000,
@@ -810,7 +815,7 @@
                      }
                    },
                  });
                  console.log(tooltipHTML);
                  let description = `<div style=' border: 1px solid #fff;border-radius: 5px;background: rgba(0, 0, 0, 0.8);color: #fff;padding: 15px;'>${tooltipHTML}</div>`;
                  tooltip.showAt(
src/components/right/FCFH.vue
@@ -11,7 +11,7 @@
        </select>
      </div>
      <br />
      <div id="deviation">
      <div id="deviation" style="display:none">
        偏移方向:
        <input name="offset" id="offsetX" class="styled" value="x" checked type="radio" />
        <label>X轴</label>
@@ -21,8 +21,9 @@
        &nbsp;
        <input name="offset" id="offsetZ" class="styled" value="z" type="radio" />
        <label>Z轴</label>
      </div>
      <br />
      </div>
      <div class="checkbox checkbox-primary checkbox-inline" id="selectBox">
        查看层级:
        <select id="selectlevel">
@@ -124,8 +125,10 @@
        if (val.indexOf('YHYQ1') > -1) {
          $("#selectBox").show();
          $("#toolbar").show();
          $("#deviation").hide();
          document.getElementById('offsetX').checked = true;
        } else {
          $("#deviation").show();
          falg = true;
          $("#selectBox").hide();
          $("#toolbar").hide();
sw.zip
Binary files differ