@witlink/usercenter 1.2.88 → 1.2.90
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/usercenter.es.js +32 -38
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -41989,28 +41989,32 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
41989
41989
|
};
|
|
41990
41990
|
const dropdownRender = (list) => {
|
|
41991
41991
|
const { menuNode } = list;
|
|
41992
|
-
|
|
41993
|
-
|
|
41994
|
-
|
|
41995
|
-
|
|
41996
|
-
|
|
41997
|
-
|
|
41998
|
-
|
|
41999
|
-
|
|
42000
|
-
|
|
42001
|
-
|
|
42002
|
-
|
|
42003
|
-
|
|
42004
|
-
|
|
42005
|
-
|
|
42006
|
-
|
|
42007
|
-
|
|
42008
|
-
|
|
42009
|
-
|
|
42010
|
-
|
|
42011
|
-
|
|
42012
|
-
|
|
42013
|
-
|
|
41992
|
+
const children = [];
|
|
41993
|
+
if (rolesList.value.length > 0) {
|
|
41994
|
+
children.push(
|
|
41995
|
+
h(
|
|
41996
|
+
"div",
|
|
41997
|
+
{
|
|
41998
|
+
class: "select-all-option",
|
|
41999
|
+
style: { padding: "8px 12px", cursor: "pointer" }
|
|
42000
|
+
},
|
|
42001
|
+
[
|
|
42002
|
+
h(Checkbox$1, {
|
|
42003
|
+
checked: isAllSelected.value,
|
|
42004
|
+
indeterminate: isIndeterminate.value,
|
|
42005
|
+
onClick: (e) => {
|
|
42006
|
+
e.stopPropagation();
|
|
42007
|
+
toggleSelectAll();
|
|
42008
|
+
}
|
|
42009
|
+
}),
|
|
42010
|
+
h("span", { style: "margin-left: 8px" }, t2("uc_user.selectAll"))
|
|
42011
|
+
]
|
|
42012
|
+
),
|
|
42013
|
+
h(Divider$1, { style: "margin: 4px 0" })
|
|
42014
|
+
);
|
|
42015
|
+
}
|
|
42016
|
+
children.push(menuNode);
|
|
42017
|
+
return h("div", children);
|
|
42014
42018
|
};
|
|
42015
42019
|
const getSystemRolesList = async () => {
|
|
42016
42020
|
var _a;
|
|
@@ -43272,7 +43276,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43272
43276
|
const { t: t2 } = useI18n();
|
|
43273
43277
|
const emit = __emit;
|
|
43274
43278
|
const visible = ref(false);
|
|
43275
|
-
const loading = ref(false);
|
|
43276
43279
|
const formRef = ref();
|
|
43277
43280
|
const isBind = ref(false);
|
|
43278
43281
|
const formState = reactive({
|
|
@@ -43284,14 +43287,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43284
43287
|
{
|
|
43285
43288
|
required: true,
|
|
43286
43289
|
message: t2("uc_personal_center.user_pwd4_msg1"),
|
|
43287
|
-
trigger: "blur"
|
|
43290
|
+
trigger: ["blur", "change"]
|
|
43288
43291
|
}
|
|
43289
43292
|
],
|
|
43290
43293
|
mobile: [
|
|
43291
43294
|
{
|
|
43292
43295
|
required: true,
|
|
43293
43296
|
message: t2("uc_personal_center.mobile_placeholder"),
|
|
43294
|
-
trigger: "blur"
|
|
43297
|
+
trigger: ["blur", "change"]
|
|
43295
43298
|
}
|
|
43296
43299
|
]
|
|
43297
43300
|
}));
|
|
@@ -43308,15 +43311,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43308
43311
|
};
|
|
43309
43312
|
const handleSubmit = async () => {
|
|
43310
43313
|
var _a;
|
|
43311
|
-
|
|
43312
|
-
await ((_a = formRef.value) == null ? void 0 : _a.validate());
|
|
43313
|
-
} catch {
|
|
43314
|
-
return;
|
|
43315
|
-
}
|
|
43316
|
-
loading.value = true;
|
|
43317
|
-
try {
|
|
43314
|
+
(_a = formRef.value) == null ? void 0 : _a.validate().then(async () => {
|
|
43318
43315
|
const res = await updateMobile({
|
|
43319
|
-
mobile: formState.mobile
|
|
43316
|
+
mobile: formState.mobile,
|
|
43320
43317
|
pwd: hash.sha256().update(formState.pwd).digest("hex")
|
|
43321
43318
|
});
|
|
43322
43319
|
if (res.code === 0) {
|
|
@@ -43326,9 +43323,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43326
43323
|
emit("ok");
|
|
43327
43324
|
handleClose();
|
|
43328
43325
|
}
|
|
43329
|
-
}
|
|
43330
|
-
loading.value = false;
|
|
43331
|
-
}
|
|
43326
|
+
});
|
|
43332
43327
|
};
|
|
43333
43328
|
__expose({
|
|
43334
43329
|
open
|
|
@@ -43356,14 +43351,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43356
43351
|
}),
|
|
43357
43352
|
createVNode(_component_a_button, {
|
|
43358
43353
|
type: "primary",
|
|
43359
|
-
loading: loading.value,
|
|
43360
43354
|
onClick: handleSubmit
|
|
43361
43355
|
}, {
|
|
43362
43356
|
default: withCtx(() => [
|
|
43363
43357
|
createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
|
|
43364
43358
|
]),
|
|
43365
43359
|
_: 1
|
|
43366
|
-
}
|
|
43360
|
+
})
|
|
43367
43361
|
]),
|
|
43368
43362
|
default: withCtx(() => [
|
|
43369
43363
|
createVNode(_component_a_form, {
|