@bwg-ui/core 1.3.1 → 1.3.3
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/chunks/{CMSearchIntfGwP01-BWm9OqAH.js → CMSearchIntfGwP01-Co6lrDf9.js} +9 -9
- package/dist/chunks/CMSearchIntfGwP01-Do_ZDjmX.cjs +1 -0
- package/dist/chunks/{MenuReport-yYhMOHyq.js → MenuReport-BTtoDFz-.js} +146 -141
- package/dist/chunks/MenuReport-Bn5NyNel.cjs +1 -0
- package/dist/chunks/{common-components-coAoWxE9.js → common-components-0IMhPxxg.js} +11604 -10999
- package/dist/chunks/common-components-Csd3OioX.cjs +1109 -0
- package/dist/chunks/core-components-CX6NGtTh.cjs +1 -0
- package/dist/chunks/core-components-Ckwf4Rd7.js +1969 -0
- package/dist/chunks/layout-components-BMLp8YAy.cjs +38 -0
- package/dist/chunks/{layout-components-C1DG2B74.js → layout-components-DphZY34c.js} +954 -737
- package/dist/components/common/BwgDetail.d.ts.map +1 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgEmpSearch.d.ts +28 -0
- package/dist/components/core/BwgEmpSearch.d.ts.map +1 -0
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +22 -1846
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +13 -13
- package/dist/components/layout/AppWrapper.d.ts +2 -1
- package/dist/components/layout/AppWrapper.d.ts.map +1 -1
- package/dist/components/layout/BwgCoreLogin.d.ts +1 -2
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/BwgSessionNotice.d.ts +15 -0
- package/dist/components/layout/BwgSessionNotice.d.ts.map +1 -0
- package/dist/components/layout/BwgSsoLogin.d.ts +19 -0
- package/dist/components/layout/BwgSsoLogin.d.ts.map +1 -0
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableMenuTab.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/default/LoadingContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +16 -14
- package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +1 -1
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -1
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +160 -157
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +8 -3
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +416 -367
- package/dist/stores/loginStore.d.ts +55 -10
- package/dist/stores/loginStore.d.ts.map +1 -1
- package/dist/stores/menuViewStore.d.ts +6 -2
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/userStore.d.ts +1 -2
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +455 -454
- package/package.json +1 -1
- package/dist/chunks/CMSearchIntfGwP01-CihGc5Q1.cjs +0 -1
- package/dist/chunks/MenuReport-khjaUz1Q.cjs +0 -1
- package/dist/chunks/common-components-DletnDTf.cjs +0 -1109
- package/dist/chunks/layout-components-C6KeWPIu.cjs +0 -35
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as e, Fragment as k, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { AlertTwoTone as se, ReloadOutlined as ae, DeleteOutlined as
|
|
3
|
-
import { Form as d, Tag as oe, message as g, Row as x, Col as l, Space as D, Input as a, Splitter as W, Flex as
|
|
4
|
-
import
|
|
5
|
-
import { useRef as O, useState as b, useMemo as J, useEffect as
|
|
6
|
-
import { useUserStore as Ge, useMenuViewStore as
|
|
7
|
-
import { m as
|
|
8
|
-
import { createBwgGridRenderer as $, callService as
|
|
9
|
-
import {
|
|
10
|
-
import { e as
|
|
11
|
-
const { TextArea:
|
|
2
|
+
import { AlertTwoTone as se, ReloadOutlined as ae, DeleteOutlined as Oe, EyeFilled as Le, EditOutlined as Ve } from "@ant-design/icons";
|
|
3
|
+
import { Form as d, Tag as oe, message as g, Row as x, Col as l, Space as D, Input as a, Splitter as W, Flex as Ue, Progress as Ae, Button as z, List as H, Avatar as Ye, DatePicker as de } from "antd";
|
|
4
|
+
import je from "dayjs";
|
|
5
|
+
import { useRef as O, useState as b, useMemo as J, useEffect as M } from "react";
|
|
6
|
+
import { useUserStore as Ge, useMenuViewStore as qe } from "../stores/index.js";
|
|
7
|
+
import { m as Qe, d as L, S as We, h as He, n as Je, o as ce } from "./common-components-0IMhPxxg.js";
|
|
8
|
+
import { createBwgGridRenderer as $, callService as w, realFormat as K } from "../utils/index.js";
|
|
9
|
+
import { d as C, c as V, j as $e, u as Ke, b as Xe, i as X, k as me, a as Ze } from "./core-components-Ckwf4Rd7.js";
|
|
10
|
+
import { e as _e } from "./provider-VCa8UGvF.js";
|
|
11
|
+
const { TextArea: et } = a, U = [
|
|
12
12
|
{ label: "요청", value: "RQST" },
|
|
13
13
|
{ label: "문의", value: "INQR" }
|
|
14
14
|
// { label: '신고', value: 'RPRT' },
|
|
15
15
|
// { label: '건의', value: 'SGSN' },
|
|
16
|
-
],
|
|
16
|
+
], tt = {
|
|
17
17
|
INQR: "blue",
|
|
18
18
|
RQST: "green",
|
|
19
19
|
RPRT: "red",
|
|
@@ -24,47 +24,47 @@ const { TextArea: _e } = a, A = [
|
|
|
24
24
|
{ label: "처리중", value: "PROCESSING" },
|
|
25
25
|
{ label: "처리완료", value: "COMPLETED" },
|
|
26
26
|
{ label: "반려", value: "REJECTED" }
|
|
27
|
-
],
|
|
27
|
+
], rt = {
|
|
28
28
|
READY: "gray",
|
|
29
29
|
ASSIGNED: "blue",
|
|
30
30
|
PROCESSING: "yellow",
|
|
31
31
|
COMPLETED: "green",
|
|
32
32
|
REJECTED: "red"
|
|
33
|
-
},
|
|
33
|
+
}, pe = {
|
|
34
34
|
READY: 0,
|
|
35
35
|
ASSIGNED: 25,
|
|
36
36
|
PROCESSING: 50,
|
|
37
37
|
COMPLETED: 100,
|
|
38
38
|
REJECTED: 100
|
|
39
|
-
}, ht = ({ popup:
|
|
40
|
-
const { searchBoxRef:
|
|
39
|
+
}, ht = ({ popup: E, onClose: Z }) => {
|
|
40
|
+
const { searchBoxRef: S } = _e(), N = O(null), A = O(null), { user: B, hrInfo: he } = Ge(), { activeMenuItem: m } = qe(), [i] = d.useForm(), [_, ee] = b(!1), [te, re] = b(!1), [T, ge] = b(!1), [y, fe] = b(!1), [o, v] = b(!1), [c, I] = b(
|
|
41
41
|
"list"
|
|
42
42
|
);
|
|
43
43
|
b(null);
|
|
44
|
-
const F = O(null), [Y, ne] = b([]), [P, le] = b(""), [
|
|
44
|
+
const F = O(null), [Y, ne] = b([]), [P, le] = b(""), [j, nt] = b(!1), [ye, G] = b(15), q = O(null), xe = J(
|
|
45
45
|
() => $(
|
|
46
|
-
(t, r, s,
|
|
46
|
+
(t, r, s, p, h) => {
|
|
47
47
|
const f = t.getValue(r.index?.itemIndex, "type");
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */ e(oe, { color:
|
|
48
|
+
h.render(
|
|
49
|
+
/* @__PURE__ */ e(oe, { color: tt[f], children: U.find((R) => R.value === f)?.label })
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
53
|
[]
|
|
54
|
-
),
|
|
54
|
+
), be = J(
|
|
55
55
|
() => $(
|
|
56
|
-
(t, r, s,
|
|
56
|
+
(t, r, s, p, h) => {
|
|
57
57
|
const f = t.getValue(r.index?.itemIndex, "status");
|
|
58
|
-
|
|
59
|
-
/* @__PURE__ */ e(oe, { color:
|
|
58
|
+
h.render(
|
|
59
|
+
/* @__PURE__ */ e(oe, { color: rt[f], children: ue.find((R) => R.value === f)?.label })
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
63
|
[]
|
|
64
|
-
),
|
|
64
|
+
), Ce = J(
|
|
65
65
|
() => $(
|
|
66
|
-
(t, r, s,
|
|
67
|
-
t.getValue(r.index?.itemIndex, "urgentYn") === "Y" ?
|
|
66
|
+
(t, r, s, p, h) => {
|
|
67
|
+
t.getValue(r.index?.itemIndex, "urgentYn") === "Y" ? h.render(/* @__PURE__ */ e(se, { twoToneColor: "red" })) : h.render(/* @__PURE__ */ e(k, {}));
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
[]
|
|
@@ -108,6 +108,10 @@ const { TextArea: _e } = a, A = [
|
|
|
108
108
|
header: { text: "등록자" },
|
|
109
109
|
width: 100
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
fieldName: "rgstUserDeptNm",
|
|
113
|
+
visible: !1
|
|
114
|
+
},
|
|
111
115
|
{
|
|
112
116
|
fieldName: "rgstDt",
|
|
113
117
|
header: { text: "등록일자" },
|
|
@@ -153,24 +157,24 @@ const { TextArea: _e } = a, A = [
|
|
|
153
157
|
width: 100,
|
|
154
158
|
visible: !1
|
|
155
159
|
}
|
|
156
|
-
],
|
|
160
|
+
], we = {
|
|
157
161
|
onCellDblClicked: (t, r) => {
|
|
158
162
|
const s = r.itemIndex ?? -1;
|
|
159
163
|
if (s < 0) return;
|
|
160
|
-
const
|
|
161
|
-
console.log("🔍 그리드 셀 더블클릭 이벤트:",
|
|
162
|
-
const
|
|
163
|
-
...
|
|
164
|
+
const p = t.getValues(s);
|
|
165
|
+
console.log("🔍 그리드 셀 더블클릭 이벤트:", p);
|
|
166
|
+
const h = {
|
|
167
|
+
...p,
|
|
164
168
|
menuId: m?.menuId,
|
|
165
169
|
menuNm: m?.menuNm,
|
|
166
170
|
scrnId: m?.scrnId
|
|
167
171
|
};
|
|
168
|
-
i.setFieldsValue(
|
|
169
|
-
|
|
170
|
-
),
|
|
172
|
+
i.setFieldsValue(h), ge(h.rgstUserId === B?.userId), fe(
|
|
173
|
+
h.status === "COMPLETED" || h.status === "REJECTED"
|
|
174
|
+
), I("detail");
|
|
171
175
|
}
|
|
172
176
|
}, Q = () => {
|
|
173
|
-
i.resetFields(),
|
|
177
|
+
i.resetFields(), I("list"), u.SCMBoardMstr0001(1, 20);
|
|
174
178
|
}, ie = async (t) => {
|
|
175
179
|
ee(!0);
|
|
176
180
|
try {
|
|
@@ -182,19 +186,19 @@ const { TextArea: _e } = a, A = [
|
|
|
182
186
|
} finally {
|
|
183
187
|
ee(!1);
|
|
184
188
|
}
|
|
185
|
-
}, we = () => {
|
|
186
|
-
u.SCMBoardMstr0005();
|
|
187
189
|
}, Se = () => {
|
|
188
|
-
|
|
190
|
+
u.SCMBoardMstr0005();
|
|
189
191
|
}, Be = () => {
|
|
190
|
-
|
|
192
|
+
S?.current?.resetForm(), i.resetFields(), c === "new" ? I("list") : (I("list"), Z?.());
|
|
191
193
|
}, ve = () => {
|
|
192
|
-
(
|
|
193
|
-
}, Me = () => {
|
|
194
|
-
i.resetFields(), C("new");
|
|
194
|
+
S?.current?.resetForm(), i.resetFields(), I("list"), Z?.();
|
|
195
195
|
}, De = () => {
|
|
196
|
-
|
|
196
|
+
(c === "detail" || c === "new") && I("list");
|
|
197
|
+
}, Me = () => {
|
|
198
|
+
i.resetFields(), I("new");
|
|
197
199
|
}, Ee = () => {
|
|
200
|
+
console.log("댓글 수동 새로고침"), G(15);
|
|
201
|
+
}, Ne = () => {
|
|
198
202
|
if (!P.trim()) {
|
|
199
203
|
g.warning("댓글 상세내용 작성");
|
|
200
204
|
return;
|
|
@@ -205,27 +209,27 @@ const { TextArea: _e } = a, A = [
|
|
|
205
209
|
), le(""), setTimeout(() => {
|
|
206
210
|
F.current && (F.current.scrollTop = F.current.scrollHeight);
|
|
207
211
|
}, 100);
|
|
208
|
-
},
|
|
212
|
+
}, Pe = (t) => {
|
|
209
213
|
const r = Y.find((s) => s.id === t);
|
|
210
|
-
if (r && r.regUserId !==
|
|
214
|
+
if (r && r.regUserId !== B?.userId) {
|
|
211
215
|
g.error("본인이 작성한 댓글만 삭제할 수 있습니다.");
|
|
212
216
|
return;
|
|
213
217
|
}
|
|
214
218
|
u.SCMBoardDtls0003(i.getFieldValue("boardMstrId"), t);
|
|
215
219
|
};
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
M(() => {
|
|
221
|
+
E && setTimeout(() => {
|
|
218
222
|
u.SCMBoardMstr0001(1, 20);
|
|
219
223
|
}, 100);
|
|
220
|
-
}, [
|
|
221
|
-
const
|
|
224
|
+
}, [E]);
|
|
225
|
+
const Re = () => /* @__PURE__ */ n(L, { border: !1, children: [
|
|
222
226
|
/* @__PURE__ */ e(
|
|
223
|
-
|
|
227
|
+
We,
|
|
224
228
|
{
|
|
225
229
|
border: !0,
|
|
226
|
-
ref:
|
|
230
|
+
ref: S,
|
|
227
231
|
reqRows: /* @__PURE__ */ n(k, { children: [
|
|
228
|
-
/* @__PURE__ */ e(x, { gutter: [16, 8], style: { marginBottom: "8px" }, children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
|
|
232
|
+
/* @__PURE__ */ e(x, { gutter: [16, 8], style: { marginBottom: "8px" }, children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(C, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
|
|
229
233
|
/* @__PURE__ */ e(
|
|
230
234
|
d.Item,
|
|
231
235
|
{
|
|
@@ -258,12 +262,12 @@ const { TextArea: _e } = a, A = [
|
|
|
258
262
|
name: "type"
|
|
259
263
|
},
|
|
260
264
|
selectProps: {
|
|
261
|
-
options:
|
|
265
|
+
options: U
|
|
262
266
|
}
|
|
263
267
|
}
|
|
264
268
|
) }),
|
|
265
269
|
/* @__PURE__ */ e(l, { span: 12, children: /* @__PURE__ */ e(
|
|
266
|
-
|
|
270
|
+
$e,
|
|
267
271
|
{
|
|
268
272
|
itemProps: {
|
|
269
273
|
label: "등록일자",
|
|
@@ -275,7 +279,7 @@ const { TextArea: _e } = a, A = [
|
|
|
275
279
|
}
|
|
276
280
|
) }),
|
|
277
281
|
/* @__PURE__ */ e(l, { span: 6, children: /* @__PURE__ */ e(
|
|
278
|
-
|
|
282
|
+
Ke,
|
|
279
283
|
{
|
|
280
284
|
itemProps: {
|
|
281
285
|
name: "myArticle",
|
|
@@ -289,7 +293,7 @@ const { TextArea: _e } = a, A = [
|
|
|
289
293
|
) })
|
|
290
294
|
] }),
|
|
291
295
|
/* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
|
|
292
|
-
|
|
296
|
+
Xe,
|
|
293
297
|
{
|
|
294
298
|
itemProps: {
|
|
295
299
|
label: "제목 및 내용",
|
|
@@ -301,30 +305,30 @@ const { TextArea: _e } = a, A = [
|
|
|
301
305
|
}
|
|
302
306
|
),
|
|
303
307
|
/* @__PURE__ */ e(
|
|
304
|
-
|
|
308
|
+
He,
|
|
305
309
|
{
|
|
306
310
|
ref: q,
|
|
307
311
|
gridColumns: Ie,
|
|
308
|
-
gridEvents:
|
|
312
|
+
gridEvents: we,
|
|
309
313
|
gridOptions: {},
|
|
310
314
|
renderers: [
|
|
311
315
|
{
|
|
312
316
|
name: "tagType",
|
|
313
|
-
renderer:
|
|
317
|
+
renderer: xe
|
|
314
318
|
},
|
|
315
319
|
{
|
|
316
320
|
name: "statusTag",
|
|
317
|
-
renderer:
|
|
321
|
+
renderer: be
|
|
318
322
|
},
|
|
319
323
|
{
|
|
320
324
|
name: "alert",
|
|
321
|
-
renderer:
|
|
325
|
+
renderer: Ce
|
|
322
326
|
}
|
|
323
327
|
]
|
|
324
328
|
}
|
|
325
329
|
),
|
|
326
330
|
/* @__PURE__ */ e(
|
|
327
|
-
|
|
331
|
+
Je,
|
|
328
332
|
{
|
|
329
333
|
ref: N,
|
|
330
334
|
mode: "server",
|
|
@@ -334,7 +338,7 @@ const { TextArea: _e } = a, A = [
|
|
|
334
338
|
pageSizeOptions: [10, 20, 50, 100]
|
|
335
339
|
}
|
|
336
340
|
)
|
|
337
|
-
] }),
|
|
341
|
+
] }), Te = () => /* @__PURE__ */ n(W, { children: [
|
|
338
342
|
/* @__PURE__ */ e(
|
|
339
343
|
W.Panel,
|
|
340
344
|
{
|
|
@@ -361,12 +365,12 @@ const { TextArea: _e } = a, A = [
|
|
|
361
365
|
V,
|
|
362
366
|
{
|
|
363
367
|
itemProps: { name: "type", label: "구분" },
|
|
364
|
-
selectProps: { options:
|
|
368
|
+
selectProps: { options: U }
|
|
365
369
|
}
|
|
366
370
|
)
|
|
367
371
|
] }),
|
|
368
372
|
/* @__PURE__ */ n(l, { span: 16, children: [
|
|
369
|
-
/* @__PURE__ */ e(
|
|
373
|
+
/* @__PURE__ */ e(C, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { children: [
|
|
370
374
|
/* @__PURE__ */ e(
|
|
371
375
|
d.Item,
|
|
372
376
|
{
|
|
@@ -394,11 +398,11 @@ const { TextArea: _e } = a, A = [
|
|
|
394
398
|
] })
|
|
395
399
|
] }),
|
|
396
400
|
/* @__PURE__ */ n(x, { gutter: [16, 8], children: [
|
|
397
|
-
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(
|
|
401
|
+
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(C, { label: "작성자", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
|
|
398
402
|
/* @__PURE__ */ e(
|
|
399
403
|
d.Item,
|
|
400
404
|
{
|
|
401
|
-
name: "
|
|
405
|
+
name: "rgstUserDeptNm",
|
|
402
406
|
style: {
|
|
403
407
|
width: "40%",
|
|
404
408
|
marginBottom: 0,
|
|
@@ -446,15 +450,15 @@ const { TextArea: _e } = a, A = [
|
|
|
446
450
|
}
|
|
447
451
|
}
|
|
448
452
|
) }),
|
|
449
|
-
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ n(
|
|
453
|
+
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ n(Ue, { vertical: !0, gap: 2, children: [
|
|
450
454
|
/* @__PURE__ */ e("span", { style: { fontSize: "12px", color: "#000000E0" }, children: "진척률" }),
|
|
451
455
|
/* @__PURE__ */ e(
|
|
452
456
|
Ae,
|
|
453
457
|
{
|
|
454
|
-
percent:
|
|
458
|
+
percent: pe[i.getFieldValue(
|
|
455
459
|
"status"
|
|
456
460
|
)],
|
|
457
|
-
status:
|
|
461
|
+
status: pe[i.getFieldValue(
|
|
458
462
|
"status"
|
|
459
463
|
)] > 0 ? "active" : "normal",
|
|
460
464
|
size: "small",
|
|
@@ -470,7 +474,7 @@ const { TextArea: _e } = a, A = [
|
|
|
470
474
|
) })
|
|
471
475
|
] }),
|
|
472
476
|
/* @__PURE__ */ n(x, { gutter: [16, 8], children: [
|
|
473
|
-
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(
|
|
477
|
+
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(C, { label: "처리담당자", name: void 0, help: "", children: /* @__PURE__ */ n(D.Compact, { children: [
|
|
474
478
|
/* @__PURE__ */ e(
|
|
475
479
|
d.Item,
|
|
476
480
|
{
|
|
@@ -505,7 +509,7 @@ const { TextArea: _e } = a, A = [
|
|
|
505
509
|
) })
|
|
506
510
|
] }),
|
|
507
511
|
/* @__PURE__ */ e(x, { gutter: [16, 8], children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
|
|
508
|
-
|
|
512
|
+
C,
|
|
509
513
|
{
|
|
510
514
|
label: "제목",
|
|
511
515
|
name: "title",
|
|
@@ -570,9 +574,9 @@ const { TextArea: _e } = a, A = [
|
|
|
570
574
|
z,
|
|
571
575
|
{
|
|
572
576
|
type: "text",
|
|
573
|
-
icon: /* @__PURE__ */ e(ae, { spin:
|
|
574
|
-
onClick:
|
|
575
|
-
disabled:
|
|
577
|
+
icon: /* @__PURE__ */ e(ae, { spin: j || o }),
|
|
578
|
+
onClick: Ee,
|
|
579
|
+
disabled: j || o,
|
|
576
580
|
size: "small",
|
|
577
581
|
style: {
|
|
578
582
|
fontSize: "12px",
|
|
@@ -591,7 +595,7 @@ const { TextArea: _e } = a, A = [
|
|
|
591
595
|
right: "-4px",
|
|
592
596
|
fontSize: "10px",
|
|
593
597
|
fontWeight: "700",
|
|
594
|
-
color:
|
|
598
|
+
color: j ? "#8c8c8c" : "#1890ff",
|
|
595
599
|
minWidth: "14px",
|
|
596
600
|
height: "14px",
|
|
597
601
|
lineHeight: "14px",
|
|
@@ -599,7 +603,7 @@ const { TextArea: _e } = a, A = [
|
|
|
599
603
|
borderRadius: "50%",
|
|
600
604
|
pointerEvents: "none"
|
|
601
605
|
},
|
|
602
|
-
children:
|
|
606
|
+
children: ye
|
|
603
607
|
}
|
|
604
608
|
)
|
|
605
609
|
] })
|
|
@@ -664,7 +668,7 @@ const { TextArea: _e } = a, A = [
|
|
|
664
668
|
H.Item.Meta,
|
|
665
669
|
{
|
|
666
670
|
avatar: /* @__PURE__ */ e(
|
|
667
|
-
|
|
671
|
+
Ye,
|
|
668
672
|
{
|
|
669
673
|
size: 32,
|
|
670
674
|
style: {
|
|
@@ -721,14 +725,14 @@ const { TextArea: _e } = a, A = [
|
|
|
721
725
|
)
|
|
722
726
|
}
|
|
723
727
|
),
|
|
724
|
-
t.regUserId ===
|
|
728
|
+
t.regUserId === B?.userId && /* @__PURE__ */ e(
|
|
725
729
|
z,
|
|
726
730
|
{
|
|
727
731
|
type: "text",
|
|
728
732
|
danger: !0,
|
|
729
|
-
icon: /* @__PURE__ */ e(
|
|
733
|
+
icon: /* @__PURE__ */ e(Oe, { style: { fontSize: "12px" } }),
|
|
730
734
|
size: "small",
|
|
731
|
-
onClick: () =>
|
|
735
|
+
onClick: () => Pe(t.id),
|
|
732
736
|
disabled: o,
|
|
733
737
|
style: {
|
|
734
738
|
position: "absolute",
|
|
@@ -786,7 +790,7 @@ const { TextArea: _e } = a, A = [
|
|
|
786
790
|
}
|
|
787
791
|
) : /* @__PURE__ */ n(k, { children: [
|
|
788
792
|
/* @__PURE__ */ e("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ e(
|
|
789
|
-
|
|
793
|
+
et,
|
|
790
794
|
{
|
|
791
795
|
rows: 2,
|
|
792
796
|
placeholder: o ? "댓글 처리 중..." : "댓글을 입력하세요...",
|
|
@@ -824,7 +828,7 @@ const { TextArea: _e } = a, A = [
|
|
|
824
828
|
z,
|
|
825
829
|
{
|
|
826
830
|
type: "primary",
|
|
827
|
-
onClick:
|
|
831
|
+
onClick: Ne,
|
|
828
832
|
size: "small",
|
|
829
833
|
loading: o,
|
|
830
834
|
style: {
|
|
@@ -847,8 +851,8 @@ const { TextArea: _e } = a, A = [
|
|
|
847
851
|
]
|
|
848
852
|
}
|
|
849
853
|
) })
|
|
850
|
-
] }),
|
|
851
|
-
|
|
854
|
+
] }), Fe = () => /* @__PURE__ */ e(L, { children: /* @__PURE__ */ n(
|
|
855
|
+
Ze,
|
|
852
856
|
{
|
|
853
857
|
form: i,
|
|
854
858
|
onFinish: ie,
|
|
@@ -868,11 +872,11 @@ const { TextArea: _e } = a, A = [
|
|
|
868
872
|
label: "구분",
|
|
869
873
|
rules: [{ required: !0, message: "구분을 선택해주세요." }]
|
|
870
874
|
},
|
|
871
|
-
selectProps: { options:
|
|
875
|
+
selectProps: { options: U }
|
|
872
876
|
}
|
|
873
877
|
) }),
|
|
874
878
|
/* @__PURE__ */ n(l, { span: 16, children: [
|
|
875
|
-
/* @__PURE__ */ e(
|
|
879
|
+
/* @__PURE__ */ e(C, { label: "화면 정보", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
|
|
876
880
|
/* @__PURE__ */ e(
|
|
877
881
|
d.Item,
|
|
878
882
|
{
|
|
@@ -900,11 +904,11 @@ const { TextArea: _e } = a, A = [
|
|
|
900
904
|
] })
|
|
901
905
|
] }),
|
|
902
906
|
/* @__PURE__ */ n(x, { gutter: [16, 8], children: [
|
|
903
|
-
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(
|
|
907
|
+
/* @__PURE__ */ e(l, { span: 8, children: /* @__PURE__ */ e(C, { label: "작성자", name: void 0, children: /* @__PURE__ */ n(D.Compact, { style: { width: "100%" }, children: [
|
|
904
908
|
/* @__PURE__ */ e(
|
|
905
909
|
d.Item,
|
|
906
910
|
{
|
|
907
|
-
name: "
|
|
911
|
+
name: "rgstUserNm",
|
|
908
912
|
style: {
|
|
909
913
|
width: "40%",
|
|
910
914
|
marginBottom: 0,
|
|
@@ -918,14 +922,14 @@ const { TextArea: _e } = a, A = [
|
|
|
918
922
|
/* @__PURE__ */ e(
|
|
919
923
|
d.Item,
|
|
920
924
|
{
|
|
921
|
-
name: "
|
|
925
|
+
name: "rgstUserDeptNm",
|
|
922
926
|
style: { width: "60%", marginBottom: 0 },
|
|
923
927
|
children: /* @__PURE__ */ e(a, { readOnly: !0 })
|
|
924
928
|
}
|
|
925
929
|
)
|
|
926
930
|
] }) }) }),
|
|
927
931
|
/* @__PURE__ */ e(l, { span: 6, children: /* @__PURE__ */ e(
|
|
928
|
-
|
|
932
|
+
C,
|
|
929
933
|
{
|
|
930
934
|
label: "작성일자",
|
|
931
935
|
name: "rgstDt",
|
|
@@ -934,7 +938,7 @@ const { TextArea: _e } = a, A = [
|
|
|
934
938
|
}
|
|
935
939
|
) }),
|
|
936
940
|
/* @__PURE__ */ e(l, { span: 6, children: /* @__PURE__ */ e(
|
|
937
|
-
|
|
941
|
+
C,
|
|
938
942
|
{
|
|
939
943
|
label: "마감요청일",
|
|
940
944
|
name: "dueDate",
|
|
@@ -950,7 +954,7 @@ const { TextArea: _e } = a, A = [
|
|
|
950
954
|
) })
|
|
951
955
|
] }),
|
|
952
956
|
/* @__PURE__ */ e(x, { gutter: [16, 8], children: /* @__PURE__ */ e(l, { span: 24, children: /* @__PURE__ */ e(
|
|
953
|
-
|
|
957
|
+
C,
|
|
954
958
|
{
|
|
955
959
|
label: "제목",
|
|
956
960
|
name: "title",
|
|
@@ -968,13 +972,13 @@ const { TextArea: _e } = a, A = [
|
|
|
968
972
|
isEditing: te,
|
|
969
973
|
title: {
|
|
970
974
|
title: /* @__PURE__ */ n(k, { children: [
|
|
971
|
-
/* @__PURE__ */ e(
|
|
975
|
+
/* @__PURE__ */ e(Ve, { style: { marginRight: "5px" } }),
|
|
972
976
|
" 상세내용 작성"
|
|
973
977
|
] }),
|
|
974
978
|
children: /* @__PURE__ */ e(
|
|
975
979
|
z,
|
|
976
980
|
{
|
|
977
|
-
icon: /* @__PURE__ */ e(
|
|
981
|
+
icon: /* @__PURE__ */ e(Le, {}),
|
|
978
982
|
onClick: () => re(!te),
|
|
979
983
|
children: "미리보기"
|
|
980
984
|
}
|
|
@@ -986,53 +990,54 @@ const { TextArea: _e } = a, A = [
|
|
|
986
990
|
]
|
|
987
991
|
}
|
|
988
992
|
) });
|
|
989
|
-
|
|
993
|
+
M(() => {
|
|
990
994
|
c === "new" && (re(!0), i.setFieldsValue({
|
|
991
995
|
type: "INQR",
|
|
992
996
|
// 기본값: 문의
|
|
993
997
|
menuId: m?.menuId,
|
|
994
998
|
menuNm: m?.menuNm,
|
|
995
999
|
scrnId: m?.scrnId,
|
|
996
|
-
rgstUserId:
|
|
997
|
-
rgstUserNm:
|
|
998
|
-
|
|
1000
|
+
rgstUserId: B?.userId,
|
|
1001
|
+
rgstUserNm: B?.userNm,
|
|
1002
|
+
rgstUserDeptNm: he?.deptNm,
|
|
1003
|
+
rgstDt: je(),
|
|
999
1004
|
// 오늘 날짜 자동 설정
|
|
1000
1005
|
content: ""
|
|
1001
1006
|
// 에디터 초기화
|
|
1002
1007
|
}));
|
|
1003
|
-
}, [c, i, m,
|
|
1008
|
+
}, [c, i, m, B]), M(() => {
|
|
1004
1009
|
if (c === "detail" && !y) {
|
|
1005
1010
|
const t = setInterval(() => {
|
|
1006
|
-
|
|
1011
|
+
G((r) => r <= 1 ? (console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"), u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")), 15) : r - 1);
|
|
1007
1012
|
}, 1e3);
|
|
1008
1013
|
return u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")), () => {
|
|
1009
1014
|
console.log("🧹 댓글 인터벌 정리"), clearInterval(t);
|
|
1010
1015
|
};
|
|
1011
1016
|
} else c === "detail" && y && (console.log("📋 완료된 게시글 - 댓글 조회만"), u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")));
|
|
1012
|
-
}, [c, y, i]),
|
|
1013
|
-
console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),
|
|
1014
|
-
}, []),
|
|
1015
|
-
c === "list" && m && (
|
|
1017
|
+
}, [c, y, i]), M(() => () => {
|
|
1018
|
+
console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"), A.current && (clearInterval(A.current), A.current = null);
|
|
1019
|
+
}, []), M(() => {
|
|
1020
|
+
c === "list" && m && (S?.current?.setFormData({
|
|
1016
1021
|
menuId: m?.menuId,
|
|
1017
1022
|
menuNm: m?.menuNm
|
|
1018
1023
|
}), u.SCMBoardMstr0001(1, 20));
|
|
1019
|
-
}, [c, m]),
|
|
1020
|
-
|
|
1024
|
+
}, [c, m]), M(() => {
|
|
1025
|
+
E && m && S?.current?.setFormData({
|
|
1021
1026
|
menuId: m?.menuId,
|
|
1022
1027
|
menuNm: m?.menuNm
|
|
1023
1028
|
});
|
|
1024
|
-
}, [
|
|
1029
|
+
}, [E, m]);
|
|
1025
1030
|
const u = {
|
|
1026
1031
|
SCMBoardMstr0001: async (t, r) => {
|
|
1027
|
-
const s = t || N.current?.currentPage || 1,
|
|
1028
|
-
...
|
|
1032
|
+
const s = t || N.current?.currentPage || 1, p = r || N.current?.pageSize || 20, h = {
|
|
1033
|
+
...S?.current?.getFormData(),
|
|
1029
1034
|
pageNum: s,
|
|
1030
1035
|
// 1-based
|
|
1031
|
-
pageCount:
|
|
1036
|
+
pageCount: p
|
|
1032
1037
|
};
|
|
1033
|
-
console.log("🔍 서버 모드 페이징 요청:",
|
|
1038
|
+
console.log("🔍 서버 모드 페이징 요청:", h);
|
|
1034
1039
|
try {
|
|
1035
|
-
const f = await
|
|
1040
|
+
const f = await w("SCMBoardMstr0001", h, {
|
|
1036
1041
|
isPopup: !0
|
|
1037
1042
|
});
|
|
1038
1043
|
if (f && f.pageList) {
|
|
@@ -1049,7 +1054,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1049
1054
|
* @param values
|
|
1050
1055
|
*/
|
|
1051
1056
|
SCMBoardMstr0003: (t) => {
|
|
1052
|
-
|
|
1057
|
+
w(
|
|
1053
1058
|
"SCMBoardMstr0003",
|
|
1054
1059
|
{
|
|
1055
1060
|
...t,
|
|
@@ -1067,7 +1072,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1067
1072
|
* @param values
|
|
1068
1073
|
*/
|
|
1069
1074
|
SCMBoardMstr0004: (t) => {
|
|
1070
|
-
|
|
1075
|
+
w(
|
|
1071
1076
|
"SCMBoardMstr0004",
|
|
1072
1077
|
{
|
|
1073
1078
|
boardMstrId: i.getFieldValue("boardMstrId"),
|
|
@@ -1081,7 +1086,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1081
1086
|
});
|
|
1082
1087
|
},
|
|
1083
1088
|
SCMBoardMstr0005: () => {
|
|
1084
|
-
|
|
1089
|
+
w(
|
|
1085
1090
|
"SCMBoardMstr0005",
|
|
1086
1091
|
{ boardMstrId: i.getFieldValue("boardMstrId") },
|
|
1087
1092
|
{ isPopup: !0 }
|
|
@@ -1095,7 +1100,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1095
1100
|
* @returns 댓글 목록
|
|
1096
1101
|
*/
|
|
1097
1102
|
SCMBoardDtls0001: (t) => {
|
|
1098
|
-
|
|
1103
|
+
v(!0), w(
|
|
1099
1104
|
"SCMBoardDtls0001",
|
|
1100
1105
|
{
|
|
1101
1106
|
boardMstrId: t
|
|
@@ -1103,12 +1108,12 @@ const { TextArea: _e } = a, A = [
|
|
|
1103
1108
|
{ isPopup: !0, showLoading: !1 }
|
|
1104
1109
|
).then((r) => {
|
|
1105
1110
|
if (r && r.subList) {
|
|
1106
|
-
const s = r.subList.map((
|
|
1107
|
-
id:
|
|
1108
|
-
author:
|
|
1109
|
-
regUserId:
|
|
1110
|
-
content:
|
|
1111
|
-
regDt:
|
|
1111
|
+
const s = r.subList.map((p) => ({
|
|
1112
|
+
id: p.seq,
|
|
1113
|
+
author: p.userNm || p.regUserId,
|
|
1114
|
+
regUserId: p.regUserId,
|
|
1115
|
+
content: p.content,
|
|
1116
|
+
regDt: p.regDt
|
|
1112
1117
|
}));
|
|
1113
1118
|
ne(s);
|
|
1114
1119
|
} else
|
|
@@ -1116,7 +1121,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1116
1121
|
}).catch((r) => {
|
|
1117
1122
|
console.error("게시글 댓글 목록 조회 실패:", r), g.error("댓글 목록 조회 중 오류가 발생했습니다.");
|
|
1118
1123
|
}).finally(() => {
|
|
1119
|
-
|
|
1124
|
+
v(!1), G(15);
|
|
1120
1125
|
});
|
|
1121
1126
|
},
|
|
1122
1127
|
/**
|
|
@@ -1127,7 +1132,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1127
1132
|
* @returns
|
|
1128
1133
|
*/
|
|
1129
1134
|
SCMBoardDtls0002: (t, r) => {
|
|
1130
|
-
|
|
1135
|
+
v(!0), w(
|
|
1131
1136
|
"SCMBoardDtls0002",
|
|
1132
1137
|
{
|
|
1133
1138
|
boardMstrId: t,
|
|
@@ -1139,7 +1144,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1139
1144
|
}).catch((s) => {
|
|
1140
1145
|
g.error("댓글 등록 중 오류가 발생했습니다.");
|
|
1141
1146
|
}).finally(() => {
|
|
1142
|
-
|
|
1147
|
+
v(!1);
|
|
1143
1148
|
});
|
|
1144
1149
|
},
|
|
1145
1150
|
/**
|
|
@@ -1149,7 +1154,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1149
1154
|
* @returns
|
|
1150
1155
|
*/
|
|
1151
1156
|
SCMBoardDtls0003: (t, r) => {
|
|
1152
|
-
|
|
1157
|
+
v(!0), w(
|
|
1153
1158
|
"SCMBoardDtls0003",
|
|
1154
1159
|
{
|
|
1155
1160
|
boardMstrId: t,
|
|
@@ -1161,10 +1166,10 @@ const { TextArea: _e } = a, A = [
|
|
|
1161
1166
|
}).catch((s) => {
|
|
1162
1167
|
g.error("댓글 삭제 중 오류가 발생했습니다.");
|
|
1163
1168
|
}).finally(() => {
|
|
1164
|
-
|
|
1169
|
+
v(!1);
|
|
1165
1170
|
});
|
|
1166
1171
|
}
|
|
1167
|
-
},
|
|
1172
|
+
}, ke = () => {
|
|
1168
1173
|
switch (c) {
|
|
1169
1174
|
case "list":
|
|
1170
1175
|
return [
|
|
@@ -1188,7 +1193,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1188
1193
|
id: "BACK",
|
|
1189
1194
|
label: "뒤로",
|
|
1190
1195
|
type: "default",
|
|
1191
|
-
onClick:
|
|
1196
|
+
onClick: De
|
|
1192
1197
|
},
|
|
1193
1198
|
{
|
|
1194
1199
|
id: "EDIT",
|
|
@@ -1202,7 +1207,7 @@ const { TextArea: _e } = a, A = [
|
|
|
1202
1207
|
label: "삭제",
|
|
1203
1208
|
type: "default",
|
|
1204
1209
|
disabled: !T || y,
|
|
1205
|
-
onClick:
|
|
1210
|
+
onClick: Se
|
|
1206
1211
|
}
|
|
1207
1212
|
];
|
|
1208
1213
|
case "new":
|
|
@@ -1218,24 +1223,24 @@ const { TextArea: _e } = a, A = [
|
|
|
1218
1223
|
id: "CANCEL",
|
|
1219
1224
|
label: "취소",
|
|
1220
1225
|
type: "default",
|
|
1221
|
-
onClick:
|
|
1226
|
+
onClick: Be
|
|
1222
1227
|
}
|
|
1223
1228
|
];
|
|
1224
1229
|
default:
|
|
1225
1230
|
return [];
|
|
1226
1231
|
}
|
|
1227
|
-
},
|
|
1232
|
+
}, ze = {};
|
|
1228
1233
|
return /* @__PURE__ */ n(
|
|
1229
|
-
|
|
1234
|
+
Qe,
|
|
1230
1235
|
{
|
|
1231
|
-
popup:
|
|
1232
|
-
buttons:
|
|
1233
|
-
popupEvent:
|
|
1234
|
-
onClose:
|
|
1236
|
+
popup: E,
|
|
1237
|
+
buttons: ke(),
|
|
1238
|
+
popupEvent: ze,
|
|
1239
|
+
onClose: ve,
|
|
1235
1240
|
children: [
|
|
1236
|
-
c === "list" &&
|
|
1237
|
-
c === "detail" &&
|
|
1238
|
-
c === "new" &&
|
|
1241
|
+
c === "list" && Re(),
|
|
1242
|
+
c === "detail" && Te(),
|
|
1243
|
+
c === "new" && Fe()
|
|
1239
1244
|
]
|
|
1240
1245
|
}
|
|
1241
1246
|
);
|