feat:新增访问路径

main
ybc 2 weeks ago
parent cb08973db4
commit ca9aab3e3a

@ -171,6 +171,12 @@ const Orders_sub = () => {
return result; return result;
}; };
//
const addLineBreaksAtCommas = (text) => {
if (!text) return '';
return text.replace(//g, '\n').replace(/,/g, ',\n').replace(//g, '\n').replace(/;/g, ';\n');
};
const table_data = format_data_detail(orders_store.orderCountData_Form_sub.ordercount1); const table_data = format_data_detail(orders_store.orderCountData_Form_sub.ordercount1);
const table_data2 = format_data_detail(orders_store.orderCountData_Form_sub.ordercount2); const table_data2 = format_data_detail(orders_store.orderCountData_Form_sub.ordercount2);
const table_data_p = format_data(orders_store.orderCountData_Form_sub.ordercount1); const table_data_p = format_data(orders_store.orderCountData_Form_sub.ordercount1);
@ -192,7 +198,7 @@ const Orders_sub = () => {
rowKey={record => record.key} rowKey={record => record.key}
expandable={{ expandable={{
expandedRowRender: record => ( expandedRowRender: record => (
<pre> <pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word', fontSize: '16px' }}>
<Divider orientation="left" plain> <Divider orientation="left" plain>
客户需求 客户需求
</Divider> </Divider>
@ -200,7 +206,7 @@ const Orders_sub = () => {
<Divider orientation="left" plain> <Divider orientation="left" plain>
订单内容 订单内容
</Divider> </Divider>
{record.COLI_OrderDetailText} {addLineBreaksAtCommas(decodeURIComponent(record.COLI_OrderDetailText.replace(/&amp;/g, "&")))}
</pre> </pre>
), ),
}} }}
@ -224,7 +230,7 @@ const Orders_sub = () => {
size="small" size="small"
rowKey={record => record.key} rowKey={record => record.key}
expandable={{ expandable={{
expandedRowRender: record => <pre>{record.COLI_OrderDetailText}</pre>, expandedRowRender: record => <pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word', fontSize: '16px' }}>{record.COLI_OrderDetailText}</pre>,
}} }}
/> />
</Col> </Col>

Loading…
Cancel
Save