diff --git a/api/app/lib/controllers/data/vehicle.js b/api/app/lib/controllers/data/vehicle.js index 4ba183a5..e27834f7 100644 --- a/api/app/lib/controllers/data/vehicle.js +++ b/api/app/lib/controllers/data/vehicle.js @@ -7,8 +7,8 @@ async function get(ctx) { const { type } = ctx.request.body; const { name } = ctx.query; const sequelize = ctx.fs.dc.orm - const sqlStr = `select count(p.road_marking) 标线,count(p.roadside_ditch) 边沟, - count(p.guardrail) 护栏, count(p.roadside_trees) 行道树,count(p.wrong_lane) 错车道 + const sqlStr = `select sum(p.road_marking) 标线,sum(p.roadside_ditch) 边沟, + sum(p.guardrail) 护栏, sum(p.roadside_trees) 行道树,sum(p.wrong_lane) 错车道 from ( select t.*,row_number() over (partition by t.luduan order by t.time desc ) rn from ( select code_road||'-'||road_section_start||'-'||road_section_end luduan, diff --git a/api/app/lib/models/report.js b/api/app/lib/models/report.js index adb7d806..00a2c074 100644 --- a/api/app/lib/models/report.js +++ b/api/app/lib/models/report.js @@ -163,7 +163,7 @@ module.exports = dc => { handleState: { type: DataTypes.STRING, allowNull: true, - defaultValue: null, + defaultValue: '已处理', comment: null, primaryKey: false, field: "handle_state", diff --git a/scripts/1.3.0/schema/6.update_report.sql b/scripts/1.3.0/schema/6.update_report.sql deleted file mode 100644 index da99eb71..00000000 --- a/scripts/1.3.0/schema/6.update_report.sql +++ /dev/null @@ -1,4 +0,0 @@ -alter table report - add handle_opinions varchar(1024); - -comment on column report.handle_opinions is '处理意见'; \ No newline at end of file diff --git a/scripts/1.3.1/schema/4.update_report.sql b/scripts/1.3.1/schema/4.update_report.sql index eefe3537..51ab0ebc 100644 --- a/scripts/1.3.1/schema/4.update_report.sql +++ b/scripts/1.3.1/schema/4.update_report.sql @@ -1,6 +1,13 @@ ALTER TABLE "public"."report" - ADD COLUMN "handle_advice" varchar(1024); + ADD COLUMN "handle_advice" varchar(1024) + add handle_opinions varchar(1024); COMMENT ON COLUMN "public"."report"."handle_state" IS '待处理 / 已指派 / 已处理 / 不处理'; -COMMENT ON COLUMN "public"."report"."handle_advice" IS '管理员处理意见'; \ No newline at end of file +COMMENT ON COLUMN "public"."report"."handle_advice" IS '管理员处理意见'; + +comment on column report.handle_opinions is '处理意见'; + + + + diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index aad264a0..ab002782 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -871,7 +871,7 @@ const Index = () => { if (isSuperAdmin) { data = { handleState: isAppoint ? '已指派' : '不处理', - performerId: userList[appointUser].id, + performerId: userList[appointUser]?.id, handleAdvice, } } else { diff --git a/web/client/src/sections/auth/containers/login.js b/web/client/src/sections/auth/containers/login.js index dd46d798..e7eb603a 100644 --- a/web/client/src/sections/auth/containers/login.js +++ b/web/client/src/sections/auth/containers/login.js @@ -31,7 +31,8 @@ const Login = props => { if (user && user.authorized) { hasAuth = allroutes?.filter((item) => { return user?.userResources.find((child) => { return child.resourceId === item.authCode }) }) if (user?.username === 'SuperAdmin') { - dispatch(push('/fillion/infor')) + dispatch(push('/fillion/luzheng')) + } else if (hasAuth && hasAuth.length > 0) { const path = hasAuth[0].path diff --git a/web/client/src/sections/fillion/components/uploads.js b/web/client/src/sections/fillion/components/uploads.js index 920bf5c8..90088077 100644 --- a/web/client/src/sections/fillion/components/uploads.js +++ b/web/client/src/sections/fillion/components/uploads.js @@ -56,12 +56,13 @@ class Uploads extends Component { componentWillReceiveProps (np) { const { dispatch, value: thisEditData, onChange } = this.props; const { value: nextEditData, clearFileList } = np; - + console.log(nextEditData,'哈哈哈哈') + const setFileList = () => { let defaultFileList = []; defaultFileList = nextEditData.map((u, index) => { // let fileUrl = `${this.ApiRoot}/${u.storageUrl}`; - let fileUrl = `${u.storageUrl}`; + let fileUrl = `${u.url}`; return { uid: -index - 1, name: this.dealName(u.storageUrl), @@ -75,7 +76,6 @@ class Uploads extends Component { fileList: defaultFileList }); }; - if (nextEditData && nextEditData.length) { if (!thisEditData || !this.state.fileList.length) { setFileList(); diff --git a/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js b/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js index 28d119a7..01390aec 100644 --- a/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js +++ b/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js @@ -450,7 +450,7 @@ const MaintenanceSpotCheck = (props) => {
@@ -468,19 +468,18 @@ const MaintenanceSpotCheck = (props) => { > - % - + */} -
- -
+ +
diff --git a/web/client/src/sections/quanju/containers/footer/guanli/index.js b/web/client/src/sections/quanju/containers/footer/guanli/index.js index 3e42faf5..9265d77c 100644 --- a/web/client/src/sections/quanju/containers/footer/guanli/index.js +++ b/web/client/src/sections/quanju/containers/footer/guanli/index.js @@ -65,7 +65,6 @@ const Guanli = (props) => { } - useEffect(() => { requestleftDatas(); // requestRightDatas() @@ -79,12 +78,14 @@ const Guanli = (props) => { if (index < 120) { return
-
+
{picfile?.length > 0 ? - {picfile?.map(v => )} : { {enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"}

- 执法道路: {roadname}

- 执法成果: @@ -168,7 +169,7 @@ const Guanli = (props) => { 处罚 处理日期

*/} - o
+
执法日期
执法成果
@@ -181,7 +182,7 @@ const Guanli = (props) => { ) } function mapStateToProps (state) { - const { auth, depMessage } = state; + const { auth, depMessage, global } = state; const pakData = (dep) => { return dep.map((d) => { return { diff --git a/web/client/src/sections/quanju/containers/footer/guanli/style.less b/web/client/src/sections/quanju/containers/footer/guanli/style.less index f1edaf71..7d612b9f 100644 --- a/web/client/src/sections/quanju/containers/footer/guanli/style.less +++ b/web/client/src/sections/quanju/containers/footer/guanli/style.less @@ -1,7 +1,7 @@ -@media screen and (max-width:1366px) { - html { - font-size: 12px; - } +@media screen and (max-width: 1366px) { + html { + font-size: 12px; + } } // .guanli{ @@ -13,291 +13,298 @@ // display: flex; // justify-content: space-between; .guanli-left { - width: 25%; - height: 100%; - position: absolute; - left: 0; - - .guanli-left-item { - box-sizing: border-box; - width: 85%; - position: relative; - // height: 30%; - height: 24vh; - margin: 0 auto 3%; + width: 25%; + height: 100%; + position: absolute; + left: 0; + + .guanli-left-item { + box-sizing: border-box; + width: 85%; + position: relative; + // height: 30%; + height: 24vh; + margin: 0 auto 3%; + display: flex; + align-items: center; + padding: 0 10%; + justify-content: space-between; + border: 2px solid rgba(28, 96, 254, 0.5); + + .guanli-left-item-left { + width: 45%; + height: 60%; + display: flex; + flex-direction: column; + align-items: center; + + span { + font-size: 1.25rem; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: rgba(216, 240, 255, 0.8); + } + + div { display: flex; - align-items: center; - padding: 0 10%; - justify-content: space-between; - border: 2px solid rgba(28, 96, 254, 0.5000); - - .guanli-left-item-left { - width: 45%; - height: 60%; - display: flex; - flex-direction: column; - align-items: center; - - span { - font-size: 1.25rem; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: rgba(216, 240, 255, 0.8000); - } - - div { - display: flex; - justify-content: center; - // align-items: ; - font-size: 2.125rem; - font-family: YouSheBiaoTiHei; - color: #FFFFFF; - height: 70%; - width: 100%; - background: url('/assets/images/quanju/guanlijiance_1.png') no-repeat; - background-size: 100% 80%; - background-position: center bottom; - - span { - font-size: 1rem; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - padding-top: 10%; - margin-left: 5px; - // height: 0; - color: rgba(216, 240, 255, 0.8000); - } - } - - // background-color: pink; - } - - .guanli-left-item-right { - width: 40%; - height: 50%; - position: relative; - - span { - position: absolute; - width: 8px; - height: 8px; - background-color: #fff; - top: 1.5%; - left: 50%; - z-index: 10; - border-radius: 4px; - display: block; - } - - // background-color: pink; - } - - // background-color: pink; - } -} - -.guanli-right { - width: 25%; - height: 100%; - position: absolute; - right: 0; - - .guanli-right-top { + justify-content: center; + // align-items: ; + font-size: 2.125rem; + font-family: YouSheBiaoTiHei; + color: #ffffff; + height: 70%; width: 100%; - // height: 5%; - display: flex; - justify-content: flex-end; - align-items: center; - padding-right: 10px; - - img { - width: 4%; - // height: 40%; - } + background: url("/assets/images/quanju/guanlijiance_1.png") no-repeat; + background-size: 100% 80%; + background-position: center bottom; span { - &:nth-child(2) { - font-size: 16px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: rgba(216, 240, 255, 0.8000); - margin: 0 10px 0 2px - } - - &:nth-child(3) { - font-size: 18px; - font-family: PingFangSC-Medium, PingFang SC; - font-weight: 500; - color: #FFFFFF; - margin-right: 10px; - } - - &:nth-child(4) { - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: rgba(216, 240, 255, 0.8000); - } + font-size: 1rem; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + padding-top: 10%; + margin-left: 5px; + // height: 0; + color: rgba(216, 240, 255, 0.8); } + } - + // background-color: pink; } - .guanli-right-title { - width: 90%; - height: 5%; - margin: auto; - display: flex; - align-items: center; - justify-content: space-around; - background: rgba(21, 77, 160, 0.2000); - - span { - font-size: 12px; - font-family: PingFangSC-Medium, PingFang SC; - font-weight: 500; - color: #FFFFFF; - flex: 1; - text-align: center; - // &:nth-child(1){ - - // } - } + .guanli-left-item-right { + width: 40%; + height: 50%; + position: relative; + + span { + position: absolute; + width: 8px; + height: 8px; + background-color: #fff; + top: 1.5%; + left: 50%; + z-index: 10; + border-radius: 4px; + display: block; + } + + // background-color: pink; } - .guanli-right-item { - width: 90%; - // height: 4%; - height: 3vh; - margin: auto; - display: flex; - align-items: center; - justify-content: space-around; + // background-color: pink; + } +} - &:hover { - background: linear-gradient(270deg, rgba(0, 124, 230, 0) 0%, rgba(0, 70, 200, 0.8700) 100%); - } +.guanli-right { + width: 25%; + height: 100%; + position: absolute; + right: 0; + + .guanli-right-top { + width: 100%; + // height: 5%; + display: flex; + justify-content: flex-end; + align-items: center; + padding-right: 10px; + + img { + width: 4%; + // height: 40%; + } - // background: rgba(21,77,160,0.2000); - span { - font-size: 0.875rem; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: rgba(216, 240, 255, 0.8000); - line-height: 20px; - flex: 1; - text-align: center; - // &:nth-child(1){ + span { + &:nth-child(2) { + font-size: 16px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: rgba(216, 240, 255, 0.8); + margin: 0 10px 0 2px; + } + + &:nth-child(3) { + font-size: 18px; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #ffffff; + margin-right: 10px; + } + + &:nth-child(4) { + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: rgba(216, 240, 255, 0.8); + } + } + } + + .guanli-right-title { + width: 90%; + height: 5%; + margin: auto; + display: flex; + align-items: center; + justify-content: space-around; + background: rgba(21, 77, 160, 0.2); + + span { + font-size: 12px; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #ffffff; + flex: 1; + text-align: center; + // &:nth-child(1){ + + // } + } + } + + .guanli-right-item { + width: 90%; + // height: 4%; + height: 3vh; + margin: auto; + display: flex; + align-items: center; + justify-content: space-around; + + &:hover { + background: linear-gradient( + 270deg, + rgba(0, 124, 230, 0) 0%, + rgba(0, 70, 200, 0.87) 100% + ); + } - // } - } + // background: rgba(21,77,160,0.2000); + span { + font-size: 0.875rem; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: rgba(216, 240, 255, 0.8); + line-height: 20px; + flex: 1; + text-align: center; + // &:nth-child(1){ + + // } } + + } } .popover-content { - // background-color: red; - // .ant-popover-inner-content{ - // padding: 0!important; - // } - // .address { - // width: 80%; - // height: 80%; - // top: 10%; - // position: absolute; - // // background-color: pink; - - // .address1 { - // width: 194px; - // height: 20px; - // margin: 16px 0 24px 26px; - // span { - // &:nth-child(1) { - // margin-right: 20px; - // width: 42px; - // height: 20px; - // display: inline-block; - // overflow-wrap: break-word; - // color: rgba(216, 240, 255, 0.8); - // font-size: 14px; - // font-family: PingFangSC-Regular; - // white-space: nowrap; - // line-height: 20px; - // text-align: left; - // } - // &:nth-child(2) { - // width: 28px; - // height: 20px; - // display: inline-block; - // overflow-wrap: break-word; - // color: rgba(238, 244, 255, 1); - // font-size: 14px; - // font-family: PingFangSC-Medium; - // white-space: nowrap; - // line-height: 20px; - // text-align: left; - // } - // } - // } - - // .address2 { - // width: 194px; - // height: 20px; - // margin: 16px 0 24px 26px; - - // span { - // &:nth-child(1) { - // margin-right: 35px; - // width: 28px; - // height: 20px; - // display: inline-block; - // overflow-wrap: break-word; - // color: rgba(216, 240, 255, 0.8); - // font-size: 14px; - // font-family: PingFangSC-Regular; - // white-space: nowrap; - // line-height: 20px; - // text-align: right; - // } - // &:nth-child(2) { - // width: 126px; - // height: 20px; - // display: inline-block; - // overflow-wrap: break-word; - // color: rgba(255, 255, 255, 1); - // font-size: 14px; - // font-family: PingFangSC-Medium; - // white-space: nowrap; - // line-height: 20px; - // text-align: right; - // } - // } - // } - // } + // background-color: red; + // .ant-popover-inner-content{ + // padding: 0!important; + // } + // .address { + // width: 80%; + // height: 80%; + // top: 10%; + // position: absolute; + // // background-color: pink; + + // .address1 { + // width: 194px; + // height: 20px; + // margin: 16px 0 24px 26px; + // span { + // &:nth-child(1) { + // margin-right: 20px; + // width: 42px; + // height: 20px; + // display: inline-block; + // overflow-wrap: break-word; + // color: rgba(216, 240, 255, 0.8); + // font-size: 14px; + // font-family: PingFangSC-Regular; + // white-space: nowrap; + // line-height: 20px; + // text-align: left; + // } + // &:nth-child(2) { + // width: 28px; + // height: 20px; + // display: inline-block; + // overflow-wrap: break-word; + // color: rgba(238, 244, 255, 1); + // font-size: 14px; + // font-family: PingFangSC-Medium; + // white-space: nowrap; + // line-height: 20px; + // text-align: left; + // } + // } + // } + + // .address2 { + // width: 194px; + // height: 20px; + // margin: 16px 0 24px 26px; + + // span { + // &:nth-child(1) { + // margin-right: 35px; + // width: 28px; + // height: 20px; + // display: inline-block; + // overflow-wrap: break-word; + // color: rgba(216, 240, 255, 0.8); + // font-size: 14px; + // font-family: PingFangSC-Regular; + // white-space: nowrap; + // line-height: 20px; + // text-align: right; + // } + // &:nth-child(2) { + // width: 126px; + // height: 20px; + // display: inline-block; + // overflow-wrap: break-word; + // color: rgba(255, 255, 255, 1); + // font-size: 14px; + // font-family: PingFangSC-Medium; + // white-space: nowrap; + // line-height: 20px; + // text-align: right; + // } + // } + // } + // } + .picfileimg { + width: 200px !important; + height: 200px !important; + } } .popover { - .ant-tooltip-inner{ - min-width: 0 !important; - min-height: 0 !important; - background-color: rgba(0, 0, 0, 0) !important; - } -.ant-tooltip-arrow{ + .ant-tooltip-inner { + min-width: 0 !important; + min-height: 0 !important; + background-color: rgba(0, 0, 0, 0) !important; + } + .ant-tooltip-arrow { display: none; + } + // .ant-popover-arrow { + // .ant-popover-arrow-content { + // display: none; + // } + + // span { + // display: none; + // } + // } + + // .ant-popover-inner { + // .ant-popover-inner-content { + // padding: 0; + // } + // } + // .ant-popover-inner{padding:0 !important;} } - // .ant-popover-arrow { - // .ant-popover-arrow-content { - // display: none; - // } - - // span { - // display: none; - // } - // } - - // .ant-popover-inner { - // .ant-popover-inner-content { - // padding: 0; - // } - // } - // .ant-popover-inner{padding:0 !important;} -} \ No newline at end of file diff --git a/web/client/src/sections/quanju/containers/footer/leadership/right/right-bottom.js b/web/client/src/sections/quanju/containers/footer/leadership/right/right-bottom.js index a5c5af5c..b0aba75d 100644 --- a/web/client/src/sections/quanju/containers/footer/leadership/right/right-bottom.js +++ b/web/client/src/sections/quanju/containers/footer/leadership/right/right-bottom.js @@ -1,108 +1,139 @@ import React, { useState, useEffect } from 'react' import Module from '../../../public/module' -import { Spin } from 'antd' +import { Carousel, Tooltip, } from 'antd' import Lun from "./lunbo" +import moment from 'moment' import "./left.less" import { getZhichaolist } from "../../../../actions/example" +import { getRoadadministration } from '../../../../../fillion/actions/luzheng' +import NoData from '../../../public/noData'; +import AutoRollComponent from '../../build/AutoRollComponent' + + const Rightbottom = (props) => { - const { dispatch } = props - const style = { height: "28%", marginTop: "4%" } - const [beijing, setBeijing] = useState() - const [list, setList] = useState([]) - const [rightDatas, setrightDatas] = useState([]) - const [nums, setNums] = useState([]) - const [num, setNum] = useState() - const requestRightDatas = async () => { - const res = await dispatch(getZhichaolist()) - var pattern = /[\u4e00-\u9fa5]*/; - let d = res.payload.data?.overSpeedList?.filter((item, index) => { - return /.*[\u4e00-\u9fa5_a-zA-Z]+.*$/.test(item.processingTime) == false - }) - console.log(res); - d.map((item, index) => { - if (parseInt(item.processingTime.match(/([^.]*)$/)[0]) < 10) { - return item.processingTime = `${(item.processingTime.match(/^([^.]*)(.[^.]*)/)[0])}.0${parseInt(item.processingTime.match(/([^.]*)$/)[0])}` - } - }) - d.sort((a, b) => b.processingTime.localeCompare(a.processingTime)) - // setrightDatas(res.payload.data) - setList(d) - } - useEffect(() => { - const zhichaolist = dispatch(getZhichaolist()).then((res) => { - setNums(res.payload?.data?.processed) - - }) - requestRightDatas() - }, []) - console.log(list); - const renderBody = () => { - return ( -
- {/* */} - {list?.map((item, index) => { - return
  • { - setBeijing(index) - setNum(index) - // console.log(beijing); - }} onMouseLeave={() => { - setBeijing() - setNum() - }}> - {beijing == index ? : ""} -
    {item.licensePlate}
    -
    {item.overrunRate ? item.overrunRate + "%" : "--"}
    -
    {item.deductPoints ? "-" + item.deductPoints + "分" : ""}{item.deductPoints && item.fine ? "和" : ""}{item.fine ? "-" + item.fine + "元" : ""}{item.deductPoints || item.fine ? "" : "--"}
    -
    {item.processingTime ? item.processingTime : "--"}
    - { - num == index ?
    - -
    - -

    {item.overrunRate ? item.overrunRate + "%" : "--"}

    -

    超限

    -
    -
    -

    车牌号{item.licensePlate}

    -

    检测点{item.nameOfInspectionPoint ? item.nameOfInspectionPoint : "--"}

    -

    处罚{item.deductPoints ? "-" + item.deductPoints + "分" : ""}{item.deductPoints && item.fine ? "和" : ""}{item.fine ? "-" + item.fine + "元" : ""}{item.deductPoints || item.fine ? "" : "--"}

    -

    日期{item.processingTime ? item.processingTime : "--"}

    -
    -
    : "" + const { dispatch } = props + const style = { height: "28%", marginTop: "4%" } + const [beijing, setBeijing] = useState() + const [list, setList] = useState([]) + const [rightDatas, setrightDatas] = useState([]) + const [nums, setNums] = useState([]) + const [num, setNum] = useState() + const [rightitemlist, setrightitemlist] = useState([]) + + const requestRightDatas = async () => { + const res = await dispatch(getZhichaolist()) + var pattern = /[\u4e00-\u9fa5]*/; + let d = res.payload.data?.overSpeedList?.filter((item, index) => { + return /.*[\u4e00-\u9fa5_a-zA-Z]+.*$/.test(item.processingTime) == false + }) + console.log(res); + d.map((item, index) => { + if (parseInt(item.processingTime.match(/([^.]*)$/)[0]) < 10) { + return item.processingTime = `${(item.processingTime.match(/^([^.]*)(.[^.]*)/)[0])}.0${parseInt(item.processingTime.match(/([^.]*)$/)[0])}` + } + }) + d.sort((a, b) => b.processingTime.localeCompare(a.processingTime)) + // setrightDatas(res.payload.data) + setList(d) + } + useEffect(() => { + // const zhichaolist = dispatch(getZhichaolist()).then((res) => { + // setNums(res.payload?.data?.processed) + + // }) + // requestRightDatas() + roadManagement() + }, []) + + const roadManagement = async () => { + await dispatch(getRoadadministration({})).then(res => { + if (res.success) { + setrightitemlist(res.payload.data?.rows || []) + } + }) + + + + } + + const renderContent = () => { + + return
    + {rightitemlist && rightitemlist.length !== 0 ? rightitemlist?.map(({ enforcementdate, enforcementreslt, roadname, picfile }, index) => { + if (index < 120) { + return
    + +
    + + {picfile?.length > 0 ? + {picfile?.map(v => )} + + : } -
  • - }) - } - {/*
    */} + +
    +

    + 执法日期: + {enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"} +

    +

    + 执法道路: + {roadname} +

    +

    + 执法成果: + {enforcementreslt}

    +
    +
    + +
    } + placement="leftTop" + overlayStyle={{ minWidth: 500, minHeight: 200, paddingTop: 10, margin: 0, backgroundImage: `url(../../../../../assets/images/leadership/beijinglan.png)` }} + overlayClassName='popover' + + > +
    +
    {enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"}
    +
    {enforcementreslt}
    +
    + +
    + } + }) : ""} +
    + } + return ( + <> + + +
    +
    执法日期
    +
    执法成果
    - ) - } - return ( - <> - - -
    - - 已处理{nums ? nums : 0}件 -
    -
    -

    车牌号

    -

    超限

    -

    处罚

    -

    处理日期

    -
    - {/* */} - - {/* */} -
    - - ) + {rightitemlist && rightitemlist.length !== 0 ? : } + +
    + + ) } export default Rightbottom \ No newline at end of file diff --git a/web/client/src/sections/quanju/containers/heand/index.js b/web/client/src/sections/quanju/containers/heand/index.js index 2897b285..bda0a41a 100644 --- a/web/client/src/sections/quanju/containers/heand/index.js +++ b/web/client/src/sections/quanju/containers/heand/index.js @@ -17,8 +17,9 @@ const Header = (props) => { const allroutes = JSON.parse(sessionStorage.getItem('allRoutes')) || [] const hasAuth = allroutes?.filter((item) => { return user?.userResources.find((child) => { return child.resourceId === item.authCode }) }) if (user?.username === 'SuperAdmin') { - dispatch(push('/fillion/infor')) + dispatch(push('/fillion/luzheng')) } + else if (hasAuth && hasAuth.length > 0) { const path = hasAuth[0].path console.log('sasa', `${path}`)