|
|
|
@ -20,7 +20,7 @@ const Orders_sub = () => {
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
orders_store.getOrderCount_type(ordertype, ordertype_sub);
|
|
|
|
|
orders_store.getOrderCountByType_sub(ordertype, ordertype_sub, 'page');
|
|
|
|
|
orders_store.getOrderCountByType_sub(ordertype, ordertype_sub, orders_store.active_tab_key_sub);
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
const data_source = orders_store.orderCountData_type;
|
|
|
|
@ -55,8 +55,7 @@ const Orders_sub = () => {
|
|
|
|
|
{
|
|
|
|
|
title: '页面',
|
|
|
|
|
children: [{
|
|
|
|
|
title:
|
|
|
|
|
<div>{date_picker_store.start_date.format(config.DATE_FORMAT)}~{date_picker_store.end_date.format(config.DATE_FORMAT)}</div>,
|
|
|
|
|
title: '',
|
|
|
|
|
dataIndex: 'request_uri'
|
|
|
|
|
}],
|
|
|
|
|
},
|
|
|
|
@ -73,8 +72,55 @@ const Orders_sub = () => {
|
|
|
|
|
return result;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const table_data = format_data(orders_store.orderCountData_Form_sub.ordercount1);
|
|
|
|
|
const table_data2 = format_data(orders_store.orderCountData_Form_sub.ordercount2);
|
|
|
|
|
const format_data_detail = ((data) => {
|
|
|
|
|
let result = {dataSource: [], columns: []}
|
|
|
|
|
if (!comm.empty(data)) {
|
|
|
|
|
result.columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '订单号',
|
|
|
|
|
dataIndex: 'COLI_ID',
|
|
|
|
|
key: 'COLI_ID',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '网站',
|
|
|
|
|
dataIndex: 'COLI_WebCode',
|
|
|
|
|
key: 'COLI_WebCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'IP',
|
|
|
|
|
dataIndex: 'COLI_SenderIP',
|
|
|
|
|
key: 'COLI_SenderIP',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '预定时间',
|
|
|
|
|
dataIndex: 'COLI_ApplyDate',
|
|
|
|
|
key: 'COLI_ApplyDate',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '订单内容',
|
|
|
|
|
dataIndex: 'COLI_OrderDetailText',
|
|
|
|
|
key: 'COLI_OrderDetailText',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
},
|
|
|
|
|
Table.EXPAND_COLUMN,
|
|
|
|
|
];
|
|
|
|
|
result.dataSource = data;
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let table_data, table_data2 = format_data(false);
|
|
|
|
|
switch (orders_store.active_tab_key_sub) {
|
|
|
|
|
case "detail":
|
|
|
|
|
table_data = format_data_detail(orders_store.orderCountData_Form_sub.ordercount1);
|
|
|
|
|
table_data2 = format_data_detail(orders_store.orderCountData_Form_sub.ordercount2);
|
|
|
|
|
break;
|
|
|
|
|
case "page":
|
|
|
|
|
table_data = format_data(orders_store.orderCountData_Form_sub.ordercount1);
|
|
|
|
|
table_data2 = format_data(orders_store.orderCountData_Form_sub.ordercount2);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
@ -91,7 +137,7 @@ const Orders_sub = () => {
|
|
|
|
|
<Col span={2}>
|
|
|
|
|
<Button type="primary" icon={<SearchOutlined/>} loading={orders_store.loading} onClick={() => {
|
|
|
|
|
orders_store.getOrderCount_type(ordertype, ordertype_sub);
|
|
|
|
|
orders_store.getOrderCountByType_sub(ordertype, ordertype_sub, 'page');
|
|
|
|
|
orders_store.getOrderCountByType_sub(ordertype, ordertype_sub, orders_store.active_tab_key_sub);
|
|
|
|
|
}}>统计</Button>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
@ -102,24 +148,54 @@ const Orders_sub = () => {
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col className="gutter-row" span={24}>
|
|
|
|
|
<Tabs activeKey="page"
|
|
|
|
|
onChange={(active_key) => orders_store.onChange_Tabs(active_key)}>
|
|
|
|
|
<Tabs.TabPane tab={<span><ContainerOutlined/>访问路径</span>} key="page">
|
|
|
|
|
<Tabs activeKey={orders_store.active_tab_key_sub}
|
|
|
|
|
onChange={(active_key) => orders_store.onChange_Tabs_sub(ordertype, ordertype_sub, active_key)}>
|
|
|
|
|
<Tabs.TabPane tab={<span><ContainerOutlined/>订单内容</span>} key="detail">
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={11}>
|
|
|
|
|
{date_picker_store.start_date.format(config.DATE_FORMAT)}~{date_picker_store.end_date.format(config.DATE_FORMAT)}
|
|
|
|
|
<Table dataSource={table_data.dataSource}
|
|
|
|
|
columns={table_data.columns} size="small"/>
|
|
|
|
|
columns={table_data.columns} size="small" rowKey={record => record.COLI_ID}
|
|
|
|
|
expandable={{
|
|
|
|
|
expandedRowRender: (record) => (
|
|
|
|
|
<pre>{record.COLI_OrderDetailText}</pre>
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={2}></Col>
|
|
|
|
|
<Col span={11}>
|
|
|
|
|
{date_picker_store.start_date_cp ? date_picker_store.start_date_cp.format(config.DATE_FORMAT) + '~' + date_picker_store.end_date_cp.format(config.DATE_FORMAT) : ''}
|
|
|
|
|
<Table dataSource={table_data2.dataSource}
|
|
|
|
|
columns={table_data2.columns} size="small" rowKey={record => record.COLI_ID}
|
|
|
|
|
expandable={{
|
|
|
|
|
expandedRowRender: (record) => (
|
|
|
|
|
<pre>{record.COLI_OrderDetailText}</pre>
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
</Tabs.TabPane>
|
|
|
|
|
<Tabs.TabPane tab={<span><ContainerOutlined/>访问路径</span>} key="page">
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={11}>
|
|
|
|
|
{date_picker_store.start_date.format(config.DATE_FORMAT)}~{date_picker_store.end_date.format(config.DATE_FORMAT)}
|
|
|
|
|
<Table dataSource={table_data.dataSource} rowKey={record => record.COLI_ID}
|
|
|
|
|
columns={table_data.columns} size="small"/>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={2}></Col>
|
|
|
|
|
<Col span={11}>
|
|
|
|
|
{date_picker_store.start_date_cp ? date_picker_store.start_date_cp.format(config.DATE_FORMAT) + '~' + date_picker_store.end_date_cp.format(config.DATE_FORMAT) : ''}
|
|
|
|
|
<Table dataSource={table_data2.dataSource} rowKey={record => record.COLI_ID}
|
|
|
|
|
columns={table_data2.columns} size="small"/>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
</Tabs.TabPane>
|
|
|
|
|
|
|
|
|
|
</Tabs>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|