@opendesign-plus-test/components 0.0.1-rc.39 → 0.0.1-rc.41
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.cjs.js +20 -20
- package/dist/components.css +1 -1
- package/dist/components.es.js +744 -766
- package/package.json +3 -3
- package/src/components/activity/OActivityApproval.vue +2 -9
- package/src/components/activity/OActivityForm.vue +1 -8
- package/src/components/activity/OMyActivityCalendar.vue +0 -15
- package/src/components/meeting/OMeetingCalendar.vue +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus-test/components",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dayjs": "^1.11.13",
|
|
33
33
|
"video.js": "^8.23.7",
|
|
34
34
|
"vue-dompurify-html": "^3.1.2",
|
|
35
|
-
"@opendesign-plus/
|
|
36
|
-
"@opendesign-plus/
|
|
35
|
+
"@opendesign-plus/styles": "0.0.1-rc.2",
|
|
36
|
+
"@opendesign-plus/composables": "0.0.1-rc.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@vitejs/plugin-vue": "^5.1.0",
|
|
@@ -140,7 +140,6 @@ const confirm = async () => {
|
|
|
140
140
|
if (!props.approveActivityRequest || !props.rejectActivityRequest) {
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
|
-
const msg = reviewStatus.value === 1 ? t('meeting.approveReview') : t('meeting.rejectReview');
|
|
144
143
|
try {
|
|
145
144
|
loading.value = true;
|
|
146
145
|
const valid = await formRef.value?.validate();
|
|
@@ -158,12 +157,9 @@ const confirm = async () => {
|
|
|
158
157
|
message.success({
|
|
159
158
|
content: t('meeting.reviewSuccess', [currentRow.value?.title]),
|
|
160
159
|
});
|
|
161
|
-
}
|
|
160
|
+
} finally {
|
|
162
161
|
reviewVisible.value = false;
|
|
163
162
|
loading.value = false;
|
|
164
|
-
message.danger({
|
|
165
|
-
content: t('meeting.reviewFail', [currentRow.value?.title]),
|
|
166
|
-
});
|
|
167
163
|
}
|
|
168
164
|
};
|
|
169
165
|
const cancel = () => {
|
|
@@ -187,12 +183,9 @@ const confirmCancel = async () => {
|
|
|
187
183
|
message.success({
|
|
188
184
|
content: t('meeting.activityActionSuccess', [currentRow.value?.title, cancelText.value]),
|
|
189
185
|
});
|
|
190
|
-
}
|
|
186
|
+
} finally {
|
|
191
187
|
loading.value = false;
|
|
192
188
|
cancelVisible.value = false;
|
|
193
|
-
message.danger({
|
|
194
|
-
content: t('meeting.activityActionFail', [currentRow.value?.title, cancelText.value]),
|
|
195
|
-
});
|
|
196
189
|
}
|
|
197
190
|
}
|
|
198
191
|
};
|
|
@@ -310,13 +310,6 @@ const confirm = async (val: boolean) => {
|
|
|
310
310
|
});
|
|
311
311
|
close();
|
|
312
312
|
emits('confirm');
|
|
313
|
-
} catch {
|
|
314
|
-
loading.value = false;
|
|
315
|
-
form.value.start_date = `${ form.value.start_date } ${ form.value.start }`;
|
|
316
|
-
form.value.end_date = `${ form.value.end_date } ${ form.value.end }`;
|
|
317
|
-
message.danger({
|
|
318
|
-
content: t('meeting.activityActionFail', [form.value.title, type.toLowerCase()]),
|
|
319
|
-
});
|
|
320
313
|
} finally {
|
|
321
314
|
loading.value = false;
|
|
322
315
|
}
|
|
@@ -514,7 +507,7 @@ defineExpose({
|
|
|
514
507
|
}
|
|
515
508
|
|
|
516
509
|
.o-form-item-label {
|
|
517
|
-
flex: 0 0
|
|
510
|
+
flex: 0 0 88px;
|
|
518
511
|
}
|
|
519
512
|
}
|
|
520
513
|
}
|
|
@@ -320,11 +320,6 @@ const confirm = () => {
|
|
|
320
320
|
reloadAll.value = true;
|
|
321
321
|
getList();
|
|
322
322
|
})
|
|
323
|
-
.catch(() => {
|
|
324
|
-
message.danger({
|
|
325
|
-
content: t('meeting.revokeActivityFail', [currentRow.value.title]),
|
|
326
|
-
});
|
|
327
|
-
})
|
|
328
323
|
.finally(() => {
|
|
329
324
|
revokeVisible.value = false;
|
|
330
325
|
dialogLoading.value = false;
|
|
@@ -380,11 +375,6 @@ const handleSubmitReviewItem = (val: ActivityItemT) => {
|
|
|
380
375
|
reloadAll.value = true;
|
|
381
376
|
getList();
|
|
382
377
|
})
|
|
383
|
-
.catch(() => {
|
|
384
|
-
message.danger({
|
|
385
|
-
content: t('meeting.submitReviewFail', [val.title]),
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
378
|
};
|
|
389
379
|
// 删除活动
|
|
390
380
|
const deleteVisible = ref(false);
|
|
@@ -405,11 +395,6 @@ const confirmDelete = () => {
|
|
|
405
395
|
reloadAll.value = true;
|
|
406
396
|
getList();
|
|
407
397
|
})
|
|
408
|
-
.catch(() => {
|
|
409
|
-
message.danger({
|
|
410
|
-
content: t('meeting.deleteActivityFail', [currentRow.value.title]),
|
|
411
|
-
});
|
|
412
|
-
})
|
|
413
398
|
.finally(() => {
|
|
414
399
|
deleteVisible.value = false;
|
|
415
400
|
dialogLoading.value = false;
|
|
@@ -100,7 +100,7 @@ const getActivityData = async (date) => {
|
|
|
100
100
|
|
|
101
101
|
const getDateList = async (date) => {
|
|
102
102
|
if (props.getDateListRequest) {
|
|
103
|
-
props.getDateListRequest(date).then(res => {
|
|
103
|
+
props.getDateListRequest(date, group.value || '').then(res => {
|
|
104
104
|
dateList.value = res;
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -124,7 +124,7 @@ const paramGetDaysData = async (params: { date: string; type: string }) => {
|
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
126
|
try {
|
|
127
|
-
const res = await props.getMeetingListRequest(params.date, group.value);
|
|
127
|
+
const res = await props.getMeetingListRequest(params.date, group.value, '');
|
|
128
128
|
meetingData.value = res.map((v) => {
|
|
129
129
|
return {
|
|
130
130
|
...v,
|