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