Browse Source

增加按钮权限配置

develop
王钦 2 months ago
parent
commit
f8b9af1e8f
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/components/ChartExport/index.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/components/DialogDeviceOffline/index.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/EarlyWarning.vue
  4. 10
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue
  5. 4
      ruoyi-ui/src/views/JiHeExpressway/components/broadcast/BroadcastTplList.vue
  6. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue
  7. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue
  8. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue
  9. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue
  10. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/GuardrailCollision/index.vue
  11. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/index.vue
  12. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue
  13. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/InfoBoard.vue
  14. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue
  15. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/index.vue
  16. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/components/PeopleCard/index.vue
  17. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/components/PoliceCard/index.vue
  18. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue
  19. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/index.vue
  20. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/firstResponders/index.vue
  21. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/index.vue
  22. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/police/index.vue
  23. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/vehicles/index.vue
  24. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/index.vue
  25. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
  26. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue
  27. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue
  28. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue
  29. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue
  30. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue
  31. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue
  32. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/abnormal/index.vue
  33. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/index.vue
  34. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/index.vue
  35. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/index.vue
  36. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/query/index.vue
  37. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/safe/files/index.vue
  38. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/service/analysis/search/index.vue
  39. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue
  40. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/index.vue
  41. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

2
ruoyi-ui/src/views/JiHeExpressway/components/ChartExport/index.vue

@ -1,5 +1,5 @@
<template> <template>
<img :src="require('./chartDl.png')" class="iconDl" @click="$emit('export')" /> <img :src="require('./chartDl.png')" class="iconDl" @click="$emit('export')" v-hasPremi="['service:publicService:export']" />
</template> </template>
<script> <script>

2
ruoyi-ui/src/views/JiHeExpressway/components/DialogDeviceOffline/index.vue

@ -28,7 +28,7 @@
<el-col :span="6">{{info.stateName}}</el-col> <el-col :span="6">{{info.stateName}}</el-col>
</el-row> </el-row>
</div> </div>
<template #footer> <template #footer v-hasPremi="['home:notice:processDeviceOffline']">
<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>
<Button :loading="submitLoading" v-if="info.status==='0'" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="info.status==='0'" style="margin-top: 30px;padding: 0 24px"

2
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/EarlyWarning.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="early_warning"> <div class="early_warning" v-hasPremi="['home:notice:event']">
<div @click="onShowCtt" class="warningNum" v-if="warningNum > 0">{{ warningNum>99?'99+':warningNum }}</div> <div @click="onShowCtt" class="warningNum" v-if="warningNum > 0">{{ warningNum>99?'99+':warningNum }}</div>
<p @click="onShowCtt"> <p @click="onShowCtt">
<i class="el-icon-message-solid" v-if="isShowCtt"></i> <i class="el-icon-message-solid" v-if="isShowCtt"></i>

10
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue

@ -1,11 +1,11 @@
<template> <template>
<div class="warning_list"> <div class="warning_list">
<el-tabs v-model="activeTab" @tab-click="onChangeTab"> <el-tabs v-model="activeTab" @tab-click="onChangeTab">
<el-tab-pane label="预警事件" name="four" /> <el-tab-pane label="预警事件" name="four" v-hasPremi="['home:notice:event']" />
<el-tab-pane label="感知事件" name="first" /> <el-tab-pane label="感知事件" name="first" v-hasPremi="['home:notice:warningEvent']"/>
<el-tab-pane label="待确认事件" name="second" /> <el-tab-pane label="待确认事件" name="second" v-hasPremi="['home:notice:warningEvent']" />
<el-tab-pane label="处置中事件" name="third" /> <el-tab-pane label="处置中事件" name="third" v-hasPremi="['home:notice:disposeEvent']" />
<el-tab-pane label="设备异常" name="fifth" /> <el-tab-pane label="设备异常" name="fifth" v-hasPremi="['home:notice:deviceOffline']" />
</el-tabs> </el-tabs>
<div> <div>
<Table :data="tableData" :show-header="false" @cell-click="onCellClick" height="400px"> <Table :data="tableData" :show-header="false" @cell-click="onCellClick" height="400px">

4
ruoyi-ui/src/views/JiHeExpressway/components/broadcast/BroadcastTplList.vue

