提交 b9eb079c 编写于 作者: nengyuangzhang's avatar nengyuangzhang

Merge branch 'develop'

export const periodTypeOptions = [
{ value: 'yearly', label: 'Yearly' },
{ value: 'monthly', label: 'Monthly' },
{ value: 'weekly', label: 'Weekly' },
{ value: 'daily', label: 'Daily' },
{ value: 'hourly', label: 'Hourly' }];
\ No newline at end of file
{ value: 'yearly', label: 'Yearly' },
{ value: 'monthly', label: 'Monthly' },
{ value: 'weekly', label: 'Weekly' },
{ value: 'daily', label: 'Daily' },
{ value: 'hourly', label: 'Hourly' }
];
......@@ -22,7 +22,7 @@ const getOption = (data, isDark) => {
transitionDuration: 0,
borderColor: grays['300'],
borderWidth: 1,
formatter: function (params) {
formatter: function(params) {
return `<strong>${params.data.name}:</strong> ${params.value} (${params.percent}%)`;
}
},
......
......@@ -4,27 +4,26 @@ import FalconCardHeader from '../../common/FalconCardHeader';
import { Card, CardBody, Row, Col } from 'reactstrap';
import { withTranslation } from 'react-i18next';
const defaultSorted = [{
dataField: 'name',
order: 'asc'
}];
const defaultSorted = [
{
dataField: 'name',
order: 'asc'
}
];
const WorkingDaysConsumptionTable = ({ data, columns, t }) => {
return (
<Fragment>
<Card>
<FalconCardHeader title={ t('Working Days') + ' & ' + t('Non Working Days')} className="bg-light" titleClass="text-lightSlateGray mb-0" />
<FalconCardHeader
title={t('Working Days') + ' & ' + t('Non Working Days')}
className="bg-light"
titleClass="text-lightSlateGray mb-0"
/>
<CardBody>
<Row>
<Col>
<BootstrapTable
bootstrap4
keyField="name"
data={data}
columns={columns}
defaultSorted={defaultSorted}
/>
<BootstrapTable bootstrap4 keyField="name" data={data} columns={columns} defaultSorted={defaultSorted} />
</Col>
</Row>
</CardBody>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册