@witlink/usercenter 1.2.37 → 1.2.39
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 +41 -23
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
- package/version.md +4 -0
package/dist/usercenter.es.js
CHANGED
@@ -2086,7 +2086,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
2086
2086
|
type: params.type
|
2087
2087
|
});
|
2088
2088
|
loading.value = false;
|
2089
|
-
form.parentBranch = result;
|
2089
|
+
form.parentBranch = result.parentBranch;
|
2090
2090
|
};
|
2091
2091
|
const showModal = (data) => {
|
2092
2092
|
Object.assign(form, {
|
@@ -2587,23 +2587,29 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2587
2587
|
});
|
2588
2588
|
return tree;
|
2589
2589
|
}
|
2590
|
-
function findAllParentNodes(tree) {
|
2590
|
+
function findAllParentNodes(tree, maxDepth) {
|
2591
2591
|
const parentNodes = [];
|
2592
|
-
function traverse(node) {
|
2592
|
+
function traverse(node, currentDepth = 0) {
|
2593
2593
|
if (node.children && node.children.length > 0) {
|
2594
|
-
|
2595
|
-
|
2594
|
+
if (maxDepth === void 0 || currentDepth <= maxDepth) {
|
2595
|
+
parentNodes.push(node);
|
2596
|
+
}
|
2597
|
+
node.children.forEach((child) => traverse(child, currentDepth + 1));
|
2596
2598
|
}
|
2597
2599
|
}
|
2598
2600
|
tree.forEach((root) => traverse(root));
|
2599
2601
|
return parentNodes;
|
2600
2602
|
}
|
2601
|
-
const
|
2603
|
+
const initTree = async () => {
|
2602
2604
|
const { result } = await getOrganSearchList(queryParam);
|
2603
2605
|
tableData.value = buildTree(result);
|
2604
|
-
const allParent = findAllParentNodes(tableData.value);
|
2606
|
+
const allParent = findAllParentNodes(tableData.value, 0);
|
2605
2607
|
expandedRowKeys.value = (allParent == null ? void 0 : allParent.map((item) => item.id)) || [];
|
2606
2608
|
};
|
2609
|
+
const init2 = async () => {
|
2610
|
+
const { result } = await getOrganSearchList(queryParam);
|
2611
|
+
tableData.value = buildTree(result);
|
2612
|
+
};
|
2607
2613
|
const onSwich = (key) => {
|
2608
2614
|
size.value = key;
|
2609
2615
|
init2();
|
@@ -2746,7 +2752,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2746
2752
|
addShow.value = hasPermissionId("002");
|
2747
2753
|
editShow.value = hasPermissionId("003");
|
2748
2754
|
removeShow.value = hasPermissionId("004");
|
2749
|
-
|
2755
|
+
initTree();
|
2750
2756
|
});
|
2751
2757
|
return (_ctx, _cache) => {
|
2752
2758
|
const _component_a_input_search = InputSearch;
|
@@ -2873,7 +2879,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2873
2879
|
[vShow, (record.type == 2 || record.type == 3) && addShow.value]
|
2874
2880
|
]),
|
2875
2881
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
2876
|
-
[
|
2882
|
+
[
|
2883
|
+
vShow,
|
2884
|
+
record.type == 3 && removeShow.value && record.deleteStatus == 0
|
2885
|
+
]
|
2877
2886
|
]),
|
2878
2887
|
withDirectives(createVNode(_component_a_button, {
|
2879
2888
|
type: "link",
|
@@ -2885,7 +2894,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2885
2894
|
]),
|
2886
2895
|
_: 2
|
2887
2896
|
}, 1032, ["onClick"]), [
|
2888
|
-
[
|
2897
|
+
[
|
2898
|
+
vShow,
|
2899
|
+
record.type == 3 && removeShow.value && record.deleteStatus == 0
|
2900
|
+
]
|
2889
2901
|
]),
|
2890
2902
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
2891
2903
|
[vShow, record.type != 3 && record.type != 2]
|
@@ -2900,7 +2912,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2900
2912
|
default: withCtx(() => [
|
2901
2913
|
createVNode(_component_a_button, {
|
2902
2914
|
type: "link",
|
2903
|
-
style: { "padding": "0" },
|
2915
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
2904
2916
|
onClick: ($event) => setUnderlyingInstitution(record)
|
2905
2917
|
}, {
|
2906
2918
|
default: withCtx(() => [
|
@@ -2919,7 +2931,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2919
2931
|
default: withCtx(() => [
|
2920
2932
|
withDirectives(createVNode(_component_a_button, {
|
2921
2933
|
type: "link",
|
2922
|
-
style: { "padding": "0" },
|
2934
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
2923
2935
|
onClick: ($event) => onAdd(record)
|
2924
2936
|
}, {
|
2925
2937
|
default: withCtx(() => [
|
@@ -2940,7 +2952,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2940
2952
|
default: withCtx(() => [
|
2941
2953
|
withDirectives(createVNode(_component_a_button, {
|
2942
2954
|
type: "link",
|
2943
|
-
style: { "padding": "0" },
|
2955
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
2944
2956
|
onClick: ($event) => onAddDep(record)
|
2945
2957
|
}, {
|
2946
2958
|
default: withCtx(() => [
|
@@ -2961,7 +2973,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2961
2973
|
default: withCtx(() => [
|
2962
2974
|
withDirectives(createVNode(_component_a_button, {
|
2963
2975
|
type: "link",
|
2964
|
-
style: { "padding": "0" },
|
2976
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
2965
2977
|
onClick: ($event) => onDelete(record)
|
2966
2978
|
}, {
|
2967
2979
|
default: withCtx(() => [
|
@@ -2969,13 +2981,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2969
2981
|
]),
|
2970
2982
|
_: 2
|
2971
2983
|
}, 1032, ["onClick"]), [
|
2972
|
-
[vShow, removeShow.value]
|
2984
|
+
[vShow, removeShow.value && record.deleteStatus == 0]
|
2973
2985
|
])
|
2974
2986
|
]),
|
2975
2987
|
_: 2
|
2976
2988
|
}, 1024)
|
2977
2989
|
], 512), [
|
2978
|
-
[
|
2990
|
+
[
|
2991
|
+
vShow,
|
2992
|
+
record.type != 0 && removeShow.value && record.deleteStatus == 0
|
2993
|
+
]
|
2979
2994
|
])
|
2980
2995
|
]),
|
2981
2996
|
_: 2
|
@@ -3042,7 +3057,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3042
3057
|
_: 2
|
3043
3058
|
}, 1024),
|
3044
3059
|
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
3045
|
-
[
|
3060
|
+
[
|
3061
|
+
vShow,
|
3062
|
+
removeShow.value && record.type == 3 && record.deleteStatus == 0
|
3063
|
+
]
|
3046
3064
|
]),
|
3047
3065
|
createVNode(_component_a_tooltip, { placement: "top" }, {
|
3048
3066
|
title: withCtx(() => [
|
@@ -3060,7 +3078,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3060
3078
|
]),
|
3061
3079
|
_: 2
|
3062
3080
|
}, 1032, ["onClick"]), [
|
3063
|
-
[
|
3081
|
+
[
|
3082
|
+
vShow,
|
3083
|
+
removeShow.value && record.type == 3 && record.deleteStatus == 0
|
3084
|
+
]
|
3064
3085
|
])
|
3065
3086
|
]),
|
3066
3087
|
_: 2
|
@@ -4202,12 +4223,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4202
4223
|
}
|
4203
4224
|
};
|
4204
4225
|
const changeVisible = () => {
|
4205
|
-
isopen.value = false;
|
4206
4226
|
emit("click");
|
4207
4227
|
};
|
4208
4228
|
const focus = () => {
|
4209
4229
|
acascaderRef.value && acascaderRef.value.focus();
|
4210
|
-
isopen.value = true;
|
4211
4230
|
};
|
4212
4231
|
const autofocus = () => {
|
4213
4232
|
focusFlag.value = true;
|
@@ -4293,7 +4312,6 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4293
4312
|
key: 0,
|
4294
4313
|
ref_key: "acascaderRef",
|
4295
4314
|
ref: acascaderRef,
|
4296
|
-
open: isopen.value,
|
4297
4315
|
options: options.value,
|
4298
4316
|
loadData,
|
4299
4317
|
showSearch: true,
|
@@ -4311,7 +4329,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4311
4329
|
onChange,
|
4312
4330
|
onFocus: _cache[1] || (_cache[1] = () => isopen.value = true),
|
4313
4331
|
onBlur: _cache[2] || (_cache[2] = () => isopen.value = false)
|
4314
|
-
}, null, 8, ["
|
4332
|
+
}, null, 8, ["options", "value", "style", "placeholder", "disabled"])) : createCommentVNode("v-if", true),
|
4315
4333
|
__props.kind == "text" ? (openBlock(), createElementBlock("span", _hoisted_1$t, toDisplayString(getLabel(__props.value)), 1)) : createCommentVNode("v-if", true)
|
4316
4334
|
]);
|
4317
4335
|
};
|
@@ -12032,7 +12050,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
12032
12050
|
{
|
12033
12051
|
title: t("org.action"),
|
12034
12052
|
key: "action",
|
12035
|
-
width: "
|
12053
|
+
width: "140px",
|
12036
12054
|
fixed: "right"
|
12037
12055
|
}
|
12038
12056
|
]);
|