@opendesign-plus-test/components 0.0.1-rc.145 → 0.0.1-rc.147
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 +55 -37
- package/dist/components/activity/OActivityApproval.vue.d.ts +1 -144
- package/dist/components/activity/index.d.ts +1 -6
- package/dist/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
- package/dist/components/logo-swiper/OLogoSwiperItems.vue.d.ts +1 -0
- package/dist/components/logo-swiper/index.d.ts +4 -0
- package/dist/components/logo-swiper/types.d.ts +1 -0
- package/dist/components/video/OVideoDetail.vue.d.ts +7 -0
- package/dist/components/video/index.d.ts +27 -0
- package/dist/components/video/types.d.ts +24 -0
- package/dist/components.cjs.js +37 -37
- package/dist/components.css +1 -1
- package/dist/components.es.js +10968 -10882
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-chevron-right.mjs +2 -2
- package/dist/treeshaking/_virtual/icon-material.mjs +21 -0
- package/dist/treeshaking/_virtual/icon-video.mjs +28 -0
- package/dist/treeshaking/components/activity/OActivityApproval.css +114 -407
- package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +1 -144
- package/dist/treeshaking/components/activity/OActivityApproval.vue.mjs +198 -244
- package/dist/treeshaking/components/activity/OActivityApproval2.css +0 -288
- package/dist/treeshaking/components/activity/OActivityMyCalendar.css +441 -297
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.mjs +110 -107
- package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +10 -3
- package/dist/treeshaking/components/activity/index.d.ts +1 -6
- package/dist/treeshaking/components/common/WordAvatar.css +3 -2
- package/dist/treeshaking/components/common/WordAvatar.vue.mjs +19 -3
- package/dist/treeshaking/components/float-poster/OFloatPoster.css +25 -11
- package/dist/treeshaking/components/float-poster/OFloatPoster.vue.mjs +1 -1
- package/dist/treeshaking/components/footer/components/FooterList.css +109 -96
- package/dist/treeshaking/components/footer/components/FooterList.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderContent.css +185 -185
- package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.css +22 -8
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.mjs +2 -9
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue2.mjs +21 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +39 -26
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.d.ts +1 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +1 -1
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue2.mjs +12 -8
- package/dist/treeshaking/components/logo-swiper/index.d.ts +4 -0
- package/dist/treeshaking/components/logo-swiper/types.d.ts +1 -0
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +3 -0
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +3 -2
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +5 -5
- package/dist/treeshaking/components/section/OSection.vue2.mjs +2 -2
- package/dist/treeshaking/components/video/OVideoDetail.css +754 -0
- package/dist/treeshaking/components/video/OVideoDetail.vue.d.ts +7 -0
- package/dist/treeshaking/components/video/OVideoDetail.vue.mjs +318 -0
- package/dist/treeshaking/components/video/OVideoDetail.vue3.mjs +5 -0
- package/dist/treeshaking/components/video/index.d.ts +27 -0
- package/dist/treeshaking/components/video/index.mjs +10 -0
- package/dist/treeshaking/components/video/types.d.ts +24 -0
- package/dist/treeshaking/i18n/en.mjs +10 -1
- package/dist/treeshaking/i18n/zh.mjs +10 -1
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/treeshaking/_virtual/icon-filter.mjs +0 -21
- package/dist/treeshaking/components/common/ThFilter.css +0 -146
- package/dist/treeshaking/components/common/ThFilter.vue.mjs +0 -270
- package/dist/treeshaking/components/common/ThFilter.vue3.mjs +0 -5
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, reactive, ref, onMounted, watch, openBlock, createElementBlock, unref, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString,
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import "element-plus/es/components/table-column/style/css";
|
|
5
|
-
import { useMessage, OTag, OLink, OPagination, OCollapse, OCollapseItem, ODialog, OForm, OFormItem, OTextarea } from "@opensig/opendesign";
|
|
1
|
+
import { defineComponent, computed, reactive, ref, onMounted, watch, openBlock, createElementBlock, unref, createVNode, withCtx, createElementVNode, createBlock, createTextVNode, toDisplayString, createCommentVNode, normalizeClass, Fragment, renderList, withModifiers } from "vue";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { useMessage, ODataTable, OLink, OTag, OPagination, OCollapse, OCollapseItem, ODialog, OForm, OFormItem, OTextarea } from "@opensig/opendesign";
|
|
6
4
|
import { useScreen } from "@opendesign-plus/composables";
|
|
7
5
|
import { useActivityConfig } from "./composables/useActivityConfig.mjs";
|
|
8
|
-
import _sfc_main$2 from "../common/ThFilter.vue.mjs";
|
|
9
|
-
import '../common/ThFilter.css';
|
|
10
6
|
import _sfc_main$1 from "../meeting/components/OMeetingDetail.vue.mjs";
|
|
11
7
|
import '../meeting/components/OMeetingDetail.css';
|
|
12
8
|
import { useI18n } from "../../i18n/index.mjs";
|
|
@@ -17,28 +13,27 @@ const _hoisted_2 = {
|
|
|
17
13
|
class: "table-wrapper"
|
|
18
14
|
};
|
|
19
15
|
const _hoisted_3 = { class: "expand-detail" };
|
|
20
|
-
const _hoisted_4 = { class: "
|
|
21
|
-
const _hoisted_5 = {
|
|
22
|
-
const _hoisted_6 = {
|
|
16
|
+
const _hoisted_4 = { class: "activity-btn" };
|
|
17
|
+
const _hoisted_5 = {
|
|
23
18
|
key: 0,
|
|
24
19
|
class: "pagination-wrapper"
|
|
25
20
|
};
|
|
26
|
-
const
|
|
21
|
+
const _hoisted_6 = {
|
|
27
22
|
key: 1,
|
|
28
23
|
class: "collapse-wrapper"
|
|
29
24
|
};
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
25
|
+
const _hoisted_7 = { class: "title-top" };
|
|
26
|
+
const _hoisted_8 = { class: "act-title" };
|
|
27
|
+
const _hoisted_9 = { class: "act-sponsor" };
|
|
28
|
+
const _hoisted_10 = { class: "sponsor" };
|
|
29
|
+
const _hoisted_11 = { class: "activity-btn" };
|
|
30
|
+
const _hoisted_12 = { class: "activity-detail" };
|
|
31
|
+
const _hoisted_13 = {
|
|
37
32
|
key: 0,
|
|
38
33
|
class: "pagination"
|
|
39
34
|
};
|
|
35
|
+
const _hoisted_14 = { class: "dialog-content" };
|
|
40
36
|
const _hoisted_15 = { class: "dialog-content" };
|
|
41
|
-
const _hoisted_16 = { class: "dialog-content" };
|
|
42
37
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
43
38
|
__name: "OActivityApproval",
|
|
44
39
|
props: {
|
|
@@ -57,6 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
52
|
const message = useMessage(null);
|
|
58
53
|
const { isPhone, lePadV } = useScreen();
|
|
59
54
|
const props = __props;
|
|
55
|
+
const asItem = (row) => row;
|
|
60
56
|
const params = reactive({
|
|
61
57
|
page: 1,
|
|
62
58
|
size: 10,
|
|
@@ -66,17 +62,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
62
|
sponsor: "",
|
|
67
63
|
order_by: ""
|
|
68
64
|
});
|
|
69
|
-
const applicantValue = ref([]);
|
|
70
|
-
const applicantOptions = computed(() => props.applicantList.map((v) => ({ value: v, label: v })));
|
|
71
|
-
const filterApplicantList = () => {
|
|
72
|
-
params.sponsor = applicantValue.value.join(",");
|
|
73
|
-
};
|
|
74
|
-
const order_by = ref("desc");
|
|
75
|
-
const sortTime = () => {
|
|
76
|
-
order_by.value = order_by.value === "asc" ? "desc" : "asc";
|
|
77
|
-
params.order_by = order_by.value;
|
|
78
|
-
};
|
|
79
|
-
const statusValue = ref();
|
|
80
65
|
const statusOptions = computed(() => {
|
|
81
66
|
const list = [];
|
|
82
67
|
approvalStatusMap.value.forEach((item) => {
|
|
@@ -84,20 +69,65 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
69
|
});
|
|
85
70
|
return list.slice(1);
|
|
86
71
|
});
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
72
|
+
const columns = computed(() => [
|
|
73
|
+
{ key: "title", label: t("meeting.activityName") },
|
|
74
|
+
{
|
|
75
|
+
key: "sponsor",
|
|
76
|
+
label: t("meeting.applicant"),
|
|
77
|
+
filter: {
|
|
78
|
+
optionsFn: () => props.applicantList.map((v) => ({ label: v, value: v })),
|
|
79
|
+
multiple: true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "create_time",
|
|
84
|
+
label: t("meeting.submissionTime"),
|
|
85
|
+
sortKey: "create_time"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "status",
|
|
89
|
+
label: t("meeting.status"),
|
|
90
|
+
width: 90,
|
|
91
|
+
filter: {
|
|
92
|
+
optionsFn: () => statusOptions.value,
|
|
93
|
+
multiple: false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{ key: "action", label: t("meeting.action") }
|
|
97
|
+
]);
|
|
98
|
+
const onConditionUpdate = (payload) => {
|
|
99
|
+
if (!payload) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const { key, newVal } = payload;
|
|
103
|
+
if (key === "sponsor") {
|
|
104
|
+
params.sponsor = newVal.join(",");
|
|
105
|
+
} else if (key === "status") {
|
|
106
|
+
const val = newVal[0];
|
|
107
|
+
params.status = val ?? "";
|
|
108
|
+
if (val === "cancel") {
|
|
109
|
+
params.is_delete = 1;
|
|
110
|
+
} else {
|
|
111
|
+
params.is_delete = 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const onSortUpdate = (payload) => {
|
|
116
|
+
const { newVal } = payload;
|
|
117
|
+
if (newVal === 1) {
|
|
118
|
+
params.order_by = "asc";
|
|
119
|
+
} else if (newVal === -1) {
|
|
120
|
+
params.order_by = "desc";
|
|
91
121
|
} else {
|
|
92
|
-
params.
|
|
122
|
+
params.order_by = "";
|
|
93
123
|
}
|
|
94
124
|
};
|
|
95
125
|
const tableData = ref([]);
|
|
96
126
|
const total = ref(0);
|
|
97
127
|
const COUNT_PER_PAGE = [10, 20, 30, 40];
|
|
98
128
|
const getData = async () => {
|
|
99
|
-
const { page, size, status, sponsor, order_by
|
|
100
|
-
let paramsData = { page, size, sponsor, order_by
|
|
129
|
+
const { page, size, status, sponsor, order_by, search, is_delete } = params;
|
|
130
|
+
let paramsData = { page, size, sponsor, order_by, search };
|
|
101
131
|
if (status !== "all" && status !== "") {
|
|
102
132
|
paramsData.is_delete = is_delete;
|
|
103
133
|
}
|
|
@@ -232,43 +262,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
232
262
|
reviewStatus.value = 0;
|
|
233
263
|
reviewVisible.value = true;
|
|
234
264
|
};
|
|
235
|
-
const
|
|
236
|
-
const
|
|
237
|
-
const
|
|
265
|
+
const expandedRowKeys = ref([]);
|
|
266
|
+
const fetchedDetailIds = ref(/* @__PURE__ */ new Set());
|
|
267
|
+
const fetchActivityDetail = (id) => {
|
|
238
268
|
const val = id.toString();
|
|
239
|
-
if (!props.getActivityDetailRequest) {
|
|
269
|
+
if (!props.getActivityDetailRequest || fetchedDetailIds.value.has(val)) {
|
|
240
270
|
return;
|
|
241
271
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
(
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
});
|
|
272
|
+
fetchedDetailIds.value.add(val);
|
|
273
|
+
props.getActivityDetailRequest(val).then((res) => {
|
|
274
|
+
var _a;
|
|
275
|
+
(_a = tableData.value) == null ? void 0 : _a.forEach((item) => {
|
|
276
|
+
if (item.id === res.id) {
|
|
277
|
+
item.approve_record = res.approve_record;
|
|
278
|
+
item.approver = res.approver;
|
|
279
|
+
}
|
|
252
280
|
});
|
|
253
|
-
}
|
|
254
|
-
const index = expandedRows.value.indexOf(val);
|
|
255
|
-
if (!expandedRows.value.includes(val)) {
|
|
256
|
-
expandedRows.value.push(val);
|
|
257
|
-
} else {
|
|
258
|
-
expandedRows.value.splice(index, 1);
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
const expandChange = (val) => {
|
|
262
|
-
getActivityDetail(val.id);
|
|
281
|
+
});
|
|
263
282
|
};
|
|
264
|
-
const
|
|
265
|
-
|
|
283
|
+
const onExpandChange = (keys) => {
|
|
284
|
+
expandedRowKeys.value = keys;
|
|
285
|
+
keys.forEach((key) => fetchActivityDetail(key));
|
|
266
286
|
};
|
|
267
287
|
const expanded = ref([]);
|
|
268
288
|
const change = (val) => {
|
|
269
289
|
if (val.length) {
|
|
270
290
|
val.forEach((item) => {
|
|
271
|
-
|
|
291
|
+
fetchActivityDetail(item);
|
|
272
292
|
});
|
|
273
293
|
}
|
|
274
294
|
};
|
|
@@ -339,175 +359,109 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
339
359
|
return (_ctx, _cache) => {
|
|
340
360
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
341
361
|
!unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
342
|
-
createVNode(unref(
|
|
362
|
+
createVNode(unref(ODataTable), {
|
|
343
363
|
data: tableData.value,
|
|
344
|
-
|
|
345
|
-
"row-key":
|
|
346
|
-
"
|
|
364
|
+
columns: columns.value,
|
|
365
|
+
"row-key": "id",
|
|
366
|
+
border: "row-frame",
|
|
367
|
+
"min-table-width": 600,
|
|
368
|
+
"expanded-row-keys": expandedRowKeys.value,
|
|
369
|
+
"onUpdate:expandedRowKeys": onExpandChange,
|
|
370
|
+
onConditionUpdate,
|
|
371
|
+
onSortUpdate
|
|
347
372
|
}, {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
_: 1
|
|
360
|
-
}),
|
|
361
|
-
createVNode(unref(ElTableColumn), {
|
|
362
|
-
label: unref(t)("meeting.activityName"),
|
|
363
|
-
prop: "title"
|
|
364
|
-
}, null, 8, ["label"]),
|
|
365
|
-
createVNode(unref(ElTableColumn), { prop: "sponsor" }, {
|
|
366
|
-
header: withCtx(() => [
|
|
367
|
-
createVNode(_sfc_main$2, {
|
|
368
|
-
modelValue: applicantValue.value,
|
|
369
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => applicantValue.value = $event),
|
|
370
|
-
onConfirm: filterApplicantList,
|
|
371
|
-
list: applicantOptions.value,
|
|
372
|
-
multiple: true
|
|
373
|
-
}, {
|
|
374
|
-
empty: withCtx(() => [
|
|
375
|
-
renderSlot(_ctx.$slots, "filter-empty")
|
|
376
|
-
]),
|
|
377
|
-
default: withCtx(() => [
|
|
378
|
-
createTextVNode(" " + toDisplayString(unref(t)("meeting.applicant")), 1)
|
|
379
|
-
]),
|
|
380
|
-
_: 3
|
|
381
|
-
}, 8, ["modelValue", "list"])
|
|
382
|
-
]),
|
|
383
|
-
_: 3
|
|
384
|
-
}),
|
|
385
|
-
createVNode(unref(ElTableColumn), { prop: "create_time" }, {
|
|
386
|
-
header: withCtx(() => [
|
|
387
|
-
createElementVNode("div", {
|
|
388
|
-
class: "sort-time",
|
|
389
|
-
onClick: sortTime
|
|
390
|
-
}, [
|
|
391
|
-
createElementVNode("span", null, toDisplayString(unref(t)("meeting.submissionTime")), 1),
|
|
392
|
-
createElementVNode("div", _hoisted_4, [
|
|
393
|
-
createElementVNode("div", {
|
|
394
|
-
class: normalizeClass(["sort-asc sort-item", { active: order_by.value === "asc" }])
|
|
395
|
-
}, null, 2),
|
|
396
|
-
createElementVNode("div", {
|
|
397
|
-
class: normalizeClass(["sort-desc sort-item", { active: order_by.value === "desc" }])
|
|
398
|
-
}, null, 2)
|
|
399
|
-
])
|
|
400
|
-
])
|
|
401
|
-
]),
|
|
402
|
-
default: withCtx((scope) => [
|
|
403
|
-
createTextVNode(toDisplayString(unref(dayjs)(scope.row.create_time).format("YYYY/MM/DD HH:mm:ss")), 1)
|
|
404
|
-
]),
|
|
405
|
-
_: 1
|
|
406
|
-
}),
|
|
407
|
-
createVNode(unref(ElTableColumn), {
|
|
408
|
-
prop: "status",
|
|
409
|
-
width: "90px"
|
|
410
|
-
}, {
|
|
411
|
-
header: withCtx(() => [
|
|
412
|
-
createVNode(_sfc_main$2, {
|
|
413
|
-
modelValue: statusValue.value,
|
|
414
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusValue.value = $event),
|
|
415
|
-
onConfirm: filterStatusList,
|
|
416
|
-
list: statusOptions.value
|
|
417
|
-
}, {
|
|
418
|
-
empty: withCtx(() => [
|
|
419
|
-
renderSlot(_ctx.$slots, "filter-empty")
|
|
420
|
-
]),
|
|
421
|
-
default: withCtx(() => [
|
|
422
|
-
createTextVNode(" " + toDisplayString(unref(t)("meeting.status")), 1)
|
|
423
|
-
]),
|
|
424
|
-
_: 3
|
|
425
|
-
}, 8, ["modelValue", "list"])
|
|
426
|
-
]),
|
|
427
|
-
default: withCtx((scope) => {
|
|
428
|
-
var _a;
|
|
429
|
-
return [
|
|
430
|
-
scope.row.is_delete !== 1 ? (openBlock(), createBlock(unref(OTag), {
|
|
431
|
-
key: 0,
|
|
432
|
-
color: "primary",
|
|
433
|
-
variant: "outline",
|
|
434
|
-
class: normalizeClass([`tag-${(_a = unref(statusMap).get(scope.row.status)) == null ? void 0 : _a.id}`])
|
|
435
|
-
}, {
|
|
436
|
-
default: withCtx(() => {
|
|
437
|
-
var _a2;
|
|
438
|
-
return [
|
|
439
|
-
createTextVNode(toDisplayString((_a2 = unref(statusMap).get(scope.row.status)) == null ? void 0 : _a2.text), 1)
|
|
440
|
-
];
|
|
441
|
-
}),
|
|
442
|
-
_: 2
|
|
443
|
-
}, 1032, ["class"])) : (openBlock(), createBlock(unref(OTag), {
|
|
444
|
-
key: 1,
|
|
445
|
-
color: "primary",
|
|
446
|
-
variant: "outline",
|
|
447
|
-
class: "tag-cancel"
|
|
448
|
-
}, {
|
|
449
|
-
default: withCtx(() => [
|
|
450
|
-
createTextVNode(toDisplayString(unref(t)("meeting.statusCanceled")), 1)
|
|
451
|
-
]),
|
|
452
|
-
_: 1
|
|
453
|
-
}))
|
|
454
|
-
];
|
|
455
|
-
}),
|
|
456
|
-
_: 3
|
|
457
|
-
}),
|
|
458
|
-
createVNode(unref(ElTableColumn), {
|
|
459
|
-
label: unref(t)("meeting.action")
|
|
460
|
-
}, {
|
|
461
|
-
default: withCtx((scope) => [
|
|
462
|
-
createElementVNode("div", _hoisted_5, [
|
|
463
|
-
scope.row.status === 7 || scope.row.is_delete ? (openBlock(), createBlock(unref(OLink), {
|
|
464
|
-
key: 0,
|
|
465
|
-
color: "danger",
|
|
466
|
-
onClick: ($event) => deleteItem(scope.row)
|
|
467
|
-
}, {
|
|
468
|
-
default: withCtx(() => [
|
|
469
|
-
createTextVNode(toDisplayString(unref(t)("meeting.deleteActivity")), 1)
|
|
470
|
-
]),
|
|
471
|
-
_: 1
|
|
472
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
473
|
-
(scope.row.status === 3 || scope.row.status === 4) && scope.row.is_delete !== 1 ? (openBlock(), createBlock(unref(OLink), {
|
|
474
|
-
key: 1,
|
|
475
|
-
color: "danger",
|
|
476
|
-
onClick: ($event) => cancelItem(scope.row)
|
|
477
|
-
}, {
|
|
478
|
-
default: withCtx(() => [
|
|
479
|
-
createTextVNode(toDisplayString(unref(t)("meeting.cancelActivity")), 1)
|
|
480
|
-
]),
|
|
481
|
-
_: 1
|
|
482
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
483
|
-
scope.row.status === 2 ? (openBlock(), createBlock(unref(OLink), {
|
|
484
|
-
key: 2,
|
|
485
|
-
color: "primary",
|
|
486
|
-
onClick: ($event) => passItem(scope.row)
|
|
487
|
-
}, {
|
|
488
|
-
default: withCtx(() => [
|
|
489
|
-
createTextVNode(toDisplayString(unref(t)("meeting.approve")), 1)
|
|
490
|
-
]),
|
|
491
|
-
_: 1
|
|
492
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
493
|
-
scope.row.status === 2 ? (openBlock(), createBlock(unref(OLink), {
|
|
494
|
-
key: 3,
|
|
495
|
-
color: "primary",
|
|
496
|
-
onClick: ($event) => rejectItem(scope.row)
|
|
497
|
-
}, {
|
|
498
|
-
default: withCtx(() => [
|
|
499
|
-
createTextVNode(toDisplayString(unref(t)("meeting.reject")), 1)
|
|
500
|
-
]),
|
|
501
|
-
_: 1
|
|
502
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
503
|
-
])
|
|
504
|
-
]),
|
|
505
|
-
_: 1
|
|
506
|
-
}, 8, ["label"])
|
|
373
|
+
expand: withCtx(({ row }) => [
|
|
374
|
+
createElementVNode("div", _hoisted_3, [
|
|
375
|
+
createVNode(_sfc_main$1, {
|
|
376
|
+
data: row,
|
|
377
|
+
page: unref(CalendarDataType).APPROVAL,
|
|
378
|
+
show: ""
|
|
379
|
+
}, null, 8, ["data", "page"])
|
|
380
|
+
])
|
|
381
|
+
]),
|
|
382
|
+
td_create_time: withCtx(({ row }) => [
|
|
383
|
+
createTextVNode(toDisplayString(unref(dayjs)(asItem(row).create_time).format("YYYY/MM/DD HH:mm:ss")), 1)
|
|
507
384
|
]),
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
385
|
+
td_status: withCtx(({ row }) => {
|
|
386
|
+
var _a;
|
|
387
|
+
return [
|
|
388
|
+
asItem(row).is_delete !== 1 ? (openBlock(), createBlock(unref(OTag), {
|
|
389
|
+
key: 0,
|
|
390
|
+
color: "primary",
|
|
391
|
+
variant: "outline",
|
|
392
|
+
class: normalizeClass([`tag-${(_a = unref(statusMap).get(asItem(row).status)) == null ? void 0 : _a.id}`])
|
|
393
|
+
}, {
|
|
394
|
+
default: withCtx(() => {
|
|
395
|
+
var _a2;
|
|
396
|
+
return [
|
|
397
|
+
createTextVNode(toDisplayString((_a2 = unref(statusMap).get(asItem(row).status)) == null ? void 0 : _a2.text), 1)
|
|
398
|
+
];
|
|
399
|
+
}),
|
|
400
|
+
_: 2
|
|
401
|
+
}, 1032, ["class"])) : (openBlock(), createBlock(unref(OTag), {
|
|
402
|
+
key: 1,
|
|
403
|
+
color: "primary",
|
|
404
|
+
variant: "outline",
|
|
405
|
+
class: "tag-cancel"
|
|
406
|
+
}, {
|
|
407
|
+
default: withCtx(() => [
|
|
408
|
+
createTextVNode(toDisplayString(unref(t)("meeting.statusCanceled")), 1)
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}))
|
|
412
|
+
];
|
|
413
|
+
}),
|
|
414
|
+
td_action: withCtx(({ row }) => [
|
|
415
|
+
createElementVNode("div", _hoisted_4, [
|
|
416
|
+
asItem(row).status === 7 || asItem(row).is_delete ? (openBlock(), createBlock(unref(OLink), {
|
|
417
|
+
key: 0,
|
|
418
|
+
"hover-underline": false,
|
|
419
|
+
color: "danger",
|
|
420
|
+
onClick: ($event) => deleteItem(asItem(row))
|
|
421
|
+
}, {
|
|
422
|
+
default: withCtx(() => [
|
|
423
|
+
createTextVNode(toDisplayString(unref(t)("meeting.deleteActivity")), 1)
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
427
|
+
(asItem(row).status === 3 || asItem(row).status === 4) && asItem(row).is_delete !== 1 ? (openBlock(), createBlock(unref(OLink), {
|
|
428
|
+
key: 1,
|
|
429
|
+
"hover-underline": false,
|
|
430
|
+
color: "danger",
|
|
431
|
+
onClick: ($event) => cancelItem(asItem(row))
|
|
432
|
+
}, {
|
|
433
|
+
default: withCtx(() => [
|
|
434
|
+
createTextVNode(toDisplayString(unref(t)("meeting.cancelActivity")), 1)
|
|
435
|
+
]),
|
|
436
|
+
_: 1
|
|
437
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
438
|
+
asItem(row).status === 2 ? (openBlock(), createBlock(unref(OLink), {
|
|
439
|
+
key: 2,
|
|
440
|
+
"hover-underline": false,
|
|
441
|
+
color: "primary",
|
|
442
|
+
onClick: ($event) => passItem(asItem(row))
|
|
443
|
+
}, {
|
|
444
|
+
default: withCtx(() => [
|
|
445
|
+
createTextVNode(toDisplayString(unref(t)("meeting.approve")), 1)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
449
|
+
asItem(row).status === 2 ? (openBlock(), createBlock(unref(OLink), {
|
|
450
|
+
key: 3,
|
|
451
|
+
"hover-underline": false,
|
|
452
|
+
color: "primary",
|
|
453
|
+
onClick: ($event) => rejectItem(asItem(row))
|
|
454
|
+
}, {
|
|
455
|
+
default: withCtx(() => [
|
|
456
|
+
createTextVNode(toDisplayString(unref(t)("meeting.reject")), 1)
|
|
457
|
+
]),
|
|
458
|
+
_: 1
|
|
459
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
460
|
+
])
|
|
461
|
+
]),
|
|
462
|
+
_: 1
|
|
463
|
+
}, 8, ["data", "columns", "expanded-row-keys"]),
|
|
464
|
+
total.value > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
511
465
|
createVNode(unref(OPagination), {
|
|
512
466
|
total: total.value,
|
|
513
467
|
page: params.page,
|
|
@@ -518,10 +472,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
518
472
|
onChange: onPaginationChange
|
|
519
473
|
}, null, 8, ["total", "page", "page-size"])
|
|
520
474
|
])) : createCommentVNode("", true)
|
|
521
|
-
])) : (openBlock(), createElementBlock("div",
|
|
475
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
522
476
|
createVNode(unref(OCollapse), {
|
|
523
477
|
modelValue: expanded.value,
|
|
524
|
-
"onUpdate:modelValue": _cache[
|
|
478
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => expanded.value = $event),
|
|
525
479
|
accordion: unref(isPhone),
|
|
526
480
|
onChange: change
|
|
527
481
|
}, {
|
|
@@ -531,8 +485,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
531
485
|
return openBlock(), createElementBlock(Fragment, {
|
|
532
486
|
key: act.id
|
|
533
487
|
}, [
|
|
534
|
-
createElementVNode("div",
|
|
535
|
-
createElementVNode("p",
|
|
488
|
+
createElementVNode("div", _hoisted_7, [
|
|
489
|
+
createElementVNode("p", _hoisted_8, toDisplayString(act.title), 1),
|
|
536
490
|
act.is_delete !== 1 ? (openBlock(), createBlock(unref(OTag), {
|
|
537
491
|
key: 0,
|
|
538
492
|
color: "primary",
|
|
@@ -562,11 +516,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
562
516
|
value: act.id
|
|
563
517
|
}, {
|
|
564
518
|
title: withCtx(() => [
|
|
565
|
-
createElementVNode("div",
|
|
566
|
-
createElementVNode("p",
|
|
519
|
+
createElementVNode("div", _hoisted_9, [
|
|
520
|
+
createElementVNode("p", _hoisted_10, toDisplayString(act.sponsor), 1),
|
|
567
521
|
createElementVNode("p", null, toDisplayString(unref(dayjs)(act.create_time).format("YYYY/MM/DD HH:mm:ss")), 1)
|
|
568
522
|
]),
|
|
569
|
-
createElementVNode("div",
|
|
523
|
+
createElementVNode("div", _hoisted_11, [
|
|
570
524
|
act.status === 7 || act.is_delete ? (openBlock(), createBlock(unref(OLink), {
|
|
571
525
|
key: 0,
|
|
572
526
|
color: "danger",
|
|
@@ -614,7 +568,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
614
568
|
])
|
|
615
569
|
]),
|
|
616
570
|
default: withCtx(() => [
|
|
617
|
-
createElementVNode("div",
|
|
571
|
+
createElementVNode("div", _hoisted_12, [
|
|
618
572
|
createVNode(_sfc_main$1, {
|
|
619
573
|
show: expanded.value.includes(act.id),
|
|
620
574
|
data: act,
|
|
@@ -631,7 +585,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
631
585
|
]),
|
|
632
586
|
_: 1
|
|
633
587
|
}, 8, ["modelValue", "accordion"]),
|
|
634
|
-
total.value > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div",
|
|
588
|
+
total.value > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
635
589
|
createVNode(unref(OPagination), {
|
|
636
590
|
total: total.value,
|
|
637
591
|
page: params.page,
|
|
@@ -646,7 +600,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
646
600
|
])),
|
|
647
601
|
createVNode(unref(ODialog), {
|
|
648
602
|
visible: reviewVisible.value,
|
|
649
|
-
"onUpdate:visible": _cache[
|
|
603
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => reviewVisible.value = $event),
|
|
650
604
|
"phone-half-full": unref(lePadV),
|
|
651
605
|
"main-class": "handle-dialog-approval review-dialog",
|
|
652
606
|
actions: reviewActions.value
|
|
@@ -655,7 +609,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
655
609
|
createTextVNode(toDisplayString(digTitle.value), 1)
|
|
656
610
|
]),
|
|
657
611
|
default: withCtx(() => [
|
|
658
|
-
createElementVNode("div",
|
|
612
|
+
createElementVNode("div", _hoisted_14, [
|
|
659
613
|
createVNode(unref(OForm), {
|
|
660
614
|
model: form.value,
|
|
661
615
|
ref_key: "formRef",
|
|
@@ -679,7 +633,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
679
633
|
"max-length": 1e3,
|
|
680
634
|
"input-on-outlimit": false,
|
|
681
635
|
modelValue: form.value.reason,
|
|
682
|
-
"onUpdate:modelValue": _cache[
|
|
636
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.reason = $event)
|
|
683
637
|
}, null, 8, ["placeholder", "modelValue"])
|
|
684
638
|
]),
|
|
685
639
|
_: 1
|
|
@@ -693,7 +647,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
693
647
|
}, 8, ["visible", "phone-half-full", "actions"]),
|
|
694
648
|
createVNode(unref(ODialog), {
|
|
695
649
|
visible: cancelVisible.value,
|
|
696
|
-
"onUpdate:visible": _cache[
|
|
650
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => cancelVisible.value = $event),
|
|
697
651
|
"phone-half-full": unref(lePadV),
|
|
698
652
|
"main-class": "handle-dialog-approval cancel-dialog",
|
|
699
653
|
actions: cancelActions.value
|
|
@@ -704,7 +658,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
704
658
|
default: withCtx(() => {
|
|
705
659
|
var _a, _b;
|
|
706
660
|
return [
|
|
707
|
-
createElementVNode("div",
|
|
661
|
+
createElementVNode("div", _hoisted_15, toDisplayString(cancelStatus.value === 1 ? unref(t)("meeting.confirmCancelActivity", [(_a = currentRow.value) == null ? void 0 : _a.title]) : unref(t)("meeting.confirmDeleteActivity", [(_b = currentRow.value) == null ? void 0 : _b.title])), 1)
|
|
708
662
|
];
|
|
709
663
|
}),
|
|
710
664
|
_: 1
|