ui: fix Form/InsuranceTable on laptops
This commit is contained in:
parent
9ea4eeb6ce
commit
9a7e074863
@ -37,6 +37,7 @@ export const columns: ColumnsType<Insurance.RowValues> = [
|
||||
key: 'policyType',
|
||||
dataIndex: 'policyType',
|
||||
title: 'Тип полиса',
|
||||
width: '11%',
|
||||
},
|
||||
{
|
||||
key: 'insuranceCompany',
|
||||
@ -50,13 +51,11 @@ export const columns: ColumnsType<Insurance.RowValues> = [
|
||||
optionFilterProp="label"
|
||||
showSearch
|
||||
style={{
|
||||
width: '290px',
|
||||
maxWidth: '290px',
|
||||
width: '100%',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
},
|
||||
width: '290px',
|
||||
},
|
||||
{
|
||||
key: 'insured',
|
||||
@ -69,10 +68,12 @@ export const columns: ColumnsType<Insurance.RowValues> = [
|
||||
<Component
|
||||
style={{
|
||||
width: '100%',
|
||||
maxWidth: '100px',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
},
|
||||
width: '100px',
|
||||
},
|
||||
{
|
||||
key: 'insCost',
|
||||
@ -108,10 +109,12 @@ export const columns: ColumnsType<Insurance.RowValues> = [
|
||||
return (
|
||||
<Component
|
||||
style={{
|
||||
width: '100%',
|
||||
width: '150px',
|
||||
maxWidth: '150px',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
},
|
||||
width: '150px',
|
||||
},
|
||||
];
|
||||
|
||||
@ -21,6 +21,17 @@ const modifyDataLink = new ApolloLink((operation, forward) => {
|
||||
label: `${x.label} (${x.evo_start_production_year})`,
|
||||
}));
|
||||
}
|
||||
|
||||
if (operation.operationName === 'GetInsuranceCompanies') {
|
||||
response.data.accounts = response.data.accounts.map((x) => {
|
||||
const substring = x.label.match(/"(.+)"/u);
|
||||
|
||||
return {
|
||||
...x,
|
||||
label: substring ? substring[1].replaceAll('"', '').trim() : x.label,
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return response;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user