9.1 电子评标室统一路由和模块
This commit is contained in:
@ -4,6 +4,7 @@ import home from './HomePage/router_home';
|
||||
import juryRoom from './JuryRoom/router_menuJury.config';
|
||||
import approvalForm from './router_approval_form';
|
||||
import partyMemberTopic from './router_partyMemberTopic';
|
||||
import { elecBidEvaluation, monitorScreen } from './router_elecEvaluation';
|
||||
export default [
|
||||
//========================================================================登陆
|
||||
...transfer,//跳转、登陆
|
||||
@ -11,6 +12,8 @@ export default [
|
||||
...approvalForm,
|
||||
//党建攻坚
|
||||
...partyMemberTopic,
|
||||
//电子评标室-监控大屏
|
||||
...monitorScreen,
|
||||
{
|
||||
path: '/userformal',
|
||||
// component: '../layouts/UserLayout',
|
||||
@ -47,28 +50,6 @@ export default [
|
||||
path: '/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',
|
||||
@ -129,22 +110,9 @@ export default [
|
||||
path: '/',
|
||||
redirect: '/userexpert/login',
|
||||
},
|
||||
{//设备管理
|
||||
name: 'Device',
|
||||
path: '/Device',
|
||||
component: './Device',
|
||||
},
|
||||
{//评标室查看预约
|
||||
name: 'ElecEvalReserve',
|
||||
path: '/ElecEvalReserve',
|
||||
component: './ElecEvalReserve',
|
||||
},
|
||||
...home,//各角色主页
|
||||
...menuaZhaoBiao,//项目菜单所有路由
|
||||
{
|
||||
path: '/AppointmentManage',
|
||||
component: './AppointmentManage',
|
||||
},
|
||||
...elecBidEvaluation,//电子评标室-监控大屏
|
||||
{//问卷调查
|
||||
name: 'Questionnaire',
|
||||
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',
|
||||
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',
|
||||
icon: 'form',
|
||||
@ -402,11 +337,6 @@ export default [
|
||||
},
|
||||
],
|
||||
},
|
||||
{//异常告警
|
||||
name: 'AbnormalAlarm',
|
||||
path: '/AbnormalAlarm',
|
||||
component: './AbnormalAlarm'
|
||||
},
|
||||
{
|
||||
component: './404',
|
||||
},
|
||||
|
71
config/router_elecEvaluation.ts
Normal file
71
config/router_elecEvaluation.ts
Normal 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',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
@ -2,7 +2,7 @@ import React, { useState, useRef } from 'react';
|
||||
import { message, PageHeader, Button, Spin } from 'antd';
|
||||
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table';
|
||||
import { getPage, handleAlarm } from './service';
|
||||
import ViewEvalAlarmUpdateModal from '../Evaluation/BidControl/BidControlManager/components/ViewEvalAlarmUpdateModal';
|
||||
import ViewEvalAlarmUpdateModal from '../../Evaluation/BidControl/BidControlManager/components/ViewEvalAlarmUpdateModal';
|
||||
|
||||
|
||||
interface alarmData {
|
||||
@ -61,7 +61,8 @@ const AbnormalAalarm: React.FC<{}> = () => {
|
||||
{ title: '评审室名称', dataIndex: 'areaName', width: '10%', hideInSearch: true, align: 'center' },
|
||||
{ title: '告警设备类型', dataIndex: 'deviceType', 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: {
|
||||
1: { text: '设备离线' },
|
||||
2: { text: '人员数量异常' },
|
@ -192,7 +192,7 @@ export default () => {
|
||||
}
|
||||
//查看预约详情跳转
|
||||
const viewMeetContent = () => {
|
||||
window.open("/ElecEvalReserve");
|
||||
window.open("/ElecEvaluation/ElecEvalReserve");
|
||||
}
|
||||
|
||||
useEffect(() => {
|
@ -113,7 +113,7 @@ export const LocalTime = () => {
|
||||
}
|
||||
|
||||
const projectClick = () => {
|
||||
history.push("/MonitorScreen/MonitorRoom");
|
||||
history.push("/ElecMonitorScreen/MonitorRoom");
|
||||
}
|
||||
const GraphChart = (props: { type: string, chartData: any[] }) => {
|
||||
const { type, chartData } = props;
|
@ -149,7 +149,7 @@ const itemRender: PaginationProps['itemRender'] = (_, type, originalElement) =>
|
||||
return originalElement;
|
||||
};
|
||||
export const homeClick = () => {
|
||||
history.push("/MonitorScreen/Home");
|
||||
history.push("/ElecMonitorScreen/Home");
|
||||
}
|
||||
export const previousClick = () => {
|
||||
history.goBack();
|
||||
@ -210,7 +210,7 @@ export default () => {
|
||||
return;
|
||||
}
|
||||
history.push({
|
||||
pathname: "/MonitorScreen/ProjectMonitorRoom",
|
||||
pathname: "/ElecMonitorScreen/ProjectMonitorRoom",
|
||||
state: { monitorId: item.id },
|
||||
})
|
||||
}
|
@ -32,7 +32,7 @@ const OnlineSupervision: React.FC<{}> = () => {
|
||||
|
||||
//在线监督
|
||||
function supervision(record: any): void {
|
||||
window.open("/MonitorScreen/ProjectMonitorRoom?monitorId=" + record.id);
|
||||
window.open("/ElecMonitorScreen/ProjectMonitorRoom?monitorId=" + record.id);
|
||||
}
|
||||
|
||||
const columns: ProColumns<any>[] = [
|
@ -34,7 +34,7 @@ const PostSupervision: React.FC<{}> = () => {
|
||||
|
||||
//评标监控回看
|
||||
function reviewMonitor(record: any): void {
|
||||
window.open("/MonitorScreen/ProjectMonitorRoom?monitorId=" + record.id);
|
||||
window.open("/ElecMonitorScreen/ProjectMonitorRoom?monitorId=" + record.id);
|
||||
}
|
||||
|
||||
const columns: ProColumns<any>[] = [
|
Reference in New Issue
Block a user