zhangnuoyan
2024-08-25 efd620b121f27ba59a265402f2cec0ea0a5a1309
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<template>
    <div class="menus">
        <div><the-a-change :data="changeData" default-value="custom"></the-a-change></div>
        <div><a-time-picker type="time-range" style="width: 250px" /></div>
        <div>
            <the-a-select :data="['正序', '倒序']" placeholder="请选择" title="排序"></the-a-select>
        </div>
        <div>
            <the-a-select :data="['1号楼', '2号楼']" placeholder="请选择" title="出现地点"></the-a-select>
        </div>
        <div>
            <a-button type="primary">
                <template #icon>
                    <icon-search />
                </template>
                <template #default>搜索</template>
            </a-button>
        </div>
        <div>
            <a-button>
                <template #icon>
                    <icon-refresh />
                </template>
                <template #default>重置</template>
            </a-button>
        </div>
        <div class="buttons">
            <div>
                <icon-list size="20" />
            </div>
            <div class="button active">
                <icon-apps size="20" />
            </div>
        </div>
    </div>
    <the-travel-line date="2023-12-13" :data="data" />
    <div class="pagination">
        <a-pagination :total="50" show-total show-jumper show-page-size style="margin-top: 8px" />
    </div>
</template>
 
<script lang="ts" setup name="member-travel">
const changeData = reactive([
    {
        name: "1天",
        value: "1"
    },
    {
        name: "2天",
        value: "2"
    },
    {
        name: "自定义",
        value: "custom"
    }
]);
const data = reactive([
    {
        type: "in",
        title: "12:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "out",
        title: "13:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "in",
        title: "14:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "out",
        title: "15:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "in",
        title: "16:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "out",
        title: "17:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "in",
        title: "18:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "out",
        title: "19:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "in",
        title: "20:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "out",
        title: "21:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "in",
        title: "22:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "out",
        title: "23:00",
        content: "A小区2号楼1号梯4楼"
    },
    {
        type: "in",
        title: "24:00",
        content: "A小区2号楼1号梯4楼"
    }
]);
</script>
 
<style lang="scss" scoped>
.menus {
    display: flex;
    padding: 0 5px 20px 20px;
    > div {
        margin-right: 10px;
        &.buttons {
            display: flex;
            background: var(--color-fill-2);
            > div {
                width: 34px;
                height: 34px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                &.active {
                    background: #1057fd;
                    color: #fff;
                }
            }
        }
    }
}
.pagination {
    padding: 20px;
}
</style>