@ -24,10 +24,10 @@
</el-tooltip> </el-tooltip>
<template v-if="page!='home'"> <template v-if="page!='home'">
<el-tooltip content="编辑" placement="top"> <el-tooltip content="编辑" placement="top">
<p @click="____onEditTemplate(itm)" class="btn btnEdit"></p> <p v-hasPremi="['service:broadcast:updateTemplate']" @click="____onEditTemplate(itm)" class="btn btnEdit"></p>
</el-tooltip> </el-tooltip>
<el-tooltip content="删除" placement="top"> <el-tooltip content="删除" placement="top">
<p @click="____onDeleteTemplate(itm)" class="btn btnDelete"></p> <p v-hasPremi="['service:broadcast:delTemplate']" @click="____onDeleteTemplate(itm)" class="btn btnDelete"></p>
</el-tooltip> </el-tooltip>
</template> </template>
</div> </div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue

@ -15,7 +15,7 @@
</ElTabs> </ElTabs>
<div class="bottom"> <div class="bottom">
<Button @click.native="releaseVisible = true">广播发布</Button> <Button @click.native="releaseVisible = true" v-hasPremi="['business:home:broadcast']">广播发布</Button>
</div> </div>
</div> </div>

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

@ -5,7 +5,7 @@
<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> <template #content-deviceName v-hasPremi="['business:home:camera']">
<span>{{ dialogData.deviceName || "-" }}</span> <span>{{ dialogData.deviceName || "-" }}</span>
<img <img
@click="controlDialogVisible = true" @click="controlDialogVisible = true"
@ -22,6 +22,7 @@
/> />
</template> </template>
</Descriptions> </Descriptions>
<template v-hasPremi="['business:home:camera']">
<div <div
v-if="PanoramicCameraTypes.indexOf(dialogData.childType) == -1" v-if="PanoramicCameraTypes.indexOf(dialogData.childType) == -1"
style="width: 50%; display: flex; margin-top: 18px" style="width: 50%; display: flex; margin-top: 18px"
@ -44,6 +45,7 @@
></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">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue

@ -14,7 +14,7 @@
</ElTabs> </ElTabs>
<div class="bottom"> <div class="bottom">
<Button @click.native="onControlClick" :style="dialogData.useState ? '':'background-color:grey'">设备操作</Button> <Button v-hasPremi="['business:home:drivingGuidance']" @click.native="onControlClick" :style="dialogData.useState ? '':'background-color:grey'">设备操作</Button>
</div> </div>
</div> </div>
<DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId" :id="dialogData.id" <DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId" :id="dialogData.id"

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

@ -12,7 +12,7 @@
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
</div> </div>
<template #footer> <template #footer v-hasPremi="['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>
<!-- 设备操作弹窗 --> <!-- 设备操作弹窗 -->

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/GuardrailCollision/index.vue

@ -6,7 +6,7 @@
<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" />
<div class="jsdcontrol"> <div class="jsdcontrol" v-hasPremi="['business:home:guardrailCollision']">
<span style=" <span style="
color: #3de8ff; color: #3de8ff;
font-size: 12px; font-size: 12px;

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/index.vue

@ -16,7 +16,7 @@
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
</div> </div>
<template #footer> <template #footer v-hasPremi="['business:home:equipmentBox']">
<Button v-if="activeName != 'first' && data.deviceState == '1'" @click.native="deviceControlVisible = true"> <Button v-if="activeName != 'first' && data.deviceState == '1'" @click.native="deviceControlVisible = true">
设备操作 设备操作
</Button> </Button>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue

@ -16,7 +16,7 @@
</ElTabPane> </ElTabPane>
</ElTabs> </ElTabs>
</div> </div>
<template #footer> <template #footer v-hasPremi="['business:home:equipmentBox']">
<Button v-if="activeName != 'first' && data.deviceState == '1'" @click.native="deviceControlVisible = true"> <Button v-if="activeName != 'first' && data.deviceState == '1'" @click.native="deviceControlVisible = true">
设备操作 设备操作
</Button> </Button>

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/InfoBoard.vue

