@opendesign-plus-test/components 0.0.1-rc.26 → 0.0.1-rc.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +269 -197
- package/dist/components/OCookieNotice.vue.d.ts +3 -2
- package/dist/components/OFooter.vue.d.ts +22 -1
- package/dist/components/OHeaderUser.vue.d.ts +0 -2
- package/dist/components/activity/OMyActivityCalendar.vue.d.ts +6 -6
- package/dist/components/activity/index.d.ts +3 -3
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +6 -3
- package/dist/components/{OHeader.vue.d.ts → header/OHeader.vue.d.ts} +2 -1
- package/dist/components/{OHeaderMoblie.vue.d.ts → header/OHeaderMoblie.vue.d.ts} +2 -2
- package/dist/components/header/components/HeaderContent.vue.d.ts +6 -0
- package/dist/components/header/components/HeaderNav.vue.d.ts +7 -0
- package/dist/components/header/components/HeaderNavMoblie.vue.d.ts +17 -0
- package/dist/components/header/components/HeaderUbmcNav.vue.d.ts +2 -0
- package/dist/components/header/index.d.ts +22 -0
- package/dist/components/meeting/OMeetingCalendar.vue.d.ts +1 -6
- package/dist/components/meeting/OMeetingForm.vue.d.ts +3 -15
- package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +6 -6
- package/dist/components/meeting/types.d.ts +14 -5
- package/dist/components/meeting/utils.d.ts +1 -0
- package/dist/components.cjs.js +46 -46
- package/dist/components.css +1 -1
- package/dist/components.es.js +17909 -17780
- package/dist/index.d.ts +2 -3
- package/package.json +1 -1
- package/src/assets/svg-icons/icon-chevron-down.svg +1 -1
- package/src/components/OCookieNotice.vue +270 -118
- package/src/components/OFooter.vue +11 -1
- package/src/components/OHeaderUser.vue +14 -81
- package/src/components/OSourceCode.vue +1 -1
- package/src/components/activity/OActivityApproval.vue +60 -26
- package/src/components/activity/OActivityForm.vue +2 -5
- package/src/components/activity/OMyActivityCalendar.vue +80 -73
- package/src/components/common/MoreText.vue +3 -2
- package/src/components/common/ThFilter.vue +7 -3
- package/src/components/element-plus/OElCookieNotice.vue +306 -115
- package/src/components/events/OEventsApply.vue +16 -0
- package/src/components/events/OEventsList.vue +3 -0
- package/src/components/header/OHeader.vue +175 -0
- package/src/components/{OHeaderMoblie.vue → header/OHeaderMoblie.vue} +6 -3
- package/src/components/{common/HeaderEulerNav.vue → header/components/HeaderContent.vue} +375 -551
- package/src/components/header/components/HeaderNav.vue +280 -0
- package/src/components/{common → header/components}/HeaderNavMoblie.vue +20 -18
- package/src/components/{common → header/components}/HeaderUbmcNav.vue +6 -63
- package/src/components/header/index.ts +16 -0
- package/src/components/meeting/OMeetingCalendar.vue +19 -12
- package/src/components/meeting/OMeetingForm.vue +20 -27
- package/src/components/meeting/OMeetingPlayback.vue +1 -1
- package/src/components/meeting/OMyMeetingCalendar.vue +36 -36
- package/src/components/meeting/components/OMeetingCalendarList.vue +12 -9
- package/src/components/meeting/components/OMeetingDetail.vue +38 -17
- package/src/components/meeting/types.ts +13 -5
- package/src/components/meeting/utils.ts +18 -1
- package/src/i18n/en.ts +3 -1
- package/src/i18n/zh.ts +4 -2
- package/src/index.ts +2 -5
- package/dist/components/activity/data.d.ts +0 -51
- package/src/components/OHeader.vue +0 -97
- package/src/components/activity/data.ts +0 -365
- package/src/components/meeting/components/OMyCalendarWrapper.vue +0 -160
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import ContentWrapper from './common/ContentWrapper.vue';
|
|
3
|
-
import HeaderEulerNav from './common/HeaderEulerNav.vue';
|
|
4
|
-
import HeaderUbmcNav from './common/HeaderUbmcNav.vue';
|
|
5
|
-
|
|
6
|
-
export interface OHeaderT {
|
|
7
|
-
(e: 'go-home'): void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const emit = defineEmits<OHeaderT>();
|
|
11
|
-
|
|
12
|
-
const props = defineProps({
|
|
13
|
-
logo: undefined,
|
|
14
|
-
lang: undefined,
|
|
15
|
-
community: undefined,
|
|
16
|
-
navData: undefined,
|
|
17
|
-
bgLeft: undefined,
|
|
18
|
-
bgRight: undefined,
|
|
19
|
-
tagMap: undefined,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const goHome = () => {
|
|
23
|
-
emit('go-home');
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<template>
|
|
28
|
-
<div class="header">
|
|
29
|
-
<ContentWrapper class="header-wrap">
|
|
30
|
-
<!-- logo -->
|
|
31
|
-
<div class="header-logo" @click="goHome">
|
|
32
|
-
<slot name="logo">
|
|
33
|
-
<img v-if="props.logo" class="logo" alt="logo" :src="props.logo" />
|
|
34
|
-
</slot>
|
|
35
|
-
</div>
|
|
36
|
-
<!-- openEuler nav -->
|
|
37
|
-
<div v-if="props.community === 'openEuler'" class="header-nav">
|
|
38
|
-
<slot name="nav">
|
|
39
|
-
<HeaderEulerNav v-if="props.navData" :nav-data="props.navData" :bg-left="props.bgLeft" :bg-right="props.bgRight" />
|
|
40
|
-
</slot>
|
|
41
|
-
</div>
|
|
42
|
-
<!-- openUBMC nav -->
|
|
43
|
-
<div v-if="props.community === 'openUBMC'" class="header-content">
|
|
44
|
-
<slot name="nav">
|
|
45
|
-
<HeaderUbmcNav v-if="props.navData" :nav-data="props.navData" :has-perm="true" :tag-map="tagMap" />
|
|
46
|
-
</slot>
|
|
47
|
-
</div>
|
|
48
|
-
<!-- toolbar -->
|
|
49
|
-
<div v-if="$slots.toolbar" class="header-toolbar">
|
|
50
|
-
<slot name="toolbar"></slot>
|
|
51
|
-
</div>
|
|
52
|
-
</ContentWrapper>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<style lang="scss" scoped>
|
|
57
|
-
.header {
|
|
58
|
-
background-color: var(--o-color-fill2);
|
|
59
|
-
position: relative;
|
|
60
|
-
z-index: 999;
|
|
61
|
-
box-shadow: 0 3px 9px 0 rgba(0, 18, 85, 0.08);
|
|
62
|
-
backdrop-filter: blur(5px);
|
|
63
|
-
--o-header-height: 72px;
|
|
64
|
-
}
|
|
65
|
-
.header-wrap {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
height: var(--o-header-height);
|
|
69
|
-
}
|
|
70
|
-
.header-logo {
|
|
71
|
-
height: 100%;
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
margin-right: 24px;
|
|
76
|
-
flex-shrink: 0;
|
|
77
|
-
@include respond-to('<=pad_v') {
|
|
78
|
-
width: 100%;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.logo {
|
|
82
|
-
height: 32px;
|
|
83
|
-
}
|
|
84
|
-
.header-nav {
|
|
85
|
-
flex: 1;
|
|
86
|
-
height: 100%;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
}
|
|
89
|
-
.header-content {
|
|
90
|
-
flex: 1;
|
|
91
|
-
min-width: 0;
|
|
92
|
-
height: 100%;
|
|
93
|
-
}
|
|
94
|
-
.header-toolbar {
|
|
95
|
-
height: 100%;
|
|
96
|
-
}
|
|
97
|
-
</style>
|
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
// 活动审批列表
|
|
2
|
-
export const approveListRes = {
|
|
3
|
-
'total': 9,
|
|
4
|
-
'page': '1',
|
|
5
|
-
'size': 10,
|
|
6
|
-
'data': [
|
|
7
|
-
{
|
|
8
|
-
'id': 84,
|
|
9
|
-
'title': 'TEST',
|
|
10
|
-
'start_date': '2025-12-17',
|
|
11
|
-
'end_date': '2025-12-19',
|
|
12
|
-
'activity_type': 2,
|
|
13
|
-
'synopsis': '',
|
|
14
|
-
'activity_mode': 1,
|
|
15
|
-
'status': 2,
|
|
16
|
-
'create_time': '2025-12-17T10:38:45.555722',
|
|
17
|
-
'is_delete': 0,
|
|
18
|
-
'address': '',
|
|
19
|
-
'sponsor': 'hid_2o--qyykhbvm5as',
|
|
20
|
-
'start': '10:42',
|
|
21
|
-
'end': '13:00',
|
|
22
|
-
'register_url': 'https://ascend.test.osinfra.cn/',
|
|
23
|
-
'content_url': 'https://ascend.test.osinfra.cn/',
|
|
24
|
-
'update_activity_id': null,
|
|
25
|
-
'register_end_date': '2025-12-17 00:00',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
'id': 83,
|
|
29
|
-
'title': '广州活动1',
|
|
30
|
-
'start_date': '2025-12-18',
|
|
31
|
-
'end_date': '2025-12-18',
|
|
32
|
-
'activity_type': 1,
|
|
33
|
-
'synopsis': '',
|
|
34
|
-
'activity_mode': 1,
|
|
35
|
-
'status': 2,
|
|
36
|
-
'create_time': '2025-12-17T09:46:46.285323',
|
|
37
|
-
'is_delete': 0,
|
|
38
|
-
'address': '广州',
|
|
39
|
-
'sponsor': 'hid_yjn7z1w59d8rln9',
|
|
40
|
-
'start': '09:00',
|
|
41
|
-
'end': '21:00',
|
|
42
|
-
'register_url': 'https://www.openeuler.org/zh/compatibility/',
|
|
43
|
-
'content_url': 'https://www.openeuler.org/zh/compatibility/',
|
|
44
|
-
'update_activity_id': null,
|
|
45
|
-
'register_end_date': '2025-12-18 00:00',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
'id': 69,
|
|
49
|
-
'title': '活动名称实验',
|
|
50
|
-
'start_date': '2025-12-19',
|
|
51
|
-
'end_date': '2025-12-21',
|
|
52
|
-
'activity_type': 2,
|
|
53
|
-
'synopsis': '',
|
|
54
|
-
'activity_mode': 1,
|
|
55
|
-
'status': 2,
|
|
56
|
-
'create_time': '2025-12-16T15:33:26.344198',
|
|
57
|
-
'is_delete': 0,
|
|
58
|
-
'address': '',
|
|
59
|
-
'sponsor': 'hid_yjn7z1w59d8rln9',
|
|
60
|
-
'start': '09:00',
|
|
61
|
-
'end': '21:00',
|
|
62
|
-
'register_url': 'https://www.openeuler.org/zh/projects/',
|
|
63
|
-
'content_url': 'https://www.openeuler.org/zh/projects/',
|
|
64
|
-
'update_activity_id': null,
|
|
65
|
-
'register_end_date': '2025-12-17 00:00',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
'id': 51,
|
|
69
|
-
'title': '123',
|
|
70
|
-
'start_date': '2025-12-19',
|
|
71
|
-
'end_date': '2025-12-20',
|
|
72
|
-
'activity_type': 1,
|
|
73
|
-
'synopsis': '',
|
|
74
|
-
'activity_mode': 1,
|
|
75
|
-
'status': 2,
|
|
76
|
-
'create_time': '2025-12-15T19:20:17.205518',
|
|
77
|
-
'is_delete': 0,
|
|
78
|
-
'address': 'test',
|
|
79
|
-
'sponsor': 'hid_2o--qyykhbvm5as',
|
|
80
|
-
'start': '08:00',
|
|
81
|
-
'end': '18:00',
|
|
82
|
-
'register_url': 'https://cann-website.ascend.test.osinfra.cn/cann/my/approval',
|
|
83
|
-
'content_url': 'https://cann-website.ascend.test.osinfra.cn/cann/my/approval',
|
|
84
|
-
'update_activity_id': null,
|
|
85
|
-
'register_end_date': '2025-12-16 00:00',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
'id': 50,
|
|
89
|
-
'title': '123',
|
|
90
|
-
'start_date': '2025-12-20',
|
|
91
|
-
'end_date': '2025-12-20',
|
|
92
|
-
'activity_type': 2,
|
|
93
|
-
'synopsis': '',
|
|
94
|
-
'activity_mode': 1,
|
|
95
|
-
'status': 2,
|
|
96
|
-
'create_time': '2025-12-15T19:10:39.170137',
|
|
97
|
-
'is_delete': 0,
|
|
98
|
-
'address': '',
|
|
99
|
-
'sponsor': 'hid_2o--qyykhbvm5as',
|
|
100
|
-
'start': '08:00',
|
|
101
|
-
'end': '18:00',
|
|
102
|
-
'register_url': 'https://element-plus.org/zh-CN/component/datetime-picker',
|
|
103
|
-
'content_url': 'https://element-plus.org/zh-CN/component/datetime-picker',
|
|
104
|
-
'update_activity_id': null,
|
|
105
|
-
'register_end_date': '2025-12-18 00:00',
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
'id': 32,
|
|
109
|
-
'title': 'test2',
|
|
110
|
-
'start_date': '2025-12-12',
|
|
111
|
-
'end_date': '2025-12-16',
|
|
112
|
-
'activity_type': 2,
|
|
113
|
-
'synopsis': 'test2',
|
|
114
|
-
'activity_mode': 1,
|
|
115
|
-
'status': 2,
|
|
116
|
-
'create_time': '2025-12-12T17:31:24.304618',
|
|
117
|
-
'is_delete': 0,
|
|
118
|
-
'address': '',
|
|
119
|
-
'sponsor': 'hid_u18tcgmw-eue4fq',
|
|
120
|
-
'start': '18:30',
|
|
121
|
-
'end': '17:30',
|
|
122
|
-
'register_url': 'https://cann-website.ascend.test.osinfra.cn/cann/my/create-activity',
|
|
123
|
-
'content_url': 'https://cann-website.ascend.test.osinfra.cn/cann/my/create-activity',
|
|
124
|
-
'update_activity_id': null,
|
|
125
|
-
'register_end_date': '2025-12-13 00:00',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
'id': 31,
|
|
129
|
-
'title': 'test',
|
|
130
|
-
'start_date': '2025-12-13',
|
|
131
|
-
'end_date': '2025-12-16',
|
|
132
|
-
'activity_type': 2,
|
|
133
|
-
'synopsis': 'test',
|
|
134
|
-
'activity_mode': 1,
|
|
135
|
-
'status': 2,
|
|
136
|
-
'create_time': '2025-12-12T17:24:28.092587',
|
|
137
|
-
'is_delete': 0,
|
|
138
|
-
'address': '',
|
|
139
|
-
'sponsor': 'hid_u18tcgmw-eue4fq',
|
|
140
|
-
'start': '12:00',
|
|
141
|
-
'end': '08:00',
|
|
142
|
-
'register_url': 'https://huawei.com',
|
|
143
|
-
'content_url': 'https://baidu.com',
|
|
144
|
-
'update_activity_id': null,
|
|
145
|
-
'register_end_date': '2025-12-12 00:00',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
'id': 24,
|
|
149
|
-
'title': '1234',
|
|
150
|
-
'start_date': '2025-12-23',
|
|
151
|
-
'end_date': '2025-12-24',
|
|
152
|
-
'activity_type': 1,
|
|
153
|
-
'synopsis': '1234',
|
|
154
|
-
'activity_mode': 1,
|
|
155
|
-
'status': 2,
|
|
156
|
-
'create_time': '2025-12-12T15:02:37.358253',
|
|
157
|
-
'is_delete': 0,
|
|
158
|
-
'address': 'shanghai',
|
|
159
|
-
'sponsor': 'hid_2o--qyykhbvm5as',
|
|
160
|
-
'start': '15:00',
|
|
161
|
-
'end': '15:00',
|
|
162
|
-
'register_url': 'https://www.openeuler.org/zh/',
|
|
163
|
-
'content_url': 'https://www.openeuler.org/zh/',
|
|
164
|
-
'update_activity_id': null,
|
|
165
|
-
'register_end_date': '2025-12-20 00:00',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
'id': 23,
|
|
169
|
-
'title': 'asdf',
|
|
170
|
-
'start_date': '2025-12-26',
|
|
171
|
-
'end_date': '2025-12-27',
|
|
172
|
-
'activity_type': 2,
|
|
173
|
-
'synopsis': 'asdf',
|
|
174
|
-
'activity_mode': 1,
|
|
175
|
-
'status': 2,
|
|
176
|
-
'create_time': '2025-12-12T15:01:44.181040',
|
|
177
|
-
'is_delete': 0,
|
|
178
|
-
'address': '',
|
|
179
|
-
'sponsor': 'hid_2o--qyykhbvm5as',
|
|
180
|
-
'start': '15:00',
|
|
181
|
-
'end': '15:00',
|
|
182
|
-
'register_url': 'https://www.openeuler.org/zh/',
|
|
183
|
-
'content_url': 'https://www.openeuler.org/zh/',
|
|
184
|
-
'update_activity_id': null,
|
|
185
|
-
'register_end_date': '2025-12-21 00:00',
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
// 我的活动列表
|
|
191
|
-
export const listRes = {
|
|
192
|
-
'total': 8,
|
|
193
|
-
'page': '1',
|
|
194
|
-
'size': 50,
|
|
195
|
-
'data': [
|
|
196
|
-
{
|
|
197
|
-
'id': 35,
|
|
198
|
-
'title': 'test1231awd',
|
|
199
|
-
'start_date': '2025-12-19',
|
|
200
|
-
'end_date': '2025-12-20',
|
|
201
|
-
'activity_type': 1,
|
|
202
|
-
'synopsis': '',
|
|
203
|
-
'activity_mode': 1,
|
|
204
|
-
'create_time': '2025-12-12T19:30:59.578293',
|
|
205
|
-
'address': 'asdasd',
|
|
206
|
-
'status': 1,
|
|
207
|
-
'sponsor': 'jiasensen',
|
|
208
|
-
'is_delete': 0,
|
|
209
|
-
'start': '10:00',
|
|
210
|
-
'end': '09:00',
|
|
211
|
-
'register_url': 'https://wqeqw.com',
|
|
212
|
-
'content_url': 'https://wqeqw.com',
|
|
213
|
-
'register_end_date': '2025-12-19 00:00',
|
|
214
|
-
'update_activity_id': null,
|
|
215
|
-
'approver': 'hid_n6-ylcv3nf0jw4n',
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
'id': 20,
|
|
219
|
-
'title': 'test1122',
|
|
220
|
-
'start_date': '2025-12-20',
|
|
221
|
-
'end_date': '2025-12-20',
|
|
222
|
-
'activity_type': 3,
|
|
223
|
-
'synopsis': 'test112活动简介',
|
|
224
|
-
'activity_mode': 1,
|
|
225
|
-
'create_time': '2025-12-12T11:43:55.343739',
|
|
226
|
-
'address': 'test112活动地址',
|
|
227
|
-
'status': 2,
|
|
228
|
-
'sponsor': 'jiasensen',
|
|
229
|
-
'is_delete': 0,
|
|
230
|
-
'start': '09:00',
|
|
231
|
-
'end': '10:00',
|
|
232
|
-
'register_url': 'https://aaa.com/',
|
|
233
|
-
'content_url': 'https://aaa111.com/',
|
|
234
|
-
'register_end_date': '2025-12-20 00:00',
|
|
235
|
-
'update_activity_id': null,
|
|
236
|
-
'approver': 'hid_n6-ylcv3nf0jw4n',
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
'id': 26,
|
|
240
|
-
'title': 'test_sensen11',
|
|
241
|
-
'start_date': '2025-12-20',
|
|
242
|
-
'end_date': '2025-12-20',
|
|
243
|
-
'activity_type': 3,
|
|
244
|
-
'synopsis': 'asdas',
|
|
245
|
-
'activity_mode': 1,
|
|
246
|
-
'create_time': '2025-12-12T15:29:33.031145',
|
|
247
|
-
'address': 'asdqwe',
|
|
248
|
-
'status': 3,
|
|
249
|
-
'sponsor': 'jiasensen',
|
|
250
|
-
'is_delete': 0,
|
|
251
|
-
'start': '09:00',
|
|
252
|
-
'end': '12:00',
|
|
253
|
-
'register_url': 'https://aaa.com/',
|
|
254
|
-
'content_url': 'https://aaa111.com/',
|
|
255
|
-
'register_end_date': '2025-12-20 00:00',
|
|
256
|
-
'update_activity_id': null,
|
|
257
|
-
'approver': 'hid_2o--qyykhbvm5as',
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
'id': 86,
|
|
261
|
-
'title': 'test1219',
|
|
262
|
-
'start_date': '2025-12-20',
|
|
263
|
-
'end_date': '2025-12-20',
|
|
264
|
-
'activity_type': 1,
|
|
265
|
-
'synopsis': '',
|
|
266
|
-
'activity_mode': 1,
|
|
267
|
-
'create_time': '2025-12-19T13:56:41.860211',
|
|
268
|
-
'address': 'asdasd',
|
|
269
|
-
'status': 1,
|
|
270
|
-
'sponsor': 'jiasensen',
|
|
271
|
-
'is_delete': 0,
|
|
272
|
-
'start': '08:00',
|
|
273
|
-
'end': '12:00',
|
|
274
|
-
'register_url': 'https://asda.com/',
|
|
275
|
-
'content_url': 'https://asda12312.com/',
|
|
276
|
-
'register_end_date': '2025-12-20 00:00',
|
|
277
|
-
'update_activity_id': null,
|
|
278
|
-
'approver': 'hid_n6-ylcv3nf0jw4n',
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
'id': 27,
|
|
282
|
-
'title': 'test_sensen22',
|
|
283
|
-
'start_date': '2025-12-21',
|
|
284
|
-
'end_date': '2025-12-21',
|
|
285
|
-
'activity_type': 1,
|
|
286
|
-
'synopsis': 'asdfasqwe',
|
|
287
|
-
'activity_mode': 1,
|
|
288
|
-
'create_time': '2025-12-12T15:31:26.182283',
|
|
289
|
-
'address': 'adsasd',
|
|
290
|
-
'status': 3,
|
|
291
|
-
'sponsor': 'jiasensen',
|
|
292
|
-
'is_delete': 1,
|
|
293
|
-
'start': '09:00',
|
|
294
|
-
'end': '12:00',
|
|
295
|
-
'register_url': 'https://qqq.com/',
|
|
296
|
-
'content_url': 'https://qqq111.com/',
|
|
297
|
-
'register_end_date': '2025-12-21 00:00',
|
|
298
|
-
'update_activity_id': null,
|
|
299
|
-
'approver': 'hid_2o--qyykhbvm5as',
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
'id': 33,
|
|
303
|
-
'title': 'test_sensen123',
|
|
304
|
-
'start_date': '2025-12-26',
|
|
305
|
-
'end_date': '2025-12-26',
|
|
306
|
-
'activity_type': 3,
|
|
307
|
-
'synopsis': 'asdas',
|
|
308
|
-
'activity_mode': 1,
|
|
309
|
-
'create_time': '2025-12-12T18:21:25.369919',
|
|
310
|
-
'address': 'test地址',
|
|
311
|
-
'status': 3,
|
|
312
|
-
'sponsor': 'jiasensen',
|
|
313
|
-
'is_delete': 0,
|
|
314
|
-
'start': '08:00',
|
|
315
|
-
'end': '14:00',
|
|
316
|
-
'register_url': 'https://aaa.com/',
|
|
317
|
-
'content_url': 'https://aaa111.com/',
|
|
318
|
-
'register_end_date': '2025-12-26 00:00',
|
|
319
|
-
'update_activity_id': null,
|
|
320
|
-
'approver': 'hid_u18tcgmw-eue4fq',
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
'id': 45,
|
|
324
|
-
'title': 'test_ss1215',
|
|
325
|
-
'start_date': '2025-12-27',
|
|
326
|
-
'end_date': '2025-12-27',
|
|
327
|
-
'activity_type': 3,
|
|
328
|
-
'synopsis': '',
|
|
329
|
-
'activity_mode': 1,
|
|
330
|
-
'create_time': '2025-12-15T11:35:14.992243',
|
|
331
|
-
'address': 'asdas',
|
|
332
|
-
'status': 3,
|
|
333
|
-
'sponsor': 'jiasensen',
|
|
334
|
-
'is_delete': 1,
|
|
335
|
-
'start': '08:00',
|
|
336
|
-
'end': '10:00',
|
|
337
|
-
'register_url': 'https://aaa.com',
|
|
338
|
-
'content_url': 'https://aaa123.com',
|
|
339
|
-
'register_end_date': '2025-12-27 00:00',
|
|
340
|
-
'update_activity_id': null,
|
|
341
|
-
'approver': 'hid_n6-ylcv3nf0jw4n',
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
'id': 88,
|
|
345
|
-
'title': 'test',
|
|
346
|
-
'start_date': '2026-04-18',
|
|
347
|
-
'end_date': '2026-04-18',
|
|
348
|
-
'activity_type': 3,
|
|
349
|
-
'synopsis': '',
|
|
350
|
-
'activity_mode': 1,
|
|
351
|
-
'create_time': '2026-04-16T17:28:29.775759',
|
|
352
|
-
'address': '深圳',
|
|
353
|
-
'status': 2,
|
|
354
|
-
'sponsor': 'jiasensen',
|
|
355
|
-
'is_delete': 0,
|
|
356
|
-
'start': '09:00',
|
|
357
|
-
'end': '18:00',
|
|
358
|
-
'register_url': 'https://www.123.com',
|
|
359
|
-
'content_url': 'https://www.123.com',
|
|
360
|
-
'register_end_date': '2026-04-18 00:00',
|
|
361
|
-
'update_activity_id': null,
|
|
362
|
-
'approver': 'hid_yjn7z1w59d8rln9',
|
|
363
|
-
},
|
|
364
|
-
],
|
|
365
|
-
};
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
//
|
|
3
|
-
//import { formatDate } from '@/components/meeting/utils.ts';
|
|
4
|
-
//import dayjs from 'dayjs';
|
|
5
|
-
//import {
|
|
6
|
-
// OIcon,
|
|
7
|
-
// OIconArrowLeft,
|
|
8
|
-
// OIconArrowRight,
|
|
9
|
-
// OIconChevronLeft,
|
|
10
|
-
// OIconChevronRight,
|
|
11
|
-
// OScroller,
|
|
12
|
-
//} from '@opensig/opendesign';
|
|
13
|
-
//import { ElCalendar, useLocale } from 'element-plus';
|
|
14
|
-
//import { Locales, useI18n } from '@/i18n';
|
|
15
|
-
//import { computed, nextTick, onMounted, onUnmounted, ref, ref } from 'vue';
|
|
16
|
-
//
|
|
17
|
-
//const { t, locale } = useI18n();
|
|
18
|
-
//const isEn = computed(() => locale.value === Locales.EN);
|
|
19
|
-
//
|
|
20
|
-
//const props = defineProps<{
|
|
21
|
-
// selectedDate: string;
|
|
22
|
-
// allDateList: string[];
|
|
23
|
-
// list: any[]
|
|
24
|
-
//}>();
|
|
25
|
-
//const emits = defineEmits(['change-month', 'load']);
|
|
26
|
-
//const calendarRef = ref(null);
|
|
27
|
-
//
|
|
28
|
-
//const formatYearMonth = (date) => {
|
|
29
|
-
// date = dayjs(date ? date : undefined);
|
|
30
|
-
// if (isEn.value) {
|
|
31
|
-
// return date.format('MMMM YYYY');
|
|
32
|
-
// } else {
|
|
33
|
-
// return date.format('YYYY MM月');
|
|
34
|
-
// }
|
|
35
|
-
//};
|
|
36
|
-
//
|
|
37
|
-
//const cellClick = (e: PointerEvent & any, clickable: boolean) => {
|
|
38
|
-
// if (!clickable || !e.target?.className.includes('date-cell-text')) {
|
|
39
|
-
// e.stopPropagation();
|
|
40
|
-
// e.preventDefault();
|
|
41
|
-
// }
|
|
42
|
-
//};
|
|
43
|
-
//const changeMonth = (val) => {
|
|
44
|
-
// if (!calendarRef.value) {
|
|
45
|
-
// return;
|
|
46
|
-
// }
|
|
47
|
-
// window.scrollTo({
|
|
48
|
-
// top: 0,
|
|
49
|
-
// behavior: 'smooth',
|
|
50
|
-
// });
|
|
51
|
-
// calendarRef.value.selectDate(val);
|
|
52
|
-
// nextTick(() => {
|
|
53
|
-
// emits('change-month', calendarRef.value.selectedDay);
|
|
54
|
-
//
|
|
55
|
-
// });
|
|
56
|
-
//};
|
|
57
|
-
//
|
|
58
|
-
//const calcIfAllDeleted = (date) => {
|
|
59
|
-
// const meetingsOfDate = props.list?.filter((v) => v.date === date) || [];
|
|
60
|
-
// return meetingsOfDate.length && meetingsOfDate.every((v) => v.is_delete);
|
|
61
|
-
//};
|
|
62
|
-
//const load = () => {
|
|
63
|
-
// emits('load');
|
|
64
|
-
//};
|
|
65
|
-
//
|
|
66
|
-
//onMounted(() => {
|
|
67
|
-
// getList();
|
|
68
|
-
// // 添加滚动事件监听
|
|
69
|
-
// window.addEventListener('scroll', handleScroll);
|
|
70
|
-
// // 添加resize监听器
|
|
71
|
-
// window.addEventListener('resize', handleScroll);
|
|
72
|
-
// getHeaderHeight();
|
|
73
|
-
// window.addEventListener('resize', getHeaderHeight);
|
|
74
|
-
//});
|
|
75
|
-
//
|
|
76
|
-
//onUnmounted(() => {
|
|
77
|
-
// window.removeEventListener('scroll', handleScroll);
|
|
78
|
-
// window.removeEventListener('resize', handleScroll);
|
|
79
|
-
// window.removeEventListener('resize', getHeaderHeight);
|
|
80
|
-
// const scrollerContainerEl = scrollerRef.value?.getContainerEl();
|
|
81
|
-
// scrollerContainerEl?.removeEventListener('scroll', scrollerScroll);
|
|
82
|
-
//});
|
|
83
|
-
|
|
84
|
-
</script>
|
|
85
|
-
|
|
86
|
-
<template>
|
|
87
|
-
<!-- <div class="o-my-calendar-wrapper">-->
|
|
88
|
-
<!-- <div class="list-calendar-mb">-->
|
|
89
|
-
<!-- <span>{{ formatYearMonth(selectedDate) }}</span>-->
|
|
90
|
-
<!-- <span>-->
|
|
91
|
-
<!-- <OIcon @click="changeMonth('prev-month')"><OIconChevronLeft /></OIcon>-->
|
|
92
|
-
<!-- <OIcon @click="changeMonth('next-month')"><OIconChevronRight /></OIcon>-->
|
|
93
|
-
<!-- </span>-->
|
|
94
|
-
<!-- </div>-->
|
|
95
|
-
<!-- <div class="list-calendar">-->
|
|
96
|
-
<!-- <ElCalendar ref="calendarRef" v-model="selectedDate">-->
|
|
97
|
-
<!-- <template #header>-->
|
|
98
|
-
<!-- <span>{{ formatYearMonth(selectedDate) }}</span>-->
|
|
99
|
-
<!-- <div>-->
|
|
100
|
-
<!-- <OIcon @click="changeMonth('prev-month')">-->
|
|
101
|
-
<!-- <OIconChevronLeft />-->
|
|
102
|
-
<!-- </OIcon>-->
|
|
103
|
-
<!-- <OIcon @click="changeMonth('next-month')">-->
|
|
104
|
-
<!-- <OIconChevronRight />-->
|
|
105
|
-
<!-- </OIcon>-->
|
|
106
|
-
<!-- </div>-->
|
|
107
|
-
<!-- </template>-->
|
|
108
|
-
<!-- <template #date-cell="{ data }">-->
|
|
109
|
-
<!-- <div-->
|
|
110
|
-
<!-- @click="(e) => cellClick(e, allDateList.includes(data.day))"-->
|
|
111
|
-
<!-- :class="{-->
|
|
112
|
-
<!-- 'date-cell': true,-->
|
|
113
|
-
<!-- 'is-selected': data.isSelected,-->
|
|
114
|
-
<!-- 'is-today': formatDate(data.day) === formatDate(),-->
|
|
115
|
-
<!-- clickable: allDateList.includes(data.day),-->
|
|
116
|
-
<!-- expired: dayjs(formatDate()).isAfter(dayjs(data.day)),-->
|
|
117
|
-
<!-- 'all-deleted': calcIfAllDeleted(data.day),-->
|
|
118
|
-
<!-- }"-->
|
|
119
|
-
<!-- >-->
|
|
120
|
-
<!-- <div class="date-cell-text">-->
|
|
121
|
-
<!-- {{ Number(data.day.split('-')[2]) }}-->
|
|
122
|
-
<!-- </div>-->
|
|
123
|
-
<!-- </div>-->
|
|
124
|
-
<!-- </template>-->
|
|
125
|
-
<!-- </ElCalendar>-->
|
|
126
|
-
<!-- </div>-->
|
|
127
|
-
<!-- <div class="list-wrapper" :class="!list.length ? 'is-empty' : ''">-->
|
|
128
|
-
<!-- <OScroller-->
|
|
129
|
-
<!-- ref="scrollerRef"-->
|
|
130
|
-
<!-- @scrollend="load"-->
|
|
131
|
-
<!-- v-if="list.length"-->
|
|
132
|
-
<!-- :style="{ '--header-height': headerHeight }"-->
|
|
133
|
-
<!-- class="scroller-container"-->
|
|
134
|
-
<!-- show-type="hover"-->
|
|
135
|
-
<!-- >-->
|
|
136
|
-
<!-- <div class="list-body">-->
|
|
137
|
-
<!-- <div class="list-month-change prev-month" @click="changeMonth('prev-month')">-->
|
|
138
|
-
<!-- <OIcon>-->
|
|
139
|
-
<!-- <OIconArrowLeft />-->
|
|
140
|
-
<!-- </OIcon>-->
|
|
141
|
-
<!-- <span>{{ t('meeting.preMonth') }}</span>-->
|
|
142
|
-
<!-- </div>-->
|
|
143
|
-
|
|
144
|
-
<!-- <slot></slot>-->
|
|
145
|
-
<!-- <div class="list-month-change next-month" @click="changeMonth('next-month')">-->
|
|
146
|
-
<!-- <OIcon>-->
|
|
147
|
-
<!-- <OIconArrowRight />-->
|
|
148
|
-
<!-- </OIcon>-->
|
|
149
|
-
<!-- <span>{{ t('meeting.nextMonth') }}</span>-->
|
|
150
|
-
<!-- </div>-->
|
|
151
|
-
<!-- </div>-->
|
|
152
|
-
<!-- </OScroller>-->
|
|
153
|
-
<!-- </div>-->
|
|
154
|
-
</template>
|
|
155
|
-
|
|
156
|
-
<style scoped lang="scss">
|
|
157
|
-
.o-my-calendar-wrapper {
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
</style>
|