供应商信息,默认取登录用户ID
This commit is contained in:
@ -22,7 +22,8 @@ interface Props {
|
||||
record?: string;
|
||||
}
|
||||
const OtherAttachmentsTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
//语言切换
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
|
@ -23,7 +23,8 @@ interface Props {
|
||||
record?: string;
|
||||
}
|
||||
const BankInfoTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
//双语
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
|
@ -48,7 +48,8 @@ interface BaseInfoTabProps {
|
||||
}
|
||||
|
||||
const BaseInfoTab: React.FC<BaseInfoTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [registerInfo, setRegisterInfo] = useState<Request>();
|
||||
//变更说明与附件
|
||||
|
@ -20,7 +20,8 @@ interface Props {
|
||||
record?: string;
|
||||
}
|
||||
const ContactsInfoTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [data, setData] = useState<Contact[]>([]);
|
||||
const [pagination, setPagination] = useState<TablePaginationConfig>({
|
||||
|
@ -24,7 +24,8 @@ interface InvoiceTabProps {
|
||||
}
|
||||
|
||||
const InvoiceTab: React.FC<InvoiceTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
//语言切换
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
|
@ -39,7 +39,8 @@ interface BaseInfoTabProps {
|
||||
}
|
||||
|
||||
const BaseInfoTab: React.FC<BaseInfoTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [registerInfo, setRegisterInfo] = useState<Request>();
|
||||
const fetchData = async () => {
|
||||
|
@ -23,7 +23,8 @@ interface QualificationTabProps {
|
||||
}
|
||||
|
||||
const QualificationTab: React.FC<QualificationTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [data, setData] = useState<Qualification[]>([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
@ -19,7 +19,8 @@ interface CompanyInfoProps {
|
||||
const { TabPane } = Tabs;
|
||||
|
||||
const CompanyInfo: React.FC<CompanyInfoProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
// 切换tab
|
||||
const [subTab, setSubTab] = useState<string>('');
|
||||
|
@ -1,11 +1,11 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
|
||||
|
||||
const userId = sessionStorage.getItem('userId')
|
||||
/**
|
||||
* 供应商基本信息
|
||||
*/
|
||||
export const coscoSupplierBase = (id: string) => request.get(`/coscoSupplierBase/${id? id: '1942784565717565440'}`);
|
||||
export const coscoSupplierBase = (id: string) => request.get(`/coscoSupplierBase/${id? id: userId}`);
|
||||
|
||||
/**
|
||||
* 资质分页列表
|
||||
|
@ -2,6 +2,8 @@ import React from 'react';
|
||||
import { Link, useIntl } from 'umi';
|
||||
const User: React.FC = (props) => {
|
||||
const intl = useIntl();
|
||||
|
||||
|
||||
return (
|
||||
<div className="user">
|
||||
<Link to={'/login'}>{intl.formatMessage({ id: '登录/注册' })}</Link>
|
||||
|
Reference in New Issue
Block a user