diff --git a/config/config.ts b/config/config.ts index c3955ff..672eeaf 100644 --- a/config/config.ts +++ b/config/config.ts @@ -28,6 +28,8 @@ export default defineConfig({ theme: { // ...darkTheme, 'primary-color': defaultSettings.primaryColor, + 'heading-color': defaultSettings.headingColor, + 'text-color': defaultSettings.textColor, }, // @ts-ignore title: false, diff --git a/config/defaultSettings.ts b/config/defaultSettings.ts index d281703..6a852dc 100644 --- a/config/defaultSettings.ts +++ b/config/defaultSettings.ts @@ -2,11 +2,15 @@ import { Settings as ProSettings } from '@ant-design/pro-layout'; type DefaultSettings = ProSettings & { pwa: boolean; + headingColor:string; + textColor:string; }; const proSettings: DefaultSettings = { navTheme: 'light', - primaryColor: '#b30000', + primaryColor: 'rgb(0,79,142)', + headingColor:"#000", + textColor:"#000", layout: 'side', contentWidth: 'Fluid', fixedHeader: false, @@ -15,7 +19,7 @@ const proSettings: DefaultSettings = { menu: { locale: true, }, - title: '招投标系统', + title: '中远海运', pwa: false, iconfontUrl: '', }; diff --git a/config/router.config.ts b/config/router.config.ts index 8dd2a76..94ce732 100644 --- a/config/router.config.ts +++ b/config/router.config.ts @@ -1,49 +1,46 @@ -import menuaZhaoBiao from './ZhaoBiao/router_menubProject.config'; -import transfer from './router_transfer'; -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 highQualityOperation from './router_highQualityOperation'; -import { elecBidEvaluation, monitor, monitorScreen } from './router_elecEvaluation'; + export default [ - //========================================================================登陆 - ...transfer,//跳转、登陆 { - path: '/userformal', - // component: '../layouts/UserLayout', + path: '/', + component: '@/layouts/Index', routes: [ { - name: 'login', - path: '/userformal/login', - component: './userformal/login', + path: '/', + redirect: '/index', }, - ], - }, - { - path: '/loading', - routes: [ { - path: '/loading', - component: './Loading', + name: 'index', + path: '/index', + component: '@/pages/index', }, - ], + { + name: 'announce', + path: '/announce', + component: '@/pages/announce/announce', + }, + { + name: 'policy', + path: '/policy', + component: '@/pages/policy/policy', + }, + { + name: 'notice', + path: '/notice', + component: '@/pages/notice/notice', + }, + { + name: 'download', + path: '/download', + component: '@/pages/download/download', + }, + { + name: 'about', + path: '/about', + component: '@/pages/about/about', + } + ] }, - //日历组件暂时用 - // { - // path: '/Calendar', - // component: './MainPage/ProjectManager/components/CalendarForm', - // }, - //视频播放-视频播放列表(暂时用) - { - path: '/ElecEvaluation/Monitor/videoplay', - component: './ElecEvaluation/Monitor/RoomDetail/videoplay', - }, - //富文本组件 - // { - // path: '/editor', - // component: './MainPage/ProjectManager/components/WangEditor', - // }, + //401错误页 { exact: true, @@ -54,69 +51,5 @@ export default [ exact: true, path: '/404', component: './404', - }, - //==========================================================================菜单路由 - { - path: '/', - component: '../layouts/SecurityLayout', - routes: [ - { - path: '/', - component: '../layouts/BasicLayout', - //authority: ['ebtp-expert'], - routes: [ - {//专家登陆地址 - path: '/', - redirect: '/userexpert/login', - }, - ...home,//各角色主页 - ...menuaZhaoBiao,//项目菜单所有路由 - ...elecBidEvaluation,//电子评标室-监控大屏 - {//问卷调查 - name: 'Questionnaire', - icon: 'UnorderedListOutlined', - path: '/Questionnaire', - routes: [ - {//问卷调查 - name: 'QuestionList', - path: '/Questionnaire/questionList', - component: './Questionnaire/questionList' - }, - {//问卷调查新增 - name: 'questionAdd', - path: '/Questionnaire/questionAdd', - component: './Questionnaire/questionAdd' - }, - {//问卷统计 - name: 'QuestionStatistics', - path: '/Questionnaire/questionStatistics', - component: './Questionnaire/questionStatistics' - }, - ], - }, - {//我的工作台 - name: 'workbench', - icon: 'DesktopOutlined', - //authority: ['ebtp-expert'], - path: '/workbench', - routes: [ - { name: 'commonFiles', path: '/workbench/files', component: './workbench/files/components/FilesList' },//共享文档下载-所有角色 - { name: 'commonFilesManage', path: '/workbench/filesManage', component: './workbench/filesManage/components/filesManage' },//共享文档管理-系统管理员 - ] - }, - { name: 'systemMessage', path: '/SystemMessage/message', component: './SystemMessage/message' },//系统消息-所有角色 - { - component: './404', - }, - ], - }, - { - component: './404', - }, - ], - }, - { - component: './404', - }, - + } ]; diff --git a/src/assets/choiceLogin/chionceLoginPic01.png b/src/assets/choiceLogin/chionceLoginPic01.png deleted file mode 100644 index 793e4e7..0000000 Binary files a/src/assets/choiceLogin/chionceLoginPic01.png and /dev/null differ diff --git a/src/assets/choiceLogin/chionceLoginPic02.png b/src/assets/choiceLogin/chionceLoginPic02.png deleted file mode 100644 index 8173789..0000000 Binary files a/src/assets/choiceLogin/chionceLoginPic02.png and /dev/null differ diff --git a/src/assets/choiceLogin/choiceLoginBg.jpg b/src/assets/choiceLogin/choiceLoginBg.jpg deleted file mode 100644 index a28cf6d..0000000 Binary files a/src/assets/choiceLogin/choiceLoginBg.jpg and /dev/null differ diff --git a/src/assets/defaultImage/defaultImage.jpg b/src/assets/defaultImage/defaultImage.jpg deleted file mode 100644 index e75c370..0000000 Binary files a/src/assets/defaultImage/defaultImage.jpg and /dev/null differ diff --git a/src/assets/drag.less b/src/assets/drag.less deleted file mode 100644 index 20ecf28..0000000 --- a/src/assets/drag.less +++ /dev/null @@ -1,13 +0,0 @@ -.row-dragging { - background: #fafafa; - border: 1px solid #ccc; - z-index: 99999999; -} - -.row-dragging td { - padding: 16px; -} - -.row-dragging .drag-visible { - visibility: visible; -} \ No newline at end of file diff --git a/src/assets/highQuality/bannerListPic.jpg b/src/assets/highQuality/bannerListPic.jpg deleted file mode 100644 index 7aa025a..0000000 Binary files a/src/assets/highQuality/bannerListPic.jpg and /dev/null differ diff --git a/src/assets/highQuality/bottom_button.png b/src/assets/highQuality/bottom_button.png deleted file mode 100644 index cfe48b3..0000000 Binary files a/src/assets/highQuality/bottom_button.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_2.png b/src/assets/highQuality/card_img_2.png deleted file mode 100644 index ddce8e3..0000000 Binary files a/src/assets/highQuality/card_img_2.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_3.png b/src/assets/highQuality/card_img_3.png deleted file mode 100644 index c4c3a0d..0000000 Binary files a/src/assets/highQuality/card_img_3.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_4.png b/src/assets/highQuality/card_img_4.png deleted file mode 100644 index 70a1e3a..0000000 Binary files a/src/assets/highQuality/card_img_4.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_5.png b/src/assets/highQuality/card_img_5.png deleted file mode 100644 index a62c180..0000000 Binary files a/src/assets/highQuality/card_img_5.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_6.png b/src/assets/highQuality/card_img_6.png deleted file mode 100644 index b47eb39..0000000 Binary files a/src/assets/highQuality/card_img_6.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_7.png b/src/assets/highQuality/card_img_7.png deleted file mode 100644 index 4642d65..0000000 Binary files a/src/assets/highQuality/card_img_7.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_8.png b/src/assets/highQuality/card_img_8.png deleted file mode 100644 index 61cb53a..0000000 Binary files a/src/assets/highQuality/card_img_8.png and /dev/null differ diff --git a/src/assets/highQuality/card_img_9.png b/src/assets/highQuality/card_img_9.png deleted file mode 100644 index 9eb697a..0000000 Binary files a/src/assets/highQuality/card_img_9.png and /dev/null differ diff --git a/src/assets/highQuality/card_picture.jpg b/src/assets/highQuality/card_picture.jpg deleted file mode 100644 index f2db355..0000000 Binary files a/src/assets/highQuality/card_picture.jpg and /dev/null differ diff --git a/src/assets/highQuality/classroom_banner.jpg b/src/assets/highQuality/classroom_banner.jpg deleted file mode 100644 index 08916ac..0000000 Binary files a/src/assets/highQuality/classroom_banner.jpg and /dev/null differ diff --git a/src/assets/highQuality/classroom_bg.jpg b/src/assets/highQuality/classroom_bg.jpg deleted file mode 100644 index 633fcb5..0000000 Binary files a/src/assets/highQuality/classroom_bg.jpg and /dev/null differ diff --git a/src/assets/highQuality/flag.png b/src/assets/highQuality/flag.png deleted file mode 100644 index 30be0b2..0000000 Binary files a/src/assets/highQuality/flag.png and /dev/null differ diff --git a/src/assets/highQuality/header.jpg b/src/assets/highQuality/header.jpg deleted file mode 100644 index 339c70c..0000000 Binary files a/src/assets/highQuality/header.jpg and /dev/null differ diff --git a/src/assets/highQuality/learn.jpg b/src/assets/highQuality/learn.jpg deleted file mode 100644 index 3ddfba8..0000000 Binary files a/src/assets/highQuality/learn.jpg and /dev/null differ diff --git a/src/assets/highQuality/material.jpg b/src/assets/highQuality/material.jpg deleted file mode 100644 index ec7ea6b..0000000 Binary files a/src/assets/highQuality/material.jpg and /dev/null differ diff --git a/src/assets/highQuality/news_banner.jpg b/src/assets/highQuality/news_banner.jpg deleted file mode 100644 index 0ccdd7d..0000000 Binary files a/src/assets/highQuality/news_banner.jpg and /dev/null differ diff --git a/src/assets/highQuality/news_bg.jpg b/src/assets/highQuality/news_bg.jpg deleted file mode 100644 index 8f95131..0000000 Binary files a/src/assets/highQuality/news_bg.jpg and /dev/null differ diff --git a/src/assets/highQuality/partybranch.png b/src/assets/highQuality/partybranch.png deleted file mode 100644 index 14f14db..0000000 Binary files a/src/assets/highQuality/partybranch.png and /dev/null differ diff --git a/src/assets/highQuality/partymember.png b/src/assets/highQuality/partymember.png deleted file mode 100644 index 1d2b88d..0000000 Binary files a/src/assets/highQuality/partymember.png and /dev/null differ diff --git a/src/assets/highQuality/project_banner.jpg b/src/assets/highQuality/project_banner.jpg deleted file mode 100644 index 9e7db77..0000000 Binary files a/src/assets/highQuality/project_banner.jpg and /dev/null differ diff --git a/src/assets/highQuality/project_bg.jpg b/src/assets/highQuality/project_bg.jpg deleted file mode 100644 index 6ea90ef..0000000 Binary files a/src/assets/highQuality/project_bg.jpg and /dev/null differ diff --git a/src/assets/highQuality/project_left.jpg b/src/assets/highQuality/project_left.jpg deleted file mode 100644 index 7596195..0000000 Binary files a/src/assets/highQuality/project_left.jpg and /dev/null differ diff --git a/src/assets/highQuality/star1.png b/src/assets/highQuality/star1.png deleted file mode 100644 index b93f27d..0000000 Binary files a/src/assets/highQuality/star1.png and /dev/null differ diff --git a/src/assets/highQuality/star2.png b/src/assets/highQuality/star2.png deleted file mode 100644 index 2676cf4..0000000 Binary files a/src/assets/highQuality/star2.png and /dev/null differ diff --git a/src/assets/highQuality/star3.png b/src/assets/highQuality/star3.png deleted file mode 100644 index b3463db..0000000 Binary files a/src/assets/highQuality/star3.png and /dev/null differ diff --git a/src/assets/img/kefu.png b/src/assets/img/kefu.png deleted file mode 100644 index 4bd2a8f..0000000 Binary files a/src/assets/img/kefu.png and /dev/null differ diff --git a/src/assets/img/logo.png b/src/assets/img/logo.png new file mode 100644 index 0000000..30cbc0a Binary files /dev/null and b/src/assets/img/logo.png differ diff --git a/src/assets/ld_style.less b/src/assets/ld_style.less deleted file mode 100644 index 4450022..0000000 --- a/src/assets/ld_style.less +++ /dev/null @@ -1,720 +0,0 @@ -@import '~antd/es/style/themes/default.less'; - -.bidContent{ - padding: 0 24px; - background: #fff; -} -.pl0{ - padding-left: 4px; - padding-top: 16px; - padding-bottom: 24px; -} -.fr{ - float: right; -} -.tr{ - text-align: left; -} -.tc{ - text-align: center; -} -.m10{ - margin: 10px 0; - display: block; -} -.ml5{ - margin-left: 5px; -} -.ml20{ - margin-left: 15px; -} -.ml10{ - margin-left: 10px; -} -.mb10{ - margin-bottom: 10px; -} -.mb0{ - margin-bottom: 0; -} -.mt10{ - margin-top: 10px; -} -.mt20{ - margin-top: 20px; -} -.p10{ - padding: 0 10px; -} -.no-padding{ - .p10{ - padding: 0; - } -} -.mb20{ - margin-bottom: 20px; -} -.mb10{ - margin-bottom: 10px; -} -.mt10{ - margin-top: 10px; -} -.ml30{ - margin-left: 30px; -} -.f12{ - font-size: 12px; -} -.red{ - color: #ff4d4f; -} -.center{ - text-align: center; -} -.bidContent .ant-pro-table-search{ - padding: 0; - margin-bottom: 0; -} -.bidContent .proSearch .ant-form{ - height: 48px; -} -.bidContent .title{ - font-size: 15px; - padding-bottom: 20px; -} -.bidContent .title .ml40{ - margin-left: 40px; -} -.bidContent .title .f12{ - font-size: 12px; - color: #ff4d4f; - margin-left: 8px; -} -.bidContent .title .purple{ - color: #e600e6; - margin-left: 15px; -} -.bidContent .name { - color: #333; - padding: 0 15px 10px 0; - margin: 0; - font-weight: 700; - font-size: 16px; -} -.bidContent .name span{ - margin-left: 15px; -} -.bidContent .process{ - display: inline-block; - width: 60%; -} -.bidContent .process .ant-progress-line{ - width: 40%; -} -.bidContent .block{ - display: inline-block; - float: right; -} -.bidContent .titName{ - border-bottom: 1px solid #ff4d4f; - height: 35px; - margin-bottom: 10px; -} -.bidContent .titName .f16{ - font-size: 16px; - color: #ff4d4f; -} -.bidContent .centerBtn{ - text-align: center; - margin: 20px 0; -} -.bidContent .red{ - color: #ff4d4f; -} -.bidContent .blue{ - color: #684dff; -} -.bidContent .explain{ - border: 1px solid #ddd; - padding: 10px; - margin-top: 20px; -} - -.bidContent .green{ - background-color: #00a700; - display: inline-block; - padding: 4px 10px; - color: #fff; -} -.bidContent .ulList{ - padding: 6px; - border: 1px solid #ddd; -} -.bidContent .ulList li{ - width: 25%; - border: 1px solid #ddd; - padding: 4px 12px; - // float: left; - display: inline-block; -} -.bidContent .ulList li span{ - color: #ff4d4f; - margin-left: 8px; -} -.uploadResponse{ - background: #fff; -} -.uploadResponse .first-title{ - margin-left: 24px; -} -.uploadResponse .name { - color: #333; - padding: 0 15px 10px 0; - margin: 0; - font-weight: 700; - font-size: 16px; -} -.uploadResponse .file{ - color: #cb0000; - border-left: 5px solid #cb0000; - line-height: 18px; - padding-left: 7px; - margin: 3px 0; -} -.uploadResponse .message{ - margin-top: 0; - border-top: 0; - border-bottom: 1px solid #cb0000; - margin-bottom: 0; - .text{ - background-color: #cb0000; - padding: 3px 8px; - color: #fff; - display: inline-block; - margin-top: 8px; - } -} -.uploadResponse .table-mess{ - .mess{ - width: 33.33%; - display: inline-block; - } -} -.uploadResponse .b-red{ - background-color: #b30000 !important; - border-color: #b30000 !important; - color: #fff; - float: right; - margin-left: 20px; -} -.uploadResponse .red.ant-statistic{ - display: inline-block; -} -.uploadResponse .red .ant-statistic-title{ - display: inline-block; - font-size: 13px; - color: #333; -} -.uploadResponse .red .ant-statistic-content{ - display: inline-block; - font-size: 14px; - color: #b30000; -} -.biddingResponse{ - background: #fff; -} -.biddingResponse .exportBtn{ - text-align: right; -} -.biddingResponse .exportBtn button{ - background: #b30000; - border: none; - margin: 16px 24px 16px 0; -} -.projectsInvolved .ant-form-item-control-input-content{ - text-align: left; - width: 160px; -} -.left-menu{ - float: left; -} -.right-table{ - margin: 4px 24px 24px 224px; -} -.right-table .ant-pagination::after{ - clear: none; -} -.right-table .ant-table-content{ - overflow: auto hidden; -} -.right-table .ant-table-wrapper{ - clear: none; -} -.right-table h4{ - line-height: 40px; - color: #cb0000; - margin-top: 4px; -} -.no-clear{ - clear: none; -} -.right-content{ - margin-left: 200px; -} -.right-content table{ - clear: none; -} -.labelTable label{ - display: block; -} -.h45 .ant-collapse-header{ - height: 45px!important; -} -.bprWidth{ - width: calc(100% - 200px); -} -.borderB{ - line-height: 40px; - border-bottom: 3px solid #980000; -} -.addForm .w50{ - width: 50%; - display: inline-flex; -} -.addForm .w50 label{ - display: block; - text-align: right; - width: 106px; - margin-right: 6px; -} -.addForm .label label{ - width: 106px; - display: block; - text-align: right; - margin-right: 6px; - white-space: initial !important; -} -.ant-form-item-label{ - white-space: initial !important; -} -.bidContent .ant-tabs-content-holder{ - margin-top: 0; -} -.bidContent .ant-table-pagination.ant-pagination{ - margin: 16px 0; -} -.whiteBg{ - background: #fff; -} -.mb16{ - margin-bottom: 16px; - text-align: right; -} -.pt16{ - padding-top: 16px; -} -.tableTop .ant-table-wrapper{ - clear: none !important; -} -.relative{ - position: relative; -} -.relative .show-left{ - position: absolute; - left: 0; - top: 0; - bottom: 0; -} -.ant-table-wrapper{ - clear: none; -} -.ant-card-body::after{ - clear: none; -} -.ant-table-wrapper::after{ - clear: none; -} -.ant-spin-blur{ - clear: none; -} -.pro-list .ant-pro-table-list-toolbar-container{ - height: 0; - padding: 16px 0 0 0; -} -.searchH .ant-pro-table-search{ - margin-bottom: 0; - padding: 0 !important; -} -.proSearch .ant-pro-table-search{ - padding: 0; - margin: 0; -} -.searchH .ant-table-tbody .ant-btn-primary{ - background: none; - border: none; - color: #1890ff; - text-shadow: none; - box-shadow: none; - letter-spacing: -2px; -} -.table-btn .ant-btn-primary{ - background: none; - border-color: none; - text-shadow: none; - box-shadow: none; - border: none; - color: #1890ff !important; -} -.mb8{ - margin-bottom: 8px; -} -.tab-mb10 .ant-tabs-nav{ - margin-bottom: 10px; -} -.end{ - background: #fff; - margin-top: 24px; -} -.end .red-font{ - color: #ff0000; - font-size: 13px; -} -.end .mtb16{ - margin: 16px 0; -} -.right-btn{ - text-align: right; - margin-right: 16px; - padding-top: 16px; -} -.right-add{ - text-align: right; - margin-bottom: 16px; -} -.tip{ - font-size: 12px; - color: #999; -} -.white-bg{ - background: #fff; -} -.white-bg .ant-empty-normal{ - margin: 0; - padding: 32px 0; -} -.white-bg .tips{ - padding: 16px 24px; -} -.white-bg .tips p{ - margin-bottom: 0; - font-size: 13px; -} -.h40{ - height: 40px; -} -.p0{ - padding: 0; -} -.h48 .ant-collapse-header{ - height: 48px !important; -} - -.pro-list .ant-pro-table-list-toolbar{ - height: 0; -} -.pro-list .ant-pro-list-row{ - padding: 0 !important; -} -.pro-list .pro-type{ - width: 40px; - height: 40px; - line-height: 40px; - color: #fff; - font-weight: 700; - font-size: 16px; - border-radius: 50px; - background: #f87f7f; - text-align: center; -} -.pro-list .ant-list-item-meta-content{ - line-height: 40px; -} -.checkStyle .ant-checkbox-inner{ - display: inline-block; -} -.m0 .ant-tabs-tab{ - margin-right: 0 !important; - margin-left: 2px !important; -} -.configure-table a{ - margin-right: 15px; -} -.configure-table button{ - padding: 0; - margin-right: 15px; -} -.display-cancel{ - display: none; -} -.deploy-form .ant-row{ - position: relative; - width: 100%; -} -.deploy-form .ant-form-item-label{ - width: 160px; - left: 0; -} -.deploy-form .ant-form-item-control{ - left: 160px; - top: -32px; -} -.deploy-form .l70 .ant-form-item-control{ - left: 70px; -} -.tips{ - color: #bf241f; - span{ - cursor: pointer; - color: blue; - text-decoration:underline; - } -} -.btnBox{ - text-align: center; - .last{ - margin-right: 20px; - } -} - -.p10{ - tr{ - td{ - padding: 8px 12px; - } - } -} -.ml50{ - margin-left: 50px; -} -.tab-reasult .ant-tabs-nav{ - margin-bottom: 0; -} -.tab-reasult .ant-pro-table-list-toolbar-container{ - padding-top: 0; -} -.subject{ - margin-right: 30px; -} -.subject span{ - color: #999; - margin-left: 6px; -} -.tableW{ - width: 50%; - float: left; -} -.mt20{ - margin-top: 20px; -} -.mt20::after{ - content: ""; - clear: both; - display: block; -} -.mb20{ - margin-bottom: 20px; -} -.mt10{ - margin-top: 10px; -} -.title-block{ - .contain{ - width: 25%; - display: inline-block; - border-left: 1px solid #dadada; - box-sizing: border-box; - padding: 5px 15px; - div{ - color: #b30000; - font-weight: 700; - font-size: 18px; - height: 40px; - } - .name{ - font-size: 13px; - font-weight: normal; - color: #333; - padding: 0; - } - p{ - margin-bottom: 0; - } - span{ - color: #1890ff; - margin-right: 5px; - } - } - .contain:first-child{ - border-left: none; - vertical-align: bottom; - } -} -.mb10{ - margin-bottom: 10px; - .ant-card-body{ - padding: 18px 24px; - } -} -.pt0 .ant-card-body{ - padding-top: 0; -} -.cardH{ - height: calc(100vh - 76px); - overflow: hidden; -} -.left-btn{ - width: 10%; - display: inline-block; -} -.right-main{ - width: 90%; - height: calc(100vh - 172px); - overflow: auto; - display: inline-block; - vertical-align: top; - border-left: 1px solid #ececec; - padding-left: 20px; - .form-title{ - border: none; - height: 50px; - } - .remarks{ - border: none; - } - input.form-title::-webkit-input-placeholder { - color: #333; - font-size: 18px; - } - .ant-form-horizontal .ant-form-item-label{ - width: 80px; - } - .ant-form-item-control-input{ - width: 400px; - } -} -.form-width{ - .ant-form-horizontal .ant-form-item-label{ - width: 80px; - } - .ant-form-item-control-input{ - width: 400px; - } -} -.cardH .block{ - margin-top: 30px; - p{ - margin-bottom: 0; - } - .ant-radio-wrapper{ - display: block; - margin-top: 10px; - } - .ant-checkbox-wrapper{ - display: flex; - margin-top: 10px; - } - .ant-checkbox-wrapper + .ant-checkbox-wrapper{ - margin-left: 0; - } - .radio{ - color: #1890ff; - border: 1px solid #1890ff; - font-size: 8px; - margin-left: 8px; - border-radius: 6px; - padding: 0px 2px; - } - .check{ - color: #ff5200; - border: 1px solid #ff5200; - font-size: 8px; - margin-left: 8px; - border-radius: 6px; - padding: 0px 2px; - } -} -::-webkit-scrollbar-track-piece { //滚动条凹槽的颜色,还可以设置边框属性 - background-color:#f8f8f8; - } - ::-webkit-scrollbar {//滚动条的宽度 - width:6px; - height:6px; - } - ::-webkit-scrollbar-thumb {//滚动条的设置 - background-color:#dddddd; - background-clip:padding-box; - min-height:28px; - } - ::-webkit-scrollbar-thumb:hover { - background-color:#bbb; -} -.add-option{ - margin-top: 10px; -} -.width100{ - width: 70px; - display: inline-block; -} -.input-style{ - height: 35px; - border: 1px solid #dadada; - border-radius: 5px; - width: 220px; -} -.answer-bg{ - background-color: #fff; - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - z-index: 100; - overflow: auto; - padding-bottom: 30px; - .center-main{ - width: 60%; - margin: 0 auto; - } - .answer-tit{ - text-align: center; - font-weight: 500; - font-size: 20px; - padding: 20px 0; - } - .gray{ - color: #666; - } -} -.model-container{ - .ant-modal-body{ - padding: 0; - } - .model-time{ - margin-left: 300px; - } - .model-title{ - input[type='text']{ - text-align: center; - margin-top: 30px; - font-size: 20px; - color: #b30000; - } - } - .remarks{ - padding: 0 30px; - text-indent: 2em; - resize: none; - margin-top: 16px; - } -} diff --git a/src/assets/logo.svg b/src/assets/logo.svg deleted file mode 100644 index 113f6d9..0000000 --- a/src/assets/logo.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - diff --git a/src/assets/lq_style.less b/src/assets/lq_style.less deleted file mode 100644 index 0f1f439..0000000 --- a/src/assets/lq_style.less +++ /dev/null @@ -1,6 +0,0 @@ -@import '~antd/es/style/themes/default.less'; - - -.form-style .ant-select-selection-placeholder{ - color: #333; -} \ No newline at end of file diff --git a/src/assets/monitor/Frame-10116.png b/src/assets/monitor/Frame-10116.png deleted file mode 100644 index 2d815c4..0000000 Binary files a/src/assets/monitor/Frame-10116.png and /dev/null differ diff --git a/src/assets/monitor/Frame-10117.png b/src/assets/monitor/Frame-10117.png deleted file mode 100644 index 29f4976..0000000 Binary files a/src/assets/monitor/Frame-10117.png and /dev/null differ diff --git a/src/assets/monitor/Frame-10118.png b/src/assets/monitor/Frame-10118.png deleted file mode 100644 index 0b198ba..0000000 Binary files a/src/assets/monitor/Frame-10118.png and /dev/null differ diff --git a/src/assets/monitor/Frame-10119.png b/src/assets/monitor/Frame-10119.png deleted file mode 100644 index ed7716b..0000000 Binary files a/src/assets/monitor/Frame-10119.png and /dev/null differ diff --git a/src/assets/monitor/Frame-10120.png b/src/assets/monitor/Frame-10120.png deleted file mode 100644 index 5b0cd48..0000000 Binary files a/src/assets/monitor/Frame-10120.png and /dev/null differ diff --git a/src/assets/monitor/Frame-10121.png b/src/assets/monitor/Frame-10121.png deleted file mode 100644 index b82e37b..0000000 Binary files a/src/assets/monitor/Frame-10121.png and /dev/null differ diff --git a/src/assets/monitor/arrow-left-circle-fill.png b/src/assets/monitor/arrow-left-circle-fill.png deleted file mode 100644 index a5424c0..0000000 Binary files a/src/assets/monitor/arrow-left-circle-fill.png and /dev/null differ diff --git a/src/assets/monitor/arrow-right-circle-fill.png b/src/assets/monitor/arrow-right-circle-fill.png deleted file mode 100644 index 3125cfb..0000000 Binary files a/src/assets/monitor/arrow-right-circle-fill.png and /dev/null differ diff --git a/src/assets/monitor/background-2.jpg b/src/assets/monitor/background-2.jpg deleted file mode 100644 index 2522a8c..0000000 Binary files a/src/assets/monitor/background-2.jpg and /dev/null differ diff --git a/src/assets/monitor/background-3.gif b/src/assets/monitor/background-3.gif deleted file mode 100644 index c63bf6f..0000000 Binary files a/src/assets/monitor/background-3.gif and /dev/null differ diff --git a/src/assets/monitor/background-3.jpg b/src/assets/monitor/background-3.jpg deleted file mode 100644 index 106ecdd..0000000 Binary files a/src/assets/monitor/background-3.jpg and /dev/null differ diff --git a/src/assets/monitor/circle-3197.png b/src/assets/monitor/circle-3197.png deleted file mode 100644 index a7339ab..0000000 Binary files a/src/assets/monitor/circle-3197.png and /dev/null differ diff --git a/src/assets/monitor/circle-3198.png b/src/assets/monitor/circle-3198.png deleted file mode 100644 index 50f6704..0000000 Binary files a/src/assets/monitor/circle-3198.png and /dev/null differ diff --git a/src/assets/monitor/circle-3199.png b/src/assets/monitor/circle-3199.png deleted file mode 100644 index 4924380..0000000 Binary files a/src/assets/monitor/circle-3199.png and /dev/null differ diff --git a/src/assets/monitor/circle-3200.png b/src/assets/monitor/circle-3200.png deleted file mode 100644 index 0300209..0000000 Binary files a/src/assets/monitor/circle-3200.png and /dev/null differ diff --git a/src/assets/monitor/error-icon.png b/src/assets/monitor/error-icon.png deleted file mode 100644 index f7b0945..0000000 Binary files a/src/assets/monitor/error-icon.png and /dev/null differ diff --git a/src/assets/monitor/global-title-bg.png b/src/assets/monitor/global-title-bg.png deleted file mode 100644 index 31f2b4b..0000000 Binary files a/src/assets/monitor/global-title-bg.png and /dev/null differ diff --git a/src/assets/monitor/left.png b/src/assets/monitor/left.png deleted file mode 100644 index a4c5505..0000000 Binary files a/src/assets/monitor/left.png and /dev/null differ diff --git a/src/assets/monitor/number-icon.png b/src/assets/monitor/number-icon.png deleted file mode 100644 index 4d6a165..0000000 Binary files a/src/assets/monitor/number-icon.png and /dev/null differ diff --git a/src/assets/monitor/options-back.png b/src/assets/monitor/options-back.png deleted file mode 100644 index 26dafa4..0000000 Binary files a/src/assets/monitor/options-back.png and /dev/null differ diff --git a/src/assets/monitor/options-back2.png b/src/assets/monitor/options-back2.png deleted file mode 100644 index 9e3677d..0000000 Binary files a/src/assets/monitor/options-back2.png and /dev/null differ diff --git a/src/assets/monitor/options-home.png b/src/assets/monitor/options-home.png deleted file mode 100644 index ee8a00c..0000000 Binary files a/src/assets/monitor/options-home.png and /dev/null differ diff --git a/src/assets/monitor/options-home2.png b/src/assets/monitor/options-home2.png deleted file mode 100644 index 50e2fdc..0000000 Binary files a/src/assets/monitor/options-home2.png and /dev/null differ diff --git a/src/assets/monitor/right.png b/src/assets/monitor/right.png deleted file mode 100644 index 47593ea..0000000 Binary files a/src/assets/monitor/right.png and /dev/null differ diff --git a/src/assets/monitor/select-first.png b/src/assets/monitor/select-first.png deleted file mode 100644 index a70f248..0000000 Binary files a/src/assets/monitor/select-first.png and /dev/null differ diff --git a/src/assets/monitor/select-first2.png b/src/assets/monitor/select-first2.png deleted file mode 100644 index ebf4ac1..0000000 Binary files a/src/assets/monitor/select-first2.png and /dev/null differ diff --git a/src/assets/monitor/select-second.png b/src/assets/monitor/select-second.png deleted file mode 100644 index c0b0bac..0000000 Binary files a/src/assets/monitor/select-second.png and /dev/null differ diff --git a/src/assets/monitor/select-second2.png b/src/assets/monitor/select-second2.png deleted file mode 100644 index 0ed7dce..0000000 Binary files a/src/assets/monitor/select-second2.png and /dev/null differ diff --git a/src/assets/monitor/select-third.png b/src/assets/monitor/select-third.png deleted file mode 100644 index ba3b4b4..0000000 Binary files a/src/assets/monitor/select-third.png and /dev/null differ diff --git a/src/assets/monitor/select-third2.png b/src/assets/monitor/select-third2.png deleted file mode 100644 index 90655a9..0000000 Binary files a/src/assets/monitor/select-third2.png and /dev/null differ diff --git a/src/assets/monitor/stranger-icon.png b/src/assets/monitor/stranger-icon.png deleted file mode 100644 index 30336c1..0000000 Binary files a/src/assets/monitor/stranger-icon.png and /dev/null differ diff --git a/src/assets/monitor/title-icon.png b/src/assets/monitor/title-icon.png deleted file mode 100644 index 372b993..0000000 Binary files a/src/assets/monitor/title-icon.png and /dev/null differ diff --git a/src/assets/monitor/vip-crown-1-fill.png b/src/assets/monitor/vip-crown-1-fill.png deleted file mode 100644 index 46344d4..0000000 Binary files a/src/assets/monitor/vip-crown-1-fill.png and /dev/null differ diff --git a/src/assets/monitor/vip-crown-2-fill.png b/src/assets/monitor/vip-crown-2-fill.png deleted file mode 100644 index 183dfe0..0000000 Binary files a/src/assets/monitor/vip-crown-2-fill.png and /dev/null differ diff --git a/src/assets/monitor/vip-crown-3-fill.png b/src/assets/monitor/vip-crown-3-fill.png deleted file mode 100644 index f48c556..0000000 Binary files a/src/assets/monitor/vip-crown-3-fill.png and /dev/null differ diff --git a/src/assets/screen/back_01.png b/src/assets/screen/back_01.png deleted file mode 100644 index e4011de..0000000 Binary files a/src/assets/screen/back_01.png and /dev/null differ diff --git a/src/assets/screen/back_02.png b/src/assets/screen/back_02.png deleted file mode 100644 index 100687e..0000000 Binary files a/src/assets/screen/back_02.png and /dev/null differ diff --git a/src/assets/screen/content_title.png b/src/assets/screen/content_title.png deleted file mode 100644 index e2e3c85..0000000 Binary files a/src/assets/screen/content_title.png and /dev/null differ diff --git a/src/assets/screen/content_title_bg.jpg b/src/assets/screen/content_title_bg.jpg deleted file mode 100644 index 67d8c3c..0000000 Binary files a/src/assets/screen/content_title_bg.jpg and /dev/null differ diff --git a/src/assets/screen/crown_01.png b/src/assets/screen/crown_01.png deleted file mode 100644 index 279c16c..0000000 Binary files a/src/assets/screen/crown_01.png and /dev/null differ diff --git a/src/assets/screen/crown_02.png b/src/assets/screen/crown_02.png deleted file mode 100644 index 77551d4..0000000 Binary files a/src/assets/screen/crown_02.png and /dev/null differ diff --git a/src/assets/screen/crown_03.png b/src/assets/screen/crown_03.png deleted file mode 100644 index 38abb63..0000000 Binary files a/src/assets/screen/crown_03.png and /dev/null differ diff --git a/src/assets/screen/default_pic01.jpg b/src/assets/screen/default_pic01.jpg deleted file mode 100644 index 759cdc3..0000000 Binary files a/src/assets/screen/default_pic01.jpg and /dev/null differ diff --git a/src/assets/screen/default_pic02.jpg b/src/assets/screen/default_pic02.jpg deleted file mode 100644 index 414e755..0000000 Binary files a/src/assets/screen/default_pic02.jpg and /dev/null differ diff --git a/src/assets/screen/default_play.png b/src/assets/screen/default_play.png deleted file mode 100644 index 0611991..0000000 Binary files a/src/assets/screen/default_play.png and /dev/null differ diff --git a/src/assets/screen/ending_01.png b/src/assets/screen/ending_01.png deleted file mode 100644 index 84dac54..0000000 Binary files a/src/assets/screen/ending_01.png and /dev/null differ diff --git a/src/assets/screen/ending_02.png b/src/assets/screen/ending_02.png deleted file mode 100644 index bf9d476..0000000 Binary files a/src/assets/screen/ending_02.png and /dev/null differ diff --git a/src/assets/screen/going_01.png b/src/assets/screen/going_01.png deleted file mode 100644 index 0acdc42..0000000 Binary files a/src/assets/screen/going_01.png and /dev/null differ diff --git a/src/assets/screen/going_02.png b/src/assets/screen/going_02.png deleted file mode 100644 index c815c27..0000000 Binary files a/src/assets/screen/going_02.png and /dev/null differ diff --git a/src/assets/screen/home_01.png b/src/assets/screen/home_01.png deleted file mode 100644 index 1e83886..0000000 Binary files a/src/assets/screen/home_01.png and /dev/null differ diff --git a/src/assets/screen/home_02.png b/src/assets/screen/home_02.png deleted file mode 100644 index eb54353..0000000 Binary files a/src/assets/screen/home_02.png and /dev/null differ diff --git a/src/assets/screen/order_01.png b/src/assets/screen/order_01.png deleted file mode 100644 index 4d71a7f..0000000 Binary files a/src/assets/screen/order_01.png and /dev/null differ diff --git a/src/assets/screen/order_02.png b/src/assets/screen/order_02.png deleted file mode 100644 index 267e5b4..0000000 Binary files a/src/assets/screen/order_02.png and /dev/null differ diff --git a/src/assets/screen/title_bg.png b/src/assets/screen/title_bg.png deleted file mode 100644 index d4f9626..0000000 Binary files a/src/assets/screen/title_bg.png and /dev/null differ diff --git a/src/assets/screen/top_bg.png b/src/assets/screen/top_bg.png deleted file mode 100644 index 1ee87ed..0000000 Binary files a/src/assets/screen/top_bg.png and /dev/null differ diff --git a/src/assets/screen/warn_icon_01.png b/src/assets/screen/warn_icon_01.png deleted file mode 100644 index 7555e57..0000000 Binary files a/src/assets/screen/warn_icon_01.png and /dev/null differ diff --git a/src/assets/screen/warn_icon_02.png b/src/assets/screen/warn_icon_02.png deleted file mode 100644 index 57bf375..0000000 Binary files a/src/assets/screen/warn_icon_02.png and /dev/null differ diff --git a/src/assets/supplierRisk/empty_data.png b/src/assets/supplierRisk/empty_data.png deleted file mode 100644 index b8dddda..0000000 Binary files a/src/assets/supplierRisk/empty_data.png and /dev/null differ diff --git a/src/assets/topic/bannerListPic.jpg b/src/assets/topic/bannerListPic.jpg deleted file mode 100644 index 38ec029..0000000 Binary files a/src/assets/topic/bannerListPic.jpg and /dev/null differ diff --git a/src/assets/topic/bannerListPic_member.jpg b/src/assets/topic/bannerListPic_member.jpg deleted file mode 100644 index ed4f777..0000000 Binary files a/src/assets/topic/bannerListPic_member.jpg and /dev/null differ diff --git a/src/assets/topic/bannerPic.jpg b/src/assets/topic/bannerPic.jpg deleted file mode 100644 index a2f0931..0000000 Binary files a/src/assets/topic/bannerPic.jpg and /dev/null differ diff --git a/src/assets/topic/bannerProjectPic.jpg b/src/assets/topic/bannerProjectPic.jpg deleted file mode 100644 index 8b0328d..0000000 Binary files a/src/assets/topic/bannerProjectPic.jpg and /dev/null differ diff --git a/src/assets/topic/branch.png b/src/assets/topic/branch.png deleted file mode 100644 index 9f288e5..0000000 Binary files a/src/assets/topic/branch.png and /dev/null differ diff --git a/src/assets/topic/card-bg.png b/src/assets/topic/card-bg.png deleted file mode 100644 index b1d51e6..0000000 Binary files a/src/assets/topic/card-bg.png and /dev/null differ diff --git a/src/assets/topic/emblem.png b/src/assets/topic/emblem.png deleted file mode 100644 index eaae6d3..0000000 Binary files a/src/assets/topic/emblem.png and /dev/null differ diff --git a/src/assets/topic/listNewsPic01.jpg b/src/assets/topic/listNewsPic01.jpg deleted file mode 100644 index 94fe905..0000000 Binary files a/src/assets/topic/listNewsPic01.jpg and /dev/null differ diff --git a/src/assets/topic/newsDetailBg.jpg b/src/assets/topic/newsDetailBg.jpg deleted file mode 100644 index 497d977..0000000 Binary files a/src/assets/topic/newsDetailBg.jpg and /dev/null differ diff --git a/src/assets/topic/person-bg.jpg b/src/assets/topic/person-bg.jpg deleted file mode 100644 index 3d7431f..0000000 Binary files a/src/assets/topic/person-bg.jpg and /dev/null differ diff --git a/src/assets/topic/person.png b/src/assets/topic/person.png deleted file mode 100644 index 778f805..0000000 Binary files a/src/assets/topic/person.png and /dev/null differ diff --git a/src/assets/topic/static-bg.png b/src/assets/topic/static-bg.png deleted file mode 100644 index f1aef99..0000000 Binary files a/src/assets/topic/static-bg.png and /dev/null differ diff --git a/src/assets/topic/timeIcon.png b/src/assets/topic/timeIcon.png deleted file mode 100644 index 150635c..0000000 Binary files a/src/assets/topic/timeIcon.png and /dev/null differ diff --git a/src/assets/topic/topic_activity_default.jpg b/src/assets/topic/topic_activity_default.jpg deleted file mode 100644 index 389c1f1..0000000 Binary files a/src/assets/topic/topic_activity_default.jpg and /dev/null differ diff --git a/src/assets/topic/topic_activity_gradient.jpg b/src/assets/topic/topic_activity_gradient.jpg deleted file mode 100644 index f01c55b..0000000 Binary files a/src/assets/topic/topic_activity_gradient.jpg and /dev/null differ diff --git a/src/assets/topic/topic_activity_logo.png b/src/assets/topic/topic_activity_logo.png deleted file mode 100644 index 4a82fbf..0000000 Binary files a/src/assets/topic/topic_activity_logo.png and /dev/null differ diff --git a/src/assets/topic/topic_assure.png b/src/assets/topic/topic_assure.png deleted file mode 100644 index 57822b2..0000000 Binary files a/src/assets/topic/topic_assure.png and /dev/null differ diff --git a/src/assets/topic/topic_banner_default.jpg b/src/assets/topic/topic_banner_default.jpg deleted file mode 100644 index e17a0ba..0000000 Binary files a/src/assets/topic/topic_banner_default.jpg and /dev/null differ diff --git a/src/assets/topic/topic_bottom_button.png b/src/assets/topic/topic_bottom_button.png deleted file mode 100644 index 455995e..0000000 Binary files a/src/assets/topic/topic_bottom_button.png and /dev/null differ diff --git a/src/assets/topic/topic_bottom_card_picture.png b/src/assets/topic/topic_bottom_card_picture.png deleted file mode 100644 index 1def271..0000000 Binary files a/src/assets/topic/topic_bottom_card_picture.png and /dev/null differ diff --git a/src/assets/topic/topic_commodity.png b/src/assets/topic/topic_commodity.png deleted file mode 100644 index 8b671ed..0000000 Binary files a/src/assets/topic/topic_commodity.png and /dev/null differ diff --git a/src/assets/topic/topic_difficult.png b/src/assets/topic/topic_difficult.png deleted file mode 100644 index 692197b..0000000 Binary files a/src/assets/topic/topic_difficult.png and /dev/null differ diff --git a/src/assets/topic/topic_firstline.png b/src/assets/topic/topic_firstline.png deleted file mode 100644 index f6e0735..0000000 Binary files a/src/assets/topic/topic_firstline.png and /dev/null differ diff --git a/src/assets/topic/topic_fist.png b/src/assets/topic/topic_fist.png deleted file mode 100644 index 54b1307..0000000 Binary files a/src/assets/topic/topic_fist.png and /dev/null differ diff --git a/src/assets/topic/topic_graceful_textbg.png b/src/assets/topic/topic_graceful_textbg.png deleted file mode 100644 index 207df99..0000000 Binary files a/src/assets/topic/topic_graceful_textbg.png and /dev/null differ diff --git a/src/assets/topic/topic_header.jpg b/src/assets/topic/topic_header.jpg deleted file mode 100644 index f4036cd..0000000 Binary files a/src/assets/topic/topic_header.jpg and /dev/null differ diff --git a/src/assets/topic/topic_header_img.png b/src/assets/topic/topic_header_img.png deleted file mode 100644 index 5e83f9e..0000000 Binary files a/src/assets/topic/topic_header_img.png and /dev/null differ diff --git a/src/assets/topic/topic_interview.png b/src/assets/topic/topic_interview.png deleted file mode 100644 index 6f26b59..0000000 Binary files a/src/assets/topic/topic_interview.png and /dev/null differ diff --git a/src/assets/topic/topic_other.png b/src/assets/topic/topic_other.png deleted file mode 100644 index 35359e0..0000000 Binary files a/src/assets/topic/topic_other.png and /dev/null differ diff --git a/src/assets/topic/topic_partybranch.png b/src/assets/topic/topic_partybranch.png deleted file mode 100644 index 6845b36..0000000 Binary files a/src/assets/topic/topic_partybranch.png and /dev/null differ diff --git a/src/assets/topic/topic_partymember.png b/src/assets/topic/topic_partymember.png deleted file mode 100644 index 6ce187c..0000000 Binary files a/src/assets/topic/topic_partymember.png and /dev/null differ diff --git a/src/assets/topic/topic_project_picture.jpg b/src/assets/topic/topic_project_picture.jpg deleted file mode 100644 index ffa2249..0000000 Binary files a/src/assets/topic/topic_project_picture.jpg and /dev/null differ diff --git a/src/assets/topic/topic_protocol.png b/src/assets/topic/topic_protocol.png deleted file mode 100644 index ca08fcd..0000000 Binary files a/src/assets/topic/topic_protocol.png and /dev/null differ diff --git a/src/assets/topic/topic_red_flag.png b/src/assets/topic/topic_red_flag.png deleted file mode 100644 index 36aa4a4..0000000 Binary files a/src/assets/topic/topic_red_flag.png and /dev/null differ diff --git a/src/assets/topic/topic_right_manager.jpg b/src/assets/topic/topic_right_manager.jpg deleted file mode 100644 index 7fce1c7..0000000 Binary files a/src/assets/topic/topic_right_manager.jpg and /dev/null differ diff --git a/src/assets/topic/topic_right_material.png b/src/assets/topic/topic_right_material.png deleted file mode 100644 index 307132a..0000000 Binary files a/src/assets/topic/topic_right_material.png and /dev/null differ diff --git a/src/assets/topic/topic_totalamount.png b/src/assets/topic/topic_totalamount.png deleted file mode 100644 index cfccc0e..0000000 Binary files a/src/assets/topic/topic_totalamount.png and /dev/null differ diff --git a/src/assets/topic/topic_totalnumber.png b/src/assets/topic/topic_totalnumber.png deleted file mode 100644 index 93bc7b1..0000000 Binary files a/src/assets/topic/topic_totalnumber.png and /dev/null differ diff --git a/src/assets/xsy_style.less b/src/assets/xsy_style.less deleted file mode 100644 index 977e3bc..0000000 --- a/src/assets/xsy_style.less +++ /dev/null @@ -1,185 +0,0 @@ -@import '~antd/es/style/themes/default.less'; - -.bgCWhite{ - background-color: white; -} -.xsy-red{ - color :#e60202; -} -.tabsHeader{ - .ant-tabs-nav{ - padding: 0px 24px 0px 24px; - } - .ant-tabs-nav::before { - left: 24px; - right: 24px; - } -} -.tabs{ - padding: 0px 24px 0px 24px; -} -.pd160{ - padding: 16px 0px 16px 0px; -} -.pd1624{ - padding: 16px 24px 16px 24px; -} -.pd24{ - padding: 24px; -} -.mR8{ - margin-right: 8px; -} -.mT16{ - margin-top: 16px !important; -} -.h32{ - height: 32px; - line-height: 32px; -} -.xsyBtn { - color: rgb(199,0,0) !important; - background: #fff !important; -} -// .xsyBtn:hover { -// color:#e60202; -// background: none; -// } -// .xsyBtn:active { -// color:#1890ff !important; -// background: none; -// } -.xsyPaying{ - font-size: 50px; - font-weight: 500; - color: #1890ff; -} -.xsyOrderDel{ - font-size: 20px; - font-weight: 500; - color: #e60202; -} -.infoDiv{ - font-size: 30px; - font-weight: 400; -} -.floatLeft{ - float:left; -} - -.xsy-headerDiv{ - width:100%; - height:32px; -} - -.xsy-rightDiv{ - float: right; - height:30px; - text-align: center; -} -.xsy-rightDiv-struct{ - float: right; - height:30px; -} -.ftSz20{ - font-size: 20px; -} - -.noticeFile-checkBox{ - margin-top: 5px; - .ant-checkbox-group-item{ - width: 100%; - // display: inline-block; - margin-right: 8px; - } -} -.noticeFile-timeline-label{ - // .ant-col-12{ - // margin-left: 0px; - // } - .ant-timeline-item-head{ - margin-top: 4px; - } - .ant-timeline-item-tail{ - margin-top: 4px; - } -} -.xsy-scroll-hidden::-webkit-scrollbar { - display: none; -} -.ant-input::-webkit-scrollbar { - display: none; -} -.xsy-entrust { - padding: 24px 24px 0px 24px; - overflow: auto; - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; -} -.xsy-entrust::-webkit-scrollbar { - display: none; -} -.noticeFile-label{ - .ant-form-item-label > label{ - align-items: normal; - } -} -.xsy-protable-wordBreak{ - .ant-table-cell{ - word-break: break-all; - } -} -.xsy-spin{ - .ant-spin-container{ - height:100%; - position:relative; - } - height:100% -} - -.xsy-config-table{ - margin-bottom: 16px; - .ant-pro-table{ - .ant-card-body{ - padding: 0; - } - } - .ant-radio{ - vertical-align: top !important; - margin-top: 0px !important; - } -} -.xsy-edit-table { - .ant-table.ant-table-small .ant-table-title, .ant-table.ant-table-small .ant-table-footer, .ant-table.ant-table-small .ant-table-thead > tr > th, .ant-table.ant-table-small .ant-table-tbody > tr > td, .ant-table.ant-table-small tfoot > tr > th, .ant-table.ant-table-small tfoot > tr > td{ - padding: 8px 8px 8px 0px; - } -} -.xsy-xize-del{ - font-size: 16px; - font-weight: 300px; - color: rgb(190,0,0); -} -.xsy-xize-del:hover{ - transition: all 0.5s; - transform:rotate(180deg); - -ms-transform:rotate(180deg); /* IE 9 */ - -moz-transform:rotate(180deg); /* Firefox */ - -webkit-transform:rotate(180deg); /* Safari 和 Chrome */ - -o-transform:rotate(180deg); /* Opera */ - cursor:pointer -} - -.chooseRole-userIcon{ - font-size: 150px; - color:rgba(156, 156, 156, 0.808); - border: 2px solid rgb(240,240,240); - border-radius: 8px; - :hover{ - box-shadow: 0 6px 16px -8px #00000014, 0 9px 28px #0000000d, 0 12px 48px 16px #00000008;/*设置阴影,可以自定义参数*/ - // color:rgb(236, 236, 236); - // background-color: #e60202; - cursor: pointer; - // transition: all 0.2s ease-in; - // transition: color 0.2s linear; - } -} diff --git a/src/assets/zjl_style.less b/src/assets/zjl_style.less deleted file mode 100644 index 3296a8c..0000000 --- a/src/assets/zjl_style.less +++ /dev/null @@ -1,360 +0,0 @@ -//公共边距 -.common { - padding: 0px 24px; -} - -//操作栏颜色 -.operation { - // margin-right: 8px; -} - -// .card-title-button .ant-card-head-title { -// padding: 10px 0px; -// } -// .card-title-default .ant-card-head-title { -// padding: 10px 0px; -// } - -.uploadcolor { - color: #b30000; - // margin-right: 8px; -} - -.revenue .ant-tabs-content-holder { - margin-top: 0px; -} - -.revenue .ant-tabs-top>.ant-tabs-nav, -.ant-tabs-bottom>.ant-tabs-nav, -.ant-tabs-top>div>.ant-tabs-nav, -.ant-tabs-bottom>div>.ant-tabs-nav { - margin: 0; -} - -// .ant-pro-card-body { -// padding: 0; -// } - -.confirm .ant-pro-table .ant-pro-table-search { - padding: 16px 0px 0px 0px; -} - -.notice .ant-pro-table-list-toolbar-container { - padding: 0px 0px 16px; -} - -.erf-title-flex { - display: flex; - justify-content: space-between; -} - -.erf-title-left { - height: 32px; - line-height: 32px; -} - -.erf-delete { - color: #1890ff !important; - background: rgba(0, 0, 0, 0) !important; -} - -.header___3SgsV { - height: 56px; - font-size: 16px; - font-weight: 600; - line-height: 56px; -} - -.CM_span { - text-indent: 2em; - // line-height: 24px; - // height: 0; -} - -.ant-table-thead .ant-table-cell .bid_tableName ::before { - // display: inline-block; - margin-right: 4px; - color: #ff4d4f; - font-size: 14px; - font-family: SimSun, sans-serif; - line-height: 1; - content: '*'; -} - -.zjl-entrust::-webkit-scrollbar { - display: none; -} - -.zjl-response-icon { - float: left; - line-height: 44px; -} - -//日历组件专用样式 -.calendar-dashboard .ant-picker-calendar .ant-picker-panel .ant-picker-body { - padding: 0px; -} - -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date { - margin: 0 0 1px 1px; - padding: 0px 8px 0px; - border: 0; - border-top: 1px solid #f0f0f0; - border-bottom: 1px solid #f0f0f0; - border-left: 1px solid #f0f0f0; - border-right: 1px solid #f0f0f0; - border-radius: 0px -} - -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content { - position: static; - width: auto; - height: 24px; - overflow-y: hidden; - overflow-x: hidden; - color: rgba(0, 0, 0, 0.85); - line-height: 1.5715; - text-align: center; -} - -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date, -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date, -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today, -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today { - background: #fff1f0; -} - -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today { - border-color: #b30000; -} - -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-body th { - padding: 0 0px 5px 0; - text-align: center; -} - -.calendar-dashboard .ant-picker-calendar-full .ant-picker-panel .ant-picker-body td { - text-align: center; -} - -.calendar-dashboard .ant-tag { - margin-right: 0px; - line-height: 19px; -} - -.calendar-dashboard .ant-picker-cell { - cursor: default; -} - -.notice-detail-html p { - margin: 0; - padding: 0; -} - -.notice-detail-file { - font-size: 17px; - color: #7c7c7c; - font-weight: bold; - position: relative; - top: 5px; - vertical-align: top; -} - -.notice-detail-noticefile { - margin-top: 20px; - - .ant-spin-nested-loading { - display: inline-block; - } -} - -.baseinf-top { - background-color: #ffffff; - padding: 20px; - overflow: auto; -} - -.baseinf-bottom-btn { - margin-top: 40px; - text-align: center; -} - -.calibration-panel { - .ant-collapse-content-box { - padding: 0px 16px; - } -} - -.question-form .ant-space { - min-width: 50%; -} - -.table-no-alert { - .ant-pro-table-alert { - display: none; - } -} - -.screen-reserve-table { - .ant-table-small .ant-table-thead>tr>th { - background-color: #fff - } - - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td, - .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td { - border-right: 1px solid #eaeaea; - } - - .ant-table-thead>tr>th, - .ant-table-tbody>tr>td { - border-bottom: 1px solid #eaeaea; - } -} - -.screen-reserve-collapse { - .ant-collapse-content>.ant-collapse-content-box { - padding: 16px 0; - } -} - -.screen-warn-p { - - // .ant-drawer-close { - // color: #fff; - - // &:focus, - // &:hover { - // color: #fff; - // } - // } - - // .ant-drawer-content { - // background-color: rgba(0, 0, 0, 0.35); - // } - - .ant-drawer-body { - text-align: center; - padding: 0; - - &>div { - height: 100%; - } - - &>div>img { - position: relative; - top: 50%; - transform: translateY(-50%); - -moz-user-select: 'none'; - /* Firefox私有属性 */ - -webkit-user-select: 'none'; - /* WebKit内核私有属性 */ - -ms-user-select: 'none'; - /* IE私有属性(IE10及以后) */ - user-select: 'none'; - /* CSS3属性 */ - } - } -} - -.choiceLoginContent-common { - float: left; - width: 385px; - height: 400px; - background-color: rgba(255, 255, 255, 0.8); - text-align: center; - padding: 24px; - cursor: pointer; - transition: all .5s; - - &:hover { - box-shadow: 0 6px 16px -8px #ffffff14, 0 9px 28px #ffffff0d, 0 12px 48px 16px #ffffff08; - background-color: rgba(255, 255, 255, 0.9); - } -} - -.choiceLoginBody { - padding: 0; - margin: 0; - list-style: none; - border: 0; - text-decoration: none; - font-family: 'Microsoft YaHei UI'; - background-image: url("~@/assets/choiceLogin/choiceLoginBg.jpg"); - background-size: 100% 100%; - background-repeat: no-repeat; - height: 100%; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - - .choiceLoginBlock { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - - .choiceLoginContent { - width: 778px; - height: 400px; - } - - .contentLeft { - .choiceLoginContent-common; - border-top-left-radius: 10px; - border-bottom-left-radius: 10px; - margin-right: 4px; - } - - .contentLeft img { - margin-bottom: 9px - } - - .contentRight { - .choiceLoginContent-common; - border-top-right-radius: 10px; - border-bottom-right-radius: 10px; - margin-left: 4px; - } - - .contentLeft h4, - .contentRight h4 { - font-size: 22px; - color: #333; - line-height: 32px; - font-weight: normal; - } - - .loginMassage { - width: 778px; - margin-top: 16px; - - &>p:first-child { - text-indent: 0; - } - - &>p { - font-size: 18px; - color: #eaeaea; - line-height: 32px; - text-indent: 2em; - margin-top: 0; - margin-bottom: 0; - - &>span { - color: #ffde52; - font-weight: bold; - } - } - } - } -} \ No newline at end of file diff --git a/src/baseStyle.less b/src/baseStyle.less index 3165e50..237f02d 100644 --- a/src/baseStyle.less +++ b/src/baseStyle.less @@ -1,310 +1,12 @@ -.ant-layout-header { - position: fixed; - top: 0; - left: 0; - .ant-pro-global-header{ - background-color: #b30000; - height: 56px; - color: #fff; - } -} +//定义主题颜色 +@main-color: rgb(0, 79, 142); +@main-text-color: #000; +@main-danger-color: rgb(214, 0, 14); +//灰色 -.ant-pro-sider-logo { - background-color: #b30000; - height: 56px; -} -.ant-pro-sider-light .ant-pro-sider-logo h1 { - color: #ffffff; -} -.ant-menu { - margin-top: 6px; -} -#root .ant-layout-sider { - z-index: 0; -} -// .ant-menu-submenu-title { -// padding-left: 24px !important; -// } -// .ant-menu-submenu-arrow { -// right: 24px; -// } +@gray: rgb(240, 240, 240); +@gray-text: rgb(215, 215, 215); -.ant-pro-basicLayout-content { - margin-top: 66px !important; - margin-left: 9px !important; - margin-bottom: 0px !important; - // padding-left: 224px; - display: flex; - flex: auto; - flex-direction: row; - - // // 去除滚动条样式 - // margin-right: 0 !important; - // padding-right: 10px; - // height: 100%; - // overflow: auto; -} -.bidContent { - flex: 1; -} - -.ant-card-head-title { - padding: 11px 0 10px 0; -} - -.ant-input { - border-radius: 3px; -} - -.ant-form-item { - margin-bottom: 8px; -} - -// .ant-tabs-content-holder { -// margin-top: 24px; -// } - -.ant-btn-dangerous.ant-btn-link { - color: #1890ff; -} - - -.ant-table-pagination.ant-pagination { - margin: 16px 0 24px 0; -} - -.ant-pagination-item-active a { - color: #ffffff; -} - -.ant-pagination-item { - border: 1px solid #999; - margin: 0 4px; -} - -.ant-pagination-item-active { - font-weight: 500; - background: #b30000; - border-color: #fff; -} - -.ant-page-header .ant-page-header-heading-title { - font-size: 16px; - font-weight: normal; - color: #333; -} - -.ant-page-header-heading-sub-title { - color: #333; - font-size: 16px; -} - -.first-title { - font-size: 14px; - color: #b30000; - line-height: 40px; - font-weight: 500; - position: relative; - padding-left: 11px; -} -.first-title::before{ - content: ""; - display: block; - position: absolute; - top: 13px; - left: 0; - width: 3px; - height: 14px; - background-color: #b30000; -} - -.scd-title { - font-size: 14px; - color: #333; - line-height: 42px; - font-weight: 500; - position: relative; - padding-left: 34px; -} -.scd-title::before{ - content: ""; - display: block; - position: absolute; - top: 20px; - left: 0; - width: 24px; - height: 2px; - background-color: #b30000; -} - -.ant-modal-footer { - overflow: hidden; - button { - float: right; - margin-left: 8px; - } -} - -.MuiTabs-indicator { - background-color: #ffffff !important; -} - -.ant-pro-table td.ant-table-cell > a { - color: #1890ff; - padding-right: 8px; - -} - -.ant-pro-table-search { - -} - -.ant-pro-table{ - .ant-card-body{ - padding: 0px; - } -} - -.ant-pro-table-search { - padding: 10px 24px 6px 24px; - margin-bottom: 8px; -} - -.ant-pagination-item-active:focus a, .ant-pagination-item-active:hover a { - color: #ffffff; -} - -.ant-tabs-tab { - margin: 0px 48px 0 0 !important; -} - -.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed { - box-shadow: none; -} -.ant-pro-sider-light { - box-shadow: none; -} - - - -.myselfContent .ant-menu-submenu-title { - padding-right: 34px; - text-align: center; - color: #b30000; - border-top: 2px solid #b30000; - //background: #b30000; -} -.myselfContent .ant-menu-submenu-title i { - display: none; -} -.myselfContent .ant-menu-item { - text-align: center; - padding: 0 !important; -} -// .myselfContent .ant-menu .ant-menu-item-selected { -// background-color: rgba(225,225,225,.0); -// } - -// .myselfContent .ant-menu .ant-menu-submenu-selected { -// background: #b30000; -// color: #fff !important; -// } -// .myselfContent .ant-menu .ant-menu-submenu-selected:hover { -// background: #b30000; -// color: #fff !important; -// } - -.myselfContent .ant-menu-inline .ant-menu-item::after { - border-right: none; -} - -.ant-collapse { - border: none; -} - -.ant-page-header { - border-radius: 6px 6px 0 0; -} - -.ant-table-content .ant-table-cell .ant-btn-text { - color: #1890ff !important; - background: rgba(0,0,0,0); - padding-left: 4px; - padding-right: 4px; -} -.ant-table-content .ant-table-cell .ant-btn-text:hover { - color: #1890ff; - background: none; -} - -.frize-menu { - width: 224px; - height: 100%; - overflow: hidden; - flex: 0 0 224px; - max-width: 224px; - min-width: 224px; - background: #fff; - position: fixed; - min-height: 100%; - scrollbar-width: none; - z-index: 100; - left: 0; - top: 56px; - overflow-y: auto; - border: none; - // padding-top: 66px; - padding-bottom: 200px; - -ms-overflow-style: none; /* IE 10+ */ -} -.frize-menu::-webkit-scrollbar { - display: none; - } -input::-webkit-outer-spin-button, - input::-webkit-inner-spin-button { - -webkit-appearance: none; - } - input[type="number"]{ - -moz-appearance: textfield; - } - -.basicLayout-children{ - margin-top:5px; - background-color:white; - border-radius:6px; - overflow:auto; - -ms-overflow-style: none; -} -.basicLayout-children::-webkit-scrollbar { - width:0px; -} - -// 修改全局界面上所有只读表单文字颜色改成黑色 -.ant-input[disabled]{ - color: #333; -} -.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector{ - color: #333; -} -.ant-radio-disabled + span{ - color: #333; -} -.ant-btn-primary[disabled], .ant-btn-primary[disabled]:hover, .ant-btn-primary[disabled]:focus, .ant-btn-primary[disabled]:active{ - color: #333; -} -.ant-checkbox-disabled + span{ - color: #333; -} -.ant-picker-input > input[disabled]{ - color: #333; -} -.ant-btn[disabled], .ant-btn[disabled]:hover, .ant-btn[disabled]:focus, .ant-btn[disabled]:active{ - color: #333; -} -//2022.2.18增加PageHeader全局样式 来源:ld_style.less -.ant-page-header{ - background: #fff; - padding: 6px 24px; - border-bottom: 1px solid #ddd; -} +// 宽度 +@width: 1366px; diff --git a/src/global.less b/src/global.less index c85eb4b..a200c83 100644 --- a/src/global.less +++ b/src/global.less @@ -18,21 +18,12 @@ body, // overflow-y: hidden; } -canvas { - display: block; -} - body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } -ul, -ol { - // list-style: none; -} - @media (max-width: @screen-xs) { .ant-table { width: 100%; diff --git a/src/images/Xuni/timg.gif b/src/images/Xuni/timg.gif deleted file mode 100644 index 46941b7..0000000 Binary files a/src/images/Xuni/timg.gif and /dev/null differ diff --git a/src/images/Xuni/xuni.jpg b/src/images/Xuni/xuni.jpg deleted file mode 100644 index 4ce6526..0000000 Binary files a/src/images/Xuni/xuni.jpg and /dev/null differ diff --git a/src/images/answer/banner.jpg b/src/images/answer/banner.jpg deleted file mode 100644 index 2bb7d97..0000000 Binary files a/src/images/answer/banner.jpg and /dev/null differ diff --git a/src/images/answer/bg.png b/src/images/answer/bg.png deleted file mode 100644 index 2e303d6..0000000 Binary files a/src/images/answer/bg.png and /dev/null differ diff --git a/src/images/auction/participateLogo.jpg b/src/images/auction/participateLogo.jpg deleted file mode 100644 index 90fdff6..0000000 Binary files a/src/images/auction/participateLogo.jpg and /dev/null differ diff --git a/src/images/defImg/一次谈判一轮报价.png b/src/images/defImg/一次谈判一轮报价.png deleted file mode 100644 index f885915..0000000 Binary files a/src/images/defImg/一次谈判一轮报价.png and /dev/null differ diff --git a/src/images/defImg/一次谈判两轮报价.png b/src/images/defImg/一次谈判两轮报价.png deleted file mode 100644 index 4393b61..0000000 Binary files a/src/images/defImg/一次谈判两轮报价.png and /dev/null differ diff --git a/src/images/defImg/公开招募.png b/src/images/defImg/公开招募.png deleted file mode 100644 index f360b1f..0000000 Binary files a/src/images/defImg/公开招募.png and /dev/null differ diff --git a/src/images/defImg/公开招标、邀请招标-最低价.png b/src/images/defImg/公开招标、邀请招标-最低价.png deleted file mode 100644 index a46ae65..0000000 Binary files a/src/images/defImg/公开招标、邀请招标-最低价.png and /dev/null differ diff --git a/src/images/defImg/公开招标、邀请招标-综合.png b/src/images/defImg/公开招标、邀请招标-综合.png deleted file mode 100644 index f360b1f..0000000 Binary files a/src/images/defImg/公开招标、邀请招标-综合.png and /dev/null differ diff --git a/src/images/defImg/公开比选-最低价-一阶段.png b/src/images/defImg/公开比选-最低价-一阶段.png deleted file mode 100644 index 0277b36..0000000 Binary files a/src/images/defImg/公开比选-最低价-一阶段.png and /dev/null differ diff --git a/src/images/defImg/单一来源.png b/src/images/defImg/单一来源.png deleted file mode 100644 index b3daac3..0000000 Binary files a/src/images/defImg/单一来源.png and /dev/null differ diff --git a/src/images/defImg/单一自定义唱价.png b/src/images/defImg/单一自定义唱价.png deleted file mode 100644 index 5cca4c7..0000000 Binary files a/src/images/defImg/单一自定义唱价.png and /dev/null differ diff --git a/src/images/defImg/单一自定义在线谈.png b/src/images/defImg/单一自定义在线谈.png deleted file mode 100644 index 0c013f1..0000000 Binary files a/src/images/defImg/单一自定义在线谈.png and /dev/null differ diff --git a/src/images/defImg/多轮谈判.png b/src/images/defImg/多轮谈判.png deleted file mode 100644 index 2e21a6c..0000000 Binary files a/src/images/defImg/多轮谈判.png and /dev/null differ diff --git a/src/images/defImg/比选-最低价法-多阶段-合格制.png b/src/images/defImg/比选-最低价法-多阶段-合格制.png deleted file mode 100644 index 3ab0963..0000000 Binary files a/src/images/defImg/比选-最低价法-多阶段-合格制.png and /dev/null differ diff --git a/src/images/defImg/比选-最低价法-多阶段-有限数量制.png b/src/images/defImg/比选-最低价法-多阶段-有限数量制.png deleted file mode 100644 index ebc8e24..0000000 Binary files a/src/images/defImg/比选-最低价法-多阶段-有限数量制.png and /dev/null differ diff --git a/src/images/defImg/比选-综合-一阶段.png b/src/images/defImg/比选-综合-一阶段.png deleted file mode 100644 index 205cf38..0000000 Binary files a/src/images/defImg/比选-综合-一阶段.png and /dev/null differ diff --git a/src/images/defImg/比选-综合评估法-多阶段-合格制.png b/src/images/defImg/比选-综合评估法-多阶段-合格制.png deleted file mode 100644 index c2c025c..0000000 Binary files a/src/images/defImg/比选-综合评估法-多阶段-合格制.png and /dev/null differ diff --git a/src/images/defImg/比选-综合评估法-多阶段-有限数量制.png b/src/images/defImg/比选-综合评估法-多阶段-有限数量制.png deleted file mode 100644 index 722bbdf..0000000 Binary files a/src/images/defImg/比选-综合评估法-多阶段-有限数量制.png and /dev/null differ diff --git a/src/images/defImg/竞谈-最低-自定义初审.png b/src/images/defImg/竞谈-最低-自定义初审.png deleted file mode 100644 index be9bd94..0000000 Binary files a/src/images/defImg/竞谈-最低-自定义初审.png and /dev/null differ diff --git a/src/images/defImg/竞谈-最低-自定义唱价.png b/src/images/defImg/竞谈-最低-自定义唱价.png deleted file mode 100644 index 1286170..0000000 Binary files a/src/images/defImg/竞谈-最低-自定义唱价.png and /dev/null differ diff --git a/src/images/defImg/竞谈-综合-自定义初审.png b/src/images/defImg/竞谈-综合-自定义初审.png deleted file mode 100644 index e27edab..0000000 Binary files a/src/images/defImg/竞谈-综合-自定义初审.png and /dev/null differ diff --git a/src/images/defImg/竞谈-综合-自定义唱价.png b/src/images/defImg/竞谈-综合-自定义唱价.png deleted file mode 100644 index 73c453b..0000000 Binary files a/src/images/defImg/竞谈-综合-自定义唱价.png and /dev/null differ diff --git a/src/images/defImg/竞谈-综合评估法.png b/src/images/defImg/竞谈-综合评估法.png deleted file mode 100644 index 350a480..0000000 Binary files a/src/images/defImg/竞谈-综合评估法.png and /dev/null differ diff --git a/src/images/defImg/竞谈-综合评估法(含初审).png b/src/images/defImg/竞谈-综合评估法(含初审).png deleted file mode 100644 index 14b3822..0000000 Binary files a/src/images/defImg/竞谈-综合评估法(含初审).png and /dev/null differ diff --git a/src/images/defImg/询价-最低价.png b/src/images/defImg/询价-最低价.png deleted file mode 100644 index f3de62b..0000000 Binary files a/src/images/defImg/询价-最低价.png and /dev/null differ diff --git a/src/images/defImg/询价-综合.png b/src/images/defImg/询价-综合.png deleted file mode 100644 index df6ce4d..0000000 Binary files a/src/images/defImg/询价-综合.png and /dev/null differ diff --git a/src/images/login/loginBg.jpg b/src/images/login/loginBg.jpg deleted file mode 100644 index 69b7fc1..0000000 Binary files a/src/images/login/loginBg.jpg and /dev/null differ diff --git a/src/images/login/logoPic.png b/src/images/login/logoPic.png deleted file mode 100644 index 3f42d98..0000000 Binary files a/src/images/login/logoPic.png and /dev/null differ diff --git a/src/images/login/whiteWrap.png b/src/images/login/whiteWrap.png deleted file mode 100644 index 6ecb799..0000000 Binary files a/src/images/login/whiteWrap.png and /dev/null differ diff --git a/src/images/notice/notice.jpg b/src/images/notice/notice.jpg deleted file mode 100644 index f4c635b..0000000 Binary files a/src/images/notice/notice.jpg and /dev/null differ diff --git a/src/images/notice/qfb.jpg b/src/images/notice/qfb.jpg deleted file mode 100644 index 05486f7..0000000 Binary files a/src/images/notice/qfb.jpg and /dev/null differ diff --git a/src/images/opening/logo.svg b/src/images/opening/logo.svg deleted file mode 100644 index 113f6d9..0000000 --- a/src/images/opening/logo.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - diff --git a/src/images/opening/vroom.png b/src/images/opening/vroom.png deleted file mode 100644 index 29f2b36..0000000 Binary files a/src/images/opening/vroom.png and /dev/null differ diff --git a/src/images/opening/vroomre.png b/src/images/opening/vroomre.png deleted file mode 100644 index dd1aaef..0000000 Binary files a/src/images/opening/vroomre.png and /dev/null differ diff --git a/src/images/stamp/stamp_example.png b/src/images/stamp/stamp_example.png deleted file mode 100644 index d81cbb7..0000000 Binary files a/src/images/stamp/stamp_example.png and /dev/null differ diff --git a/src/images/talk/talk.png b/src/images/talk/talk.png deleted file mode 100644 index d3f05c5..0000000 Binary files a/src/images/talk/talk.png and /dev/null differ diff --git a/src/layouts/BasicLayout.tsx b/src/layouts/BasicLayout.tsx deleted file mode 100644 index 5c8337b..0000000 --- a/src/layouts/BasicLayout.tsx +++ /dev/null @@ -1,526 +0,0 @@ -import ProLayout, { - MenuDataItem, - BasicLayoutProps as ProLayoutProps, - Settings, -} from '@ant-design/pro-layout'; -import React, { useEffect, useMemo, useRef, useState } from 'react'; -import { Link, useIntl, connect, Dispatch, history } from 'umi'; -import { Result, Button, message } from 'antd'; -import Authorized from '@/utils/Authorized'; -import RightContent from '@/components/GlobalHeader/RightContent'; -import { ConnectState } from '@/models/connect'; -import { getMatchMenu } from '@umijs/route-utils'; -import { getMenu } from './services' -import logo from '../assets/logo.svg'; -import { getSessionRoleData, getSessionUserData } from '@/utils/session'; - -import { - HomeOutlined, - DesktopOutlined, - NotificationOutlined, - BookOutlined, - ProfileOutlined, - CommentOutlined, - MacCommandOutlined, - ProjectOutlined, - PartitionOutlined, - PayCircleOutlined, - ContactsOutlined, - WalletOutlined, - AppstoreOutlined, - ShopOutlined, - FundProjectionScreenOutlined, - PlaySquareOutlined, - BankOutlined, - IdcardOutlined, -} from '@ant-design/icons'; - -const menuIconMap = { - "HomeOutlined": , - "ContactsOutlined": , - "DesktopOutlined": , - "NotificationOutlined": , - "BookOutlined": , - "ProfileOutlined": , - "CommentOutlined": , - "MacCommandOutlined": , - "ProjectOutlined": , - "PartitionOutlined": , - "PayCircleOutlined": , - "WalletOutlined": , - "AppstoreOutlined": , - "ShopOutlined": , - "FundProjectionScreenOutlined": , - "PlaySquareOutlined": , - "BankOutlined": , - "IdcardOutlined": , -} - -const noMatch = ( - - {/* Go Login */} - 登录 - - } - /> -); - -export interface BasicLayoutProps extends ProLayoutProps { - breadcrumbNameMap: { - [path: string]: MenuDataItem; - }; - route: ProLayoutProps['route'] & { - authority: string[]; - }; - settings: Settings; - dispatch: Dispatch; -} -export type BasicLayoutContext = { [K in 'location']: BasicLayoutProps[K] } & { - breadcrumbNameMap: { - [path: string]: MenuDataItem; - }; -}; -const menuDataRender = (menuList: MenuDataItem[]): MenuDataItem[] => - menuList.map((item) => { - const localItem = { - ...item, - children: item.children ? menuDataRender(item.children) : undefined, - }; - return Authorized.check(item.authority, localItem, null) as MenuDataItem; - }); -const BasicLayout: React.FC = (props) => { - const { - dispatch, - children, - settings, - location = { - pathname: '/', - }, - } = props; - const [menuData, setMenuData] = React.useState(); - const [menuShow, setmenuShow] = React.useState(false); - const menuDataRef = useRef([]); - const mall3_token: any = sessionStorage.getItem('Authorization');//当前登录token - const userData: any = getSessionUserData();//当前登录人信息 - useEffect(() => { - if (getSessionRoleData()?.roleId) { - // let params = { - // roleIdList: [getSessionRoleData()?.roleId] - // } - const res = { - "code": "1", - "success": true, - "message": "操作成功", - "data": [ - { - "menuId": "2", - "path": "", - "name": "我的工作台", - "icon": "DesktopOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/workbench/files", - "name": "共享文档下载", - "frame": "N" - }, - { - "path": "/SystemMessage/message", - "name": "系统消息", - "frame": "N" - }, - { - "path": "/api/auth/oauth/authorize?response_type\u003dcode\u0026client_id\u003d3FjMVIzt\u0026redirect_uri\u003dhttps://10.242.31.158:18023/Expertlibraryworkbench/MyExpertHome/Extract?proxyCompanyNo\u003d{organizationId}\u0026sign\u003dprocure\u0026urlSign\u003dSubagenT\u0026mall3_token\u003d{mall3_token}", - "name": "代理机构信息管理", - "frame": "S" - }, - { - "path": "/api/auth/oauth/authorize?response_type\u003dcode\u0026client_id\u003dCOsHJydx\u0026redirect_uri\u003dhttps://uat-uscm.chinaunicom.cn:8631/redirect?page\u003dcustomerservice/support/conversation/index\u0026mall3_token\u003d{mall3_token}", - "name": "我的客服", - "frame": "S" - }, - { - "path": "/Lowcode/LowcodeRedirect", - "name": "我的服务单", - "frame": "Y" - }, - { - "path": "/api/auth/oauth/authorize?response_type\u003dcode\u0026client_id\u003ds3FXwGQh\u0026redirect_uri\u003dhttps://uat-uscm.chinaunicom.cn:18024/supplierInfo/redirect?page\u003d/supplier-info-ordinary\u0026mall3_token\u003d{mall3_token}", - "name": "智企查", - "frame": "S" - } - ], - "feignFlag": null - }, - { - "menuId": "3", - "path": "", - "name": "通知公告", - "icon": "NotificationOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/notice/noticeList", - "name": "通知公告查看", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "41", - "path": "", - "name": "分派项目管理", - "icon": "BookOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Project/EntrustAssign/Operator", - "name": "分派给我的项目", - "frame": "N" - }, - { - "path": "/Project/EntrustWithdraw", - "name": "委托撤回记录", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1000001", - "path": "", - "name": "招标项目管理", - "icon": "ProfileOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Bid/Manage", - "name": "项目管理", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1000006", - "path": "Negotiation", - "name": "谈判项目管理", - "icon": "CommentOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Negotiation/Manage", - "name": "项目管理", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1843567845937700866", - "path": "DirectProc", - "name": "直接采购管理", - "icon": "SelectOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/DirectProc/Manage", - "name": "项目管理", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "100009", - "path": "ComparisonProc", - "name": "询比采购管理", - "icon": "PartitionOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/ComparisonProc/Manage", - "name": "项目管理", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1000008", - "path": "Inquiry", - "name": "询价项目管理", - "icon": "ProjectOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Inquiry/Manage", - "name": "项目管理", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1000007", - "path": "Recruit", - "name": "招募项目管理", - "icon": "MacCommandOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Recruit/Manage", - "name": "项目管理", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "11111111", - "path": "Finance", - "name": "财务管理", - "icon": "PayCircleOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Finance/ProjectManager/RevenueRecognition", - "name": "招标收入确认", - "frame": "N" - }, - { - "path": "/Finance/EnsureAmount", - "name": "投标保证金查询", - "frame": "N" - }, - { - "path": "/Finance/EnsureAmountRefund", - "name": "保证金退还", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "11", - "path": "Invoice", - "name": "发票管理", - "icon": "WalletOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/Invoice/Manager", - "name": "发票列表", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1565509326829727746", - "path": "ExpertManage", - "name": "专家管理", - "icon": "IdcardOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/api/auth/oauth/authorize?response_type\u003dcode\u0026client_id\u003d3FjMVIzt\u0026redirect_uri\u003dhttps://10.242.31.158:18023/Expertlibraryworkbench/MyExpertHome/Extract?proxyCompanyNo\u003d{organizationId}\u0026sign\u003dprocure\u0026mall3_token\u003d{mall3_token}", - "name": "专家抽取", - "frame": "S" - }, - { - "path": "/api/auth/oauth/authorize?response_type\u003dcode\u0026client_id\u003d3FjMVIzt\u0026redirect_uri\u003dhttps://10.242.31.158:18023/Expertlibraryworkbench/MyExpertHome/Extract?proxyCompanyNo\u003d{organizationId}\u0026sign\u003dprocure\u0026urlSign\u003dEvaluate\u0026mall3_token\u003d{mall3_token}", - "name": "专家评价", - "frame": "S" - }, - { - "path": "/ExpertInfo/ExpertInformationManage", - "name": "专家信息管理", - "frame": "N" - }, - { - "path": "/ExpertInfo/ExpertExtractionAvoidance", - "name": "专家抽取回避", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1565574276328947714", - "path": "VideoMonitor", - "name": "视频监控查询", - "icon": "PlaySquareOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/HistoryVideo", - "name": "历史视频上传列表", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1722061270189662209", - "path": "PurchaseReOffer", - "name": "采购复盘与检查", - "icon": "BookOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/PurchaseReOffer", - "name": "采购复盘与检查表", - "frame": "N" - } - ], - "feignFlag": null - }, - { - "menuId": "1767358998249476098", - "path": "UnbalancedBid", - "name": "不均衡报价分析", - "icon": "BookOutlined", - "menuScope": "EBTP", - "menuOu": null, - "isTop": 0, - "children": [ - { - "path": "/UnbalancedBidList", - "name": "不均衡报价分析表", - "frame": "N" - } - ], - "feignFlag": null - } - ] - } - setMenuData( res.data || []) - setmenuShow(true) - // getMenu(params).then(res => { - // if (res.code == 1) { - // setMenuData(res.data || []) - // setmenuShow(true) - // } else { - // message.error("数据错误请联系管理员") - // } - // }) - } - }, []); - - const menuICon = (menus: any[]): any[] => - menus && menus.map(({ icon, ...item }) => ({ - ...item, - icon: icon && menuIconMap[icon as string], - })); - - const handleMenuCollapse = (payload: boolean): void => { - if (dispatch) { - dispatch({ - type: 'global/changeLayoutCollapsed', - payload, - }); - } - }; - const authorized = useMemo( - () => - getMatchMenu(location.pathname || '/', menuDataRef.current).pop() || { - authority: undefined, - }, - [location.pathname], - ); - const { formatMessage } = useIntl(); - return menuShow ? ( menuICon(menuData)} - logo={logo} - // formatMessage={formatMessage} - onCollapse={handleMenuCollapse} - onMenuHeaderClick={() => history.push('/')} - menuItemRender={(menuItemProps, defaultDom) => { - if (menuItemProps.isUrl || !menuItemProps.path) { - return defaultDom; - } - if (menuItemProps.projectType != undefined) { - menuItemProps.path = menuItemProps.path + `?projectType=${menuItemProps.projectType}`; - } - if (menuItemProps.frame && menuItemProps.frame == 'N') { - return {defaultDom}; - } else if (menuItemProps.frame && menuItemProps.frame == 'Y') { - return window.open(menuItemProps.path)} to="#">{defaultDom}; - } else if (menuItemProps.frame && menuItemProps.frame == 'S') { - const initPath = menuItemProps.path; - const rePath = initPath?.replace("{mall3_token}", mall3_token).replace("{loginName}", userData.loginName).replace("{organizationId}", userData.organizationId); - return window.open(rePath)} to="#">{defaultDom}; - } else { - return {defaultDom}; - } - }} - breadcrumbRender={(routers = []) => [ - { - path: '/', - breadcrumbName: formatMessage({ id: 'menu.home' }), - }, - ...routers, - ]} - itemRender={(route, params, routes, paths) => { - const first = routes.indexOf(route) === 0; - return first ? ( - {route.breadcrumbName} - ) : ( - {route.breadcrumbName} - ); - }} - rightContentRender={() => } - postMenuData={(menuData) => { - menuDataRef.current = menuData || []; - return menuData || []; - }} - {...props} - {...settings} - > - -
- {children} -
-
-
) : null -} - -export default connect(({ global, settings }: ConnectState) => ({ - collapsed: global.collapsed, - settings, -}))(BasicLayout); diff --git a/src/layouts/BlankLayout.tsx b/src/layouts/BlankLayout.tsx deleted file mode 100644 index cdc55b0..0000000 --- a/src/layouts/BlankLayout.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import React from 'react'; - -const Layout: React.FC = ({ children }) => <>{children}; - -export default Layout; diff --git a/src/layouts/CosMenTabLsLayout.tsx b/src/layouts/CosMenTabLsLayout.tsx deleted file mode 100644 index bf966f3..0000000 --- a/src/layouts/CosMenTabLsLayout.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import React, { useEffect, useMemo, useRef } from 'react'; -import { Link } from 'umi'; -import { Result, Button } from 'antd'; -import Authorized from '@/utils/Authorized'; -import { getMatchMenu } from '@umijs/route-utils'; -import LayLeftMenu from '../components/LayLeftMenu'; - -const noMatch = ( - - Go Login - - } - /> -); - - -const menuDataRender = (menuList: MenuDataItem[]): MenuDataItem[] => - menuList.map((item) => { - const localItem = { - ...item, - children: item.children ? menuDataRender(item.children) : undefined, - }; - return Authorized.check(item.authority, localItem, null) as MenuDataItem; - }); - - -const CosMenTabLsLayout: React.FC = (props) => { - const { - dispatch, - children, - location = { - pathname: '/', - }, - } = props; - - const menuDataRef = useRef([]); - - // useEffect(() => { - // if (dispatch) { - // dispatch({ - // type: 'user/fetchCurrent', - // }); - // } - // }, []); - const authorized = useMemo( - () => - getMatchMenu(location.pathname || '/', menuDataRef.current).pop() || { - authority: undefined, - }, - [location.pathname], - ); - - - return ( - - -
- -
- {/*
*/} - {children} -
-
- - ); -}; - -export default CosMenTabLsLayout; diff --git a/src/layouts/CosMenTabsLayout.tsx b/src/layouts/CosMenTabsLayout.tsx deleted file mode 100644 index ab4c963..0000000 --- a/src/layouts/CosMenTabsLayout.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import React, { useEffect, useMemo, useRef } from 'react'; -import { Link } from 'umi'; -import { Result, Button } from 'antd'; -import Authorized from '@/utils/Authorized'; -import { getMatchMenu } from '@umijs/route-utils'; - -import BiddingRoom from '../components/BiddingRoom'; - -const noMatch = ( - - Go Login - - } - /> -); - - -const menuDataRender = (menuList: MenuDataItem[]): MenuDataItem[] => - menuList.map((item) => { - const localItem = { - ...item, - children: item.children ? menuDataRender(item.children) : undefined, - }; - return Authorized.check(item.authority, localItem, null) as MenuDataItem; - }); - - -const CosMenTabsLayout: React.FC = (props) => { - const { - dispatch, - children, - location = { - pathname: '/', - }, - } = props; - - const menuDataRef = useRef([]); - - // useEffect(() => { - // if (dispatch) { - // dispatch({ - // type: 'user/fetchCurrent', - // }); - // } - // }, []); - const authorized = useMemo( - () => - getMatchMenu(location.pathname || '/', menuDataRef.current).pop() || { - authority: undefined, - }, - [location.pathname], - ); - - - return ( - - - - - {children} - - - ); -}; - -export default CosMenTabsLayout; diff --git a/src/layouts/CosMenuLayout.tsx b/src/layouts/CosMenuLayout.tsx deleted file mode 100644 index b425000..0000000 --- a/src/layouts/CosMenuLayout.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import React, { useEffect, useMemo, useRef } from 'react'; -import { Link } from 'umi'; -import { Result, Button } from 'antd'; -import Authorized from '@/utils/Authorized'; -import { getMatchMenu } from '@umijs/route-utils'; -import Promenu from '../components/Promenu'; - -const noMatch = ( - - Go Login - - } - /> -); - - -const menuDataRender = (menuList: MenuDataItem[]): MenuDataItem[] => - menuList.map((item) => { - const localItem = { - ...item, - children: item.children ? menuDataRender(item.children) : undefined, - }; - return Authorized.check(item.authority, localItem, null) as MenuDataItem; - }); - - -const CosMenuLayout: React.FC = (props) => { - const { - dispatch, - children, - location = { - pathname: '/', - }, - } = props; - - const menuDataRef = useRef([]); - - // useEffect(() => { - // if (dispatch) { - // dispatch({ - // type: 'user/fetchCurrent', - // }); - // } - // }, []); - const authorized = useMemo( - () => - getMatchMenu(location.pathname || '/', menuDataRef.current).pop() || { - authority: undefined, - }, - [location.pathname], - ); - - - return ( - - -
- {children} -
-
- ); -}; - -export default CosMenuLayout; diff --git a/src/layouts/Header.less b/src/layouts/Header.less new file mode 100644 index 0000000..282441e --- /dev/null +++ b/src/layouts/Header.less @@ -0,0 +1,9 @@ +@import '../baseStyle.less'; + +.header { + display: flex; + align-items: flex-end; + justify-content: space-between; + width: @width; + margin: 0 auto; +} diff --git a/src/layouts/Header.tsx b/src/layouts/Header.tsx new file mode 100644 index 0000000..0e53255 --- /dev/null +++ b/src/layouts/Header.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +//导入logo图片 +import LogoImg from '@/assets/img/logo.png'; +// 引入样式文件 +import './Header.less'; +//导入菜单组件 +import HeaderMenu from './HeaderMenu'; +const Header: React.FC = (props) => { + return ( +
+ logo + +
+ ); +}; +export default Header; diff --git a/src/layouts/HeaderMenu.less b/src/layouts/HeaderMenu.less new file mode 100644 index 0000000..9b564e7 --- /dev/null +++ b/src/layouts/HeaderMenu.less @@ -0,0 +1,7 @@ +.header-menu{ + display: flex; + align-items: center; + .ant-menu-horizontal{ + border: none; + } +} \ No newline at end of file diff --git a/src/layouts/HeaderMenu.tsx b/src/layouts/HeaderMenu.tsx new file mode 100644 index 0000000..57f2d3e --- /dev/null +++ b/src/layouts/HeaderMenu.tsx @@ -0,0 +1,71 @@ +import React, { useEffect, useState } from 'react'; +import { Menu } from 'antd'; +import Language from './Language'; +import { useIntl, Link, useHistory } from 'umi'; +interface IMenuItem { + label: string; + key: string; + path: string; +} +// 引入样式文件 useIntl().formatMessage({ id: 'menu.首页' }), +import './HeaderMenu.less'; +const items: IMenuItem[] = [ + { + label: 'menu.首页', + key: 'index', + path: '/index', + }, + { + label: 'menu.公告公示', + key: 'announce', + path: '/announce', + }, + { + label: 'menu.政策法规', + key: 'policy', + path: '/policy', + }, + { + label: 'menu.通知中心', + key: 'notice', + path: '/notice', + }, + { + label: 'menu.下载中心', + key: 'download', + path: '/download', + }, + { + label: 'menu.关于我们', + key: 'about', + path: '/about', + }, +]; + +const HeaderMenu: React.FC = (props) => { + //当前激活菜单 + const [current, setCurrent] = useState('index'); + const intl = useIntl(); + const history = useHistory(); + useEffect(() => { + // 获取当前激活菜单 + const path = history.location.pathname; + const menu = items.find((item) => item.path === path); + if (menu) { + setCurrent(menu.key); + } + }, [history.location.pathname]); + return ( +
+ + {items.map((item: IMenuItem) => ( + + {intl.formatMessage({ id: item.label })} + + ))} + + +
+ ); +}; +export default HeaderMenu; diff --git a/src/layouts/Index.tsx b/src/layouts/Index.tsx new file mode 100644 index 0000000..3f65b1f --- /dev/null +++ b/src/layouts/Index.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import Header from './Header'; +const LayoutIndex: React.FC = (props) => { + const { children } = props; + return ( + <> +
+ {children} + + ); +}; +export default LayoutIndex; diff --git a/src/layouts/Language.less b/src/layouts/Language.less new file mode 100644 index 0000000..404fa61 --- /dev/null +++ b/src/layouts/Language.less @@ -0,0 +1,21 @@ +@import '../baseStyle.less'; +.language { + display: flex; + align-items: center; + justify-content: space-between; + height: 25px; + margin-left: 15px; + padding: 0 10px; + font-size: 12px; + background: @gray; + border-radius: 30px; + span { + padding: 0 5px; + cursor: pointer; + color: @gray-text; + &.active{ + color: @main-color; + font-weight: 800; + } + } +} diff --git a/src/layouts/Language.tsx b/src/layouts/Language.tsx new file mode 100644 index 0000000..221b121 --- /dev/null +++ b/src/layouts/Language.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react'; +import { getLocale,setLocale } from 'umi'; + +import './Language.less' + +const Language: React.FC = (props) => { + const locale = getLocale(); + const [languageList, setLanguageList] = useState([ + { + label: '中', + value: 'zh-CN', + }, + { + label: 'EN', + value: 'en-US', + }, + ]); + return ( +
+ {languageList.map((item) => ( + setLocale(item.value, false)} className={item.value === locale ? 'active' : ''} key={item.value}>{item.label} + ))} +
+ ); +}; +export default Language; diff --git a/src/layouts/RoomLayout.tsx b/src/layouts/RoomLayout.tsx deleted file mode 100644 index 8cacd82..0000000 --- a/src/layouts/RoomLayout.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { MenuDataItem, getMenuData, getPageTitle } from '@ant-design/pro-layout'; -import { useIntl, ConnectProps, connect } from 'umi'; -import React from 'react'; -import { ConnectState } from '@/models/connect'; -import { Layout } from 'antd'; - -export interface UserLayoutProps extends Partial { - // breadcrumbNameMap: { - // [path: string]: MenuDataItem; - // }; -} - -const RoomLayout: React.FC = (props) => { - // const { - // route = { - // routes: [], - // }, - // } = props; - // const { routes = [] } = route; - const { - children, - // location = { - // pathname: '', - // }, - } = props; - // const { formatMessage } = useIntl(); - // const { breadcrumb } = getMenuData(routes); - // const title = getPageTitle({ - // pathname: location.pathname, - // formatMessage, - // breadcrumb, - // ...props, - // }); - const { Content } = Layout; - return ( - - {children} - - ); -}; - -// export default connect(({ settings }: ConnectState) => ({ ...settings }))(RoomLayout); -export default RoomLayout; diff --git a/src/layouts/SecurityLayout.tsx b/src/layouts/SecurityLayout.tsx deleted file mode 100644 index fe351ba..0000000 --- a/src/layouts/SecurityLayout.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import React from 'react'; -import { PageLoading } from '@ant-design/pro-layout'; -import { Redirect, connect, ConnectProps } from 'umi'; -import { stringify } from 'querystring'; -import { ConnectState } from '@/models/connect'; -import { CurrentUser } from '@/models/user'; - -interface SecurityLayoutProps extends ConnectProps { - loading?: boolean; - currentUser?: CurrentUser; -} - -interface SecurityLayoutState { - isReady: boolean; -} - -class SecurityLayout extends React.Component { - state: SecurityLayoutState = { - isReady: false, - }; - - componentDidMount() { - this.setState({ - isReady: true, - }); - const { dispatch } = this.props; - // if (dispatch) { - // dispatch({ - // type: 'user/fetchCurrent', - // }); - // } - } - - render() { - const { isReady } = this.state; - const { children, loading, currentUser } = this.props; - // You can replace it to your authentication rule (such as check token exists) - // 你可以把它替换成你自己的登录认证规则(比如判断 token 是否存在) - // const isLogin = currentUser && currentUser.userid; - const isLogin = true - const queryString = stringify({ - redirect: window.location.href, - }); - - if ((!isLogin && loading) || !isReady) { - return ; - } - if (!isLogin && window.location.pathname !== '/user/login') { - return ; - } - return children; - } -} - -export default connect(({ user, loading }: ConnectState) => ({ - currentUser: user.currentUser, - loading: loading.models.user, -}))(SecurityLayout); diff --git a/src/layouts/TopLayout.tsx b/src/layouts/TopLayout.tsx deleted file mode 100644 index f3144ee..0000000 --- a/src/layouts/TopLayout.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import React, { useMemo, useRef } from 'react'; -import { Link } from 'umi'; -import { Result, Button, Layout, Avatar } from 'antd'; -import Authorized from '@/utils/Authorized'; -import { getMatchMenu } from '@umijs/route-utils'; -import logo from '@/assets/logo.svg' -import { CarryOutOutlined, UserSwitchOutlined } from '@ant-design/icons'; -import moment from 'moment'; -import { getSessionUserData } from '@/utils/session'; - -const noMatch = ( - - Go Login - - } - /> -); - -const TopLayout: React.FC<{}> = (props) => { - const { - children, - } = props; - - const { Header, Content } = Layout; - - const menuDataRef = useRef([]); - - let data = getSessionUserData(); - - const authorized = useMemo( - () => - getMatchMenu(location.pathname || '/', menuDataRef.current).pop() || { - authority: undefined, - }, - [location.pathname], - ); - - - return ( - - -
-
-
- 中国联通智慧供应链平台 | 招标采购中心 -
-
    -
  • {moment().format("YYYY-MM-DD")}
  • - {data?.organizationName == null ? null : (
  • {data?.organizationName}
  • )} -
  • - - - {data?.fullName} - -
  • -
-
-
- - {children} - -
-
- ); -}; - -export default TopLayout; diff --git a/src/layouts/UserLayout.less b/src/layouts/UserLayout.less deleted file mode 100644 index cdc207e..0000000 --- a/src/layouts/UserLayout.less +++ /dev/null @@ -1,71 +0,0 @@ -@import '~antd/es/style/themes/default.less'; - -.container { - display: flex; - flex-direction: column; - height: 100vh; - overflow: auto; - background: @layout-body-background; -} - -.lang { - width: 100%; - height: 40px; - line-height: 44px; - text-align: right; - :global(.ant-dropdown-trigger) { - margin-right: 24px; - } -} - -.content { - flex: 1; - padding: 32px 0; -} - -@media (min-width: @screen-md-min) { - .container { - background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg'); - background-repeat: no-repeat; - background-position: center 110px; - background-size: 100%; - } - - .content { - padding: 32px 0 24px; - } -} - -.top { - text-align: center; -} - -.header { - height: 44px; - line-height: 44px; - a { - text-decoration: none; - } -} - -.logo { - height: 44px; - margin-right: 16px; - vertical-align: top; -} - -.title { - position: relative; - top: 2px; - color: @heading-color; - font-weight: 600; - font-size: 33px; - font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif; -} - -.desc { - margin-top: 12px; - margin-bottom: 40px; - color: @text-color-secondary; - font-size: @font-size-base; -} diff --git a/src/layouts/UserLayout.tsx b/src/layouts/UserLayout.tsx deleted file mode 100644 index 508933e..0000000 --- a/src/layouts/UserLayout.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import { MenuDataItem, getMenuData, getPageTitle } from '@ant-design/pro-layout'; -import { Helmet, HelmetProvider } from 'react-helmet-async'; -import { SelectLang, useIntl, ConnectProps, connect } from 'umi'; -import React from 'react'; -import { ConnectState } from '@/models/connect'; -import styles from './UserLayout.less'; - -export interface UserLayoutProps extends Partial { - breadcrumbNameMap: { - [path: string]: MenuDataItem; - }; -} - -const UserLayout: React.FC = (props) => { - const { - route = { - routes: [], - }, - } = props; - const { routes = [] } = route; - const { - children, - location = { - pathname: '', - }, - } = props; - const { formatMessage } = useIntl(); - const { breadcrumb } = getMenuData(routes); - const title = getPageTitle({ - pathname: location.pathname, - formatMessage, - breadcrumb, - ...props, - }); - return ( - - - {title} - - - -
-
- -
-
- {/*
-
- logo - 中国联通电子招投标系统-开发 -
-
*/} - {children} -
-
-
- ); -}; - -export default connect(({ settings }: ConnectState) => ({ ...settings }))(UserLayout); diff --git a/src/layouts/services.ts b/src/layouts/services.ts deleted file mode 100644 index 06780e8..0000000 --- a/src/layouts/services.ts +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request'; - -export async function getMenu(params: any) { - let requestUrl = '/api/core-service-usercenter-public/v1.0/menu/findMenuList'; - return request(requestUrl, { - method: 'POST', - data: params, - }); -} \ No newline at end of file diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 3d57988..b069e53 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1,22 +1,9 @@ -import component from './en-US/component'; -import globalHeader from './en-US/globalHeader'; -import menu from './en-US/menu'; -import pwa from './en-US/pwa'; -import settingDrawer from './en-US/settingDrawer'; -import settings from './en-US/settings'; export default { - 'navBar.lang': 'Languages', - 'layout.user.link.help': 'Help', - 'layout.user.link.privacy': 'Privacy', - 'layout.user.link.terms': 'Terms', - 'app.preview.down.block': 'Download this page to your local project', - 'app.welcome.link.fetch-blocks': 'Get all block', - 'app.welcome.link.block-list': 'Quickly build standard, pages based on `block` development', - ...globalHeader, - ...menu, - ...settingDrawer, - ...settings, - ...pwa, - ...component, + 'menu.首页': 'home', + 'menu.公告公示': 'Public Announcement', + 'menu.政策法规': 'Policies and regulations', + 'menu.通知中心': 'Notifications', + 'menu.下载中心': 'Download Center', + 'menu.关于我们': 'About Us' }; diff --git a/src/locales/en-US/component.ts b/src/locales/en-US/component.ts deleted file mode 100644 index 3ba7eed..0000000 --- a/src/locales/en-US/component.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default { - 'component.tagSelect.expand': 'Expand', - 'component.tagSelect.collapse': 'Collapse', - 'component.tagSelect.all': 'All', -}; diff --git a/src/locales/en-US/globalHeader.ts b/src/locales/en-US/globalHeader.ts deleted file mode 100644 index 60b6d4e..0000000 --- a/src/locales/en-US/globalHeader.ts +++ /dev/null @@ -1,17 +0,0 @@ -export default { - 'component.globalHeader.search': 'Search', - 'component.globalHeader.search.example1': 'Search example 1', - 'component.globalHeader.search.example2': 'Search example 2', - 'component.globalHeader.search.example3': 'Search example 3', - 'component.globalHeader.help': 'Help', - 'component.globalHeader.notification': 'Notification', - 'component.globalHeader.notification.empty': 'You have viewed all notifications.', - 'component.globalHeader.message': 'Message', - 'component.globalHeader.message.empty': 'You have viewed all messsages.', - 'component.globalHeader.event': 'Event', - 'component.globalHeader.event.empty': 'You have viewed all events.', - 'component.noticeIcon.clear': 'Clear', - 'component.noticeIcon.cleared': 'Cleared', - 'component.noticeIcon.empty': 'No notifications', - 'component.noticeIcon.view-more': 'View more', -}; diff --git a/src/locales/en-US/menu.ts b/src/locales/en-US/menu.ts deleted file mode 100644 index a737e69..0000000 --- a/src/locales/en-US/menu.ts +++ /dev/null @@ -1,52 +0,0 @@ -export default { - 'menu.welcome': 'Welcome', - 'menu.more-blocks': 'More Blocks', - 'menu.home': 'Home', - 'menu.admin': 'Admin', - 'menu.admin.sub-page': 'Sub-Page', - 'menu.login': 'Login', - 'menu.register': 'Register', - 'menu.register.result': 'Register Result', - 'menu.dashboard': 'Dashboard', - 'menu.dashboard.analysis': 'Analysis', - 'menu.dashboard.monitor': 'Monitor', - 'menu.dashboard.workplace': 'Workplace', - 'menu.exception.403': '403', - 'menu.exception.404': '404', - 'menu.exception.500': '500', - 'menu.form': 'Form', - 'menu.form.basic-form': 'Basic Form', - 'menu.form.step-form': 'Step Form', - 'menu.form.step-form.info': 'Step Form(write transfer information)', - 'menu.form.step-form.confirm': 'Step Form(confirm transfer information)', - 'menu.form.step-form.result': 'Step Form(finished)', - 'menu.form.advanced-form': 'Advanced Form', - 'menu.list': 'List', - 'menu.list.table-list': 'Search Table', - 'menu.list.basic-list': 'Basic List', - 'menu.list.card-list': 'Card List', - 'menu.list.search-list': 'Search List', - 'menu.list.search-list.articles': 'Search List(articles)', - 'menu.list.search-list.projects': 'Search List(projects)', - 'menu.list.search-list.applications': 'Search List(applications)', - 'menu.profile': 'Profile', - 'menu.profile.basic': 'Basic Profile', - 'menu.profile.advanced': 'Advanced Profile', - 'menu.result': 'Result', - 'menu.result.success': 'Success', - 'menu.result.fail': 'Fail', - 'menu.exception': 'Exception', - 'menu.exception.not-permission': '403', - 'menu.exception.not-find': '404', - 'menu.exception.server-error': '500', - 'menu.exception.trigger': 'Trigger', - 'menu.account': 'Account', - 'menu.account.center': 'Account Center', - 'menu.account.settings': 'Account Settings', - 'menu.account.trigger': 'Trigger Error', - 'menu.account.logout': 'Logout', - 'menu.editor': 'Graphic Editor', - 'menu.editor.flow': 'Flow Editor', - 'menu.editor.mind': 'Mind Editor', - 'menu.editor.koni': 'Koni Editor', -}; diff --git a/src/locales/en-US/pwa.ts b/src/locales/en-US/pwa.ts deleted file mode 100644 index ed8d199..0000000 --- a/src/locales/en-US/pwa.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 'app.pwa.offline': 'You are offline now', - 'app.pwa.serviceworker.updated': 'New content is available', - 'app.pwa.serviceworker.updated.hint': 'Please press the "Refresh" button to reload current page', - 'app.pwa.serviceworker.updated.ok': 'Refresh', -}; diff --git a/src/locales/en-US/settingDrawer.ts b/src/locales/en-US/settingDrawer.ts deleted file mode 100644 index a644905..0000000 --- a/src/locales/en-US/settingDrawer.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - 'app.setting.pagestyle': 'Page style setting', - 'app.setting.pagestyle.dark': 'Dark style', - 'app.setting.pagestyle.light': 'Light style', - 'app.setting.content-width': 'Content Width', - 'app.setting.content-width.fixed': 'Fixed', - 'app.setting.content-width.fluid': 'Fluid', - 'app.setting.themecolor': 'Theme Color', - 'app.setting.themecolor.dust': 'Dust Red', - 'app.setting.themecolor.volcano': 'Volcano', - 'app.setting.themecolor.sunset': 'Sunset Orange', - 'app.setting.themecolor.cyan': 'Cyan', - 'app.setting.themecolor.green': 'Polar Green', - 'app.setting.themecolor.daybreak': 'Daybreak Blue (default)', - 'app.setting.themecolor.geekblue': 'Geek Glue', - 'app.setting.themecolor.purple': 'Golden Purple', - 'app.setting.navigationmode': 'Navigation Mode', - 'app.setting.sidemenu': 'Side Menu Layout', - 'app.setting.topmenu': 'Top Menu Layout', - 'app.setting.fixedheader': 'Fixed Header', - 'app.setting.fixedsidebar': 'Fixed Sidebar', - 'app.setting.fixedsidebar.hint': 'Works on Side Menu Layout', - 'app.setting.hideheader': 'Hidden Header when scrolling', - 'app.setting.hideheader.hint': 'Works when Hidden Header is enabled', - 'app.setting.othersettings': 'Other Settings', - 'app.setting.weakmode': 'Weak Mode', - 'app.setting.copy': 'Copy Setting', - 'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js', - 'app.setting.production.hint': - 'Setting panel shows in development environment only, please manually modify', -}; diff --git a/src/locales/en-US/settings.ts b/src/locales/en-US/settings.ts deleted file mode 100644 index 822dd00..0000000 --- a/src/locales/en-US/settings.ts +++ /dev/null @@ -1,60 +0,0 @@ -export default { - 'app.settings.menuMap.basic': 'Basic Settings', - 'app.settings.menuMap.security': 'Security Settings', - 'app.settings.menuMap.binding': 'Account Binding', - 'app.settings.menuMap.notification': 'New Message Notification', - 'app.settings.basic.avatar': 'Avatar', - 'app.settings.basic.change-avatar': 'Change avatar', - 'app.settings.basic.email': 'Email', - 'app.settings.basic.email-message': 'Please input your email!', - 'app.settings.basic.nickname': 'Nickname', - 'app.settings.basic.nickname-message': 'Please input your Nickname!', - 'app.settings.basic.profile': 'Personal profile', - 'app.settings.basic.profile-message': 'Please input your personal profile!', - 'app.settings.basic.profile-placeholder': 'Brief introduction to yourself', - 'app.settings.basic.country': 'Country/Region', - 'app.settings.basic.country-message': 'Please input your country!', - 'app.settings.basic.geographic': 'Province or city', - 'app.settings.basic.geographic-message': 'Please input your geographic info!', - 'app.settings.basic.address': 'Street Address', - 'app.settings.basic.address-message': 'Please input your address!', - 'app.settings.basic.phone': 'Phone Number', - 'app.settings.basic.phone-message': 'Please input your phone!', - 'app.settings.basic.update': 'Update Information', - 'app.settings.security.strong': 'Strong', - 'app.settings.security.medium': 'Medium', - 'app.settings.security.weak': 'Weak', - 'app.settings.security.password': 'Account Password', - 'app.settings.security.password-description': 'Current password strength', - 'app.settings.security.phone': 'Security Phone', - 'app.settings.security.phone-description': 'Bound phone', - 'app.settings.security.question': 'Security Question', - 'app.settings.security.question-description': - 'The security question is not set, and the security policy can effectively protect the account security', - 'app.settings.security.email': 'Backup Email', - 'app.settings.security.email-description': 'Bound Email', - 'app.settings.security.mfa': 'MFA Device', - 'app.settings.security.mfa-description': - 'Unbound MFA device, after binding, can be confirmed twice', - 'app.settings.security.modify': 'Modify', - 'app.settings.security.set': 'Set', - 'app.settings.security.bind': 'Bind', - 'app.settings.binding.taobao': 'Binding Taobao', - 'app.settings.binding.taobao-description': 'Currently unbound Taobao account', - 'app.settings.binding.alipay': 'Binding Alipay', - 'app.settings.binding.alipay-description': 'Currently unbound Alipay account', - 'app.settings.binding.dingding': 'Binding DingTalk', - 'app.settings.binding.dingding-description': 'Currently unbound DingTalk account', - 'app.settings.binding.bind': 'Bind', - 'app.settings.notification.password': 'Account Password', - 'app.settings.notification.password-description': - 'Messages from other users will be notified in the form of a station letter', - 'app.settings.notification.messages': 'System Messages', - 'app.settings.notification.messages-description': - 'System messages will be notified in the form of a station letter', - 'app.settings.notification.todo': 'To-do Notification', - 'app.settings.notification.todo-description': - 'The to-do list will be notified in the form of a letter from the station', - 'app.settings.open': 'Open', - 'app.settings.close': 'Close', -}; diff --git a/src/locales/pt-BR.ts b/src/locales/pt-BR.ts deleted file mode 100644 index ee3733b..0000000 --- a/src/locales/pt-BR.ts +++ /dev/null @@ -1,20 +0,0 @@ -import component from './pt-BR/component'; -import globalHeader from './pt-BR/globalHeader'; -import menu from './pt-BR/menu'; -import pwa from './pt-BR/pwa'; -import settingDrawer from './pt-BR/settingDrawer'; -import settings from './pt-BR/settings'; - -export default { - 'navBar.lang': 'Idiomas', - 'layout.user.link.help': 'ajuda', - 'layout.user.link.privacy': 'política de privacidade', - 'layout.user.link.terms': 'termos de serviços', - 'app.preview.down.block': 'Download this page to your local project', - ...globalHeader, - ...menu, - ...settingDrawer, - ...settings, - ...pwa, - ...component, -}; diff --git a/src/locales/pt-BR/component.ts b/src/locales/pt-BR/component.ts deleted file mode 100644 index 7cf9999..0000000 --- a/src/locales/pt-BR/component.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default { - 'component.tagSelect.expand': 'Expandir', - 'component.tagSelect.collapse': 'Diminuir', - 'component.tagSelect.all': 'Todas', -}; diff --git a/src/locales/pt-BR/globalHeader.ts b/src/locales/pt-BR/globalHeader.ts deleted file mode 100644 index c927399..0000000 --- a/src/locales/pt-BR/globalHeader.ts +++ /dev/null @@ -1,18 +0,0 @@ -export default { - 'component.globalHeader.search': 'Busca', - 'component.globalHeader.search.example1': 'Exemplo de busca 1', - 'component.globalHeader.search.example2': 'Exemplo de busca 2', - 'component.globalHeader.search.example3': 'Exemplo de busca 3', - 'component.globalHeader.help': 'Ajuda', - 'component.globalHeader.notification': 'Notificação', - 'component.globalHeader.notification.empty': 'Você visualizou todas as notificações.', - 'component.globalHeader.message': 'Mensagem', - 'component.globalHeader.message.empty': 'Você visualizou todas as mensagens.', - 'component.globalHeader.event': 'Evento', - 'component.globalHeader.event.empty': 'Você visualizou todos os eventos.', - 'component.noticeIcon.clear': 'Limpar', - 'component.noticeIcon.cleared': 'Limpo', - 'component.noticeIcon.empty': 'Sem notificações', - 'component.noticeIcon.loaded': 'Carregado', - 'component.noticeIcon.view-more': 'Veja mais', -}; diff --git a/src/locales/pt-BR/menu.ts b/src/locales/pt-BR/menu.ts deleted file mode 100644 index b87ebbb..0000000 --- a/src/locales/pt-BR/menu.ts +++ /dev/null @@ -1,52 +0,0 @@ -export default { - 'menu.welcome': 'Welcome', - 'menu.more-blocks': 'More Blocks', - 'menu.home': 'Início', - 'menu.login': 'Login', - 'menu.admin': 'Admin', - 'menu.admin.sub-page': 'Sub-Page', - 'menu.register': 'Registro', - 'menu.register.result': 'Resultado de registro', - 'menu.dashboard': 'Dashboard', - 'menu.dashboard.analysis': 'Análise', - 'menu.dashboard.monitor': 'Monitor', - 'menu.dashboard.workplace': 'Ambiente de Trabalho', - 'menu.exception.403': '403', - 'menu.exception.404': '404', - 'menu.exception.500': '500', - 'menu.form': 'Formulário', - 'menu.form.basic-form': 'Formulário Básico', - 'menu.form.step-form': 'Formulário Assistido', - 'menu.form.step-form.info': 'Formulário Assistido(gravar informações de transferência)', - 'menu.form.step-form.confirm': 'Formulário Assistido(confirmar informações de transferência)', - 'menu.form.step-form.result': 'Formulário Assistido(finalizado)', - 'menu.form.advanced-form': 'Formulário Avançado', - 'menu.list': 'Lista', - 'menu.list.table-list': 'Tabela de Busca', - 'menu.list.basic-list': 'Lista Básica', - 'menu.list.card-list': 'Lista de Card', - 'menu.list.search-list': 'Lista de Busca', - 'menu.list.search-list.articles': 'Lista de Busca(artigos)', - 'menu.list.search-list.projects': 'Lista de Busca(projetos)', - 'menu.list.search-list.applications': 'Lista de Busca(aplicações)', - 'menu.profile': 'Perfil', - 'menu.profile.basic': 'Perfil Básico', - 'menu.profile.advanced': 'Perfil Avançado', - 'menu.result': 'Resultado', - 'menu.result.success': 'Sucesso', - 'menu.result.fail': 'Falha', - 'menu.exception': 'Exceção', - 'menu.exception.not-permission': '403', - 'menu.exception.not-find': '404', - 'menu.exception.server-error': '500', - 'menu.exception.trigger': 'Disparar', - 'menu.account': 'Conta', - 'menu.account.center': 'Central da Conta', - 'menu.account.settings': 'Configurar Conta', - 'menu.account.trigger': 'Disparar Erro', - 'menu.account.logout': 'Sair', - 'menu.editor': 'Graphic Editor', - 'menu.editor.flow': 'Flow Editor', - 'menu.editor.mind': 'Mind Editor', - 'menu.editor.koni': 'Koni Editor', -}; diff --git a/src/locales/pt-BR/pwa.ts b/src/locales/pt-BR/pwa.ts deleted file mode 100644 index 05cc797..0000000 --- a/src/locales/pt-BR/pwa.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default { - 'app.pwa.offline': 'Você está offline agora', - 'app.pwa.serviceworker.updated': 'Novo conteúdo está disponível', - 'app.pwa.serviceworker.updated.hint': - 'Por favor, pressione o botão "Atualizar" para recarregar a página atual', - 'app.pwa.serviceworker.updated.ok': 'Atualizar', -}; diff --git a/src/locales/pt-BR/settingDrawer.ts b/src/locales/pt-BR/settingDrawer.ts deleted file mode 100644 index 8a10b57..0000000 --- a/src/locales/pt-BR/settingDrawer.ts +++ /dev/null @@ -1,32 +0,0 @@ -export default { - 'app.setting.pagestyle': 'Configuração de estilo da página', - 'app.setting.pagestyle.dark': 'Dark style', - 'app.setting.pagestyle.light': 'Light style', - 'app.setting.content-width': 'Largura do conteúdo', - 'app.setting.content-width.fixed': 'Fixo', - 'app.setting.content-width.fluid': 'Fluido', - 'app.setting.themecolor': 'Cor do Tema', - 'app.setting.themecolor.dust': 'Dust Red', - 'app.setting.themecolor.volcano': 'Volcano', - 'app.setting.themecolor.sunset': 'Sunset Orange', - 'app.setting.themecolor.cyan': 'Cyan', - 'app.setting.themecolor.green': 'Polar Green', - 'app.setting.themecolor.daybreak': 'Daybreak Blue (default)', - 'app.setting.themecolor.geekblue': 'Geek Glue', - 'app.setting.themecolor.purple': 'Golden Purple', - 'app.setting.navigationmode': 'Modo de Navegação', - 'app.setting.sidemenu': 'Layout do Menu Lateral', - 'app.setting.topmenu': 'Layout do Menu Superior', - 'app.setting.fixedheader': 'Cabeçalho fixo', - 'app.setting.fixedsidebar': 'Barra lateral fixa', - 'app.setting.fixedsidebar.hint': 'Funciona no layout do menu lateral', - 'app.setting.hideheader': 'Esconder o cabeçalho quando rolar', - 'app.setting.hideheader.hint': 'Funciona quando o esconder cabeçalho está abilitado', - 'app.setting.othersettings': 'Outras configurações', - 'app.setting.weakmode': 'Weak Mode', - 'app.setting.copy': 'Copiar Configuração', - 'app.setting.copyinfo': - 'copiado com sucesso,por favor trocar o defaultSettings em src/models/setting.js', - 'app.setting.production.hint': - 'O painel de configuração apenas é exibido no ambiente de desenvolvimento, por favor modifique manualmente o', -}; diff --git a/src/locales/pt-BR/settings.ts b/src/locales/pt-BR/settings.ts deleted file mode 100644 index aad2e38..0000000 --- a/src/locales/pt-BR/settings.ts +++ /dev/null @@ -1,60 +0,0 @@ -export default { - 'app.settings.menuMap.basic': 'Configurações Básicas', - 'app.settings.menuMap.security': 'Configurações de Segurança', - 'app.settings.menuMap.binding': 'Vinculação de Conta', - 'app.settings.menuMap.notification': 'Mensagens de Notificação', - 'app.settings.basic.avatar': 'Avatar', - 'app.settings.basic.change-avatar': 'Alterar avatar', - 'app.settings.basic.email': 'Email', - 'app.settings.basic.email-message': 'Por favor insira seu email!', - 'app.settings.basic.nickname': 'Nome de usuário', - 'app.settings.basic.nickname-message': 'Por favor insira seu nome de usuário!', - 'app.settings.basic.profile': 'Perfil pessoal', - 'app.settings.basic.profile-message': 'Por favor insira seu perfil pessoal!', - 'app.settings.basic.profile-placeholder': 'Breve introdução sua', - 'app.settings.basic.country': 'País/Região', - 'app.settings.basic.country-message': 'Por favor insira país!', - 'app.settings.basic.geographic': 'Província, estado ou cidade', - 'app.settings.basic.geographic-message': 'Por favor insira suas informações geográficas!', - 'app.settings.basic.address': 'Endereço', - 'app.settings.basic.address-message': 'Por favor insira seu endereço!', - 'app.settings.basic.phone': 'Número de telefone', - 'app.settings.basic.phone-message': 'Por favor insira seu número de telefone!', - 'app.settings.basic.update': 'Atualizar Informações', - 'app.settings.security.strong': 'Forte', - 'app.settings.security.medium': 'Média', - 'app.settings.security.weak': 'Fraca', - 'app.settings.security.password': 'Senha da Conta', - 'app.settings.security.password-description': 'Força da senha', - 'app.settings.security.phone': 'Telefone de Seguraça', - 'app.settings.security.phone-description': 'Telefone vinculado', - 'app.settings.security.question': 'Pergunta de Segurança', - 'app.settings.security.question-description': - 'A pergunta de segurança não está definida e a política de segurança pode proteger efetivamente a segurança da conta', - 'app.settings.security.email': 'Email de Backup', - 'app.settings.security.email-description': 'Email vinculado', - 'app.settings.security.mfa': 'Dispositivo MFA', - 'app.settings.security.mfa-description': - 'O dispositivo MFA não vinculado, após a vinculação, pode ser confirmado duas vezes', - 'app.settings.security.modify': 'Modificar', - 'app.settings.security.set': 'Atribuir', - 'app.settings.security.bind': 'Vincular', - 'app.settings.binding.taobao': 'Vincular Taobao', - 'app.settings.binding.taobao-description': 'Atualmente não vinculado à conta Taobao', - 'app.settings.binding.alipay': 'Vincular Alipay', - 'app.settings.binding.alipay-description': 'Atualmente não vinculado à conta Alipay', - 'app.settings.binding.dingding': 'Vincular DingTalk', - 'app.settings.binding.dingding-description': 'Atualmente não vinculado à conta DingTalk', - 'app.settings.binding.bind': 'Vincular', - 'app.settings.notification.password': 'Senha da Conta', - 'app.settings.notification.password-description': - 'Mensagens de outros usuários serão notificadas na forma de uma estação de letra', - 'app.settings.notification.messages': 'Mensagens de Sistema', - 'app.settings.notification.messages-description': - 'Mensagens de sistema serão notificadas na forma de uma estação de letra', - 'app.settings.notification.todo': 'Notificação de To-do', - 'app.settings.notification.todo-description': - 'A lista de to-do será notificada na forma de uma estação de letra', - 'app.settings.open': 'Aberto', - 'app.settings.close': 'Fechado', -}; diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 1822d7b..58abf3a 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1,22 +1,9 @@ -import component from './zh-CN/component'; -import globalHeader from './zh-CN/globalHeader'; -import menu from './zh-CN/menu'; -import pwa from './zh-CN/pwa'; -import settingDrawer from './zh-CN/settingDrawer'; -import settings from './zh-CN/settings'; export default { - 'navBar.lang': '语言', - 'layout.user.link.help': '帮助', - 'layout.user.link.privacy': '隐私', - 'layout.user.link.terms': '条款', - 'app.preview.down.block': '下载此页面到本地项目', - 'app.welcome.link.fetch-blocks': '获取全部区块', - 'app.welcome.link.block-list': '基于 block 开发,快速构建标准页面', - ...globalHeader, - ...menu, - ...settingDrawer, - ...settings, - ...pwa, - ...component, + 'menu.首页': '首页', + 'menu.公告公示': '公告公示', + 'menu.政策法规': '政策法规', + 'menu.通知中心': '通知中心', + 'menu.下载中心': '下载中心', + 'menu.关于我们': '关于我们' }; diff --git a/src/locales/zh-CN/component.ts b/src/locales/zh-CN/component.ts deleted file mode 100644 index 1f1fead..0000000 --- a/src/locales/zh-CN/component.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default { - 'component.tagSelect.expand': '展开', - 'component.tagSelect.collapse': '收起', - 'component.tagSelect.all': '全部', -}; diff --git a/src/locales/zh-CN/globalHeader.ts b/src/locales/zh-CN/globalHeader.ts deleted file mode 100644 index 9fd66a5..0000000 --- a/src/locales/zh-CN/globalHeader.ts +++ /dev/null @@ -1,17 +0,0 @@ -export default { - 'component.globalHeader.search': '站内搜索', - 'component.globalHeader.search.example1': '搜索提示一', - 'component.globalHeader.search.example2': '搜索提示二', - 'component.globalHeader.search.example3': '搜索提示三', - 'component.globalHeader.help': '使用文档', - 'component.globalHeader.notification': '通知', - 'component.globalHeader.notification.empty': '你已查看所有通知', - 'component.globalHeader.message': '消息', - 'component.globalHeader.message.empty': '您已读完所有消息', - 'component.globalHeader.event': '待办', - 'component.globalHeader.event.empty': '你已完成所有待办', - 'component.noticeIcon.clear': '清空', - 'component.noticeIcon.cleared': '清空了', - 'component.noticeIcon.empty': '暂无数据', - 'component.noticeIcon.view-more': '查看更多', -}; diff --git a/src/locales/zh-CN/menu.ts b/src/locales/zh-CN/menu.ts deleted file mode 100644 index fa0f907..0000000 --- a/src/locales/zh-CN/menu.ts +++ /dev/null @@ -1,225 +0,0 @@ -export default { - 'menu.welcome': '欢迎', - 'menu.more-blocks': '更多区块', - 'menu.home': '首页', - 'menu.admin': '管理页', - 'menu.admin.sub-page': '二级管理页', - 'menu.login': '登录', - 'menu.register': '注册', - 'menu.register.result': '注册结果', - 'menu.dashboard': 'Dashboard', - 'menu.dashboard.analysis': '分析页', - 'menu.dashboard.monitor': '监控页', - 'menu.dashboard.workplace': '工作台', - 'menu.exception.403': '403', - 'menu.exception.404': '404', - 'menu.exception.500': '500', - 'menu.form': '表单页', - 'menu.form.basic-form': '基础表单', - 'menu.form.step-form': '分步表单', - 'menu.form.step-form.info': '分步表单(填写转账信息)', - 'menu.form.step-form.confirm': '分步表单(确认转账信息)', - 'menu.form.step-form.result': '分步表单(完成)', - 'menu.form.advanced-form': '高级表单', - 'menu.list': '列表页', - 'menu.list.table-list': '查询表格', - 'menu.list.basic-list': '标准列表', - 'menu.list.card-list': '卡片列表', - 'menu.list.search-list': '搜索列表', - 'menu.list.search-list.articles': '搜索列表(文章)', - 'menu.list.search-list.projects': '搜索列表(项目)', - 'menu.list.search-list.applications': '搜索列表(应用)', - 'menu.profile': '详情页', - 'menu.profile.basic': '基础详情页', - 'menu.profile.advanced': '高级详情页', - 'menu.result': '结果页', - 'menu.result.success': '成功页', - 'menu.result.fail': '失败页', - 'menu.exception': '异常页', - 'menu.exception.not-permission': '403', - 'menu.exception.not-find': '404', - 'menu.exception.server-error': '500', - 'menu.exception.trigger': '触发错误', - 'menu.account': '个人页', - 'menu.account.center': '个人中心', - 'menu.account.settings': '个人设置', - 'menu.account.trigger': '触发报错', - 'menu.account.logout': '退出登录', - 'menu.editor': '图形编辑器', - 'menu.editor.flow': '流程编辑器', - 'menu.editor.mind': '脑图编辑器', - 'menu.editor.koni': '拓扑编辑器', - - 'menu.finance': '财务管理', - 'menu.finance.shopping': '购物车', - 'menu.finance.cost': '费用支付', - 'menu.finance.invoice': '发票列表', - 'menu.finance.earnest': '缴纳保证金', - 'menu.bidOpening': '开标', - 'menu.bidOpening.openList': '开标列表', - - 'menu.list.ProjectDocumentation': '项目管理', - 'menu.list.ProjectInformationManagement': '项目信息管理', - 'menu.list.ProjectComplaint': '异议投诉', - // 'menu.list.packageDivided':'标段划分', - 'menu.biddingInvitation': '投标邀请', - 'menu.biddingInvitation.biddingAnnouncement': '招标公告', - 'menu.biddingInvitation.responseFormat': '应答格式', - 'menu.list.packageInformation': '标包信息', - 'menu.profile.biddingAnnouncement': '招标公告', - 'menu.list.LookingForBusinessOpportunities': '寻找商机', - 'menu.list.IParticipate': '我要参与', - 'menu.list.DownloadPurchasingDocuments': '下载招标文件', - 'menu.list.SupplierQuestionsOrObjections': '供应商质疑或异议列表', - 'menu.supplierClarificationList': '供应商澄清列表', - 'menu.clarificationOfTheBid': '标中质询澄清列表', - 'menu.challengeListInTheIndex': '标中质询列表', - 'menu.clarifyTheList': '澄清列表', - 'menu.invitationLetter': '邀请函', - 'menu.mentionDoubtReply': '项目经理提疑回复列表', - 'menu.reviewResults.manager': '评审结果-项目经理', - 'menu.reviewResults.groupLeader': '评审结果-组长', - 'menu.reviewResults.jury': '评审结果-评委', - - 'menu.Tender': '发标', - 'menu.Tender.UploadResponse': '上传应答文件', - 'menu.Tender.BiddingResponse': '购标及应答情况查看', - 'menu.Evaluation': '评标', - 'menu.Evaluation.BidAbnormal': '评标异常', - 'menu.Evaluation.BidControl': '查看风险防控', - 'menu.Evaluation.BidControl.BidControlManager': '查看风险防控项目经理', - 'menu.Evaluation.BidPreliminary': '初审', - 'menu.Evaluation.BidPreliminary.BidPreliminaryManager': '初审项目经理', - 'menu.Evaluation.BidPreliminary.BidPreliminaryReview': '初审评审专家', - 'menu.Evaluation.BidPreliminary.BidPreliminaryReviewLeader': '初审评审组长', - 'menu.Evaluation.BidPreliminary.BidPreliminarySpeed': '进度表', - 'menu.Evaluation.BidDetailed': '详审', - 'menu.Evaluation.BidDetailed.BidDetailedManager': '详审项目经理', - 'menu.Evaluation.BidDetailed.BidDetailedReview': '详审评审专家', - 'menu.Evaluation.BidDetailed.BidDetailedReviewLeader': '详审评审组长', - 'menu.Evaluation.BidDetailed.BidDetailedOffer': '报价评审', - 'menu.Evaluation.BidDetailed.BidDetailedScore': '报价分评审', - 'menu.Evaluation.BidDetailed.BidDetailedSpeed': '进度表', - 'menu.Evaluation.BidReply': '应答', - 'menu.Evaluation.BidReply.BidReplyDownload': '应答文件下载', - 'menu.Evaluation.BidReview': '评审', - 'menu.Evaluation.BidReview.BidReviewEdit': '编辑评审报告', - 'menu.Evaluation.BidReview.BidReviewConfirm': '专家确认评审报告', - 'menu.Evaluation.BidEnd': '评审结束', - 'menu.Evaluation.BidEnd.BidEndPrint': '报表打印', - 'menu.Evaluation.BidEnd.BidEndLook': '报表查看', - 'menu.Evaluation.BidEnd.BidEndControl': '查看风险防控', - 'menu.Evaluation.BidEnd.BidEndAdjust': '算数错误调整', - 'menu.Evaluation.BidEnd.BidEndSummary': '谈判纪要', - 'menu.Evaluation.BidEnd.BidEndDetailed': '谈判明细', - - 'menu.reviewConfig': '评审配置', - 'menu.reviewConfig.list': '评审项列表', - 'menu.reviewConfig.config': '评审配置', - 'menu.reviewConfig.fileConfig': '采购文件设置', - 'menu.reviewConfig.singConfig': '唱价设置', - 'menu.reviewConfig.offerConfig': '报价设置', - 'menu.reviewConfig.costConfig': '费用设置', - - 'menu.judgingPanel': '评委会', - 'menu.judgingPanel.list': '评委会列表', - - 'menu.sectionInfo': '标段信息', - 'menu.reviewRoom.reviewRoom-list': '评审室', - 'menu.homePageManager': '主页-标段列表(项目经理)', - 'menu.homePageSupplier': '主页-标段列表(供应商)', - 'menu.archive': '归档', - 'menu.supplierInformation': '供应商信息管理', - 'menu.supplierInformation.commonContact': '常用联系人管理', - 'menu.supplierInformation.mailingAddress': '邮寄地址管理', - 'menu.supplierInformation.invoiceInformation': '发票信息管理', - 'menu.BidEvaluation': '评审室', - 'menu.BidEvaluation.BidEvaluationManager': '评审室(招标代理)', - 'menu.BidEvaluation.BidEvaluationJury': '评审室(专家)', - 'menu.BidEvaluation.BidEvaluationSupplier': '评审室(供应商)', - 'menu.BidEvaluation.BidEvaluationRoom': '评审室', - - //我的工作台 - 'menu.workbench': '我的工作台', - 'menu.workbench.commonFiles': '共享文档下载', - 'menu.workbench.commonFilesManage': '共享文档管理', - 'menu.workbench.systemMessage': '系统消息', - - //通知公告 - 'menu.notice': '通知公告', - 'menu.notice.noticeManage': '通知公告管理', - 'menu.notice.noticeList': '通知公告查看', - //竞拍公告 - 'menu.Auction': '竞拍公告', - 'menu.Auction.AuctionInfoManage': '项目信息', - 'menu.Auction.AuctionList': '竞拍公告', - 'menu.Auction.AuctionProjectSuspension': '项目中止', - 'menu.Auction.AuctionParticipantsData': '查看参拍人信息', - 'menu.Auction.AuctionProjectBidding': '项目竞拍', - 'menu.Auction.AuctionViewAuctions': '查看竞拍', - 'menu.Auction.AuctionResults': '竞拍结果有人出价', - 'menu.Auction.AuctionLookingForInnerShot': '寻找内拍项目', - 'menu.Auction.AuctionMyLookingForInnerShot': '我参与的内拍项目', - 'menu.Auction.AuctionManagerProject': '我发起的内拍项目', - "menu.Auction.AuctionAnnouncementData": '公告信息', - "menu.Auction.AuctionInfoupdateManage": '公告信息2', - - - //项目委托 - 'menu.entrust': '项目委托管理', - 'menu.entrust.manager': '委托管理(管理员)', - 'menu.entrust.operator': '委托管理(操作员)', - 'menu.entrust.mandatoryAdministration': '项目经理的委托管理', - //招标项目 - 'menu.bidManage': '招标项目管理', - 'menu.bidManage.projectManage': '项目管理', - 'menu.bidManage.ProjectsInvolved': '我参与的项目', - 'menu.bidManage.Find': '寻找商机', - 'menu.bidManage.Letter': '邀请函', - //定标 - 'menu.Calibration': '定标', - 'menu.Calibration.ResultNotice': '结果通知书', - 'menu.Calibration.ViewNotice': '查看通知书', - 'menu.BiddingDocumentsDecrypt': '投标文件查看',/*BiddingDocumentsDecrypt_pg*/ - 'menu.BiddingDocumentsDecrypt.BiddingDocumentsDecrypt_pg': '投标文件查看页面', - 'menu.BidAssessmentResults': '评审结果', - 'menu.BidAssessmentResults.BidAssessmentResults_pg': '评审结果页面', - 'menu.BidPublicityResult': '结果公示', - 'menu.BidPublicityResult.BidPublicityResult_pg': '结果公示页面', - 'menu.NtkoPage': 'weboffice', - 'menu.NtkoPage.NtkoPage_pg': 'ntko', - 'menu.finance.RevenueRecognition': '收入确认审核(项目经理)', - //发票管理 - 'menu.Invoice': '发票管理', - 'menu.Invoice.InvoiceManager': '发票列表', - 'menu.Invoice.InvoiceSupplier': '发票列表', - 'menu.JuryRoom': '专家评审', - 'menu.JuryRoom.BidProjectReview': '招标项目评审', - // 沃支付账号管理 - 'menu.Account': '账号信息管理管理', - 'menu.Account.AccountManage': '账号列表', - //竞争性谈判 - 'menu.NegotiationManage': '谈判项目管理', - 'menu.NegotiationManage.projectManage': '项目列表', - 'menu.NegotiationManage.ProjectsInvolved': '我参与的项目', - 'menu.NegotiationManage.Find': '寻找商机', - 'menu.NegotiationManage.Letter': '邀请函', - //询价 - 'menu.Inquiry': '询价项目管理', - 'menu.Inquiry.projectManage': '项目列表', - 'menu.Inquiry.ProjectsInvolved': '你参与的项目', - 'menu.Inquiry.Find': '寻找商机', - 'menu.Inquiry.Letter': '邀请函', - //比选 - 'menu.Selection': '比选项目管理', - 'menu.Selection.projectManage': '项目列表', - 'menu.Selection.ProjectsInvolved': '你参与的项目', - 'menu.Selection.Find': '寻找商机', - 'menu.Selection.Letter': '邀请函', - //招募 - 'menu.Recruit': '招募项目管理', - 'menu.Recruit.projectManage': '项目列表', - 'menu.Recruit.ProjectsInvolved': '你参与的项目', - 'menu.Recruit.Find': '寻找商机', - 'menu.Recruit.Letter': '邀请函', -}; diff --git a/src/locales/zh-CN/pwa.ts b/src/locales/zh-CN/pwa.ts deleted file mode 100644 index e950484..0000000 --- a/src/locales/zh-CN/pwa.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 'app.pwa.offline': '当前处于离线状态', - 'app.pwa.serviceworker.updated': '有新内容', - 'app.pwa.serviceworker.updated.hint': '请点击“刷新”按钮或者手动刷新页面', - 'app.pwa.serviceworker.updated.ok': '刷新', -}; diff --git a/src/locales/zh-CN/settingDrawer.ts b/src/locales/zh-CN/settingDrawer.ts deleted file mode 100644 index 15685a4..0000000 --- a/src/locales/zh-CN/settingDrawer.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - 'app.setting.pagestyle': '整体风格设置', - 'app.setting.pagestyle.dark': '暗色菜单风格', - 'app.setting.pagestyle.light': '亮色菜单风格', - 'app.setting.content-width': '内容区域宽度', - 'app.setting.content-width.fixed': '定宽', - 'app.setting.content-width.fluid': '流式', - 'app.setting.themecolor': '主题色', - 'app.setting.themecolor.dust': '薄暮', - 'app.setting.themecolor.volcano': '火山', - 'app.setting.themecolor.sunset': '日暮', - 'app.setting.themecolor.cyan': '明青', - 'app.setting.themecolor.green': '极光绿', - 'app.setting.themecolor.daybreak': '拂晓蓝(默认)', - 'app.setting.themecolor.geekblue': '极客蓝', - 'app.setting.themecolor.purple': '酱紫', - 'app.setting.navigationmode': '导航模式', - 'app.setting.sidemenu': '侧边菜单布局', - 'app.setting.topmenu': '顶部菜单布局', - 'app.setting.fixedheader': '固定 Header', - 'app.setting.fixedsidebar': '固定侧边菜单', - 'app.setting.fixedsidebar.hint': '侧边菜单布局时可配置', - 'app.setting.hideheader': '下滑时隐藏 Header', - 'app.setting.hideheader.hint': '固定 Header 时可配置', - 'app.setting.othersettings': '其他设置', - 'app.setting.weakmode': '色弱模式', - 'app.setting.copy': '拷贝设置', - 'app.setting.copyinfo': '拷贝成功,请到 src/defaultSettings.js 中替换默认配置', - 'app.setting.production.hint': - '配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件', -}; diff --git a/src/locales/zh-CN/settings.ts b/src/locales/zh-CN/settings.ts deleted file mode 100644 index df8af43..0000000 --- a/src/locales/zh-CN/settings.ts +++ /dev/null @@ -1,55 +0,0 @@ -export default { - 'app.settings.menuMap.basic': '基本设置', - 'app.settings.menuMap.security': '安全设置', - 'app.settings.menuMap.binding': '账号绑定', - 'app.settings.menuMap.notification': '新消息通知', - 'app.settings.basic.avatar': '头像', - 'app.settings.basic.change-avatar': '更换头像', - 'app.settings.basic.email': '邮箱', - 'app.settings.basic.email-message': '请输入您的邮箱!', - 'app.settings.basic.nickname': '昵称', - 'app.settings.basic.nickname-message': '请输入您的昵称!', - 'app.settings.basic.profile': '个人简介', - 'app.settings.basic.profile-message': '请输入个人简介!', - 'app.settings.basic.profile-placeholder': '个人简介', - 'app.settings.basic.country': '国家/地区', - 'app.settings.basic.country-message': '请输入您的国家或地区!', - 'app.settings.basic.geographic': '所在省市', - 'app.settings.basic.geographic-message': '请输入您的所在省市!', - 'app.settings.basic.address': '街道地址', - 'app.settings.basic.address-message': '请输入您的街道地址!', - 'app.settings.basic.phone': '联系电话', - 'app.settings.basic.phone-message': '请输入您的联系电话!', - 'app.settings.basic.update': '更新基本信息', - 'app.settings.security.strong': '强', - 'app.settings.security.medium': '中', - 'app.settings.security.weak': '弱', - 'app.settings.security.password': '账户密码', - 'app.settings.security.password-description': '当前密码强度', - 'app.settings.security.phone': '密保手机', - 'app.settings.security.phone-description': '已绑定手机', - 'app.settings.security.question': '密保问题', - 'app.settings.security.question-description': '未设置密保问题,密保问题可有效保护账户安全', - 'app.settings.security.email': '备用邮箱', - 'app.settings.security.email-description': '已绑定邮箱', - 'app.settings.security.mfa': 'MFA 设备', - 'app.settings.security.mfa-description': '未绑定 MFA 设备,绑定后,可以进行二次确认', - 'app.settings.security.modify': '修改', - 'app.settings.security.set': '设置', - 'app.settings.security.bind': '绑定', - 'app.settings.binding.taobao': '绑定淘宝', - 'app.settings.binding.taobao-description': '当前未绑定淘宝账号', - 'app.settings.binding.alipay': '绑定支付宝', - 'app.settings.binding.alipay-description': '当前未绑定支付宝账号', - 'app.settings.binding.dingding': '绑定钉钉', - 'app.settings.binding.dingding-description': '当前未绑定钉钉账号', - 'app.settings.binding.bind': '绑定', - 'app.settings.notification.password': '账户密码', - 'app.settings.notification.password-description': '其他用户的消息将以站内信的形式通知', - 'app.settings.notification.messages': '系统消息', - 'app.settings.notification.messages-description': '系统消息将以站内信的形式通知', - 'app.settings.notification.todo': '待办任务', - 'app.settings.notification.todo-description': '待办任务将以站内信的形式通知', - 'app.settings.open': '开', - 'app.settings.close': '关', -}; diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts deleted file mode 100644 index 6ad5f93..0000000 --- a/src/locales/zh-TW.ts +++ /dev/null @@ -1,20 +0,0 @@ -import component from './zh-TW/component'; -import globalHeader from './zh-TW/globalHeader'; -import menu from './zh-TW/menu'; -import pwa from './zh-TW/pwa'; -import settingDrawer from './zh-TW/settingDrawer'; -import settings from './zh-TW/settings'; - -export default { - 'navBar.lang': '語言', - 'layout.user.link.help': '幫助', - 'layout.user.link.privacy': '隱私', - 'layout.user.link.terms': '條款', - 'app.preview.down.block': '下載此頁面到本地項目', - ...globalHeader, - ...menu, - ...settingDrawer, - ...settings, - ...pwa, - ...component, -}; diff --git a/src/locales/zh-TW/component.ts b/src/locales/zh-TW/component.ts deleted file mode 100644 index ba48e29..0000000 --- a/src/locales/zh-TW/component.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default { - 'component.tagSelect.expand': '展開', - 'component.tagSelect.collapse': '收起', - 'component.tagSelect.all': '全部', -}; diff --git a/src/locales/zh-TW/globalHeader.ts b/src/locales/zh-TW/globalHeader.ts deleted file mode 100644 index ed58451..0000000 --- a/src/locales/zh-TW/globalHeader.ts +++ /dev/null @@ -1,17 +0,0 @@ -export default { - 'component.globalHeader.search': '站內搜索', - 'component.globalHeader.search.example1': '搜索提示壹', - 'component.globalHeader.search.example2': '搜索提示二', - 'component.globalHeader.search.example3': '搜索提示三', - 'component.globalHeader.help': '使用手冊', - 'component.globalHeader.notification': '通知', - 'component.globalHeader.notification.empty': '妳已查看所有通知', - 'component.globalHeader.message': '消息', - 'component.globalHeader.message.empty': '您已讀完所有消息', - 'component.globalHeader.event': '待辦', - 'component.globalHeader.event.empty': '妳已完成所有待辦', - 'component.noticeIcon.clear': '清空', - 'component.noticeIcon.cleared': '清空了', - 'component.noticeIcon.empty': '暫無資料', - 'component.noticeIcon.view-more': '查看更多', -}; diff --git a/src/locales/zh-TW/menu.ts b/src/locales/zh-TW/menu.ts deleted file mode 100644 index d724459..0000000 --- a/src/locales/zh-TW/menu.ts +++ /dev/null @@ -1,52 +0,0 @@ -export default { - 'menu.welcome': '歡迎', - 'menu.more-blocks': '更多區塊', - 'menu.home': '首頁', - 'menu.login': '登錄', - 'menu.admin': '权限', - 'menu.admin.sub-page': '二级管理页', - 'menu.exception.403': '403', - 'menu.exception.404': '404', - 'menu.exception.500': '500', - 'menu.register': '註冊', - 'menu.register.result': '註冊結果', - 'menu.dashboard': 'Dashboard', - 'menu.dashboard.analysis': '分析頁', - 'menu.dashboard.monitor': '監控頁', - 'menu.dashboard.workplace': '工作臺', - 'menu.form': '表單頁', - 'menu.form.basic-form': '基礎表單', - 'menu.form.step-form': '分步表單', - 'menu.form.step-form.info': '分步表單(填寫轉賬信息)', - 'menu.form.step-form.confirm': '分步表單(確認轉賬信息)', - 'menu.form.step-form.result': '分步表單(完成)', - 'menu.form.advanced-form': '高級表單', - 'menu.list': '列表頁', - 'menu.list.table-list': '查詢表格', - 'menu.list.basic-list': '標淮列表', - 'menu.list.card-list': '卡片列表', - 'menu.list.search-list': '搜索列表', - 'menu.list.search-list.articles': '搜索列表(文章)', - 'menu.list.search-list.projects': '搜索列表(項目)', - 'menu.list.search-list.applications': '搜索列表(應用)', - 'menu.profile': '詳情頁', - 'menu.profile.basic': '基礎詳情頁', - 'menu.profile.advanced': '高級詳情頁', - 'menu.result': '結果頁', - 'menu.result.success': '成功頁', - 'menu.result.fail': '失敗頁', - 'menu.account': '個人頁', - 'menu.account.center': '個人中心', - 'menu.account.settings': '個人設置', - 'menu.account.trigger': '觸發報錯', - 'menu.account.logout': '退出登錄', - 'menu.exception': '异常页', - 'menu.exception.not-permission': '403', - 'menu.exception.not-find': '404', - 'menu.exception.server-error': '500', - 'menu.exception.trigger': '触发错误', - 'menu.editor': '圖形編輯器', - 'menu.editor.flow': '流程編輯器', - 'menu.editor.mind': '腦圖編輯器', - 'menu.editor.koni': '拓撲編輯器', -}; diff --git a/src/locales/zh-TW/pwa.ts b/src/locales/zh-TW/pwa.ts deleted file mode 100644 index 108a6e4..0000000 --- a/src/locales/zh-TW/pwa.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 'app.pwa.offline': '當前處於離線狀態', - 'app.pwa.serviceworker.updated': '有新內容', - 'app.pwa.serviceworker.updated.hint': '請點擊“刷新”按鈕或者手動刷新頁面', - 'app.pwa.serviceworker.updated.ok': '刷新', -}; diff --git a/src/locales/zh-TW/settingDrawer.ts b/src/locales/zh-TW/settingDrawer.ts deleted file mode 100644 index 24dc281..0000000 --- a/src/locales/zh-TW/settingDrawer.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - 'app.setting.pagestyle': '整體風格設置', - 'app.setting.pagestyle.dark': '暗色菜單風格', - 'app.setting.pagestyle.light': '亮色菜單風格', - 'app.setting.content-width': '內容區域寬度', - 'app.setting.content-width.fixed': '定寬', - 'app.setting.content-width.fluid': '流式', - 'app.setting.themecolor': '主題色', - 'app.setting.themecolor.dust': '薄暮', - 'app.setting.themecolor.volcano': '火山', - 'app.setting.themecolor.sunset': '日暮', - 'app.setting.themecolor.cyan': '明青', - 'app.setting.themecolor.green': '極光綠', - 'app.setting.themecolor.daybreak': '拂曉藍(默認)', - 'app.setting.themecolor.geekblue': '極客藍', - 'app.setting.themecolor.purple': '醬紫', - 'app.setting.navigationmode': '導航模式', - 'app.setting.sidemenu': '側邊菜單布局', - 'app.setting.topmenu': '頂部菜單布局', - 'app.setting.fixedheader': '固定 Header', - 'app.setting.fixedsidebar': '固定側邊菜單', - 'app.setting.fixedsidebar.hint': '側邊菜單布局時可配置', - 'app.setting.hideheader': '下滑時隱藏 Header', - 'app.setting.hideheader.hint': '固定 Header 時可配置', - 'app.setting.othersettings': '其他設置', - 'app.setting.weakmode': '色弱模式', - 'app.setting.copy': '拷貝設置', - 'app.setting.copyinfo': '拷貝成功,請到 src/defaultSettings.js 中替換默認配置', - 'app.setting.production.hint': - '配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件', -}; diff --git a/src/locales/zh-TW/settings.ts b/src/locales/zh-TW/settings.ts deleted file mode 100644 index dd45151..0000000 --- a/src/locales/zh-TW/settings.ts +++ /dev/null @@ -1,55 +0,0 @@ -export default { - 'app.settings.menuMap.basic': '基本設置', - 'app.settings.menuMap.security': '安全設置', - 'app.settings.menuMap.binding': '賬號綁定', - 'app.settings.menuMap.notification': '新消息通知', - 'app.settings.basic.avatar': '頭像', - 'app.settings.basic.change-avatar': '更換頭像', - 'app.settings.basic.email': '郵箱', - 'app.settings.basic.email-message': '請輸入您的郵箱!', - 'app.settings.basic.nickname': '昵稱', - 'app.settings.basic.nickname-message': '請輸入您的昵稱!', - 'app.settings.basic.profile': '個人簡介', - 'app.settings.basic.profile-message': '請輸入個人簡介!', - 'app.settings.basic.profile-placeholder': '個人簡介', - 'app.settings.basic.country': '國家/地區', - 'app.settings.basic.country-message': '請輸入您的國家或地區!', - 'app.settings.basic.geographic': '所在省市', - 'app.settings.basic.geographic-message': '請輸入您的所在省市!', - 'app.settings.basic.address': '街道地址', - 'app.settings.basic.address-message': '請輸入您的街道地址!', - 'app.settings.basic.phone': '聯系電話', - 'app.settings.basic.phone-message': '請輸入您的聯系電話!', - 'app.settings.basic.update': '更新基本信息', - 'app.settings.security.strong': '強', - 'app.settings.security.medium': '中', - 'app.settings.security.weak': '弱', - 'app.settings.security.password': '賬戶密碼', - 'app.settings.security.password-description': '當前密碼強度', - 'app.settings.security.phone': '密保手機', - 'app.settings.security.phone-description': '已綁定手機', - 'app.settings.security.question': '密保問題', - 'app.settings.security.question-description': '未設置密保問題,密保問題可有效保護賬戶安全', - 'app.settings.security.email': '備用郵箱', - 'app.settings.security.email-description': '已綁定郵箱', - 'app.settings.security.mfa': 'MFA 設備', - 'app.settings.security.mfa-description': '未綁定 MFA 設備,綁定後,可以進行二次確認', - 'app.settings.security.modify': '修改', - 'app.settings.security.set': '設置', - 'app.settings.security.bind': '綁定', - 'app.settings.binding.taobao': '綁定淘寶', - 'app.settings.binding.taobao-description': '當前未綁定淘寶賬號', - 'app.settings.binding.alipay': '綁定支付寶', - 'app.settings.binding.alipay-description': '當前未綁定支付寶賬號', - 'app.settings.binding.dingding': '綁定釘釘', - 'app.settings.binding.dingding-description': '當前未綁定釘釘賬號', - 'app.settings.binding.bind': '綁定', - 'app.settings.notification.password': '賬戶密碼', - 'app.settings.notification.password-description': '其他用戶的消息將以站內信的形式通知', - 'app.settings.notification.messages': '系統消息', - 'app.settings.notification.messages-description': '系統消息將以站內信的形式通知', - 'app.settings.notification.todo': '待辦任務', - 'app.settings.notification.todo-description': '待辦任務將以站內信的形式通知', - 'app.settings.open': '開', - 'app.settings.close': '關', -}; diff --git a/src/pages/Admin.tsx b/src/pages/Admin.tsx deleted file mode 100644 index 9c343ad..0000000 --- a/src/pages/Admin.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from 'react'; -import { HeartTwoTone, SmileTwoTone } from '@ant-design/icons'; -import { Card, Typography, Alert } from 'antd'; -import { PageHeaderWrapper } from '@ant-design/pro-layout'; - -export default (): React.ReactNode => ( - - - - - Ant Design Pro You - - -

