aq-fe-framework 0.1.194 → 0.1.196
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.
@@ -405,6 +405,10 @@ declare function F_core71678_Delete({ id, code }: {
|
|
405
405
|
code: string;
|
406
406
|
}): react_jsx_runtime.JSX.Element;
|
407
407
|
|
408
|
+
interface IUserSkillCenters extends IBaseEntity {
|
409
|
+
userId?: number;
|
410
|
+
skillCenterId?: number;
|
411
|
+
}
|
408
412
|
interface I$5 {
|
409
413
|
id?: number;
|
410
414
|
userName?: string;
|
@@ -412,6 +416,8 @@ interface I$5 {
|
|
412
416
|
fullName?: string;
|
413
417
|
email?: string;
|
414
418
|
phoneNumber?: string;
|
419
|
+
userSkillCenters?: IUserSkillCenters[];
|
420
|
+
userSkillCentersIds?: number[];
|
415
421
|
}
|
416
422
|
declare function F_core71678_Update({ user }: {
|
417
423
|
user: I$5;
|
@@ -2668,6 +2668,8 @@ function F_core71678_Update({ user }) {
|
|
2668
2668
|
console.log(form.values);
|
2669
2669
|
}, [form.values]);
|
2670
2670
|
return /* @__PURE__ */ jsx50(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
2671
|
+
var _a2;
|
2672
|
+
const formValues = form.getValues();
|
2671
2673
|
return await baseAxios_default.post(
|
2672
2674
|
"/Account/update",
|
2673
2675
|
__spreadProps(__spreadValues({}, values), {
|
@@ -2676,7 +2678,15 @@ function F_core71678_Update({ user }) {
|
|
2676
2678
|
concurrencyStamp: "",
|
2677
2679
|
isBlocked: false,
|
2678
2680
|
isEnabled: true,
|
2679
|
-
workingUnitId: null
|
2681
|
+
workingUnitId: null,
|
2682
|
+
userSkillCenters: (_a2 = formValues.userSkillCentersIds) == null ? void 0 : _a2.map((item, idx) => ({
|
2683
|
+
id: formValues.userSkillCenters[idx].id,
|
2684
|
+
code: "string",
|
2685
|
+
name: "string",
|
2686
|
+
concurrencyStamp: "string",
|
2687
|
+
isEnabled: true,
|
2688
|
+
skillCenterId: parseInt(item.toString())
|
2689
|
+
}))
|
2680
2690
|
})
|
2681
2691
|
);
|
2682
2692
|
}, children: /* @__PURE__ */ jsxs33(MyFlexColumn, { children: [
|
@@ -2687,7 +2697,7 @@ function F_core71678_Update({ user }) {
|
|
2687
2697
|
/* @__PURE__ */ jsx50(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
2688
2698
|
skillCenter_getAll_query.data && /* @__PURE__ */ jsx50(
|
2689
2699
|
MultiSelect2,
|
2690
|
-
{
|
2700
|
+
__spreadValues({
|
2691
2701
|
label: "Trung t\xE2m k\u1EF9 n\u0103ng",
|
2692
2702
|
placeholder: "Ch\u1ECDn trung t\xE2m k\u1EF9 n\u0103ng",
|
2693
2703
|
data: (_a = skillCenter_getAll_query.data) == null ? void 0 : _a.map((item) => {
|
@@ -2697,7 +2707,7 @@ function F_core71678_Update({ user }) {
|
|
2697
2707
|
value: (_a2 = item.id) == null ? void 0 : _a2.toString()
|
2698
2708
|
};
|
2699
2709
|
})
|
2700
|
-
}
|
2710
|
+
}, form.getInputProps("userSkillCentersIds"))
|
2701
2711
|
)
|
2702
2712
|
] }) });
|
2703
2713
|
}
|