@witlink/usercenter 1.2.52 → 1.2.53
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 +77 -13
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -215,6 +215,7 @@ function handleResErr(error) {
|
|
|
215
215
|
description: "Authorization verification failed"
|
|
216
216
|
});
|
|
217
217
|
if (token) {
|
|
218
|
+
console.error("token is invalid");
|
|
218
219
|
storage.set(ACCESS_TOKEN, "");
|
|
219
220
|
}
|
|
220
221
|
}
|
|
@@ -4900,6 +4901,7 @@ function getI18n$b(key, args) {
|
|
|
4900
4901
|
}
|
|
4901
4902
|
if (!checkInstall) {
|
|
4902
4903
|
if (!langMaps[language]) {
|
|
4904
|
+
console.error(`[vxe core] \u8BED\u8A00\u5305\u672A\u5B89\u88C5\u3002Language not installed. https://${VxeCore.uiVersion ? "vxeui.com" : "vxetable.cn"}/#/start/i18n`);
|
|
4903
4905
|
}
|
|
4904
4906
|
checkInstall = true;
|
|
4905
4907
|
}
|
|
@@ -4936,6 +4938,7 @@ function getLanguage() {
|
|
|
4936
4938
|
function createLog(type, name) {
|
|
4937
4939
|
return function(key, args) {
|
|
4938
4940
|
const msg = `[vxe ${name || ""}] ${getI18n$b(key, args)}`;
|
|
4941
|
+
console[type](msg);
|
|
4939
4942
|
return msg;
|
|
4940
4943
|
};
|
|
4941
4944
|
}
|
|
@@ -32790,7 +32793,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32790
32793
|
options.value = res.result.map((item) => ({
|
|
32791
32794
|
value: item.name,
|
|
32792
32795
|
label: item.name,
|
|
32793
|
-
id: item.id
|
|
32796
|
+
id: item.id,
|
|
32797
|
+
key: item.id
|
|
32794
32798
|
}));
|
|
32795
32799
|
} else {
|
|
32796
32800
|
options.value = [];
|
|
@@ -32812,6 +32816,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32812
32816
|
return getRegionListAsync(params).then((res) => {
|
|
32813
32817
|
if (res.code === 0) {
|
|
32814
32818
|
const childs = res.result.list;
|
|
32819
|
+
console.log("selfId", selfId.value, queryParam.value.id);
|
|
32815
32820
|
if (queryParam.value.id && queryParam.value.id === selfId.value) {
|
|
32816
32821
|
childs.push({
|
|
32817
32822
|
id: parentRow.id + "_loadMore_" + (j - 1),
|
|
@@ -32847,12 +32852,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32847
32852
|
}
|
|
32848
32853
|
});
|
|
32849
32854
|
const showMore = async (record) => {
|
|
32855
|
+
console.log("showMore", record);
|
|
32850
32856
|
const parentRow = tableRef.value.getRowById(record.parentId);
|
|
32857
|
+
console.log("parentRow", parentRow);
|
|
32851
32858
|
const recordIdStr = record.id.toString();
|
|
32852
32859
|
const childs = await fetchChildListApi(
|
|
32853
32860
|
parentRow,
|
|
32854
32861
|
parseInt(recordIdStr.split("_loadMore_")[1]) + 1
|
|
32855
32862
|
);
|
|
32863
|
+
console.log("childs", childs);
|
|
32864
|
+
console.log(childs, parentRow, record);
|
|
32856
32865
|
if (queryParam.value.id) {
|
|
32857
32866
|
for (let i = 0; i < childs.length; i++) {
|
|
32858
32867
|
if (childs[i].id === queryParam.value.id) {
|
|
@@ -32880,6 +32889,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32880
32889
|
showIF.value = false;
|
|
32881
32890
|
await nextTick();
|
|
32882
32891
|
showIF.value = true;
|
|
32892
|
+
console.log("queryById", queryParam.value);
|
|
32883
32893
|
const params = {};
|
|
32884
32894
|
if (queryParam.value.id) {
|
|
32885
32895
|
params.id = queryParam.value.id;
|
|
@@ -32890,9 +32900,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32890
32900
|
arr.push(item.id);
|
|
32891
32901
|
});
|
|
32892
32902
|
hideButtonArr.value = arr.slice(0, -1);
|
|
32903
|
+
console.log("arr", arr);
|
|
32893
32904
|
for (let i = 0; i < arr.length - 1; i++) {
|
|
32894
32905
|
const row = tableRef.value.getRowById(arr[i]);
|
|
32906
|
+
console.log("row", row);
|
|
32895
32907
|
selfId.value = arr[i + 1] || null;
|
|
32908
|
+
console.log("selfId.value", selfId.value);
|
|
32896
32909
|
if (row) {
|
|
32897
32910
|
await tableRef.value.setTreeExpand([row], true);
|
|
32898
32911
|
}
|
|
@@ -32905,6 +32918,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32905
32918
|
}
|
|
32906
32919
|
}
|
|
32907
32920
|
const handleReset = () => {
|
|
32921
|
+
console.log("handleReset", tableData.value);
|
|
32908
32922
|
queryParam.value = {
|
|
32909
32923
|
name: "",
|
|
32910
32924
|
id: null
|
|
@@ -32987,18 +33001,23 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32987
33001
|
handleUpdateBranchType(record);
|
|
32988
33002
|
}
|
|
32989
33003
|
});
|
|
33004
|
+
console.log("record", record);
|
|
32990
33005
|
};
|
|
32991
33006
|
const onSubmit = async (actionType, form) => {
|
|
33007
|
+
console.log("onSubmit", actionType, form);
|
|
32992
33008
|
if (actionType === "update") {
|
|
32993
33009
|
activeEditRow.value.name = form.name;
|
|
32994
33010
|
tableRef.value.updateStatus(activeEditRow.value);
|
|
32995
33011
|
}
|
|
32996
33012
|
if (actionType === "add") {
|
|
32997
33013
|
if (queryParam.value.id) {
|
|
33014
|
+
console.log("queryParam id exist", queryParam.value.id);
|
|
32998
33015
|
queryById();
|
|
32999
33016
|
} else {
|
|
33017
|
+
console.log("activeEditRow.value.hasChild", activeEditRow.value.hasChild);
|
|
33000
33018
|
if (activeEditRow.value.hasChild) {
|
|
33001
33019
|
const treeExpandRecords = tableRef.value.getTreeExpandRecords();
|
|
33020
|
+
console.log("treeExpandRecords", treeExpandRecords);
|
|
33002
33021
|
await tableRef.value.clearTreeExpandLoaded(activeEditRow.value);
|
|
33003
33022
|
nextTick(() => {
|
|
33004
33023
|
tableRef.value.setTreeExpand(treeExpandRecords, true);
|
|
@@ -33048,12 +33067,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33048
33067
|
async onOk() {
|
|
33049
33068
|
setOrganDeleteBranch({ id: record.id }).then((res) => {
|
|
33050
33069
|
if (res == null ? void 0 : res.result) {
|
|
33051
|
-
|
|
33052
|
-
|
|
33053
|
-
|
|
33054
|
-
|
|
33055
|
-
tableRef.value.
|
|
33056
|
-
|
|
33070
|
+
if (queryParam.value.id) {
|
|
33071
|
+
queryById();
|
|
33072
|
+
} else {
|
|
33073
|
+
const treeExpandRecords = tableRef.value.getTreeExpandRecords();
|
|
33074
|
+
const parentRow = tableRef.value.getRowById(record.parentId);
|
|
33075
|
+
tableRef.value.clearTreeExpandLoaded(parentRow);
|
|
33076
|
+
nextTick(() => {
|
|
33077
|
+
tableRef.value.setTreeExpand(treeExpandRecords, true);
|
|
33078
|
+
});
|
|
33079
|
+
}
|
|
33057
33080
|
message.success(
|
|
33058
33081
|
`${record.name} ${t2("uc_organ.del_successtip")}`,
|
|
33059
33082
|
5
|
|
@@ -33253,7 +33276,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33253
33276
|
]),
|
|
33254
33277
|
_: 1
|
|
33255
33278
|
}, 8, ["onClick"]), [
|
|
33256
|
-
[
|
|
33279
|
+
[
|
|
33280
|
+
vShow,
|
|
33281
|
+
(row.type == 2 || row.type == 3) && addShow.value && !hideButtonArr.value.includes(row.id)
|
|
33282
|
+
]
|
|
33257
33283
|
]),
|
|
33258
33284
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
33259
33285
|
[
|
|
@@ -34916,6 +34942,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
34916
34942
|
formData.roleId = formData.roleId[0];
|
|
34917
34943
|
formData.roleIdOthers = formData.roleIdOthers.join(",");
|
|
34918
34944
|
formData.branchId = formData.branchId.length ? formData.branchId[formData.branchId.length - 1] : "";
|
|
34945
|
+
console.log("form", form, formData);
|
|
34919
34946
|
if (props.params.opType == "2") {
|
|
34920
34947
|
const res = await setUserUpdate(formData);
|
|
34921
34948
|
if (res.result) {
|
|
@@ -34940,9 +34967,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
34940
34967
|
}
|
|
34941
34968
|
};
|
|
34942
34969
|
const rolesList = computed(() => {
|
|
34943
|
-
var _a;
|
|
34970
|
+
var _a, _b;
|
|
34971
|
+
console.log("rolesList", roles.value);
|
|
34944
34972
|
if (props.params.roleId || roleId.value) {
|
|
34945
|
-
|
|
34973
|
+
console.log(
|
|
34974
|
+
"rolesList",
|
|
34975
|
+
(_a = roles.value) == null ? void 0 : _a.filter((item) => item.value != roleId.value)
|
|
34976
|
+
);
|
|
34977
|
+
return ((_b = roles.value) == null ? void 0 : _b.filter((item) => item.value != roleId.value)) || [];
|
|
34946
34978
|
}
|
|
34947
34979
|
return roles.value || [];
|
|
34948
34980
|
});
|
|
@@ -34991,13 +35023,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
34991
35023
|
]);
|
|
34992
35024
|
};
|
|
34993
35025
|
onMounted(async () => {
|
|
35026
|
+
console.log("props??", props);
|
|
34994
35027
|
const { result } = await getRolePublicTimezone({});
|
|
35028
|
+
console.log("result", result);
|
|
34995
35029
|
roles.value = Object.keys(result).map((key) => {
|
|
34996
35030
|
return {
|
|
34997
35031
|
label: result[key],
|
|
34998
35032
|
value: key
|
|
34999
35033
|
};
|
|
35000
35034
|
});
|
|
35035
|
+
console.log("roles", roles, "rolesLisyt", rolesList);
|
|
35001
35036
|
roleId.value = props.params.roleId;
|
|
35002
35037
|
initModel(props.params);
|
|
35003
35038
|
});
|
|
@@ -37076,7 +37111,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
37076
37111
|
};
|
|
37077
37112
|
watchEffect(async () => {
|
|
37078
37113
|
if (props) {
|
|
37114
|
+
console.log("props", props);
|
|
37079
37115
|
const { result } = await getUserDetail({ userId: props == null ? void 0 : props.data.userId });
|
|
37116
|
+
console.log("result", result);
|
|
37080
37117
|
info.value.attrRoleName = result.roleIdOthers || "-";
|
|
37081
37118
|
info.value.telephone = result.mobile || "-";
|
|
37082
37119
|
info.value.email = result.email || "-";
|
|
@@ -37352,6 +37389,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37352
37389
|
message.success(t2("uc_user.updateUserSucc"));
|
|
37353
37390
|
}
|
|
37354
37391
|
} catch (error) {
|
|
37392
|
+
console.log("error", error);
|
|
37355
37393
|
} finally {
|
|
37356
37394
|
modalStore.drawerDestroy();
|
|
37357
37395
|
tableRef.value && tableRef.value.refresh();
|
|
@@ -37379,6 +37417,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
37379
37417
|
message.success(t2("uc_user.updateUserSucc"));
|
|
37380
37418
|
}
|
|
37381
37419
|
} catch (error) {
|
|
37420
|
+
console.log("error", error);
|
|
37382
37421
|
} finally {
|
|
37383
37422
|
modalStore.drawerDestroy();
|
|
37384
37423
|
tableRef.value && tableRef.value.refresh();
|
|
@@ -37657,6 +37696,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37657
37696
|
loading.value = false;
|
|
37658
37697
|
};
|
|
37659
37698
|
const showModal = (data2) => {
|
|
37699
|
+
console.log("shjowM");
|
|
37660
37700
|
Object.assign(form, {
|
|
37661
37701
|
userName: "",
|
|
37662
37702
|
oldPwd: "",
|
|
@@ -37669,9 +37709,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37669
37709
|
userCode: ""
|
|
37670
37710
|
});
|
|
37671
37711
|
Object.assign(params, data2);
|
|
37672
|
-
if (data2.opType == "2")
|
|
37673
|
-
;
|
|
37674
|
-
else {
|
|
37712
|
+
if (data2.opType == "2") {
|
|
37713
|
+
console.log("\u8FD9\u91CC\u70B9\u51FB\u4E86\u4FEE\u6539\u624B\u673A\u53F7");
|
|
37714
|
+
} else {
|
|
37675
37715
|
initData1();
|
|
37676
37716
|
}
|
|
37677
37717
|
visible.value = true;
|
|
@@ -37687,6 +37727,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37687
37727
|
formRef.value.validate().then(async () => {
|
|
37688
37728
|
loading.value = true;
|
|
37689
37729
|
let res = null;
|
|
37730
|
+
console.log("modela");
|
|
37690
37731
|
if (params.opType == "1") {
|
|
37691
37732
|
res = await setUpdateUserName({ userName: form.userName });
|
|
37692
37733
|
if ((res == null ? void 0 : res.code) == 0) {
|
|
@@ -37712,6 +37753,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37712
37753
|
method: "post",
|
|
37713
37754
|
params: data.value
|
|
37714
37755
|
}).then((res2) => {
|
|
37756
|
+
console.log("res", res2);
|
|
37715
37757
|
loading.value = false;
|
|
37716
37758
|
if (res2.code == 0) {
|
|
37717
37759
|
emit("ok");
|
|
@@ -37817,6 +37859,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37817
37859
|
return;
|
|
37818
37860
|
}
|
|
37819
37861
|
if (btnClass.value === "sendBtn") {
|
|
37862
|
+
console.log("sendBtn");
|
|
37820
37863
|
change.value = false;
|
|
37821
37864
|
btnClass.value = "disabled";
|
|
37822
37865
|
let seconds = 60;
|
|
@@ -37836,11 +37879,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37836
37879
|
email: form.email
|
|
37837
37880
|
}
|
|
37838
37881
|
}).then((result) => {
|
|
37882
|
+
if (result) {
|
|
37883
|
+
console.log(result);
|
|
37884
|
+
}
|
|
37839
37885
|
});
|
|
37840
37886
|
}
|
|
37841
37887
|
}
|
|
37842
37888
|
};
|
|
37843
37889
|
onMounted(() => {
|
|
37890
|
+
console.log("rpops", params);
|
|
37844
37891
|
return () => {
|
|
37845
37892
|
};
|
|
37846
37893
|
});
|
|
@@ -39465,6 +39512,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
39465
39512
|
const initData = async () => {
|
|
39466
39513
|
const { result } = await getUserInfoSearchBase({});
|
|
39467
39514
|
const res = await getUserInfoAll();
|
|
39515
|
+
console.log("res", res);
|
|
39468
39516
|
Object.assign(form, result, {
|
|
39469
39517
|
sex: [result.sex]
|
|
39470
39518
|
});
|
|
@@ -39508,13 +39556,16 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
39508
39556
|
modalRef.value && modalRef.value.edit(option2);
|
|
39509
39557
|
};
|
|
39510
39558
|
const handleFinish = (values2) => {
|
|
39559
|
+
console.log(values2, formState);
|
|
39511
39560
|
};
|
|
39512
39561
|
const handleFinishFailed = (errors) => {
|
|
39562
|
+
console.log(errors);
|
|
39513
39563
|
};
|
|
39514
39564
|
const resetForm = () => {
|
|
39515
39565
|
formRef.value.resetFields();
|
|
39516
39566
|
};
|
|
39517
39567
|
const handleValidate = (...args) => {
|
|
39568
|
+
console.log(args);
|
|
39518
39569
|
};
|
|
39519
39570
|
const submitPwd = () => {
|
|
39520
39571
|
formRef.value && formRef.value.validate().then(() => {
|
|
@@ -39526,13 +39577,16 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
39526
39577
|
data.value.newPwd = hash.sha256().update(formState.newPwd).digest("hex");
|
|
39527
39578
|
data.value.pwdStrength = pwdStrength.value;
|
|
39528
39579
|
delete data.value.userPwd1;
|
|
39580
|
+
console.log("data", data);
|
|
39529
39581
|
handleRespPost({
|
|
39530
39582
|
url: "/api/sys/userinfo/update-pwd",
|
|
39531
39583
|
method: "post",
|
|
39532
39584
|
params: data.value
|
|
39533
39585
|
}).then((res) => {
|
|
39534
39586
|
loading.value = false;
|
|
39587
|
+
console.log("ok", res);
|
|
39535
39588
|
if (res.code == 0) {
|
|
39589
|
+
console.log("ok", res);
|
|
39536
39590
|
Object.assign(formState, {
|
|
39537
39591
|
oldPwd: "",
|
|
39538
39592
|
newPwd: "",
|
|
@@ -42092,6 +42146,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42092
42146
|
orgId: props.params.orgId
|
|
42093
42147
|
});
|
|
42094
42148
|
loading.value = false;
|
|
42149
|
+
console.log("\u70ED\u997F\u6C34\u6C34\u6C34\u6C34", result);
|
|
42095
42150
|
Object.assign(defaultForm, result, {
|
|
42096
42151
|
mobile: result.sysUser.mobile,
|
|
42097
42152
|
email: result.sysUser.email,
|
|
@@ -42132,6 +42187,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42132
42187
|
const onSubmit = () => {
|
|
42133
42188
|
formRef.value && formRef.value.validate().then(async () => {
|
|
42134
42189
|
var _a;
|
|
42190
|
+
console.log("pppprops", props);
|
|
42135
42191
|
const paramsData = {
|
|
42136
42192
|
sysUser: {
|
|
42137
42193
|
mobile: form.mobile,
|
|
@@ -42962,6 +43018,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
42962
43018
|
orgId: ""
|
|
42963
43019
|
});
|
|
42964
43020
|
const loadData = async (parameter) => {
|
|
43021
|
+
console.log("loadData", parameter, queryParam);
|
|
42965
43022
|
const params = Object.assign(parameter, queryParam);
|
|
42966
43023
|
const { result } = await orgConditionalSeach(params);
|
|
42967
43024
|
return result;
|
|
@@ -43024,11 +43081,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
43024
43081
|
message.success("uc_org.updateOrgSucc");
|
|
43025
43082
|
}
|
|
43026
43083
|
} catch (error) {
|
|
43084
|
+
console.log("error", error);
|
|
43027
43085
|
} finally {
|
|
43028
43086
|
modalStore.drawerDestroy();
|
|
43029
43087
|
}
|
|
43030
43088
|
},
|
|
43031
43089
|
onCancel: () => {
|
|
43090
|
+
console.log("quxiao2");
|
|
43032
43091
|
modalStore.drawerDestroy();
|
|
43033
43092
|
},
|
|
43034
43093
|
params: { ...row, opType }
|
|
@@ -43045,6 +43104,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
43045
43104
|
showResetPwdModal.value = true;
|
|
43046
43105
|
};
|
|
43047
43106
|
const onDetail = (record = null) => {
|
|
43107
|
+
console.log("dianjiledetaik");
|
|
43048
43108
|
modalStore.drawerComp({
|
|
43049
43109
|
title: t2("uc_org.orgInfo"),
|
|
43050
43110
|
comp: OrgDetail,
|
|
@@ -43441,9 +43501,12 @@ const _sfc_main$b = {
|
|
|
43441
43501
|
Object.assign(securityForm, originalData);
|
|
43442
43502
|
break;
|
|
43443
43503
|
}
|
|
43504
|
+
console.log("securityForm", securityForm);
|
|
43444
43505
|
if (selectedKey.value[0].key == "security") {
|
|
43445
43506
|
formSecurity.value.validate().then(() => {
|
|
43507
|
+
console.log("values\u6821\u9A8C");
|
|
43446
43508
|
}).catch((error) => {
|
|
43509
|
+
console.log("error", error);
|
|
43447
43510
|
});
|
|
43448
43511
|
}
|
|
43449
43512
|
isEditing.value = false;
|
|
@@ -43465,6 +43528,7 @@ const _sfc_main$b = {
|
|
|
43465
43528
|
isEditing.value = false;
|
|
43466
43529
|
}
|
|
43467
43530
|
}).catch((error) => {
|
|
43531
|
+
console.log("error", error);
|
|
43468
43532
|
});
|
|
43469
43533
|
};
|
|
43470
43534
|
onMounted(async () => {
|