ALL - SEAO
This commit is contained in:
parent
4a483e1519
commit
34b7713744
@ -35,7 +35,7 @@ function LeftMenu() {
|
|||||||
const generalSubItems = [
|
const generalSubItems = [
|
||||||
getItem(t`Dashboard`, '/dashboard', <AppstoreOutlined />),
|
getItem(t`Dashboard`, '/dashboard', <AppstoreOutlined />),
|
||||||
getItem(t`Reports`, '/reports', <BarChartOutlined />),
|
getItem(t`Reports`, '/reports', <BarChartOutlined />),
|
||||||
getItem(t`Review`, '/reviews', <FileSearchOutlined />),
|
// getItem(t`Review`, '/reviews', <FileSearchOutlined />),
|
||||||
getItem(t`Inference`, '/inference', <RotateRightOutlined />),
|
getItem(t`Inference`, '/inference', <RotateRightOutlined />),
|
||||||
// getItem(t`Users`, '/users', <UsergroupAddOutlined />),
|
// getItem(t`Users`, '/users', <UsergroupAddOutlined />),
|
||||||
];
|
];
|
||||||
|
@ -34,7 +34,7 @@ const columns: TableColumnsType<DataType> = [
|
|||||||
return String(record.subSidiaries).toUpperCase();
|
return String(record.subSidiaries).toUpperCase();
|
||||||
},
|
},
|
||||||
filters: [
|
filters: [
|
||||||
{ text: 'ALL', value: 'ALL' },
|
{ text: 'SEAO', value: 'SEAO' },
|
||||||
{ text: 'SEAU', value: 'SEAU' },
|
{ text: 'SEAU', value: 'SEAU' },
|
||||||
{ text: 'SESP', value: 'SESP' },
|
{ text: 'SESP', value: 'SESP' },
|
||||||
{ text: 'SME', value: 'SME' },
|
{ text: 'SME', value: 'SME' },
|
||||||
|
@ -16,7 +16,7 @@ export interface ReportFormValues {
|
|||||||
const Dashboard = () => {
|
const Dashboard = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [duration, setDuration] = useState<string>('30d');
|
const [duration, setDuration] = useState<string>('30d');
|
||||||
const [subsidiary, setSubsidiary] = useState<string>('ALL');
|
const [subsidiary, setSubsidiary] = useState<string>('SEAO');
|
||||||
const [form] = Form.useForm<ReportFormValues>();
|
const [form] = Form.useForm<ReportFormValues>();
|
||||||
const { isLoading, data } = useOverViewReport({
|
const { isLoading, data } = useOverViewReport({
|
||||||
duration: duration,
|
duration: duration,
|
||||||
@ -93,6 +93,7 @@ const Dashboard = () => {
|
|||||||
style={{ width: 200 }}
|
style={{ width: 200 }}
|
||||||
options={[
|
options={[
|
||||||
{ value: 'ALL', label: 'ALL' },
|
{ value: 'ALL', label: 'ALL' },
|
||||||
|
{ value: 'SEAO', label: 'SEAO' },
|
||||||
{ value: 'SEAU', label: 'SEAU' },
|
{ value: 'SEAU', label: 'SEAU' },
|
||||||
{ value: 'SESP', label: 'SESP' },
|
{ value: 'SESP', label: 'SESP' },
|
||||||
{ value: 'SME', label: 'SME' },
|
{ value: 'SME', label: 'SME' },
|
||||||
@ -100,7 +101,7 @@ const Dashboard = () => {
|
|||||||
{ value: 'TSE', label: 'TSE' },
|
{ value: 'TSE', label: 'TSE' },
|
||||||
{ value: 'SEIN', label: 'SEIN' },
|
{ value: 'SEIN', label: 'SEIN' },
|
||||||
]}
|
]}
|
||||||
defaultValue='ALL'
|
defaultValue='SEAO'
|
||||||
value={subsidiary}
|
value={subsidiary}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
setSubsidiary(value);
|
setSubsidiary(value);
|
||||||
|
@ -112,7 +112,7 @@ const ReportsPage = () => {
|
|||||||
placeholder='Select a subsidiary'
|
placeholder='Select a subsidiary'
|
||||||
style={{ width: 200 }}
|
style={{ width: 200 }}
|
||||||
options={[
|
options={[
|
||||||
{ value: 'ALL', label: 'ALL' },
|
{ value: 'SEAO', label: 'SEAO' },
|
||||||
{ value: 'SEAU', label: 'SEAU' },
|
{ value: 'SEAU', label: 'SEAU' },
|
||||||
{ value: 'SESP', label: 'SESP' },
|
{ value: 'SESP', label: 'SESP' },
|
||||||
{ value: 'SME', label: 'SME' },
|
{ value: 'SME', label: 'SME' },
|
||||||
|
@ -280,7 +280,7 @@ const ReviewPage = () => {
|
|||||||
"", ""
|
"", ""
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const [filterSubsidiaries, setFilterSubsidiaries] = useState('ALL');
|
const [filterSubsidiaries, setFilterSubsidiaries] = useState('SEAO');
|
||||||
const [filterReviewState, setFilterReviewState] = useState('all');
|
const [filterReviewState, setFilterReviewState] = useState('all');
|
||||||
const [filterIncludeTests, setFilterIncludesTests] = useState('true');
|
const [filterIncludeTests, setFilterIncludesTests] = useState('true');
|
||||||
const [requests, setRequests] = useState([]);
|
const [requests, setRequests] = useState([]);
|
||||||
@ -701,7 +701,7 @@ const ReviewPage = () => {
|
|||||||
placeholder='Select a subsidiary'
|
placeholder='Select a subsidiary'
|
||||||
style={{ width: 200 }}
|
style={{ width: 200 }}
|
||||||
options={[
|
options={[
|
||||||
{ value: 'ALL', label: 'ALL' },
|
{ value: 'SEAO', label: 'SEAO' },
|
||||||
{ value: 'SEAU', label: 'SEAU' },
|
{ value: 'SEAU', label: 'SEAU' },
|
||||||
{ value: 'SESP', label: 'SESP' },
|
{ value: 'SESP', label: 'SESP' },
|
||||||
{ value: 'SME', label: 'SME' },
|
{ value: 'SME', label: 'SME' },
|
||||||
|
@ -123,7 +123,7 @@ export async function downloadReport(report_id: string, downloadFinishedCallback
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function downloadDashboardReport(duration='30d', subsidiary='ALL') {
|
export async function downloadDashboardReport(duration='30d', subsidiary='SEAO') {
|
||||||
try {
|
try {
|
||||||
const response = await API.get(`/ctel/overview_download_file/?duration=${duration}&subsidiary=${subsidiary}`, {
|
const response = await API.get(`/ctel/overview_download_file/?duration=${duration}&subsidiary=${subsidiary}`, {
|
||||||
responseType: 'blob', // Important
|
responseType: 'blob', // Important
|
||||||
|
Loading…
Reference in New Issue
Block a user