#
luxiaotao1123
2024-09-09 b12bb2d9e4922c513185ca3bb480da1b54954304
#
3个文件已修改
80 ■■■■■ 已修改文件
zy-acs-flow/src/i18n/en.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/zh.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/user/UserListAside.jsx 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/en.js
@@ -46,6 +46,15 @@
            scope: 'Assign',
        },
    },
    filters: {
        lastCreated: 'Last created',
        today: 'Today',
        thisWeek: 'This week',
        lastWeek: 'Last week',
        thisMonth: 'This month',
        lastMonth: 'Last month',
        earlier: 'Earlier...',
    },
    create: {
        title: 'Create'
    },
zy-acs-flow/src/i18n/zh.js
@@ -46,6 +46,15 @@
            scope: '权限',
        },
    },
    filters: {
        lastCreated: '最近创建',
        today: '今天',
        thisWeek: '本周',
        lastWeek: '上周',
        thisMonth: '本月',
        lastMonth: '上月',
        earlier: '更早...',
    },
    create: {
        title: '添加'
    },
zy-acs-flow/src/page/user/UserListAside.jsx
@@ -11,9 +11,10 @@
import { styled } from '@mui/material/styles';
import { DEFAULT_THEME_NAME } from '@/config/setting';
import * as Common from '@/utils/common';
import MailIcon from '@mui/icons-material/MailOutline'
import WcIcon from '@mui/icons-material/Wc';
import BookmarkIcon from '@mui/icons-material/BookmarkBorder';
import CategoryIcon from '@mui/icons-material/LocalOffer';
import AccessTimeIcon from '@mui/icons-material/AccessTime';
import {
    endOfYesterday,
    startOfWeek,
@@ -24,8 +25,7 @@
const UserListAside = (props) => {
    const theme = useTheme();
    const [themeName] = useStore('themeName', DEFAULT_THEME_NAME);
    console.log()
    console.log(endOfYesterday().toISOString())
    const isSelected = (value, filters) => {
        const categories = filters.categories || [];
@@ -61,12 +61,60 @@
            >
                <CardContent>
                    <SavedQueriesList icon={<BookmarkIcon />} />
                    <FilterLiveSearch source='condition' hiddenLabel />
                    <FilterList label="aa" icon={<MailIcon />}>
                        <FilterListItem label="Yes" value={{ status: '1' }} />
                        <FilterListItem label="No" value={{ status: '0' }} />
                    <FilterList
                        label="filters.lastCreated"
                        icon={<AccessTimeIcon />}
                    >
                        <FilterListItem
                            label="filters.today"
                            value={{
                                timeStart: endOfYesterday().toISOString(),
                                timeEnd: undefined,
                            }}
                        />
                        <FilterListItem
                            label="filters.thisWeek"
                            value={{
                                timeStart: startOfWeek(new Date()).toISOString(),
                                timeEnd: undefined,
                            }}
                        />
                        <FilterListItem
                            label="filters.lastWeek"
                            value={{
                                timeStart: subWeeks(startOfWeek(new Date()), 1).toISOString(),
                                timeEnd: startOfWeek(new Date()).toISOString(),
                            }}
                        />
                        <FilterListItem
                            label="filters.thisMonth"
                            value={{
                                timeStart: startOfMonth(new Date()).toISOString(),
                                timeEnd: undefined,
                            }}
                        />
                        <FilterListItem
                            label="filters.lastMonth"
                            value={{
                                timeStart: subMonths(startOfMonth(new Date()), 1).toISOString(),
                                timeEnd: startOfMonth(new Date()).toISOString(),
                            }}
                        />
                        <FilterListItem
                            label="filters.earlier"
                            value={{
                                timeStart: undefined,
                                timeEnd: subMonths(startOfMonth(new Date()), 1).toISOString(),
                            }}
                        />
                    </FilterList>
                    <FilterList label="table.field.user.sex" icon={<WcIcon />}>
                        <FilterListItem label="Male" value={{ sex: '1' }} />
                        <FilterListItem label="Female" value={{ sex: '2' }} />
                        <FilterListItem label="They" value={{ sex: '0' }} />
                    </FilterList>
                    <FilterList label="Categories" icon={<CategoryIcon />}>