Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
zhangzhang 11 months ago
parent
commit
6185a2dfcd
  1. 2
      ruoyi-ui/src/assets/styles/JiHeExpressway.scss
  2. 6
      ruoyi-ui/src/common/menuData.js
  3. 14
      ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js
  4. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
  5. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/components/CameraControlDialog.vue
  6. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/CongestedRoadSections/index.vue
  7. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/components/DeviceControlDialog.vue
  8. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/GuardrailCollision/index.vue
  9. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/HighwayDetails/index.vue
  10. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue
  11. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceControlDialog.vue
  12. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue
  13. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/WakeUpLightCurtainInfo/index.vue
  14. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/WeatherForecast/index.vue
  15. 15
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js
  16. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue
  17. 25
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue
  18. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js
  19. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue
  20. 52
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue
  21. 22
      ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/images/refresh.svg
  22. 186
      ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/index.vue

2
ruoyi-ui/src/assets/styles/JiHeExpressway.scss

@ -278,7 +278,7 @@
}
.el-picker-panel{
.today div a,.today div span{
.today div a,.today div span, .today a{
color: #ff0 !important;
font-weight: bold !important;
}

6
ruoyi-ui/src/common/menuData.js

@ -177,6 +177,12 @@ export default [
path: "/service/board",
component: "service/board/index.vue",
},
// {
// title: "情报板记录",
// name: "boardRecord",
// path: "/service/boardRecord",
// component: "service/boardRecord/index.vue",
// },
{
title: "情报板敏感词",
name: "sensitive",

14
ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js

@ -8,6 +8,11 @@ import {
getNearCameraNew,
} from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js";
const ErrorTypesCn = {
NetworkError: "网络错误",
MediaError: "媒体错误",
OtherError: "其他错误",
};
/**
* flv 视频测试
* https://bilibili.github.io/flv.js/demo/
@ -96,7 +101,10 @@ async function getUrl({ camId, url, pileNum, rangeIndex } = {}) {
url = data.liveUrl;
}
if (!url) return Promise.reject("获取 url 失败!");
if (!url) {
Message.warning("未获取到当前相机的播放地址");
return Promise.reject("获取 url 失败!");
}
return url;
}
@ -187,7 +195,9 @@ export class HttpLivePlayer {
console.log("errorType", errorType);
console.log("errorDetail", errorDetail);
console.log("errorInfo", errorInfo);
Message.warning(
`视频流加载失败, ${ErrorTypesCn[errorType] || "其他错误"}`
);
this.initLiveVideo();
});

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="广播发布" width="550px">
<Dialog v-model="modelVisible" title="广播发布" width="850px">
<div class="BroadcastReleases">
<div class="body">
<div class="left">

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/components/CameraControlDialog.vue

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="相机控制" noneMask width="550px">
<Dialog v-model="modelVisible" title="相机控制" noneMask width="600px">
<div class="CameraControlDialog">
<div class="direction">
<div class="control-container top" @click="controlClick(21)">

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

@ -1,5 +1,5 @@
<template>
<Dialog class="CongestedRoadSections" width="550px">
<Dialog class="CongestedRoadSections" width="600px">
<div class="video-presentations">
<div class="video-item"></div>
<div class="video-item"></div>

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="设备操作" width="550px">
<Dialog v-model="modelVisible" title="设备操作" width="600px">
<div class="DeviceControlDialog">
<Form
v-model="formData"

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="obverseVisible" title="护栏碰撞弹窗" width="550px">
<Dialog v-model="obverseVisible" title="护栏碰撞弹窗" width="600px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="GuardrailCollision">

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

@ -1,5 +1,5 @@
<template>
<Dialog class="HighwayDetails" width="550px">
<Dialog class="HighwayDetails" width="600px">
<div class="video-presentations">
<div class="video-item"></div>
<div class="video-item"></div>

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="obverseVisible" title="一类交调站弹窗" width="550px">
<Dialog v-model="obverseVisible" title="一类交调站弹窗" width="600px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="Intermodulation">

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="modelVisible" title="设备操作" width="550px">
<Dialog v-model="modelVisible" title="设备操作" width="600px">
<div class="DeviceControlDialog">
<DeviceParams :dialogData="dialogData" />
</div>

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

@ -1,5 +1,5 @@
<template>
<Dialog v-model="obverseVisible" title="智能设备箱" width="550px">
<Dialog v-model="obverseVisible" title="智能设备箱" width="600px">
<Video class="video-stream" :pileNum="dialogData.stakeMark" />
<div class="SmartDevice">

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

@ -1,5 +1,5 @@
<template>
<Dialog class="WakeUpLightCurtainInfo" width="550px">
<Dialog class="WakeUpLightCurtainInfo" width="600px">
<div class="operation-btn">
<div class="photo-btn">图像</div>
<div class="video-btn">视频</div>

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

@ -1,5 +1,5 @@
<template>
<Dialog class="WeatherForecast" width="550px"> s </Dialog>
<Dialog class="WeatherForecast" width="600px"> s </Dialog>
</template>
<script>

15
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

@ -202,7 +202,7 @@ export class MarkerCluster {
</div>`);
window.infoWindow = this.infoWindow;
this.infoWindow.open(map, currentPageData[0].lnglat);
window.openInfoWindow = true;
this.infoWindow.dom.querySelector(".info-close").onclick = () =>
this.infoWindow.close();
@ -237,11 +237,22 @@ export class MarkerCluster {
let hasClick = false;
const reset = () => {
this.infoWindow?.close?.();
if (!window.openInfoWindow) {
// console.log(window.openInfoWindow, "rest");
this.infoWindow?.close?.();
}
};
map.on("zoomstart", reset);
map.on("mapmove", reset);
map.on("moveend", async () => {
if (window.openInfoWindow) {
console.log("窗口位移结束");
window.openInfoWindow = false;
await new Promise((resolve) => setTimeout(resolve, 840));
window.infoWindow?.open?.();
}
});
const markerCluster = new AMap.MarkerCluster(map, [], {
// gridSize: 15,

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

@ -13,7 +13,7 @@ import { actualLocationList, canvasList } from "./data.js";
const mouseenterDebounceFunc = debounce(({ node }) => {
if (["custom-html"].indexOf(node.shape) >= 0) {
node.setZIndex(100);
console.log(node);
// console.log(node);
}
}, 0);
const mouseleaveDebounceFunc = debounce(({ node }) => {

25
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue

@ -61,7 +61,7 @@
<template #footer>
<Button
:style="{ backgroundColor: '#0E708B' }"
@click.native="$emit('close')"
@click.native="closeWindow()"
>
取消</Button
>
@ -138,14 +138,7 @@ export default {
return this.visible;
},
set(bool) {
//,
if (!bool) {
this.dayShift = [];
this.graveyardShift = [];
this.peopleList = [];
}
this.$emit("close", bool);
this.closeWindow();
},
},
getActive() {
@ -157,6 +150,7 @@ export default {
visible: {
immediate: true,
async handler(bool) {
this.clearData();
if (!bool) return;
this.dayShift = [...(this.data?.dayShift || [])];
@ -235,11 +229,9 @@ export default {
},
})
.then((result) => {
console.log("result.data:", result.data);
this.dayShift = result.data.filter(
(item) => item.scheduling === "1"
);
console.log("this.dayShift11:", this.dayShift);
this.graveyardShift = result.data.filter(
(item) => item.scheduling === "2"
);
@ -386,7 +378,16 @@ export default {
}
}
},
},
closeWindow(bool){
this.$emit("close", false);
},
clearData(){
//,
this.dayShift = [];
this.graveyardShift = [];
this.peopleList = [];
}
}
};
</script>

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js

@ -53,7 +53,7 @@ let options = {
},
},
axisLabel: {
interval: 0,
interval: 1,
align: "center",
rotate: "1",
margin: 30,

14
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue

@ -104,6 +104,7 @@
:current-page.sync="pageIndex"
layout="total, sizes, prev, pager, next"
:total="pageTotal"
@size-change="handleSizeChange"
>
</Pagination>
</div>
@ -153,7 +154,7 @@ export default {
typeQuery: "", //
pageTotal: 0,
pageIndex: 1,
pageSize: 10,
pageSize: 30,
searchFormList,
equipSeries: [
"高清网络球形摄像机",
@ -183,6 +184,10 @@ export default {
clearInterval(this.interval);
},
methods: {
handleSizeChange(size){
this.pageSize = size;
this.initData();
},
initData() {
this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss");
this.time = moment().format("YYYY-MM-DD HH:mm:ss");
@ -379,24 +384,23 @@ export default {
});
},
//
initQueryTable(pageIndex, pageSize = 30) {
initQueryTable(pageIndex) {
this.setStatus("02", "doing");
getSystemStatusTabList({
startTime: this.startTime,
time: this.time,
type: this.typeQuery,
pageNum: pageIndex,
pageSize: pageSize,
pageSize: this.pageSize,
}).then((res) => {
if (res.code == 200) {
// if (res.rows && res.rows.length > 0) {
this.setStatus("02", "finish");
this.pageIndex = pageIndex;
this.pageSize = pageSize;
this.pageTotal = res.total;
this.tableData = res.rows;
this.tableData.forEach((it, index) => {
it.order = (pageIndex - 1) * pageSize + index + 1;
it.order = (pageIndex - 1) * this.pageSize + index + 1;
});
// } else {
// this.setStatus("02", "empty");

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

@ -123,22 +123,23 @@
</div>
</div> -->
<div class="partCon">
<!-- {{ selectedBdMsg }} -->
<vuescroll :ops="scrollOptions" class="templateBox" v-if="selectedBdMsg.length > 0"
:class="{ hide: isHideCtt }">
<div v-for="(itm, indx) in selectedBdMsg" :key="indx" class="tplItem">
<!-- 模板内容 -->
<BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview>
<!-- 操作按钮 -->
<div class="infoBtnBox">
<el-tooltip content="编辑" placement="top">
<p @click="____onEditBoardItem(itm, indx)" class="btn btnEdit"></p>
</el-tooltip>
<el-tooltip content="删除" placement="top">
<p @click="____onDeleteBoardItem(indx)" class="btn btnDelete"></p>
</el-tooltip>
<draggable tag="div" :list="selectedBdMsg" @end="____onDragend" ghostClass="ghost_class" dragClass="drag_class" chosenClass="chosen_class">
<div v-for="(itm, indx) in selectedBdMsg" :key="indx" class="tplItem">
<!-- 模板内容 -->
<BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview>
<!-- 操作按钮 -->
<div class="infoBtnBox">
<el-tooltip content="编辑" placement="top">
<p @click="____onEditBoardItem(itm, indx)" class="btn btnEdit"></p>
</el-tooltip>
<el-tooltip content="删除" placement="top">
<p @click="____onDeleteBoardItem(indx)" class="btn btnDelete"></p>
</el-tooltip>
</div>
</div>
</div>
</draggable>
</vuescroll>
<Empty v-else text="请从设备回读或从模板添加信息..." style="padding-top: 100px"></Empty>
</div>
@ -216,6 +217,7 @@
</div>
</template>
<script>
import draggable from "vuedraggable";
import Sortable from "sortablejs";
import editInfo from "./editInfo";
import {
@ -247,6 +249,7 @@ export default {
name: "Device",
mixins: [InfoBoard],
components: {
draggable,
WgtTitle,
BoardInfoEditor,
editInfo,
@ -545,6 +548,9 @@ export default {
tpl,
};
},
____onDragend(evt){
// console.log(evt, this.selectedBdMsg , "+++=======")
},
____onEditBoardItem(tpl, index) {
// type : board template
// mode : edit add toDevice toTemplate
@ -1043,7 +1049,7 @@ export default {
padding-bottom: 10px;
.boardPreview {
border: 2px solid #004c64;
border: 2px solid #004c64; background-color: #133242;
// width: 560px;
// height:80px;
flex: 1;
@ -1055,7 +1061,7 @@ export default {
display: flex;
margin-left: 10px;
/* // border: solid 1px #05afe3; */
border: 2px solid #004c64;
border: 2px solid #004c64; background-color: #133242;
display: flex;
justify-content: space-around;
align-items: center;
@ -1100,6 +1106,22 @@ export default {
}
}
.tplItem.ghost_class {
.boardPreview, .infoBtnBox{
border-color:#F00;
}
}
.tplItem.chosen_class {
.boardPreview, .infoBtnBox{
border-color:#0A0;
}
}
.tplItem.drag_class {
.boardPreview, .infoBtnBox{
border-color:#FF0;
}
}
.el-collapse {
max-height: 100% !important;
overflow: auto;

22
ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/images/refresh.svg

@ -0,0 +1,22 @@
<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1142814398">
<g id="Group 1142814396">
<path id="Rectangle 1304" d="M1.0437 2.41495L4.5636 2.01738L4.91112 6.00562" stroke="white" stroke-linecap="round"/>
<g id="Ellipse 835">
<mask id="path-2-inside-1_290_77" fill="white">
<path d="M4.29579 2.52494C4.09359 2.27296 3.71712 2.25216 3.51748 2.50144C2.86315 3.31847 2.39514 4.30903 2.15904 5.38649C1.87758 6.67096 1.93836 8.02122 2.3337 9.26652C2.72904 10.5118 3.44118 11.5962 4.38007 12.3826C5.16561 13.0406 6.08036 13.4652 7.0411 13.6229C7.35243 13.674 7.61901 13.4293 7.63212 13.1145C7.64523 12.7997 7.39954 12.5346 7.08935 12.4765C6.32757 12.3339 5.60349 11.9884 4.97813 11.4646C4.19938 10.8124 3.6087 9.91289 3.28078 8.87998C2.95287 7.84706 2.90245 6.72709 3.13591 5.66169C3.33404 4.75752 3.72906 3.92712 4.28182 3.24492C4.4503 3.03698 4.46523 2.7361 4.29579 2.52494Z"/>
</mask>
<path d="M4.29579 2.52494C4.09359 2.27296 3.71712 2.25216 3.51748 2.50144C2.86315 3.31847 2.39514 4.30903 2.15904 5.38649C1.87758 6.67096 1.93836 8.02122 2.3337 9.26652C2.72904 10.5118 3.44118 11.5962 4.38007 12.3826C5.16561 13.0406 6.08036 13.4652 7.0411 13.6229C7.35243 13.674 7.61901 13.4293 7.63212 13.1145C7.64523 12.7997 7.39954 12.5346 7.08935 12.4765C6.32757 12.3339 5.60349 11.9884 4.97813 11.4646C4.19938 10.8124 3.6087 9.91289 3.28078 8.87998C2.95287 7.84706 2.90245 6.72709 3.13591 5.66169C3.33404 4.75752 3.72906 3.92712 4.28182 3.24492C4.4503 3.03698 4.46523 2.7361 4.29579 2.52494Z" stroke="white" stroke-width="2" mask="url(#path-2-inside-1_290_77)"/>
</g>
</g>
<g id="Group 1142814397">
<path id="Rectangle 1304_2" d="M15.0437 11.585L11.5238 11.9826L11.1763 7.99438" stroke="white" stroke-linecap="round"/>
<g id="Ellipse 835_2">
<mask id="path-4-inside-2_290_77" fill="white">
<path d="M11.7916 11.4751C11.9938 11.727 12.3703 11.7478 12.5699 11.4986C13.2242 10.6815 13.6923 9.69097 13.9284 8.61351C14.2098 7.32904 14.149 5.97878 13.7537 4.73348C13.3584 3.48817 12.6462 2.40376 11.7073 1.61737C10.9218 0.95942 10.007 0.534814 9.0463 0.377109C8.73497 0.326006 8.46839 0.570722 8.45528 0.885536C8.44218 1.20035 8.68786 1.46544 8.99805 1.5235C9.75983 1.6661 10.4839 2.01159 11.1093 2.53538C11.888 3.18765 12.4787 4.08711 12.8066 5.12002C13.1345 6.15294 13.1849 7.27291 12.9515 8.33831C12.7534 9.24248 12.3583 10.0729 11.8056 10.7551C11.6371 10.963 11.6222 11.2639 11.7916 11.4751Z"/>
</mask>
<path d="M11.7916 11.4751C11.9938 11.727 12.3703 11.7478 12.5699 11.4986C13.2242 10.6815 13.6923 9.69097 13.9284 8.61351C14.2098 7.32904 14.149 5.97878 13.7537 4.73348C13.3584 3.48817 12.6462 2.40376 11.7073 1.61737C10.9218 0.95942 10.007 0.534814 9.0463 0.377109C8.73497 0.326006 8.46839 0.570722 8.45528 0.885536C8.44218 1.20035 8.68786 1.46544 8.99805 1.5235C9.75983 1.6661 10.4839 2.01159 11.1093 2.53538C11.888 3.18765 12.4787 4.08711 12.8066 5.12002C13.1345 6.15294 13.1849 7.27291 12.9515 8.33831C12.7534 9.24248 12.3583 10.0729 11.8056 10.7551C11.6371 10.963 11.6222 11.2639 11.7916 11.4751Z" stroke="white" stroke-width="2" mask="url(#path-4-inside-2_290_77)"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

186
ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/index.vue

@ -0,0 +1,186 @@
<template>
<div class='board_record'>
<!-- 搜索栏 -->
<div class="filter">
<div>
<ButtonGradient @click="onRefresh" class="refresh-btn">
<template #prefix>
<img src="./images/refresh.svg" />
</template>
刷新
</ButtonGradient>
<!-- <ButtonGradient>
<template #prefix>
<img src="@screen/images/insert.svg" />
</template>
新增
</ButtonGradient> -->
</div>
</div>
<!-- 内容 -->
<div class="body">
<Table :data="tableData">
<ElTableColumn label="序号" width="60" />
<ElTableColumn label="发布设备" width="60" />
<ElTableColumn label="屏幕尺寸" width="60" />
<ElTableColumn label="设备方向" width="60" />
<ElTableColumn label="设备桩号" width="60" />
<ElTableColumn prop="eventName" label="发布内容" width="240" />
<ElTableColumn prop="eventName" label="发布事件" width="240" />
<ElTableColumn prop="eventName" label="发布状态" width="240" />
<ElTableColumn prop="eventName" label="发布用户" width="240" />
<ElTableColumn label="操作" width="210">
<template slot-scope="scope">
<ElButton type="text" style="color: #00D1FF;" @click="showDisposal(scope.row.eventType)">流程配置</ElButton>
<ElButton type="text" style="color: #00EBC1;" @click="showPhrases(scope.row)">常用语</ElButton>
</template>
</ElTableColumn>
</Table>
</div>
<!-- 分页 -->
<div class="footer">
<Pagination @current-change="initData" @size-change="onSizeChange" width="'100%'" :page-sizes="[10, 20, 30, 40, 50]"
:page-size="searchData.pageSize" :current-page.sync="searchData.pageNum" layout="total, sizes, prev, pager, next"
:total="total">
</Pagination>
</div>
</div>
</template>
<script>
import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue';
import Pagination from '@screen/components/Pagination.vue';
import Table from '@screen/components/Table.vue';
import request from "@/utils/request";
export default {
name: 'boardRecord',
components: {
ButtonGradient,
Pagination,
Table
},
data() {
return {
tableData: [],
isShowPhrases: false,
isShowDisposal: false,
total: 20,
eventType: 1,
searchData: {
pageSize: 20,
pageNum: 1,
},
phrasesData: [],
process: []
}
},
created() {
this.initData();
},
methods: {
initData() {
request({
url: `/business/dcEventType/list`,
method: "get",
params: this.searchData,
}).then((result) => {
if (result.code != 200) return Message.error(result?.msg);
this.tableData = result.rows;
this.total = result.total;
});
},
onRefresh() {
this.tableData = [];
setTimeout(() => {
this.initData();
}, 100);
},
onSizeChange(pageSize) {
this.searchData.pageSize = pageSize;
this.getData();
},
showPhrases(data) {
if (data?.processConfigList.length <= 0) {
Message.warning('请先配置流程!');
return;
}
let process = []
data.processConfigList.forEach(it => {
process.push({
id: it.id,
commonPhrases: it.commonPhrases,
label: it.processNode,
isActive: false,
})
})
this.process = process;
this.isShowPhrases = true;
this.eventType = data.eventType;
},
showDisposal(eventType) {
this.isShowDisposal = true;
this.eventType = eventType;
},
onClosePhrases() {
this.isShowPhrases = false
},
onCloseDisposal() {
this.isShowDisposal = false;
},
onUpdatePhrasesData(phrasesData) {
this.phrasesData = phrasesData;
}
}
}
</script>
<style lang='scss' scoped>
.board_record {
padding: 21px;
height: 100%;
display: flex;
flex-direction: column;
z-index: 6;
width: 100%;
height: 100%;
.filter {
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
>div {
display: flex;
gap: 6px;
}
}
.body {
flex: 1;
position: relative;
overflow: hidden;
.content {
position: absolute;
width: 100%;
height: 100%;
overflow: auto;
}
}
.footer {
margin-top: 15px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
}
}
</style>
Loading…
Cancel
Save