@witlink/usercenter 1.2.65 → 1.2.66
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 +177 -167
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -33264,29 +33264,31 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33264
33264
|
type: "",
|
|
33265
33265
|
actionType: ""
|
|
33266
33266
|
});
|
|
33267
|
-
const rules =
|
|
33268
|
-
|
|
33269
|
-
|
|
33270
|
-
|
|
33271
|
-
|
|
33272
|
-
|
|
33273
|
-
|
|
33274
|
-
|
|
33275
|
-
|
|
33276
|
-
|
|
33277
|
-
|
|
33278
|
-
|
|
33279
|
-
|
|
33280
|
-
|
|
33267
|
+
const rules = computed(() => {
|
|
33268
|
+
return {
|
|
33269
|
+
name: [
|
|
33270
|
+
{
|
|
33271
|
+
required: true,
|
|
33272
|
+
message: t2("uc_organ.branchName_msg1"),
|
|
33273
|
+
trigger: "blur"
|
|
33274
|
+
}
|
|
33275
|
+
],
|
|
33276
|
+
refCode: [
|
|
33277
|
+
{
|
|
33278
|
+
required: false,
|
|
33279
|
+
trigger: "change",
|
|
33280
|
+
validator: (rule, value) => {
|
|
33281
|
+
if (!value) {
|
|
33282
|
+
return Promise.resolve();
|
|
33283
|
+
}
|
|
33284
|
+
if (!/^\d{0,4}$/.test(value)) {
|
|
33285
|
+
return Promise.reject(t2("uc_organ.refCodePlaceholder"));
|
|
33286
|
+
}
|
|
33281
33287
|
return Promise.resolve();
|
|
33282
33288
|
}
|
|
33283
|
-
if (!/^\d{0,4}$/.test(value)) {
|
|
33284
|
-
return Promise.reject(t2("uc_organ.refCodePlaceholder"));
|
|
33285
|
-
}
|
|
33286
|
-
return Promise.resolve();
|
|
33287
33289
|
}
|
|
33288
|
-
|
|
33289
|
-
|
|
33290
|
+
]
|
|
33291
|
+
};
|
|
33290
33292
|
});
|
|
33291
33293
|
const initData = async () => {
|
|
33292
33294
|
loading.value = true;
|
|
@@ -33409,7 +33411,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33409
33411
|
layout: "vertical",
|
|
33410
33412
|
ref_key: "formRef",
|
|
33411
33413
|
ref: formRef,
|
|
33412
|
-
rules,
|
|
33414
|
+
rules: rules.value,
|
|
33413
33415
|
class: "clear-formctrl-lh rm-form-item-mb"
|
|
33414
33416
|
}, {
|
|
33415
33417
|
default: withCtx(() => [
|
|
@@ -35887,36 +35889,38 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
35887
35889
|
return Promise.reject(t2("uc_user.user_code_msg2"));
|
|
35888
35890
|
}
|
|
35889
35891
|
};
|
|
35890
|
-
const rules = {
|
|
35891
|
-
|
|
35892
|
-
|
|
35893
|
-
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35898
|
-
|
|
35899
|
-
|
|
35900
|
-
|
|
35892
|
+
const rules = computed(() => {
|
|
35893
|
+
return {
|
|
35894
|
+
userName: [
|
|
35895
|
+
{
|
|
35896
|
+
required: true,
|
|
35897
|
+
trigger: ["change", "blur"],
|
|
35898
|
+
message: t2("uc_user.user_name_msg1"),
|
|
35899
|
+
validator: (rule, value) => {
|
|
35900
|
+
if (!value || /^\s+$/.test(value)) {
|
|
35901
|
+
return Promise.reject(t2("uc_user.user_name_msg1"));
|
|
35902
|
+
} else {
|
|
35903
|
+
return Promise.resolve();
|
|
35904
|
+
}
|
|
35901
35905
|
}
|
|
35902
35906
|
}
|
|
35903
|
-
|
|
35904
|
-
|
|
35905
|
-
|
|
35906
|
-
|
|
35907
|
-
|
|
35908
|
-
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
};
|
|
35907
|
+
],
|
|
35908
|
+
branchId: [
|
|
35909
|
+
{
|
|
35910
|
+
required: true,
|
|
35911
|
+
trigger: ["change", "blur"],
|
|
35912
|
+
message: t2("uc_user.branch_msg1")
|
|
35913
|
+
}
|
|
35914
|
+
],
|
|
35915
|
+
roleId: [
|
|
35916
|
+
{
|
|
35917
|
+
required: true,
|
|
35918
|
+
message: t2("uc_user.role_msg1"),
|
|
35919
|
+
trigger: ["change", "blur"]
|
|
35920
|
+
}
|
|
35921
|
+
]
|
|
35922
|
+
};
|
|
35923
|
+
});
|
|
35920
35924
|
const resetForm = () => {
|
|
35921
35925
|
formRef.value && formRef.value.resetFields();
|
|
35922
35926
|
};
|
|
@@ -36075,7 +36079,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36075
36079
|
model: form.value,
|
|
36076
36080
|
ref_key: "formRef",
|
|
36077
36081
|
ref: formRef,
|
|
36078
|
-
rules,
|
|
36082
|
+
rules: rules.value,
|
|
36079
36083
|
style: { "padding-bottom": "30px" },
|
|
36080
36084
|
layout: "vertical"
|
|
36081
36085
|
}, {
|
|
@@ -36336,7 +36340,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36336
36340
|
})
|
|
36337
36341
|
]),
|
|
36338
36342
|
_: 1
|
|
36339
|
-
}, 8, ["model"]),
|
|
36343
|
+
}, 8, ["model", "rules"]),
|
|
36340
36344
|
createVNode(_component_a_space, { class: "drawer-btns" }, {
|
|
36341
36345
|
default: withCtx(() => [
|
|
36342
36346
|
createVNode(_component_a_button, { onClick: onCancel }, {
|
|
@@ -37965,31 +37969,33 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37965
37969
|
const visible = ref(false);
|
|
37966
37970
|
const destroyOnClose = ref(true);
|
|
37967
37971
|
const params = ref({});
|
|
37968
|
-
const rules = {
|
|
37969
|
-
|
|
37970
|
-
|
|
37971
|
-
|
|
37972
|
-
|
|
37973
|
-
|
|
37974
|
-
|
|
37975
|
-
|
|
37976
|
-
|
|
37977
|
-
|
|
37978
|
-
|
|
37979
|
-
|
|
37980
|
-
|
|
37981
|
-
|
|
37982
|
-
|
|
37983
|
-
|
|
37984
|
-
|
|
37985
|
-
|
|
37986
|
-
|
|
37987
|
-
|
|
37972
|
+
const rules = computed(() => {
|
|
37973
|
+
return {
|
|
37974
|
+
userPwd: [
|
|
37975
|
+
{
|
|
37976
|
+
required: true,
|
|
37977
|
+
message: t2("uc_user.user_pwd1_msg1"),
|
|
37978
|
+
trigger: ["blur", "change"]
|
|
37979
|
+
}
|
|
37980
|
+
],
|
|
37981
|
+
userPwd1: [
|
|
37982
|
+
{
|
|
37983
|
+
required: true,
|
|
37984
|
+
trigger: ["blur", "change"],
|
|
37985
|
+
validator: (rule, value) => {
|
|
37986
|
+
if (!value) {
|
|
37987
|
+
return Promise.reject(t2("uc_user.user_pwd2_msg2"));
|
|
37988
|
+
}
|
|
37989
|
+
if (form.userPwd === value) {
|
|
37990
|
+
return Promise.resolve();
|
|
37991
|
+
} else {
|
|
37992
|
+
return Promise.reject(t2("uc_user.user_pwd2_msg1"));
|
|
37993
|
+
}
|
|
37988
37994
|
}
|
|
37989
37995
|
}
|
|
37990
|
-
|
|
37991
|
-
|
|
37992
|
-
};
|
|
37996
|
+
]
|
|
37997
|
+
};
|
|
37998
|
+
});
|
|
37993
37999
|
const showModal = (data) => {
|
|
37994
38000
|
visible.value = true;
|
|
37995
38001
|
params.value = data.params;
|
|
@@ -38067,7 +38073,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
38067
38073
|
class: "inline-query-form clear-formctrl-lh",
|
|
38068
38074
|
ref_key: "formRef",
|
|
38069
38075
|
ref: formRef,
|
|
38070
|
-
rules
|
|
38076
|
+
rules: rules.value
|
|
38071
38077
|
}, {
|
|
38072
38078
|
default: withCtx(() => [
|
|
38073
38079
|
createVNode(_component_a_form_item, {
|
|
@@ -38105,7 +38111,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
38105
38111
|
}, 8, ["label"])
|
|
38106
38112
|
]),
|
|
38107
38113
|
_: 1
|
|
38108
|
-
}, 8, ["model"])
|
|
38114
|
+
}, 8, ["model", "rules"])
|
|
38109
38115
|
]),
|
|
38110
38116
|
_: 1
|
|
38111
38117
|
}, 8, ["open", "title", "destroyOnClose"]);
|
|
@@ -41729,29 +41735,31 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
41729
41735
|
const onCancel = () => {
|
|
41730
41736
|
emit("close");
|
|
41731
41737
|
};
|
|
41732
|
-
const rules = {
|
|
41733
|
-
|
|
41734
|
-
|
|
41735
|
-
|
|
41736
|
-
|
|
41737
|
-
|
|
41738
|
-
|
|
41739
|
-
|
|
41740
|
-
|
|
41741
|
-
|
|
41742
|
-
|
|
41743
|
-
|
|
41744
|
-
|
|
41745
|
-
|
|
41746
|
-
|
|
41747
|
-
|
|
41748
|
-
|
|
41749
|
-
|
|
41738
|
+
const rules = computed(() => {
|
|
41739
|
+
return {
|
|
41740
|
+
userPwd: [
|
|
41741
|
+
{
|
|
41742
|
+
required: true,
|
|
41743
|
+
message: t2("uc_org.user_pwd1_msg1")
|
|
41744
|
+
}
|
|
41745
|
+
],
|
|
41746
|
+
userPwd1: [
|
|
41747
|
+
{
|
|
41748
|
+
required: true,
|
|
41749
|
+
validator: (rule, value) => {
|
|
41750
|
+
if (!value) {
|
|
41751
|
+
return Promise.reject(requiredMessage(t2("uc_org.newPwd1")));
|
|
41752
|
+
}
|
|
41753
|
+
if (value == form.userPwd) {
|
|
41754
|
+
return Promise.resolve();
|
|
41755
|
+
} else {
|
|
41756
|
+
return Promise.reject(t2("uc_org.user_pwd2_msg1"));
|
|
41757
|
+
}
|
|
41750
41758
|
}
|
|
41751
41759
|
}
|
|
41752
|
-
|
|
41753
|
-
|
|
41754
|
-
};
|
|
41760
|
+
]
|
|
41761
|
+
};
|
|
41762
|
+
});
|
|
41755
41763
|
return (_ctx, _cache) => {
|
|
41756
41764
|
const _component_a_input = Input;
|
|
41757
41765
|
const _component_a_form_item = FormItem;
|
|
@@ -41795,7 +41803,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
41795
41803
|
model: form,
|
|
41796
41804
|
ref_key: "formRef",
|
|
41797
41805
|
ref: formRef,
|
|
41798
|
-
rules,
|
|
41806
|
+
rules: rules.value,
|
|
41799
41807
|
class: "clear-formctrl-lh rwd-content",
|
|
41800
41808
|
layout: "vertical"
|
|
41801
41809
|
}, {
|
|
@@ -41837,7 +41845,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
41837
41845
|
}, 16, ["label"])
|
|
41838
41846
|
]),
|
|
41839
41847
|
_: 1
|
|
41840
|
-
}, 8, ["model"])
|
|
41848
|
+
}, 8, ["model", "rules"])
|
|
41841
41849
|
]),
|
|
41842
41850
|
_: 1
|
|
41843
41851
|
}, 8, ["open", "title", "destroyOnClose"])
|
|
@@ -42432,80 +42440,82 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42432
42440
|
}
|
|
42433
42441
|
});
|
|
42434
42442
|
};
|
|
42435
|
-
const rules = {
|
|
42436
|
-
|
|
42437
|
-
|
|
42438
|
-
|
|
42439
|
-
|
|
42440
|
-
|
|
42441
|
-
|
|
42442
|
-
|
|
42443
|
-
|
|
42444
|
-
|
|
42445
|
-
|
|
42446
|
-
|
|
42447
|
-
|
|
42448
|
-
|
|
42449
|
-
|
|
42450
|
-
|
|
42443
|
+
const rules = computed(() => {
|
|
42444
|
+
return {
|
|
42445
|
+
orgName: [
|
|
42446
|
+
{
|
|
42447
|
+
required: true,
|
|
42448
|
+
message: t2("uc_org.org_name_msg1")
|
|
42449
|
+
}
|
|
42450
|
+
],
|
|
42451
|
+
orgType: [
|
|
42452
|
+
{
|
|
42453
|
+
required: true,
|
|
42454
|
+
trigger: "change",
|
|
42455
|
+
validator: (rule, value) => {
|
|
42456
|
+
if (Array.isArray(value) && value.length !== 0) {
|
|
42457
|
+
return Promise.resolve();
|
|
42458
|
+
} else {
|
|
42459
|
+
return Promise.reject(t2("uc_org.org_type_msg1"));
|
|
42460
|
+
}
|
|
42451
42461
|
}
|
|
42452
42462
|
}
|
|
42453
|
-
|
|
42454
|
-
|
|
42455
|
-
|
|
42456
|
-
|
|
42457
|
-
|
|
42458
|
-
|
|
42459
|
-
|
|
42460
|
-
|
|
42461
|
-
|
|
42462
|
-
|
|
42463
|
-
|
|
42463
|
+
],
|
|
42464
|
+
industryCode: [
|
|
42465
|
+
{
|
|
42466
|
+
required: true,
|
|
42467
|
+
trigger: "change",
|
|
42468
|
+
validator: (rule, value) => {
|
|
42469
|
+
if (Array.isArray(value) && value.length !== 0) {
|
|
42470
|
+
return Promise.resolve();
|
|
42471
|
+
} else {
|
|
42472
|
+
return Promise.reject(t2("uc_org.industry_msg1"));
|
|
42473
|
+
}
|
|
42464
42474
|
}
|
|
42465
42475
|
}
|
|
42466
|
-
|
|
42467
|
-
|
|
42468
|
-
|
|
42469
|
-
|
|
42470
|
-
|
|
42471
|
-
|
|
42472
|
-
|
|
42473
|
-
|
|
42474
|
-
|
|
42475
|
-
|
|
42476
|
-
|
|
42476
|
+
],
|
|
42477
|
+
zoneCode: [
|
|
42478
|
+
{
|
|
42479
|
+
required: true,
|
|
42480
|
+
trigger: ["change", "blur"],
|
|
42481
|
+
validator: (rule, value) => {
|
|
42482
|
+
if (value == "") {
|
|
42483
|
+
return Promise.reject(t2("uc_org.zone_code_msg1"));
|
|
42484
|
+
} else {
|
|
42485
|
+
return Promise.resolve();
|
|
42486
|
+
}
|
|
42477
42487
|
}
|
|
42478
42488
|
}
|
|
42479
|
-
|
|
42480
|
-
|
|
42481
|
-
|
|
42482
|
-
|
|
42483
|
-
|
|
42484
|
-
|
|
42485
|
-
|
|
42486
|
-
|
|
42487
|
-
|
|
42488
|
-
|
|
42489
|
-
|
|
42489
|
+
],
|
|
42490
|
+
langId: [
|
|
42491
|
+
{
|
|
42492
|
+
required: true,
|
|
42493
|
+
trigger: "change",
|
|
42494
|
+
validator: (rule, value) => {
|
|
42495
|
+
if (Array.isArray(value) && value.length !== 0) {
|
|
42496
|
+
return Promise.resolve();
|
|
42497
|
+
} else {
|
|
42498
|
+
return Promise.reject(t2("uc_org.lang_msg1"));
|
|
42499
|
+
}
|
|
42490
42500
|
}
|
|
42491
42501
|
}
|
|
42492
|
-
|
|
42493
|
-
|
|
42494
|
-
|
|
42495
|
-
|
|
42496
|
-
|
|
42497
|
-
|
|
42498
|
-
|
|
42499
|
-
|
|
42500
|
-
|
|
42501
|
-
|
|
42502
|
-
|
|
42503
|
-
|
|
42504
|
-
|
|
42505
|
-
|
|
42506
|
-
|
|
42507
|
-
|
|
42508
|
-
};
|
|
42502
|
+
],
|
|
42503
|
+
userNum: [
|
|
42504
|
+
{
|
|
42505
|
+
required: true,
|
|
42506
|
+
message: requiredMessage(t2("uc_org.user_num")),
|
|
42507
|
+
trigger: ["blur", "change"]
|
|
42508
|
+
}
|
|
42509
|
+
],
|
|
42510
|
+
equiNum: [
|
|
42511
|
+
{
|
|
42512
|
+
required: true,
|
|
42513
|
+
message: requiredMessage(t2("uc_org.org_maxOperator")),
|
|
42514
|
+
trigger: ["blur", "change"]
|
|
42515
|
+
}
|
|
42516
|
+
]
|
|
42517
|
+
};
|
|
42518
|
+
});
|
|
42509
42519
|
onMounted(() => {
|
|
42510
42520
|
initModel(props.params);
|
|
42511
42521
|
});
|
|
@@ -42525,7 +42535,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42525
42535
|
ref_key: "formRef",
|
|
42526
42536
|
ref: formRef,
|
|
42527
42537
|
layout: "vertical",
|
|
42528
|
-
rules
|
|
42538
|
+
rules: rules.value
|
|
42529
42539
|
}, {
|
|
42530
42540
|
default: withCtx(() => [
|
|
42531
42541
|
props.params.opType == "1" ? (openBlock(), createBlock(_component_a_form_item, {
|
|
@@ -42859,7 +42869,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42859
42869
|
})) : createCommentVNode("v-if", true)
|
|
42860
42870
|
]),
|
|
42861
42871
|
_: 1
|
|
42862
|
-
}, 8, ["model"])), [
|
|
42872
|
+
}, 8, ["model", "rules"])), [
|
|
42863
42873
|
[_directive_row, 24]
|
|
42864
42874
|
]),
|
|
42865
42875
|
createVNode(_component_a_space, { class: "drawer-btns" }, {
|