@witlink/usercenter 1.2.78 → 1.2.79
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 +16 -27
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -40364,7 +40364,6 @@ const _sfc_main$z = Object.assign({
|
|
|
40364
40364
|
emits: ["refresh"],
|
|
40365
40365
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40366
40366
|
const { t: t2 } = useI18n();
|
|
40367
|
-
const emit = __emit;
|
|
40368
40367
|
const props = __props;
|
|
40369
40368
|
const slots = useSlots();
|
|
40370
40369
|
const dataSource = ref([]);
|
|
@@ -40412,12 +40411,8 @@ const _sfc_main$z = Object.assign({
|
|
|
40412
40411
|
}).finally(() => localLoading.value = false);
|
|
40413
40412
|
}
|
|
40414
40413
|
};
|
|
40415
|
-
const refresh = (
|
|
40416
|
-
|
|
40417
|
-
localPagination.current = 1;
|
|
40418
|
-
localPagination.total = 0;
|
|
40419
|
-
emit("refresh");
|
|
40420
|
-
}
|
|
40414
|
+
const refresh = () => {
|
|
40415
|
+
localPagination.current = 1;
|
|
40421
40416
|
loadData();
|
|
40422
40417
|
};
|
|
40423
40418
|
onMounted(() => {
|
|
@@ -41831,9 +41826,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
41831
41826
|
form.value.roleIdOthers = [];
|
|
41832
41827
|
};
|
|
41833
41828
|
const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
|
|
41834
|
-
const handleMobileInput = (
|
|
41835
|
-
|
|
41836
|
-
form.value.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
|
|
41829
|
+
const handleMobileInput = (value) => {
|
|
41830
|
+
form.value.mobile = normalizeMobile(value);
|
|
41837
41831
|
};
|
|
41838
41832
|
const handleUserCodeValidator = (rule, value) => {
|
|
41839
41833
|
if (!value) {
|
|
@@ -42227,11 +42221,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
42227
42221
|
createVNode(_component_a_input, {
|
|
42228
42222
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
42229
42223
|
value: form.value.mobile,
|
|
42230
|
-
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.mobile = $event),
|
|
42231
42224
|
disabled: props.params.opType == "2",
|
|
42232
42225
|
autocomplete: "off",
|
|
42233
42226
|
maxlength: 15,
|
|
42234
|
-
|
|
42227
|
+
"onUpdate:value": handleMobileInput
|
|
42235
42228
|
}, null, 8, ["placeholder", "value", "disabled"])
|
|
42236
42229
|
]),
|
|
42237
42230
|
_: 1
|
|
@@ -42254,7 +42247,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
42254
42247
|
createVNode(_component_a_input, {
|
|
42255
42248
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
42256
42249
|
value: form.value.email,
|
|
42257
|
-
"onUpdate:value": _cache[
|
|
42250
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.email = $event),
|
|
42258
42251
|
disabled: props.params.opType == "2",
|
|
42259
42252
|
autocomplete: "off",
|
|
42260
42253
|
maxlength: 32
|
|
@@ -42280,7 +42273,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
42280
42273
|
createVNode(_component_a_input, {
|
|
42281
42274
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
42282
42275
|
value: form.value.remarks,
|
|
42283
|
-
"onUpdate:value": _cache[
|
|
42276
|
+
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.remarks = $event),
|
|
42284
42277
|
autocomplete: "off",
|
|
42285
42278
|
maxlength: 200
|
|
42286
42279
|
}, null, 8, ["placeholder", "value"])
|
|
@@ -43227,9 +43220,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43227
43220
|
mobile: ""
|
|
43228
43221
|
});
|
|
43229
43222
|
const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
|
|
43230
|
-
const handleMobileInput = (
|
|
43231
|
-
|
|
43232
|
-
formState.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
|
|
43223
|
+
const handleMobileInput = (value) => {
|
|
43224
|
+
formState.mobile = normalizeMobile(value);
|
|
43233
43225
|
};
|
|
43234
43226
|
const rules = computed(() => ({
|
|
43235
43227
|
pwd: [
|
|
@@ -43295,7 +43287,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43295
43287
|
return openBlock(), createBlock(_component_a_modal, {
|
|
43296
43288
|
title: isBind.value ? _ctx.$t("uc_profile.bandMobile") : _ctx.$t("uc_profile.editMobile"),
|
|
43297
43289
|
open: visible.value,
|
|
43298
|
-
"onUpdate:open": _cache[
|
|
43290
|
+
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
43299
43291
|
destroyOnClose: true,
|
|
43300
43292
|
onCancel: handleClose
|
|
43301
43293
|
}, {
|
|
@@ -43347,11 +43339,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43347
43339
|
default: withCtx(() => [
|
|
43348
43340
|
createVNode(_component_a_input, {
|
|
43349
43341
|
value: formState.mobile,
|
|
43350
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.mobile = $event),
|
|
43351
43342
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
43352
43343
|
maxlength: 15,
|
|
43353
43344
|
autocomplete: "off",
|
|
43354
|
-
|
|
43345
|
+
"onUpdate:value": handleMobileInput
|
|
43355
43346
|
}, null, 8, ["value", "placeholder"])
|
|
43356
43347
|
]),
|
|
43357
43348
|
_: 1
|
|
@@ -45761,9 +45752,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45761
45752
|
return "";
|
|
45762
45753
|
});
|
|
45763
45754
|
const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
|
|
45764
|
-
const handlePhoneInput = (
|
|
45765
|
-
|
|
45766
|
-
form.userMobile = normalizeMobile((target == null ? void 0 : target.value) || "");
|
|
45755
|
+
const handlePhoneInput = (value) => {
|
|
45756
|
+
form.userMobile = normalizeMobile(value);
|
|
45767
45757
|
};
|
|
45768
45758
|
const initData = () => {
|
|
45769
45759
|
Object.assign(form, {
|
|
@@ -46187,9 +46177,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
46187
46177
|
autocomplete: "off",
|
|
46188
46178
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
46189
46179
|
value: form.userMobile,
|
|
46190
|
-
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userMobile = $event),
|
|
46191
46180
|
maxlength: 15,
|
|
46192
|
-
|
|
46181
|
+
"onUpdate:value": handlePhoneInput
|
|
46193
46182
|
}, null, 8, ["disabled", "placeholder", "value"])
|
|
46194
46183
|
]),
|
|
46195
46184
|
_: 1
|
|
@@ -46214,7 +46203,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
46214
46203
|
autocomplete: "off",
|
|
46215
46204
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
46216
46205
|
value: form.userEmail,
|
|
46217
|
-
"onUpdate:value": _cache[
|
|
46206
|
+
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userEmail = $event),
|
|
46218
46207
|
maxlength: 32
|
|
46219
46208
|
}, null, 8, ["disabled", "placeholder", "value"])
|
|
46220
46209
|
]),
|
|
@@ -46244,7 +46233,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
46244
46233
|
disabled: isEdit.value,
|
|
46245
46234
|
autocomplete: "off",
|
|
46246
46235
|
value: form.userCode,
|
|
46247
|
-
"onUpdate:value": _cache[
|
|
46236
|
+
"onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.userCode = $event)
|
|
46248
46237
|
}, null, 8, ["placeholder", "disabled", "value"])
|
|
46249
46238
|
]),
|
|
46250
46239
|
_: 1
|