@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,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { OIcon, OBadge,
|
|
2
|
+
import { OIcon, OBadge, ODropdown, ODropdownItem } from '@opensig/opendesign';
|
|
3
3
|
|
|
4
4
|
import AppAvatar from './common/AppAvatar.vue';
|
|
5
5
|
|
|
@@ -30,7 +30,6 @@ interface UserPropsT {
|
|
|
30
30
|
lang?: string;
|
|
31
31
|
noticeTotal?: number;
|
|
32
32
|
userInfo?: UserInfoT;
|
|
33
|
-
userInfoVisible?: boolean;
|
|
34
33
|
options?: OptionsItemT[];
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -39,7 +38,6 @@ withDefaults(defineProps<UserPropsT>(), {
|
|
|
39
38
|
lang: undefined,
|
|
40
39
|
noticeTotal: undefined,
|
|
41
40
|
userInfo: undefined,
|
|
42
|
-
userInfoVisible: undefined,
|
|
43
41
|
options: undefined,
|
|
44
42
|
});
|
|
45
43
|
|
|
@@ -77,11 +75,11 @@ const jumpToPage = (val: any) => {
|
|
|
77
75
|
<ODropdown
|
|
78
76
|
:trigger="lePadV ? 'click' : 'hover'"
|
|
79
77
|
:optionPosition="lePadV ? 'br' : 'bottom'"
|
|
80
|
-
:option-wrap-class="`user-dropdown ${lang === 'en' ? 'is-en' : ''}
|
|
78
|
+
:option-wrap-class="`user-dropdown ${lang === 'en' ? 'is-en' : ''}`"
|
|
81
79
|
>
|
|
82
80
|
<div class="info-wrap hover-icon-rotate">
|
|
83
|
-
<OBadge :value="noticeTotal" color="danger" class="header-message user-avatar" :class="{ 'notice-not': !noticeTotal }">
|
|
84
|
-
<AppAvatar :avatar="userInfo.photo" :name="userInfo.username" :custom-size="
|
|
81
|
+
<OBadge :value="noticeTotal" :dot="true" color="danger" class="header-message user-avatar" :class="{ 'notice-not': !noticeTotal }">
|
|
82
|
+
<AppAvatar :avatar="userInfo.photo" :name="userInfo.username" :custom-size="20" />
|
|
85
83
|
</OBadge>
|
|
86
84
|
<p class="user-account">{{ userInfo.username }}</p>
|
|
87
85
|
<OIcon class="icon">
|
|
@@ -90,30 +88,12 @@ const jumpToPage = (val: any) => {
|
|
|
90
88
|
</div>
|
|
91
89
|
<template #dropdown>
|
|
92
90
|
<!-- 账号信息 -->
|
|
93
|
-
<div v-if="userInfoVisible" class="user-info-dropdown">
|
|
94
|
-
<AppAvatar :avatar="userInfo.photo" :name="userInfo.username" :custom-size="32" />
|
|
95
|
-
<div class="right-info">
|
|
96
|
-
<p class="user-fullname">用户名</p>
|
|
97
|
-
<p class="user-account">{{ userInfo.username }}</p>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
<ODivider v-if="userInfoVisible" :style="{ '--o-divider-gap': '6px' }" />
|
|
101
91
|
<template v-for="item in options" :key="item.label">
|
|
102
|
-
<ODropdownItem :style="{ '--dropdown-item-justify':
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</OIcon>
|
|
108
|
-
</OBadge>
|
|
109
|
-
<span>{{ item.label }}</span>
|
|
110
|
-
</template>
|
|
111
|
-
<template v-else>
|
|
112
|
-
<OBadge v-if="item?.total" :value="item.total" color="danger" class="header-message message" :class="{ 'notice-not': !item.total }">
|
|
113
|
-
{{ item.label }}
|
|
114
|
-
</OBadge>
|
|
115
|
-
<span v-else>{{ item.label }}</span>
|
|
116
|
-
</template>
|
|
92
|
+
<ODropdownItem :style="{ '--dropdown-item-justify': 'center' }" @click="jumpToPage(item)">
|
|
93
|
+
<OBadge v-if="item?.total" :value="item.total" color="danger" class="header-message message" :class="{ 'notice-not': !item.total }">
|
|
94
|
+
{{ item.label }}
|
|
95
|
+
</OBadge>
|
|
96
|
+
<span v-else>{{ item.label }}</span>
|
|
117
97
|
</ODropdownItem>
|
|
118
98
|
</template>
|
|
119
99
|
</template>
|
|
@@ -152,46 +132,25 @@ const jumpToPage = (val: any) => {
|
|
|
152
132
|
}
|
|
153
133
|
|
|
154
134
|
.user-avatar {
|
|
155
|
-
|
|
156
|
-
height: 32px;
|
|
157
|
-
margin-right: 12px;
|
|
135
|
+
margin-right: 4px;
|
|
158
136
|
|
|
159
137
|
:deep(.o-badge-content) {
|
|
160
|
-
|
|
138
|
+
--badge-dot-size: 6px;
|
|
139
|
+
right: 7px;
|
|
161
140
|
top: 2px;
|
|
162
141
|
}
|
|
163
142
|
}
|
|
164
143
|
|
|
165
144
|
.o-dropdown-item {
|
|
166
|
-
width: 142px;
|
|
167
145
|
white-space: nowrap;
|
|
168
146
|
--dropdown-item-color: var(--o-color-info1);
|
|
169
|
-
--dropdown-item-padding:
|
|
147
|
+
--dropdown-item-padding: 5px 12px;
|
|
170
148
|
@include tip1;
|
|
171
149
|
|
|
172
150
|
@include hover {
|
|
173
151
|
color: var(--o-color-primary1);
|
|
174
152
|
background: var(--o-color-control2-light);
|
|
175
153
|
}
|
|
176
|
-
|
|
177
|
-
.o-icon {
|
|
178
|
-
color: var(--o-color-info3);
|
|
179
|
-
--icon-size: 24px;
|
|
180
|
-
margin-right: 8px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.icon-message {
|
|
184
|
-
height: 24px;
|
|
185
|
-
display: flex;
|
|
186
|
-
|
|
187
|
-
@include respond-to('laptop') {
|
|
188
|
-
height: 16px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:deep(.o-badge-content) {
|
|
192
|
-
right: 14px;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
154
|
}
|
|
196
155
|
|
|
197
156
|
.notice-not {
|
|
@@ -200,23 +159,9 @@ const jumpToPage = (val: any) => {
|
|
|
200
159
|
}
|
|
201
160
|
}
|
|
202
161
|
|
|
203
|
-
.user-info-dropdown {
|
|
204
|
-
display: flex;
|
|
205
|
-
align-items: center;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.right-info {
|
|
209
|
-
margin-left: 10px;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.user-fullname {
|
|
213
|
-
color: var(--o-color-info3);
|
|
214
|
-
@include tip2;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
162
|
.user-account {
|
|
218
163
|
color: var(--o-color-info1);
|
|
219
|
-
max-width:
|
|
164
|
+
max-width: 96px;
|
|
220
165
|
font-weight: 500;
|
|
221
166
|
@include tip1;
|
|
222
167
|
@include text-truncate(1);
|
|
@@ -232,8 +177,6 @@ const jumpToPage = (val: any) => {
|
|
|
232
177
|
.info-wrap {
|
|
233
178
|
.user-avatar {
|
|
234
179
|
margin-right: 0;
|
|
235
|
-
width: 24px;
|
|
236
|
-
height: 24px;
|
|
237
180
|
}
|
|
238
181
|
|
|
239
182
|
.user-account {
|
|
@@ -253,9 +196,6 @@ const jumpToPage = (val: any) => {
|
|
|
253
196
|
.user-dropdown {
|
|
254
197
|
--dropdown-list-radius: var(--o-radius-m);
|
|
255
198
|
}
|
|
256
|
-
.user-dropdown-info {
|
|
257
|
-
--dropdown-list-padding: 11px 11px 6px !important;
|
|
258
|
-
}
|
|
259
199
|
.avatar-icon {
|
|
260
200
|
font-size: 24px;
|
|
261
201
|
color: var(--o-color-info1);
|
|
@@ -269,10 +209,6 @@ const jumpToPage = (val: any) => {
|
|
|
269
209
|
.user-dropdown {
|
|
270
210
|
--dropdown-list-radius: 8px;
|
|
271
211
|
|
|
272
|
-
.user-info-dropdown {
|
|
273
|
-
display: none;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
212
|
.o-divider {
|
|
277
213
|
display: none;
|
|
278
214
|
}
|
|
@@ -297,8 +233,5 @@ const jumpToPage = (val: any) => {
|
|
|
297
233
|
}
|
|
298
234
|
}
|
|
299
235
|
}
|
|
300
|
-
.user-dropdown-info {
|
|
301
|
-
--dropdown-list-padding: 9px 4px !important;
|
|
302
|
-
}
|
|
303
236
|
}
|
|
304
237
|
</style>
|
|
@@ -36,7 +36,7 @@ const params = reactive<ReviewParamsT>({
|
|
|
36
36
|
|
|
37
37
|
// -------------------- 申请人 --------------------
|
|
38
38
|
const applicantValue = ref('');
|
|
39
|
-
const
|
|
39
|
+
const applicantOptions = computed(() => props.applicantList.map(v => ({ value: v, label: v })));
|
|
40
40
|
|
|
41
41
|
const filterApplicantList = () => {
|
|
42
42
|
params.sponsor = applicantValue.value.join(',');
|
|
@@ -51,9 +51,13 @@ const sortTime = () => {
|
|
|
51
51
|
|
|
52
52
|
// -------------------- 状态 --------------------
|
|
53
53
|
const statusValue = ref();
|
|
54
|
-
const statusOptions =
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
const statusOptions = computed<TypeOptionT[]>(() => {
|
|
55
|
+
let list: TypeOptionT[] | { label: string; value: string; }[] = [];
|
|
56
|
+
approvalStatusMap.forEach((item) => {
|
|
57
|
+
list.push(item);
|
|
58
|
+
});
|
|
59
|
+
return list.slice(1);
|
|
60
|
+
|
|
57
61
|
});
|
|
58
62
|
const filterStatusList = () => {
|
|
59
63
|
params.status = statusValue.value;
|
|
@@ -164,7 +168,7 @@ const cancel = () => {
|
|
|
164
168
|
};
|
|
165
169
|
|
|
166
170
|
const confirmCancel = async () => {
|
|
167
|
-
if (!props.deleteActivityRequest || !props.cancelActivityRequest)
|
|
171
|
+
if (!props.deleteActivityRequest || !props.cancelActivityRequest) {
|
|
168
172
|
try {
|
|
169
173
|
loading.value = true;
|
|
170
174
|
if (cancelStatus.value === 1) {
|
|
@@ -184,6 +188,7 @@ const confirmCancel = async () => {
|
|
|
184
188
|
content: `“${ currentRow.value?.title }”活动${ cancelText.value }失败`,
|
|
185
189
|
});
|
|
186
190
|
}
|
|
191
|
+
}
|
|
187
192
|
};
|
|
188
193
|
|
|
189
194
|
// -------------------- 审核操作 --------------------
|
|
@@ -350,7 +355,7 @@ const reviewActions = computed<DialogActionT[]>(() => {
|
|
|
350
355
|
<ThFilter
|
|
351
356
|
v-model="applicantValue"
|
|
352
357
|
@confirm="filterApplicantList"
|
|
353
|
-
:list="
|
|
358
|
+
:list="applicantOptions"
|
|
354
359
|
:multiple="true"
|
|
355
360
|
>
|
|
356
361
|
|
|
@@ -389,8 +394,12 @@ const reviewActions = computed<DialogActionT[]>(() => {
|
|
|
389
394
|
</ThFilter>
|
|
390
395
|
</template>
|
|
391
396
|
<template #default="scope">
|
|
392
|
-
<OTag
|
|
393
|
-
|
|
397
|
+
<OTag
|
|
398
|
+
v-if="scope.row.is_delete !== 1"
|
|
399
|
+
color="primary"
|
|
400
|
+
variant="outline"
|
|
401
|
+
:class="[`tag-${statusMap.get(scope.row.status)?.id}`]"
|
|
402
|
+
>
|
|
394
403
|
{{
|
|
395
404
|
statusMap.get(scope.row.status)?.text
|
|
396
405
|
}}
|
|
@@ -555,10 +564,19 @@ const reviewActions = computed<DialogActionT[]>(() => {
|
|
|
555
564
|
|
|
556
565
|
<style lang="scss">
|
|
557
566
|
.o-activity-table {
|
|
567
|
+
.table-wrapper {
|
|
568
|
+
.el-table {
|
|
569
|
+
border-top: none;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.el-table__header {
|
|
573
|
+
margin-bottom: 0;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
558
576
|
|
|
559
577
|
.expand-detail {
|
|
560
578
|
padding: 16px 60px;
|
|
561
|
-
background-color:
|
|
579
|
+
background-color: var(--o-color-fill3);
|
|
562
580
|
}
|
|
563
581
|
|
|
564
582
|
.activity-btn {
|
|
@@ -594,28 +612,44 @@ const reviewActions = computed<DialogActionT[]>(() => {
|
|
|
594
612
|
|
|
595
613
|
.o-tag {
|
|
596
614
|
--tag-radius: 100px;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
615
|
+
font-weight: 500;
|
|
616
|
+
padding: 0 8px;
|
|
617
|
+
height: 24px;
|
|
618
|
+
line-height: 24px !important;
|
|
619
|
+
@include tip1;
|
|
620
|
+
|
|
621
|
+
.o-tag-label {
|
|
622
|
+
transform: none !important;
|
|
623
|
+
}
|
|
600
624
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
}
|
|
625
|
+
&.o-tag-outline {
|
|
626
|
+
--tag-bd-color: transparent;
|
|
627
|
+
--tag-color: #fff;
|
|
628
|
+
}
|
|
606
629
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
630
|
+
&.tag-under-review {
|
|
631
|
+
--tag-bg-color: rgb(var(--o-blue-6));
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
&.tag-draft,
|
|
635
|
+
&.tag-cancel {
|
|
636
|
+
--tag-color: var(--o-color-info3);
|
|
637
|
+
--tag-bg-color: var(--o-color-control1-light);
|
|
638
|
+
}
|
|
613
639
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
640
|
+
&.tag-registration,
|
|
641
|
+
&.tag-in-progress,
|
|
642
|
+
&.tag-ended {
|
|
643
|
+
--tag-bg-color: var(--o-color-success1);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
&.tag-reject {
|
|
647
|
+
--tag-bg-color: var(--o-color-warning1);
|
|
648
|
+
}
|
|
617
649
|
}
|
|
618
650
|
|
|
651
|
+
|
|
652
|
+
|
|
619
653
|
.sort-time {
|
|
620
654
|
display: flex;
|
|
621
655
|
align-items: center;
|
|
@@ -111,11 +111,10 @@ const rules = ref<Record<string, RulesT[]>>({
|
|
|
111
111
|
},
|
|
112
112
|
],
|
|
113
113
|
register_end_date: [
|
|
114
|
-
{ required: true, message: '请选择报名截止时间' },
|
|
115
114
|
{
|
|
116
115
|
validator: () => {
|
|
117
116
|
const { register_end_date, end_date, end } = form.value;
|
|
118
|
-
if (dayjs(`${ end_date } ${ end }`).valueOf() < dayjs(register_end_date).valueOf()) {
|
|
117
|
+
if (register_end_date && dayjs(`${ end_date } ${ end }`).valueOf() < dayjs(register_end_date).valueOf()) {
|
|
119
118
|
return {
|
|
120
119
|
type: 'danger',
|
|
121
120
|
message: '报名截止日期必须小于结束日期',
|
|
@@ -139,7 +138,6 @@ const rules = ref<Record<string, RulesT[]>>({
|
|
|
139
138
|
},
|
|
140
139
|
],
|
|
141
140
|
register_url: [
|
|
142
|
-
{ required: true, message: '请输入活动报名网址' },
|
|
143
141
|
{
|
|
144
142
|
validator: (value: string) => {
|
|
145
143
|
const str = value.replaceAll(' ', '') || '';
|
|
@@ -157,7 +155,6 @@ const rules = ref<Record<string, RulesT[]>>({
|
|
|
157
155
|
},
|
|
158
156
|
],
|
|
159
157
|
content_url: [
|
|
160
|
-
{ required: true, message: '请输入活动详情介绍网址' },
|
|
161
158
|
{
|
|
162
159
|
validator: (value: string) => {
|
|
163
160
|
const str = value.replaceAll(' ', '') || '';
|
|
@@ -503,7 +500,7 @@ defineExpose({
|
|
|
503
500
|
|
|
504
501
|
.time-config {
|
|
505
502
|
width: 100%;
|
|
506
|
-
background-color: var(--o-color-control2-light);
|
|
503
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
|
|
507
504
|
padding: var(--o-gap-5);
|
|
508
505
|
padding-right: calc(var(--o-gap-4) + var(--o-gap-5));
|
|
509
506
|
border-radius: var(--o-radius-xs);
|
|
@@ -43,7 +43,7 @@ const pageSize = ref(50); // 分页-每页数量
|
|
|
43
43
|
const total = ref(null); // 分页-总数
|
|
44
44
|
const reloadAll = ref(false); // 是否需要清空数据
|
|
45
45
|
|
|
46
|
-
const expanded = ref([]);
|
|
46
|
+
const expanded = ref([]); // 展开的数据,id
|
|
47
47
|
|
|
48
48
|
const nextLoading = ref(false);
|
|
49
49
|
const bottomReached = ref(false);
|
|
@@ -71,7 +71,6 @@ const getList = async () => {
|
|
|
71
71
|
page: currentPage.value,
|
|
72
72
|
size: pageSize.value,
|
|
73
73
|
} as unknown as PageParamsT);
|
|
74
|
-
console.log(res);
|
|
75
74
|
const tempList = (res.data || [])
|
|
76
75
|
.map((item: ActivityItemT) => {
|
|
77
76
|
const { start_date, end_date, start, end } = item;
|
|
@@ -89,13 +88,11 @@ const getList = async () => {
|
|
|
89
88
|
})
|
|
90
89
|
.flat()
|
|
91
90
|
.filter((v) => {
|
|
92
|
-
console.log(v.start_date, formatDate(selectedDate.value, 'YYYY-MM-DD'));
|
|
93
91
|
return v.start_date.slice(0, 7) === formatDate(selectedDate.value, 'YYYY-MM-DD').slice(0, 7);
|
|
94
92
|
});
|
|
95
93
|
if (reloadAll.value) {
|
|
96
94
|
originList.value = res.data || [];
|
|
97
95
|
list.value = tempList;
|
|
98
|
-
console.log(list.value);
|
|
99
96
|
} else {
|
|
100
97
|
if (currentPage.value === 1 && !isPhone.value) {
|
|
101
98
|
originList.value = res.data || [];
|
|
@@ -623,7 +620,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
623
620
|
</div>
|
|
624
621
|
</div>
|
|
625
622
|
</div>
|
|
626
|
-
<div class="item-header-right" v-if="!row.is_delete">
|
|
623
|
+
<div class="item-header-right" v-if="!row.is_delete && [3,4,5,6].includes(row.status)">
|
|
627
624
|
<OLink v-if="row.content_url" :href="row.content_url" target="_blank" rel="noopener noreferrer">
|
|
628
625
|
活动详情
|
|
629
626
|
<template #suffix>
|
|
@@ -811,12 +808,34 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
811
808
|
.left-calendar {
|
|
812
809
|
width: 336px;
|
|
813
810
|
flex-shrink: 0;
|
|
814
|
-
|
|
811
|
+
@include respond-to('pad_h') {
|
|
812
|
+
.el-calendar {
|
|
813
|
+
.el-calendar__body {
|
|
814
|
+
padding-left: 12px;
|
|
815
|
+
padding-right: 12px;
|
|
816
|
+
|
|
817
|
+
.el-calendar-table .date-cell {
|
|
818
|
+
height: 40px;
|
|
819
|
+
width: 28px;
|
|
815
820
|
|
|
821
|
+
.date-cell-text {
|
|
822
|
+
line-height: 24px;
|
|
823
|
+
@include tip2;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
@include respond-to('pad_v') {
|
|
830
|
+
width: 100%;
|
|
831
|
+
}
|
|
832
|
+
@include respond-to('phone') {
|
|
833
|
+
display: none;
|
|
834
|
+
}
|
|
816
835
|
.el-calendar {
|
|
817
836
|
min-height: 460px;
|
|
818
837
|
height: calc(100% - 54px);
|
|
819
|
-
background-color: var(--
|
|
838
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
|
|
820
839
|
border-radius: var(--o-radius-xs);
|
|
821
840
|
|
|
822
841
|
.el-calendar__header {
|
|
@@ -846,18 +865,19 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
846
865
|
|
|
847
866
|
.el-calendar__body {
|
|
848
867
|
.el-calendar-table {
|
|
868
|
+
width: 100%;
|
|
849
869
|
tr {
|
|
850
|
-
background: var(--
|
|
870
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
851
871
|
}
|
|
852
872
|
|
|
853
873
|
th {
|
|
854
874
|
text-align: center;
|
|
855
|
-
background: var(--
|
|
875
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
856
876
|
border: none;
|
|
857
877
|
}
|
|
858
878
|
|
|
859
879
|
td {
|
|
860
|
-
background: var(--
|
|
880
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
|
|
861
881
|
border: none;
|
|
862
882
|
text-align: center;
|
|
863
883
|
transition: none;
|
|
@@ -890,7 +910,8 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
890
910
|
font-size: 14px;
|
|
891
911
|
line-height: 36px;
|
|
892
912
|
border-radius: var(--o-radius-xs);
|
|
893
|
-
background-color: var(--
|
|
913
|
+
background-color: var(--o-color-control2-light);
|
|
914
|
+
border: 1px solid transparent;
|
|
894
915
|
}
|
|
895
916
|
|
|
896
917
|
.date-cell-text {
|
|
@@ -929,8 +950,8 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
929
950
|
|
|
930
951
|
&.is-selected {
|
|
931
952
|
.date-cell-text {
|
|
932
|
-
color:
|
|
933
|
-
|
|
953
|
+
background-color: var(--o-color-control3-light);
|
|
954
|
+
border: 1px solid var(--o-color-primary1);
|
|
934
955
|
}
|
|
935
956
|
}
|
|
936
957
|
|
|
@@ -960,31 +981,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
960
981
|
}
|
|
961
982
|
}
|
|
962
983
|
|
|
963
|
-
@include respond-to('pad_h') {
|
|
964
|
-
width: 240px;
|
|
965
|
-
.el-calendar {
|
|
966
|
-
.el-calendar__body {
|
|
967
|
-
padding-left: 12px;
|
|
968
|
-
padding-right: 12px;
|
|
969
|
-
|
|
970
|
-
.el-calendar-table .date-cell {
|
|
971
|
-
height: 40px;
|
|
972
|
-
width: 28px;
|
|
973
984
|
|
|
974
|
-
.date-cell-text {
|
|
975
|
-
line-height: 24px;
|
|
976
|
-
@include tip2;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
@include respond-to('pad_v') {
|
|
983
|
-
width: 100%;
|
|
984
|
-
}
|
|
985
|
-
@include respond-to('phone') {
|
|
986
|
-
display: none;
|
|
987
|
-
}
|
|
988
985
|
}
|
|
989
986
|
|
|
990
987
|
.right-meeting {
|
|
@@ -1009,7 +1006,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1009
1006
|
|
|
1010
1007
|
.scroller-container {
|
|
1011
1008
|
height: 100%;
|
|
1012
|
-
max-height: calc(var(--layout-left-height) - 4 * var(--o-gap-5) - var(--header-height) * 1px);
|
|
1009
|
+
max-height: calc(var(--layout-left-height, 900px) - 4 * var(--o-gap-5) - var(--header-height) * 1px);
|
|
1013
1010
|
@include respond-to('phone') {
|
|
1014
1011
|
max-height: fit-content;
|
|
1015
1012
|
}
|
|
@@ -1171,14 +1168,6 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1171
1168
|
display: flex;
|
|
1172
1169
|
flex-direction: column;
|
|
1173
1170
|
|
|
1174
|
-
.o-collapse-item {
|
|
1175
|
-
&.last-item {
|
|
1176
|
-
.o-collapse-item-header {
|
|
1177
|
-
border-bottom: none;
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
1171
|
.o-collapse-item-expanded + .o-collapse-item-expanded {
|
|
1183
1172
|
margin-top: var(--o-gap-4);
|
|
1184
1173
|
}
|
|
@@ -1221,7 +1210,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1221
1210
|
|
|
1222
1211
|
|
|
1223
1212
|
&.o-collapse-item-expanded {
|
|
1224
|
-
background-color: var(--o-color-control2-light);
|
|
1213
|
+
background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
|
|
1225
1214
|
}
|
|
1226
1215
|
}
|
|
1227
1216
|
|
|
@@ -1256,6 +1245,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1256
1245
|
flex-direction: column;
|
|
1257
1246
|
align-items: flex-start;
|
|
1258
1247
|
justify-content: space-between;
|
|
1248
|
+
|
|
1259
1249
|
.item-header-left {
|
|
1260
1250
|
display: flex;
|
|
1261
1251
|
align-items: flex-start;
|
|
@@ -1268,11 +1258,12 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1268
1258
|
align-self: stretch;
|
|
1269
1259
|
flex-shrink: 0;
|
|
1270
1260
|
}
|
|
1261
|
+
|
|
1271
1262
|
.act-icon {
|
|
1272
1263
|
width: var(--icon-size);
|
|
1273
1264
|
height: var(--icon-size);
|
|
1274
1265
|
border-radius: 50%;
|
|
1275
|
-
background-color: var(--o-
|
|
1266
|
+
background-color: rgb(var(--o-cyan-6));
|
|
1276
1267
|
color: #fff;
|
|
1277
1268
|
display: flex;
|
|
1278
1269
|
align-items: center;
|
|
@@ -1308,32 +1299,43 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1308
1299
|
max-width: 100%;
|
|
1309
1300
|
@include text-truncate(1);
|
|
1310
1301
|
}
|
|
1311
|
-
|
|
1312
1302
|
.o-tag {
|
|
1313
1303
|
margin-left: 8px;
|
|
1314
|
-
--tag-radius:
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1304
|
+
--tag-radius: 4px;
|
|
1305
|
+
font-weight: 500;
|
|
1306
|
+
padding: 0 8px;
|
|
1307
|
+
height: 24px;
|
|
1308
|
+
line-height: 24px !important;
|
|
1309
|
+
@include tip1;
|
|
1310
|
+
|
|
1311
|
+
.o-tag-label {
|
|
1312
|
+
transform: none !important;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
&.o-tag-outline {
|
|
1316
|
+
--tag-bd-color: transparent;
|
|
1317
|
+
--tag-color: #fff;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
&.tag-under-review {
|
|
1321
|
+
--tag-bg-color: rgb(var(--o-blue-6));
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
&.tag-draft,
|
|
1325
|
+
&.tag-cancel {
|
|
1326
|
+
--tag-color: var(--o-color-info3);
|
|
1327
|
+
--tag-bg-color: var(--o-color-control1-light);
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
&.tag-registration,
|
|
1331
|
+
&.tag-in-progress,
|
|
1332
|
+
&.tag-ended {
|
|
1333
|
+
--tag-bg-color: var(--o-color-success1);
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
&.tag-reject {
|
|
1337
|
+
--tag-bg-color: var(--o-color-warning1);
|
|
1338
|
+
}
|
|
1337
1339
|
}
|
|
1338
1340
|
}
|
|
1339
1341
|
|
|
@@ -1356,12 +1358,15 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1356
1358
|
display: flex;
|
|
1357
1359
|
align-items: center;
|
|
1358
1360
|
padding-left: calc(var(--o-gap-3) + var(--icon-size));
|
|
1359
|
-
gap: var(--o-gap-
|
|
1361
|
+
gap: var(--o-gap-4);
|
|
1360
1362
|
width: 100%;
|
|
1361
1363
|
|
|
1362
1364
|
.o-link {
|
|
1363
1365
|
font-size: 14px;
|
|
1364
1366
|
line-height: 21px;
|
|
1367
|
+
--link-color: var(--o-color-info2);
|
|
1368
|
+
--link-color-hover: var(--o-color-primary2);
|
|
1369
|
+
--link-color-active: var(--o-color-primary3);
|
|
1365
1370
|
}
|
|
1366
1371
|
|
|
1367
1372
|
.o-link + .o-link {
|
|
@@ -1429,6 +1434,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1429
1434
|
padding-right: 0 !important;
|
|
1430
1435
|
min-width: auto;
|
|
1431
1436
|
}
|
|
1437
|
+
|
|
1432
1438
|
.o-btn-text {
|
|
1433
1439
|
@include hover {
|
|
1434
1440
|
background-color: transparent;
|
|
@@ -1457,6 +1463,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1457
1463
|
.handle-dialog-active {
|
|
1458
1464
|
width: 450px;
|
|
1459
1465
|
--dlg-radius: var(--o-radius-xs);
|
|
1466
|
+
|
|
1460
1467
|
.o-dlg-header {
|
|
1461
1468
|
margin-bottom: var(--o-gap-5);
|
|
1462
1469
|
}
|