aq-fe-framework 0.1.314 → 0.1.316
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-MLYVD4EV.mjs → chunk-FUHOV7NB.mjs} +30 -1
- package/dist/{chunk-JIPPFPV6.mjs → chunk-PSV5MULK.mjs} +4 -4
- package/dist/{chunk-QPNYGFTI.mjs → chunk-YJ32RSH2.mjs} +7 -2
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.d.mts +55 -103
- package/dist/modules-features/index.mjs +908 -1176
- package/package.json +1 -1
@@ -6,12 +6,23 @@ import {
|
|
6
6
|
utils_converter_enumToSelectOptions,
|
7
7
|
utils_file_fileToAQDocumentType
|
8
8
|
} from "../chunk-VECMRDKG.mjs";
|
9
|
+
import {
|
10
|
+
const_object_documentTypes
|
11
|
+
} from "../chunk-GFEMKKFH.mjs";
|
12
|
+
import {
|
13
|
+
MyButton,
|
14
|
+
MyTextInput
|
15
|
+
} from "../chunk-PSV5MULK.mjs";
|
16
|
+
import {
|
17
|
+
enum_emailConfigModule
|
18
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
19
|
+
import "../chunk-K6S7R6LU.mjs";
|
9
20
|
import {
|
10
21
|
F_authenticate_Logout,
|
11
22
|
MyActionIconDelete,
|
12
23
|
MyActionIconUpdate,
|
13
24
|
MyBoxesBackground,
|
14
|
-
MyButton,
|
25
|
+
MyButton as MyButton2,
|
15
26
|
MyButtonCreate,
|
16
27
|
MyButtonModal,
|
17
28
|
MyButtonViewPDF,
|
@@ -25,20 +36,12 @@ import {
|
|
25
36
|
MyPageContent,
|
26
37
|
MySelect,
|
27
38
|
MyTab,
|
28
|
-
MyTextInput,
|
39
|
+
MyTextInput as MyTextInput2,
|
29
40
|
groupToTwoLevels,
|
30
|
-
useS_BasicAppShell,
|
31
41
|
useS_authenticate,
|
32
42
|
utils_layout_getItemsWithoutLinks
|
33
|
-
} from "../chunk-
|
43
|
+
} from "../chunk-FUHOV7NB.mjs";
|
34
44
|
import "../chunk-5U2JSHSJ.mjs";
|
35
|
-
import {
|
36
|
-
const_object_documentTypes
|
37
|
-
} from "../chunk-GFEMKKFH.mjs";
|
38
|
-
import {
|
39
|
-
MyButton as MyButton2,
|
40
|
-
MyTextInput as MyTextInput2
|
41
|
-
} from "../chunk-JIPPFPV6.mjs";
|
42
45
|
import {
|
43
46
|
MyFlexColumn,
|
44
47
|
MyFlexRow
|
@@ -46,10 +49,6 @@ import {
|
|
46
49
|
import {
|
47
50
|
const_object_colors
|
48
51
|
} from "../chunk-NWBLJ3W3.mjs";
|
49
|
-
import {
|
50
|
-
enum_emailConfigModule
|
51
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
52
|
-
import "../chunk-K6S7R6LU.mjs";
|
53
52
|
import {
|
54
53
|
baseAxios_default,
|
55
54
|
createBaseApi,
|
@@ -59,7 +58,7 @@ import {
|
|
59
58
|
useMyRouter,
|
60
59
|
useQ_AQ_GetAQModule,
|
61
60
|
useQ_SkillCenter_GetAll
|
62
|
-
} from "../chunk-
|
61
|
+
} from "../chunk-YJ32RSH2.mjs";
|
63
62
|
import {
|
64
63
|
utils_notification_show
|
65
64
|
} from "../chunk-7ZCOFATU.mjs";
|
@@ -118,12 +117,13 @@ function F_accountManagement_ChangePermission({ user }) {
|
|
118
117
|
queryKey: [`F1_1ChangePermission`],
|
119
118
|
queryFn: async () => {
|
120
119
|
const response = await baseAxios_default.get("/Role/GetAdminRole");
|
120
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData;
|
121
121
|
return response.data.data;
|
122
122
|
}
|
123
123
|
});
|
124
124
|
const mutation = useMutation({
|
125
125
|
mutationFn: async (roleIds) => {
|
126
|
-
const res = await baseAxios_default.post("/Role/AddUser?userId=" + user.id, roleIds);
|
126
|
+
const res = await baseAxios_default.post("/Role/AddUser?userId=" + (user == null ? void 0 : user.id), roleIds);
|
127
127
|
return res;
|
128
128
|
}
|
129
129
|
});
|
@@ -137,6 +137,11 @@ function F_accountManagement_ChangePermission({ user }) {
|
|
137
137
|
[]
|
138
138
|
);
|
139
139
|
function handleSave() {
|
140
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
141
|
+
utils_notification_show({ crudType: "update" });
|
142
|
+
disc[1].close();
|
143
|
+
return;
|
144
|
+
}
|
140
145
|
mutation.mutate(Object.keys(rowSelection).map(Number), {
|
141
146
|
onSuccess: () => {
|
142
147
|
utils_notification_show({ crudType: "update" });
|
@@ -147,7 +152,8 @@ function F_accountManagement_ChangePermission({ user }) {
|
|
147
152
|
}
|
148
153
|
useEffect(() => {
|
149
154
|
var _a;
|
150
|
-
|
155
|
+
if ((user == null ? void 0 : user.roles) == void 0) return;
|
156
|
+
const result = (_a = user == null ? void 0 : user.roles) == null ? void 0 : _a.reduce((acc, item) => {
|
151
157
|
if (item.id !== void 0) {
|
152
158
|
acc[item.id] = true;
|
153
159
|
}
|
@@ -165,15 +171,15 @@ function F_accountManagement_ChangePermission({ user }) {
|
|
165
171
|
children: /* @__PURE__ */ jsxs(Table.Tbody, { children: [
|
166
172
|
/* @__PURE__ */ jsxs(Table.Tr, { children: [
|
167
173
|
/* @__PURE__ */ jsx(Table.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
168
|
-
/* @__PURE__ */ jsx(Table.Td, { children: user.fullName })
|
174
|
+
/* @__PURE__ */ jsx(Table.Td, { children: user == null ? void 0 : user.fullName })
|
169
175
|
] }),
|
170
176
|
/* @__PURE__ */ jsxs(Table.Tr, { children: [
|
171
177
|
/* @__PURE__ */ jsx(Table.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
172
|
-
/* @__PURE__ */ jsx(Table.Td, { children: user.userName })
|
178
|
+
/* @__PURE__ */ jsx(Table.Td, { children: user == null ? void 0 : user.userName })
|
173
179
|
] }),
|
174
180
|
/* @__PURE__ */ jsxs(Table.Tr, { children: [
|
175
181
|
/* @__PURE__ */ jsx(Table.Th, { children: "Email:" }),
|
176
|
-
/* @__PURE__ */ jsx(Table.Td, { children: user.email })
|
182
|
+
/* @__PURE__ */ jsx(Table.Td, { children: user == null ? void 0 : user.email })
|
177
183
|
] })
|
178
184
|
] })
|
179
185
|
}
|
@@ -201,12 +207,18 @@ function F_accountManagement_ChangePermission({ user }) {
|
|
201
207
|
}
|
202
208
|
},
|
203
209
|
columns: permissionColumns,
|
204
|
-
data: query.data
|
210
|
+
data: query.data || []
|
205
211
|
}
|
206
212
|
) }),
|
207
213
|
/* @__PURE__ */ jsx(Group, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx(Button, { onClick: handleSave, children: "L\u01B0u" }) })
|
208
214
|
] });
|
209
215
|
}
|
216
|
+
var mockData = [
|
217
|
+
{ id: 1, code: "GV", name: "Gi\u1EA3ng vi\xEAn" },
|
218
|
+
{ id: 2, code: "STU", name: "Student" },
|
219
|
+
{ id: 3, code: "FACU", name: "Faculty" },
|
220
|
+
{ id: 4, code: "ADMIN", name: "Admin" }
|
221
|
+
];
|
210
222
|
|
211
223
|
// src/modules-features/admin/core/accountManagement/F_accountManagement_Create.tsx
|
212
224
|
import { MultiSelect } from "@mantine/core";
|
@@ -248,12 +260,12 @@ function F_accountManagement_Create() {
|
|
248
260
|
}));
|
249
261
|
}
|
250
262
|
return /* @__PURE__ */ jsxs2(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
251
|
-
/* @__PURE__ */ jsx2(
|
252
|
-
/* @__PURE__ */ jsx2(
|
253
|
-
/* @__PURE__ */ jsx2(
|
254
|
-
/* @__PURE__ */ jsx2(
|
255
|
-
/* @__PURE__ */ jsx2(
|
256
|
-
/* @__PURE__ */ jsx2(
|
263
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
264
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
265
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
266
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
267
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
268
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
257
269
|
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx2(
|
258
270
|
MultiSelect,
|
259
271
|
{
|
@@ -294,7 +306,9 @@ function F_accountManagement_Delete({ id, code }) {
|
|
294
306
|
MyActionIconDelete,
|
295
307
|
{
|
296
308
|
contextData: code,
|
297
|
-
onSubmit:
|
309
|
+
onSubmit: () => {
|
310
|
+
return baseAxios_default.post(ENDPOINT2, { id });
|
311
|
+
}
|
298
312
|
}
|
299
313
|
);
|
300
314
|
}
|
@@ -330,11 +344,11 @@ function F_accountManagement_Update({ user }) {
|
|
330
344
|
})
|
331
345
|
);
|
332
346
|
}, children: /* @__PURE__ */ jsxs3(MyFlexColumn, { children: [
|
333
|
-
/* @__PURE__ */ jsx4(
|
334
|
-
/* @__PURE__ */ jsx4(
|
335
|
-
/* @__PURE__ */ jsx4(
|
336
|
-
/* @__PURE__ */ jsx4(
|
337
|
-
/* @__PURE__ */ jsx4(
|
347
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
348
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
349
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
350
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
351
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
338
352
|
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx4(
|
339
353
|
MultiSelect2,
|
340
354
|
{
|
@@ -385,10 +399,13 @@ function F_accountManagement_Read() {
|
|
385
399
|
const store = useS_accountManagement();
|
386
400
|
const AllUserQuery = useMyReactQuery({
|
387
401
|
queryKey: ["AllUserQuery", paginationState[0].pageIndex + 1, paginationState[0].pageSize],
|
388
|
-
axiosFn: async () =>
|
389
|
-
|
390
|
-
|
391
|
-
|
402
|
+
axiosFn: async () => {
|
403
|
+
return apiData_Account.getAdminAccount({
|
404
|
+
pageNumber: paginationState[0].pageIndex + 1,
|
405
|
+
pageSize: paginationState[0].pageSize
|
406
|
+
});
|
407
|
+
},
|
408
|
+
mockData: mockUserData
|
392
409
|
});
|
393
410
|
const getTotalAccount = useMyReactQuery({
|
394
411
|
queryKey: ["getTotalAccount"],
|
@@ -459,6 +476,33 @@ function F_accountManagement_Read() {
|
|
459
476
|
}
|
460
477
|
);
|
461
478
|
}
|
479
|
+
var mockUserData = [
|
480
|
+
{
|
481
|
+
userName: "nguyenvana",
|
482
|
+
fullName: "Nguy\u1EC5n V\u0103n A",
|
483
|
+
email: "vana@example.com"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
userName: "tranthib",
|
487
|
+
fullName: "Tr\u1EA7n Th\u1ECB B",
|
488
|
+
email: "thib@example.com"
|
489
|
+
},
|
490
|
+
{
|
491
|
+
userName: "leminhc",
|
492
|
+
fullName: "L\xEA Minh C",
|
493
|
+
email: "minhc@example.com"
|
494
|
+
},
|
495
|
+
{
|
496
|
+
userName: "phamthid",
|
497
|
+
fullName: "Ph\u1EA1m Th\u1ECB D",
|
498
|
+
email: "thid@example.com"
|
499
|
+
},
|
500
|
+
{
|
501
|
+
userName: "doanvanh",
|
502
|
+
fullName: "Do\xE3n V\u0103n H",
|
503
|
+
email: "vanh@example.com"
|
504
|
+
}
|
505
|
+
];
|
462
506
|
|
463
507
|
// src/modules-features/admin/core/accountManagement/F_accountManagement.tsx
|
464
508
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
@@ -561,7 +605,7 @@ function F_core12196_Update({
|
|
561
605
|
},
|
562
606
|
children: [
|
563
607
|
/* @__PURE__ */ jsx9(
|
564
|
-
|
608
|
+
MyTextInput2,
|
565
609
|
__spreadValues({
|
566
610
|
withAsterisk: true,
|
567
611
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -575,7 +619,7 @@ function F_core12196_Update({
|
|
575
619
|
}, form.getInputProps("promulgateDate"))
|
576
620
|
),
|
577
621
|
/* @__PURE__ */ jsx9(
|
578
|
-
|
622
|
+
MyTextInput2,
|
579
623
|
__spreadValues({
|
580
624
|
withAsterisk: true,
|
581
625
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -744,7 +788,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
744
788
|
},
|
745
789
|
children: [
|
746
790
|
/* @__PURE__ */ jsx11(
|
747
|
-
|
791
|
+
MyTextInput2,
|
748
792
|
__spreadValues({
|
749
793
|
withAsterisk: true,
|
750
794
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -758,7 +802,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
758
802
|
}, form.getInputProps("promulgateDate"))
|
759
803
|
),
|
760
804
|
/* @__PURE__ */ jsx11(
|
761
|
-
|
805
|
+
MyTextInput2,
|
762
806
|
__spreadValues({
|
763
807
|
withAsterisk: true,
|
764
808
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -846,20 +890,20 @@ function F_core16209_Create({
|
|
846
890
|
}, form.getInputProps("meetingDate"))
|
847
891
|
),
|
848
892
|
/* @__PURE__ */ jsx13(
|
849
|
-
|
893
|
+
MyTextInput2,
|
850
894
|
__spreadValues({
|
851
895
|
withAsterisk: true,
|
852
896
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
853
897
|
}, form.getInputProps("departmentName"))
|
854
898
|
),
|
855
899
|
/* @__PURE__ */ jsx13(
|
856
|
-
|
900
|
+
MyTextInput2,
|
857
901
|
__spreadValues({
|
858
902
|
withAsterisk: true,
|
859
903
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
860
904
|
}, form.getInputProps("description"))
|
861
905
|
),
|
862
|
-
/* @__PURE__ */ jsx13(
|
906
|
+
/* @__PURE__ */ jsx13(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
863
907
|
/* @__PURE__ */ jsx13(
|
864
908
|
MyDateInput,
|
865
909
|
__spreadValues({
|
@@ -947,20 +991,20 @@ function F_core16209_Update({ values }) {
|
|
947
991
|
}, form.getInputProps("meetingDate"))
|
948
992
|
),
|
949
993
|
/* @__PURE__ */ jsx15(
|
950
|
-
|
994
|
+
MyTextInput2,
|
951
995
|
__spreadValues({
|
952
996
|
withAsterisk: true,
|
953
997
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
954
998
|
}, form.getInputProps("departmentName"))
|
955
999
|
),
|
956
1000
|
/* @__PURE__ */ jsx15(
|
957
|
-
|
1001
|
+
MyTextInput2,
|
958
1002
|
__spreadValues({
|
959
1003
|
withAsterisk: true,
|
960
1004
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
961
1005
|
}, form.getInputProps("description"))
|
962
1006
|
),
|
963
|
-
/* @__PURE__ */ jsx15(
|
1007
|
+
/* @__PURE__ */ jsx15(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
964
1008
|
/* @__PURE__ */ jsx15(
|
965
1009
|
MyDateInput,
|
966
1010
|
__spreadValues({
|
@@ -1076,8 +1120,8 @@ function F_core18256_Create({ documentType }) {
|
|
1076
1120
|
}
|
1077
1121
|
});
|
1078
1122
|
return /* @__PURE__ */ jsxs12(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
1079
|
-
/* @__PURE__ */ jsx17(
|
1080
|
-
/* @__PURE__ */ jsx17(
|
1123
|
+
/* @__PURE__ */ jsx17(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1124
|
+
/* @__PURE__ */ jsx17(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
1081
1125
|
] });
|
1082
1126
|
}
|
1083
1127
|
|
@@ -1100,8 +1144,8 @@ function F_core18256_Update({ values }) {
|
|
1100
1144
|
initialValues: values
|
1101
1145
|
});
|
1102
1146
|
return /* @__PURE__ */ jsxs13(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
1103
|
-
/* @__PURE__ */ jsx19(
|
1104
|
-
/* @__PURE__ */ jsx19(
|
1147
|
+
/* @__PURE__ */ jsx19(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1148
|
+
/* @__PURE__ */ jsx19(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
1105
1149
|
] });
|
1106
1150
|
}
|
1107
1151
|
|
@@ -1195,7 +1239,7 @@ function F_core26965_Create({
|
|
1195
1239
|
},
|
1196
1240
|
children: [
|
1197
1241
|
/* @__PURE__ */ jsx22(
|
1198
|
-
|
1242
|
+
MyTextInput2,
|
1199
1243
|
__spreadValues({
|
1200
1244
|
withAsterisk: true,
|
1201
1245
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1209,7 +1253,7 @@ function F_core26965_Create({
|
|
1209
1253
|
}, form.getInputProps("promulgateDate"))
|
1210
1254
|
),
|
1211
1255
|
/* @__PURE__ */ jsx22(
|
1212
|
-
|
1256
|
+
MyTextInput2,
|
1213
1257
|
__spreadValues({
|
1214
1258
|
withAsterisk: true,
|
1215
1259
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1297,7 +1341,7 @@ function F_core26965_Update({
|
|
1297
1341
|
},
|
1298
1342
|
children: [
|
1299
1343
|
/* @__PURE__ */ jsx24(
|
1300
|
-
|
1344
|
+
MyTextInput2,
|
1301
1345
|
__spreadValues({
|
1302
1346
|
withAsterisk: true,
|
1303
1347
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1311,7 +1355,7 @@ function F_core26965_Update({
|
|
1311
1355
|
}, form.getInputProps("promulgateDate"))
|
1312
1356
|
),
|
1313
1357
|
/* @__PURE__ */ jsx24(
|
1314
|
-
|
1358
|
+
MyTextInput2,
|
1315
1359
|
__spreadValues({
|
1316
1360
|
withAsterisk: true,
|
1317
1361
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1492,7 +1536,7 @@ function F_core27311_Create({
|
|
1492
1536
|
},
|
1493
1537
|
children: [
|
1494
1538
|
/* @__PURE__ */ jsx27(
|
1495
|
-
|
1539
|
+
MyTextInput2,
|
1496
1540
|
__spreadValues({
|
1497
1541
|
withAsterisk: true,
|
1498
1542
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1506,7 +1550,7 @@ function F_core27311_Create({
|
|
1506
1550
|
}, form.getInputProps("promulgateDate"))
|
1507
1551
|
),
|
1508
1552
|
/* @__PURE__ */ jsx27(
|
1509
|
-
|
1553
|
+
MyTextInput2,
|
1510
1554
|
__spreadValues({
|
1511
1555
|
withAsterisk: true,
|
1512
1556
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1594,7 +1638,7 @@ function F_core27311_Update({
|
|
1594
1638
|
},
|
1595
1639
|
children: [
|
1596
1640
|
/* @__PURE__ */ jsx29(
|
1597
|
-
|
1641
|
+
MyTextInput2,
|
1598
1642
|
__spreadValues({
|
1599
1643
|
withAsterisk: true,
|
1600
1644
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1608,7 +1652,7 @@ function F_core27311_Update({
|
|
1608
1652
|
}, form.getInputProps("promulgateDate"))
|
1609
1653
|
),
|
1610
1654
|
/* @__PURE__ */ jsx29(
|
1611
|
-
|
1655
|
+
MyTextInput2,
|
1612
1656
|
__spreadValues({
|
1613
1657
|
withAsterisk: true,
|
1614
1658
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1769,17 +1813,17 @@ import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1769
1813
|
function F_core35923() {
|
1770
1814
|
return /* @__PURE__ */ jsxs24(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
1771
1815
|
/* @__PURE__ */ jsxs24(Grid, { children: [
|
1772
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx32(
|
1773
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx32(
|
1774
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx32(
|
1775
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1776
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1777
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1778
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1816
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "M\xE3 module", disabled: true }) }),
|
1817
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "T\xEAn module" }) }),
|
1818
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
1819
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "Email" }) }),
|
1820
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
1821
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
1822
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
1779
1823
|
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
1780
1824
|
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
1781
1825
|
] }),
|
1782
|
-
/* @__PURE__ */ jsx32(MyFlexEnd, { children: /* @__PURE__ */ jsx32(
|
1826
|
+
/* @__PURE__ */ jsx32(MyFlexEnd, { children: /* @__PURE__ */ jsx32(MyButton2, { crudType: "save" }) })
|
1783
1827
|
] });
|
1784
1828
|
}
|
1785
1829
|
|
@@ -1897,6 +1941,7 @@ function useQ_Account_GetAdminAccount() {
|
|
1897
1941
|
queryKey: ["useQ_Role_GetAdminRole"],
|
1898
1942
|
queryFn: async () => {
|
1899
1943
|
var _a;
|
1944
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData2;
|
1900
1945
|
const result = await baseAxios_default.get(`/Role/GetAdminRole`);
|
1901
1946
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
1902
1947
|
},
|
@@ -1904,6 +1949,12 @@ function useQ_Account_GetAdminAccount() {
|
|
1904
1949
|
});
|
1905
1950
|
return query;
|
1906
1951
|
}
|
1952
|
+
var mockData2 = [
|
1953
|
+
{ id: 1, code: "GV", name: "Gi\u1EA3ng vi\xEAn" },
|
1954
|
+
{ id: 2, code: "STU", name: "Student" },
|
1955
|
+
{ id: 3, code: "FACU", name: "Faculty" },
|
1956
|
+
{ id: 4, code: "ADMIN", name: "Admin" }
|
1957
|
+
];
|
1907
1958
|
|
1908
1959
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
1909
1960
|
import { useMutation as useMutation2 } from "@tanstack/react-query";
|
@@ -1919,6 +1970,12 @@ function F_core38677_Save() {
|
|
1919
1970
|
}
|
1920
1971
|
});
|
1921
1972
|
function handleSave() {
|
1973
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
1974
|
+
utils_notification_show({
|
1975
|
+
crudType: "update"
|
1976
|
+
});
|
1977
|
+
return;
|
1978
|
+
}
|
1922
1979
|
mutation.mutate({
|
1923
1980
|
pagePermissions: store.state.rolePermissions,
|
1924
1981
|
roleId: store.state.roleId
|
@@ -1937,7 +1994,7 @@ function F_core38677_Save() {
|
|
1937
1994
|
}
|
1938
1995
|
disable[1](false);
|
1939
1996
|
}, [store.state.rolePermissions]);
|
1940
|
-
return /* @__PURE__ */ jsx34(
|
1997
|
+
return /* @__PURE__ */ jsx34(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
1941
1998
|
}
|
1942
1999
|
|
1943
2000
|
// src/data/menuData.ts
|
@@ -1966,7 +2023,7 @@ var menuData = [
|
|
1966
2023
|
links: [
|
1967
2024
|
{ pageId: 0, name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "core18256" },
|
1968
2025
|
{ pageId: 0, name: "", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229" },
|
1969
|
-
{ pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "
|
2026
|
+
{ pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "moduleConfig" },
|
1970
2027
|
{ pageId: 0, name: "", label: "Danh m\u1EE5c Page Content", link: "pageContentConfig" }
|
1971
2028
|
]
|
1972
2029
|
}
|
@@ -2240,14 +2297,14 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
2240
2297
|
},
|
2241
2298
|
children: [
|
2242
2299
|
/* @__PURE__ */ jsx37(
|
2243
|
-
|
2300
|
+
MyTextInput2,
|
2244
2301
|
__spreadValues({
|
2245
2302
|
withAsterisk: true,
|
2246
2303
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
2247
2304
|
}, form.getInputProps("code"))
|
2248
2305
|
),
|
2249
2306
|
/* @__PURE__ */ jsx37(
|
2250
|
-
|
2307
|
+
MyTextInput2,
|
2251
2308
|
__spreadValues({
|
2252
2309
|
withAsterisk: true,
|
2253
2310
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2312,14 +2369,14 @@ function F_core40207_Update({ values }) {
|
|
2312
2369
|
},
|
2313
2370
|
children: [
|
2314
2371
|
/* @__PURE__ */ jsx39(
|
2315
|
-
|
2372
|
+
MyTextInput2,
|
2316
2373
|
__spreadValues({
|
2317
2374
|
withAsterisk: true,
|
2318
2375
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
2319
2376
|
}, form.getInputProps("code"))
|
2320
2377
|
),
|
2321
2378
|
/* @__PURE__ */ jsx39(
|
2322
|
-
|
2379
|
+
MyTextInput2,
|
2323
2380
|
__spreadValues({
|
2324
2381
|
withAsterisk: true,
|
2325
2382
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2429,14 +2486,14 @@ function F_core47643_Form({ values }) {
|
|
2429
2486
|
if (values) return /* @__PURE__ */ jsxs30(MyActionIconUpdate, { form, onSubmit: async () => {
|
2430
2487
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
2431
2488
|
}, children: [
|
2432
|
-
/* @__PURE__ */ jsx43(
|
2433
|
-
/* @__PURE__ */ jsx43(
|
2489
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
2490
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
2434
2491
|
] });
|
2435
2492
|
return /* @__PURE__ */ jsxs30(MyButtonCreate, { form, onSubmit: async () => {
|
2436
2493
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
2437
2494
|
}, children: [
|
2438
|
-
/* @__PURE__ */ jsx43(
|
2439
|
-
/* @__PURE__ */ jsx43(
|
2495
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
2496
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
2440
2497
|
] });
|
2441
2498
|
}
|
2442
2499
|
|
@@ -2486,205 +2543,14 @@ function F_core47643() {
|
|
2486
2543
|
return /* @__PURE__ */ jsx45(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx45(F_core47643_Read, {}) });
|
2487
2544
|
}
|
2488
2545
|
|
2489
|
-
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
2490
|
-
import { useEffect as useEffect7 } from "react";
|
2491
|
-
|
2492
|
-
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
2493
|
-
import { Center, Grid as Grid3, Image, Paper as Paper5 } from "@mantine/core";
|
2494
|
-
import { useForm as useForm16 } from "@mantine/form";
|
2495
|
-
import { useEffect as useEffect6 } from "react";
|
2496
|
-
|
2497
|
-
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
2498
|
-
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
2499
|
-
|
2500
|
-
// src/modules-features/admin/core/core60524/useS_core60524.ts
|
2501
|
-
var useStore3 = createGenericStore({
|
2502
|
-
initialState: {}
|
2503
|
-
});
|
2504
|
-
function useS_core60524() {
|
2505
|
-
const store = useStore3();
|
2506
|
-
return __spreadValues({}, store);
|
2507
|
-
}
|
2508
|
-
|
2509
|
-
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
2510
|
-
import { jsx as jsx46 } from "react/jsx-runtime";
|
2511
|
-
function F_core60524_Save({
|
2512
|
-
form
|
2513
|
-
}) {
|
2514
|
-
const store = useS_core60524();
|
2515
|
-
const mutation = useMutation3({
|
2516
|
-
mutationFn: async (body) => {
|
2517
|
-
const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
|
2518
|
-
return res;
|
2519
|
-
}
|
2520
|
-
});
|
2521
|
-
async function handleSave() {
|
2522
|
-
var _b, _c, _d, _e;
|
2523
|
-
const _a = form.getValues(), { faviconFile, logoFile } = _a, formValues = __objRest(_a, ["faviconFile", "logoFile"]);
|
2524
|
-
mutation.mutate(__spreadProps(__spreadValues({}, formValues), {
|
2525
|
-
logoFileDetail: form.isDirty("logoFileDetail") == false ? {
|
2526
|
-
fileName: (_b = formValues.logoFileDetail) == null ? void 0 : _b.fileName,
|
2527
|
-
fileExtension: (_c = formValues.logoFileDetail) == null ? void 0 : _c.fileExtension,
|
2528
|
-
fileBase64String: ""
|
2529
|
-
} : formValues.logoFileDetail,
|
2530
|
-
faviconFileDetail: form.isDirty("faviconFileDetail") == false ? {
|
2531
|
-
fileName: (_d = formValues.faviconFileDetail) == null ? void 0 : _d.fileName,
|
2532
|
-
fileExtension: (_e = formValues.faviconFileDetail) == null ? void 0 : _e.fileExtension,
|
2533
|
-
fileBase64String: ""
|
2534
|
-
} : formValues.faviconFileDetail,
|
2535
|
-
id: store.state.AQModuleId
|
2536
|
-
}), {
|
2537
|
-
onSuccess: () => {
|
2538
|
-
utils_notification_show({
|
2539
|
-
crudType: "update"
|
2540
|
-
});
|
2541
|
-
}
|
2542
|
-
});
|
2543
|
-
}
|
2544
|
-
return /* @__PURE__ */ jsx46(
|
2545
|
-
MyButton,
|
2546
|
-
{
|
2547
|
-
disabled: !form.isDirty(),
|
2548
|
-
crudType: "save",
|
2549
|
-
onClick: handleSave
|
2550
|
-
}
|
2551
|
-
);
|
2552
|
-
}
|
2553
|
-
|
2554
|
-
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
2555
|
-
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
2556
|
-
function F_core60524_Form() {
|
2557
|
-
var _a, _b, _c, _d;
|
2558
|
-
const query = useQ_AQ_GetAQModule();
|
2559
|
-
const form = useForm16({
|
2560
|
-
mode: "uncontrolled",
|
2561
|
-
validate: {
|
2562
|
-
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
2563
|
-
logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
2564
|
-
}
|
2565
|
-
});
|
2566
|
-
const basicAppShell_store = useS_BasicAppShell();
|
2567
|
-
useEffect6(() => {
|
2568
|
-
var _a2, _b2;
|
2569
|
-
if (!query.data) return;
|
2570
|
-
const values = {
|
2571
|
-
code: query.data.code || "",
|
2572
|
-
name: query.data.name || "",
|
2573
|
-
officelName: query.data.officelName || "",
|
2574
|
-
email: query.data.email || "",
|
2575
|
-
phoneNumber: query.data.phoneNumber || "",
|
2576
|
-
registrationDate: new Date(query.data.registrationDate) || /* @__PURE__ */ new Date(),
|
2577
|
-
limiteDate: new Date(query.data.limiteDate) || /* @__PURE__ */ new Date(),
|
2578
|
-
faviconPath: query.data.faviconPath || "",
|
2579
|
-
logoPath: query.data.logoPath || "",
|
2580
|
-
faviconFile: new File([], (_a2 = query.data.faviconFileDetail) == null ? void 0 : _a2.fileName),
|
2581
|
-
logoFile: new File([], (_b2 = query.data.logoFileDetail) == null ? void 0 : _b2.fileName),
|
2582
|
-
faviconFileDetail: query.data.faviconFileDetail,
|
2583
|
-
logoFileDetail: query.data.logoFileDetail
|
2584
|
-
};
|
2585
|
-
form.setInitialValues(values);
|
2586
|
-
form.setValues(values);
|
2587
|
-
}, [query.data]);
|
2588
|
-
return /* @__PURE__ */ jsxs32(Paper5, { p: "md", children: [
|
2589
|
-
/* @__PURE__ */ jsxs32(Grid3, { children: [
|
2590
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
2591
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
2592
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
2593
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
2594
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
2595
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(
|
2596
|
-
MyDateInput,
|
2597
|
-
{
|
2598
|
-
value: form.getValues().registrationDate,
|
2599
|
-
disabled: true,
|
2600
|
-
onChange: (date) => form.setFieldValue("registrationDate", new Date(date)),
|
2601
|
-
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
2602
|
-
}
|
2603
|
-
) }),
|
2604
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(
|
2605
|
-
MyDateInput,
|
2606
|
-
{
|
2607
|
-
value: form.getValues().limiteDate,
|
2608
|
-
disabled: true,
|
2609
|
-
onChange: (date) => form.setFieldValue("limiteDate", new Date(date)),
|
2610
|
-
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
2611
|
-
}
|
2612
|
-
) }),
|
2613
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs32(MyFlexColumn, { children: [
|
2614
|
-
/* @__PURE__ */ jsx47(
|
2615
|
-
MyFileInput,
|
2616
|
-
{
|
2617
|
-
accept: "image/png,image/jpeg",
|
2618
|
-
label: "Favicon (16px x 16px)",
|
2619
|
-
value: form.getValues().faviconFile,
|
2620
|
-
onChange: async (e) => {
|
2621
|
-
form.setFieldValue("faviconFile", e);
|
2622
|
-
form.setFieldValue("faviconFileDetail", await utils_file_fileToAQDocumentType(e));
|
2623
|
-
}
|
2624
|
-
}
|
2625
|
-
),
|
2626
|
-
/* @__PURE__ */ jsx47(Paper5, { w: "100%", children: /* @__PURE__ */ jsx47(Center, { children: /* @__PURE__ */ jsx47(
|
2627
|
-
Image,
|
2628
|
-
{
|
2629
|
-
fit: "contain",
|
2630
|
-
src: `data:image/${(_a = form.getValues().faviconFileDetail) == null ? void 0 : _a.fileExtension};base64,
|
2631
|
-
${(_b = form.getValues().faviconFileDetail) == null ? void 0 : _b.fileBase64String}`,
|
2632
|
-
h: "115px",
|
2633
|
-
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
2634
|
-
alt: "Main logo",
|
2635
|
-
w: "330px"
|
2636
|
-
}
|
2637
|
-
) }) })
|
2638
|
-
] }) }),
|
2639
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs32(MyFlexColumn, { children: [
|
2640
|
-
/* @__PURE__ */ jsx47(
|
2641
|
-
MyFileInput,
|
2642
|
-
{
|
2643
|
-
accept: "image/png,image/jpeg",
|
2644
|
-
label: "Logo (330px x 115px)",
|
2645
|
-
value: form.getValues().logoFile,
|
2646
|
-
onChange: async (e) => {
|
2647
|
-
form.setFieldValue("logoFile", e);
|
2648
|
-
form.setFieldValue("logoFileDetail", await utils_file_fileToAQDocumentType(e));
|
2649
|
-
}
|
2650
|
-
}
|
2651
|
-
),
|
2652
|
-
/* @__PURE__ */ jsx47(Paper5, { children: /* @__PURE__ */ jsx47(Center, { children: /* @__PURE__ */ jsx47(
|
2653
|
-
Image,
|
2654
|
-
{
|
2655
|
-
fit: "contain",
|
2656
|
-
src: `data:image/${(_c = form.getValues().logoFileDetail) == null ? void 0 : _c.fileExtension};base64,
|
2657
|
-
${(_d = form.getValues().logoFileDetail) == null ? void 0 : _d.fileBase64String}`,
|
2658
|
-
h: "115px",
|
2659
|
-
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
2660
|
-
alt: "Main logo",
|
2661
|
-
w: "330px"
|
2662
|
-
}
|
2663
|
-
) }) })
|
2664
|
-
] }) })
|
2665
|
-
] }),
|
2666
|
-
/* @__PURE__ */ jsx47(MyFlexEnd, { children: /* @__PURE__ */ jsx47(F_core60524_Save, { form }) })
|
2667
|
-
] });
|
2668
|
-
}
|
2669
|
-
|
2670
|
-
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
2671
|
-
import { jsx as jsx48 } from "react/jsx-runtime";
|
2672
|
-
function F_core60524({ AQModuleId }) {
|
2673
|
-
const store = useS_core60524();
|
2674
|
-
useEffect7(() => {
|
2675
|
-
store.setProperty("AQModuleId", AQModuleId);
|
2676
|
-
}, []);
|
2677
|
-
return /* @__PURE__ */ jsx48(F_core60524_Form, {});
|
2678
|
-
}
|
2679
|
-
|
2680
2546
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
2681
2547
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
2682
2548
|
import { useMemo as useMemo11 } from "react";
|
2683
2549
|
|
2684
2550
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
2685
|
-
import { jsx as
|
2551
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
2686
2552
|
function F_core64229_Delete({ values }) {
|
2687
|
-
return /* @__PURE__ */
|
2553
|
+
return /* @__PURE__ */ jsx46(
|
2688
2554
|
MyActionIconDelete,
|
2689
2555
|
{
|
2690
2556
|
contextData: values == null ? void 0 : values.code,
|
@@ -2699,10 +2565,10 @@ function F_core64229_Delete({ values }) {
|
|
2699
2565
|
|
2700
2566
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
2701
2567
|
import { PasswordInput } from "@mantine/core";
|
2702
|
-
import { useForm as
|
2703
|
-
import { jsx as
|
2568
|
+
import { useForm as useForm16 } from "@mantine/form";
|
2569
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
2704
2570
|
function F_core64229_Form({ values, emailModule }) {
|
2705
|
-
const form =
|
2571
|
+
const form = useForm16({
|
2706
2572
|
mode: "uncontrolled",
|
2707
2573
|
initialValues: values ? values : {
|
2708
2574
|
emailModule: Number(emailModule[0])
|
@@ -2726,27 +2592,27 @@ function F_core64229_Form({ values, emailModule }) {
|
|
2726
2592
|
"password": formValues.password
|
2727
2593
|
});
|
2728
2594
|
}
|
2729
|
-
if (values) return /* @__PURE__ */
|
2595
|
+
if (values) return /* @__PURE__ */ jsx47(
|
2730
2596
|
MyActionIconUpdate,
|
2731
2597
|
{
|
2732
2598
|
form,
|
2733
2599
|
onSubmit: handleSubmit,
|
2734
|
-
children: /* @__PURE__ */
|
2600
|
+
children: /* @__PURE__ */ jsx47(FormInput, { form, emailModule })
|
2735
2601
|
}
|
2736
2602
|
);
|
2737
|
-
return /* @__PURE__ */
|
2603
|
+
return /* @__PURE__ */ jsx47(
|
2738
2604
|
MyButtonCreate,
|
2739
2605
|
{
|
2740
2606
|
form,
|
2741
2607
|
onSubmit: handleSubmit,
|
2742
|
-
children: /* @__PURE__ */
|
2608
|
+
children: /* @__PURE__ */ jsx47(FormInput, { form, emailModule })
|
2743
2609
|
}
|
2744
2610
|
);
|
2745
2611
|
}
|
2746
2612
|
function FormInput({ form, emailModule }) {
|
2747
2613
|
var _a, _b;
|
2748
|
-
return /* @__PURE__ */
|
2749
|
-
/* @__PURE__ */
|
2614
|
+
return /* @__PURE__ */ jsxs32(MyFlexColumn, { children: [
|
2615
|
+
/* @__PURE__ */ jsx47(
|
2750
2616
|
MySelect,
|
2751
2617
|
__spreadProps(__spreadValues({
|
2752
2618
|
label: "Ph\xE2n h\u1EC7",
|
@@ -2755,25 +2621,25 @@ function FormInput({ form, emailModule }) {
|
|
2755
2621
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
2756
2622
|
})
|
2757
2623
|
),
|
2758
|
-
/* @__PURE__ */
|
2759
|
-
|
2624
|
+
/* @__PURE__ */ jsx47(
|
2625
|
+
MyTextInput2,
|
2760
2626
|
__spreadValues({
|
2761
2627
|
label: "Host mail server"
|
2762
2628
|
}, form.getInputProps("hostMailServer"))
|
2763
2629
|
),
|
2764
|
-
/* @__PURE__ */
|
2630
|
+
/* @__PURE__ */ jsx47(
|
2765
2631
|
MyNumberInput,
|
2766
2632
|
__spreadValues({
|
2767
2633
|
label: "Outgoing port"
|
2768
2634
|
}, form.getInputProps("outgoingPort"))
|
2769
2635
|
),
|
2770
|
-
/* @__PURE__ */
|
2636
|
+
/* @__PURE__ */ jsx47(
|
2771
2637
|
MyNumberInput,
|
2772
2638
|
__spreadValues({
|
2773
2639
|
label: "Incoming port"
|
2774
2640
|
}, form.getInputProps("incomingPort"))
|
2775
2641
|
),
|
2776
|
-
/* @__PURE__ */
|
2642
|
+
/* @__PURE__ */ jsx47(
|
2777
2643
|
MySelect,
|
2778
2644
|
{
|
2779
2645
|
label: "SSL",
|
@@ -2782,13 +2648,13 @@ function FormInput({ form, emailModule }) {
|
|
2782
2648
|
onChange: (e) => form.setFieldValue("sll", e == "true" ? true : false)
|
2783
2649
|
}
|
2784
2650
|
),
|
2785
|
-
/* @__PURE__ */
|
2786
|
-
|
2651
|
+
/* @__PURE__ */ jsx47(
|
2652
|
+
MyTextInput2,
|
2787
2653
|
__spreadValues({
|
2788
2654
|
label: "Username"
|
2789
2655
|
}, form.getInputProps("userName"))
|
2790
2656
|
),
|
2791
|
-
/* @__PURE__ */
|
2657
|
+
/* @__PURE__ */ jsx47(
|
2792
2658
|
PasswordInput,
|
2793
2659
|
__spreadValues({
|
2794
2660
|
label: "Password",
|
@@ -2799,7 +2665,7 @@ function FormInput({ form, emailModule }) {
|
|
2799
2665
|
}
|
2800
2666
|
|
2801
2667
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
2802
|
-
import { jsx as
|
2668
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
2803
2669
|
function F_core64229_Read({ emailModule }) {
|
2804
2670
|
const query = useQuery12({
|
2805
2671
|
queryKey: ["F_core64229_Read"],
|
@@ -2844,432 +2710,45 @@ function F_core64229_Read({ emailModule }) {
|
|
2844
2710
|
}
|
2845
2711
|
], []);
|
2846
2712
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
2847
|
-
return /* @__PURE__ */
|
2713
|
+
return /* @__PURE__ */ jsx48(
|
2848
2714
|
MyDataTable,
|
2849
2715
|
{
|
2850
2716
|
columns,
|
2851
2717
|
data: query.data,
|
2852
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
2853
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
2854
|
-
/* @__PURE__ */
|
2855
|
-
/* @__PURE__ */
|
2718
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx48(F_core64229_Form, { emailModule }),
|
2719
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs33(MyCenterFull, { children: [
|
2720
|
+
/* @__PURE__ */ jsx48(F_core64229_Form, { values: row.original, emailModule }),
|
2721
|
+
/* @__PURE__ */ jsx48(F_core64229_Delete, { values: row.original })
|
2856
2722
|
] })
|
2857
2723
|
}
|
2858
2724
|
);
|
2859
2725
|
}
|
2860
2726
|
|
2861
2727
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
2862
|
-
import { jsx as
|
2728
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
2863
2729
|
function F_core64229() {
|
2864
|
-
return /* @__PURE__ */
|
2730
|
+
return /* @__PURE__ */ jsx49(F_core64229_Read, { emailModule: utils_converter_enumToSelectOptions(enum_emailConfigModule) });
|
2865
2731
|
}
|
2866
2732
|
|
2867
|
-
// src/modules-features/admin/core/
|
2868
|
-
import {
|
2733
|
+
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
2734
|
+
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
2735
|
+
import { useMemo as useMemo12 } from "react";
|
2869
2736
|
|
2870
|
-
// src/modules-features/admin/core/
|
2871
|
-
import {
|
2872
|
-
import {
|
2873
|
-
import {
|
2874
|
-
|
2875
|
-
|
2876
|
-
|
2877
|
-
|
2878
|
-
|
2879
|
-
|
2880
|
-
|
2881
|
-
|
2882
|
-
function F_core71678_ChangePermission({ user }) {
|
2883
|
-
const disc = useDisclosure2();
|
2884
|
-
const queryClient = useQueryClient2();
|
2885
|
-
const [rowSelection, setRowSelection] = useState7({});
|
2886
|
-
const rowSelect = useState7();
|
2887
|
-
const query = useQuery13({
|
2888
|
-
queryKey: [`F1_1ChangePermission`],
|
2889
|
-
queryFn: async () => {
|
2890
|
-
const response = await baseAxios_default.get("/Role/GetAdminRole");
|
2891
|
-
return response.data.data;
|
2892
|
-
}
|
2893
|
-
});
|
2894
|
-
const mutation = useMutation4({
|
2895
|
-
mutationFn: async (roleIds) => {
|
2896
|
-
const res = await baseAxios_default.post("/Role/AddUser?userId=" + user.id, roleIds);
|
2897
|
-
return res;
|
2737
|
+
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
2738
|
+
import { FileInput as FileInput5 } from "@mantine/core";
|
2739
|
+
import { useForm as useForm17 } from "@mantine/form";
|
2740
|
+
import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
|
2741
|
+
function F_core76318_Create({ SecurityTypeId }) {
|
2742
|
+
const form = useForm17({
|
2743
|
+
mode: "uncontrolled",
|
2744
|
+
validate: {
|
2745
|
+
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
2746
|
+
promulgateDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
2747
|
+
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
2748
|
+
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
2898
2749
|
}
|
2899
2750
|
});
|
2900
|
-
|
2901
|
-
() => [
|
2902
|
-
{
|
2903
|
-
header: "Quy\u1EC1n",
|
2904
|
-
accessorKey: "name"
|
2905
|
-
}
|
2906
|
-
],
|
2907
|
-
[]
|
2908
|
-
);
|
2909
|
-
function handleSave() {
|
2910
|
-
mutation.mutate(Object.keys(rowSelection).map(Number), {
|
2911
|
-
onSuccess: () => {
|
2912
|
-
utils_notification_show({ crudType: "update" });
|
2913
|
-
disc[1].close();
|
2914
|
-
queryClient.invalidateQueries();
|
2915
|
-
}
|
2916
|
-
});
|
2917
|
-
}
|
2918
|
-
useEffect8(() => {
|
2919
|
-
var _a;
|
2920
|
-
const result = (_a = user.roles) == null ? void 0 : _a.reduce((acc, item) => {
|
2921
|
-
if (item.id !== void 0) {
|
2922
|
-
acc[item.id] = true;
|
2923
|
-
}
|
2924
|
-
return acc;
|
2925
|
-
}, {});
|
2926
|
-
setRowSelection(result);
|
2927
|
-
}, []);
|
2928
|
-
return /* @__PURE__ */ jsxs35(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
|
2929
|
-
/* @__PURE__ */ jsx53(
|
2930
|
-
Table3,
|
2931
|
-
{
|
2932
|
-
w: "100%",
|
2933
|
-
variant: "vertical",
|
2934
|
-
layout: "fixed",
|
2935
|
-
children: /* @__PURE__ */ jsxs35(Table3.Tbody, { children: [
|
2936
|
-
/* @__PURE__ */ jsxs35(Table3.Tr, { children: [
|
2937
|
-
/* @__PURE__ */ jsx53(Table3.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
2938
|
-
/* @__PURE__ */ jsx53(Table3.Td, { children: user.fullName })
|
2939
|
-
] }),
|
2940
|
-
/* @__PURE__ */ jsxs35(Table3.Tr, { children: [
|
2941
|
-
/* @__PURE__ */ jsx53(Table3.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
2942
|
-
/* @__PURE__ */ jsx53(Table3.Td, { children: user.userName })
|
2943
|
-
] }),
|
2944
|
-
/* @__PURE__ */ jsxs35(Table3.Tr, { children: [
|
2945
|
-
/* @__PURE__ */ jsx53(Table3.Th, { children: "Email:" }),
|
2946
|
-
/* @__PURE__ */ jsx53(Table3.Td, { children: user.email })
|
2947
|
-
] })
|
2948
|
-
] })
|
2949
|
-
}
|
2950
|
-
),
|
2951
|
-
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
2952
|
-
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
2953
|
-
/* @__PURE__ */ jsx53(Fieldset2, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx53(
|
2954
|
-
MyDataTable,
|
2955
|
-
{
|
2956
|
-
enableRowSelection: true,
|
2957
|
-
onRowSelectionChange: setRowSelection,
|
2958
|
-
state: { rowSelection },
|
2959
|
-
setSelectedRow: rowSelect[1],
|
2960
|
-
getRowId: (originalRow) => {
|
2961
|
-
var _a;
|
2962
|
-
return (_a = originalRow.id) == null ? void 0 : _a.toString();
|
2963
|
-
},
|
2964
|
-
initialState: {
|
2965
|
-
density: "xs",
|
2966
|
-
pagination: { pageIndex: 0, pageSize: 10 },
|
2967
|
-
columnPinning: { right: ["mrt-row-actions"] },
|
2968
|
-
columnVisibility: {
|
2969
|
-
nguoiCapNhat: false,
|
2970
|
-
ngayCapNhat: false
|
2971
|
-
}
|
2972
|
-
},
|
2973
|
-
columns: permissionColumns,
|
2974
|
-
data: query.data
|
2975
|
-
}
|
2976
|
-
) }),
|
2977
|
-
/* @__PURE__ */ jsx53(Group4, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx53(Button3, { onClick: handleSave, children: "L\u01B0u" }) })
|
2978
|
-
] });
|
2979
|
-
}
|
2980
|
-
|
2981
|
-
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
2982
|
-
import { MultiSelect as MultiSelect3 } from "@mantine/core";
|
2983
|
-
import { useForm as useForm18 } from "@mantine/form";
|
2984
|
-
|
2985
|
-
// src/modules-features/admin/core/core71678/useS_core71678.ts
|
2986
|
-
var useStore4 = createGenericStore({
|
2987
|
-
initialState: {}
|
2988
|
-
});
|
2989
|
-
function useS_core71678() {
|
2990
|
-
const store = useStore4();
|
2991
|
-
return __spreadValues({}, store);
|
2992
|
-
}
|
2993
|
-
|
2994
|
-
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
2995
|
-
import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
|
2996
|
-
var ENDPOINT4 = "/Account/create";
|
2997
|
-
function F_core71678_Create() {
|
2998
|
-
var _a, _b;
|
2999
|
-
const store = useS_core71678();
|
3000
|
-
const skillCenter_getAll_query = useQ_SkillCenter_GetAll();
|
3001
|
-
const form = useForm18({
|
3002
|
-
initialValues: {
|
3003
|
-
fullName: "",
|
3004
|
-
code: "",
|
3005
|
-
userName: "",
|
3006
|
-
password: "",
|
3007
|
-
email: "",
|
3008
|
-
phoneNumber: ""
|
3009
|
-
},
|
3010
|
-
validate: {
|
3011
|
-
email: (value) => U0MyValidateEmail(value)
|
3012
|
-
}
|
3013
|
-
});
|
3014
|
-
async function handleSubmit() {
|
3015
|
-
return await baseAxios_default.post(ENDPOINT4, __spreadProps(__spreadValues({}, form.getValues()), {
|
3016
|
-
passwordHash: "",
|
3017
|
-
id: 0,
|
3018
|
-
address: "",
|
3019
|
-
concurrencyStamp: "",
|
3020
|
-
isBlocked: false,
|
3021
|
-
isEnabled: true,
|
3022
|
-
workingUnitId: void 0,
|
3023
|
-
AQModuleId: 1002,
|
3024
|
-
avatarFileDetail: {
|
3025
|
-
fileName: "",
|
3026
|
-
fileExtension: "",
|
3027
|
-
fileBase64String: ""
|
3028
|
-
}
|
3029
|
-
}));
|
3030
|
-
}
|
3031
|
-
return /* @__PURE__ */ jsxs36(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
3032
|
-
/* @__PURE__ */ jsx54(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
3033
|
-
/* @__PURE__ */ jsx54(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
3034
|
-
/* @__PURE__ */ jsx54(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
3035
|
-
/* @__PURE__ */ jsx54(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
3036
|
-
/* @__PURE__ */ jsx54(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
3037
|
-
/* @__PURE__ */ jsx54(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
3038
|
-
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx54(
|
3039
|
-
MultiSelect3,
|
3040
|
-
{
|
3041
|
-
label: "Trung t\xE2m k\u1EF9 n\u0103ng",
|
3042
|
-
placeholder: "Ch\u1ECDn trung t\xE2m k\u1EF9 n\u0103ng",
|
3043
|
-
data: (_a = skillCenter_getAll_query.data) == null ? void 0 : _a.map((item) => {
|
3044
|
-
var _a2;
|
3045
|
-
return {
|
3046
|
-
label: item.name,
|
3047
|
-
value: (_a2 = item.id) == null ? void 0 : _a2.toString()
|
3048
|
-
};
|
3049
|
-
}),
|
3050
|
-
onChange: (e) => {
|
3051
|
-
form.setFieldValue("userSkillCenters", e.map((item, idx) => ({
|
3052
|
-
idField: idx.toString(),
|
3053
|
-
id: 0,
|
3054
|
-
code: "string",
|
3055
|
-
name: "string",
|
3056
|
-
concurrencyStamp: "string",
|
3057
|
-
isEnabled: true,
|
3058
|
-
skillCenterId: parseInt(item.toString())
|
3059
|
-
})));
|
3060
|
-
},
|
3061
|
-
value: (_b = form.getValues().userSkillCenters) == null ? void 0 : _b.map((item) => {
|
3062
|
-
var _a2;
|
3063
|
-
return (_a2 = item.skillCenterId) == null ? void 0 : _a2.toString();
|
3064
|
-
})
|
3065
|
-
}
|
3066
|
-
)
|
3067
|
-
] });
|
3068
|
-
}
|
3069
|
-
|
3070
|
-
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
3071
|
-
import { jsx as jsx55 } from "react/jsx-runtime";
|
3072
|
-
var ENDPOINT5 = "/Account/delete";
|
3073
|
-
function F_core71678_Delete({ id, code }) {
|
3074
|
-
return /* @__PURE__ */ jsx55(
|
3075
|
-
MyActionIconDelete,
|
3076
|
-
{
|
3077
|
-
contextData: code,
|
3078
|
-
onSubmit: async () => await baseAxios_default.post(ENDPOINT5, { id })
|
3079
|
-
}
|
3080
|
-
);
|
3081
|
-
}
|
3082
|
-
|
3083
|
-
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
3084
|
-
import { MultiSelect as MultiSelect4 } from "@mantine/core";
|
3085
|
-
import { useForm as useForm19 } from "@mantine/form";
|
3086
|
-
import { useState as useState8 } from "react";
|
3087
|
-
import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
|
3088
|
-
function F_core71678_Update({ user }) {
|
3089
|
-
var _a, _b, _c, _d;
|
3090
|
-
const store = useS_core71678();
|
3091
|
-
const skillCenter_getAll_query = useQ_SkillCenter_GetAll();
|
3092
|
-
const form = useForm19({
|
3093
|
-
initialValues: __spreadProps(__spreadValues({}, user), {
|
3094
|
-
userSkillCenters: (_a = user.userSkillCenters) != null ? _a : []
|
3095
|
-
})
|
3096
|
-
});
|
3097
|
-
const [editedUserSkillCentersState, setEditedUserSkillCentersState] = useState8(
|
3098
|
-
(_b = user.userSkillCenters) != null ? _b : []
|
3099
|
-
);
|
3100
|
-
return /* @__PURE__ */ jsx56(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
3101
|
-
return await baseAxios_default.post(
|
3102
|
-
"/Account/update",
|
3103
|
-
__spreadProps(__spreadValues({}, values), {
|
3104
|
-
id: values.id,
|
3105
|
-
address: "",
|
3106
|
-
concurrencyStamp: "",
|
3107
|
-
isBlocked: false,
|
3108
|
-
isEnabled: true,
|
3109
|
-
workingUnitId: null,
|
3110
|
-
userSkillCenters: editedUserSkillCentersState
|
3111
|
-
})
|
3112
|
-
);
|
3113
|
-
}, children: /* @__PURE__ */ jsxs37(MyFlexColumn, { children: [
|
3114
|
-
/* @__PURE__ */ jsx56(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
3115
|
-
/* @__PURE__ */ jsx56(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
3116
|
-
/* @__PURE__ */ jsx56(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
3117
|
-
/* @__PURE__ */ jsx56(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
3118
|
-
/* @__PURE__ */ jsx56(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
3119
|
-
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx56(
|
3120
|
-
MultiSelect4,
|
3121
|
-
{
|
3122
|
-
label: "Trung t\xE2m k\u1EF9 n\u0103ng",
|
3123
|
-
placeholder: "Ch\u1ECDn trung t\xE2m k\u1EF9 n\u0103ng",
|
3124
|
-
data: (_c = skillCenter_getAll_query.data) == null ? void 0 : _c.map((item) => {
|
3125
|
-
var _a2;
|
3126
|
-
return {
|
3127
|
-
label: item.name,
|
3128
|
-
value: (_a2 = item.id) == null ? void 0 : _a2.toString()
|
3129
|
-
};
|
3130
|
-
}),
|
3131
|
-
value: (_d = form.getValues().userSkillCenters) == null ? void 0 : _d.map((item) => {
|
3132
|
-
var _a2;
|
3133
|
-
return (_a2 = item.skillCenterId) == null ? void 0 : _a2.toString();
|
3134
|
-
}),
|
3135
|
-
onChange: (selectedValues) => {
|
3136
|
-
const selectedIds = selectedValues.map(Number);
|
3137
|
-
form.setFieldValue("userSkillCenters", selectedValues.map((item, idx) => ({
|
3138
|
-
idField: idx.toString(),
|
3139
|
-
id: 0,
|
3140
|
-
code: "string",
|
3141
|
-
name: "string",
|
3142
|
-
concurrencyStamp: "string",
|
3143
|
-
isEnabled: true,
|
3144
|
-
skillCenterId: parseInt(item.toString())
|
3145
|
-
})));
|
3146
|
-
setEditedUserSkillCentersState(
|
3147
|
-
(prev) => updateEnableList(
|
3148
|
-
prev,
|
3149
|
-
selectedIds,
|
3150
|
-
(item) => item.skillCenterId,
|
3151
|
-
(id) => ({ id: 0, skillCenterId: id, isEnabled: true })
|
3152
|
-
)
|
3153
|
-
);
|
3154
|
-
}
|
3155
|
-
}
|
3156
|
-
)
|
3157
|
-
] }) });
|
3158
|
-
}
|
3159
|
-
|
3160
|
-
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
3161
|
-
import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
|
3162
|
-
function F_core71678_Read() {
|
3163
|
-
var _a, _b, _c;
|
3164
|
-
const paginationState = useState9({ pageIndex: 0, pageSize: 10 });
|
3165
|
-
const store = useS_core71678();
|
3166
|
-
const router = useRouter();
|
3167
|
-
const AllUserQuery = useMyReactQuery({
|
3168
|
-
queryKey: ["AllUserQuery", paginationState[0].pageIndex + 1, paginationState[0].pageSize],
|
3169
|
-
axiosFn: async () => apiData_Account.getAdminAccount({
|
3170
|
-
pageNumber: paginationState[0].pageIndex + 1,
|
3171
|
-
pageSize: paginationState[0].pageSize
|
3172
|
-
})
|
3173
|
-
});
|
3174
|
-
const getTotalAccount = useMyReactQuery({
|
3175
|
-
queryKey: ["getTotalAccount"],
|
3176
|
-
axiosFn: async () => apiData_Account.getAdminAccount()
|
3177
|
-
});
|
3178
|
-
const columns = useMemo13(() => {
|
3179
|
-
var _a2;
|
3180
|
-
const baseColumns = [
|
3181
|
-
{
|
3182
|
-
header: "T\xEAn t\xE0i kho\u1EA3n",
|
3183
|
-
accessorKey: "userName"
|
3184
|
-
},
|
3185
|
-
{
|
3186
|
-
header: "H\u1ECD v\xE0 t\xEAn",
|
3187
|
-
accessorKey: "fullName"
|
3188
|
-
},
|
3189
|
-
{
|
3190
|
-
header: "Email",
|
3191
|
-
accessorKey: "email"
|
3192
|
-
},
|
3193
|
-
{
|
3194
|
-
header: "Quy\u1EC1n",
|
3195
|
-
accessorFn: (row) => /* @__PURE__ */ jsx57(F_core71678_ChangePermission, { user: row })
|
3196
|
-
}
|
3197
|
-
];
|
3198
|
-
if (((_a2 = store.state) == null ? void 0 : _a2.isRequireSkillCenter) === true) {
|
3199
|
-
baseColumns.splice(3, 0, {
|
3200
|
-
header: "Trung t\xE2m k\u1EF9 n\u0103ng",
|
3201
|
-
accessorFn: (row) => {
|
3202
|
-
var _a3;
|
3203
|
-
return (_a3 = row.userSkillCenters) == null ? void 0 : _a3.map((item) => item.name + ", ");
|
3204
|
-
}
|
3205
|
-
});
|
3206
|
-
}
|
3207
|
-
return baseColumns;
|
3208
|
-
}, [(_a = store.state) == null ? void 0 : _a.isRequireSkillCenter]);
|
3209
|
-
return /* @__PURE__ */ jsx57(
|
3210
|
-
MyDataTable,
|
3211
|
-
{
|
3212
|
-
isLoading: AllUserQuery.isLoading,
|
3213
|
-
rowCount: (_c = (_b = getTotalAccount.data) == null ? void 0 : _b.length) != null ? _c : 0,
|
3214
|
-
pagination: paginationState[0],
|
3215
|
-
onPaginationChange: paginationState[1],
|
3216
|
-
columns,
|
3217
|
-
data: AllUserQuery.data || [],
|
3218
|
-
renderTopToolbarCustomActions: () => {
|
3219
|
-
return /* @__PURE__ */ jsxs38(Group5, { children: [
|
3220
|
-
/* @__PURE__ */ jsx57(F_core71678_Create, {}),
|
3221
|
-
/* @__PURE__ */ jsx57(
|
3222
|
-
Button4,
|
3223
|
-
{
|
3224
|
-
color: "violet",
|
3225
|
-
leftSection: /* @__PURE__ */ jsx57(IconShield2, {}),
|
3226
|
-
onClick: () => {
|
3227
|
-
router.push("core47643");
|
3228
|
-
},
|
3229
|
-
children: "Danh m\u1EE5c quy\u1EC1n"
|
3230
|
-
}
|
3231
|
-
)
|
3232
|
-
] });
|
3233
|
-
},
|
3234
|
-
renderRowActions: ({ row }) => {
|
3235
|
-
return /* @__PURE__ */ jsxs38(MyCenterFull, { children: [
|
3236
|
-
/* @__PURE__ */ jsx57(F_core71678_Update, { user: row.original }),
|
3237
|
-
/* @__PURE__ */ jsx57(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
3238
|
-
] });
|
3239
|
-
}
|
3240
|
-
}
|
3241
|
-
);
|
3242
|
-
}
|
3243
|
-
|
3244
|
-
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
3245
|
-
import { jsx as jsx58 } from "react/jsx-runtime";
|
3246
|
-
function F_core71678({ isRequireSkillCenter = false }) {
|
3247
|
-
const store = useS_core71678();
|
3248
|
-
useEffect9(() => {
|
3249
|
-
store.setProperty("isRequireSkillCenter", isRequireSkillCenter);
|
3250
|
-
}, []);
|
3251
|
-
return /* @__PURE__ */ jsx58(F_core71678_Read, {});
|
3252
|
-
}
|
3253
|
-
|
3254
|
-
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
3255
|
-
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
3256
|
-
import { useMemo as useMemo14 } from "react";
|
3257
|
-
|
3258
|
-
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
3259
|
-
import { FileInput as FileInput5 } from "@mantine/core";
|
3260
|
-
import { useForm as useForm20 } from "@mantine/form";
|
3261
|
-
import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
|
3262
|
-
function F_core76318_Create({ SecurityTypeId }) {
|
3263
|
-
const form = useForm20({
|
3264
|
-
mode: "uncontrolled",
|
3265
|
-
validate: {
|
3266
|
-
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
3267
|
-
promulgateDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
3268
|
-
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
3269
|
-
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3270
|
-
}
|
3271
|
-
});
|
3272
|
-
return /* @__PURE__ */ jsxs39(
|
2751
|
+
return /* @__PURE__ */ jsxs34(
|
3273
2752
|
MyButtonCreate,
|
3274
2753
|
{
|
3275
2754
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -3282,28 +2761,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
3282
2761
|
}));
|
3283
2762
|
},
|
3284
2763
|
children: [
|
3285
|
-
/* @__PURE__ */
|
3286
|
-
|
2764
|
+
/* @__PURE__ */ jsx50(
|
2765
|
+
MyTextInput2,
|
3287
2766
|
__spreadValues({
|
3288
2767
|
withAsterisk: true,
|
3289
2768
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3290
2769
|
}, form.getInputProps("decisionCode"))
|
3291
2770
|
),
|
3292
|
-
/* @__PURE__ */
|
2771
|
+
/* @__PURE__ */ jsx50(
|
3293
2772
|
MyDateInput,
|
3294
2773
|
__spreadValues({
|
3295
2774
|
withAsterisk: true,
|
3296
2775
|
label: "Ng\xE0y ban h\xE0nh"
|
3297
2776
|
}, form.getInputProps("promulgateDate"))
|
3298
2777
|
),
|
3299
|
-
/* @__PURE__ */
|
3300
|
-
|
2778
|
+
/* @__PURE__ */ jsx50(
|
2779
|
+
MyTextInput2,
|
3301
2780
|
__spreadValues({
|
3302
2781
|
withAsterisk: true,
|
3303
2782
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3304
2783
|
}, form.getInputProps("name"))
|
3305
2784
|
),
|
3306
|
-
/* @__PURE__ */
|
2785
|
+
/* @__PURE__ */ jsx50(
|
3307
2786
|
FileInput5,
|
3308
2787
|
__spreadValues({
|
3309
2788
|
withAsterisk: true,
|
@@ -3317,12 +2796,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
3317
2796
|
}
|
3318
2797
|
|
3319
2798
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
3320
|
-
import { jsx as
|
2799
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
3321
2800
|
function F_core76318_Delete({
|
3322
2801
|
id,
|
3323
2802
|
contextData
|
3324
2803
|
}) {
|
3325
|
-
return /* @__PURE__ */
|
2804
|
+
return /* @__PURE__ */ jsx51(
|
3326
2805
|
MyActionIconDelete,
|
3327
2806
|
{
|
3328
2807
|
contextData,
|
@@ -3333,11 +2812,11 @@ function F_core76318_Delete({
|
|
3333
2812
|
|
3334
2813
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
3335
2814
|
import { FileInput as FileInput6, TextInput } from "@mantine/core";
|
3336
|
-
import { useForm as
|
3337
|
-
import { jsx as
|
2815
|
+
import { useForm as useForm18 } from "@mantine/form";
|
2816
|
+
import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
|
3338
2817
|
function F_core76318_Update({ values }) {
|
3339
2818
|
var _a;
|
3340
|
-
const form =
|
2819
|
+
const form = useForm18({
|
3341
2820
|
mode: "uncontrolled",
|
3342
2821
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3343
2822
|
file: new File(
|
@@ -3353,7 +2832,7 @@ function F_core76318_Update({ values }) {
|
|
3353
2832
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3354
2833
|
}
|
3355
2834
|
});
|
3356
|
-
return /* @__PURE__ */
|
2835
|
+
return /* @__PURE__ */ jsxs35(
|
3357
2836
|
MyActionIconUpdate,
|
3358
2837
|
{
|
3359
2838
|
form,
|
@@ -3363,28 +2842,28 @@ function F_core76318_Update({ values }) {
|
|
3363
2842
|
}));
|
3364
2843
|
},
|
3365
2844
|
children: [
|
3366
|
-
/* @__PURE__ */
|
2845
|
+
/* @__PURE__ */ jsx52(
|
3367
2846
|
TextInput,
|
3368
2847
|
__spreadValues({
|
3369
2848
|
withAsterisk: true,
|
3370
2849
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3371
2850
|
}, form.getInputProps("decisionCode"))
|
3372
2851
|
),
|
3373
|
-
/* @__PURE__ */
|
2852
|
+
/* @__PURE__ */ jsx52(
|
3374
2853
|
MyDateInput,
|
3375
2854
|
__spreadValues({
|
3376
2855
|
withAsterisk: true,
|
3377
2856
|
label: "Ng\xE0y ban h\xE0nh"
|
3378
2857
|
}, form.getInputProps("promulgateDate"))
|
3379
2858
|
),
|
3380
|
-
/* @__PURE__ */
|
2859
|
+
/* @__PURE__ */ jsx52(
|
3381
2860
|
TextInput,
|
3382
2861
|
__spreadValues({
|
3383
2862
|
withAsterisk: true,
|
3384
2863
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3385
2864
|
}, form.getInputProps("name"))
|
3386
2865
|
),
|
3387
|
-
/* @__PURE__ */
|
2866
|
+
/* @__PURE__ */ jsx52(
|
3388
2867
|
FileInput6,
|
3389
2868
|
__spreadValues({
|
3390
2869
|
withAsterisk: true,
|
@@ -3397,9 +2876,9 @@ function F_core76318_Update({ values }) {
|
|
3397
2876
|
}
|
3398
2877
|
|
3399
2878
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
3400
|
-
import { jsx as
|
2879
|
+
import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
|
3401
2880
|
function F_core76318_Read({ SecurityTypeId }) {
|
3402
|
-
const query =
|
2881
|
+
const query = useQuery13({
|
3403
2882
|
queryKey: ["F_core76318_Read"],
|
3404
2883
|
queryFn: async () => {
|
3405
2884
|
var _a;
|
@@ -3409,7 +2888,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
3409
2888
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
3410
2889
|
}
|
3411
2890
|
});
|
3412
|
-
const columns =
|
2891
|
+
const columns = useMemo12(
|
3413
2892
|
() => [
|
3414
2893
|
{
|
3415
2894
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -3426,25 +2905,25 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
3426
2905
|
{
|
3427
2906
|
header: "File",
|
3428
2907
|
accessorFn: (row) => {
|
3429
|
-
return /* @__PURE__ */
|
2908
|
+
return /* @__PURE__ */ jsx53(MyCenterFull, { children: /* @__PURE__ */ jsx53(MyButtonViewPDF, { id: row.id }) });
|
3430
2909
|
}
|
3431
2910
|
}
|
3432
2911
|
],
|
3433
2912
|
[]
|
3434
2913
|
);
|
3435
|
-
return /* @__PURE__ */
|
2914
|
+
return /* @__PURE__ */ jsx53(
|
3436
2915
|
MyDataTable,
|
3437
2916
|
{
|
3438
2917
|
isLoading: query.isLoading,
|
3439
2918
|
isError: query.isError,
|
3440
2919
|
columns,
|
3441
2920
|
data: query.data || [],
|
3442
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
2921
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx53(F_core76318_Create, { SecurityTypeId }),
|
3443
2922
|
renderRowActions: ({ row }) => {
|
3444
2923
|
var _a;
|
3445
|
-
return /* @__PURE__ */
|
3446
|
-
/* @__PURE__ */
|
3447
|
-
/* @__PURE__ */
|
2924
|
+
return /* @__PURE__ */ jsxs36(MyCenterFull, { children: [
|
2925
|
+
/* @__PURE__ */ jsx53(F_core76318_Update, { values: row.original }),
|
2926
|
+
/* @__PURE__ */ jsx53(
|
3448
2927
|
F_core76318_Delete,
|
3449
2928
|
{
|
3450
2929
|
id: row.original.id,
|
@@ -3458,23 +2937,23 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
3458
2937
|
}
|
3459
2938
|
|
3460
2939
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
3461
|
-
import { jsx as
|
2940
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
3462
2941
|
function F_core76318({ SecurityTypeId }) {
|
3463
|
-
return /* @__PURE__ */
|
2942
|
+
return /* @__PURE__ */ jsx54(F_core76318_Read, { SecurityTypeId });
|
3464
2943
|
}
|
3465
2944
|
|
3466
2945
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3467
|
-
import { Grid as
|
2946
|
+
import { Grid as Grid3, Paper as Paper5, ScrollArea as ScrollArea4 } from "@mantine/core";
|
3468
2947
|
|
3469
2948
|
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
3470
|
-
import { useQuery as
|
3471
|
-
import { useEffect as
|
3472
|
-
import { jsx as
|
2949
|
+
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
2950
|
+
import { useEffect as useEffect6, useMemo as useMemo13, useState as useState7 } from "react";
|
2951
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
3473
2952
|
function F_core83092_ReadUser() {
|
3474
2953
|
const store = useS_core83092();
|
3475
2954
|
const query = useQ_core83092_Account_GetAdminAccount();
|
3476
|
-
const [rowSelection, setRowSelection] =
|
3477
|
-
const columns =
|
2955
|
+
const [rowSelection, setRowSelection] = useState7({});
|
2956
|
+
const columns = useMemo13(
|
3478
2957
|
() => [
|
3479
2958
|
{
|
3480
2959
|
header: "H\u1ECD v\xE0 t\xEAn",
|
@@ -3491,17 +2970,17 @@ function F_core83092_ReadUser() {
|
|
3491
2970
|
setRowSelection({ [rowId]: true });
|
3492
2971
|
store.setProperty("roleId", parseInt(rowId));
|
3493
2972
|
};
|
3494
|
-
|
2973
|
+
useEffect6(() => {
|
3495
2974
|
if (store.state.roleId == 0) return;
|
3496
2975
|
setRowSelection({ [store.state.roleId]: true });
|
3497
2976
|
}, [store.state.roleId]);
|
3498
|
-
|
2977
|
+
useEffect6(() => {
|
3499
2978
|
if (!query.data) return;
|
3500
2979
|
store.setProperty("roleId", query.data[0].id);
|
3501
2980
|
}, [query.data]);
|
3502
2981
|
if (query.isLoading) return "Loading...";
|
3503
2982
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
3504
|
-
return /* @__PURE__ */
|
2983
|
+
return /* @__PURE__ */ jsx55(
|
3505
2984
|
MyDataTable,
|
3506
2985
|
{
|
3507
2986
|
columns,
|
@@ -3522,10 +3001,11 @@ function F_core83092_ReadUser() {
|
|
3522
3001
|
);
|
3523
3002
|
}
|
3524
3003
|
function useQ_core83092_Account_GetAdminAccount() {
|
3525
|
-
const query =
|
3004
|
+
const query = useQuery14({
|
3526
3005
|
queryKey: ["useQ_core83092_Account_GetAdminAccount"],
|
3527
3006
|
queryFn: async () => {
|
3528
3007
|
var _a;
|
3008
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockUserData2;
|
3529
3009
|
const result = await baseAxios_default.get(`/Account/GetAdminAccount`, { params: { page: 5, pageNumber: 1 } });
|
3530
3010
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
3531
3011
|
},
|
@@ -3533,21 +3013,54 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
3533
3013
|
});
|
3534
3014
|
return query;
|
3535
3015
|
}
|
3016
|
+
var mockUserData2 = [
|
3017
|
+
{
|
3018
|
+
userName: "nguyenvana",
|
3019
|
+
fullName: "Nguy\u1EC5n V\u0103n A",
|
3020
|
+
email: "vana@example.com"
|
3021
|
+
},
|
3022
|
+
{
|
3023
|
+
userName: "tranthib",
|
3024
|
+
fullName: "Tr\u1EA7n Th\u1ECB B",
|
3025
|
+
email: "thib@example.com"
|
3026
|
+
},
|
3027
|
+
{
|
3028
|
+
userName: "leminhc",
|
3029
|
+
fullName: "L\xEA Minh C",
|
3030
|
+
email: "minhc@example.com"
|
3031
|
+
},
|
3032
|
+
{
|
3033
|
+
userName: "phamthid",
|
3034
|
+
fullName: "Ph\u1EA1m Th\u1ECB D",
|
3035
|
+
email: "thid@example.com"
|
3036
|
+
},
|
3037
|
+
{
|
3038
|
+
userName: "doanvanh",
|
3039
|
+
fullName: "Do\xE3n V\u0103n H",
|
3040
|
+
email: "vanh@example.com"
|
3041
|
+
}
|
3042
|
+
];
|
3536
3043
|
|
3537
3044
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
3538
|
-
import { useMutation as
|
3539
|
-
import { useEffect as
|
3540
|
-
import { jsx as
|
3045
|
+
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
3046
|
+
import { useEffect as useEffect7, useState as useState8 } from "react";
|
3047
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
3541
3048
|
function F_core83092_Save() {
|
3542
3049
|
const store = useS_core83092();
|
3543
|
-
const disable =
|
3544
|
-
const mutation =
|
3050
|
+
const disable = useState8(false);
|
3051
|
+
const mutation = useMutation3({
|
3545
3052
|
mutationFn: async (body) => {
|
3546
3053
|
const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
|
3547
3054
|
return res;
|
3548
3055
|
}
|
3549
3056
|
});
|
3550
3057
|
function handleSave() {
|
3058
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
3059
|
+
utils_notification_show({
|
3060
|
+
crudType: "update"
|
3061
|
+
});
|
3062
|
+
return;
|
3063
|
+
}
|
3551
3064
|
mutation.mutate({
|
3552
3065
|
pagePermissions: store.state.rolePermissions,
|
3553
3066
|
userId: store.state.roleId
|
@@ -3559,39 +3072,39 @@ function F_core83092_Save() {
|
|
3559
3072
|
}
|
3560
3073
|
});
|
3561
3074
|
}
|
3562
|
-
|
3075
|
+
useEffect7(() => {
|
3563
3076
|
if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
|
3564
3077
|
disable[1](true);
|
3565
3078
|
return;
|
3566
3079
|
}
|
3567
3080
|
disable[1](false);
|
3568
3081
|
}, [store.state.rolePermissions]);
|
3569
|
-
return /* @__PURE__ */
|
3082
|
+
return /* @__PURE__ */ jsx56(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
3570
3083
|
}
|
3571
3084
|
|
3572
3085
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
3573
|
-
import { Checkbox as Checkbox2, Flex as Flex2, ScrollArea as ScrollArea3, Table as
|
3086
|
+
import { Checkbox as Checkbox2, Flex as Flex2, ScrollArea as ScrollArea3, Table as Table3, Text as Text2 } from "@mantine/core";
|
3574
3087
|
import { IconEdit as IconEdit2, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport2, IconPlus as IconPlus2, IconPrinter as IconPrinter2, IconTrash as IconTrash2 } from "@tabler/icons-react";
|
3575
|
-
import { useQuery as
|
3576
|
-
import React2, { useEffect as
|
3577
|
-
import { jsx as
|
3088
|
+
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
3089
|
+
import React2, { useEffect as useEffect8, useState as useState9 } from "react";
|
3090
|
+
import { jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
|
3578
3091
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
3579
3092
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
3580
3093
|
var _a, _b;
|
3581
3094
|
const store = useS_core83092();
|
3582
3095
|
const query = useGetUserPermission2({ menuData: menuData2 });
|
3583
|
-
const list =
|
3584
|
-
|
3096
|
+
const list = useState9([]);
|
3097
|
+
useEffect8(() => {
|
3585
3098
|
list[1](groupToTwoLevels(menuData2));
|
3586
3099
|
}, []);
|
3587
|
-
|
3100
|
+
useEffect8(() => {
|
3588
3101
|
if (!query.data) return;
|
3589
3102
|
store.setProperty("rolePermissions", query.data);
|
3590
3103
|
}, [query.data]);
|
3591
3104
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
3592
|
-
return /* @__PURE__ */
|
3593
|
-
/* @__PURE__ */
|
3594
|
-
|
3105
|
+
return /* @__PURE__ */ jsx57(ScrollArea3.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs37(Table3, { children: [
|
3106
|
+
/* @__PURE__ */ jsx57(
|
3107
|
+
Table3.Thead,
|
3595
3108
|
{
|
3596
3109
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
3597
3110
|
style: {
|
@@ -3601,90 +3114,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3601
3114
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
3602
3115
|
border: "1px solid var(--mantine-color-gray-4)"
|
3603
3116
|
},
|
3604
|
-
children: /* @__PURE__ */
|
3605
|
-
/* @__PURE__ */
|
3606
|
-
/* @__PURE__ */
|
3607
|
-
/* @__PURE__ */
|
3117
|
+
children: /* @__PURE__ */ jsxs37(Table3.Tr, { children: [
|
3118
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: title2 }),
|
3119
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3120
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isRead"), onChange: (e) => {
|
3608
3121
|
store.toogleAllPermissionWithType("isRead", e.target.checked);
|
3609
3122
|
} }),
|
3610
|
-
/* @__PURE__ */
|
3123
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3611
3124
|
"Xem",
|
3612
|
-
/* @__PURE__ */
|
3125
|
+
/* @__PURE__ */ jsx57(IconEyeUp2, { color: "gray" })
|
3613
3126
|
] })
|
3614
3127
|
] }) }),
|
3615
|
-
/* @__PURE__ */
|
3616
|
-
/* @__PURE__ */
|
3128
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3129
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
|
3617
3130
|
store.toogleAllPermissionWithType("isCreate", e.target.checked);
|
3618
3131
|
} }),
|
3619
|
-
/* @__PURE__ */
|
3132
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3620
3133
|
"Th\xEAm",
|
3621
|
-
/* @__PURE__ */
|
3134
|
+
/* @__PURE__ */ jsx57(IconPlus2, { color: "blue" })
|
3622
3135
|
] })
|
3623
3136
|
] }) }),
|
3624
|
-
/* @__PURE__ */
|
3625
|
-
/* @__PURE__ */
|
3137
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3138
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
|
3626
3139
|
store.toogleAllPermissionWithType("isUpdate", e.target.checked);
|
3627
3140
|
} }),
|
3628
|
-
/* @__PURE__ */
|
3141
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3629
3142
|
"S\u1EEDa",
|
3630
|
-
/* @__PURE__ */
|
3143
|
+
/* @__PURE__ */ jsx57(IconEdit2, { color: "var(--mantine-color-yellow-8)" })
|
3631
3144
|
] })
|
3632
3145
|
] }) }),
|
3633
|
-
/* @__PURE__ */
|
3634
|
-
/* @__PURE__ */
|
3146
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3147
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
|
3635
3148
|
store.toogleAllPermissionWithType("isDelete", e.target.checked);
|
3636
3149
|
} }),
|
3637
|
-
/* @__PURE__ */
|
3150
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3638
3151
|
"X\xF3a",
|
3639
|
-
/* @__PURE__ */
|
3152
|
+
/* @__PURE__ */ jsx57(IconTrash2, { color: "var(--mantine-color-red-8)" })
|
3640
3153
|
] })
|
3641
3154
|
] }) }),
|
3642
|
-
/* @__PURE__ */
|
3643
|
-
/* @__PURE__ */
|
3155
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3156
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
|
3644
3157
|
store.toogleAllPermissionWithType("isPrint", e.target.checked);
|
3645
3158
|
} }),
|
3646
|
-
/* @__PURE__ */
|
3159
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3647
3160
|
"In",
|
3648
|
-
/* @__PURE__ */
|
3161
|
+
/* @__PURE__ */ jsx57(IconPrinter2, { color: "var(--mantine-color-cyan-8)" })
|
3649
3162
|
] })
|
3650
3163
|
] }) }),
|
3651
|
-
/* @__PURE__ */
|
3652
|
-
/* @__PURE__ */
|
3164
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3165
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isExport"), onChange: (e) => {
|
3653
3166
|
store.toogleAllPermissionWithType("isExport", e.target.checked);
|
3654
3167
|
} }),
|
3655
|
-
/* @__PURE__ */
|
3168
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3656
3169
|
"Xu\u1EA5t",
|
3657
|
-
/* @__PURE__ */
|
3170
|
+
/* @__PURE__ */ jsx57(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
3658
3171
|
] })
|
3659
3172
|
] }) })
|
3660
3173
|
] })
|
3661
3174
|
}
|
3662
3175
|
),
|
3663
|
-
/* @__PURE__ */
|
3664
|
-
if (item.links == void 0) return /* @__PURE__ */
|
3665
|
-
/* @__PURE__ */
|
3666
|
-
/* @__PURE__ */
|
3667
|
-
/* @__PURE__ */
|
3668
|
-
/* @__PURE__ */
|
3669
|
-
/* @__PURE__ */
|
3670
|
-
/* @__PURE__ */
|
3671
|
-
/* @__PURE__ */
|
3176
|
+
/* @__PURE__ */ jsx57(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
3177
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs37(Table3.Tr, { children: [
|
3178
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: item.label }),
|
3179
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3180
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3181
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3182
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3183
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3184
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) })
|
3672
3185
|
] }, idx);
|
3673
|
-
return /* @__PURE__ */
|
3674
|
-
/* @__PURE__ */
|
3675
|
-
|
3186
|
+
return /* @__PURE__ */ jsxs37(React2.Fragment, { children: [
|
3187
|
+
/* @__PURE__ */ jsx57(Table3.Tr, { children: /* @__PURE__ */ jsx57(
|
3188
|
+
Table3.Td,
|
3676
3189
|
{
|
3677
3190
|
colSpan: 7,
|
3678
3191
|
bg: const_object_colors.mantineBackgroundBlueLight,
|
3679
|
-
children: /* @__PURE__ */
|
3192
|
+
children: /* @__PURE__ */ jsx57(Text2, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
3680
3193
|
}
|
3681
3194
|
) }, item.label),
|
3682
3195
|
item.links.map(
|
3683
3196
|
(item2, idx2) => {
|
3684
3197
|
var _a2, _b2, _c, _d, _e, _f;
|
3685
|
-
return /* @__PURE__ */
|
3686
|
-
/* @__PURE__ */
|
3687
|
-
/* @__PURE__ */
|
3198
|
+
return /* @__PURE__ */ jsxs37(Table3.Tr, { children: [
|
3199
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: item2.label }),
|
3200
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3688
3201
|
Checkbox2,
|
3689
3202
|
{
|
3690
3203
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -3695,7 +3208,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3695
3208
|
}
|
3696
3209
|
}
|
3697
3210
|
) }) }),
|
3698
|
-
/* @__PURE__ */
|
3211
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3699
3212
|
Checkbox2,
|
3700
3213
|
{
|
3701
3214
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -3706,7 +3219,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3706
3219
|
}
|
3707
3220
|
}
|
3708
3221
|
) }) }),
|
3709
|
-
/* @__PURE__ */
|
3222
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3710
3223
|
Checkbox2,
|
3711
3224
|
{
|
3712
3225
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -3717,7 +3230,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3717
3230
|
}
|
3718
3231
|
}
|
3719
3232
|
) }) }),
|
3720
|
-
/* @__PURE__ */
|
3233
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3721
3234
|
Checkbox2,
|
3722
3235
|
{
|
3723
3236
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -3728,7 +3241,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3728
3241
|
}
|
3729
3242
|
}
|
3730
3243
|
) }) }),
|
3731
|
-
/* @__PURE__ */
|
3244
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3732
3245
|
Checkbox2,
|
3733
3246
|
{
|
3734
3247
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -3739,7 +3252,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3739
3252
|
}
|
3740
3253
|
}
|
3741
3254
|
) }) }),
|
3742
|
-
/* @__PURE__ */
|
3255
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3743
3256
|
Checkbox2,
|
3744
3257
|
{
|
3745
3258
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -3759,7 +3272,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3759
3272
|
}
|
3760
3273
|
function useGetUserPermission2({ menuData: menuData2 }) {
|
3761
3274
|
const store = useS_core83092();
|
3762
|
-
const query =
|
3275
|
+
const query = useQuery15({
|
3763
3276
|
queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
|
3764
3277
|
queryFn: async () => {
|
3765
3278
|
const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
|
@@ -3795,25 +3308,25 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
3795
3308
|
}
|
3796
3309
|
|
3797
3310
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3798
|
-
import { jsx as
|
3311
|
+
import { jsx as jsx58, jsxs as jsxs38 } from "react/jsx-runtime";
|
3799
3312
|
function F_core83092({ menuData: menuData2 }) {
|
3800
|
-
return /* @__PURE__ */
|
3801
|
-
/* @__PURE__ */
|
3802
|
-
/* @__PURE__ */
|
3803
|
-
/* @__PURE__ */
|
3804
|
-
/* @__PURE__ */
|
3313
|
+
return /* @__PURE__ */ jsxs38(Grid3, { children: [
|
3314
|
+
/* @__PURE__ */ jsx58(Grid3.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx58(ScrollArea4.Autosize, { children: /* @__PURE__ */ jsx58(F_core83092_ReadUser, {}) }) }),
|
3315
|
+
/* @__PURE__ */ jsx58(Grid3.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs38(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
3316
|
+
/* @__PURE__ */ jsx58(ScrollArea4.Autosize, { h: "100%", children: /* @__PURE__ */ jsx58(Paper5, { p: "md", bg: const_object_colors.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx58(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
3317
|
+
/* @__PURE__ */ jsx58(F_core83092_Save, {})
|
3805
3318
|
] }) })
|
3806
3319
|
] });
|
3807
3320
|
}
|
3808
3321
|
|
3809
3322
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3810
|
-
import { Paper as
|
3323
|
+
import { Paper as Paper6, Space as Space4 } from "@mantine/core";
|
3811
3324
|
|
3812
3325
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Create.tsx
|
3813
|
-
import { useForm as
|
3814
|
-
import { jsx as
|
3326
|
+
import { useForm as useForm19 } from "@mantine/form";
|
3327
|
+
import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
|
3815
3328
|
function F_formTemplateDocs_Create({ FormTypeId }) {
|
3816
|
-
const form =
|
3329
|
+
const form = useForm19({
|
3817
3330
|
mode: "uncontrolled",
|
3818
3331
|
validate: {
|
3819
3332
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3823,7 +3336,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3823
3336
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3824
3337
|
}
|
3825
3338
|
});
|
3826
|
-
return /* @__PURE__ */
|
3339
|
+
return /* @__PURE__ */ jsxs39(
|
3827
3340
|
MyButtonCreate,
|
3828
3341
|
{
|
3829
3342
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3835,28 +3348,28 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3835
3348
|
}));
|
3836
3349
|
},
|
3837
3350
|
children: [
|
3838
|
-
/* @__PURE__ */
|
3839
|
-
|
3351
|
+
/* @__PURE__ */ jsx59(
|
3352
|
+
MyTextInput2,
|
3840
3353
|
__spreadValues({
|
3841
3354
|
withAsterisk: true,
|
3842
3355
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3843
3356
|
}, form.getInputProps("decisionCode"))
|
3844
3357
|
),
|
3845
|
-
/* @__PURE__ */
|
3358
|
+
/* @__PURE__ */ jsx59(
|
3846
3359
|
MyDateInput,
|
3847
3360
|
__spreadValues({
|
3848
3361
|
withAsterisk: true,
|
3849
3362
|
label: "Ng\xE0y ban h\xE0nh"
|
3850
3363
|
}, form.getInputProps("promulgateDate"))
|
3851
3364
|
),
|
3852
|
-
/* @__PURE__ */
|
3853
|
-
|
3365
|
+
/* @__PURE__ */ jsx59(
|
3366
|
+
MyTextInput2,
|
3854
3367
|
__spreadValues({
|
3855
3368
|
withAsterisk: true,
|
3856
3369
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3857
3370
|
}, form.getInputProps("name"))
|
3858
3371
|
),
|
3859
|
-
/* @__PURE__ */
|
3372
|
+
/* @__PURE__ */ jsx59(
|
3860
3373
|
F_core18256_Select,
|
3861
3374
|
__spreadValues({
|
3862
3375
|
withAsterisk: true,
|
@@ -3864,14 +3377,14 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3864
3377
|
documentTypeId: FormTypeId
|
3865
3378
|
}, form.getInputProps("documentAttributeId"))
|
3866
3379
|
),
|
3867
|
-
/* @__PURE__ */
|
3380
|
+
/* @__PURE__ */ jsx59(
|
3868
3381
|
MyFileInput,
|
3869
3382
|
__spreadValues({
|
3870
3383
|
withAsterisk: true,
|
3871
3384
|
label: "V\u0103n b\u1EA3n"
|
3872
3385
|
}, form.getInputProps("file"))
|
3873
3386
|
),
|
3874
|
-
/* @__PURE__ */
|
3387
|
+
/* @__PURE__ */ jsx59(
|
3875
3388
|
MyNumberInput,
|
3876
3389
|
__spreadValues({
|
3877
3390
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3884,17 +3397,17 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3884
3397
|
|
3885
3398
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3886
3399
|
import { Accordion as Accordion4, Alert as Alert4, Blockquote as Blockquote4, Skeleton as Skeleton4 } from "@mantine/core";
|
3887
|
-
import { useQuery as
|
3888
|
-
import { useMemo as
|
3400
|
+
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
3401
|
+
import { useMemo as useMemo14 } from "react";
|
3889
3402
|
import { IconBug as IconBug4 } from "@tabler/icons-react";
|
3890
3403
|
|
3891
3404
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Delete.tsx
|
3892
|
-
import { jsx as
|
3405
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
3893
3406
|
function F_formTemplateDocs_Delete({
|
3894
3407
|
id,
|
3895
3408
|
contextData
|
3896
3409
|
}) {
|
3897
|
-
return /* @__PURE__ */
|
3410
|
+
return /* @__PURE__ */ jsx60(
|
3898
3411
|
MyActionIconDelete,
|
3899
3412
|
{
|
3900
3413
|
contextData,
|
@@ -3904,14 +3417,14 @@ function F_formTemplateDocs_Delete({
|
|
3904
3417
|
}
|
3905
3418
|
|
3906
3419
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Update.tsx
|
3907
|
-
import { useForm as
|
3908
|
-
import { jsx as
|
3420
|
+
import { useForm as useForm20 } from "@mantine/form";
|
3421
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
3909
3422
|
function F_formTemplateDocs_Update({
|
3910
3423
|
values,
|
3911
3424
|
FormTypeId
|
3912
3425
|
}) {
|
3913
3426
|
var _a;
|
3914
|
-
const form =
|
3427
|
+
const form = useForm20({
|
3915
3428
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3916
3429
|
file: new File(
|
3917
3430
|
[],
|
@@ -3927,7 +3440,7 @@ function F_formTemplateDocs_Update({
|
|
3927
3440
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3928
3441
|
}
|
3929
3442
|
});
|
3930
|
-
return /* @__PURE__ */
|
3443
|
+
return /* @__PURE__ */ jsxs40(
|
3931
3444
|
MyActionIconUpdate,
|
3932
3445
|
{
|
3933
3446
|
form,
|
@@ -3937,28 +3450,28 @@ function F_formTemplateDocs_Update({
|
|
3937
3450
|
}));
|
3938
3451
|
},
|
3939
3452
|
children: [
|
3940
|
-
/* @__PURE__ */
|
3941
|
-
|
3453
|
+
/* @__PURE__ */ jsx61(
|
3454
|
+
MyTextInput2,
|
3942
3455
|
__spreadValues({
|
3943
3456
|
withAsterisk: true,
|
3944
3457
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3945
3458
|
}, form.getInputProps("decisionCode"))
|
3946
3459
|
),
|
3947
|
-
/* @__PURE__ */
|
3460
|
+
/* @__PURE__ */ jsx61(
|
3948
3461
|
MyDateInput,
|
3949
3462
|
__spreadValues({
|
3950
3463
|
withAsterisk: true,
|
3951
3464
|
label: "Ng\xE0y ban h\xE0nh"
|
3952
3465
|
}, form.getInputProps("promulgateDate"))
|
3953
3466
|
),
|
3954
|
-
/* @__PURE__ */
|
3955
|
-
|
3467
|
+
/* @__PURE__ */ jsx61(
|
3468
|
+
MyTextInput2,
|
3956
3469
|
__spreadValues({
|
3957
3470
|
withAsterisk: true,
|
3958
3471
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3959
3472
|
}, form.getInputProps("name"))
|
3960
3473
|
),
|
3961
|
-
/* @__PURE__ */
|
3474
|
+
/* @__PURE__ */ jsx61(
|
3962
3475
|
F_core18256_Select,
|
3963
3476
|
__spreadValues({
|
3964
3477
|
withAsterisk: true,
|
@@ -3966,14 +3479,14 @@ function F_formTemplateDocs_Update({
|
|
3966
3479
|
documentTypeId: FormTypeId
|
3967
3480
|
}, form.getInputProps("documentAttributeId"))
|
3968
3481
|
),
|
3969
|
-
/* @__PURE__ */
|
3482
|
+
/* @__PURE__ */ jsx61(
|
3970
3483
|
MyFileInput,
|
3971
3484
|
__spreadValues({
|
3972
3485
|
withAsterisk: true,
|
3973
3486
|
label: "V\u0103n b\u1EA3n"
|
3974
3487
|
}, form.getInputProps("file"))
|
3975
3488
|
),
|
3976
|
-
/* @__PURE__ */
|
3489
|
+
/* @__PURE__ */ jsx61(
|
3977
3490
|
MyNumberInput,
|
3978
3491
|
__spreadValues({
|
3979
3492
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3985,10 +3498,10 @@ function F_formTemplateDocs_Update({
|
|
3985
3498
|
}
|
3986
3499
|
|
3987
3500
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3988
|
-
import { jsx as
|
3501
|
+
import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
|
3989
3502
|
function F_formTemplateDocs_Read({ FormTypeId }) {
|
3990
3503
|
var _a, _b, _c;
|
3991
|
-
const documentAttributeQuery =
|
3504
|
+
const documentAttributeQuery = useQuery16({
|
3992
3505
|
queryKey: ["F_formTemplateDocs_Read", FormTypeId],
|
3993
3506
|
queryFn: async () => {
|
3994
3507
|
var _a2;
|
@@ -3999,10 +3512,10 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3999
3512
|
}
|
4000
3513
|
});
|
4001
3514
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
4002
|
-
return /* @__PURE__ */
|
3515
|
+
return /* @__PURE__ */ jsx62(Blockquote4, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
4003
3516
|
if (documentAttributeQuery.isError)
|
4004
|
-
return /* @__PURE__ */
|
4005
|
-
return /* @__PURE__ */
|
3517
|
+
return /* @__PURE__ */ jsx62(Alert4, { icon: /* @__PURE__ */ jsx62(IconBug4, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
3518
|
+
return /* @__PURE__ */ jsx62(Skeleton4, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx62(MyFlexColumn, { children: /* @__PURE__ */ jsx62(
|
4006
3519
|
Accordion4,
|
4007
3520
|
{
|
4008
3521
|
variant: "contained",
|
@@ -4013,7 +3526,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
4013
3526
|
}
|
4014
3527
|
),
|
4015
3528
|
multiple: true,
|
4016
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
3529
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx62(
|
4017
3530
|
SubRead4,
|
4018
3531
|
{
|
4019
3532
|
name: item.name,
|
@@ -4030,7 +3543,7 @@ function SubRead4({
|
|
4030
3543
|
documentType,
|
4031
3544
|
FormTypeId
|
4032
3545
|
}) {
|
4033
|
-
const documentQuery =
|
3546
|
+
const documentQuery = useQuery16({
|
4034
3547
|
queryKey: ["SF2_3Read" + documentType],
|
4035
3548
|
queryFn: async () => {
|
4036
3549
|
const result = await baseAxios_default.get(
|
@@ -4039,7 +3552,7 @@ function SubRead4({
|
|
4039
3552
|
return result.data.data;
|
4040
3553
|
}
|
4041
3554
|
});
|
4042
|
-
const columns =
|
3555
|
+
const columns = useMemo14(
|
4043
3556
|
() => [
|
4044
3557
|
{
|
4045
3558
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4056,66 +3569,256 @@ function SubRead4({
|
|
4056
3569
|
{
|
4057
3570
|
header: "File",
|
4058
3571
|
accessorFn: (row) => {
|
4059
|
-
return /* @__PURE__ */
|
3572
|
+
return /* @__PURE__ */ jsx62(MyCenterFull, { children: /* @__PURE__ */ jsx62(MyButtonViewPDF, { id: row.id }) });
|
3573
|
+
}
|
3574
|
+
}
|
3575
|
+
],
|
3576
|
+
[]
|
3577
|
+
);
|
3578
|
+
if (documentQuery.isLoading) return "Loading...";
|
3579
|
+
if (documentQuery.isError) return "Error!";
|
3580
|
+
return /* @__PURE__ */ jsxs41(Accordion4.Item, { value: documentType.toString(), children: [
|
3581
|
+
/* @__PURE__ */ jsx62(Accordion4.Control, { children: name }),
|
3582
|
+
/* @__PURE__ */ jsx62(Accordion4.Panel, { children: /* @__PURE__ */ jsx62(
|
3583
|
+
MyDataTable,
|
3584
|
+
{
|
3585
|
+
isLoading: documentQuery.isLoading,
|
3586
|
+
isError: documentQuery.isError,
|
3587
|
+
columns,
|
3588
|
+
data: documentQuery.data || [],
|
3589
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
3590
|
+
/* @__PURE__ */ jsx62(
|
3591
|
+
F_formTemplateDocs_Update,
|
3592
|
+
{
|
3593
|
+
FormTypeId,
|
3594
|
+
values: row.original
|
3595
|
+
}
|
3596
|
+
),
|
3597
|
+
/* @__PURE__ */ jsx62(
|
3598
|
+
F_formTemplateDocs_Delete,
|
3599
|
+
{
|
3600
|
+
id: row.original.id,
|
3601
|
+
contextData: row.original.decisionCode
|
3602
|
+
}
|
3603
|
+
)
|
3604
|
+
] })
|
3605
|
+
}
|
3606
|
+
) })
|
3607
|
+
] });
|
3608
|
+
}
|
3609
|
+
|
3610
|
+
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3611
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
|
3612
|
+
function F_formTemplateDocs({
|
3613
|
+
FormTypeId
|
3614
|
+
}) {
|
3615
|
+
return /* @__PURE__ */ jsxs42(Paper6, { p: "md", children: [
|
3616
|
+
/* @__PURE__ */ jsx63(MyFlexEnd, { children: /* @__PURE__ */ jsx63(F_formTemplateDocs_Create, { FormTypeId }) }),
|
3617
|
+
/* @__PURE__ */ jsx63(Space4, {}),
|
3618
|
+
/* @__PURE__ */ jsx63(F_formTemplateDocs_Read, { FormTypeId })
|
3619
|
+
] });
|
3620
|
+
}
|
3621
|
+
|
3622
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3623
|
+
import { useEffect as useEffect10 } from "react";
|
3624
|
+
|
3625
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3626
|
+
import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
|
3627
|
+
import { useForm as useForm21 } from "@mantine/form";
|
3628
|
+
import { useEffect as useEffect9 } from "react";
|
3629
|
+
|
3630
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3631
|
+
import { useMutation as useMutation4 } from "@tanstack/react-query";
|
3632
|
+
|
3633
|
+
// src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
|
3634
|
+
var useStore3 = createGenericStore({
|
3635
|
+
initialState: {}
|
3636
|
+
});
|
3637
|
+
function useS_moduleConfig() {
|
3638
|
+
const store = useStore3();
|
3639
|
+
return __spreadValues({}, store);
|
3640
|
+
}
|
3641
|
+
|
3642
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3643
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
3644
|
+
function F_moduleConfig_Save({
|
3645
|
+
form
|
3646
|
+
}) {
|
3647
|
+
const store = useS_moduleConfig();
|
3648
|
+
const mutation = useMutation4({
|
3649
|
+
mutationFn: async (body) => {
|
3650
|
+
const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
|
3651
|
+
return res;
|
3652
|
+
}
|
3653
|
+
});
|
3654
|
+
async function handleSave() {
|
3655
|
+
var _b, _c, _d, _e;
|
3656
|
+
const _a = form.getValues(), { faviconFile, logoFile } = _a, formValues = __objRest(_a, ["faviconFile", "logoFile"]);
|
3657
|
+
mutation.mutate(__spreadProps(__spreadValues({}, formValues), {
|
3658
|
+
logoFileDetail: form.isDirty("logoFileDetail") == false ? {
|
3659
|
+
fileName: (_b = formValues.logoFileDetail) == null ? void 0 : _b.fileName,
|
3660
|
+
fileExtension: (_c = formValues.logoFileDetail) == null ? void 0 : _c.fileExtension,
|
3661
|
+
fileBase64String: ""
|
3662
|
+
} : formValues.logoFileDetail,
|
3663
|
+
faviconFileDetail: form.isDirty("faviconFileDetail") == false ? {
|
3664
|
+
fileName: (_d = formValues.faviconFileDetail) == null ? void 0 : _d.fileName,
|
3665
|
+
fileExtension: (_e = formValues.faviconFileDetail) == null ? void 0 : _e.fileExtension,
|
3666
|
+
fileBase64String: ""
|
3667
|
+
} : formValues.faviconFileDetail,
|
3668
|
+
id: store.state.AQModuleId
|
3669
|
+
}), {
|
3670
|
+
onSuccess: () => {
|
3671
|
+
utils_notification_show({
|
3672
|
+
crudType: "update"
|
3673
|
+
});
|
3674
|
+
}
|
3675
|
+
});
|
3676
|
+
}
|
3677
|
+
return /* @__PURE__ */ jsx64(
|
3678
|
+
MyButton2,
|
3679
|
+
{
|
3680
|
+
disabled: !form.isDirty(),
|
3681
|
+
crudType: "save",
|
3682
|
+
onClick: handleSave
|
3683
|
+
}
|
3684
|
+
);
|
3685
|
+
}
|
3686
|
+
|
3687
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3688
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
3689
|
+
function F_moduleConfig_Form() {
|
3690
|
+
var _a, _b, _c, _d;
|
3691
|
+
const query = useQ_AQ_GetAQModule();
|
3692
|
+
const form = useForm21({
|
3693
|
+
mode: "uncontrolled",
|
3694
|
+
validate: {
|
3695
|
+
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
3696
|
+
logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3697
|
+
}
|
3698
|
+
});
|
3699
|
+
useEffect9(() => {
|
3700
|
+
var _a2, _b2;
|
3701
|
+
if (!query.data) return;
|
3702
|
+
const values = {
|
3703
|
+
code: query.data.code || "",
|
3704
|
+
name: query.data.name || "",
|
3705
|
+
officelName: query.data.officelName || "",
|
3706
|
+
email: query.data.email || "",
|
3707
|
+
phoneNumber: query.data.phoneNumber || "",
|
3708
|
+
registrationDate: new Date(query.data.registrationDate) || /* @__PURE__ */ new Date(),
|
3709
|
+
limiteDate: new Date(query.data.limiteDate) || /* @__PURE__ */ new Date(),
|
3710
|
+
faviconPath: query.data.faviconPath || "",
|
3711
|
+
logoPath: query.data.logoPath || "",
|
3712
|
+
faviconFile: new File([], (_a2 = query.data.faviconFileDetail) == null ? void 0 : _a2.fileName),
|
3713
|
+
logoFile: new File([], (_b2 = query.data.logoFileDetail) == null ? void 0 : _b2.fileName),
|
3714
|
+
faviconFileDetail: query.data.faviconFileDetail,
|
3715
|
+
logoFileDetail: query.data.logoFileDetail
|
3716
|
+
};
|
3717
|
+
form.setInitialValues(values);
|
3718
|
+
form.setValues(values);
|
3719
|
+
}, [query.data]);
|
3720
|
+
return /* @__PURE__ */ jsxs43(Paper7, { p: "md", children: [
|
3721
|
+
/* @__PURE__ */ jsxs43(Grid4, { children: [
|
3722
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
3723
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
3724
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: 12, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
3725
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
3726
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
3727
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(
|
3728
|
+
MyDateInput,
|
3729
|
+
{
|
3730
|
+
value: form.getValues().registrationDate,
|
3731
|
+
disabled: true,
|
3732
|
+
onChange: (date) => form.setFieldValue("registrationDate", new Date(date)),
|
3733
|
+
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
4060
3734
|
}
|
4061
|
-
}
|
4062
|
-
|
4063
|
-
|
4064
|
-
|
4065
|
-
|
4066
|
-
|
4067
|
-
|
4068
|
-
|
4069
|
-
|
4070
|
-
|
4071
|
-
{
|
4072
|
-
|
4073
|
-
|
4074
|
-
|
4075
|
-
|
4076
|
-
|
4077
|
-
|
4078
|
-
|
4079
|
-
|
4080
|
-
|
4081
|
-
values: row.original
|
3735
|
+
) }),
|
3736
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(
|
3737
|
+
MyDateInput,
|
3738
|
+
{
|
3739
|
+
value: form.getValues().limiteDate,
|
3740
|
+
disabled: true,
|
3741
|
+
onChange: (date) => form.setFieldValue("limiteDate", new Date(date)),
|
3742
|
+
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
3743
|
+
}
|
3744
|
+
) }),
|
3745
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
|
3746
|
+
/* @__PURE__ */ jsx65(
|
3747
|
+
MyFileInput,
|
3748
|
+
{
|
3749
|
+
accept: "image/png,image/jpeg",
|
3750
|
+
label: "Favicon (16px x 16px)",
|
3751
|
+
value: form.getValues().faviconFile,
|
3752
|
+
onChange: async (e) => {
|
3753
|
+
form.setFieldValue("faviconFile", e);
|
3754
|
+
form.setFieldValue("faviconFileDetail", await utils_file_fileToAQDocumentType(e));
|
4082
3755
|
}
|
4083
|
-
|
4084
|
-
|
4085
|
-
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
3756
|
+
}
|
3757
|
+
),
|
3758
|
+
/* @__PURE__ */ jsx65(Paper7, { w: "100%", children: /* @__PURE__ */ jsx65(Center, { children: /* @__PURE__ */ jsx65(
|
3759
|
+
Image,
|
3760
|
+
{
|
3761
|
+
fit: "contain",
|
3762
|
+
src: `data:image/${(_a = form.getValues().faviconFileDetail) == null ? void 0 : _a.fileExtension};base64,
|
3763
|
+
${(_b = form.getValues().faviconFileDetail) == null ? void 0 : _b.fileBase64String}`,
|
3764
|
+
h: "115px",
|
3765
|
+
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
3766
|
+
alt: "Main logo",
|
3767
|
+
w: "330px"
|
3768
|
+
}
|
3769
|
+
) }) })
|
3770
|
+
] }) }),
|
3771
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
|
3772
|
+
/* @__PURE__ */ jsx65(
|
3773
|
+
MyFileInput,
|
3774
|
+
{
|
3775
|
+
accept: "image/png,image/jpeg",
|
3776
|
+
label: "Logo (330px x 115px)",
|
3777
|
+
value: form.getValues().logoFile,
|
3778
|
+
onChange: async (e) => {
|
3779
|
+
form.setFieldValue("logoFile", e);
|
3780
|
+
form.setFieldValue("logoFileDetail", await utils_file_fileToAQDocumentType(e));
|
4089
3781
|
}
|
4090
|
-
|
4091
|
-
|
4092
|
-
|
4093
|
-
|
3782
|
+
}
|
3783
|
+
),
|
3784
|
+
/* @__PURE__ */ jsx65(Paper7, { children: /* @__PURE__ */ jsx65(Center, { children: /* @__PURE__ */ jsx65(
|
3785
|
+
Image,
|
3786
|
+
{
|
3787
|
+
fit: "contain",
|
3788
|
+
src: `data:image/${(_c = form.getValues().logoFileDetail) == null ? void 0 : _c.fileExtension};base64,
|
3789
|
+
${(_d = form.getValues().logoFileDetail) == null ? void 0 : _d.fileBase64String}`,
|
3790
|
+
h: "115px",
|
3791
|
+
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
3792
|
+
alt: "Main logo",
|
3793
|
+
w: "330px"
|
3794
|
+
}
|
3795
|
+
) }) })
|
3796
|
+
] }) })
|
3797
|
+
] }),
|
3798
|
+
/* @__PURE__ */ jsx65(MyFlexEnd, { children: /* @__PURE__ */ jsx65(F_moduleConfig_Save, { form }) })
|
4094
3799
|
] });
|
4095
3800
|
}
|
4096
3801
|
|
4097
|
-
// src/modules-features/admin/core/
|
4098
|
-
import { jsx as
|
4099
|
-
function
|
4100
|
-
|
4101
|
-
|
4102
|
-
|
4103
|
-
|
4104
|
-
|
4105
|
-
/* @__PURE__ */ jsx72(F_formTemplateDocs_Read, { FormTypeId })
|
4106
|
-
] });
|
3802
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3803
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
3804
|
+
function F_moduleConfig({ AQModuleId }) {
|
3805
|
+
const store = useS_moduleConfig();
|
3806
|
+
useEffect10(() => {
|
3807
|
+
store.setProperty("AQModuleId", AQModuleId);
|
3808
|
+
}, []);
|
3809
|
+
return /* @__PURE__ */ jsx66(F_moduleConfig_Form, {});
|
4107
3810
|
}
|
4108
3811
|
|
4109
3812
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4110
3813
|
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
4111
3814
|
|
4112
3815
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
|
4113
|
-
import { useForm as
|
4114
|
-
import { jsx as
|
3816
|
+
import { useForm as useForm22 } from "@mantine/form";
|
3817
|
+
import { jsx as jsx67, jsxs as jsxs44 } from "react/jsx-runtime";
|
4115
3818
|
function F_organizationPolicyDocs_Create({
|
4116
3819
|
RegulationsTypeId
|
4117
3820
|
}) {
|
4118
|
-
const form =
|
3821
|
+
const form = useForm22({
|
4119
3822
|
mode: "uncontrolled",
|
4120
3823
|
validate: {
|
4121
3824
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4125,7 +3828,7 @@ function F_organizationPolicyDocs_Create({
|
|
4125
3828
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4126
3829
|
}
|
4127
3830
|
});
|
4128
|
-
return /* @__PURE__ */
|
3831
|
+
return /* @__PURE__ */ jsxs44(
|
4129
3832
|
MyButtonCreate,
|
4130
3833
|
{
|
4131
3834
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -4137,28 +3840,28 @@ function F_organizationPolicyDocs_Create({
|
|
4137
3840
|
}));
|
4138
3841
|
},
|
4139
3842
|
children: [
|
4140
|
-
/* @__PURE__ */
|
4141
|
-
|
3843
|
+
/* @__PURE__ */ jsx67(
|
3844
|
+
MyTextInput2,
|
4142
3845
|
__spreadValues({
|
4143
3846
|
withAsterisk: true,
|
4144
3847
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4145
3848
|
}, form.getInputProps("decisionCode"))
|
4146
3849
|
),
|
4147
|
-
/* @__PURE__ */
|
3850
|
+
/* @__PURE__ */ jsx67(
|
4148
3851
|
MyDateInput,
|
4149
3852
|
__spreadValues({
|
4150
3853
|
withAsterisk: true,
|
4151
3854
|
label: "Ng\xE0y ban h\xE0nh"
|
4152
3855
|
}, form.getInputProps("promulgateDate"))
|
4153
3856
|
),
|
4154
|
-
/* @__PURE__ */
|
4155
|
-
|
3857
|
+
/* @__PURE__ */ jsx67(
|
3858
|
+
MyTextInput2,
|
4156
3859
|
__spreadValues({
|
4157
3860
|
withAsterisk: true,
|
4158
3861
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4159
3862
|
}, form.getInputProps("name"))
|
4160
3863
|
),
|
4161
|
-
/* @__PURE__ */
|
3864
|
+
/* @__PURE__ */ jsx67(
|
4162
3865
|
F_core18256_Select,
|
4163
3866
|
__spreadValues({
|
4164
3867
|
withAsterisk: true,
|
@@ -4166,14 +3869,14 @@ function F_organizationPolicyDocs_Create({
|
|
4166
3869
|
documentTypeId: RegulationsTypeId
|
4167
3870
|
}, form.getInputProps("documentAttributeId"))
|
4168
3871
|
),
|
4169
|
-
/* @__PURE__ */
|
3872
|
+
/* @__PURE__ */ jsx67(
|
4170
3873
|
MyFileInput,
|
4171
3874
|
__spreadValues({
|
4172
3875
|
withAsterisk: true,
|
4173
3876
|
label: "V\u0103n b\u1EA3n"
|
4174
3877
|
}, form.getInputProps("file"))
|
4175
3878
|
),
|
4176
|
-
/* @__PURE__ */
|
3879
|
+
/* @__PURE__ */ jsx67(
|
4177
3880
|
MyNumberInput,
|
4178
3881
|
__spreadValues({
|
4179
3882
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -4186,17 +3889,17 @@ function F_organizationPolicyDocs_Create({
|
|
4186
3889
|
|
4187
3890
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
4188
3891
|
import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
|
4189
|
-
import { useQuery as
|
3892
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
4190
3893
|
import { IconBug as IconBug5 } from "@tabler/icons-react";
|
4191
|
-
import { useMemo as
|
3894
|
+
import { useMemo as useMemo15 } from "react";
|
4192
3895
|
|
4193
3896
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
4194
|
-
import { jsx as
|
3897
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
4195
3898
|
function F_organizationPolicyDocs_Delete({
|
4196
3899
|
id,
|
4197
3900
|
contextData
|
4198
3901
|
}) {
|
4199
|
-
return /* @__PURE__ */
|
3902
|
+
return /* @__PURE__ */ jsx68(
|
4200
3903
|
MyActionIconDelete,
|
4201
3904
|
{
|
4202
3905
|
contextData,
|
@@ -4206,14 +3909,14 @@ function F_organizationPolicyDocs_Delete({
|
|
4206
3909
|
}
|
4207
3910
|
|
4208
3911
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
|
4209
|
-
import { useForm as
|
4210
|
-
import { jsx as
|
3912
|
+
import { useForm as useForm23 } from "@mantine/form";
|
3913
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
|
4211
3914
|
function F_organizationPolicyDocs_Update({
|
4212
3915
|
values,
|
4213
3916
|
RegulationsTypeId
|
4214
3917
|
}) {
|
4215
3918
|
var _a;
|
4216
|
-
const form =
|
3919
|
+
const form = useForm23({
|
4217
3920
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4218
3921
|
file: new File(
|
4219
3922
|
[],
|
@@ -4229,7 +3932,7 @@ function F_organizationPolicyDocs_Update({
|
|
4229
3932
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4230
3933
|
}
|
4231
3934
|
});
|
4232
|
-
return /* @__PURE__ */
|
3935
|
+
return /* @__PURE__ */ jsxs45(
|
4233
3936
|
MyActionIconUpdate,
|
4234
3937
|
{
|
4235
3938
|
form,
|
@@ -4239,28 +3942,28 @@ function F_organizationPolicyDocs_Update({
|
|
4239
3942
|
}));
|
4240
3943
|
},
|
4241
3944
|
children: [
|
4242
|
-
/* @__PURE__ */
|
4243
|
-
|
3945
|
+
/* @__PURE__ */ jsx69(
|
3946
|
+
MyTextInput2,
|
4244
3947
|
__spreadValues({
|
4245
3948
|
withAsterisk: true,
|
4246
3949
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4247
3950
|
}, form.getInputProps("decisionCode"))
|
4248
3951
|
),
|
4249
|
-
/* @__PURE__ */
|
3952
|
+
/* @__PURE__ */ jsx69(
|
4250
3953
|
MyDateInput,
|
4251
3954
|
__spreadValues({
|
4252
3955
|
withAsterisk: true,
|
4253
3956
|
label: "Ng\xE0y ban h\xE0nh"
|
4254
3957
|
}, form.getInputProps("promulgateDate"))
|
4255
3958
|
),
|
4256
|
-
/* @__PURE__ */
|
4257
|
-
|
3959
|
+
/* @__PURE__ */ jsx69(
|
3960
|
+
MyTextInput2,
|
4258
3961
|
__spreadValues({
|
4259
3962
|
withAsterisk: true,
|
4260
3963
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4261
3964
|
}, form.getInputProps("name"))
|
4262
3965
|
),
|
4263
|
-
/* @__PURE__ */
|
3966
|
+
/* @__PURE__ */ jsx69(
|
4264
3967
|
F_core18256_Select,
|
4265
3968
|
__spreadValues({
|
4266
3969
|
withAsterisk: true,
|
@@ -4268,14 +3971,14 @@ function F_organizationPolicyDocs_Update({
|
|
4268
3971
|
documentTypeId: RegulationsTypeId
|
4269
3972
|
}, form.getInputProps("documentAttributeId"))
|
4270
3973
|
),
|
4271
|
-
/* @__PURE__ */
|
3974
|
+
/* @__PURE__ */ jsx69(
|
4272
3975
|
MyFileInput,
|
4273
3976
|
__spreadValues({
|
4274
3977
|
withAsterisk: true,
|
4275
3978
|
label: "V\u0103n b\u1EA3n"
|
4276
3979
|
}, form.getInputProps("file"))
|
4277
3980
|
),
|
4278
|
-
/* @__PURE__ */
|
3981
|
+
/* @__PURE__ */ jsx69(
|
4279
3982
|
MyNumberInput,
|
4280
3983
|
__spreadValues({
|
4281
3984
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -4287,12 +3990,12 @@ function F_organizationPolicyDocs_Update({
|
|
4287
3990
|
}
|
4288
3991
|
|
4289
3992
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
4290
|
-
import { jsx as
|
3993
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "react/jsx-runtime";
|
4291
3994
|
function F_organizationPolicyDocs_Read({
|
4292
3995
|
RegulationsTypeId
|
4293
3996
|
}) {
|
4294
3997
|
var _a, _b, _c;
|
4295
|
-
const documentAttributeQuery =
|
3998
|
+
const documentAttributeQuery = useQuery17({
|
4296
3999
|
queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
|
4297
4000
|
queryFn: async () => {
|
4298
4001
|
var _a2;
|
@@ -4303,10 +4006,10 @@ function F_organizationPolicyDocs_Read({
|
|
4303
4006
|
}
|
4304
4007
|
});
|
4305
4008
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
4306
|
-
return /* @__PURE__ */
|
4009
|
+
return /* @__PURE__ */ jsx70(Blockquote5, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
4307
4010
|
if (documentAttributeQuery.isError)
|
4308
|
-
return /* @__PURE__ */
|
4309
|
-
return /* @__PURE__ */
|
4011
|
+
return /* @__PURE__ */ jsx70(Alert5, { icon: /* @__PURE__ */ jsx70(IconBug5, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
4012
|
+
return /* @__PURE__ */ jsx70(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx70(MyFlexColumn, { children: /* @__PURE__ */ jsx70(
|
4310
4013
|
Accordion5,
|
4311
4014
|
{
|
4312
4015
|
variant: "contained",
|
@@ -4317,7 +4020,7 @@ function F_organizationPolicyDocs_Read({
|
|
4317
4020
|
}
|
4318
4021
|
),
|
4319
4022
|
multiple: true,
|
4320
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
4023
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx70(
|
4321
4024
|
SubRead5,
|
4322
4025
|
{
|
4323
4026
|
name: item.name,
|
@@ -4334,7 +4037,7 @@ function SubRead5({
|
|
4334
4037
|
documentType,
|
4335
4038
|
RegulationsTypeId
|
4336
4039
|
}) {
|
4337
|
-
const documentQuery =
|
4040
|
+
const documentQuery = useQuery17({
|
4338
4041
|
queryKey: ["SubRead" + documentType],
|
4339
4042
|
queryFn: async () => {
|
4340
4043
|
const result = await baseAxios_default.get(
|
@@ -4343,7 +4046,7 @@ function SubRead5({
|
|
4343
4046
|
return result.data.data;
|
4344
4047
|
}
|
4345
4048
|
});
|
4346
|
-
const columns =
|
4049
|
+
const columns = useMemo15(
|
4347
4050
|
() => [
|
4348
4051
|
{
|
4349
4052
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4360,30 +4063,30 @@ function SubRead5({
|
|
4360
4063
|
{
|
4361
4064
|
header: "File",
|
4362
4065
|
accessorFn: (row) => {
|
4363
|
-
return /* @__PURE__ */
|
4066
|
+
return /* @__PURE__ */ jsx70(MyCenterFull, { children: /* @__PURE__ */ jsx70(MyButtonViewPDF, { id: row.id }) });
|
4364
4067
|
}
|
4365
4068
|
}
|
4366
4069
|
],
|
4367
4070
|
[]
|
4368
4071
|
);
|
4369
|
-
return /* @__PURE__ */
|
4370
|
-
/* @__PURE__ */
|
4371
|
-
/* @__PURE__ */
|
4072
|
+
return /* @__PURE__ */ jsxs46(Accordion5.Item, { value: documentType.toString(), children: [
|
4073
|
+
/* @__PURE__ */ jsx70(Accordion5.Control, { children: name }),
|
4074
|
+
/* @__PURE__ */ jsx70(Accordion5.Panel, { children: /* @__PURE__ */ jsx70(
|
4372
4075
|
MyDataTable,
|
4373
4076
|
{
|
4374
4077
|
isLoading: documentQuery.isLoading,
|
4375
4078
|
isError: documentQuery.isError,
|
4376
4079
|
columns,
|
4377
4080
|
data: documentQuery.data || [],
|
4378
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4379
|
-
/* @__PURE__ */
|
4081
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
4082
|
+
/* @__PURE__ */ jsx70(
|
4380
4083
|
F_organizationPolicyDocs_Update,
|
4381
4084
|
{
|
4382
4085
|
RegulationsTypeId,
|
4383
4086
|
values: row.original
|
4384
4087
|
}
|
4385
4088
|
),
|
4386
|
-
/* @__PURE__ */
|
4089
|
+
/* @__PURE__ */ jsx70(
|
4387
4090
|
F_organizationPolicyDocs_Delete,
|
4388
4091
|
{
|
4389
4092
|
id: row.original.id,
|
@@ -4397,12 +4100,12 @@ function SubRead5({
|
|
4397
4100
|
}
|
4398
4101
|
|
4399
4102
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4400
|
-
import { jsx as
|
4103
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
|
4401
4104
|
function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
4402
|
-
return /* @__PURE__ */
|
4403
|
-
/* @__PURE__ */
|
4404
|
-
/* @__PURE__ */
|
4405
|
-
/* @__PURE__ */
|
4105
|
+
return /* @__PURE__ */ jsxs47(Paper8, { p: "md", children: [
|
4106
|
+
/* @__PURE__ */ jsx71(MyFlexEnd, { children: /* @__PURE__ */ jsx71(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
|
4107
|
+
/* @__PURE__ */ jsx71(Space5, {}),
|
4108
|
+
/* @__PURE__ */ jsx71(F_organizationPolicyDocs_Read, { RegulationsTypeId })
|
4406
4109
|
] });
|
4407
4110
|
}
|
4408
4111
|
|
@@ -4411,11 +4114,11 @@ var CONTROLLER2 = "/eva/PageContent";
|
|
4411
4114
|
var service_PageContent = __spreadValues({}, createBaseApi(CONTROLLER2, baseAxios_default));
|
4412
4115
|
|
4413
4116
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4414
|
-
import { Group as
|
4415
|
-
import { useMemo as
|
4117
|
+
import { Group as Group4 } from "@mantine/core";
|
4118
|
+
import { useMemo as useMemo16 } from "react";
|
4416
4119
|
|
4417
4120
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
4418
|
-
import { jsx as
|
4121
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
4419
4122
|
function F_pageContentConfig_Save({ menuValues }) {
|
4420
4123
|
const updatePageConfigMutation = useMyReactMutation({
|
4421
4124
|
axiosFn: () => {
|
@@ -4423,30 +4126,30 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4423
4126
|
return service_PageContent.updateList([{ id: 1 }]);
|
4424
4127
|
}
|
4425
4128
|
});
|
4426
|
-
return /* @__PURE__ */
|
4129
|
+
return /* @__PURE__ */ jsx72(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4427
4130
|
}
|
4428
4131
|
|
4429
4132
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4430
|
-
import { jsx as
|
4133
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
4431
4134
|
function F_pageContentConfig_Export() {
|
4432
|
-
return /* @__PURE__ */
|
4135
|
+
return /* @__PURE__ */ jsx73(MyButton, { actionType: "export" });
|
4433
4136
|
}
|
4434
4137
|
|
4435
4138
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4436
|
-
import { jsx as
|
4139
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
4437
4140
|
function F_pageContentConfig_DeleteDescription() {
|
4438
|
-
return /* @__PURE__ */
|
4141
|
+
return /* @__PURE__ */ jsx74(MyButton, { actionType: "delete" });
|
4439
4142
|
}
|
4440
4143
|
|
4441
4144
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4442
|
-
import { jsx as
|
4145
|
+
import { jsx as jsx75, jsxs as jsxs48 } from "react/jsx-runtime";
|
4443
4146
|
function F_pageContentConfig_ReadMenu() {
|
4444
4147
|
const pageContentQuery = useMyReactQuery({
|
4445
4148
|
queryKey: ["pageContentQuery"],
|
4446
4149
|
axiosFn: () => service_PageContent.getAll()
|
4447
4150
|
});
|
4448
4151
|
const device = useMyDevice();
|
4449
|
-
const columns =
|
4152
|
+
const columns = useMemo16(() => [
|
4450
4153
|
{
|
4451
4154
|
header: "Dashboard",
|
4452
4155
|
accessorKey: "name"
|
@@ -4456,77 +4159,77 @@ function F_pageContentConfig_ReadMenu() {
|
|
4456
4159
|
accessorKey: "description",
|
4457
4160
|
size: device.isPc ? 400 : 0,
|
4458
4161
|
Cell: () => {
|
4459
|
-
return /* @__PURE__ */
|
4162
|
+
return /* @__PURE__ */ jsx75(MyTextInput, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
4460
4163
|
}
|
4461
4164
|
}
|
4462
4165
|
], []);
|
4463
|
-
return /* @__PURE__ */
|
4166
|
+
return /* @__PURE__ */ jsx75(
|
4464
4167
|
MyDataTable,
|
4465
4168
|
{
|
4466
4169
|
isLoading: pageContentQuery.isLoading,
|
4467
4170
|
isError: pageContentQuery.isError,
|
4468
4171
|
data: pageContentQuery.data || [],
|
4469
4172
|
columns,
|
4470
|
-
renderTopToolbarCustomActions: (row) => /* @__PURE__ */
|
4471
|
-
/* @__PURE__ */
|
4472
|
-
/* @__PURE__ */
|
4473
|
-
/* @__PURE__ */
|
4173
|
+
renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs48(Group4, { children: [
|
4174
|
+
/* @__PURE__ */ jsx75(F_pageContentConfig_Save, { menuValues: [] }),
|
4175
|
+
/* @__PURE__ */ jsx75(F_pageContentConfig_Export, {}),
|
4176
|
+
/* @__PURE__ */ jsx75(F_pageContentConfig_DeleteDescription, {})
|
4474
4177
|
] })
|
4475
4178
|
}
|
4476
4179
|
);
|
4477
4180
|
}
|
4478
4181
|
|
4479
4182
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
|
4480
|
-
import { jsx as
|
4183
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
4481
4184
|
function F_pageContentConfig() {
|
4482
|
-
return /* @__PURE__ */
|
4185
|
+
return /* @__PURE__ */ jsx76(F_pageContentConfig_ReadMenu, {});
|
4483
4186
|
}
|
4484
4187
|
|
4485
4188
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4486
|
-
import { Group as
|
4487
|
-
import { useQuery as
|
4488
|
-
import { useMemo as
|
4189
|
+
import { Group as Group5 } from "@mantine/core";
|
4190
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
4191
|
+
import { useMemo as useMemo17 } from "react";
|
4489
4192
|
|
4490
4193
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
|
4491
|
-
import { jsx as
|
4492
|
-
var
|
4194
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
4195
|
+
var ENDPOINT4 = "/Role/Delete";
|
4493
4196
|
function F_roleCatalog_Delete({ values }) {
|
4494
|
-
return /* @__PURE__ */
|
4197
|
+
return /* @__PURE__ */ jsx77(
|
4495
4198
|
MyActionIconDelete,
|
4496
4199
|
{
|
4497
4200
|
contextData: values.code,
|
4498
|
-
onSubmit: () => baseAxios_default.post(
|
4201
|
+
onSubmit: () => baseAxios_default.post(ENDPOINT4, { id: values.id })
|
4499
4202
|
}
|
4500
4203
|
);
|
4501
4204
|
}
|
4502
4205
|
|
4503
4206
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
|
4504
|
-
import { useForm as
|
4505
|
-
import { jsx as
|
4207
|
+
import { useForm as useForm24 } from "@mantine/form";
|
4208
|
+
import { jsx as jsx78, jsxs as jsxs49 } from "react/jsx-runtime";
|
4506
4209
|
function F_roleCatalog_Form({ values }) {
|
4507
|
-
const form =
|
4210
|
+
const form = useForm24({
|
4508
4211
|
mode: "uncontrolled",
|
4509
4212
|
initialValues: values
|
4510
4213
|
});
|
4511
|
-
if (values) return /* @__PURE__ */
|
4214
|
+
if (values) return /* @__PURE__ */ jsxs49(MyActionIconUpdate, { form, onSubmit: async () => {
|
4512
4215
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
4513
4216
|
}, children: [
|
4514
|
-
/* @__PURE__ */
|
4515
|
-
/* @__PURE__ */
|
4217
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
4218
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4516
4219
|
] });
|
4517
|
-
return /* @__PURE__ */
|
4220
|
+
return /* @__PURE__ */ jsxs49(MyButtonCreate, { form, onSubmit: async () => {
|
4518
4221
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
4519
4222
|
}, children: [
|
4520
|
-
/* @__PURE__ */
|
4521
|
-
/* @__PURE__ */
|
4223
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
4224
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4522
4225
|
] });
|
4523
4226
|
}
|
4524
4227
|
|
4525
4228
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4526
|
-
import { jsx as
|
4229
|
+
import { jsx as jsx79, jsxs as jsxs50 } from "react/jsx-runtime";
|
4527
4230
|
function F_roleCatalog_Read() {
|
4528
4231
|
const query = useQ_core47643_GetAdminRole2();
|
4529
|
-
const columns =
|
4232
|
+
const columns = useMemo17(() => [
|
4530
4233
|
{
|
4531
4234
|
header: "M\xE3",
|
4532
4235
|
accessorKey: "code"
|
@@ -4536,48 +4239,83 @@ function F_roleCatalog_Read() {
|
|
4536
4239
|
accessorKey: "name"
|
4537
4240
|
}
|
4538
4241
|
], []);
|
4539
|
-
|
4540
|
-
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
4541
|
-
return /* @__PURE__ */ jsx85(
|
4242
|
+
return /* @__PURE__ */ jsx79(
|
4542
4243
|
MyDataTable,
|
4543
4244
|
{
|
4544
|
-
|
4245
|
+
isLoading: query.isLoading,
|
4246
|
+
isError: query.isError,
|
4247
|
+
data: query.data || [],
|
4545
4248
|
columns,
|
4546
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4547
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4548
|
-
/* @__PURE__ */
|
4549
|
-
/* @__PURE__ */
|
4249
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx79(Group5, { children: /* @__PURE__ */ jsx79(F_roleCatalog_Form, {}) }),
|
4250
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs50(MyCenterFull, { children: [
|
4251
|
+
/* @__PURE__ */ jsx79(F_roleCatalog_Form, { values: row.original }),
|
4252
|
+
/* @__PURE__ */ jsx79(F_roleCatalog_Delete, { values: row.original })
|
4550
4253
|
] })
|
4551
4254
|
}
|
4552
4255
|
);
|
4553
4256
|
}
|
4554
4257
|
function useQ_core47643_GetAdminRole2() {
|
4555
|
-
const query =
|
4258
|
+
const query = useQuery18({
|
4556
4259
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
4557
4260
|
queryFn: async () => {
|
4558
4261
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
4262
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData3;
|
4559
4263
|
return res.data.data;
|
4560
4264
|
}
|
4561
4265
|
});
|
4562
4266
|
return query;
|
4563
4267
|
}
|
4268
|
+
var mockData3 = [
|
4269
|
+
{
|
4270
|
+
"aqModuleId": 3,
|
4271
|
+
"id": 6,
|
4272
|
+
"code": "GV",
|
4273
|
+
"name": "Gi\u1EA3ng vi\xEAn",
|
4274
|
+
"concurrencyStamp": null,
|
4275
|
+
"isEnabled": true
|
4276
|
+
},
|
4277
|
+
{
|
4278
|
+
"aqModuleId": 3,
|
4279
|
+
"id": 1009,
|
4280
|
+
"code": "10",
|
4281
|
+
"name": "Student",
|
4282
|
+
"concurrencyStamp": "3bbf95fd-4c2a-4d49-a4f8-7b422c64ce0f",
|
4283
|
+
"isEnabled": true
|
4284
|
+
},
|
4285
|
+
{
|
4286
|
+
"aqModuleId": 3,
|
4287
|
+
"id": 1010,
|
4288
|
+
"code": "11",
|
4289
|
+
"name": "Faculty",
|
4290
|
+
"concurrencyStamp": "3bbf95fd-4c2a-4d49-a4f8-7b422c64ce0f",
|
4291
|
+
"isEnabled": true
|
4292
|
+
},
|
4293
|
+
{
|
4294
|
+
"aqModuleId": 3,
|
4295
|
+
"id": 1011,
|
4296
|
+
"code": "12",
|
4297
|
+
"name": "Admin",
|
4298
|
+
"concurrencyStamp": "3bbf95fd-4c2a-4d49-a4f8-7b422c64ce0f",
|
4299
|
+
"isEnabled": true
|
4300
|
+
}
|
4301
|
+
];
|
4564
4302
|
|
4565
4303
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog.tsx
|
4566
|
-
import { jsx as
|
4304
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
4567
4305
|
function F_roleCatalog() {
|
4568
|
-
return /* @__PURE__ */
|
4306
|
+
return /* @__PURE__ */ jsx80(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx80(F_roleCatalog_Read, {}) });
|
4569
4307
|
}
|
4570
4308
|
|
4571
4309
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4572
|
-
import { useQuery as
|
4573
|
-
import { useMemo as
|
4310
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
4311
|
+
import { useMemo as useMemo18 } from "react";
|
4574
4312
|
|
4575
4313
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
|
4576
4314
|
import { FileInput as FileInput7 } from "@mantine/core";
|
4577
|
-
import { useForm as
|
4578
|
-
import { jsx as
|
4315
|
+
import { useForm as useForm25 } from "@mantine/form";
|
4316
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
|
4579
4317
|
function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
4580
|
-
const form =
|
4318
|
+
const form = useForm25({
|
4581
4319
|
mode: "uncontrolled",
|
4582
4320
|
validate: {
|
4583
4321
|
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4586,7 +4324,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4586
4324
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4587
4325
|
}
|
4588
4326
|
});
|
4589
|
-
return /* @__PURE__ */
|
4327
|
+
return /* @__PURE__ */ jsxs51(
|
4590
4328
|
MyButtonCreate,
|
4591
4329
|
{
|
4592
4330
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4599,28 +4337,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4599
4337
|
}));
|
4600
4338
|
},
|
4601
4339
|
children: [
|
4602
|
-
/* @__PURE__ */
|
4603
|
-
|
4340
|
+
/* @__PURE__ */ jsx81(
|
4341
|
+
MyTextInput2,
|
4604
4342
|
__spreadValues({
|
4605
4343
|
withAsterisk: true,
|
4606
4344
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4607
4345
|
}, form.getInputProps("decisionCode"))
|
4608
4346
|
),
|
4609
|
-
/* @__PURE__ */
|
4347
|
+
/* @__PURE__ */ jsx81(
|
4610
4348
|
MyDateInput,
|
4611
4349
|
__spreadValues({
|
4612
4350
|
withAsterisk: true,
|
4613
4351
|
label: "Ng\xE0y ban h\xE0nh"
|
4614
4352
|
}, form.getInputProps("promulgateDate"))
|
4615
4353
|
),
|
4616
|
-
/* @__PURE__ */
|
4617
|
-
|
4354
|
+
/* @__PURE__ */ jsx81(
|
4355
|
+
MyTextInput2,
|
4618
4356
|
__spreadValues({
|
4619
4357
|
withAsterisk: true,
|
4620
4358
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4621
4359
|
}, form.getInputProps("name"))
|
4622
4360
|
),
|
4623
|
-
/* @__PURE__ */
|
4361
|
+
/* @__PURE__ */ jsx81(
|
4624
4362
|
FileInput7,
|
4625
4363
|
__spreadValues({
|
4626
4364
|
withAsterisk: true,
|
@@ -4634,12 +4372,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4634
4372
|
}
|
4635
4373
|
|
4636
4374
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
|
4637
|
-
import { jsx as
|
4375
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
4638
4376
|
function F_securityPolicyDocs_Delete({
|
4639
4377
|
id,
|
4640
4378
|
contextData
|
4641
4379
|
}) {
|
4642
|
-
return /* @__PURE__ */
|
4380
|
+
return /* @__PURE__ */ jsx82(
|
4643
4381
|
MyActionIconDelete,
|
4644
4382
|
{
|
4645
4383
|
contextData,
|
@@ -4650,11 +4388,11 @@ function F_securityPolicyDocs_Delete({
|
|
4650
4388
|
|
4651
4389
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
4652
4390
|
import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
|
4653
|
-
import { useForm as
|
4654
|
-
import { jsx as
|
4391
|
+
import { useForm as useForm26 } from "@mantine/form";
|
4392
|
+
import { jsx as jsx83, jsxs as jsxs52 } from "react/jsx-runtime";
|
4655
4393
|
function F_securityPolicyDocs_Update({ values }) {
|
4656
4394
|
var _a;
|
4657
|
-
const form =
|
4395
|
+
const form = useForm26({
|
4658
4396
|
mode: "uncontrolled",
|
4659
4397
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4660
4398
|
file: new File(
|
@@ -4670,7 +4408,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4670
4408
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4671
4409
|
}
|
4672
4410
|
});
|
4673
|
-
return /* @__PURE__ */
|
4411
|
+
return /* @__PURE__ */ jsxs52(
|
4674
4412
|
MyActionIconUpdate,
|
4675
4413
|
{
|
4676
4414
|
form,
|
@@ -4680,28 +4418,28 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4680
4418
|
}));
|
4681
4419
|
},
|
4682
4420
|
children: [
|
4683
|
-
/* @__PURE__ */
|
4421
|
+
/* @__PURE__ */ jsx83(
|
4684
4422
|
TextInput2,
|
4685
4423
|
__spreadValues({
|
4686
4424
|
withAsterisk: true,
|
4687
4425
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4688
4426
|
}, form.getInputProps("decisionCode"))
|
4689
4427
|
),
|
4690
|
-
/* @__PURE__ */
|
4428
|
+
/* @__PURE__ */ jsx83(
|
4691
4429
|
MyDateInput,
|
4692
4430
|
__spreadValues({
|
4693
4431
|
withAsterisk: true,
|
4694
4432
|
label: "Ng\xE0y ban h\xE0nh"
|
4695
4433
|
}, form.getInputProps("promulgateDate"))
|
4696
4434
|
),
|
4697
|
-
/* @__PURE__ */
|
4435
|
+
/* @__PURE__ */ jsx83(
|
4698
4436
|
TextInput2,
|
4699
4437
|
__spreadValues({
|
4700
4438
|
withAsterisk: true,
|
4701
4439
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4702
4440
|
}, form.getInputProps("name"))
|
4703
4441
|
),
|
4704
|
-
/* @__PURE__ */
|
4442
|
+
/* @__PURE__ */ jsx83(
|
4705
4443
|
FileInput8,
|
4706
4444
|
__spreadValues({
|
4707
4445
|
withAsterisk: true,
|
@@ -4714,9 +4452,9 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4714
4452
|
}
|
4715
4453
|
|
4716
4454
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4717
|
-
import { jsx as
|
4455
|
+
import { jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
|
4718
4456
|
function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
4719
|
-
const query =
|
4457
|
+
const query = useQuery19({
|
4720
4458
|
queryKey: ["F_securityPolicyDocs_Read"],
|
4721
4459
|
queryFn: async () => {
|
4722
4460
|
var _a;
|
@@ -4726,7 +4464,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4726
4464
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4727
4465
|
}
|
4728
4466
|
});
|
4729
|
-
const columns =
|
4467
|
+
const columns = useMemo18(
|
4730
4468
|
() => [
|
4731
4469
|
{
|
4732
4470
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4743,25 +4481,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4743
4481
|
{
|
4744
4482
|
header: "File",
|
4745
4483
|
accessorFn: (row) => {
|
4746
|
-
return /* @__PURE__ */
|
4484
|
+
return /* @__PURE__ */ jsx84(MyCenterFull, { children: /* @__PURE__ */ jsx84(MyButtonViewPDF, { id: row.id }) });
|
4747
4485
|
}
|
4748
4486
|
}
|
4749
4487
|
],
|
4750
4488
|
[]
|
4751
4489
|
);
|
4752
|
-
return /* @__PURE__ */
|
4490
|
+
return /* @__PURE__ */ jsx84(
|
4753
4491
|
MyDataTable,
|
4754
4492
|
{
|
4755
4493
|
isLoading: query.isLoading,
|
4756
4494
|
isError: query.isError,
|
4757
4495
|
columns,
|
4758
4496
|
data: query.data || [],
|
4759
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4497
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx84(F_securityPolicyDocs_Create, { SecurityTypeId }),
|
4760
4498
|
renderRowActions: ({ row }) => {
|
4761
4499
|
var _a;
|
4762
|
-
return /* @__PURE__ */
|
4763
|
-
/* @__PURE__ */
|
4764
|
-
/* @__PURE__ */
|
4500
|
+
return /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
|
4501
|
+
/* @__PURE__ */ jsx84(F_securityPolicyDocs_Update, { values: row.original }),
|
4502
|
+
/* @__PURE__ */ jsx84(
|
4765
4503
|
F_securityPolicyDocs_Delete,
|
4766
4504
|
{
|
4767
4505
|
id: row.original.id,
|
@@ -4775,23 +4513,23 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4775
4513
|
}
|
4776
4514
|
|
4777
4515
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
|
4778
|
-
import { jsx as
|
4516
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
4779
4517
|
function F_securityPolicyDocs({ SecurityTypeId }) {
|
4780
|
-
return /* @__PURE__ */
|
4518
|
+
return /* @__PURE__ */ jsx85(F_securityPolicyDocs_Read, { SecurityTypeId });
|
4781
4519
|
}
|
4782
4520
|
|
4783
4521
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4784
|
-
import { useQuery as
|
4785
|
-
import { useMemo as
|
4522
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
4523
|
+
import { useMemo as useMemo19 } from "react";
|
4786
4524
|
|
4787
4525
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
|
4788
4526
|
import { FileInput as FileInput9, Textarea as Textarea3 } from "@mantine/core";
|
4789
|
-
import { useForm as
|
4790
|
-
import { jsx as
|
4527
|
+
import { useForm as useForm27 } from "@mantine/form";
|
4528
|
+
import { jsx as jsx86, jsxs as jsxs54 } from "react/jsx-runtime";
|
4791
4529
|
function F_systemUpdateDocs_Create({
|
4792
4530
|
RefinementTypeId
|
4793
4531
|
}) {
|
4794
|
-
const form =
|
4532
|
+
const form = useForm27({
|
4795
4533
|
mode: "uncontrolled",
|
4796
4534
|
validate: {
|
4797
4535
|
meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4802,7 +4540,7 @@ function F_systemUpdateDocs_Create({
|
|
4802
4540
|
endDate: (value, values) => value && values.startDate && new Date(value) > new Date(values.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4803
4541
|
}
|
4804
4542
|
});
|
4805
|
-
return /* @__PURE__ */
|
4543
|
+
return /* @__PURE__ */ jsxs54(
|
4806
4544
|
MyButtonCreate,
|
4807
4545
|
{
|
4808
4546
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4815,43 +4553,43 @@ function F_systemUpdateDocs_Create({
|
|
4815
4553
|
}));
|
4816
4554
|
},
|
4817
4555
|
children: [
|
4818
|
-
/* @__PURE__ */
|
4556
|
+
/* @__PURE__ */ jsx86(
|
4819
4557
|
MyDateInput,
|
4820
4558
|
__spreadValues({
|
4821
4559
|
withAsterisk: true,
|
4822
4560
|
label: "Ng\xE0y h\u1ECDp"
|
4823
4561
|
}, form.getInputProps("meetingDate"))
|
4824
4562
|
),
|
4825
|
-
/* @__PURE__ */
|
4826
|
-
|
4563
|
+
/* @__PURE__ */ jsx86(
|
4564
|
+
MyTextInput2,
|
4827
4565
|
__spreadValues({
|
4828
4566
|
withAsterisk: true,
|
4829
4567
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4830
4568
|
}, form.getInputProps("departmentName"))
|
4831
4569
|
),
|
4832
|
-
/* @__PURE__ */
|
4833
|
-
|
4570
|
+
/* @__PURE__ */ jsx86(
|
4571
|
+
MyTextInput2,
|
4834
4572
|
__spreadValues({
|
4835
4573
|
withAsterisk: true,
|
4836
4574
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4837
4575
|
}, form.getInputProps("description"))
|
4838
4576
|
),
|
4839
|
-
/* @__PURE__ */
|
4840
|
-
/* @__PURE__ */
|
4577
|
+
/* @__PURE__ */ jsx86(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4578
|
+
/* @__PURE__ */ jsx86(
|
4841
4579
|
MyDateInput,
|
4842
4580
|
__spreadValues({
|
4843
4581
|
withAsterisk: true,
|
4844
4582
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4845
4583
|
}, form.getInputProps("startDate"))
|
4846
4584
|
),
|
4847
|
-
/* @__PURE__ */
|
4585
|
+
/* @__PURE__ */ jsx86(
|
4848
4586
|
MyDateInput,
|
4849
4587
|
__spreadValues({
|
4850
4588
|
withAsterisk: true,
|
4851
4589
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4852
4590
|
}, form.getInputProps("endDate"))
|
4853
4591
|
),
|
4854
|
-
/* @__PURE__ */
|
4592
|
+
/* @__PURE__ */ jsx86(
|
4855
4593
|
FileInput9,
|
4856
4594
|
__spreadValues({
|
4857
4595
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4859,19 +4597,19 @@ function F_systemUpdateDocs_Create({
|
|
4859
4597
|
label: "T\xE0i li\u1EC7u"
|
4860
4598
|
}, form.getInputProps("file"))
|
4861
4599
|
),
|
4862
|
-
/* @__PURE__ */
|
4600
|
+
/* @__PURE__ */ jsx86(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4863
4601
|
]
|
4864
4602
|
}
|
4865
4603
|
);
|
4866
4604
|
}
|
4867
4605
|
|
4868
4606
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
|
4869
|
-
import { jsx as
|
4607
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
4870
4608
|
function F_systemUpdateDocs_Delete({
|
4871
4609
|
id,
|
4872
4610
|
contextData
|
4873
4611
|
}) {
|
4874
|
-
return /* @__PURE__ */
|
4612
|
+
return /* @__PURE__ */ jsx87(
|
4875
4613
|
MyActionIconDelete,
|
4876
4614
|
{
|
4877
4615
|
contextData,
|
@@ -4882,11 +4620,11 @@ function F_systemUpdateDocs_Delete({
|
|
4882
4620
|
|
4883
4621
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
|
4884
4622
|
import { FileInput as FileInput10, Textarea as Textarea4 } from "@mantine/core";
|
4885
|
-
import { useForm as
|
4886
|
-
import { jsx as
|
4623
|
+
import { useForm as useForm28 } from "@mantine/form";
|
4624
|
+
import { jsx as jsx88, jsxs as jsxs55 } from "react/jsx-runtime";
|
4887
4625
|
function F_systemUpdateDocs_Update({ values }) {
|
4888
4626
|
var _a;
|
4889
|
-
const form =
|
4627
|
+
const form = useForm28({
|
4890
4628
|
mode: "uncontrolled",
|
4891
4629
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4892
4630
|
file: new File(
|
@@ -4906,7 +4644,7 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4906
4644
|
endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4907
4645
|
}
|
4908
4646
|
});
|
4909
|
-
return /* @__PURE__ */
|
4647
|
+
return /* @__PURE__ */ jsxs55(
|
4910
4648
|
MyActionIconUpdate,
|
4911
4649
|
{
|
4912
4650
|
form,
|
@@ -4916,43 +4654,43 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4916
4654
|
}));
|
4917
4655
|
},
|
4918
4656
|
children: [
|
4919
|
-
/* @__PURE__ */
|
4657
|
+
/* @__PURE__ */ jsx88(
|
4920
4658
|
MyDateInput,
|
4921
4659
|
__spreadValues({
|
4922
4660
|
withAsterisk: true,
|
4923
4661
|
label: "Ng\xE0y h\u1ECDp"
|
4924
4662
|
}, form.getInputProps("meetingDate"))
|
4925
4663
|
),
|
4926
|
-
/* @__PURE__ */
|
4927
|
-
|
4664
|
+
/* @__PURE__ */ jsx88(
|
4665
|
+
MyTextInput2,
|
4928
4666
|
__spreadValues({
|
4929
4667
|
withAsterisk: true,
|
4930
4668
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4931
4669
|
}, form.getInputProps("departmentName"))
|
4932
4670
|
),
|
4933
|
-
/* @__PURE__ */
|
4934
|
-
|
4671
|
+
/* @__PURE__ */ jsx88(
|
4672
|
+
MyTextInput2,
|
4935
4673
|
__spreadValues({
|
4936
4674
|
withAsterisk: true,
|
4937
4675
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4938
4676
|
}, form.getInputProps("description"))
|
4939
4677
|
),
|
4940
|
-
/* @__PURE__ */
|
4941
|
-
/* @__PURE__ */
|
4678
|
+
/* @__PURE__ */ jsx88(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4679
|
+
/* @__PURE__ */ jsx88(
|
4942
4680
|
MyDateInput,
|
4943
4681
|
__spreadValues({
|
4944
4682
|
withAsterisk: true,
|
4945
4683
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4946
4684
|
}, form.getInputProps("startDate"))
|
4947
4685
|
),
|
4948
|
-
/* @__PURE__ */
|
4686
|
+
/* @__PURE__ */ jsx88(
|
4949
4687
|
MyDateInput,
|
4950
4688
|
__spreadValues({
|
4951
4689
|
withAsterisk: true,
|
4952
4690
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4953
4691
|
}, form.getInputProps("endDate"))
|
4954
4692
|
),
|
4955
|
-
/* @__PURE__ */
|
4693
|
+
/* @__PURE__ */ jsx88(
|
4956
4694
|
FileInput10,
|
4957
4695
|
__spreadValues({
|
4958
4696
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4960,16 +4698,16 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4960
4698
|
label: "T\xE0i li\u1EC7u"
|
4961
4699
|
}, form.getInputProps("file"))
|
4962
4700
|
),
|
4963
|
-
/* @__PURE__ */
|
4701
|
+
/* @__PURE__ */ jsx88(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4964
4702
|
]
|
4965
4703
|
}
|
4966
4704
|
);
|
4967
4705
|
}
|
4968
4706
|
|
4969
4707
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4970
|
-
import { jsx as
|
4708
|
+
import { jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
|
4971
4709
|
function F_systemUpdateDocs({ RefinementTypeId }) {
|
4972
|
-
const query =
|
4710
|
+
const query = useQuery20({
|
4973
4711
|
queryKey: ["F_systemUpdateDocs_Read"],
|
4974
4712
|
queryFn: async () => {
|
4975
4713
|
var _a;
|
@@ -4979,7 +4717,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4979
4717
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4980
4718
|
}
|
4981
4719
|
});
|
4982
|
-
const columns =
|
4720
|
+
const columns = useMemo19(
|
4983
4721
|
() => [
|
4984
4722
|
{
|
4985
4723
|
header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
|
@@ -5000,24 +4738,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
5000
4738
|
{
|
5001
4739
|
header: "File",
|
5002
4740
|
accessorFn: (row) => {
|
5003
|
-
return /* @__PURE__ */
|
4741
|
+
return /* @__PURE__ */ jsx89(MyCenterFull, { children: /* @__PURE__ */ jsx89(MyButtonViewPDF, { id: row.id }) });
|
5004
4742
|
}
|
5005
4743
|
}
|
5006
4744
|
],
|
5007
4745
|
[]
|
5008
4746
|
);
|
5009
|
-
return /* @__PURE__ */
|
4747
|
+
return /* @__PURE__ */ jsx89(
|
5010
4748
|
MyDataTable,
|
5011
4749
|
{
|
5012
4750
|
isLoading: query.isLoading,
|
5013
4751
|
isError: query.isError,
|
5014
4752
|
columns,
|
5015
4753
|
data: query.data || [],
|
5016
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4754
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx89(F_systemUpdateDocs_Create, { RefinementTypeId }),
|
5017
4755
|
renderRowActions: ({ row }) => {
|
5018
|
-
return /* @__PURE__ */
|
5019
|
-
/* @__PURE__ */
|
5020
|
-
/* @__PURE__ */
|
4756
|
+
return /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
4757
|
+
/* @__PURE__ */ jsx89(F_systemUpdateDocs_Update, { values: row.original }),
|
4758
|
+
/* @__PURE__ */ jsx89(
|
5021
4759
|
F_systemUpdateDocs_Delete,
|
5022
4760
|
{
|
5023
4761
|
id: row.original.id,
|
@@ -5031,15 +4769,15 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
5031
4769
|
}
|
5032
4770
|
|
5033
4771
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
5034
|
-
import { useQuery as
|
5035
|
-
import { useMemo as
|
4772
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
4773
|
+
import { useMemo as useMemo20 } from "react";
|
5036
4774
|
|
5037
4775
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
|
5038
4776
|
import { FileInput as FileInput11 } from "@mantine/core";
|
5039
|
-
import { useForm as
|
5040
|
-
import { jsx as
|
4777
|
+
import { useForm as useForm29 } from "@mantine/form";
|
4778
|
+
import { jsx as jsx90, jsxs as jsxs57 } from "react/jsx-runtime";
|
5041
4779
|
function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
5042
|
-
const form =
|
4780
|
+
const form = useForm29({
|
5043
4781
|
mode: "uncontrolled",
|
5044
4782
|
validate: {
|
5045
4783
|
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -5047,7 +4785,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5047
4785
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5048
4786
|
}
|
5049
4787
|
});
|
5050
|
-
return /* @__PURE__ */
|
4788
|
+
return /* @__PURE__ */ jsxs57(
|
5051
4789
|
MyButtonCreate,
|
5052
4790
|
{
|
5053
4791
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -5060,21 +4798,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5060
4798
|
}));
|
5061
4799
|
},
|
5062
4800
|
children: [
|
5063
|
-
/* @__PURE__ */
|
5064
|
-
|
4801
|
+
/* @__PURE__ */ jsx90(
|
4802
|
+
MyTextInput2,
|
5065
4803
|
__spreadValues({
|
5066
4804
|
withAsterisk: true,
|
5067
4805
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
5068
4806
|
}, form.getInputProps("code"))
|
5069
4807
|
),
|
5070
|
-
/* @__PURE__ */
|
5071
|
-
|
4808
|
+
/* @__PURE__ */ jsx90(
|
4809
|
+
MyTextInput2,
|
5072
4810
|
__spreadValues({
|
5073
4811
|
withAsterisk: true,
|
5074
4812
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5075
4813
|
}, form.getInputProps("name"))
|
5076
4814
|
),
|
5077
|
-
/* @__PURE__ */
|
4815
|
+
/* @__PURE__ */ jsx90(
|
5078
4816
|
FileInput11,
|
5079
4817
|
__spreadValues({
|
5080
4818
|
withAsterisk: true,
|
@@ -5088,12 +4826,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5088
4826
|
}
|
5089
4827
|
|
5090
4828
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
|
5091
|
-
import { jsx as
|
4829
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
5092
4830
|
function F_userGuideDocs_Delete({
|
5093
4831
|
id,
|
5094
4832
|
contextData
|
5095
4833
|
}) {
|
5096
|
-
return /* @__PURE__ */
|
4834
|
+
return /* @__PURE__ */ jsx91(
|
5097
4835
|
MyActionIconDelete,
|
5098
4836
|
{
|
5099
4837
|
contextData,
|
@@ -5104,11 +4842,11 @@ function F_userGuideDocs_Delete({
|
|
5104
4842
|
|
5105
4843
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
|
5106
4844
|
import { FileInput as FileInput12 } from "@mantine/core";
|
5107
|
-
import { useForm as
|
5108
|
-
import { jsx as
|
4845
|
+
import { useForm as useForm30 } from "@mantine/form";
|
4846
|
+
import { jsx as jsx92, jsxs as jsxs58 } from "react/jsx-runtime";
|
5109
4847
|
function F_userGuideDocs_Update({ values }) {
|
5110
4848
|
var _a;
|
5111
|
-
const form =
|
4849
|
+
const form = useForm30({
|
5112
4850
|
mode: "uncontrolled",
|
5113
4851
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
5114
4852
|
file: new File(
|
@@ -5122,7 +4860,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
5122
4860
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5123
4861
|
}
|
5124
4862
|
});
|
5125
|
-
return /* @__PURE__ */
|
4863
|
+
return /* @__PURE__ */ jsxs58(
|
5126
4864
|
MyActionIconUpdate,
|
5127
4865
|
{
|
5128
4866
|
form,
|
@@ -5132,21 +4870,21 @@ function F_userGuideDocs_Update({ values }) {
|
|
5132
4870
|
}));
|
5133
4871
|
},
|
5134
4872
|
children: [
|
5135
|
-
/* @__PURE__ */
|
5136
|
-
|
4873
|
+
/* @__PURE__ */ jsx92(
|
4874
|
+
MyTextInput2,
|
5137
4875
|
__spreadValues({
|
5138
4876
|
withAsterisk: true,
|
5139
4877
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
5140
4878
|
}, form.getInputProps("code"))
|
5141
4879
|
),
|
5142
|
-
/* @__PURE__ */
|
5143
|
-
|
4880
|
+
/* @__PURE__ */ jsx92(
|
4881
|
+
MyTextInput2,
|
5144
4882
|
__spreadValues({
|
5145
4883
|
withAsterisk: true,
|
5146
4884
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5147
4885
|
}, form.getInputProps("name"))
|
5148
4886
|
),
|
5149
|
-
/* @__PURE__ */
|
4887
|
+
/* @__PURE__ */ jsx92(
|
5150
4888
|
FileInput12,
|
5151
4889
|
__spreadValues({
|
5152
4890
|
withAsterisk: true,
|
@@ -5160,9 +4898,9 @@ function F_userGuideDocs_Update({ values }) {
|
|
5160
4898
|
}
|
5161
4899
|
|
5162
4900
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
5163
|
-
import { jsx as
|
4901
|
+
import { jsx as jsx93, jsxs as jsxs59 } from "react/jsx-runtime";
|
5164
4902
|
function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
5165
|
-
const query =
|
4903
|
+
const query = useQuery21({
|
5166
4904
|
queryKey: ["F_userGuideDocs_Read"],
|
5167
4905
|
queryFn: async () => {
|
5168
4906
|
var _a;
|
@@ -5172,7 +4910,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5172
4910
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
5173
4911
|
}
|
5174
4912
|
});
|
5175
|
-
const columns =
|
4913
|
+
const columns = useMemo20(
|
5176
4914
|
() => [
|
5177
4915
|
{
|
5178
4916
|
header: "M\xE3 t\xE0i li\u1EC7u",
|
@@ -5185,24 +4923,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5185
4923
|
{
|
5186
4924
|
header: "File",
|
5187
4925
|
accessorFn: (row) => {
|
5188
|
-
return /* @__PURE__ */
|
4926
|
+
return /* @__PURE__ */ jsx93(MyCenterFull, { children: /* @__PURE__ */ jsx93(MyButtonViewPDF, { id: row.id }) });
|
5189
4927
|
}
|
5190
4928
|
}
|
5191
4929
|
],
|
5192
4930
|
[]
|
5193
4931
|
);
|
5194
|
-
return /* @__PURE__ */
|
4932
|
+
return /* @__PURE__ */ jsx93(
|
5195
4933
|
MyDataTable,
|
5196
4934
|
{
|
5197
4935
|
isLoading: query.isLoading,
|
5198
4936
|
isError: query.isError,
|
5199
4937
|
columns,
|
5200
4938
|
data: query.data || [],
|
5201
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4939
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx93(F_userGuideDocs_Create, { GuidelineTypeId }),
|
5202
4940
|
renderRowActions: ({ row }) => {
|
5203
|
-
return /* @__PURE__ */
|
5204
|
-
/* @__PURE__ */
|
5205
|
-
/* @__PURE__ */
|
4941
|
+
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
4942
|
+
/* @__PURE__ */ jsx93(F_userGuideDocs_Update, { values: row.original }),
|
4943
|
+
/* @__PURE__ */ jsx93(
|
5206
4944
|
F_userGuideDocs_Delete,
|
5207
4945
|
{
|
5208
4946
|
id: row.original.id,
|
@@ -5216,21 +4954,21 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5216
4954
|
}
|
5217
4955
|
|
5218
4956
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
|
5219
|
-
import { jsx as
|
4957
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
5220
4958
|
function F_userGuideDocs({ GuidelineTypeId }) {
|
5221
|
-
return /* @__PURE__ */
|
4959
|
+
return /* @__PURE__ */ jsx94(F_userGuideDocs_Read, { GuidelineTypeId });
|
5222
4960
|
}
|
5223
4961
|
|
5224
4962
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5225
4963
|
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
5226
4964
|
|
5227
4965
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
|
5228
|
-
import { useForm as
|
5229
|
-
import { jsx as
|
4966
|
+
import { useForm as useForm31 } from "@mantine/form";
|
4967
|
+
import { jsx as jsx95, jsxs as jsxs60 } from "react/jsx-runtime";
|
5230
4968
|
function F_workflowProcessDocs_Create({
|
5231
4969
|
WorkflowTypeId
|
5232
4970
|
}) {
|
5233
|
-
const form =
|
4971
|
+
const form = useForm31({
|
5234
4972
|
mode: "uncontrolled",
|
5235
4973
|
validate: {
|
5236
4974
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -5240,7 +4978,7 @@ function F_workflowProcessDocs_Create({
|
|
5240
4978
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5241
4979
|
}
|
5242
4980
|
});
|
5243
|
-
return /* @__PURE__ */
|
4981
|
+
return /* @__PURE__ */ jsxs60(
|
5244
4982
|
MyButtonCreate,
|
5245
4983
|
{
|
5246
4984
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -5252,28 +4990,28 @@ function F_workflowProcessDocs_Create({
|
|
5252
4990
|
}));
|
5253
4991
|
},
|
5254
4992
|
children: [
|
5255
|
-
/* @__PURE__ */
|
5256
|
-
|
4993
|
+
/* @__PURE__ */ jsx95(
|
4994
|
+
MyTextInput2,
|
5257
4995
|
__spreadValues({
|
5258
4996
|
withAsterisk: true,
|
5259
4997
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5260
4998
|
}, form.getInputProps("decisionCode"))
|
5261
4999
|
),
|
5262
|
-
/* @__PURE__ */
|
5000
|
+
/* @__PURE__ */ jsx95(
|
5263
5001
|
MyDateInput,
|
5264
5002
|
__spreadValues({
|
5265
5003
|
withAsterisk: true,
|
5266
5004
|
label: "Ng\xE0y ban h\xE0nh"
|
5267
5005
|
}, form.getInputProps("promulgateDate"))
|
5268
5006
|
),
|
5269
|
-
/* @__PURE__ */
|
5270
|
-
|
5007
|
+
/* @__PURE__ */ jsx95(
|
5008
|
+
MyTextInput2,
|
5271
5009
|
__spreadValues({
|
5272
5010
|
withAsterisk: true,
|
5273
5011
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5274
5012
|
}, form.getInputProps("name"))
|
5275
5013
|
),
|
5276
|
-
/* @__PURE__ */
|
5014
|
+
/* @__PURE__ */ jsx95(
|
5277
5015
|
F_core18256_Select,
|
5278
5016
|
__spreadValues({
|
5279
5017
|
withAsterisk: true,
|
@@ -5281,14 +5019,14 @@ function F_workflowProcessDocs_Create({
|
|
5281
5019
|
documentTypeId: WorkflowTypeId
|
5282
5020
|
}, form.getInputProps("documentAttributeId"))
|
5283
5021
|
),
|
5284
|
-
/* @__PURE__ */
|
5022
|
+
/* @__PURE__ */ jsx95(
|
5285
5023
|
MyFileInput,
|
5286
5024
|
__spreadValues({
|
5287
5025
|
withAsterisk: true,
|
5288
5026
|
label: "V\u0103n b\u1EA3n"
|
5289
5027
|
}, form.getInputProps("file"))
|
5290
5028
|
),
|
5291
|
-
/* @__PURE__ */
|
5029
|
+
/* @__PURE__ */ jsx95(
|
5292
5030
|
MyNumberInput,
|
5293
5031
|
__spreadValues({
|
5294
5032
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5301,17 +5039,17 @@ function F_workflowProcessDocs_Create({
|
|
5301
5039
|
|
5302
5040
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5303
5041
|
import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
|
5304
|
-
import { useQuery as
|
5042
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
5305
5043
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
5306
|
-
import { useMemo as
|
5044
|
+
import { useMemo as useMemo21 } from "react";
|
5307
5045
|
|
5308
5046
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
5309
|
-
import { jsx as
|
5047
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
5310
5048
|
function F_workflowProcessDocs_Delete({
|
5311
5049
|
id,
|
5312
5050
|
contextData
|
5313
5051
|
}) {
|
5314
|
-
return /* @__PURE__ */
|
5052
|
+
return /* @__PURE__ */ jsx96(
|
5315
5053
|
MyActionIconDelete,
|
5316
5054
|
{
|
5317
5055
|
contextData,
|
@@ -5321,14 +5059,14 @@ function F_workflowProcessDocs_Delete({
|
|
5321
5059
|
}
|
5322
5060
|
|
5323
5061
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
|
5324
|
-
import { useForm as
|
5325
|
-
import { jsx as
|
5062
|
+
import { useForm as useForm32 } from "@mantine/form";
|
5063
|
+
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
5326
5064
|
function F_workflowProcessDocs_Update({
|
5327
5065
|
values,
|
5328
5066
|
WorkflowTypeId
|
5329
5067
|
}) {
|
5330
5068
|
var _a;
|
5331
|
-
const form =
|
5069
|
+
const form = useForm32({
|
5332
5070
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
5333
5071
|
file: new File(
|
5334
5072
|
[],
|
@@ -5344,7 +5082,7 @@ function F_workflowProcessDocs_Update({
|
|
5344
5082
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5345
5083
|
}
|
5346
5084
|
});
|
5347
|
-
return /* @__PURE__ */
|
5085
|
+
return /* @__PURE__ */ jsxs61(
|
5348
5086
|
MyActionIconUpdate,
|
5349
5087
|
{
|
5350
5088
|
form,
|
@@ -5354,28 +5092,28 @@ function F_workflowProcessDocs_Update({
|
|
5354
5092
|
}));
|
5355
5093
|
},
|
5356
5094
|
children: [
|
5357
|
-
/* @__PURE__ */
|
5358
|
-
|
5095
|
+
/* @__PURE__ */ jsx97(
|
5096
|
+
MyTextInput2,
|
5359
5097
|
__spreadValues({
|
5360
5098
|
withAsterisk: true,
|
5361
5099
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5362
5100
|
}, form.getInputProps("decisionCode"))
|
5363
5101
|
),
|
5364
|
-
/* @__PURE__ */
|
5102
|
+
/* @__PURE__ */ jsx97(
|
5365
5103
|
MyDateInput,
|
5366
5104
|
__spreadValues({
|
5367
5105
|
withAsterisk: true,
|
5368
5106
|
label: "Ng\xE0y ban h\xE0nh"
|
5369
5107
|
}, form.getInputProps("promulgateDate"))
|
5370
5108
|
),
|
5371
|
-
/* @__PURE__ */
|
5372
|
-
|
5109
|
+
/* @__PURE__ */ jsx97(
|
5110
|
+
MyTextInput2,
|
5373
5111
|
__spreadValues({
|
5374
5112
|
withAsterisk: true,
|
5375
5113
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5376
5114
|
}, form.getInputProps("name"))
|
5377
5115
|
),
|
5378
|
-
/* @__PURE__ */
|
5116
|
+
/* @__PURE__ */ jsx97(
|
5379
5117
|
F_core18256_Select,
|
5380
5118
|
__spreadValues({
|
5381
5119
|
withAsterisk: true,
|
@@ -5383,14 +5121,14 @@ function F_workflowProcessDocs_Update({
|
|
5383
5121
|
documentTypeId: WorkflowTypeId
|
5384
5122
|
}, form.getInputProps("documentAttributeId"))
|
5385
5123
|
),
|
5386
|
-
/* @__PURE__ */
|
5124
|
+
/* @__PURE__ */ jsx97(
|
5387
5125
|
MyFileInput,
|
5388
5126
|
__spreadValues({
|
5389
5127
|
withAsterisk: true,
|
5390
5128
|
label: "V\u0103n b\u1EA3n"
|
5391
5129
|
}, form.getInputProps("file"))
|
5392
5130
|
),
|
5393
|
-
/* @__PURE__ */
|
5131
|
+
/* @__PURE__ */ jsx97(
|
5394
5132
|
MyNumberInput,
|
5395
5133
|
__spreadValues({
|
5396
5134
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5402,12 +5140,12 @@ function F_workflowProcessDocs_Update({
|
|
5402
5140
|
}
|
5403
5141
|
|
5404
5142
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5405
|
-
import { jsx as
|
5143
|
+
import { jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
5406
5144
|
function F_workflowProcessDocs_Read({
|
5407
5145
|
WorkflowTypeId
|
5408
5146
|
}) {
|
5409
5147
|
var _a, _b, _c;
|
5410
|
-
const documentAttributeQuery =
|
5148
|
+
const documentAttributeQuery = useQuery22({
|
5411
5149
|
queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
|
5412
5150
|
queryFn: async () => {
|
5413
5151
|
var _a2;
|
@@ -5418,10 +5156,10 @@ function F_workflowProcessDocs_Read({
|
|
5418
5156
|
}
|
5419
5157
|
});
|
5420
5158
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
5421
|
-
return /* @__PURE__ */
|
5159
|
+
return /* @__PURE__ */ jsx98(Blockquote6, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
5422
5160
|
if (documentAttributeQuery.isError)
|
5423
|
-
return /* @__PURE__ */
|
5424
|
-
return /* @__PURE__ */
|
5161
|
+
return /* @__PURE__ */ jsx98(Alert6, { icon: /* @__PURE__ */ jsx98(IconBug6, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
5162
|
+
return /* @__PURE__ */ jsx98(Skeleton6, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx98(MyFlexColumn, { children: /* @__PURE__ */ jsx98(
|
5425
5163
|
Accordion6,
|
5426
5164
|
{
|
5427
5165
|
variant: "contained",
|
@@ -5432,7 +5170,7 @@ function F_workflowProcessDocs_Read({
|
|
5432
5170
|
}
|
5433
5171
|
),
|
5434
5172
|
multiple: true,
|
5435
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
5173
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx98(
|
5436
5174
|
SubRead6,
|
5437
5175
|
{
|
5438
5176
|
name: item.name,
|
@@ -5449,7 +5187,7 @@ function SubRead6({
|
|
5449
5187
|
documentType,
|
5450
5188
|
WorkflowTypeId
|
5451
5189
|
}) {
|
5452
|
-
const documentQuery =
|
5190
|
+
const documentQuery = useQuery22({
|
5453
5191
|
queryKey: ["SubRead" + documentType],
|
5454
5192
|
queryFn: async () => {
|
5455
5193
|
const result = await baseAxios_default.get(
|
@@ -5458,7 +5196,7 @@ function SubRead6({
|
|
5458
5196
|
return result.data.data;
|
5459
5197
|
}
|
5460
5198
|
});
|
5461
|
-
const columns =
|
5199
|
+
const columns = useMemo21(
|
5462
5200
|
() => [
|
5463
5201
|
{
|
5464
5202
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -5475,30 +5213,30 @@ function SubRead6({
|
|
5475
5213
|
{
|
5476
5214
|
header: "File",
|
5477
5215
|
accessorFn: (row) => {
|
5478
|
-
return /* @__PURE__ */
|
5216
|
+
return /* @__PURE__ */ jsx98(MyCenterFull, { children: /* @__PURE__ */ jsx98(MyButtonViewPDF, { id: row.id }) });
|
5479
5217
|
}
|
5480
5218
|
}
|
5481
5219
|
],
|
5482
5220
|
[]
|
5483
5221
|
);
|
5484
|
-
return /* @__PURE__ */
|
5485
|
-
/* @__PURE__ */
|
5486
|
-
/* @__PURE__ */
|
5222
|
+
return /* @__PURE__ */ jsxs62(Accordion6.Item, { value: documentType.toString(), children: [
|
5223
|
+
/* @__PURE__ */ jsx98(Accordion6.Control, { children: name }),
|
5224
|
+
/* @__PURE__ */ jsx98(Accordion6.Panel, { children: /* @__PURE__ */ jsx98(
|
5487
5225
|
MyDataTable,
|
5488
5226
|
{
|
5489
5227
|
isLoading: documentQuery.isLoading,
|
5490
5228
|
isError: documentQuery.isError,
|
5491
5229
|
columns,
|
5492
5230
|
data: documentQuery.data || [],
|
5493
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
5494
|
-
/* @__PURE__ */
|
5231
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
|
5232
|
+
/* @__PURE__ */ jsx98(
|
5495
5233
|
F_workflowProcessDocs_Update,
|
5496
5234
|
{
|
5497
5235
|
WorkflowTypeId,
|
5498
5236
|
values: row.original
|
5499
5237
|
}
|
5500
5238
|
),
|
5501
|
-
/* @__PURE__ */
|
5239
|
+
/* @__PURE__ */ jsx98(
|
5502
5240
|
F_workflowProcessDocs_Delete,
|
5503
5241
|
{
|
5504
5242
|
id: row.original.id,
|
@@ -5512,61 +5250,61 @@ function SubRead6({
|
|
5512
5250
|
}
|
5513
5251
|
|
5514
5252
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5515
|
-
import { jsx as
|
5253
|
+
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
5516
5254
|
function F_workflowProcessDocs({
|
5517
5255
|
WorkflowTypeId
|
5518
5256
|
}) {
|
5519
|
-
return /* @__PURE__ */
|
5520
|
-
/* @__PURE__ */
|
5521
|
-
/* @__PURE__ */
|
5522
|
-
/* @__PURE__ */
|
5257
|
+
return /* @__PURE__ */ jsxs63(Paper9, { p: "md", children: [
|
5258
|
+
/* @__PURE__ */ jsx99(MyFlexEnd, { children: /* @__PURE__ */ jsx99(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
|
5259
|
+
/* @__PURE__ */ jsx99(Space6, {}),
|
5260
|
+
/* @__PURE__ */ jsx99(F_workflowProcessDocs_Read, { WorkflowTypeId })
|
5523
5261
|
] });
|
5524
5262
|
}
|
5525
5263
|
|
5526
5264
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
5527
|
-
import { useRouter
|
5528
|
-
import { useEffect as
|
5529
|
-
import { jsx as
|
5265
|
+
import { useRouter } from "next/navigation";
|
5266
|
+
import { useEffect as useEffect11 } from "react";
|
5267
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
5530
5268
|
function F_authenticate_SplashPage() {
|
5531
|
-
const router =
|
5269
|
+
const router = useRouter();
|
5532
5270
|
const S_Authenticate = useS_authenticate();
|
5533
|
-
|
5271
|
+
useEffect11(() => {
|
5534
5272
|
if (S_Authenticate.state.token == "") {
|
5535
5273
|
router.push("/authenticate/login");
|
5536
5274
|
return;
|
5537
5275
|
}
|
5538
5276
|
router.push("/admin/core71678");
|
5539
5277
|
}, [S_Authenticate.state.token]);
|
5540
|
-
return /* @__PURE__ */
|
5278
|
+
return /* @__PURE__ */ jsx100(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
5541
5279
|
}
|
5542
5280
|
|
5543
5281
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5544
5282
|
import {
|
5545
5283
|
Anchor,
|
5546
5284
|
BackgroundImage,
|
5547
|
-
Button as
|
5285
|
+
Button as Button3,
|
5548
5286
|
Center as Center2,
|
5549
5287
|
Checkbox as Checkbox3,
|
5550
5288
|
Flex as Flex3,
|
5551
|
-
Group as
|
5289
|
+
Group as Group6,
|
5552
5290
|
Paper as Paper10,
|
5553
5291
|
PasswordInput as PasswordInput2,
|
5554
5292
|
Text as Text3,
|
5555
5293
|
TextInput as TextInput3,
|
5556
5294
|
Title
|
5557
5295
|
} from "@mantine/core";
|
5558
|
-
import { useForm as
|
5559
|
-
import { useMutation as
|
5296
|
+
import { useForm as useForm33 } from "@mantine/form";
|
5297
|
+
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
5560
5298
|
import axios from "axios";
|
5561
5299
|
import Link from "next/link";
|
5562
|
-
import { useRouter as
|
5563
|
-
import { useEffect as
|
5300
|
+
import { useRouter as useRouter2 } from "next/navigation";
|
5301
|
+
import { useEffect as useEffect12, useState as useState10 } from "react";
|
5564
5302
|
|
5565
5303
|
// src/modules-features/authenticate/F_authenticate_Login/css.module.css
|
5566
5304
|
var css_default = {};
|
5567
5305
|
|
5568
5306
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5569
|
-
import { jsx as
|
5307
|
+
import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
|
5570
5308
|
function F_authenticate_Login({
|
5571
5309
|
header,
|
5572
5310
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -5577,11 +5315,11 @@ function F_authenticate_Login({
|
|
5577
5315
|
showSaveLogin = true,
|
5578
5316
|
showForgotPassword = true
|
5579
5317
|
}) {
|
5580
|
-
const router =
|
5318
|
+
const router = useRouter2();
|
5581
5319
|
const authenticate_store = useS_authenticate();
|
5582
|
-
const loadingState =
|
5320
|
+
const loadingState = useState10(false);
|
5583
5321
|
const mutation = useM_Account_Sigin();
|
5584
|
-
const form =
|
5322
|
+
const form = useForm33({
|
5585
5323
|
initialValues: {
|
5586
5324
|
username: "",
|
5587
5325
|
password: ""
|
@@ -5591,7 +5329,7 @@ function F_authenticate_Login({
|
|
5591
5329
|
password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5592
5330
|
}
|
5593
5331
|
});
|
5594
|
-
|
5332
|
+
useEffect12(() => {
|
5595
5333
|
var _a;
|
5596
5334
|
form.setValues({
|
5597
5335
|
username: ((_a = authenticate_store.state) == null ? void 0 : _a.username) || "",
|
@@ -5633,21 +5371,21 @@ function F_authenticate_Login({
|
|
5633
5371
|
}
|
5634
5372
|
});
|
5635
5373
|
}
|
5636
|
-
return /* @__PURE__ */
|
5374
|
+
return /* @__PURE__ */ jsx101(
|
5637
5375
|
BackgroundImage,
|
5638
5376
|
{
|
5639
5377
|
src: backgroundImage,
|
5640
5378
|
h: "100vh",
|
5641
|
-
children: /* @__PURE__ */
|
5642
|
-
header ? header : /* @__PURE__ */
|
5643
|
-
/* @__PURE__ */
|
5644
|
-
/* @__PURE__ */
|
5379
|
+
children: /* @__PURE__ */ jsx101(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs64(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
5380
|
+
header ? header : /* @__PURE__ */ jsxs64(Flex3, { direction: "column", mb: "md", children: [
|
5381
|
+
/* @__PURE__ */ jsx101(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
5382
|
+
/* @__PURE__ */ jsxs64(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
5645
5383
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
5646
|
-
/* @__PURE__ */
|
5384
|
+
/* @__PURE__ */ jsx101(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
5647
5385
|
] })
|
5648
5386
|
] }),
|
5649
|
-
/* @__PURE__ */
|
5650
|
-
/* @__PURE__ */
|
5387
|
+
/* @__PURE__ */ jsx101("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs64(MyFlexColumn, { children: [
|
5388
|
+
/* @__PURE__ */ jsx101(
|
5651
5389
|
TextInput3,
|
5652
5390
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
5653
5391
|
label: "T\xE0i kho\u1EA3n",
|
@@ -5655,7 +5393,7 @@ function F_authenticate_Login({
|
|
5655
5393
|
withAsterisk: true
|
5656
5394
|
})
|
5657
5395
|
),
|
5658
|
-
/* @__PURE__ */
|
5396
|
+
/* @__PURE__ */ jsx101(
|
5659
5397
|
PasswordInput2,
|
5660
5398
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
5661
5399
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -5663,8 +5401,8 @@ function F_authenticate_Login({
|
|
5663
5401
|
withAsterisk: true
|
5664
5402
|
})
|
5665
5403
|
),
|
5666
|
-
/* @__PURE__ */
|
5667
|
-
showSaveLogin && /* @__PURE__ */
|
5404
|
+
/* @__PURE__ */ jsxs64(Group6, { justify: "space-between", children: [
|
5405
|
+
showSaveLogin && /* @__PURE__ */ jsx101(
|
5668
5406
|
Checkbox3,
|
5669
5407
|
{
|
5670
5408
|
checked: authenticate_store.state.saveLogin,
|
@@ -5672,10 +5410,10 @@ function F_authenticate_Login({
|
|
5672
5410
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
5673
5411
|
}
|
5674
5412
|
),
|
5675
|
-
showForgotPassword && /* @__PURE__ */
|
5413
|
+
showForgotPassword && /* @__PURE__ */ jsx101(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5676
5414
|
] }),
|
5677
|
-
showLoginButton && /* @__PURE__ */
|
5678
|
-
|
5415
|
+
showLoginButton && /* @__PURE__ */ jsx101(
|
5416
|
+
Button3,
|
5679
5417
|
{
|
5680
5418
|
loading: loadingState[0],
|
5681
5419
|
type: "submit",
|
@@ -5690,7 +5428,7 @@ function F_authenticate_Login({
|
|
5690
5428
|
);
|
5691
5429
|
}
|
5692
5430
|
function useM_Account_Sigin() {
|
5693
|
-
const mutation =
|
5431
|
+
const mutation = useMutation5({
|
5694
5432
|
mutationFn: async (values) => {
|
5695
5433
|
const endpoint = await utils_config_getBaseUrl() + "/Account/SignIn";
|
5696
5434
|
const result = await axios.post(endpoint, values);
|
@@ -5747,17 +5485,10 @@ export {
|
|
5747
5485
|
F_core47643_Delete,
|
5748
5486
|
F_core47643_Form,
|
5749
5487
|
F_core47643_Read,
|
5750
|
-
F_core60524,
|
5751
5488
|
F_core64229,
|
5752
5489
|
F_core64229_Delete,
|
5753
5490
|
F_core64229_Form,
|
5754
5491
|
F_core64229_Read,
|
5755
|
-
F_core71678,
|
5756
|
-
F_core71678_ChangePermission,
|
5757
|
-
F_core71678_Create,
|
5758
|
-
F_core71678_Delete,
|
5759
|
-
F_core71678_Read,
|
5760
|
-
F_core71678_Update,
|
5761
5492
|
F_core76318,
|
5762
5493
|
F_core76318_Create,
|
5763
5494
|
F_core76318_Delete,
|
@@ -5771,6 +5502,7 @@ export {
|
|
5771
5502
|
F_formTemplateDocs_Delete,
|
5772
5503
|
F_formTemplateDocs_Read,
|
5773
5504
|
F_formTemplateDocs_Update,
|
5505
|
+
F_moduleConfig,
|
5774
5506
|
F_organizationPolicyDocs,
|
5775
5507
|
F_organizationPolicyDocs_Create,
|
5776
5508
|
F_organizationPolicyDocs_Delete,
|
@@ -5799,7 +5531,7 @@ export {
|
|
5799
5531
|
F_workflowProcessDocs_Read,
|
5800
5532
|
F_workflowProcessDocs_Update,
|
5801
5533
|
useS_authenticate,
|
5802
|
-
useS_core60524,
|
5803
5534
|
useS_core83092,
|
5535
|
+
useS_moduleConfig,
|
5804
5536
|
utils_core83092_mergePage
|
5805
5537
|
};
|