Browse Source

feat parseFloat修复bug & 隐藏摄像头参数和录像查看按钮

wangqin
qingzhengli 8 months ago
parent
commit
3bf8f3ed69
  1. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue
  2. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

7
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue

@ -29,16 +29,15 @@
<Button style="margin-left: 5px" @click.native="controlClick(48)"></Button> <Button style="margin-left: 5px" @click.native="controlClick(48)"></Button>
</div> </div>
</ElTabPane> </ElTabPane>
<ElTabPane label="摄相机参数" name="second">摄相机参数</ElTabPane> <!-- <ElTabPane label="摄相机参数" name="second">摄相机参数</ElTabPane> -->
<ElTabPane label="在线率统计" name="third"> <ElTabPane label="在线率统计" name="third">
<LineChart v-if="activeName === 'third'" :productId="dialogData.id" style="height: 180px" /> <LineChart v-if="activeName === 'third'" :productId="dialogData.id" style="height: 180px" />
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
<div class="bottom"> <!-- <div class="bottom">
<!-- <Button>云台控制</Button> -->
<Button> 录像查看</Button> <Button> 录像查看</Button>
</div> </div> -->
</div> </div>
<CameraControlDialog :deviceId="dialogData.iotDeviceId" v-model="controlDialogVisible" /> <CameraControlDialog :deviceId="dialogData.iotDeviceId" v-model="controlDialogVisible" />

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -88,7 +88,9 @@ let debounceNoneLngLatMessage = debounce(() => {
function resolveDataOptions(data, config, component, isDefault) { function resolveDataOptions(data, config, component, isDefault) {
let lnglat = let lnglat =
data.longitude && data.latitude ? [data.longitude, data.latitude] : null; data.longitude && data.latitude
? [parseFloat(data.longitude), parseFloat(data.latitude)]
: null;
if (!lnglat && !isDefault) debounceNoneLngLatMessage(); if (!lnglat && !isDefault) debounceNoneLngLatMessage();

Loading…
Cancel
Save