@witlink/usercenter 1.2.76 → 1.2.77
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 +93 -71
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -13119,6 +13119,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
13119
13119
|
const onReset = () => {
|
|
13120
13120
|
resetForm();
|
|
13121
13121
|
};
|
|
13122
|
+
const onSwitchAccount = () => {
|
|
13123
|
+
visible.value = false;
|
|
13124
|
+
resetForm();
|
|
13125
|
+
storage.set(FORCE_RESET_PWD_SYNC_KEY$1, Date.now());
|
|
13126
|
+
emit("success");
|
|
13127
|
+
if (resetCallback) {
|
|
13128
|
+
resetCallback();
|
|
13129
|
+
}
|
|
13130
|
+
};
|
|
13122
13131
|
const onSubmit = () => {
|
|
13123
13132
|
formRef.value && formRef.value.validate().then(async () => {
|
|
13124
13133
|
loading.value = true;
|
|
@@ -13167,6 +13176,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
13167
13176
|
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_user.resetPwd")), 1)
|
|
13168
13177
|
]),
|
|
13169
13178
|
footer: withCtx(() => [
|
|
13179
|
+
createVNode(_component_a_button, {
|
|
13180
|
+
key: "switch",
|
|
13181
|
+
onClick: onSwitchAccount
|
|
13182
|
+
}, {
|
|
13183
|
+
default: withCtx(() => [
|
|
13184
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_common.switchAccount")), 1)
|
|
13185
|
+
]),
|
|
13186
|
+
_: 1
|
|
13187
|
+
}),
|
|
13170
13188
|
createVNode(_component_a_button, {
|
|
13171
13189
|
key: "reset",
|
|
13172
13190
|
onClick: onReset
|
|
@@ -38102,7 +38120,7 @@ const _hoisted_2$a = {
|
|
|
38102
38120
|
key: 0,
|
|
38103
38121
|
class: "left-syslist"
|
|
38104
38122
|
};
|
|
38105
|
-
const _hoisted_3$
|
|
38123
|
+
const _hoisted_3$6 = { class: "page-title" };
|
|
38106
38124
|
const _hoisted_4$6 = ["onClick"];
|
|
38107
38125
|
const _hoisted_5$4 = ["src"];
|
|
38108
38126
|
const _hoisted_6$4 = { class: "sys-item-name" };
|
|
@@ -38315,7 +38333,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
38315
38333
|
default: withCtx(() => [
|
|
38316
38334
|
createElementVNode("div", _hoisted_1$i, [
|
|
38317
38335
|
unref(systemId) == 1 ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
38318
|
-
createElementVNode("div", _hoisted_3$
|
|
38336
|
+
createElementVNode("div", _hoisted_3$6, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
|
|
38319
38337
|
(openBlock(true), createElementBlock(Fragment, null, renderList(sysList.value, (item) => {
|
|
38320
38338
|
return openBlock(), createElementBlock("div", {
|
|
38321
38339
|
class: normalizeClass(["sys-item", { "sys-item-active": selectedSys.value === item.systemId }]),
|
|
@@ -39476,7 +39494,7 @@ const DeptDetail_vue_vue_type_style_index_0_scoped_7ab63a77_lang = "";
|
|
|
39476
39494
|
const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
|
|
39477
39495
|
const _hoisted_1$d = { class: "organ-wrap" };
|
|
39478
39496
|
const _hoisted_2$9 = { class: "topInfo" };
|
|
39479
|
-
const _hoisted_3$
|
|
39497
|
+
const _hoisted_3$5 = { class: "form-btns" };
|
|
39480
39498
|
const _hoisted_4$5 = ["onClick"];
|
|
39481
39499
|
const _hoisted_5$3 = { class: "show_more_button" };
|
|
39482
39500
|
const _hoisted_6$3 = { key: 1 };
|
|
@@ -39509,6 +39527,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
39509
39527
|
const addShow = ref(false);
|
|
39510
39528
|
const removeShow = ref(false);
|
|
39511
39529
|
const editShow = ref(false);
|
|
39530
|
+
const detailShow = ref(false);
|
|
39512
39531
|
ref([]);
|
|
39513
39532
|
const tableRef = ref();
|
|
39514
39533
|
const systemId = storage.get("systemId");
|
|
@@ -39854,6 +39873,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
39854
39873
|
addShow.value = hasPermissionId("002");
|
|
39855
39874
|
editShow.value = hasPermissionId("003");
|
|
39856
39875
|
removeShow.value = hasPermissionId("004");
|
|
39876
|
+
detailShow.value = hasPermissionId("005");
|
|
39857
39877
|
init2();
|
|
39858
39878
|
});
|
|
39859
39879
|
return (_ctx, _cache) => {
|
|
@@ -39899,7 +39919,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
39899
39919
|
]),
|
|
39900
39920
|
_: 1
|
|
39901
39921
|
}, 8, ["label"]),
|
|
39902
|
-
createElementVNode("div", _hoisted_3$
|
|
39922
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
39903
39923
|
createCommentVNode(' <uc-btn-search\r\n @click="queryById"\r\n :showInput="false"\r\n ></uc-btn-search> '),
|
|
39904
39924
|
createVNode(_component_a_button, {
|
|
39905
39925
|
onClick: handleReset,
|
|
@@ -39958,6 +39978,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
39958
39978
|
}, toDisplayString(_ctx.$t("uc_organ.type" + row.type)), 3),
|
|
39959
39979
|
withDirectives(createVNode(_component_a_button, {
|
|
39960
39980
|
type: "link",
|
|
39981
|
+
disabled: !detailShow.value,
|
|
39982
|
+
style: { "padding-left": "8px" },
|
|
39961
39983
|
onClick: ($event) => onDetail(row),
|
|
39962
39984
|
class: "wrap-btn"
|
|
39963
39985
|
}, {
|
|
@@ -39965,21 +39987,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
39965
39987
|
createTextVNode(toDisplayString(row.name), 1)
|
|
39966
39988
|
]),
|
|
39967
39989
|
_: 2
|
|
39968
|
-
}, 1032, ["onClick"]), [
|
|
39969
|
-
[vShow, row.hasOperationPermissions
|
|
39970
|
-
]),
|
|
39971
|
-
withDirectives(createVNode(_component_a_button, {
|
|
39972
|
-
type: "link",
|
|
39973
|
-
style: { "padding-left": "16px" },
|
|
39974
|
-
onClick: ($event) => onDetail(row),
|
|
39975
|
-
class: "wrap-btn"
|
|
39976
|
-
}, {
|
|
39977
|
-
default: withCtx(() => [
|
|
39978
|
-
createTextVNode(toDisplayString(row.name), 1)
|
|
39979
|
-
]),
|
|
39980
|
-
_: 2
|
|
39981
|
-
}, 1032, ["onClick"]), [
|
|
39982
|
-
[vShow, row.hasOperationPermissions && row.type == "3"]
|
|
39990
|
+
}, 1032, ["disabled", "onClick"]), [
|
|
39991
|
+
[vShow, row.hasOperationPermissions]
|
|
39983
39992
|
]),
|
|
39984
39993
|
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
39985
39994
|
title: withCtx(() => [
|
|
@@ -40590,7 +40599,7 @@ const _hoisted_1$c = {
|
|
|
40590
40599
|
class: "role-wrap"
|
|
40591
40600
|
};
|
|
40592
40601
|
const _hoisted_2$8 = { class: "form-btns" };
|
|
40593
|
-
const _hoisted_3$
|
|
40602
|
+
const _hoisted_3$4 = { style: { "height": "32px", "margin-bottom": "10px" } };
|
|
40594
40603
|
const _hoisted_4$4 = {
|
|
40595
40604
|
key: 1,
|
|
40596
40605
|
class: "role-auth"
|
|
@@ -41188,9 +41197,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
41188
41197
|
const _component_a_button = Button$1;
|
|
41189
41198
|
const _component_a_form = Form;
|
|
41190
41199
|
const _component_uc_btn_add = resolveComponent("uc-btn-add");
|
|
41191
|
-
const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
|
|
41192
41200
|
const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
|
|
41193
41201
|
const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
|
|
41202
|
+
const _component_a_divider = Divider;
|
|
41203
|
+
const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
|
|
41194
41204
|
const _component_a_col = Col;
|
|
41195
41205
|
const _component_a_row = Row;
|
|
41196
41206
|
const _component_a_checkbox = Checkbox;
|
|
@@ -41255,7 +41265,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
41255
41265
|
]),
|
|
41256
41266
|
_: 1
|
|
41257
41267
|
}),
|
|
41258
|
-
createElementVNode("div", _hoisted_3$
|
|
41268
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
41259
41269
|
createVNode(_component_uc_btn_add, {
|
|
41260
41270
|
onClick: _cache[2] || (_cache[2] = ($event) => handleAddRole()),
|
|
41261
41271
|
text: _ctx.$t("uc_role.create_role"),
|
|
@@ -41273,12 +41283,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
41273
41283
|
class: "table-bordered"
|
|
41274
41284
|
}, {
|
|
41275
41285
|
bodyCell: withCtx(({ record, column }) => [
|
|
41276
|
-
column.key === "name" ? (openBlock(), createBlock(
|
|
41286
|
+
column.key === "name" ? (openBlock(), createBlock(TextEllipsis, {
|
|
41277
41287
|
key: 0,
|
|
41278
|
-
onClick: ($event) => handleDetail(record),
|
|
41279
|
-
type: "link",
|
|
41280
41288
|
text: record.name
|
|
41281
|
-
}, null, 8, ["
|
|
41289
|
+
}, null, 8, ["text"])) : createCommentVNode("v-if", true),
|
|
41282
41290
|
column.key === "status" ? (openBlock(), createBlock(_component_uc_btn_switch, {
|
|
41283
41291
|
key: 1,
|
|
41284
41292
|
checked: record.status == 0,
|
|
@@ -41291,11 +41299,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
41291
41299
|
column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
41292
41300
|
createTextVNode(toDisplayString(unref(formatDate)(record.createTime) || "-"), 1)
|
|
41293
41301
|
], 64)) : createCommentVNode("v-if", true),
|
|
41294
|
-
column.key === "action" ? (openBlock(),
|
|
41295
|
-
|
|
41296
|
-
|
|
41297
|
-
|
|
41298
|
-
|
|
41302
|
+
column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
41303
|
+
createVNode(_component_uc_btn_edit, {
|
|
41304
|
+
onClick: ($event) => handleEdit(record),
|
|
41305
|
+
type: "link"
|
|
41306
|
+
}, null, 8, ["onClick"]),
|
|
41307
|
+
createVNode(_component_a_divider, { type: "vertical" }),
|
|
41308
|
+
createVNode(_component_uc_btn_detail, {
|
|
41309
|
+
onClick: ($event) => handleDetail(record),
|
|
41310
|
+
type: "link"
|
|
41311
|
+
}, null, 8, ["onClick"])
|
|
41312
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
41299
41313
|
]),
|
|
41300
41314
|
_: 1
|
|
41301
41315
|
}, 8, ["columns"])
|
|
@@ -41770,7 +41784,7 @@ function getUserDetail(params) {
|
|
|
41770
41784
|
}
|
|
41771
41785
|
const _hoisted_1$b = { class: "add-user" };
|
|
41772
41786
|
const _hoisted_2$7 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
|
|
41773
|
-
const _hoisted_3$
|
|
41787
|
+
const _hoisted_3$3 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
|
|
41774
41788
|
const _hoisted_4$3 = ["onClick"];
|
|
41775
41789
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
41776
41790
|
__name: "UserEdit",
|
|
@@ -41800,18 +41814,22 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
41800
41814
|
roleIdOthers: []
|
|
41801
41815
|
});
|
|
41802
41816
|
const roleId = ref("");
|
|
41803
|
-
const roleIdOthers = ref([]);
|
|
41804
41817
|
const roles = ref([]);
|
|
41805
41818
|
const handleRoleSelectChange = (val) => {
|
|
41806
41819
|
roleId.value = val;
|
|
41807
41820
|
form.value.roleIdOthers = [];
|
|
41808
41821
|
};
|
|
41822
|
+
const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
|
|
41823
|
+
const handleMobileInput = (e) => {
|
|
41824
|
+
const target = e.target;
|
|
41825
|
+
form.value.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
|
|
41826
|
+
};
|
|
41809
41827
|
const handleUserCodeValidator = (rule, value) => {
|
|
41810
41828
|
if (!value) {
|
|
41811
41829
|
return Promise.reject(t2("uc_user.user_code_msg1"));
|
|
41812
41830
|
}
|
|
41813
41831
|
if (/^[a-zA-Z0-9]+$/.test(value)) {
|
|
41814
|
-
if (/^.{1,
|
|
41832
|
+
if (/^.{1,50}$/.test(value)) {
|
|
41815
41833
|
return Promise.resolve();
|
|
41816
41834
|
} else {
|
|
41817
41835
|
return Promise.reject(t2("uc_user.user_code_msg3"));
|
|
@@ -41965,11 +41983,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
41965
41983
|
});
|
|
41966
41984
|
branchDisabled.value = result.businessFlag === "1";
|
|
41967
41985
|
roleId.value = result.roleId;
|
|
41968
|
-
roleIdOthers.value = !result.roleIdOthers ? [] : result.roleIdOthers.split(",");
|
|
41969
41986
|
form.value = {
|
|
41970
41987
|
...result,
|
|
41988
|
+
mobile: normalizeMobile(result.mobile || ""),
|
|
41971
41989
|
roleId: result.roleId,
|
|
41972
|
-
roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",") : [],
|
|
41990
|
+
roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",").map((item) => Number(item)) : [],
|
|
41973
41991
|
branchId: result.branchId
|
|
41974
41992
|
};
|
|
41975
41993
|
};
|
|
@@ -42048,7 +42066,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
42048
42066
|
}, {
|
|
42049
42067
|
label: withCtx(() => [
|
|
42050
42068
|
createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
|
|
42051
|
-
createElementVNode("span", _hoisted_3$
|
|
42069
|
+
createElementVNode("span", _hoisted_3$3, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
|
|
42052
42070
|
]),
|
|
42053
42071
|
default: withCtx(() => [
|
|
42054
42072
|
createVNode(_component_a_input, {
|
|
@@ -42201,7 +42219,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
42201
42219
|
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.mobile = $event),
|
|
42202
42220
|
disabled: props.params.opType == "2",
|
|
42203
42221
|
autocomplete: "off",
|
|
42204
|
-
maxlength: 15
|
|
42222
|
+
maxlength: 15,
|
|
42223
|
+
onInput: handleMobileInput
|
|
42205
42224
|
}, null, 8, ["placeholder", "value", "disabled"])
|
|
42206
42225
|
]),
|
|
42207
42226
|
_: 1
|
|
@@ -42678,7 +42697,6 @@ const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
|
|
|
42678
42697
|
const UserDetail = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-167248a6"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserDetail.vue"]]);
|
|
42679
42698
|
const _hoisted_1$8 = { class: "user-info" };
|
|
42680
42699
|
const _hoisted_2$6 = { class: "form-btns" };
|
|
42681
|
-
const _hoisted_3$3 = { key: 5 };
|
|
42682
42700
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
42683
42701
|
__name: "index",
|
|
42684
42702
|
setup(__props) {
|
|
@@ -42752,7 +42770,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
42752
42770
|
title: t2("uc_user.action"),
|
|
42753
42771
|
key: "action",
|
|
42754
42772
|
fixed: "right",
|
|
42755
|
-
width: "
|
|
42773
|
+
width: "180px"
|
|
42756
42774
|
}
|
|
42757
42775
|
]);
|
|
42758
42776
|
const onSwitch = async (checked, record) => {
|
|
@@ -42866,11 +42884,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
42866
42884
|
const _component_a_button = Button$1;
|
|
42867
42885
|
const _component_a_form = Form;
|
|
42868
42886
|
const _component_uc_btn_add = resolveComponent("uc-btn-add");
|
|
42869
|
-
const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
|
|
42870
42887
|
const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
|
|
42871
42888
|
const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
|
|
42872
42889
|
const _component_a_divider = Divider;
|
|
42873
42890
|
const _component_uc_btn_reset_pwd = resolveComponent("uc-btn-reset-pwd");
|
|
42891
|
+
const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
|
|
42874
42892
|
const _component_a_config_provider = ConfigProvider$1;
|
|
42875
42893
|
return openBlock(), createBlock(_component_a_config_provider, {
|
|
42876
42894
|
locale: unref(antLocaleMap)[unref(userStore).userLanguage],
|
|
@@ -42993,27 +43011,18 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
42993
43011
|
key: 1,
|
|
42994
43012
|
text: record.name
|
|
42995
43013
|
}, null, 8, ["text"])) : createCommentVNode("v-if", true),
|
|
42996
|
-
column.key === "userCode" ? (openBlock(),
|
|
42997
|
-
|
|
42998
|
-
type: "link",
|
|
42999
|
-
onClick: ($event) => onDetail(record)
|
|
43000
|
-
}, {
|
|
43001
|
-
default: withCtx(() => [
|
|
43002
|
-
createTextVNode(toDisplayString(record.code), 1)
|
|
43003
|
-
]),
|
|
43004
|
-
_: 2
|
|
43005
|
-
}, 1032, ["onClick"])) : createCommentVNode("v-if", true),
|
|
43006
|
-
column.key === "userStatus" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
43007
|
-
[0, 1].includes(Number(record.status)) ? (openBlock(), createBlock(_component_uc_btn_switch, {
|
|
43008
|
-
key: 0,
|
|
43009
|
-
checked: record.status == 0,
|
|
43010
|
-
onClick: (checked) => onSwitch(checked, record)
|
|
43011
|
-
}, null, 8, ["checked", "onClick"])) : createCommentVNode("v-if", true)
|
|
43014
|
+
column.key === "userCode" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
43015
|
+
createTextVNode(toDisplayString(record.code), 1)
|
|
43012
43016
|
], 64)) : createCommentVNode("v-if", true),
|
|
43017
|
+
column.key === "userStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
|
|
43018
|
+
key: 3,
|
|
43019
|
+
checked: record.status == 0,
|
|
43020
|
+
onClick: (checked) => onSwitch(checked, record)
|
|
43021
|
+
}, null, 8, ["checked", "onClick"])) : createCommentVNode("v-if", true),
|
|
43013
43022
|
column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
43014
43023
|
createTextVNode(toDisplayString(unref(formatDate)(record.createTime) || "-"), 1)
|
|
43015
43024
|
], 64)) : createCommentVNode("v-if", true),
|
|
43016
|
-
column.key === "action" ?
|
|
43025
|
+
column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
43017
43026
|
createVNode(_component_uc_btn_edit, {
|
|
43018
43027
|
onClick: ($event) => onUpdate(record),
|
|
43019
43028
|
type: "link"
|
|
@@ -43022,10 +43031,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
43022
43031
|
createVNode(_component_uc_btn_reset_pwd, {
|
|
43023
43032
|
onClick: ($event) => onRsPwd(record),
|
|
43024
43033
|
type: "link"
|
|
43034
|
+
}, null, 8, ["onClick"]),
|
|
43035
|
+
createVNode(_component_a_divider, { type: "vertical" }),
|
|
43036
|
+
createVNode(_component_uc_btn_detail, {
|
|
43037
|
+
type: "link",
|
|
43038
|
+
onClick: ($event) => onDetail(record)
|
|
43025
43039
|
}, null, 8, ["onClick"])
|
|
43026
|
-
],
|
|
43027
|
-
[vShow, record.status != 2]
|
|
43028
|
-
]) : createCommentVNode("v-if", true)
|
|
43040
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
43029
43041
|
]),
|
|
43030
43042
|
_: 1
|
|
43031
43043
|
}, 8, ["columns"]),
|
|
@@ -43193,6 +43205,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43193
43205
|
pwd: "",
|
|
43194
43206
|
mobile: ""
|
|
43195
43207
|
});
|
|
43208
|
+
const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
|
|
43209
|
+
const handleMobileInput = (e) => {
|
|
43210
|
+
const target = e.target;
|
|
43211
|
+
formState.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
|
|
43212
|
+
};
|
|
43196
43213
|
const rules = computed(() => ({
|
|
43197
43214
|
pwd: [
|
|
43198
43215
|
{
|
|
@@ -43311,7 +43328,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
43311
43328
|
value: formState.mobile,
|
|
43312
43329
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.mobile = $event),
|
|
43313
43330
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
43314
|
-
maxlength: 15
|
|
43331
|
+
maxlength: 15,
|
|
43332
|
+
autocomplete: "off",
|
|
43333
|
+
onInput: handleMobileInput
|
|
43315
43334
|
}, null, 8, ["value", "placeholder"])
|
|
43316
43335
|
]),
|
|
43317
43336
|
_: 1
|
|
@@ -45720,6 +45739,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
45720
45739
|
}
|
|
45721
45740
|
return "";
|
|
45722
45741
|
});
|
|
45742
|
+
const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
|
|
45743
|
+
const handlePhoneInput = (e) => {
|
|
45744
|
+
const target = e.target;
|
|
45745
|
+
form.userMobile = normalizeMobile((target == null ? void 0 : target.value) || "");
|
|
45746
|
+
};
|
|
45723
45747
|
const initData = () => {
|
|
45724
45748
|
Object.assign(form, {
|
|
45725
45749
|
organType: props.params.organType,
|
|
@@ -46143,7 +46167,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
46143
46167
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
46144
46168
|
value: form.userMobile,
|
|
46145
46169
|
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userMobile = $event),
|
|
46146
|
-
maxlength: 15
|
|
46170
|
+
maxlength: 15,
|
|
46171
|
+
onInput: handlePhoneInput
|
|
46147
46172
|
}, null, 8, ["disabled", "placeholder", "value"])
|
|
46148
46173
|
]),
|
|
46149
46174
|
_: 1
|
|
@@ -47739,15 +47764,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
47739
47764
|
return visible.value ? (openBlock(), createBlock(_component_a_button, mergeProps({
|
|
47740
47765
|
key: 0,
|
|
47741
47766
|
type: props.type
|
|
47742
|
-
}, _ctx.$attrs, {
|
|
47743
|
-
class: curLinkClass.value,
|
|
47744
|
-
style: { "width": "100%", "text-align": "left" }
|
|
47745
|
-
}), {
|
|
47767
|
+
}, _ctx.$attrs, { class: curLinkClass.value }), {
|
|
47746
47768
|
default: withCtx(() => [
|
|
47747
47769
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
47748
|
-
|
|
47749
|
-
text: props.text || _ctx.$t("usercenter_button._005")
|
|
47750
|
-
}, null, 8, ["text"])
|
|
47770
|
+
createTextVNode(toDisplayString(props.text || _ctx.$t("usercenter_button._005")), 1)
|
|
47751
47771
|
], true)
|
|
47752
47772
|
]),
|
|
47753
47773
|
_: 3
|
|
@@ -47771,7 +47791,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
47771
47791
|
});
|
|
47772
47792
|
return (_ctx, _cache) => {
|
|
47773
47793
|
const _component_a_switch = Switch;
|
|
47774
|
-
return
|
|
47794
|
+
return openBlock(), createBlock(_component_a_switch, mergeProps(_ctx.$attrs, {
|
|
47795
|
+
disabled: !visible.value
|
|
47796
|
+
}), null, 16, ["disabled"]);
|
|
47775
47797
|
};
|
|
47776
47798
|
}
|
|
47777
47799
|
});
|