-
-
- {/*
*/}
- {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 (
+
+

+
+
+ );
+};
+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 (
+
+
+
+
+ );
+};
+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}
-
-
-
-
-
-
-
-
- {/*
-
-

-
中国联通电子招投标系统-开发
-
-
*/}
- {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) => (
-
- } onClick={() => handleChildAdd(record)}>
- 新增
-
- } onClick={() => handleEdit(record)}>
- 编辑
-
- handleDelete(record.id)}
- okText="确定"
- cancelText="取消"
- >
- } danger>
- 删除
-
-
-
- ),
- },
- ];
-
- return (
-
-
-
-
-
-
-
-
- }>
- 搜索
-
-
-
-
-
-
-
-
- } onClick={handleAdd} style={{ marginRight: 8 }}>
- 新增字典
-
-
-
- {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()}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- setCheckedKeys(checkedKeys as React.Key[]);
- form.setFieldsValue({ menuIds: checkedKeys });
- }}
- treeData={menuOptions}
- />
-
-
-
- );
- return (
-
-
-
-
- actionRef={actionRef}//action触发后更新表格
- columns={columns}//表格
- options={false}
- bordered={false}
- className='tableSearch'
- size='small'
- search={{ labelWidth: 'auto', span: 6 }}
- request={(params) =>
- getPage({
- ...params,
- basePageRequest: { pageNo: pageData.pageNo, pageSize: pageData.pageSize },
- }).then((res) => {
- const result = {
- data: res.data.records,
- total: res.data.total,
- success: res.success,
- pageSize: res.data.size,
- current: res.data.current
- }
- return result;
- })
- }
- toolBarRender={() => [
- ,
- ]
- }
- pagination={{
- defaultPageSize: 10,
- showSizeChanger: false,
- onChange: (page, pageSize) => pageDataSet({ pageNo: page, pageSize: pageSize }),
- onShowSizeChange: (current, size) => pageDataSet({ pageNo: current, pageSize: size }),
- }}
- onReset={() => { pageDataSet({ pageNo: 1, pageSize: 10 }) }}
- />
- {checkSupModal}
-
- {/* 查看 */}
-
- )
-};
-export default entrust;
\ No newline at end of file
diff --git a/src/pages/System/Role/service.ts b/src/pages/System/Role/service.ts
deleted file mode 100644
index c4db448..0000000
--- a/src/pages/System/Role/service.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import request from '@/utils/request';
-
-// 分页查询角色
-export async function getPage(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysrole/getPage', {
- method: 'post',
- data: params,
- });
-}
-export async function getDataById(id: any) {
- return request(`/api/sys-manager-ebtp-project/v1/sysrole/${id}`, {
- method: 'get',
- });
-}
-export async function deleteRole(id: any) {
- return request(`/api/sys-manager-ebtp-project/v1/sysrole/del/${id}`, {
- method: 'get',
- });
-}
-export async function addRole(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysrole/insert', {
- method: 'post',
- data: params,
- });
-}
-export async function updateRole(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysrole/update', {
- method: 'post',
- data: params,
- });
-}
\ No newline at end of file
diff --git a/src/pages/System/User/index.tsx b/src/pages/System/User/index.tsx
deleted file mode 100644
index 3c47560..0000000
--- a/src/pages/System/User/index.tsx
+++ /dev/null
@@ -1,290 +0,0 @@
-import React, { useState, useRef, useMemo, useEffect } from 'react';
-import { message, Modal, Input, Form, PageHeader, Button, Spin, Tree, Checkbox, Row, Col } from 'antd';
-import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table';
-import { getPage, getDataById, allocationIF, assignsRoles, updateRole } from './service';
-import { fetchAllDepartment } from '../Department/service';
-import { getDicData } from '@/utils/session';
-const { Search } = Input;
-const entrust: React.FC<{}> = () => {
- const [roleModalForm] = Form.useForm();
- const [open, setOpen] = useState(false);
- const actionRef = useRef();
- const [spin, spinSet] = useState(false);
- const [roles, setRoles] = useState([]);
- //查询分页数据
- const [pageData, pageDataSet] = useState({
- pageNo: 1,
- pageSize: 10
- });
- const layout = {
- labelCol: { span: 6 },
- wrapperCol: { span: 13 },
- };
- useEffect(() => {
- getDepartmentList();
- }, []);
-
- //委托列表
- const columns: ProColumns[] = [
- { title: '序号', valueType: 'index', width: 50, },
- { title: '用户名', dataIndex: 'name', },
- { title: '用户账号', dataIndex: 'employeeNumber' },
- { title: '用户Id', dataIndex: 'userId' },
- { title: '部门', dataIndex: 'orgName', hideInSearch: true },
- { title: '邮箱', dataIndex: 'email' },
- {
- title: '操作', width: '9%',
- valueType: 'option',
- render: (_, record) => [
-
- // ,
- //
- ]
- },
- ];
- //分配角色查询数据
- const chooseRole = (record: any) => {
- roleModalForm.resetFields();
- spinSet(true);
- allocationIF(record.userId)
- .then((res: any) => {
- if (res?.code === 200) {
- console.log("roleIds",res?.data?.roleIds);
- setRoles(
- res?.data?.allRole?.map((item: any) => ({ label: item.roleName, value: item.roleId })),
- );
- roleModalForm.setFieldsValue({ ...record, roleIds: res?.data?.roleIds });
- }
- })
- .finally(() => {
- spinSet(false);
- });
- setOpen(true);
- };
-
- const closeModal = async () => {
- actionRef.current?.reload();
- roleModalForm.resetFields();
- setOpen(false);
- };
-
- const onAssignsRoles = async () => {
- const values = await roleModalForm.validateFields();
- try {
- const { success } = await assignsRoles(values );
- if (success) {
- message.success('操作成功!');
- }
- closeModal();
- } catch (error) {
- console.error(error);
- }
- };
- const setRoleModal = (
- setOpen(false)}>关闭}
- onOk={onAssignsRoles}
- onCancel={() => closeModal()}
- >
-
-
-
-
-
-
-
-
-
-
-
-
- {roles?.map((v: any, i: number) => (
-
- {v.label}
-
- ))}
-
-
-
-
-
- );
- const [treeDataList, treeDataListSet] = useState([]);
- const [orgId, setOrgId] = useState('');
- const [expandedKeys, setExpandedKeys] = useState([]);
- const [searchValue, setSearchValue] = useState('');
- const [autoExpandParent, setAutoExpandParent] = useState(true);
- const [allData, allDataSet] = useState([]);
- const onChange: (e: any) => void = (e) => {
- const { value } = e.target;
- let keys: any = [];
- if (value !== '') {
- const newExpandedKeys = treeDataList
- .map((item: { title: string | any[]; key: any }) => {
- if (item.title.indexOf(value) > -1) {
- return getParentKey(item.key, allData);
- }
- return null;
- })
- .filter((item: any, i: any, self: string | any[]) => {
- return item && self.indexOf(item) === i;
- });
- keys = newExpandedKeys;
- }
- setExpandedKeys(keys as React.Key[]);
- setSearchValue(value);
- setAutoExpandParent(value !== '');
- };
- const getDepartmentList = async () => {
- try {
- const { data } = await fetchAllDepartment({});
- allDataSet(data);
- const dataList: { key: React.Key; title: string }[] = [];
- const generateList = (data: any[]) => {
- for (let i = 0; i < data.length; i++) {
- const node = data[i];
- const { key } = node;
- dataList.push({ key, title: node.title });
- if (node.children) {
- generateList(node.children);
- }
- }
- };
- generateList(data);
- treeDataListSet(dataList);
- } catch (e) { }
- };
-
- const getParentKey = (key: React.Key, tree: any): React.Key => {
- let parentKey: React.Key;
- for (let i = 0; i < tree.length; i++) {
- const node = tree[i];
- if (node.children) {
- if (node.children.some((item) => item.key === key)) {
- parentKey = node.key;
- } else if (getParentKey(key, node.children)) {
- parentKey = getParentKey(key, node.children);
- }
- }
- }
- return parentKey!;
- };
- const onExpand = (newExpandedKeys: any[]) => {
- setExpandedKeys(newExpandedKeys);
- setAutoExpandParent(false);
- };
- const onDepartmentClick = (selectedKeys: any, e: any) => {
- setOrgId(selectedKeys[0]);
- setTimeout(() => {
- actionRef.current?.reload();
- }, 200);
- };
- const treeData = useMemo(() => {
- const loop = (data: any): any[] => {
- console.log('data', data);
- let res: any[] = [];
- data.map((item: any, i: any) => {
- const strTitle = item.title as string;
- const index = strTitle.indexOf(searchValue);
- const beforeStr = strTitle.substring(0, index);
- const afterStr = strTitle.slice(index + searchValue.length);
- const title =
- index > -1 ? (
-
- {beforeStr}
- {searchValue}
- {afterStr}
-
- ) : (
- {strTitle}
- );
- if (expandedKeys.includes(item.key) || index > -1) {
- if (item.children) {
- res.push({ title, key: item.key, children: loop(item.children) });
- } else {
- res.push({ title, key: item.key });
- }
- }
- });
- return res;
- };
- if (searchValue !== '') {
- let returnData = loop(allData);
- return returnData;
- } else {
- return allData;
- }
- }, [searchValue, allData]);
- return (
-
-
-
-
-
-
-
- actionRef={actionRef}//action触发后更新表格
- columns={columns}//表格
- options={false}
- bordered={false}
- className='tableSearch'
- size='small'
- search={{ labelWidth: 'auto', span: 6 }}
- request={(params) =>
- getPage({
- ...params,
- orgId: orgId,
- basePageRequest: { pageNo: pageData.pageNo, pageSize: pageData.pageSize },
- }).then((res) => {
- const result = {
- data: res.data.records,
- total: res.data.total,
- success: res.success,
- pageSize: res.data.size,
- current: res.data.current
- }
- return result;
- })
- }
- toolBarRender={() => [
- // ,
- ]
- }
- pagination={{
- defaultPageSize: 10,
- showSizeChanger: false,
- onChange: (page, pageSize) => pageDataSet({ pageNo: page, pageSize: pageSize }),
- onShowSizeChange: (current, size) => pageDataSet({ pageNo: current, pageSize: size }),
- }}
- onReset={() => { pageDataSet({ pageNo: 1, pageSize: 10 }); setOrgId(''); }}
- />
- {setRoleModal}
-
-
-
- {/* 查看 */}
-
- )
-};
-export default entrust;
\ No newline at end of file
diff --git a/src/pages/System/User/service.ts b/src/pages/System/User/service.ts
deleted file mode 100644
index c0c6d65..0000000
--- a/src/pages/System/User/service.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-import { request } from 'umi';
-
-// 分页查询角色
-export async function getPage(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysuser/getPage', {
- method: 'post',
- data: params,
- });
-}
-export async function getDataById(id: any) {
- return request(`/api/sys-manager-ebtp-project/v1/sysuser/${id}`, {
- method: 'get',
- });
-}
-export async function deleteRole(id: any) {
- return request(`/api/sys-manager-ebtp-project/v1/sysuser/del/${id}`, {
- method: 'get',
- });
-}
-export async function addRole(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysuser/insert', {
- method: 'post',
- data: params,
- });
-}
-export async function updateRole(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysuser/update', {
- method: 'post',
- data: params,
- });
-}
-
-//分配人员查询数据
-export async function allocationIF(userId: any) {
- return request(`/api/sys-manager-ebtp-project/v1/sysrole/role/assign/${userId}`, {
- method: 'get',
- });
-}
-
-export async function assignsRoles(params: any) {
- return request('/api/sys-manager-ebtp-project/v1/sysuserrole/assignsRoles', {
- method: 'post',
- data: params,
- });
-}
-// import { TreeDataNode } from 'antd';
-
-// export function userList(options?: { [key: string]: any }): Promise<{ data: any }> {
-// return request('/api/system/userList', {
-// method: 'GET',
-// ...(options || {}),
-// });
-// }
-
-// export function treeData(options?: { [key: string]: any }): Promise<{ data: TreeDataNode[] }> {
-// return request('/api/system/treeData', {
-// method: 'GET',
-// ...(options || {}),
-// });
-// }
-
-// export function fetchUserList(options?: any) {
-// return request('/api/sysuser/getPage', {
-// method: 'POST',
-// data: options,
-// });
-// }
-// //获取用户数据
-// export function getUser(userId?: any) {
-// return request(`/api/sysuser/${userId}`, {
-// method: 'get',
-// });
-// }
-
-// export function assignsRoles(options?: { [key: string]: any }): Promise {
-// return request('/api/sysuser/assignsRoles', {
-// method: 'post',
-// ...(options || {}),
-// });
-// }
-
-// //查询用户详情
-// export function getOneUserAll(options?: { [key: string]: any }): Promise<{ data: TreeDataNode[] }> {
-// return request(`/api/sysuser/getOneUserAll/${options?.id}`, {
-// method: 'GET',
-// params: options,
-// ...(options || {}),
-// });
-// }
diff --git a/src/pages/SystemMessage/message/components/approvalDetail.tsx b/src/pages/SystemMessage/message/components/approvalDetail.tsx
deleted file mode 100644
index 6b360f7..0000000
--- a/src/pages/SystemMessage/message/components/approvalDetail.tsx
+++ /dev/null
@@ -1,179 +0,0 @@
-import { Button, Form, Input, Modal } from "antd"
-import React, { useEffect, useState } from "react"
-import { describeSiteMsgDetail, getProjectById, selectMsgRead } from '../service'
-import '@/assets/ld_style.less'
-import { history } from 'umi';
-import { followUpAProjectManager, getDefId } from '@/utils/session';
-
-const { TextArea } = Input;
-
-interface ApprovalDetailProps {
- modalVisible: boolean;
- approvalId: string;
- dateNum: Number;
- trelist: any[];
- onCancel: () => void;
-}
-
-const layout = {
- labelCol: { span: 6 },
- wrapperCol: { span: 15 },
-};
-
-const ApprovalDetail: React.FC = (props) => {
- const { modalVisible, approvalId, onCancel, trelist, dateNum } = props;
- const [form] = Form.useForm();
- const [detailId, setDetailId] = useState(approvalId); // 详情id
- const [lastVisible, setLastVisible] = useState(trelist?.indexOf(approvalId) == 0 ? true : false); // 上一条禁用
- const [nextVisible, setNextVisible] = useState(trelist?.indexOf(approvalId) == trelist?.length - 1 ? true : false); // 下一条禁用
- const [knowVisible, setKnowVisible] = useState(false); // 知道了禁用
- const [projectId, setProjectId] = useState(); // 项目id
- const [roomType, setRoomType] = useState(); // 判断资审候审
- const [disFollowUp, setDisFollowUp] = useState(false) //跟进按钮隐藏
-
- useEffect(() => {
- Int(approvalId);
- setDetailId(approvalId)
- }, [approvalId]);
- const Int = (detailId: any) => {
- describeSiteMsgDetail(detailId).then(res => {
- // if(res.code == 200){
- if (res?.servicecode) {
- let detailMess = JSON.parse(res.servicecode)
- setProjectId(detailMess.tp_id)
- setRoomType(detailMess.room_type)
- } else {
- // message.error('项目数据错误,无法获取流程,请联系管理员!')
- setDisFollowUp(true)
- }
- res.authorizestate == '0' ? setKnowVisible(false) : setKnowVisible(true)
- form.setFieldsValue({
- "title": res.title,
- "createtime": res.createtime,
- "content": res.content
- });
- // }
- });
- };
-
- const next = () => { // 下一条
- setLastVisible(false)
- let current = trelist.indexOf(detailId)
- if (current < trelist.length - 2 && current != trelist.length - 2) {
- setDetailId(trelist[current + 1])
- Int(trelist[current + 1])
- } else if (current == trelist.length - 2) {
- setDetailId(trelist[current + 1])
- Int(trelist[current + 1])
- setNextVisible(true)
- } else {
- setNextVisible(true)
- }
- }
-
- const last = () => { // 上一条
- setNextVisible(false)
- let current: any = trelist.indexOf(detailId)
- if (current > 0 && current != 1) {
- setDetailId(trelist[current - 1])
- Int(trelist[current - 1])
- } else if (current == 1) {
- setDetailId(trelist[current - 1])
- Int(trelist[current - 1])
- setLastVisible(true)
- } else {
- setLastVisible(true)
- }
- }
-
- const getRead = () => { // 知道了
- selectMsgRead(detailId).then(res => {
- setKnowVisible(true)
- });
- }
-
- const getFollow = async () => { // 跟进
- await getProjectById(projectId).then(async response => {
- if (response?.code == 200 && response?.success == true) {
- const resData = response?.data
- await followUpAProjectManager(resData);
- const defId = getDefId();
- if (roomType == '1' && (defId == 'bid_prequalification' || defId == 'comparison_one_prequalification')) { //公开招标资格预审,公开比选一阶段资格预审
- history.push('/ProjectLayout/ZYuShen/senior/Notice?roomType=1')
- } else if (roomType == '2' && (defId == 'bid_prequalification' || defId == 'comparison_one_prequalification')) { //公开招标资格预审后审阶段,公开比选一阶段资格预审后审阶段
- history.push('/ProjectLayout/biddingAnnouncement/BiddingInvitationList?roomType=2')
- } else if (
- defId == 'bid_qualification' ||
- defId == 'comparison_one' ||
- defId == 'comparison_multi' ||
- defId == 'recruit' ||
- defId == 'negotiation_competitive_public'
- ) { //公开招标后审,公开比选一阶段后审,公开比选多阶段,招募单轮,竞争性谈判发公告
- history.push('/ProjectLayout/biddingAnnouncement/BiddingAnnouncementList')
- } else if (
- defId == 'bid_invitation' ||
- defId == 'negotiation_competitive_invite' ||
- defId == 'negotiation_single'
- ) { //邀请招标,竞争性谈判发邀请函,单一来源
- history.push('/ProjectLayout/biddingAnnouncement/BiddingInvitationList')
- } else if (
- defId == 'recruit_multi'
- ) { //多轮招募
- history.push('/ProjectLayout/ZZhaoMu/Bid/BiddingAnnouncement/BiddingAnnouncementList')
- }
- }
- })
- }
-
- return (
- <>
- onCancel()}
- width={800}
- centered
- footer={[
- ,
- ,
- ]}
- >
- 您有 {dateNum} 条公告审批结束消息,当前只显示 6 条最新的公告审批结束提示,请到 history.push('/SystemMessage/message')}> 这里 查看全部提示信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )
-}
-
-export default ApprovalDetail
-
diff --git a/src/pages/SystemMessage/message/components/messageDetail.tsx b/src/pages/SystemMessage/message/components/messageDetail.tsx
deleted file mode 100644
index b78ed42..0000000
--- a/src/pages/SystemMessage/message/components/messageDetail.tsx
+++ /dev/null
@@ -1,172 +0,0 @@
-import { followUpAProjectManager, followUpAProjectSupplier, getDefId, getSessionRoleData } from "@/utils/session";
-import { Button, Form, Input, Modal } from "antd"
-import React, { useEffect, useState } from "react"
-import { describeSiteMsgDetail, selectMsgRead, getProjectById } from '../service'
-import { history } from 'umi';
-
-const { TextArea } = Input;
-
-interface filesManageComponents {
- modalVisible: boolean;
- messId: string;
- onCancel: () => void;
-}
-
-const layout = {
- labelCol: { span: 6 },
- wrapperCol: { span: 15 },
-};
-
-const filesManageComponents: React.FC = (props) => {
- const { modalVisible, messId, onCancel } = props;
- const [form] = Form.useForm();
- const [knowVisible, setKnowVisible] = useState(false); // 知道了禁用
- const [detailId, setDetailId] = useState(); // 详情id
- const [projectId, setProjectId] = useState(); // 项目id
- const [roomType, setRoomType] = useState(); // 判断资审候审
- const [routeType, setRouteType] = useState(); // 判断澄清提疑
- const [disFollowUp, setDisFollowUp] = useState(false) //跟进按钮隐藏
- const role = getSessionRoleData().roleCode;
-
- useEffect(() => {
- Int();
- }, [messId]);
- const Int = () => {
- describeSiteMsgDetail(messId).then(res => {
- // if(res.code == 200){
- res.authorizestate == '0' ? setKnowVisible(false) : setKnowVisible(true)
- form.setFieldsValue({
- "title": res.title,
- "createtime": res.createtime,
- "content": res.content
- });
- setDetailId(res.msgId)
- if (res?.servicecode) {
- let detailMess = JSON.parse(res?.servicecode)
- setProjectId(detailMess.tp_id)
- setRoomType(detailMess.room_type)
- setRouteType(detailMess.type)
- } else {
- // message.error('项目数据错误,无法获取流程,请联系管理员!')
- setDisFollowUp(true)
- }
- // }
- });
- };
-
- const getRead = () => { // 知道了
- selectMsgRead(detailId).then(res => {
- setKnowVisible(true)
- });
- }
-
- const getFollow = async () => { // 跟进
- if (role == "ebtp-supplier") { // 供应商
- await getProjectById(projectId).then(async response => {
- if (response?.code == 200 && response?.success == true) {
- const resData = response?.data
- await followUpAProjectSupplier(resData);
-
- if (routeType == 'clarify') {
- if (roomType == '1') {
- history.push('/ProjectLayout/ZYuShen/Tender/supplier/SupplierClarificationList?roomType=1')
- } else {
- history.push('/ProjectLayout/Tender/supplier/SupplierClarificationList?roomType=2')
- }
- } else {
- history.push('/ProjectLayout/Tender/supplier/SupplierQuestionsOrObjections')
- }
- }
- })
- } else if (role == "ebtp-agency-project-manager" || role == 'ebtp-purchase') { // 项目经理、采购经理
- await getProjectById(projectId).then(async response => {
- if (response?.code == 200 && response?.success == true) {
- const resData = response?.data
- await followUpAProjectManager(resData);
-
- if (routeType == 'clarify') {
- if (roomType == '1') {
- history.push('/ProjectLayout/ZYuShen/Tender/ProjectManager/ClarifyTheList?roomType=1')
- } else {
- history.push('/ProjectLayout/Tender/ProjectManager/ClarifyTheList?roomType=2')
- }
- } else if (routeType == 'approval') { //公告审批
- const defId = getDefId();
- if (roomType == '1' && (defId == 'bid_prequalification' || defId == 'comparison_one_prequalification')) { //公开招标资格预审,公开比选一阶段资格预审
- history.push('/ProjectLayout/ZYuShen/senior/Notice?roomType=1')
- } else if (roomType == '2' && (defId == 'bid_prequalification' || defId == 'comparison_one_prequalification')) { //公开招标资格预审后审阶段,公开比选一阶段资格预审后审阶段
- history.push('/ProjectLayout/biddingAnnouncement/BiddingInvitationList?roomType=2')
- } else if (
- defId == 'bid_qualification' ||
- defId == 'comparison_one' ||
- defId == 'comparison_multi' ||
- defId == 'recruit' ||
- defId == 'negotiation_competitive_public'
- ) { //公开招标后审,公开比选一阶段后审,公开比选多阶段,招募单轮,竞争性谈判发公告
- history.push('/ProjectLayout/biddingAnnouncement/BiddingAnnouncementList')
- } else if (
- defId == 'bid_invitation' ||
- defId == 'negotiation_competitive_invite' ||
- defId == 'negotiation_single'
- ) { //邀请招标,竞争性谈判发邀请函,单一来源
- history.push('/ProjectLayout/biddingAnnouncement/BiddingInvitationList')
- } else if (
- defId == 'recruit_multi'
- ) { //多轮招募
- history.push('/ProjectLayout/ZZhaoMu/Bid/BiddingAnnouncement/BiddingAnnouncementList')
- }
- } else {
- history.push('/ProjectLayout/Tender/ProjectManager/MentionDoubtReply')
- }
- }
- })
- }
- }
-
- return (
- <>
- onCancel()}
- width={800}
- centered
- footer={[
- ,
- ,
-
- ]}
- >
-
-
-
-
-
-
-
-
-
-
-
- >
- )
-}
-
-export default filesManageComponents
diff --git a/src/pages/SystemMessage/message/components/pageDetail.tsx b/src/pages/SystemMessage/message/components/pageDetail.tsx
deleted file mode 100644
index 52f9491..0000000
--- a/src/pages/SystemMessage/message/components/pageDetail.tsx
+++ /dev/null
@@ -1,162 +0,0 @@
-import { Button, Form, Input, message, Modal } from "antd"
-import { Color } from "chalk";
-import React, { useEffect, useState } from "react"
-import { describeSiteMsgDetail, getProjectById, selectMsgRead } from '../service'
-import '@/assets/ld_style.less'
-import { history } from 'umi';
-import { followUpAProjectSupplier } from '@/utils/session';
-
-const { TextArea } = Input;
-
-interface filesManageComponents {
- modalVisible: boolean;
- clarifyId: string;
- dateNum: Number;
- trelist: [];
- onCancel: () => void;
-}
-
-const layout = {
- labelCol: { span: 6 },
- wrapperCol: { span: 15 },
-};
-
-const filesManageComponents: React.FC = (props) => {
- const { modalVisible, clarifyId, onCancel, trelist, dateNum } = props;
- const [form] = Form.useForm();
- const [detailId, setDetailId] = useState(clarifyId); // 详情id
- const [lastVisible, setLastVisible] = useState(trelist?.indexOf(clarifyId) == 0 ? true : false); // 上一条禁用
- const [nextVisible, setNextVisible] = useState(trelist?.indexOf(clarifyId) == trelist?.length - 1 ? true : false); // 下一条禁用
- const [knowVisible, setKnowVisible] = useState(false); // 知道了禁用
- const [projectId, setProjectId] = useState(); // 项目id
- const [roomType, setRoomType] = useState(); // 判断资审候审
- const [disFollowUp, setDisFollowUp] = useState(false) //跟进按钮隐藏
-
- useEffect(() => {
- Int(clarifyId);
- setDetailId(clarifyId)
- }, [clarifyId]);
- const Int = (detailId: any) => {
- describeSiteMsgDetail(detailId).then(res => {
- // if(res.code == 200){
- if (res?.servicecode) {
- let detailMess = JSON.parse(res.servicecode)
- setProjectId(detailMess.tp_id)
- setRoomType(detailMess.room_type)
- } else {
- // message.error('项目数据错误,无法获取流程,请联系管理员!')
- setDisFollowUp(true)
- }
- res.authorizestate == '0' ? setKnowVisible(false) : setKnowVisible(true)
- form.setFieldsValue({
- "title": res.title,
- "createtime": res.createtime,
- "content": res.content
- });
- // }
- });
- };
-
- const next = () => { // 下一条
- setLastVisible(false)
- let current = trelist.indexOf(detailId)
- if (current < trelist.length - 2 && current != trelist.length - 2) {
- setDetailId(trelist[current + 1])
- Int(trelist[current + 1])
- } else if (current == trelist.length - 2) {
- setDetailId(trelist[current + 1])
- Int(trelist[current + 1])
- setNextVisible(true)
- } else {
- setNextVisible(true)
- }
- }
-
- const last = () => { // 上一条
- setNextVisible(false)
- let current: any = trelist.indexOf(detailId)
- if (current > 0 && current != 1) {
- setDetailId(trelist[current - 1])
- Int(trelist[current - 1])
- } else if (current == 1) {
- setDetailId(trelist[current - 1])
- Int(trelist[current - 1])
- setLastVisible(true)
- } else {
- setLastVisible(true)
- }
- }
-
- const getRead = () => { // 知道了
- selectMsgRead(detailId).then(res => {
- setKnowVisible(true)
- });
- }
-
- const getFollow = async () => { // 跟进
- await getProjectById(projectId).then(async response => {
- if (response?.code == 200 && response?.success == true) {
- const resData = response?.data
- await followUpAProjectSupplier(resData);
-
- if (roomType == '1') {
- history.push('/ProjectLayout/ZYuShen/Tender/supplier/SupplierClarificationList?roomType=1')
- } else {
- history.push('/ProjectLayout/Tender/supplier/SupplierClarificationList?roomType=2')
- }
- }
- })
- }
-
- return (
- <>
- onCancel()}
- width={800}
- centered
- footer={[
- ,
- ,
- ]}
- >
- 您有 {dateNum} 条未读澄清信息,当前只显示 6 条最近的澄清,请到 history.push('/SystemMessage/message')}> 这里 查看全部澄清信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )
-}
-
-export default filesManageComponents
-
diff --git a/src/pages/SystemMessage/message/components/questDetail.tsx b/src/pages/SystemMessage/message/components/questDetail.tsx
deleted file mode 100644
index 5309a90..0000000
--- a/src/pages/SystemMessage/message/components/questDetail.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-import { Form, Input, Modal } from "antd"
-import React, { useEffect } from "react"
-import pageBg from '../../../../images/answer/bg.png'
-
-const { TextArea } = Input;
-
-interface QuestDetailProps {
- modalVisible: boolean;
- questData: any;
- onCancel: () => void;
-}
-
-const layout = {
- labelCol: { span: 6 },
- wrapperCol: { span: 15 },
-};
-
-const QuestDetail: React.FC = (props) => {
- const { modalVisible, questData, onCancel } = props;
- const [form] = Form.useForm();
-
- useEffect(() => {
- Int();
- }, [questData?.id]);
-
- const Int = () => {
- form.setFieldsValue({
- ...questData
- })
- };
-
- const getFollow = async () => { // 跟进
- window.open(`/QuestAnswer/Answer?code=${questData?.id}`);
- }
-
- return (
- <>
- getFollow()}
- onCancel={() => onCancel()}
- width={800}
- centered
- okText='参与'
- cancelText='返回'
- >
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )
-}
-
-export default QuestDetail
diff --git a/src/pages/SystemMessage/message/index.tsx b/src/pages/SystemMessage/message/index.tsx
deleted file mode 100644
index b095af0..0000000
--- a/src/pages/SystemMessage/message/index.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-import React, { useRef, useState } from 'react';
-import ProTable, { ActionType } from '@ant-design/pro-table';
-import { describeSiteMsg, getQuestList } from './service';
-import { Button, Card, Spin } from 'antd';
-import MessageDetail from "./components/messageDetail"
-import QuestDetail from './components/questDetail';
-
-const FilesList: React.FC<{}> = () => {
- const checkRelationRef = useRef(); //操作数据后刷新列表
- const [messageDetail, setMessageDetail] = useState(false);
- const [messId, setMessId] = useState('');//公告id
- const [questVisible, setQuestVisible] = useState(false);//问卷visible
- const [questData, setQuestData] = useState({});//问卷数据
- const [loading, setLoading] = useState(false);//loading
-
- const columns: any = [
- {
- title: '序号',
- valueType: 'index',
- },
- {
- title: '标题',
- dataIndex: 'title',
- },
- {
- title: '创建时间',
- dataIndex: 'createtime',
- valueType: 'dateTime',
- },
- {
- title: '类型',
- dataIndex: 'templatetype',
- valueEnum: {
- 1: { text: '提疑消息' },
- 2: { text: '澄清消息' },
- 3: { text: '调查问卷' },
- 4: { text: '公告审批' },
- },
- },
- {
- title: '状态',
- dataIndex: 'authorizestate',
- initialValue: 'noRead',
- valueEnum: {
- 0: { text: '未读' },
- 1: { text: '已读' },
- },
- },
- {
- title: '操作',
- width: 100,
- fixed: 'right',
- render: (record: any) => {
- return (
- record.templatetype == '3' ? (
-
- ) : (
-
- )
- )
- }
- }
- ]
-
- const lookDetail = (id: any) => {
- setMessId(id)
- setMessageDetail(true)
- }
-
- const toParticipate = async (servicecode: any) => {
- const { questId } = JSON.parse(servicecode);
- setLoading(true);
- await getQuestList({ id: questId }).then(res => {
- if (res?.code == 200 && res?.success) {
- setQuestData(res?.data)
- setQuestVisible(true)
- }
- }).finally(() => {
- setLoading(false);
- });
- }
-
- return (
- <>
-
-
-
- await describeSiteMsg(params).then((res) => {
- if (res.code == 200) {
- return Promise.resolve({
- data: res.records,
- // success: res.success,
- total: res.total,
- current: res.current,
- });
- }
- return Promise.resolve({
- data: [],
- success: false,
- total: 0,
- current: 1,
- });
- })
- }
- pagination={{ defaultPageSize: 10, showSizeChanger: false }}//默认显示条数
- toolBarRender={false}
- />
-
-
- {messageDetail ? { setMessageDetail(false), checkRelationRef.current?.reload() }} modalVisible={messageDetail} /> : null}
- {questVisible ? { setQuestVisible(false), checkRelationRef.current?.reload() }} modalVisible={questVisible} /> : null}
- >
- );
-}
-
-export default FilesList;
\ No newline at end of file
diff --git a/src/pages/SystemMessage/message/service.ts b/src/pages/SystemMessage/message/service.ts
deleted file mode 100644
index b34f420..0000000
--- a/src/pages/SystemMessage/message/service.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import request from '@/utils/request';
-
-//系统消息列表
-export async function describeSiteMsg(data: any) {
- return request('/api/biz-service-ebtp-extend/v1/message/describeSiteMsg', {
- method: 'post',
- data: {
- pageNo: data?.current,
- pageSize: data?.pageSize
- },
- })
-}
-
-//新增角色列表
-export async function describeSiteMsgDetail(msId: any) {
- return request('/api/biz-service-ebtp-extend/v1/message/describeSiteMsgDetail/' + msId, {
- method: 'GET',
- })
-}
-
-// 系统消息已读
-export async function selectMsgRead(id: any) {
- return request('/api/biz-service-ebtp-extend/v1/message/selectMsgRead/' + id, {
- method: 'GET',
- })
-}
-
-/**
- * 根据id查询项目信息
- * @param id
- */
-export function getProjectById(id: any) {
- return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
-}
-
-/**
- * 查询问卷数据
- * @param params {id: string}
- */
-export async function getQuestList(params?: any) {
- return request(`/api/biz-service-ebtp-quest/mongdb/questForm/findQuestFormForUser`, {
- method: 'POST',
- requestType: 'form',
- data: params,
- });
-}
\ No newline at end of file
diff --git a/src/pages/Welcome.less b/src/pages/Welcome.less
deleted file mode 100644
index 914c40d..0000000
--- a/src/pages/Welcome.less
+++ /dev/null
@@ -1,8 +0,0 @@
-@import '~antd/lib/style/themes/default.less';
-
-.pre {
- margin: 12px 0;
- padding: 12px 20px;
- background: @input-bg;
- box-shadow: @card-shadow;
-}
diff --git a/src/pages/Welcome.tsx b/src/pages/Welcome.tsx
deleted file mode 100644
index 6147333..0000000
--- a/src/pages/Welcome.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import React from 'react';
-import { PageContainer } from '@ant-design/pro-layout';
-import { Card, Alert, Typography } from 'antd';
-import styles from './Welcome.less';
-
-const CodePreview: React.FC<{}> = ({ children }) => (
-
-
- {children}
-
-
-);
-
-export default (): React.ReactNode => (
-
-
-
-
- 高级表格{' '}
-
- 欢迎使用
-
-
- yarn add @ant-design/pro-table
-
- 高级布局{' '}
-
- 欢迎使用
-
-
- yarn add @ant-design/pro-layout
-
-
-);
diff --git a/src/pages/about/about.tsx b/src/pages/about/about.tsx
new file mode 100644
index 0000000..512ba1e
--- /dev/null
+++ b/src/pages/about/about.tsx
@@ -0,0 +1,5 @@
+import React from 'react';
+const AboutPage: React.FC = () => {
+ return <>AboutPage>;
+};
+export default AboutPage;
diff --git a/src/pages/announce/announce.tsx b/src/pages/announce/announce.tsx
new file mode 100644
index 0000000..2688954
--- /dev/null
+++ b/src/pages/announce/announce.tsx
@@ -0,0 +1,5 @@
+import React from 'react';
+const AnnouncePage: React.FC = () => {
+ return <>announcePage>;
+};
+export default AnnouncePage;
diff --git a/src/pages/document.ejs b/src/pages/document.ejs
index 77ef4b2..e2623cb 100644
--- a/src/pages/document.ejs
+++ b/src/pages/document.ejs
@@ -10,8 +10,8 @@
-->
-
-
+ -->
+ charset="utf-8">
diff --git a/src/pages/download/download.tsx b/src/pages/download/download.tsx
new file mode 100644
index 0000000..44cf919
--- /dev/null
+++ b/src/pages/download/download.tsx
@@ -0,0 +1,5 @@
+import React from 'react';
+const DownloadPage: React.FC = () => {
+ return <>DownloadPage>;
+};
+export default DownloadPage;
diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx
new file mode 100644
index 0000000..e31b061
--- /dev/null
+++ b/src/pages/index/index.tsx
@@ -0,0 +1,10 @@
+
+import React from 'react';
+const IndexPage:React.FC = () => {
+ return (
+ IndexPage
+ )
+}
+
+
+export default IndexPage;
\ No newline at end of file
diff --git a/src/pages/login.tsx b/src/pages/login.tsx
new file mode 100644
index 0000000..609c9f0
--- /dev/null
+++ b/src/pages/login.tsx
@@ -0,0 +1,10 @@
+
+import React from 'react';
+const LoginPage:React.FC = () => {
+ return (
+ LoginPage
+ )
+}
+
+
+export default LoginPage;
\ No newline at end of file
diff --git a/src/pages/notice/notice.tsx b/src/pages/notice/notice.tsx
new file mode 100644
index 0000000..4afabca
--- /dev/null
+++ b/src/pages/notice/notice.tsx
@@ -0,0 +1,5 @@
+import React from 'react';
+const NoticePage: React.FC = () => {
+ return <>NoticePage>;
+};
+export default NoticePage;
diff --git a/src/pages/policy/policy.tsx b/src/pages/policy/policy.tsx
new file mode 100644
index 0000000..519bb58
--- /dev/null
+++ b/src/pages/policy/policy.tsx
@@ -0,0 +1,5 @@
+import React from 'react';
+const PolicyPage: React.FC = () => {
+ return <>PolicyPage>;
+};
+export default PolicyPage;
diff --git a/src/utils/session.ts b/src/utils/session.ts
index 004c04b..e9a2d38 100644
--- a/src/utils/session.ts
+++ b/src/utils/session.ts
@@ -1,4 +1,3 @@
-import { getDefId as getDefById } from '@/pages/Project/ProjectManage/ProjectManager/ProjectDocumentation/service';
import { getRoomDataById, getSectionDataById } from '@/services/common';
import { message } from 'antd';
import { getProTypeCodeByBidMethodDict, getURLInformation, getUrlRelativePath, isEmpty } from './CommonUtils';
@@ -276,51 +275,7 @@ export interface projectDataItem {
returnURL?: string
}
-/**
- * 项目跟进项目经理
- * @param projectData
- */
-export function followUpAProjectManager(projectData: projectDataItem): Promise {
- removePurchaseCanOperate();
- return new Promise(resolve => {
- getDefById(projectData.id).then((res) => {
- if (res?.code == 200) {
- let proTypeCode = getURLInformation('proTypeCode');
- sessionStorage.setItem('proTypeCode', proTypeCode === null ? getProTypeCodeByBidMethodDict(projectData.bidMethodDict) : proTypeCode);
- sessionStorage.setItem('defId', JSON.stringify(res.data));
- sessionStorage.setItem('projectData', JSON.stringify(projectData));
- let returnURL = projectData.returnURL ? projectData.returnURL : getUrlRelativePath();
- sessionStorage.setItem('returnURL', returnURL);
- resolve(true);
- }
- })
- })
-}
-/**
- * 项目跟进供应商
- * @param projectData
- */
-export function followUpAProjectSupplier(projectData: projectDataItem): Promise {
- removePurchaseCanOperate();
- return new Promise(resolve => {
- if (projectData?.id == undefined || projectData?.id == null) {
- message.error("项目数据错误,无法获取流程,请联系管理员")
- } else {
- getDefById(projectData?.id).then((res) => {
- if (res?.code == 200) {
- let proTypeCode = getURLInformation('proTypeCode');
- sessionStorage.setItem('proTypeCode', proTypeCode === null ? getProTypeCodeByBidMethodDict(projectData.bidMethodDict) : proTypeCode);
- sessionStorage.setItem('defId', JSON.stringify(res.data));
- sessionStorage.setItem('projectData', JSON.stringify(projectData));
- let returnURL = projectData.returnURL ? projectData.returnURL : getUrlRelativePath();
- sessionStorage.setItem('returnURL', returnURL);
- resolve(true);
- }
- })
- }
- })
-}
/**
* 内拍项目跟进
@@ -373,7 +328,7 @@ export function removePurchaseCanOperate() {
}
/**
* 获取returnURL
- * @returns
+ * @returns
*/
export function getReturnURL() {
let returnURL = sessionStorage.getItem('returnURL');
@@ -382,7 +337,7 @@ export function getReturnURL() {
/**
* 获取getRoomReturnURL
- * @returns
+ * @returns
*/
export function getRoomReturnURL() {
let roomReturnURL = sessionStorage.getItem('roomReturnURL');
@@ -391,7 +346,7 @@ export function getRoomReturnURL() {
/**
* 获取当前评审室对应标段的报价类型(只能在评审室内使用)
- * @returns
+ * @returns
*/
export function getSectionQuot() {
let returnURL = sessionStorage.getItem('sectionQuot');
@@ -400,7 +355,7 @@ export function getSectionQuot() {
/**
* 根据评审室id获取标段的报价类型
- * @param roomId
+ * @param roomId
* @returns 1-%(优惠率,折扣率) 0-元(总价,单价)
*/
export async function getQuotationMethodById(roomId: any) {
@@ -424,9 +379,9 @@ export async function getQuotationMethodById(roomId: any) {
}
/**
* 存储角色信息
- * @param {总数据} userData
- * @param {权限} role
- * @param {当前角色} roleData
+ * @param {总数据} userData
+ * @param {权限} role
+ * @param {当前角色} roleData
*/
export function setUserData(userData: any, role: string, roleData: any): void {
sessionStorage.setItem('userData', JSON.stringify(userData));