Browse Source

增加感知事件复核显示和过滤查询

develop
mengff 4 weeks ago
parent
commit
11eeef489a
  1. 45
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/data.js
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
  3. 22
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/data.js
  4. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/index.vue
  5. 6
      ruoyi-ui/src/views/JiHeExpressway/utils/enum.js

45
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/data.js

@ -407,6 +407,51 @@ export const _formListGz = [
gap: "12px", gap: "12px",
}, },
}, },
{
label: "审核状态:",
key: "auditFlags",
type: "input",
options: {
disabled: true,
placeholder: "",
},
visible: (data) => {
if (data?.auditFlags) {
return true;
}
return false;
},
},
{
label: "审核人:",
key: "auditor",
type: "input",
options: {
disabled: true,
placeholder: "",
},
visible: (data) => {
if (data?.auditor) {
return true;
}
return false;
},
},
{
label: "审核时间:",
key: "auditTime",
type: "input",
options: {
disabled: true,
placeholder: "",
},
visible: (data) => {
if (data?.auditTime) {
return true;
}
return false;
},
},
] ]
export const timeLine1List = [ export const timeLine1List = [
{ {

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

@ -63,7 +63,7 @@
@click.native="onEnd">终止</Button> @click.native="onEnd">终止</Button>
<Button :loading="submitLoading" v-if="check(['business:home:event','control:event:event:disposalAndRelease','control:event:event:disposeOf','home:notice:releaseEvent']) && (activeName == '-1' || activeName == '0')" style="margin-top: 30px;padding: 0 24px" <Button :loading="submitLoading" v-if="check(['business:home:event','control:event:event:disposalAndRelease','control:event:event:disposeOf','home:notice:releaseEvent']) && (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' }" v-if="activeName =='-2'" <Button :style="{ marginTop: '30px', backgroundColor: '#0e708b', padding: '0 24px' }" v-if="(activeName =='-2') && (data.auditFlags =='未审核') "
@click.native="onAudit">复核</Button> @click.native="onAudit">复核</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>

22
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/data.js

@ -164,6 +164,28 @@ export const searchFormList = [
], ],
}, },
}, },
{
label: "审核状态:",
key: "auditFlag",
type: "select",
options: {
clearable: true,
options: [
{
key: "0",
label: "未审核",
},
{
key: "1",
label: "正确",
},
{
key: "2",
label: "错误",
},
],
},
},
{ {
label: "事件主类:", label: "事件主类:",
key: "warningType", key: "warningType",

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

@ -58,7 +58,14 @@ import { tabMap,searchFormList } from "./data";
import request from "@/utils/request"; import request from "@/utils/request";
import { Message } from "element-ui"; import { Message } from "element-ui";
import { Loading } from 'element-ui'; import { Loading } from 'element-ui';
import { WarningType as warningTypeMapping, WarningSubclass as warningSubclassTypeMapping, DirectionTypes as gzDirectionMapping, warningSourceMapping, warningStateMapping } from "@screen/utils/enum.js" import {
WarningType as warningTypeMapping,
WarningSubclass as warningSubclassTypeMapping,
DirectionTypes as gzDirectionMapping,
warningSourceMapping,
warningStateMapping,
auditType
} from "@screen/utils/enum.js"
export default { export default {
name: "RoadNetworkMonitoring2", name: "RoadNetworkMonitoring2",
@ -190,6 +197,9 @@ export default {
data.stringEventState = warningStateMapping[data.warningState]; data.stringEventState = warningStateMapping[data.warningState];
data.stringEventType = warningTypeMapping[data.warningType]; data.stringEventType = warningTypeMapping[data.warningType];
data.stringDirection = gzDirectionMapping[data.direction] || data.direction; data.stringDirection = gzDirectionMapping[data.direction] || data.direction;
data.auditFlags=auditType[data.auditFlag];
data.auditor=data.auditor;
data.auditTime=data.auditTime;
let eventInfo = await request({ let eventInfo = await request({
url: `/dc/system/event/eventSubclass/${id}`, url: `/dc/system/event/eventSubclass/${id}`,
method: "GET", method: "GET",
@ -243,6 +253,7 @@ export default {
warningType: data.warningType, warningType: data.warningType,
warningSource: data?.warningSource || '', warningSource: data?.warningSource || '',
direction: data.direction, direction: data.direction,
auditFlag:data.auditFlag,
startTime: daterange && daterange.length > 0 ? daterange[0] : "", startTime: daterange && daterange.length > 0 ? daterange[0] : "",
// endTime: this.activeName != "-1" && daterange && daterange.length > 0 ? daterange[1] : "", // endTime: this.activeName != "-1" && daterange && daterange.length > 0 ? daterange[1] : "",
completeTime: daterange && daterange.length > 0 ? daterange[1] : "", completeTime: daterange && daterange.length > 0 ? daterange[1] : "",

6
ruoyi-ui/src/views/JiHeExpressway/utils/enum.js

@ -1270,6 +1270,12 @@ export const controlType = {
}, },
}; };
export const auditType = {
0: "未审核",
1: "正确",
2: "错误",
};
export const boolType = { export const boolType = {
0: { 0: {
text: "否", text: "否",

Loading…
Cancel
Save