|
@@ -8,6 +8,7 @@ import {
|
|
getFileUrl,
|
|
getFileUrl,
|
|
} from '@/services/sagacare_service/infomation';
|
|
} from '@/services/sagacare_service/infomation';
|
|
export default () => {
|
|
export default () => {
|
|
|
|
+ const { initialState } = useModel('@@initialState');
|
|
const fileInputRef = useRef();
|
|
const fileInputRef = useRef();
|
|
const [englishAbbreviation, setEnglishAbbreviation] = useState('');
|
|
const [englishAbbreviation, setEnglishAbbreviation] = useState('');
|
|
const [abbreviation, setAbbreviation] = useState('');
|
|
const [abbreviation, setAbbreviation] = useState('');
|
|
@@ -33,7 +34,13 @@ export default () => {
|
|
[abbreviation, englishAbbreviation, intro, logoUrl],
|
|
[abbreviation, englishAbbreviation, intro, logoUrl],
|
|
);
|
|
);
|
|
function getData() {
|
|
function getData() {
|
|
- companyInfo().then((res) => {
|
|
|
|
|
|
+ let params = {
|
|
|
|
+ criteria: {
|
|
|
|
+ projectId: initialState?.currentUser?.projectId,
|
|
|
|
+ companyId: initialState?.currentUser?.companyId,
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ companyInfo(params).then((res) => {
|
|
const resData = res.data || {};
|
|
const resData = res.data || {};
|
|
setEnglishAbbreviation(resData.englishAbbreviation || '');
|
|
setEnglishAbbreviation(resData.englishAbbreviation || '');
|
|
setAbbreviation(resData.abbreviation || '');
|
|
setAbbreviation(resData.abbreviation || '');
|
|
@@ -50,6 +57,7 @@ export default () => {
|
|
englishAbbreviation: englishAbbreviation,
|
|
englishAbbreviation: englishAbbreviation,
|
|
intro: intro,
|
|
intro: intro,
|
|
logoUrl: logoUrl,
|
|
logoUrl: logoUrl,
|
|
|
|
+ companyId: initialState?.currentUser?.companyId,
|
|
};
|
|
};
|
|
params[key] = value;
|
|
params[key] = value;
|
|
companyUpdate(params).then((res) => {
|
|
companyUpdate(params).then((res) => {
|