@ -31,7 +31,7 @@
<!-- 模板内容 --> <!-- 模板内容 -->
<BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview> <BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="infoBtnBox"> <div class="infoBtnBox" v-hasPremi="['business:home:boardTemplate']">
<el-tooltip content="编辑" placement="top"> <el-tooltip content="编辑" placement="top">
<p @click="____onEditBoardItem(itm, indx)" class="btn btnEdit"></p> <p @click="____onEditBoardItem(itm, indx)" class="btn btnEdit"></p>
</el-tooltip> </el-tooltip>
@ -84,8 +84,8 @@
</el-tabs> </el-tabs>
</div> </div>
<div class="dialogContent_bottom_btn"> <div class="dialogContent_bottom_btn">
<el-button class="btnInfoBoard" type="add" @click.native="____onAddDeviceItem()">添加信息</el-button> <el-button v-hasPremi="['business:home:board']" class="btnInfoBoard" type="add" @click.native="____onAddDeviceItem()" >添加信息</el-button>
<el-button class="btnInfoBoard" type="publish" @click="____publishInfo" :disabled="selectedBdMsg.length <= 0 || <el-button v-hasPremi="['business:home:boardTemplate']" class="btnInfoBoard" type="publish" @click="____publishInfo" :disabled="selectedBdMsg.length <= 0 ||
(isMultiControl && selectItems.length === 0) || (isMultiControl && selectItems.length === 0) ||
(!isMultiControl && [undefined, null].indexOf(selectedDevice.iotDeviceId) !== -1 (!isMultiControl && [undefined, null].indexOf(selectedDevice.iotDeviceId) !== -1
) )

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue

@ -16,9 +16,9 @@
<div class="home-icons" > <div class="home-icons" >
<HomeFilter class="item" /> <HomeFilter class="item" />
<HomeFrame class="item" /> <HomeFrame class="item" />
<HomeVector class="item" /> <HomeVector class="item" v-hasPremi="['business:home:exportOperationalReport']" />
<HomeWord class="item" /> <HomeWord class="item" />
<HomeFrameControl class="item" /> <HomeFrameControl class="item" v-hasPremi="['business:home:batchControl']" />
<HomeWeather class="item" /> <HomeWeather class="item" />
<HomeWeatherLayer class="item" /> <HomeWeatherLayer class="item" />
<HomeTraffic class="item" /> <HomeTraffic class="item" />

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/index.vue

@ -5,7 +5,7 @@
element-loading-background="rgba(0, 0, 0, 0.3)"> element-loading-background="rgba(0, 0, 0, 0.3)">
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="onAddEdit()"> <ButtonGradient @click.native="onAddEdit()" v-hasPremi="['control:device:strategy:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
@ -45,12 +45,12 @@
<!-- <Switcher class="switcher" :activeOption="activeOption" <!-- <Switcher class="switcher" :activeOption="activeOption"
@change="(value) => handleSwitcherChange(value, item) " /> --> @change="(value) => handleSwitcherChange(value, item) " /> -->
<el-switch v-model="item.status" active-color="#0BD" inactive-color="#999" active-value="0" <el-switch v-model="item.status" active-color="#0BD" inactive-color="#999" active-value="0"
inactive-value="1" @change="(value) => handleSwitcherChange(value, item) "> inactive-value="1" @change="(value) => handleSwitcherChange(value, item) " v-hasPremi="['control:device:strategy:openOrClose']">
</el-switch> </el-switch>
<Button @click.native="() => onAddEdit(item)"> <Button @click.native="() => onAddEdit(item)" v-hasPremi="['control:device:strategy:update']">
编辑 编辑
</Button> </Button>
<Button style="background-color: #ff5f5f" @click.native="onDelete(item)"> <Button style="background-color: #ff5f5f" @click.native="onDelete(item)" v-hasPremi="['control:device:strategy:delete']">
删除 删除
</Button> </Button>
</template> </template>

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/components/PeopleCard/index.vue

@ -9,8 +9,8 @@
</p> </p>
</div> </div>
<div class="btns"> <div class="btns">
<Button @click.native="$emit('edit', cardData)" :style="{ background: '#00B3CC' }">修改</Button> <Button v-hasPremi="['business:employees:update']" @click.native="$emit('edit', cardData)" :style="{ background: '#00B3CC' }">修改</Button>
<Button @click.native="$emit('delete', cardData)" :style="{ background: '#FF5F5F' }">删除</Button> <Button v-hasPremi="['business:employees:delete']" @click.native="$emit('delete', cardData)" :style="{ background: '#FF5F5F' }">删除</Button>
</div> </div>
</BorderRadiusImage> </BorderRadiusImage>
</template> </template>

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/components/PoliceCard/index.vue

@ -8,8 +8,8 @@
</p> </p>
</div> </div>
<div class="btns"> <div class="btns">
<Button @click.native="$emit('edit', cardData)" :style="{ background: '#00B3CC' }">修改</Button> <Button v-hasPremi="['business:trafficPolice:update']" @click.native="$emit('edit', cardData)" :style="{ background: '#00B3CC' }">修改</Button>
<Button @click.native="$emit('delete', cardData)" :style="{ background: '#FF5F5F' }">删除</Button> <Button v-hasPremi="['business:trafficPolice:delete']" @click.native="$emit('delete', cardData)" :style="{ background: '#FF5F5F' }">删除</Button>
</div> </div>
</BorderRadiusImage> </BorderRadiusImage>
</template> </template>

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

