mbp 2 months ago
parent
commit
9aa7576857
  1. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue
  2. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

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

@ -12,7 +12,7 @@
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
</div> </div>
<template #footer v-hasPremi="['business:home:laserFatigueAwakening']"> <template #footer v-if="check(['business:home:laserFatigueAwakening'])">
<Button @click.native="onControlClick" disabled :style="(dialogData.deviceState==='1' && dialogData.iotDeviceId)?'':'background-color:#A9AEB8'">设备操作</Button> <Button @click.native="onControlClick" disabled :style="(dialogData.deviceState==='1' && dialogData.iotDeviceId)?'':'background-color:#A9AEB8'">设备操作</Button>
</template> </template>
<!-- 设备操作弹窗 --> <!-- 设备操作弹窗 -->
@ -31,7 +31,7 @@ import {
} from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js";
import Video from "@screen/components/Video"; import Video from "@screen/components/Video";
import DeviceControlDialog from "./components/DeviceControlDialog.vue"; import DeviceControlDialog from "./components/DeviceControlDialog.vue";
import { checkPermi } from "@/utils/permission.js";
import request from "@/utils/request"; import request from "@/utils/request";
import { dialogDelayVisible } from "./../mixin"; import { dialogDelayVisible } from "./../mixin";
import LineChart from "../../LineChart/index.vue"; import LineChart from "../../LineChart/index.vue";
@ -110,6 +110,9 @@ export default {
// if (roadInfo) this.$set(this.data, "roadName", roadInfo.roadName); // if (roadInfo) this.$set(this.data, "roadName", roadInfo.roadName);
}, },
methods: { methods: {
check(arr){
return checkPermi(arr);
},
onControlClick(){ onControlClick(){
if(this.dialogData.deviceState==='1' && this.dialogData.iotDeviceId){ if(this.dialogData.deviceState==='1' && this.dialogData.iotDeviceId){
this.deviceControlVisible = true this.deviceControlVisible = true

12
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

@ -58,16 +58,16 @@
} }
" @close="onCloseAddNew" /> " @close="onCloseAddNew" />
<template #footer v-hasPremi="['business:home:event','control:event:event:disposalAndRelease','control:event:event:disposeOf','home:notice:releaseEvent']"> <template #footer v-if="check(['business:home:event','control:event:event:disposalAndRelease','control:event:event:disposeOf','home:notice:releaseEvent'])">
<template v-hasPremi="['home:notice:closeEvent']"> <template v-if="check(['home:notice:closeEvent'])">
<Button :loading="submitLoading" v-if="activeName == '1'" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="activeName == '1'" style="margin-top: 30px;padding: 0 24px"
@click.native="onEnd">终止</Button> @click.native="onEnd">终止</Button>
</template> </template>
<Button :loading="submitLoading" v-if="activeName == '-1' || activeName == '0'" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="check(['home:notice:closeEvent']) && (activeName == '-1' || activeName == '0')" style="margin-top: 30px;padding: 0 24px"
@click.native="onDelete">解除</Button> @click.native="onDelete">解除</Button>
<Button :style="{ marginTop: '30px', backgroundColor: '#0e708b', padding: '0 24px' }" <Button :style="{ marginTop: '30px', backgroundColor: '#0e708b', padding: '0 24px' }"
@click.native="modelVisible = false">取消</Button> @click.native="modelVisible = false">取消</Button>
<template v-hasPremi="['home:notice:disposeEvent']"> <template v-if="check(['home:notice:disposeEvent'])">
<Button :loading="submitLoading" v-if="!isError && (activeName == '-1')" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="!isError && (activeName == '-1')" style="margin-top: 30px;padding: 0 24px"
@click.native="updateEvent">处置</Button> @click.native="updateEvent">处置</Button>
<Button :loading="submitLoading" v-if="!isError && ( activeName == '0')" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="!isError && ( activeName == '0')" style="margin-top: 30px;padding: 0 24px"
@ -92,6 +92,7 @@ import EventPlanDialog from "./eventPlanDialog/index.vue";
import Button from "@screen/components/Buttons/Button.vue"; import Button from "@screen/components/Buttons/Button.vue";
import request from "@/utils/request"; import request from "@/utils/request";
import { Message } from "element-ui"; import { Message } from "element-ui";
import { checkPermi } from "@/utils/permission.js";
var moment = require("moment"); var moment = require("moment");
import { import {
eventDetails, eventDetails,
@ -234,6 +235,9 @@ export default {
}, },
methods: { methods: {
check(arr){
return checkPermi(arr);
},
videoClick(type){ videoClick(type){
this.realVideo = ''; this.realVideo = '';
setTimeout(() => { setTimeout(() => {

Loading…
Cancel
Save