Browse Source

修改雨刷

develop
little4 2 months ago
parent
commit
e5e1077d60
  1. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue

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

@ -5,11 +5,11 @@
<ElTabs v-model="activeName" class="tabs"> <ElTabs v-model="activeName" class="tabs">
<ElTabPane label="基本信息" name="first"> <ElTabPane label="基本信息" name="first">
<Descriptions :list="list" :data="data" style="gap: 18px"> <Descriptions :list="list" :data="data" style="gap: 18px">
<template #content-deviceName v-hasPermi="['business:home:camera']"> <template #content-deviceName >
<span>{{ dialogData.deviceName || "-" }}</span> <span>{{ dialogData.deviceName || "-" }}</span>
<img <img
@click="controlDialogVisible = true" @click="controlDialogVisible = true"
v-if=" v-if="check('business:home:camera') &&
[0, '0'].includes( [0, '0'].includes(
dialogData.parseOtherConfig && dialogData.parseOtherConfig &&
dialogData.parseOtherConfig.ptzCtrl dialogData.parseOtherConfig.ptzCtrl
@ -22,9 +22,9 @@
/> />
</template> </template>
</Descriptions> </Descriptions>
<template v-hasPermi="['business:home:camera']">
<div <div
v-if="PanoramicCameraTypes.indexOf(dialogData.childType) == -1" v-if="check('business:home:camera') && PanoramicCameraTypes.indexOf(dialogData.childType) == -1"
style="width: 50%; display: flex; margin-top: 18px" style="width: 50%; display: flex; margin-top: 18px"
> >
<span <span
@ -45,7 +45,6 @@
></Button ></Button
> >
</div> </div>
</template>
</ElTabPane> </ElTabPane>
<!-- <ElTabPane label="摄相机参数" name="second">摄相机参数</ElTabPane> --> <!-- <ElTabPane label="摄相机参数" name="second">摄相机参数</ElTabPane> -->
<ElTabPane label="在线率统计" name="third"> <ElTabPane label="在线率统计" name="third">
@ -79,6 +78,7 @@ import Descriptions from "@screen/components/Descriptions.vue";
import CameraControlDialog from "./components/CameraControlDialog.vue"; import CameraControlDialog from "./components/CameraControlDialog.vue";
import LineChart from "../../LineChart/index.vue"; import LineChart from "../../LineChart/index.vue";
import { PanoramicCameraTypes } from "@screen/utils/enum.js"; import { PanoramicCameraTypes } from "@screen/utils/enum.js";
import { checkPermi } from "@/utils/permission.js";
import { import {
getRoadInfoByStakeMark, getRoadInfoByStakeMark,
@ -166,7 +166,9 @@ export default {
if (roadInfo) this.data.roadName = roadInfo.roadName; if (roadInfo) this.data.roadName = roadInfo.roadName;
}, },
methods: { methods: {
check(arr){
return checkPermi(arr);
},
handleClose() { handleClose() {
this.controlDialogVisible = false; this.controlDialogVisible = false;
}, },

Loading…
Cancel
Save