@witlink/usercenter 1.2.52 → 1.2.54
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 -25
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
- package/version.md +3 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -32790,7 +32790,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32790
32790
|
options.value = res.result.map((item) => ({
|
|
32791
32791
|
value: item.name,
|
|
32792
32792
|
label: item.name,
|
|
32793
|
-
id: item.id
|
|
32793
|
+
id: item.id,
|
|
32794
|
+
key: item.id
|
|
32794
32795
|
}));
|
|
32795
32796
|
} else {
|
|
32796
32797
|
options.value = [];
|
|
@@ -32905,12 +32906,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32905
32906
|
}
|
|
32906
32907
|
}
|
|
32907
32908
|
const handleReset = () => {
|
|
32908
|
-
queryParam.value = {
|
|
32909
|
-
name: "",
|
|
32910
|
-
id: null
|
|
32911
|
-
};
|
|
32912
|
-
hideButtonArr.value = [];
|
|
32913
|
-
init2();
|
|
32914
32909
|
};
|
|
32915
32910
|
const onSwich = (key) => {
|
|
32916
32911
|
size.value = key;
|
|
@@ -32998,11 +32993,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
32998
32993
|
queryById();
|
|
32999
32994
|
} else {
|
|
33000
32995
|
if (activeEditRow.value.hasChild) {
|
|
33001
|
-
|
|
33002
|
-
await tableRef.value.clearTreeExpandLoaded(activeEditRow.value);
|
|
33003
|
-
nextTick(() => {
|
|
33004
|
-
tableRef.value.setTreeExpand(treeExpandRecords, true);
|
|
33005
|
-
});
|
|
32996
|
+
addOrDeleRefresh(activeEditRow.value);
|
|
33006
32997
|
} else {
|
|
33007
32998
|
activeEditRow.value.hasChild = true;
|
|
33008
32999
|
activeEditRow.value.deleteStatus = "1";
|
|
@@ -33011,6 +33002,19 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33011
33002
|
}
|
|
33012
33003
|
}
|
|
33013
33004
|
};
|
|
33005
|
+
async function addOrDeleRefresh(row) {
|
|
33006
|
+
if (row.children && row.children.length > 11) {
|
|
33007
|
+
delete row.children;
|
|
33008
|
+
await tableRef.value.setTreeExpand(row, false);
|
|
33009
|
+
await tableRef.value.setTreeExpand(row, true);
|
|
33010
|
+
} else {
|
|
33011
|
+
const treeExpandRecords = tableRef.value.getTreeExpandRecords();
|
|
33012
|
+
await tableRef.value.clearTreeExpandLoaded(row);
|
|
33013
|
+
nextTick(() => {
|
|
33014
|
+
tableRef.value.setTreeExpand(treeExpandRecords, true);
|
|
33015
|
+
});
|
|
33016
|
+
}
|
|
33017
|
+
}
|
|
33014
33018
|
const onDelete = (record) => {
|
|
33015
33019
|
if (record.type == "3") {
|
|
33016
33020
|
Modal.confirm({
|
|
@@ -33024,12 +33028,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33024
33028
|
if (queryParam.value.id) {
|
|
33025
33029
|
queryById();
|
|
33026
33030
|
} else {
|
|
33027
|
-
const treeExpandRecords = tableRef.value.getTreeExpandRecords();
|
|
33028
33031
|
const parentRow = tableRef.value.getRowById(record.parentId);
|
|
33029
|
-
|
|
33030
|
-
nextTick(() => {
|
|
33031
|
-
tableRef.value.setTreeExpand(treeExpandRecords, true);
|
|
33032
|
-
});
|
|
33032
|
+
addOrDeleRefresh(parentRow);
|
|
33033
33033
|
}
|
|
33034
33034
|
message.success(
|
|
33035
33035
|
`${record.name} ${t2("uc_organ.del_successtip")}`,
|
|
@@ -33046,14 +33046,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33046
33046
|
content: t2("uc_organ.deleteTipInfo"),
|
|
33047
33047
|
okType: "danger",
|
|
33048
33048
|
async onOk() {
|
|
33049
|
-
setOrganDeleteBranch({ id: record.id }).then((res) => {
|
|
33049
|
+
setOrganDeleteBranch({ id: record.id }).then(async (res) => {
|
|
33050
33050
|
if (res == null ? void 0 : res.result) {
|
|
33051
|
-
|
|
33052
|
-
|
|
33053
|
-
|
|
33054
|
-
|
|
33055
|
-
|
|
33056
|
-
}
|
|
33051
|
+
if (queryParam.value.id) {
|
|
33052
|
+
queryById();
|
|
33053
|
+
} else {
|
|
33054
|
+
const parentRow = tableRef.value.getRowById(record.parentId);
|
|
33055
|
+
addOrDeleRefresh(parentRow);
|
|
33056
|
+
}
|
|
33057
33057
|
message.success(
|
|
33058
33058
|
`${record.name} ${t2("uc_organ.del_successtip")}`,
|
|
33059
33059
|
5
|
|
@@ -33253,7 +33253,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33253
33253
|
]),
|
|
33254
33254
|
_: 1
|
|
33255
33255
|
}, 8, ["onClick"]), [
|
|
33256
|
-
[
|
|
33256
|
+
[
|
|
33257
|
+
vShow,
|
|
33258
|
+
(row.type == 2 || row.type == 3) && addShow.value && !hideButtonArr.value.includes(row.id)
|
|
33259
|
+
]
|
|
33257
33260
|
]),
|
|
33258
33261
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
33259
33262
|
[
|
|
@@ -37836,6 +37839,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37836
37839
|
email: form.email
|
|
37837
37840
|
}
|
|
37838
37841
|
}).then((result) => {
|
|
37842
|
+
if (result) {
|
|
37843
|
+
message.success(t2("uc_profile.changeEmailSucc"));
|
|
37844
|
+
}
|
|
37839
37845
|
});
|
|
37840
37846
|
}
|
|
37841
37847
|
}
|
|
@@ -39533,6 +39539,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
39533
39539
|
}).then((res) => {
|
|
39534
39540
|
loading.value = false;
|
|
39535
39541
|
if (res.code == 0) {
|
|
39542
|
+
message.success(t2("uc_profile.editPasswordSucc"));
|
|
39536
39543
|
Object.assign(formState, {
|
|
39537
39544
|
oldPwd: "",
|
|
39538
39545
|
newPwd: "",
|