- Want to add more pages? Please refer to{' '} - - use block - - 。 -

-
-); diff --git a/src/pages/Dict/DictService.ts b/src/pages/Dict/DictService.ts deleted file mode 100644 index c40d842..0000000 --- a/src/pages/Dict/DictService.ts +++ /dev/null @@ -1,51 +0,0 @@ -import request from "@/utils/request"; - -// 字典项类型定义 -export interface DictionaryItem { - id: string; - code: string; - dicName: string; - dictTypeCode: string, - dictTypeName: string, - parentCode: string, - parentType: string, - orderFlag: number; - description: string; - createTime: string; - updateTime: string; -} - -// 获取字典列表 -// export const fetchDictionaries = async (): Promise => { -// const response = await axios.get('/api/sys-manager-ebtp-project/v1/dictProject/getDictList?parentCode=procurement_type&toParentCode=entrust'); -// return response.data.data; -// }; - -const prefix = '/api/sys-manager-ebtp-project/'; - -export async function fetchDictionaries(params: any) { - return request(prefix + 'v1/dictProject/selectDictList', { - params: params, - method: 'GET' - }); -} - -export async function createDictionary(params: any) { - return request(prefix + 'v1/dictProject', { - data: params, - method: 'POST' - }); -} - -export async function updateDictionary(params: any) { - return request(prefix + 'v1/dictProject', { - data: params, - method: 'POST' - }); -} - -export async function deleteDictionary(param: any) { - return request(prefix + 'v1/dictProject/delete/' + param, { - method: 'POST', - }); -} diff --git a/src/pages/Dict/DictionaryList.tsx b/src/pages/Dict/DictionaryList.tsx deleted file mode 100644 index e430f7c..0000000 --- a/src/pages/Dict/DictionaryList.tsx +++ /dev/null @@ -1,386 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { Table, Space, Button, Modal, Form, Input, Popconfirm, message, Tag } from 'antd'; -import { DeleteOutlined, EditOutlined, PlusOutlined, SearchOutlined, CheckCircleOutlined, CaretRightOutlined, CaretDownOutlined } from '@ant-design/icons'; -import {DictionaryItem, createDictionary, updateDictionary, deleteDictionary, fetchDictionaries} from './DictService'; - -interface DictionaryListProps {} - -const DictionaryList: React.FC = () => { - const [dataSource, setDataSource] = useState([]); - const [form] = Form.useForm(); - const [searchForm] = Form.useForm(); - const [isModalVisible, setIsModalVisible] = useState(false); - const [modalTitle, setModalTitle] = useState(''); - const [currentId, setCurrentId] = useState(null); - const [loading, setLoading] = useState(false); - const [searchParams, setSearchParams] = useState({ - parentCode: '', - parentType: '' - }); - // 选中的行ID - const [selectedRowId, setSelectedRowId] = useState(null); - // 选中的行数据 - const [selectedRow, setSelectedRow] = useState(null); - // 展开的行ID - const [expandedRowKeys, setExpandedRowKeys] = useState([]); - // 是否为新增子节点模式 - const [isChildAddMode, setIsChildAddMode] = useState(false); - - // const tableData: DictionaryItem[] = [ - // { - // "id": '1164', - // "code": "code", - // "dicName": "行政区划", - // "parentCode": '', - // "parentType": "", - // "orderFlag": 0, - // "description": '', - // "children": [ - // { - // "id": 1163, - // "code": "province", - // "dicName": "省份", - // "parentCode": "code", - // "parentType": "行政区划", - // "orderFlag": 1, - // "description": '' - // }, - // { - // "id": 1162, - // "code": "city", - // "dicName": "地市", - // "parentCode": "code", - // "parentType": "行政区域", - // "orderFlag": 3, - // "description": '' - // }, - // { - // "id": 1161, - // "code": "distict", - // "dicName": "区县", - // "parentCode": "code", - // "parentType": "行政区域", - // "orderFlag": 4, - // "description": "区县级" - // } - // ] - // } - // ]; - - const fetchData = async () => { - setLoading(true); - try { - const result = await fetchDictionaries(searchParams); // 传递搜索参数 - setDataSource(result.data); - } catch (error) { - message.error('获取字典列表失败'); - } finally { - setLoading(false); - } - }; - - useEffect(() => { - fetchData(); - }, [searchParams]); - - const handleAdd = () => { - form.resetFields(); - setModalTitle('新增字典'); - setIsModalVisible(true); - setCurrentId(null); - setIsChildAddMode(false); - }; - - const handleChildAdd = (record: DictionaryItem) =>{ - // 先清空表单 - form.resetFields(); - // 使用 setTimeout 确保表单重置完成后再设置值 - setTimeout(() => { - form.setFieldsValue({ - code: '', - dicName: '', - parentCode: record.code, - parentType: record.dicName, - orderFlag: '', - description: '', - }); - }, 0); - - setModalTitle(`新增${record.dicName}的子字典`); - setIsModalVisible(true); - setCurrentId(null); - setIsChildAddMode(true); - } - - const handleEdit = (record: DictionaryItem) => { - form.resetFields(); - - setTimeout(() => { - form.setFieldsValue({ - code: record.code, - dicName: record.dicName, - parentCode: record.parentCode, - parentType: record.parentType, - orderFlag: record.orderFlag, - description: record.description, - }); - }, 0); - - setModalTitle('编辑字典'); - setIsModalVisible(true); - setCurrentId(record.id); - setIsChildAddMode(false); - }; - - const handleDelete = async (id: string) => { - try { - await deleteDictionary(id); - message.success('删除成功'); - setSelectedRowId(null); - setSelectedRow(null); - fetchData(); - } catch (error) { - message.error('删除失败'); - } - }; - - const handleRowClick = (record: DictionaryItem) => { - if (selectedRowId === record.id) { - setSelectedRowId(null); - setSelectedRow(null); - } else { - setSelectedRowId(record.id); - setSelectedRow(record); - } - }; - - const handleExpand = (expanded: boolean, record: DictionaryItem) => { - if (expanded) { - setExpandedRowKeys([...expandedRowKeys, record.id]); - } else { - setExpandedRowKeys(expandedRowKeys.filter(key => key !== record.id)); - } - }; - - const handleSubmit = async () => { - try { - const values = await form.validateFields(); - if (currentId) { - values.id = currentId; - await updateDictionary(values); - message.success('更新成功'); - } else { - await createDictionary(values); - message.success('创建成功'); - } - setIsModalVisible(false); - fetchData(); - } catch (error) { - message.error(error.message || '操作失败'); - } - }; - - const handleSearch = (values: any) => { - setSearchParams({ - parentCode: values.parentCode || '', - parentType: values.parentType || '' - }); - }; - - const handleReset = () => { - searchForm.resetFields(); - setSearchParams({ - parentCode: '', - parentType: '' - }); - }; - - const expandIcon = ({ expanded, onExpand, record }: any) => { - if (record.children && record.children.length > 0) { - return ( - { - e.stopPropagation(); - onExpand(record); - }}> - {expanded ? : } - - ); - } - return null; - }; - - const columns = [ - { - title: '字典编号', - dataIndex: 'code', - key: 'code', - }, - { - title: '字典名称', - dataIndex: 'dicName', - key: 'dicName', - }, - { - title: '分组编码', - dataIndex: 'parentCode', - key: 'parentCode', - }, - { - title: '分组名称', - dataIndex: 'parentType', - key: 'parentType', - }, - { - title: '排序', - dataIndex: 'orderFlag', - key: 'orderFlag', - }, - { - title: '描述', - dataIndex: 'description', - key: 'description', - }, - { - title: '操作', - key: 'action', - render: (_: any, record: DictionaryItem) => ( - - - - handleDelete(record.id)} - okText="确定" - cancelText="取消" - > - - - - ), - }, - ]; - - return ( -
-
- - - - - - - - - - - - -
- -
- - - - {selectedRow && ( - - 已选择: {selectedRow.dicName} - - )} -
- - ({ - onClick: () => handleRowClick(record), - style: { - cursor: 'pointer', - backgroundColor: selectedRowId === record.id ? '#e6f7ff' : 'transparent', - }, - })} - expandable={{ - expandedRowKeys, - onExpand: handleExpand, - expandIcon, - }} - /> - - setIsModalVisible(false)} - onOk={handleSubmit} - okText="保存" - cancelText="取消" - > -
- - {/* 使用 readOnly 替代 disabled,并添加灰色背景 */} - - - - - - - - - - - - - - - - - - -
- - ); -}; - -export default DictionaryList; diff --git a/src/pages/Dict/DictionaryPage.tsx b/src/pages/Dict/DictionaryPage.tsx deleted file mode 100644 index 5fba497..0000000 --- a/src/pages/Dict/DictionaryPage.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react'; -import { Layout, Breadcrumb } from 'antd'; -import DictionaryList from './DictionaryList'; - -const { Content } = Layout; - -const DictionaryPage: React.FC = () => { - return ( - - - 系统管理 - 字典管理 - - - - - - ); -}; - -export default DictionaryPage; diff --git a/src/pages/System/Department/index.tsx b/src/pages/System/Department/index.tsx deleted file mode 100644 index 4f361ac..0000000 --- a/src/pages/System/Department/index.tsx +++ /dev/null @@ -1,189 +0,0 @@ -import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table'; -import { Button, Form, Input, message, Modal, PageHeader, Select, Spin, Tree, TreeSelect } from 'antd'; -import { useRef, useState } from 'react'; -import { fetchAllDepartment, addOrg, deleteOrg, updateOrg, getDataById } from './service'; -import React from 'react'; -const Index: React.FC<{}> = () => { - const [spin, spinSet] = useState(false); - const actionRef = useRef(); - const [form] = Form.useForm(); - const [title, setTitle] = useState(''); - const [open, setOpen] = useState(false); - const [org, orgSet] = useState([]); - const layout = { - labelCol: { span: 6 }, - wrapperCol: { span: 13 }, - }; - const columns: ProColumns[] = [ - { - title: '组织编码', - dataIndex: 'orgNum', - width: '10%', - }, - { - title: '组织名称', - dataIndex: 'orgName', - width: '30%', - }, - { - title: '组织全称', - dataIndex: 'orgFullName', - width: '45%', - hideInSearch: true, - }, - { - title: '操作', width: '10%', - valueType: 'option', - render: (_, record) => [ - , - - ] - }, - // { - // title: '部门负责人', - // dataIndex: 'leaderName', - // width: '15%', - // }, - ]; - const handleAdd = async () => { - setOpen(true); - setTitle('添加组织'); - }; - - const handleUpdate = async (record: any) => { - form.resetFields(); - const org = await getDataById(record.orgId); - form.setFieldsValue(org.data); - setOpen(true); - setTitle('修改组织'); - }; - // 删除操作 - const handleDelete = (id: string) => { - Modal.confirm({ - title: '确认删除该组织?', - onOk: async () => { - await deleteOrg(id).then((r: any) => { - if (r.code == 200) { - message.success('删除成功'); - } - }) - .finally(() => actionRef.current?.reload()); - }, - }); - }; - - const handleSubmit = async () => { - try { - const values = await form.validateFields(); - if (values.orgId) { - await updateOrg(values).then((r: any) => { - if (r.code == 200) { - message.success('修改成功'); - } - }); - } else { - await addOrg(values).then((r: any) => { - if (r.code == 200) { - message.success('新增成功'); - } - }); - } - closeModal(); - } catch (error) { - console.error(error); - } - }; - const closeModal = async () => { - actionRef.current?.reload(); - form.resetFields(); - setOpen(false); - }; - - const addModal = ( - setOpen(false)}>关闭} - onOk={handleSubmit} - onCancel={() => closeModal()} - > -
- - - - - - - - - - - -
- ); - - //表格请求 - async function request(params: any) { - console.log('org params:', params); - const { data } = await fetchAllDepartment(params); - console.log('org data:', data); - // orgSet(data.children); - orgSet(data); - let result = { - // data: data.children, - data: data, - success: true, - total: data.length, - }; - return result; - } - - - return ( - - -
- <>{`共${total}条`}, - }} - pagination={false} - toolBarRender={() => [ - , - ] - } - request={request} - /> - {addModal} -
-
- ); -} - -export default Index; diff --git a/src/pages/System/Department/service.ts b/src/pages/System/Department/service.ts deleted file mode 100644 index 95e01b5..0000000 --- a/src/pages/System/Department/service.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { request } from 'umi'; - -export async function fetchAllDepartment(params: any) { - return request(`/api/sys-manager-ebtp-project/v1/sysorg/queryAll`, { - method: 'get', - params: params, - }); -} -export async function addOrg(params: any) { - return request('/api/sys-manager-ebtp-project/v1/sysorg/insert', { - method: 'post', - data: params, - }); -} -export async function deleteOrg(id: any) { - return request(`/api/sys-manager-ebtp-project/v1/sysorg/del/${id}`, { - method: 'get', - }); -} -export async function updateOrg(params: any) { - return request('/api/sys-manager-ebtp-project/v1/sysorg/update', { - method: 'post', - data: params, - }); -} -export async function getDataById(id: any) { - return request(`/api/sys-manager-ebtp-project/v1/sysorg/${id}`, { - method: 'get', - }); -} - - -export async function departmentList(options?: { [key: string]: any }): Promise<{ data: any }> { - return request('/api/system/departmentList', { - method: 'GET', - ...(options || {}), - }); -} -//根据部门id 查部门下所属部门及人员,立项用 -export async function getOrgUserIF(orgId: any) { - return request(`/api/sysorg/user?orgId=${orgId}`, { - method: 'GET', - }); -} -//查部门下所属部门及人员 全量 -export async function getAllOrgUserIF() { - return request(` /api/sysorg/user/all`, { - method: 'GET', - }); -} diff --git a/src/pages/System/Role/index.tsx b/src/pages/System/Role/index.tsx deleted file mode 100644 index 994bdd0..0000000 --- a/src/pages/System/Role/index.tsx +++ /dev/null @@ -1,272 +0,0 @@ -import React, { useState, useRef } from 'react'; -import { message, Modal, Input, Form, PageHeader, Button, Spin, Select, Tree } from 'antd'; -import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table'; -import { getPage, getDataById, deleteRole, addRole, updateRole } from './service'; -// import './styles.less'; -import { getDicData } from '@/utils/session'; -import TextArea from 'antd/lib/input/TextArea'; - -const entrust: React.FC<{}> = () => { - //获取字典 - const getDict: any = getDicData(); - const [form] = Form.useForm(); - const [title, setTitle] = useState(''); - const [open, setOpen] = useState(false); - - const [checkedKeys, setCheckedKeys] = useState([]); - const [currentRoleId, setCurrentRoleId] = useState(null); - const dictData = JSON.parse(getDict); - const actionRef = useRef(); - const [spin, spinSet] = useState(false); - //查询分页数据 - const [pageData, pageDataSet] = useState({ - pageNo: 1, - pageSize: 10 - }); - const layout = { - labelCol: { span: 6 }, - wrapperCol: { span: 13 }, - }; - interface DictType { - value: string; - label: string; - } - const sys_normal_scope: DictType[] = [ - { value: 'EBTP', label: '招标采购中心' }, - ]; - - //委托列表 - const columns: ProColumns[] = [ - { title: '序号', valueType: 'index', width: 50, }, - { title: '角色名称', dataIndex: 'roleName', },//, ellipsis: true - { title: '权限字符', dataIndex: 'roleCode', width: '10%' }, - { - title: '角色范围', dataIndex: 'roleScope', - valueEnum: { 'EBTP': { text: '招标采购中心', status: 'EBTP' }, }, - render: (_, record) => { - if (record.roleScope === 'EBTP') { - return (<>招标采购中心) - } else { - return (<>) - } - } - }, - { title: '创建时间', dataIndex: 'createDate', width: '10%', valueType: 'dateTime', search: false }, - { - title: '操作', width: '9%', - valueType: 'option', - render: (_, record) => [ - , - - ] - }, - ]; - // 删除操作 - const handleDelete = (id: string) => { - Modal.confirm({ - title: '确认删除该角色?', - onOk: async () => { - await deleteRole(id).then((r: any) => { - if (r?.code == 200) { - message.success('删除成功'); - } else { - message.error('删除失败'); - } - }) - .finally(() => actionRef.current?.reload()); - }, - }); - }; - const handleAdd = async () => { - form.resetFields(); - // const menus = await menuTreeselect(); - // setMenuOptions(menus.data || []); - // setMenuOptions(menu || []); - - // 使用时转换 - setMenuOptions(formatMenuOptions(menu) || []); - setOpen(true); - setTitle('添加角色'); - }; - - const [menuOptions, setMenuOptions] = useState([]); - let menu = [{ - "id": '1', "parentId": '0', "label": "系统管理", "weight": 1, - "children": [{ - "id": '101', "parentId": '1', "label": "角色管理", "weight": 2, - "children": [{ "id": '1008', "parentId": '101', "label": "角色查询", "weight": 1 }, - { "id": '1009', "parentId": '101', "label": "角色新增", "weight": 2 }, - { "id": '1010', "parentId": '101', "label": "角色修改", "weight": 3 }, - { "id": '1011', "parentId": '101', "label": "角色删除", "weight": 4 }, - { "id": '1012', "parentId": '101', "label": "角色导出", "weight": 5 }] - }, - { - "id": '105', "parentId": '1', "label": "字典管理", "weight": 6, - "children": [{ "id": '1026', "parentId": '105', "label": "字典查询", "weight": 1 }, - { "id": '1027', "parentId": '105', "label": "字典新增", "weight": 2 }, - { "id": '1028', "parentId": '105', "label": "字典修改", "weight": 3 }, - { "id": '1029', "parentId": '105', "label": "字典删除", "weight": 4 }, - { "id": '1030', "parentId": '105', "label": "字典导出", "weight": 5 }] - }] - }, - { "id": '4', "parentId": '0', "label": "PLUS官网", "weight": 4 }, - { - "id": "1494925781048545281", "parentId": '0', "label": "个人待办", "weight": 18, - "children": [{ "id": "1494926258733633538", "parentId": "1494925781048545281", "label": "待办任务", "weight": 1 }, - { "id": "1494926586677874690", "parentId": "1494925781048545281", "label": "已办任务", "weight": 2 }] - }]; - const formatMenuOptions = (data: any[]) => { - return data.map(item => ({ - title: item.label, - key: item.id, - children: item.children ? formatMenuOptions(item.children) : undefined, - })); - }; - - const handleUpdate = async (record: any) => { - form.resetFields(); - const role = await getDataById(record.roleId); - // const menus = await roleMenuTreeselect(record.roleId); - // setMenuOptions(menus.data.menus || []); - setMenuOptions(formatMenuOptions(menu) || []); - setCheckedKeys(role.data.menuIds || []); - form.setFieldsValue({ - ...role.data, - menuIds: role.data.menuIds || [], - }); - // form.setFieldsValue(role.data); - setCurrentRoleId(record.roleId); - setOpen(true); - setTitle('修改角色'); - }; - - const closeModal = async () => { - actionRef.current?.reload(); - form.resetFields(); - setCheckedKeys([]); - setOpen(false); - }; - - const handleSubmit = async () => { - try { - const values = await form.validateFields(); - if (values.roleId) { - await updateRole(values).then((r: any) => { - if (r?.code == 200) { - message.success('修改成功'); - } else { - message.error('修改失败'); - } - }); - } else { - await addRole(values).then((r: any) => { - console.log("r?.code", r?.code) - if (r?.code == 200) { - message.success('新增成功'); - } else { - message.error('新增失败'); - } - }); - } - closeModal(); - } catch (error) { - console.error(error); - } - }; - const checkSupModal = ( - setOpen(false)}>关闭} - onOk={handleSubmit} - onCancel={() => closeModal()} - > -
- - - - - - - - - - - -