- 这就是一个主页{orders_store.webcode}
+ 这就是一个主页,什么也没写
);
}
diff --git a/src/views/Orders.js b/src/views/Orders.js
index e120816..725443d 100644
--- a/src/views/Orders.js
+++ b/src/views/Orders.js
@@ -1,7 +1,7 @@
import React, {Component} from 'react';
import {Row, Col, Button, Tabs, Table} from 'antd';
import {
- ContainerOutlined, CarryOutOutlined,
+ ContainerOutlined, CarryOutOutlined,BlockOutlined,
SmileOutlined, TagsOutlined, GlobalOutlined,
SearchOutlined,
} from '@ant-design/icons';
@@ -171,6 +171,10 @@ class Orders extends Component {
xAxis: {
type: 'timeCat',
},
+ point: {
+ size: 4,
+ shape: 'cicle',
+ },
label: {},//显示标签
legend: {
itemValue: {
@@ -232,6 +236,9 @@ class Orders extends Component {
{date_picker_store.start_date.format(config.DATE_FORMAT)}~{date_picker_store.end_date.format(config.DATE_FORMAT)}
,
+ 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 (
@@ -91,7 +137,7 @@ const Orders_sub = () => {
@@ -102,24 +148,54 @@ const Orders_sub = () => {
-
orders_store.onChange_Tabs(active_key)}>
- 访问路径} key="page">
+ orders_store.onChange_Tabs_sub(ordertype, ordertype_sub, active_key)}>
+ 订单内容} key="detail">
+ {date_picker_store.start_date.format(config.DATE_FORMAT)}~{date_picker_store.end_date.format(config.DATE_FORMAT)}
+ columns={table_data.columns} size="small" rowKey={record => record.COLI_ID}
+ expandable={{
+ expandedRowRender: (record) => (
+ {record.COLI_OrderDetailText}
+ ),
+ }}
+ />
+ {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) : ''}
record.COLI_ID}
+ expandable={{
+ expandedRowRender: (record) => (
+ {record.COLI_OrderDetailText}
+ ),
+ }}
+ />
+
+
+
+
+ 访问路径} key="page">
+
+
+ {date_picker_store.start_date.format(config.DATE_FORMAT)}~{date_picker_store.end_date.format(config.DATE_FORMAT)}
+ record.COLI_ID}
+ columns={table_data.columns} size="small"/>
+
+
+
+ {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) : ''}
+ record.COLI_ID}
columns={table_data2.columns} size="small"/>
-
+