mbp 2 months ago
parent
commit
9aa7576857
  1. 9
      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

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

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

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

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

Loading…
Cancel
Save