9.1 电子评标室统一路由和模块

This commit is contained in:
jl-zhoujl2
2022-09-01 15:08:47 +08:00
parent bb0b21ed30
commit e7ee9ca2f0
34 changed files with 137 additions and 135 deletions

View File

@ -4,6 +4,7 @@ import home from './HomePage/router_home';
import juryRoom from './JuryRoom/router_menuJury.config'; import juryRoom from './JuryRoom/router_menuJury.config';
import approvalForm from './router_approval_form'; import approvalForm from './router_approval_form';
import partyMemberTopic from './router_partyMemberTopic'; import partyMemberTopic from './router_partyMemberTopic';
import { elecBidEvaluation, monitorScreen } from './router_elecEvaluation';
export default [ export default [
//========================================================================登陆 //========================================================================登陆
...transfer,//跳转、登陆 ...transfer,//跳转、登陆
@ -11,6 +12,8 @@ export default [
...approvalForm, ...approvalForm,
//党建攻坚 //党建攻坚
...partyMemberTopic, ...partyMemberTopic,
//电子评标室-监控大屏
...monitorScreen,
{ {
path: '/userformal', path: '/userformal',
// component: '../layouts/UserLayout', // component: '../layouts/UserLayout',
@ -47,28 +50,6 @@ export default [
path: '/401', path: '/401',
component: './401', component: './401',
}, },
{
path: '/MonitorScreen',
routes: [
{
name: 'Home',
path: '/MonitorScreen/Home',
component: './MonitorScreen/Home',
},
{
name: 'MonitorRoom',
path: '/MonitorScreen/MonitorRoom',
component: './MonitorScreen/MonitorRoom',
},
{
name: 'ProjectMonitorRoom',
path: '/MonitorScreen/ProjectMonitorRoom',
component: './MonitorScreen/ProjectMonitorRoom',
},
],
},
{//开标室 {//开标室
path: '/room', path: '/room',
@ -129,22 +110,9 @@ export default [
path: '/', path: '/',
redirect: '/userexpert/login', redirect: '/userexpert/login',
}, },
{//设备管理
name: 'Device',
path: '/Device',
component: './Device',
},
{//评标室查看预约
name: 'ElecEvalReserve',
path: '/ElecEvalReserve',
component: './ElecEvalReserve',
},
...home,//各角色主页 ...home,//各角色主页
...menuaZhaoBiao,//项目菜单所有路由 ...menuaZhaoBiao,//项目菜单所有路由
{ ...elecBidEvaluation,//电子评标室-监控大屏
path: '/AppointmentManage',
component: './AppointmentManage',
},
{//问卷调查 {//问卷调查
name: 'Questionnaire', name: 'Questionnaire',
icon: 'UnorderedListOutlined', icon: 'UnorderedListOutlined',
@ -335,23 +303,6 @@ export default [
}, },
], ],
}, },
{//评标现场管理
name: 'EvalSiteManage',
icon: 'form',
path: '/EvalSiteManage',
routes: [
{//评标现场管理->评标场所人员维护
name: 'SitePerson',
path: '/EvalSiteManage/SitePerson',
component: './EvalSiteManage/SitePerson'
},
{//评标现场管理->人员报道情况查询
name: 'PersonReport',
path: '/EvalSiteManage/PersonReport',
component: './EvalSiteManage/PersonReport'
},
],
},
{//供应商常用信息管理 {//供应商常用信息管理
name: 'supplierInformation', name: 'supplierInformation',
icon: 'crown', icon: 'crown',
@ -374,22 +325,6 @@ export default [
}, },
] ]
}, },
//在线监督和事后监督
{
path: '/VideoMonitor',
routes: [
{
name: 'Online',
path: '/VideoMonitor/Online',
component: './VideoMonitor/Online',
},
{
name: 'Post',
path: '/VideoMonitor/Post',
component: './VideoMonitor/Post',
},
],
},
{//账号信息管理-代理机构管理员 {//账号信息管理-代理机构管理员
name: 'Account', name: 'Account',
icon: 'form', icon: 'form',
@ -402,11 +337,6 @@ export default [
}, },
], ],
}, },
{//异常告警
name: 'AbnormalAlarm',
path: '/AbnormalAlarm',
component: './AbnormalAlarm'
},
{ {
component: './404', component: './404',
}, },

View File

