@opendesign-plus-test/components 0.0.1-rc.22 → 0.0.1-rc.24

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.
@@ -2,7 +2,6 @@
2
2
  export interface ParamsItemT {
3
3
  id?: number; // 活动id
4
4
  title: string; // 活动名称
5
- organizer: string; // 活动主办方
6
5
  start_date: string; // 活动起始日期
7
6
  end_date: string; // 活动结束日期
8
7
  register_end_date: string; // 报名截止时间
@@ -17,8 +16,6 @@ export interface ParamsItemT {
17
16
  is_publish: string; // 是否发布 true-发布审核 false-发布为草稿
18
17
  update_activity_id?: string;
19
18
  approver: string; // 审批人
20
- email_list: string;
21
- content: string;
22
19
  }
23
20
 
24
21
  export interface ActivityFormPropsT {
@@ -75,4 +72,12 @@ export interface ActivityTablePropsT {
75
72
  approveActivityRequest: any;
76
73
  rejectActivityRequest: any;
77
74
  getActivityDetailRequest: any;
75
+ }
76
+
77
+ export interface MyActivityCalendarPropsT {
78
+ getListRequest: any;
79
+ revokeActivityRequest: any;
80
+ deleteActivityRequest: any;
81
+ editActivityRequest: any;
82
+ getActivityDetailRequest: any;
78
83
  }
@@ -750,39 +750,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
750
750
  <style lang="scss">
751
751
  .o-my-meeting-calendar {
752
752
 
753
- .card-content-wrapper {
754
- height: 100%;
755
- @include respond-to('phone') {
756
- padding-top: 0;
757
- padding-left: 0;
758
- padding-right: 0;
759
- }
760
-
761
- &::before {
762
- content: '';
763
- position: absolute;
764
- left: 0;
765
- right: 0;
766
- bottom: 0;
767
- height: 32px;
768
- z-index: 11;
769
- background: linear-gradient(180deg, rgba(var(--o-gray-1), 0), rgba(var(--o-gray-1), 0.3) 25%, rgba(var(--o-gray-1), 1) 100%,);
770
- @include respond-to('phone') {
771
- display: none;
772
- }
773
- }
774
-
775
- @include respond-to('phone') {
776
- background-color: transparent;
777
- }
778
-
779
- .content-wrapper {
780
- @include respond-to('<=pad_v') {
781
- padding-top: 0;
782
- }
783
- }
784
- }
785
-
786
753
  .header {
787
754
  display: flex;
788
755
  align-items: center;
@@ -26,27 +26,40 @@ const infoList = computed(() =>
26
26
  ].slice(0, props.from === 'my' ? 7 : 8),
27
27
  );
28
28
 
29
- const activityInfoList = ref([
30
- {
31
- label: t('meeting.startDate'),
32
- key: 'start_date',
33
- },
34
- {
35
- label: t('meeting.endDate'),
36
- key: 'end_date',
37
- },
38
- {
39
- label: t('meeting.activityAddress'),
40
- key: 'address',
41
- },
29
+
30
+ const activityInfoList = computed(() =>
31
+ [
32
+ { label: '起始日期', key: 'start_date_time' },
33
+ { label: '结束日期', key: 'end_date_time' },
34
+ { label: '报名截止时间', key: 'register_end_date' },
35
+ { label: '活动详情地址', key: 'content_url', isLink: true },
36
+ { label: '活动地点', key: 'address' },
37
+ { label: '活动审批人', key: 'approver' },
38
+ { label: '审核备注', key: 'approve_record', isRecord: true },
39
+ ].slice(0, props.from === 'home' ? 4 : 7),
40
+ );
41
+ const activityInfoApprovalList = computed(() => [
42
+ { label: '活动类型', key: 'activity_type', isType: true },
43
+ { label: '活动地点', key: 'address' },
44
+ { label: '起始日期', key: 'start_date_time' },
45
+ { label: '结束日期', key: 'end_date_time' },
46
+ { label: '报名截止时间', key: 'register_end_date' },
47
+ { label: '报名网址', key: 'register_url', isLink: true },
48
+ { label: '活动详情地址', key: 'content_url', isLink: true },
49
+ { label: '活动审批人', key: 'approver' },
50
+ { label: '审核备注', key: 'approve_record', isRecord: true },
42
51
  ]);
43
52
 
44
53
  const columns = computed(() => {
45
- if (['events', 'summit'].includes(props.data.type)) {
54
+ if (props.data.type === 'activity') {
55
+ if (props.page === 'approval') {
56
+ return activityInfoApprovalList.value;
57
+ }
46
58
  return activityInfoList.value;
47
59
  }
48
60
  return infoList.value;
49
61
  });
62
+
50
63
  const domRef = ref([]);
51
64
  // 复制会议内容
52
65
  const copyInfo = () => {
@@ -0,0 +1,160 @@
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="{ '&#45;&#45;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>