@opendesign-plus-test/components 0.0.1-rc.24 → 0.0.1-rc.26
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/components/activity/types.d.ts +6 -1
- package/dist/components.cjs.js +35 -35
- package/dist/components.css +1 -1
- package/dist/components.es.js +6876 -6850
- package/package.json +1 -1
- package/src/components/activity/OActivityApproval.vue +297 -247
- package/src/components/activity/OActivityForm.vue +18 -7
- package/src/components/activity/OMyActivityCalendar.vue +247 -116
- package/src/components/activity/config.ts +2 -2
- package/src/components/activity/types.ts +6 -1
- package/src/components/common/MoreText.vue +4 -0
- package/src/components/meeting/OMeetingForm.vue +5 -1
- package/src/components/meeting/OMyMeetingCalendar.vue +7 -8
- package/src/components/meeting/components/OMeetingDetail.vue +15 -2
|
@@ -25,6 +25,7 @@ const message = useMessage(null);
|
|
|
25
25
|
const { lePadV } = useScreen();
|
|
26
26
|
const { t } = useI18n();
|
|
27
27
|
const $t = t;
|
|
28
|
+
|
|
28
29
|
interface TypeOptionT {
|
|
29
30
|
label: string;
|
|
30
31
|
value: number;
|
|
@@ -47,7 +48,6 @@ const form = ref<ParamsItemT>({
|
|
|
47
48
|
end: '',
|
|
48
49
|
is_publish: 'true',
|
|
49
50
|
email_list: '',
|
|
50
|
-
content: '',
|
|
51
51
|
approver: '',
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -174,7 +174,7 @@ const rules = ref<Record<string, RulesT[]>>({
|
|
|
174
174
|
triggers: ['blur', 'change'],
|
|
175
175
|
},
|
|
176
176
|
],
|
|
177
|
-
|
|
177
|
+
synopsis: [{
|
|
178
178
|
validator: (value: string) => {
|
|
179
179
|
if (value.length > 1000) {
|
|
180
180
|
return {
|
|
@@ -258,6 +258,9 @@ watch(
|
|
|
258
258
|
is_publish,
|
|
259
259
|
approver,
|
|
260
260
|
update_activity_id,
|
|
261
|
+
synopsis,
|
|
262
|
+
email_list,
|
|
263
|
+
organizer,
|
|
261
264
|
} = val;
|
|
262
265
|
let params = {
|
|
263
266
|
title,
|
|
@@ -273,6 +276,9 @@ watch(
|
|
|
273
276
|
is_publish,
|
|
274
277
|
approver,
|
|
275
278
|
update_activity_id,
|
|
279
|
+
synopsis,
|
|
280
|
+
email_list,
|
|
281
|
+
organizer,
|
|
276
282
|
} as ParamsItemT;
|
|
277
283
|
form.value = { ...params };
|
|
278
284
|
typeValue.value = acticityTypeMap.get(val.activity_type)?.label;
|
|
@@ -292,11 +298,11 @@ const confirm = async (val: boolean) => {
|
|
|
292
298
|
}
|
|
293
299
|
loading.value = true;
|
|
294
300
|
form.value.is_publish = `${ val }`;
|
|
295
|
-
if (isEdit.value && props.status === 3) {
|
|
301
|
+
if (isEdit.value && props.data?.status === 3) {
|
|
296
302
|
form.value.update_activity_id = props.data?.id;
|
|
297
303
|
await props.creatActivity?.(form.value);
|
|
298
304
|
} else if (isEdit.value) {
|
|
299
|
-
await props.editActivity?.(props.data
|
|
305
|
+
await props.editActivity?.(props.data?.id, form.value);
|
|
300
306
|
} else {
|
|
301
307
|
await props.creatActivity?.(form.value);
|
|
302
308
|
}
|
|
@@ -314,6 +320,8 @@ const confirm = async (val: boolean) => {
|
|
|
314
320
|
message.danger({
|
|
315
321
|
content: msg,
|
|
316
322
|
});
|
|
323
|
+
} finally {
|
|
324
|
+
loading.value = false;
|
|
317
325
|
}
|
|
318
326
|
};
|
|
319
327
|
const close = () => {
|
|
@@ -341,7 +349,9 @@ defineExpose({
|
|
|
341
349
|
<OInput size="large" placeholder="请输入活动名称" v-model="form.title" />
|
|
342
350
|
</OFormItem>
|
|
343
351
|
<OFormItem :rules="rules.organizer" label="活动主办方" field="organizer">
|
|
344
|
-
<
|
|
352
|
+
<OSelect placeholder="请选择活动主办方" size="large" v-model="form.organizer">
|
|
353
|
+
<OOption v-for="t in organizers" :key="t.name" :value="t.name">{{ t.name }}</OOption>
|
|
354
|
+
</OSelect>
|
|
345
355
|
</OFormItem>
|
|
346
356
|
<OFormItem :rules="rules.activity_type" label="活动类型" field="activity_type">
|
|
347
357
|
<OSelect placeholder="请选择活动类型" size="large" v-model="typeValue" @change="changeType">
|
|
@@ -404,8 +414,8 @@ defineExpose({
|
|
|
404
414
|
<OFormItem :rules="rules.content_url" label="活动详情网址" field="content_url">
|
|
405
415
|
<OInput size="large" placeholder="请输入活动详情介绍网址" v-model="form.content_url" />
|
|
406
416
|
</OFormItem>
|
|
407
|
-
<OFormItem :rules="rules.
|
|
408
|
-
<OTextarea size="large" placeholder="请输入活动内容" v-model="form.
|
|
417
|
+
<OFormItem :rules="rules.synopsis" label="活动内容" field="synopsis">
|
|
418
|
+
<OTextarea size="large" placeholder="请输入活动内容" v-model="form.synopsis" />
|
|
409
419
|
</OFormItem>
|
|
410
420
|
<OFormItem field="email_list" :rules="rules.email_list" label="邮件地址">
|
|
411
421
|
<OTextarea
|
|
@@ -479,6 +489,7 @@ defineExpose({
|
|
|
479
489
|
}
|
|
480
490
|
|
|
481
491
|
.o-textarea {
|
|
492
|
+
--_box-radius: var(--o-radius-xs);
|
|
482
493
|
width: 100%;
|
|
483
494
|
}
|
|
484
495
|
|