@ -0,0 +1,71 @@
export const monitorScreen = [
//监控大屏
{
path: '/ElecMonitorScreen',
routes: [
{//监控大屏-首页
path: '/ElecMonitorScreen/Home',
component: './ElecEvaluation/MonitorScreen/Home',
},
{//监控大屏-评标室列表页
path: '/ElecMonitorScreen/MonitorRoom',
component: './ElecEvaluation/MonitorScreen/MonitorRoom',
},
{//监控大屏-评标室详情
path: '/ElecMonitorScreen/ProjectMonitorRoom',
component: './ElecEvaluation/MonitorScreen/ProjectMonitorRoom',
},
],
},
]
export const elecBidEvaluation = [
{
path: '/ElecEvaluation',
routes: [
//在线监督和事后监督
{
path: '/ElecEvaluation/VideoMonitor',
routes: [
{
path: '/ElecEvaluation/VideoMonitor/Online',
component: './ElecEvaluation/VideoMonitor/Online',
},
{
path: '/ElecEvaluation/VideoMonitor/Post',
component: './ElecEvaluation/VideoMonitor/Post',
},
],
},
{//异常告警
path: '/ElecEvaluation/AbnormalAlarm',
component: './ElecEvaluation/AbnormalAlarm'
},
{//设备管理
path: '/ElecEvaluation/Device',
component: './ElecEvaluation/Device',
},
{//评标现场管理
path: '/ElecEvaluation/EvalSiteManage',
routes: [
{//评标现场管理->评标场所人员维护
path: '/ElecEvaluation/EvalSiteManage/SitePerson',
component: './ElecEvaluation/EvalSiteManage/SitePerson'
},
{//评标现场管理->人员报道情况查询
path: '/ElecEvaluation/EvalSiteManage/PersonReport',
component: './ElecEvaluation/EvalSiteManage/PersonReport'
},
],
},
{//评标室预约情况
path: '/ElecEvaluation/AppointmentManage',
component: './ElecEvaluation/AppointmentManage',
},
{//评标室查看预约
path: '/ElecEvaluation/ElecEvalReserve',
component: './ElecEvaluation/ElecEvalReserve',
},
],
},
]

View File

@ -2,7 +2,7 @@ import React, { useState, useRef } from 'react';
import { message, PageHeader, Button, Spin } from 'antd'; import { message, PageHeader, Button, Spin } from 'antd';
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table'; import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table';
import { getPage, handleAlarm } from './service'; import { getPage, handleAlarm } from './service';
import ViewEvalAlarmUpdateModal from '../Evaluation/BidControl/BidControlManager/components/ViewEvalAlarmUpdateModal'; import ViewEvalAlarmUpdateModal from '../../Evaluation/BidControl/BidControlManager/components/ViewEvalAlarmUpdateModal';
interface alarmData { interface alarmData {
@ -61,7 +61,8 @@ const AbnormalAalarm: React.FC<{}> = () => {
{ title: '评审室名称', dataIndex: 'areaName', width: '10%', hideInSearch: true, align: 'center' }, { title: '评审室名称', dataIndex: 'areaName', width: '10%', hideInSearch: true, align: 'center' },
{ title: '告警设备类型', dataIndex: 'deviceType', hideInSearch: true, align: 'center' }, { title: '告警设备类型', dataIndex: 'deviceType', hideInSearch: true, align: 'center' },
{ title: '告警设备编号', dataIndex: 'deviceCode', width: '15%', hideInSearch: true, align: 'center' }, { title: '告警设备编号', dataIndex: 'deviceCode', width: '15%', hideInSearch: true, align: 'center' },
{ title: '告警消息', dataIndex: 'type', hideInSearch: false, align: 'center', {
title: '告警消息', dataIndex: 'type', hideInSearch: false, align: 'center',
valueEnum: { valueEnum: {
1: { text: '设备离线' }, 1: { text: '设备离线' },
2: { text: '人员数量异常' }, 2: { text: '人员数量异常' },

View File

@ -192,7 +192,7 @@ export default () => {
} }
//查看预约详情跳转 //查看预约详情跳转
const viewMeetContent = () => { const viewMeetContent = () => {
window.open("/ElecEvalReserve"); window.open("/ElecEvaluation/ElecEvalReserve");
} }
useEffect(() => { useEffect(() => {

View File

@ -113,7 +113,7 @@ export const LocalTime = () => {
} }
const projectClick = () => { const projectClick = () => {
history.push("/MonitorScreen/MonitorRoom"); history.push("/ElecMonitorScreen/MonitorRoom");
} }
const GraphChart = (props: { type: string, chartData: any[] }) => { const GraphChart = (props: { type: string, chartData: any[] }) => {
const { type, chartData } = props; const { type, chartData } = props;

View File

@ -149,7 +149,7 @@ const itemRender: PaginationProps['itemRender'] = (_, type, originalElement) =>
return originalElement; return originalElement;
}; };
export const homeClick = () => { export const homeClick = () => {
history.push("/MonitorScreen/Home"); history.push("/ElecMonitorScreen/Home");
} }
export const previousClick = () => { export const previousClick = () => {
history.goBack(); history.goBack();
@ -210,7 +210,7 @@ export default () => {
return; return;
} }
history.push({ history.push({
pathname: "/MonitorScreen/ProjectMonitorRoom", pathname: "/ElecMonitorScreen/ProjectMonitorRoom",
state: { monitorId: item.id }, state: { monitorId: item.id },
}) })
} }

View File

@ -32,7 +32,7 @@ const OnlineSupervision: React.FC<{}> = () => {
//在线监督 //在线监督
function supervision(record: any): void { function supervision(record: any): void {
window.open("/MonitorScreen/ProjectMonitorRoom?monitorId=" + record.id); window.open("/ElecMonitorScreen/ProjectMonitorRoom?monitorId=" + record.id);
} }
const columns: ProColumns<any>[] = [ const columns: ProColumns<any>[] = [

View File

@ -34,7 +34,7 @@ const PostSupervision: React.FC<{}> = () => {
//评标监控回看 //评标监控回看
function reviewMonitor(record: any): void { function reviewMonitor(record: any): void {
window.open("/MonitorScreen/ProjectMonitorRoom?monitorId=" + record.id); window.open("/ElecMonitorScreen/ProjectMonitorRoom?monitorId=" + record.id);
} }
const columns: ProColumns<any>[] = [ const columns: ProColumns<any>[] = [