@ -2,25 +2,25 @@
<div class="DutyOfficer"> <div class="DutyOfficer">
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['business:shifts:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/import.svg" /> <img src="@screen/images/import.svg" />
</template> </template>
机构值班表 机构值班表
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExportTemplate"> <ButtonGradient @click.native="handleExportTemplate" v-hasPremi="['business:shifts:exportTemplate']">
<template #prefix> <template #prefix>
<img src="@screen/images/import.svg" /> <img src="@screen/images/import.svg" />
</template> </template>
机构值班表模板 机构值班表模板
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="uploadFile"> <ButtonGradient @click.native="uploadFile" v-hasPremi="['business:shifts:upload']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
上传 上传
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleModifyDutyInformationTable(true)"> <ButtonGradient @click.native="handleModifyDutyInformationTable(true)" v-hasPremi="['business:shifts:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
@ -102,7 +102,7 @@
<div class="no-data" v-else>无值班人员</div> <div class="no-data" v-else>无值班人员</div>
</template> </template>
<template #operation-content="{ data }"> <template #operation-content="{ data }">
<ButtonGradient <ButtonGradient v-hasPremi="['business:shifts:update']"
class="operate-button" class="operate-button"
@click.native="handleModifyDutyInformationTable(true, data)" @click.native="handleModifyDutyInformationTable(true, data)"
> >
@ -120,7 +120,7 @@
</template> </template>
记录 记录
</ButtonGradient> </ButtonGradient>
<ButtonGradient <ButtonGradient v-hasPremi="['business:shifts:delet']"
class="operate-button" class="operate-button"
@click.native="handleDelete(data)" @click.native="handleDelete(data)"
> >

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/index.vue

@ -2,13 +2,13 @@
<div class="EmergencyAgencies"> <div class="EmergencyAgencies">
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleOpenDialogAddEdit()"> <ButtonGradient @click.native="handleOpenDialogAddEdit()" v-hasPremi="['business:organization:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
新增 新增
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['business:organization:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
@ -49,10 +49,10 @@
:key="index" :key="index"
> >
<template #button> <template #button>
<Button @click.native="() => handleOpenDialogAddEdit(item)"> <Button @click.native="() => handleOpenDialogAddEdit(item)" v-hasPremi="['business:organization:update']">
修改 修改
</Button> </Button>
<Button <Button v-hasPremi="['business:organization:delete']"
style="background-color: #ff5f5f" style="background-color: #ff5f5f"
@click.native="handleDelete(item)" @click.native="handleDelete(item)"
> >

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/firstResponders/index.vue

@ -2,13 +2,13 @@
<div class="FirstResponders"> <div class="FirstResponders">
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleOpenDialogAddEdit()"> <ButtonGradient @click.native="handleOpenDialogAddEdit()" v-hasPremi="['business:employees:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
新增 新增
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['business:employees:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/index.vue

@ -2,13 +2,13 @@
<div class='JurisdictionalManagement'> <div class='JurisdictionalManagement'>
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleAddEdit(true)"> <ButtonGradient @click.native="handleAddEdit(true)" v-hasPremi="['business:section:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
新增 新增
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['business:section:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
@ -52,10 +52,10 @@
</div> </div>
</template> </template>
<template #button> <template #button>
<Button @click.native="() => handleAddEdit(true, item)"> <Button @click.native="() => handleAddEdit(true, item)" v-hasPremi="['business:section:update']">
修改 修改
</Button> </Button>
<Button style="background-color: #FF5F5F;" @click.native="handleDelete(item)"> <Button style="background-color: #FF5F5F;" @click.native="handleDelete(item)" v-hasPremi="['business:section:delete']">
删除 删除
</Button> </Button>
</template> </template>

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/police/index.vue

@ -2,13 +2,13 @@
<div class="FirstResponders"> <div class="FirstResponders">
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleOpenDialogAddEdit()"> <ButtonGradient @click.native="handleOpenDialogAddEdit()" v-hasPremi="['business:trafficPolice:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
新增 新增
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['business:trafficPolice:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/vehicles/index.vue

@ -2,13 +2,13 @@
<div class="Vehicles"> <div class="Vehicles">
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleOpenDialogAddEdit()"> <ButtonGradient @click.native="handleOpenDialogAddEdit()" v-hasPremi="['business:car:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
新增 新增
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['business:car:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
@ -49,10 +49,10 @@
:key="index" :key="index"
> >
<template #button> <template #button>
<Button @click.native="() => handleOpenDialogAddEdit(item)"> <Button @click.native="() => handleOpenDialogAddEdit(item)" v-hasPremi="['business:car:update']">
修改 修改
</Button> </Button>
<Button <Button v-hasPremi="['business:car:delete']"
style="background-color: #ff5f5f" style="background-color: #ff5f5f"
@click.native="handleDelete(item)" @click.native="handleDelete(item)"
> >

1
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/index.vue

@ -28,6 +28,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!--<ElButton type="text" style="color: #00D1FF;" @click="showDisposal(scope.row.eventType)">流程配置</ElButton>--> <!--<ElButton type="text" style="color: #00D1FF;" @click="showDisposal(scope.row.eventType)">流程配置</ElButton>-->
<ElButton <ElButton
v-hasPremi="['control:emergencyProcessManagement:configuration']"
type="text" type="text"
style="color: #00ebc1" style="color: #00ebc1"
@click="showPhrases(scope.row)" @click="showPhrases(scope.row)"

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

@ -58,13 +58,16 @@
} }
" @close="onCloseAddNew" /> " @close="onCloseAddNew" />
<template #footer> <template #footer v-hasPremi="['business:home:event','control:event:event:disposalAndRelease','control:event:event:disposeOf','home:notice:releaseEvent']">
<template v-hasPremi="['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>
<Button :loading="submitLoading" v-if="activeName == '-1' || activeName == '0'" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="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']">
<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"
@ -72,6 +75,7 @@
<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="goDispatch">处置</Button> @click.native="goDispatch">处置</Button>
</template> </template>
</template>
</Dialog> </Dialog>
</template> </template>

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

@ -1,7 +1,7 @@
<template> <template>
<div class="RoadNetworkMonitoring2"> <div class="RoadNetworkMonitoring2">
<Tabs :panels="panels" :default-active="activeName" @select="handleSelect" /> <Tabs :panels="panels" :default-active="activeName" @select="handleSelect" />
<ButtonGradient @click="onAddNew" class="btnAdd"> <ButtonGradient @click="onAddNew" class="btnAdd" v-hasPremi="['control:event:event:enter']">
<template #prefix> <template #prefix>
<img src="./images/insert.svg" /> <img src="./images/insert.svg" />
</template> </template>
@ -11,7 +11,7 @@
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click="onExport"> <ButtonGradient @click="onExport" v-hasPremi="['control:event:event:export']">
<template #prefix> <template #prefix>
<img src="./images/export.svg" /> <img src="./images/export.svg" />

6
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue

@ -4,7 +4,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click="onAdd"> <ButtonGradient @click="onAdd" v-hasPremi="['control:event:plan:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
@ -40,8 +40,8 @@
<ElTableColumn prop="controlCommand" label="控制指令" /> <ElTableColumn prop="controlCommand" label="控制指令" />
<ElTableColumn label="操作" width="210" align="center"> <ElTableColumn label="操作" width="210" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<ElButton type="text" style="color: #00D1FF;" @click="showDisposal(scope.row)">修改</ElButton> <ElButton v-hasPremi="['control:event:plan:update']" type="text" style="color: #00D1FF;" @click="showDisposal(scope.row)">修改</ElButton>
<ElButton type="text" style="color: #00EBC1;" @click="handleDelete(scope.row)">删除</ElButton> <ElButton v-hasPremi="['control:event:plan:delete']" type="text" style="color: #00EBC1;" @click="handleDelete(scope.row)">删除</ElButton>
</template> </template>
</ElTableColumn> </ElTableColumn>
</Table> </Table>

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue

@ -3,7 +3,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div class="filter-btn"> <div class="filter-btn">
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['control:manual:events:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue

@ -5,7 +5,7 @@
:formList="searchFormList" :formList="searchFormList"
@handleSearch="handleSearch" @handleSearch="handleSearch"
/> />
<ButtonGradient @click="onExportClick" style="width:50px">导出</ButtonGradient> <ButtonGradient @click="onExportClick" style="width:50px" v-hasPremi="['control:manual:statistic:export']">导出</ButtonGradient>
<div class="Eventfiltering-content"> <div class="Eventfiltering-content">
<div class="Eventfiltering-left" ref="trafficIncidents"></div> <div class="Eventfiltering-left" ref="trafficIncidents"></div>
<div class="Eventfiltering-right" ref="trafficIncidentsPie"></div> <div class="Eventfiltering-right" ref="trafficIncidentsPie"></div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue

@ -5,7 +5,7 @@
:formList="searchFormList" :formList="searchFormList"
@handleSearch="handleSearch" @handleSearch="handleSearch"
/> />
<ButtonGradient @click="onExportClick" style="width:50px">导出</ButtonGradient> <ButtonGradient @click="onExportClick" style="width:50px" v-hasPremi="['control:manual:statistic:export']">导出</ButtonGradient>
<div class="Eventfiltering-content"> <div class="Eventfiltering-content">
<div class="Eventfiltering-left" ref="trafficIncidents"></div> <div class="Eventfiltering-left" ref="trafficIncidents"></div>
<div class="Eventfiltering-right" ref="trafficIncidentsPie"></div> <div class="Eventfiltering-right" ref="trafficIncidentsPie"></div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue

@ -5,7 +5,7 @@
:formList="searchFormList" :formList="searchFormList"
@handleSearch="handleSearch" @handleSearch="handleSearch"
/> />
<ButtonGradient @click="onExportClick" style="width:50px">导出</ButtonGradient> <ButtonGradient @click="onExportClick" style="width:50px" v-hasPremi="['control:manual:statistic:export']">导出</ButtonGradient>
<div class="entity"><div></div>{{ sfzname }}</div> <div class="entity"><div></div>{{ sfzname }}</div>
<div class="Eventfiltering-content"> <div class="Eventfiltering-content">
<div class="Eventfiltering-left" ref="trafficIncidents"></div> <div class="Eventfiltering-left" ref="trafficIncidents"></div>

2
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/abnormal/index.vue

@ -31,7 +31,7 @@
<ElTableColumn label="状态" width="150" prop="stateName" /> <ElTableColumn label="状态" width="150" prop="stateName" />
<ElTableColumn label="操作" width="130" align="center"> <ElTableColumn label="操作" width="130" align="center" v-hasPremi="['maintain:abnormal:updateStatus']">
<template slot-scope="scope"> <template slot-scope="scope">
<ElButton type="text" v-if="scope.row.status==='0'" style="color: #00D1FF;" @click="showDisposal(scope.row)">处理</ElButton> <ElButton type="text" v-if="scope.row.status==='0'" style="color: #00D1FF;" @click="showDisposal(scope.row)">处理</ElButton>
</template> </template>

4
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/index.vue

@ -3,7 +3,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['maintain:manage:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
@ -66,7 +66,7 @@
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button v-hasPremi="['maintain:manage:update']"
type="text" type="text"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['device:protocol:edit']" v-hasPermi="['device:protocol:edit']"

2
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/index.vue

@ -3,7 +3,7 @@
<div class="topdiv"> <div class="topdiv">
<div class="left-div"> <div class="left-div">
<el-button size="mini" icon="el-icon-refresh-left" class="btnSearch" @click="onRefreshData">刷新</el-button> <el-button size="mini" icon="el-icon-refresh-left" class="btnSearch" @click="onRefreshData">刷新</el-button>
<el-button size="mini" icon="el-icon-download" class="btnSearch" @click="SystemStatusExport">导出Excel</el-button> <el-button v-hasPremi="['maintain:equipmentOnlineAnalysis:export']" size="mini" icon="el-icon-download" class="btnSearch" @click="SystemStatusExport">导出Excel</el-button>
</div> </div>
<div class="right-div"> <div class="right-div">
<InputSearch <InputSearch

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/index.vue

@ -3,7 +3,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click="onExport"> <ButtonGradient @click="onExport" v-hasPremi="['perception:eventDetection:export']">
<template #prefix> <template #prefix>
<img src="./images/export.svg" /> <img src="./images/export.svg" />

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/query/index.vue

@ -8,7 +8,7 @@
</template> </template>
刷新 刷新
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click="onExport" class="button"> <ButtonGradient @click="onExport" class="button" v-hasPremi="['business:roadSection:export']">
<template #prefix> <template #prefix>
<i class="el-icon-upload2"></i> <i class="el-icon-upload2"></i>
</template> </template>

6
ruoyi-ui/src/views/JiHeExpressway/pages/safe/files/index.vue

@ -3,7 +3,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleAddEdit(true)"> <ButtonGradient @click.native="handleAddEdit(true)" v-hasPremi="['safe:safeFiles:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
@ -44,12 +44,12 @@
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button v-hasPremi="['safe:safeFiles:download']"
type="text" type="text"
@click="handleDownload(scope)" @click="handleDownload(scope)"
>下载 >下载
</el-button> </el-button>
<el-button <el-button v-hasPremi="['safe:safeFiles:delete']"
type="text" type="text"
style="color:#ff0000;margin-left: 20px;" style="color:#ff0000;margin-left: 20px;"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"

6
ruoyi-ui/src/views/JiHeExpressway/pages/service/analysis/search/index.vue

@ -1,6 +1,8 @@
<template> <template>
<div class="searchPanel"> <div class="searchPanel">
<template v-hasPremi="['datav:sdhsEvent:download']">
<div style="margin-right: 30px;" v-if="fileInfo">上次上传<a style="text-decoration: underline;" :download="fileInfo.fileName" target="_blank" :href="urlRoot+fileInfo.fileUrl">{{ fileInfo.fileName }}</a> <span class="el-icon-time" style="margin:0px 5px;"></span>{{ fileInfo.uploadTime }}</div> <div style="margin-right: 30px;" v-if="fileInfo">上次上传<a style="text-decoration: underline;" :download="fileInfo.fileName" target="_blank" :href="urlRoot+fileInfo.fileUrl">{{ fileInfo.fileName }}</a> <span class="el-icon-time" style="margin:0px 5px;"></span>{{ fileInfo.uploadTime }}</div>
</template>
<!-- 路段选择 --> <!-- 路段选择 -->
<!-- <RadioGroup :options="[ <!-- <RadioGroup :options="[
{ key: '1', label: '菏泽' }, { key: '1', label: '菏泽' },
@ -33,9 +35,9 @@
:headers="headers" :headers="headers"
:action="uploadUrl" :action="uploadUrl"
> >
<el-button class="btnReset" size="mini" >导入</el-button> <el-button class="btnReset" size="mini" v-hasPremi="['datav:sdhsEvent:import']">导入</el-button>
</el-upload> </el-upload>
<el-button class="btnReset" size="mini" @click="onExport">导出</el-button> <el-button class="btnReset" size="mini" @click="onExport" v-hasPremi="['datav:sdhsEvent:export']">导出</el-button>
<el-button class="btnReset" size="mini" @click="handledDialogCalendar(true)">日历</el-button> <el-button class="btnReset" size="mini" @click="handledDialogCalendar(true)">日历</el-button>
<DialogCalendar :visible="dialogVisibleCalendar" @close="handledDialogCalendar(false)" /> <DialogCalendar :visible="dialogVisibleCalendar" @close="handledDialogCalendar(false)" />
</div> </div>

8
ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

@ -103,7 +103,7 @@
<div class="titleBtnBox"> <div class="titleBtnBox">
<el-button class="btnInfoBoard" type="add" :disabled="!selectedSize" <el-button class="btnInfoBoard" type="add" :disabled="!selectedSize"
@click.native="____onAddDeviceItem()">添加信息</el-button> @click.native="____onAddDeviceItem()">添加信息</el-button>
<el-button class="btnInfoBoard" type="publish" @click="____onPublish" <el-button v-hasPremi="['service:board:publish']" class="btnInfoBoard" type="publish" @click="____onPublish"
:disabled="selectedBdMsg.length <= 0 || selectedDevices.length <= 0">发布信息</el-button> :disabled="selectedBdMsg.length <= 0 || selectedDevices.length <= 0">发布信息</el-button>
</div> </div>
</WgtTitle> </WgtTitle>
@ -162,7 +162,7 @@
</div> --> </div> -->
<WgtTitle :title="`信息模板 ${selectedSize ? selectedSize : ''}`"> <WgtTitle :title="`信息模板 ${selectedSize ? selectedSize : ''}`">
<div class="titleBtnBox"> <div class="titleBtnBox">
<el-button class="btnInfoBoard" type="add" @click="____onAddTemplate">添加模板</el-button> <el-button v-hasPremi="['service:board:addTemplate']" class="btnInfoBoard" type="add" @click="____onAddTemplate">添加模板</el-button>
</div> </div>
</WgtTitle> </WgtTitle>
<div class="partCon"> <div class="partCon">
@ -189,10 +189,10 @@
<p @click="____onTplToDevice(itm, false)" :class="disabledButton && !selectedSize ? 'disabledClass' : '' <p @click="____onTplToDevice(itm, false)" :class="disabledButton && !selectedSize ? 'disabledClass' : ''
" class="btn btnApply"></p> " class="btn btnApply"></p>
</el-tooltip> </el-tooltip>
<el-tooltip content="编辑" placement="top"> <el-tooltip v-hasPremi="['service:board:updateTemplate']" content="编辑" placement="top">
<p @click="____onEditTemplate(itm)" class="btn btnEdit"></p> <p @click="____onEditTemplate(itm)" class="btn btnEdit"></p>
</el-tooltip> </el-tooltip>
<el-tooltip content="删除" placement="top"> <el-tooltip v-hasPremi="['service:board:delTemplate']" content="删除" placement="top">
<p @click="____onDeleteTemplate(itm)" class="btn btnDelete"></p> <p @click="____onDeleteTemplate(itm)" class="btn btnDelete"></p>
</el-tooltip> </el-tooltip>
</div> </div>

4
ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/index.vue

@ -98,7 +98,7 @@
<div class="titleBtnBox"> <div class="titleBtnBox">
<el-button class="btnInfoBoard" type="add" @click.native="____onAddDeviceItem()" <el-button class="btnInfoBoard" type="add" @click.native="____onAddDeviceItem()"
:disabled="selectedBdMsg.length>=1">添加信息</el-button> :disabled="selectedBdMsg.length>=1">添加信息</el-button>
<el-button class="btnInfoBoard" type="publish" @click="____onPublish" <el-button v-hasPremi="['service:broadcast:publish']" class="btnInfoBoard" type="publish" @click="____onPublish"
:disabled="selectedBdMsg.length <= 0 || selectedDevices.length <= 0">发布信息</el-button> :disabled="selectedBdMsg.length <= 0 || selectedDevices.length <= 0">发布信息</el-button>
</div> </div>
</WgtTitle> </WgtTitle>
@ -146,7 +146,7 @@
<div style="width: 42.2%;" class="part partRight tpl_box"> <div style="width: 42.2%;" class="part partRight tpl_box">
<WgtTitle :title="`信息模板`" class="tpl_title"> <WgtTitle :title="`信息模板`" class="tpl_title">
<div class="titleBtnBox"> <div class="titleBtnBox">
<el-button class="btnInfoBoard" type="add" @click="____onAddTemplate">添加模板</el-button> <el-button v-hasPremi="['service:broadcast:addTemplate']" class="btnInfoBoard" type="add" @click="____onAddTemplate">添加模板</el-button>
</div> </div>
</WgtTitle> </WgtTitle>
<BroadcastTplList class="tpl_list" ref="tpl_list" @onAddToDevice="____onAddFromTpl" /> <BroadcastTplList class="tpl_list" ref="tpl_list" @onAddToDevice="____onAddFromTpl" />

12
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

@ -7,25 +7,25 @@
> >
<div class="filter"> <div class="filter">
<div> <div>
<ButtonGradient @click.native="handleAddEdit(true)"> <ButtonGradient @click.native="handleAddEdit(true)" v-hasPremi="['service:sensitive:add']">
<template #prefix> <template #prefix>
<img src="@screen/images/insert.svg" /> <img src="@screen/images/insert.svg" />
</template> </template>
新增 新增
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExportTemplate"> <ButtonGradient @click.native="handleExportTemplate" v-hasPremi="['service:sensitive:exportTemplate']">
<template #prefix> <template #prefix>
<img src="@screen/images/import.svg" /> <img src="@screen/images/import.svg" />
</template> </template>
敏感词模板 敏感词模板
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="uploadFile"> <ButtonGradient @click.native="uploadFile" v-hasPremi="['service:sensitive:import']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
批量导入 批量导入
</ButtonGradient> </ButtonGradient>
<ButtonGradient @click.native="handleExport"> <ButtonGradient @click.native="handleExport" v-hasPremi="['service:sensitive:export']">
<template #prefix> <template #prefix>
<img src="@screen/images/export.svg" /> <img src="@screen/images/export.svg" />
</template> </template>
@ -69,10 +69,10 @@
> >
<div class="keyword">{{ item.word }}</div> <div class="keyword">{{ item.word }}</div>
<div class="actions"> <div class="actions">
<Button @click.native="() => handleAddEdit(true, item)"> <Button @click.native="() => handleAddEdit(true, item)" v-hasPremi="['service:sensitive:update']">
修改 修改
</Button> </Button>
<Button <Button v-hasPremi="['service:sensitive:delete']"
style="background-color: #ff5f5f" style="background-color: #ff5f5f"
@click.native="handleDelete(item)" @click.native="handleDelete(item)"
> >

Loading…
Cancel
Save