|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import React, { Component } from "react";
|
|
|
|
|
import { Row, Col, Tabs, Table, Divider, Spin } from "antd";
|
|
|
|
|
import { ContainerOutlined, BlockOutlined, SmileOutlined, TagsOutlined, GlobalOutlined, FullscreenOutlined, DingtalkOutlined, CarryOutOutlined, CoffeeOutlined, ClockCircleOutlined, HeartOutlined, IdcardOutlined, ContactsOutlined } from "@ant-design/icons";
|
|
|
|
|
import { ContainerOutlined, BlockOutlined, SmileOutlined, TagsOutlined, GlobalOutlined, FullscreenOutlined, DingtalkOutlined, CarryOutOutlined, CoffeeOutlined, ClockCircleOutlined, HeartOutlined, IdcardOutlined, ContactsOutlined, GoogleOutlined, GooglePlusOutlined } from "@ant-design/icons";
|
|
|
|
|
import { stores_Context } from "../config";
|
|
|
|
|
import { Line, Pie } from "@ant-design/charts";
|
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
@ -254,8 +254,8 @@ class Orders extends Component {
|
|
|
|
|
const table_data = orders_store.orderCountData_Form ? this.format_data(orders_store.orderCountData_Form) : [];
|
|
|
|
|
const data_source = orders_store.orderCountData ? orders_store.orderCountData : [];
|
|
|
|
|
const avg_line_y = Math.round(orders_store.avgLine1);
|
|
|
|
|
const pie_data = comm.empty(orders_store.orderCountData_Form) ? [] : orders_store.orderCountData_Form.ordercount1; // 饼图的显示
|
|
|
|
|
const pie_data2 = comm.empty(orders_store.orderCountData_Form) ? [] : orders_store.orderCountData_Form.ordercount2;
|
|
|
|
|
const pie_data = comm.empty(orders_store.orderCountData_Form) ? [] : orders_store.orderCountData_Form.ordercount1.filter(ele => ele.OrderTypeSN); // 饼图的显示
|
|
|
|
|
const pie_data2 = comm.empty(orders_store.orderCountData_Form) ? [] : orders_store.orderCountData_Form.ordercount2.filter(ele => ele.OrderTypeSN);
|
|
|
|
|
|
|
|
|
|
const config = {
|
|
|
|
|
data: data_source,
|
|
|
|
|
@ -480,6 +480,7 @@ class Orders extends Component {
|
|
|
|
|
{key: 'FoodRequirement',label: (<span><CoffeeOutlined />饮食要求</span>),},
|
|
|
|
|
{key: 'hobbies',label: (<span><HeartOutlined/>兴趣爱好</span>),},
|
|
|
|
|
{key: 'ages',label: (<span><IdcardOutlined/>年龄段</span>),},
|
|
|
|
|
{key: 'campaign',label: (<span><GooglePlusOutlined />PPC广告</span>),},
|
|
|
|
|
].map((ele) => {
|
|
|
|
|
return {
|
|
|
|
|
...ele,
|
|
|
|
|
|