@witlink/usercenter 1.2.94 → 1.2.96
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 +289 -281
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import { useI18n } from "vue-i18n";
|
|
8
8
|
import { defineStore, createPinia } from "pinia";
|
|
9
9
|
import Axios from "axios";
|
|
10
|
-
import {
|
|
10
|
+
import { message, App, Drawer, Button, ConfigProvider, Modal as Modal$1, Checkbox as Checkbox$1, Divider as Divider$1, notification } from "ant-design-vue";
|
|
11
11
|
import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, createTextVNode, unref, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, watchEffect, normalizeStyle, createElementBlock, Fragment, renderList, normalizeClass, withDirectives, vShow, useSlots, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, useAttrs, withModifiers, mergeModels, useModel, createApp } from "vue";
|
|
12
12
|
import { getUserInfo as getUserInfo$2, hasPermission } from "@witlink/components/utils";
|
|
13
13
|
import en_US from "ant-design-vue/es/locale/en_US";
|
|
@@ -172,10 +172,7 @@ instance.interceptors.request.use(handleReqConfig, (err) => {
|
|
|
172
172
|
function handleResp(response) {
|
|
173
173
|
const result = response.data;
|
|
174
174
|
if (!(result instanceof Blob) && (!result || result.code === void 0)) {
|
|
175
|
-
|
|
176
|
-
message: "Error in return value",
|
|
177
|
-
description: "result: " + result
|
|
178
|
-
});
|
|
175
|
+
message.error("result: " + result);
|
|
179
176
|
} else {
|
|
180
177
|
const token = response.headers.refresh_token;
|
|
181
178
|
const exp = Number(response.headers.refresh_exp);
|
|
@@ -194,10 +191,7 @@ function handleResp(response) {
|
|
|
194
191
|
}
|
|
195
192
|
const { ignoreNotify = false } = response.config;
|
|
196
193
|
if (!ignoreNotify) {
|
|
197
|
-
|
|
198
|
-
message: "",
|
|
199
|
-
description
|
|
200
|
-
});
|
|
194
|
+
message.error(description);
|
|
201
195
|
}
|
|
202
196
|
}
|
|
203
197
|
result.result = null;
|
|
@@ -210,18 +204,17 @@ function handleResErr(error) {
|
|
|
210
204
|
const data = error.response.data;
|
|
211
205
|
const token = storage.get(ACCESS_TOKEN);
|
|
212
206
|
if (error.response.status === 403) {
|
|
213
|
-
|
|
207
|
+
message.error(data == null ? void 0 : data.message);
|
|
214
208
|
} else if (error.response.status === 401) {
|
|
215
|
-
|
|
216
|
-
message: "Unauthorized",
|
|
217
|
-
description: "Authorization verification failed"
|
|
218
|
-
});
|
|
209
|
+
message.error("Authorization verification failed");
|
|
219
210
|
if (token) {
|
|
220
211
|
storage.remove(ACCESS_TOKEN);
|
|
221
212
|
}
|
|
222
213
|
}
|
|
214
|
+
} else if (error.name !== "CanceledError") {
|
|
215
|
+
message.error(error == null ? void 0 : error.message);
|
|
223
216
|
} else {
|
|
224
|
-
|
|
217
|
+
message.error(error + "");
|
|
225
218
|
}
|
|
226
219
|
return Promise.reject(error);
|
|
227
220
|
}
|
|
@@ -39643,6 +39636,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
39643
39636
|
name: "",
|
|
39644
39637
|
id: null
|
|
39645
39638
|
};
|
|
39639
|
+
selfId.value = null;
|
|
39646
39640
|
options.value = [];
|
|
39647
39641
|
hideButtonArr.value = [];
|
|
39648
39642
|
init2();
|
|
@@ -40014,289 +40008,299 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
40014
40008
|
title: _ctx.$t("uc_fun.action"),
|
|
40015
40009
|
width: "280"
|
|
40016
40010
|
}, {
|
|
40017
|
-
default: withCtx(({ row }) =>
|
|
40018
|
-
|
|
40019
|
-
|
|
40020
|
-
|
|
40021
|
-
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40011
|
+
default: withCtx(({ row }) => {
|
|
40012
|
+
var _a, _b;
|
|
40013
|
+
return [
|
|
40014
|
+
row.name !== _ctx.$t("uc_organ.loadMore") ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
40015
|
+
withDirectives(createElementVNode("div", null, [
|
|
40016
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40017
|
+
type: "link",
|
|
40018
|
+
style: { "padding": "0" },
|
|
40019
|
+
onClick: ($event) => onUpdate(row)
|
|
40020
|
+
}, {
|
|
40021
|
+
default: withCtx(() => [
|
|
40022
|
+
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._003")), 1)
|
|
40023
|
+
]),
|
|
40024
|
+
_: 1
|
|
40025
|
+
}, 8, ["onClick"]), [
|
|
40026
|
+
[vShow, editShow.value]
|
|
40027
40027
|
]),
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
|
|
40032
|
-
|
|
40033
|
-
[
|
|
40034
|
-
vShow,
|
|
40035
|
-
(row.type == 2 || row.type == 3) && addShow.value && editShow.value && !hideButtonArr.value.includes(row.id)
|
|
40036
|
-
]
|
|
40037
|
-
]),
|
|
40038
|
-
withDirectives(createVNode(_component_a_button, {
|
|
40039
|
-
type: "link",
|
|
40040
|
-
style: { "padding": "0" },
|
|
40041
|
-
onClick: ($event) => onAddDep(row)
|
|
40042
|
-
}, {
|
|
40043
|
-
default: withCtx(() => [
|
|
40044
|
-
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
|
|
40028
|
+
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40029
|
+
[
|
|
40030
|
+
vShow,
|
|
40031
|
+
(row.type == 2 || row.type == 3) && addShow.value && editShow.value && !hideButtonArr.value.includes(row.id)
|
|
40032
|
+
]
|
|
40045
40033
|
]),
|
|
40046
|
-
|
|
40047
|
-
|
|
40048
|
-
|
|
40049
|
-
|
|
40050
|
-
|
|
40051
|
-
|
|
40052
|
-
|
|
40053
|
-
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40054
|
-
[
|
|
40055
|
-
vShow,
|
|
40056
|
-
row.type == 3 && removeShow.value && row.status == 1 && row.deletable
|
|
40057
|
-
]
|
|
40058
|
-
]),
|
|
40059
|
-
withDirectives(createVNode(_component_a_button, {
|
|
40060
|
-
type: "link",
|
|
40061
|
-
style: { "padding": "0" },
|
|
40062
|
-
onClick: ($event) => onDelete(row)
|
|
40063
|
-
}, {
|
|
40064
|
-
default: withCtx(() => [
|
|
40065
|
-
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
|
|
40066
|
-
]),
|
|
40067
|
-
_: 1
|
|
40068
|
-
}, 8, ["onClick"]), [
|
|
40069
|
-
[
|
|
40070
|
-
vShow,
|
|
40071
|
-
row.type == 3 && removeShow.value && row.status == 1 && row.deletable
|
|
40072
|
-
]
|
|
40073
|
-
]),
|
|
40074
|
-
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40075
|
-
[vShow, showMoreOperation(row)]
|
|
40076
|
-
]),
|
|
40077
|
-
withDirectives(createElementVNode("span", null, [
|
|
40078
|
-
createVNode(_component_a_dropdown, null, {
|
|
40079
|
-
overlay: withCtx(() => [
|
|
40080
|
-
createVNode(_component_a_menu, null, {
|
|
40081
|
-
default: withCtx(() => [
|
|
40082
|
-
withDirectives(createElementVNode("div", null, [
|
|
40083
|
-
createVNode(_component_a_menu_item, { key: "1" }, {
|
|
40084
|
-
default: withCtx(() => [
|
|
40085
|
-
createVNode(_component_a_button, {
|
|
40086
|
-
type: "link",
|
|
40087
|
-
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40088
|
-
onClick: ($event) => setUnderlyingInstitution(row)
|
|
40089
|
-
}, {
|
|
40090
|
-
default: withCtx(() => [
|
|
40091
|
-
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add3")), 1)
|
|
40092
|
-
]),
|
|
40093
|
-
_: 1
|
|
40094
|
-
}, 8, ["onClick"])
|
|
40095
|
-
]),
|
|
40096
|
-
_: 2
|
|
40097
|
-
}, 1024)
|
|
40098
|
-
], 512), [
|
|
40099
|
-
[
|
|
40100
|
-
vShow,
|
|
40101
|
-
row.type == "1" && row.hasChild == false && addShow.value
|
|
40102
|
-
]
|
|
40103
|
-
]),
|
|
40104
|
-
withDirectives(createElementVNode("div", null, [
|
|
40105
|
-
createVNode(_component_a_menu_item, { key: "2" }, {
|
|
40106
|
-
default: withCtx(() => [
|
|
40107
|
-
withDirectives(createVNode(_component_a_button, {
|
|
40108
|
-
type: "link",
|
|
40109
|
-
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40110
|
-
onClick: ($event) => onAdd(row)
|
|
40111
|
-
}, {
|
|
40112
|
-
default: withCtx(() => [
|
|
40113
|
-
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add1")), 1)
|
|
40114
|
-
]),
|
|
40115
|
-
_: 1
|
|
40116
|
-
}, 8, ["onClick"]), [
|
|
40117
|
-
[vShow, addShow.value]
|
|
40118
|
-
])
|
|
40119
|
-
]),
|
|
40120
|
-
_: 2
|
|
40121
|
-
}, 1024)
|
|
40122
|
-
], 512), [
|
|
40123
|
-
[vShow, addShow.value]
|
|
40124
|
-
]),
|
|
40125
|
-
withDirectives(createElementVNode("div", null, [
|
|
40126
|
-
createVNode(_component_a_menu_item, { key: "3" }, {
|
|
40127
|
-
default: withCtx(() => [
|
|
40128
|
-
withDirectives(createVNode(_component_a_button, {
|
|
40129
|
-
type: "link",
|
|
40130
|
-
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40131
|
-
onClick: ($event) => onAddDep(row)
|
|
40132
|
-
}, {
|
|
40133
|
-
default: withCtx(() => [
|
|
40134
|
-
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
|
|
40135
|
-
]),
|
|
40136
|
-
_: 1
|
|
40137
|
-
}, 8, ["onClick"]), [
|
|
40138
|
-
[vShow, addShow.value]
|
|
40139
|
-
])
|
|
40140
|
-
]),
|
|
40141
|
-
_: 2
|
|
40142
|
-
}, 1024)
|
|
40143
|
-
], 512), [
|
|
40144
|
-
[vShow, false]
|
|
40145
|
-
]),
|
|
40146
|
-
withDirectives(createElementVNode("div", null, [
|
|
40147
|
-
createVNode(_component_a_menu_item, { key: "4" }, {
|
|
40148
|
-
default: withCtx(() => [
|
|
40149
|
-
withDirectives(createVNode(_component_a_button, {
|
|
40150
|
-
type: "link",
|
|
40151
|
-
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40152
|
-
onClick: ($event) => onDelete(row)
|
|
40153
|
-
}, {
|
|
40154
|
-
default: withCtx(() => [
|
|
40155
|
-
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
|
|
40156
|
-
]),
|
|
40157
|
-
_: 1
|
|
40158
|
-
}, 8, ["onClick"]), [
|
|
40159
|
-
[
|
|
40160
|
-
vShow,
|
|
40161
|
-
removeShow.value && row.status == 1 && row.deletable
|
|
40162
|
-
]
|
|
40163
|
-
])
|
|
40164
|
-
]),
|
|
40165
|
-
_: 2
|
|
40166
|
-
}, 1024)
|
|
40167
|
-
], 512), [
|
|
40168
|
-
[
|
|
40169
|
-
vShow,
|
|
40170
|
-
row.type != 0 && removeShow.value && row.status == 1 && row.deletable
|
|
40171
|
-
]
|
|
40172
|
-
])
|
|
40173
|
-
]),
|
|
40174
|
-
_: 2
|
|
40175
|
-
}, 1024)
|
|
40034
|
+
createCommentVNode(" \u533A\u57DF\u6700\u5927\u5C42\u7EA7\u4E3A5\u5C42 "),
|
|
40035
|
+
((_a = row.deptId) == null ? void 0 : _a.length) - ((_b = row.branchId) == null ? void 0 : _b.length) == 15 ? (openBlock(), createBlock(_component_a_tooltip, {
|
|
40036
|
+
key: 0,
|
|
40037
|
+
placement: "top"
|
|
40038
|
+
}, {
|
|
40039
|
+
title: withCtx(() => [
|
|
40040
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.maxDepTip")), 1)
|
|
40176
40041
|
]),
|
|
40177
40042
|
default: withCtx(() => [
|
|
40178
|
-
|
|
40179
|
-
|
|
40180
|
-
|
|
40043
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40044
|
+
type: "link",
|
|
40045
|
+
style: { "padding": "0" },
|
|
40046
|
+
onClick: ($event) => onAddDep(row),
|
|
40047
|
+
disabled: ""
|
|
40048
|
+
}, {
|
|
40049
|
+
default: withCtx(() => [
|
|
40050
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
|
|
40051
|
+
]),
|
|
40052
|
+
_: 1
|
|
40053
|
+
}, 8, ["onClick"]), [
|
|
40054
|
+
[
|
|
40055
|
+
vShow,
|
|
40056
|
+
(row.type == 2 || row.type == 3) && addShow.value && !hideButtonArr.value.includes(row.id)
|
|
40057
|
+
]
|
|
40181
40058
|
])
|
|
40182
40059
|
]),
|
|
40183
40060
|
_: 2
|
|
40184
|
-
}, 1024)
|
|
40185
|
-
|
|
40186
|
-
|
|
40187
|
-
|
|
40188
|
-
|
|
40189
|
-
|
|
40190
|
-
|
|
40191
|
-
|
|
40192
|
-
|
|
40193
|
-
|
|
40194
|
-
|
|
40195
|
-
|
|
40196
|
-
|
|
40197
|
-
|
|
40198
|
-
|
|
40199
|
-
style: { "padding": "0" },
|
|
40200
|
-
onClick: ($event) => onUpdate(row),
|
|
40201
|
-
disabled: ""
|
|
40202
|
-
}, {
|
|
40203
|
-
default: withCtx(() => [
|
|
40204
|
-
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._003")), 1)
|
|
40205
|
-
]),
|
|
40206
|
-
_: 1
|
|
40207
|
-
}, 8, ["onClick"]), [
|
|
40208
|
-
[vShow, editShow.value]
|
|
40209
|
-
])
|
|
40061
|
+
}, 1024)) : withDirectives((openBlock(), createBlock(_component_a_button, {
|
|
40062
|
+
key: 1,
|
|
40063
|
+
type: "link",
|
|
40064
|
+
style: { "padding": "0" },
|
|
40065
|
+
onClick: ($event) => onAddDep(row)
|
|
40066
|
+
}, {
|
|
40067
|
+
default: withCtx(() => [
|
|
40068
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
|
|
40069
|
+
]),
|
|
40070
|
+
_: 1
|
|
40071
|
+
}, 8, ["onClick"])), [
|
|
40072
|
+
[
|
|
40073
|
+
vShow,
|
|
40074
|
+
(row.type == 2 || row.type == 3) && addShow.value && !hideButtonArr.value.includes(row.id)
|
|
40075
|
+
]
|
|
40210
40076
|
]),
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
(row.type == 2 || row.type == 3) && addShow.value && editShow.value
|
|
40217
|
-
]
|
|
40218
|
-
]),
|
|
40219
|
-
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
40220
|
-
title: withCtx(() => [
|
|
40221
|
-
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
|
|
40077
|
+
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40078
|
+
[
|
|
40079
|
+
vShow,
|
|
40080
|
+
row.type == 3 && removeShow.value && row.status == 1 && row.deletable
|
|
40081
|
+
]
|
|
40222
40082
|
]),
|
|
40223
|
-
|
|
40224
|
-
|
|
40225
|
-
|
|
40226
|
-
|
|
40227
|
-
|
|
40228
|
-
|
|
40229
|
-
|
|
40230
|
-
|
|
40231
|
-
|
|
40232
|
-
|
|
40233
|
-
|
|
40234
|
-
|
|
40235
|
-
|
|
40236
|
-
]
|
|
40083
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40084
|
+
type: "link",
|
|
40085
|
+
style: { "padding": "0" },
|
|
40086
|
+
onClick: ($event) => onDelete(row)
|
|
40087
|
+
}, {
|
|
40088
|
+
default: withCtx(() => [
|
|
40089
|
+
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
|
|
40090
|
+
]),
|
|
40091
|
+
_: 1
|
|
40092
|
+
}, 8, ["onClick"]), [
|
|
40093
|
+
[
|
|
40094
|
+
vShow,
|
|
40095
|
+
row.type == 3 && removeShow.value && row.status == 1 && row.deletable
|
|
40096
|
+
]
|
|
40237
40097
|
]),
|
|
40238
|
-
|
|
40239
|
-
|
|
40240
|
-
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40241
|
-
[
|
|
40242
|
-
vShow,
|
|
40243
|
-
removeShow.value && row.type == 3 && row.status == 1 && row.deletable
|
|
40244
|
-
]
|
|
40245
|
-
]),
|
|
40246
|
-
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
40247
|
-
title: withCtx(() => [
|
|
40248
|
-
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
|
|
40098
|
+
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40099
|
+
[vShow, showMoreOperation(row)]
|
|
40249
40100
|
]),
|
|
40250
|
-
|
|
40251
|
-
|
|
40252
|
-
|
|
40253
|
-
|
|
40254
|
-
|
|
40255
|
-
|
|
40256
|
-
|
|
40101
|
+
withDirectives(createElementVNode("span", null, [
|
|
40102
|
+
createVNode(_component_a_dropdown, null, {
|
|
40103
|
+
overlay: withCtx(() => [
|
|
40104
|
+
createVNode(_component_a_menu, null, {
|
|
40105
|
+
default: withCtx(() => [
|
|
40106
|
+
withDirectives(createElementVNode("div", null, [
|
|
40107
|
+
createVNode(_component_a_menu_item, { key: "1" }, {
|
|
40108
|
+
default: withCtx(() => [
|
|
40109
|
+
createVNode(_component_a_button, {
|
|
40110
|
+
type: "link",
|
|
40111
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40112
|
+
onClick: ($event) => setUnderlyingInstitution(row)
|
|
40113
|
+
}, {
|
|
40114
|
+
default: withCtx(() => [
|
|
40115
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add3")), 1)
|
|
40116
|
+
]),
|
|
40117
|
+
_: 1
|
|
40118
|
+
}, 8, ["onClick"])
|
|
40119
|
+
]),
|
|
40120
|
+
_: 2
|
|
40121
|
+
}, 1024)
|
|
40122
|
+
], 512), [
|
|
40123
|
+
[
|
|
40124
|
+
vShow,
|
|
40125
|
+
row.type == "1" && row.hasChild == false && addShow.value
|
|
40126
|
+
]
|
|
40127
|
+
]),
|
|
40128
|
+
withDirectives(createElementVNode("div", null, [
|
|
40129
|
+
createVNode(_component_a_menu_item, { key: "2" }, {
|
|
40130
|
+
default: withCtx(() => [
|
|
40131
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40132
|
+
type: "link",
|
|
40133
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40134
|
+
onClick: ($event) => onAdd(row)
|
|
40135
|
+
}, {
|
|
40136
|
+
default: withCtx(() => [
|
|
40137
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add1")), 1)
|
|
40138
|
+
]),
|
|
40139
|
+
_: 1
|
|
40140
|
+
}, 8, ["onClick"]), [
|
|
40141
|
+
[vShow, addShow.value]
|
|
40142
|
+
])
|
|
40143
|
+
]),
|
|
40144
|
+
_: 2
|
|
40145
|
+
}, 1024)
|
|
40146
|
+
], 512), [
|
|
40147
|
+
[vShow, addShow.value]
|
|
40148
|
+
]),
|
|
40149
|
+
withDirectives(createElementVNode("div", null, [
|
|
40150
|
+
createVNode(_component_a_menu_item, { key: "4" }, {
|
|
40151
|
+
default: withCtx(() => [
|
|
40152
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40153
|
+
type: "link",
|
|
40154
|
+
style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
|
|
40155
|
+
onClick: ($event) => onDelete(row)
|
|
40156
|
+
}, {
|
|
40157
|
+
default: withCtx(() => [
|
|
40158
|
+
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
|
|
40159
|
+
]),
|
|
40160
|
+
_: 1
|
|
40161
|
+
}, 8, ["onClick"]), [
|
|
40162
|
+
[
|
|
40163
|
+
vShow,
|
|
40164
|
+
removeShow.value && row.status == 1 && row.deletable
|
|
40165
|
+
]
|
|
40166
|
+
])
|
|
40167
|
+
]),
|
|
40168
|
+
_: 2
|
|
40169
|
+
}, 1024)
|
|
40170
|
+
], 512), [
|
|
40171
|
+
[
|
|
40172
|
+
vShow,
|
|
40173
|
+
row.type != 0 && removeShow.value && row.status == 1 && row.deletable
|
|
40174
|
+
]
|
|
40175
|
+
])
|
|
40176
|
+
]),
|
|
40177
|
+
_: 2
|
|
40178
|
+
}, 1024)
|
|
40179
|
+
]),
|
|
40257
40180
|
default: withCtx(() => [
|
|
40258
|
-
|
|
40181
|
+
createElementVNode("a", _hoisted_7$3, [
|
|
40182
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.btn_more")) + " ", 1),
|
|
40183
|
+
createVNode(unref(DownOutlined))
|
|
40184
|
+
])
|
|
40259
40185
|
]),
|
|
40260
|
-
_:
|
|
40261
|
-
},
|
|
40262
|
-
|
|
40263
|
-
|
|
40264
|
-
|
|
40265
|
-
|
|
40266
|
-
|
|
40267
|
-
]),
|
|
40268
|
-
_: 2
|
|
40269
|
-
}, 1024),
|
|
40270
|
-
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40271
|
-
[vShow, row.type != 3 && row.type != 2]
|
|
40186
|
+
_: 2
|
|
40187
|
+
}, 1024)
|
|
40188
|
+
], 512), [
|
|
40189
|
+
[vShow, showMoreOperation(row)]
|
|
40190
|
+
])
|
|
40191
|
+
], 512), [
|
|
40192
|
+
[vShow, row.hasOperationPermissions]
|
|
40272
40193
|
]),
|
|
40273
|
-
|
|
40274
|
-
|
|
40275
|
-
|
|
40194
|
+
withDirectives(createElementVNode("div", null, [
|
|
40195
|
+
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
40196
|
+
title: withCtx(() => [
|
|
40197
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
|
|
40198
|
+
]),
|
|
40199
|
+
default: withCtx(() => [
|
|
40200
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40201
|
+
type: "link",
|
|
40202
|
+
style: { "padding": "0" },
|
|
40203
|
+
onClick: ($event) => onUpdate(row),
|
|
40204
|
+
disabled: ""
|
|
40205
|
+
}, {
|
|
40206
|
+
default: withCtx(() => [
|
|
40207
|
+
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._003")), 1)
|
|
40208
|
+
]),
|
|
40209
|
+
_: 1
|
|
40210
|
+
}, 8, ["onClick"]), [
|
|
40211
|
+
[vShow, editShow.value]
|
|
40212
|
+
])
|
|
40213
|
+
]),
|
|
40214
|
+
_: 2
|
|
40215
|
+
}, 1024),
|
|
40216
|
+
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40217
|
+
[
|
|
40218
|
+
vShow,
|
|
40219
|
+
(row.type == 2 || row.type == 3) && addShow.value && editShow.value
|
|
40220
|
+
]
|
|
40276
40221
|
]),
|
|
40277
|
-
|
|
40278
|
-
|
|
40279
|
-
|
|
40280
|
-
|
|
40222
|
+
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
40223
|
+
title: withCtx(() => [
|
|
40224
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
|
|
40225
|
+
]),
|
|
40226
|
+
default: withCtx(() => [
|
|
40227
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40228
|
+
type: "link",
|
|
40229
|
+
style: { "padding": "0" },
|
|
40230
|
+
onClick: ($event) => onAddDep(row),
|
|
40231
|
+
disabled: ""
|
|
40232
|
+
}, {
|
|
40281
40233
|
default: withCtx(() => [
|
|
40282
|
-
|
|
40283
|
-
createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
|
|
40284
|
-
createVNode(unref(DownOutlined))
|
|
40285
|
-
])
|
|
40234
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
|
|
40286
40235
|
]),
|
|
40287
40236
|
_: 1
|
|
40288
|
-
})
|
|
40289
|
-
|
|
40290
|
-
|
|
40291
|
-
])
|
|
40237
|
+
}, 8, ["onClick"]), [
|
|
40238
|
+
[vShow, (row.type == 2 || row.type == 3) && addShow.value]
|
|
40239
|
+
])
|
|
40240
|
+
]),
|
|
40241
|
+
_: 2
|
|
40242
|
+
}, 1024),
|
|
40243
|
+
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40244
|
+
[
|
|
40245
|
+
vShow,
|
|
40246
|
+
removeShow.value && row.type == 3 && row.status == 1 && row.deletable
|
|
40247
|
+
]
|
|
40292
40248
|
]),
|
|
40293
|
-
|
|
40294
|
-
|
|
40295
|
-
|
|
40296
|
-
|
|
40297
|
-
|
|
40298
|
-
|
|
40299
|
-
|
|
40249
|
+
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
40250
|
+
title: withCtx(() => [
|
|
40251
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
|
|
40252
|
+
]),
|
|
40253
|
+
default: withCtx(() => [
|
|
40254
|
+
withDirectives(createVNode(_component_a_button, {
|
|
40255
|
+
type: "link",
|
|
40256
|
+
style: { "padding": "0" },
|
|
40257
|
+
onClick: ($event) => onDelete(row),
|
|
40258
|
+
disabled: ""
|
|
40259
|
+
}, {
|
|
40260
|
+
default: withCtx(() => [
|
|
40261
|
+
createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
|
|
40262
|
+
]),
|
|
40263
|
+
_: 1
|
|
40264
|
+
}, 8, ["onClick"]), [
|
|
40265
|
+
[
|
|
40266
|
+
vShow,
|
|
40267
|
+
removeShow.value && row.type == 3 && row.status == 1 && row.deletable
|
|
40268
|
+
]
|
|
40269
|
+
])
|
|
40270
|
+
]),
|
|
40271
|
+
_: 2
|
|
40272
|
+
}, 1024),
|
|
40273
|
+
withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
|
|
40274
|
+
[vShow, row.type != 3 && row.type != 2]
|
|
40275
|
+
]),
|
|
40276
|
+
createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
40277
|
+
title: withCtx(() => [
|
|
40278
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
|
|
40279
|
+
]),
|
|
40280
|
+
default: withCtx(() => [
|
|
40281
|
+
withDirectives(createElementVNode("span", null, [
|
|
40282
|
+
createVNode(_component_a_dropdown, { disabled: "" }, {
|
|
40283
|
+
overlay: withCtx(() => [..._cache[1] || (_cache[1] = [])]),
|
|
40284
|
+
default: withCtx(() => [
|
|
40285
|
+
createElementVNode("a", _hoisted_8$3, [
|
|
40286
|
+
createTextVNode(toDisplayString(_ctx.$t("uc_organ.btn_more")) + " ", 1),
|
|
40287
|
+
createVNode(unref(DownOutlined))
|
|
40288
|
+
])
|
|
40289
|
+
]),
|
|
40290
|
+
_: 1
|
|
40291
|
+
})
|
|
40292
|
+
], 512), [
|
|
40293
|
+
[vShow, row.type != 3 && row.type != 2]
|
|
40294
|
+
])
|
|
40295
|
+
]),
|
|
40296
|
+
_: 2
|
|
40297
|
+
}, 1024)
|
|
40298
|
+
], 512), [
|
|
40299
|
+
[vShow, !row.hasOperationPermissions]
|
|
40300
|
+
])
|
|
40301
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
40302
|
+
];
|
|
40303
|
+
}),
|
|
40300
40304
|
_: 1
|
|
40301
40305
|
}, 8, ["title"])
|
|
40302
40306
|
]),
|
|
@@ -41460,7 +41464,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
41460
41464
|
class: normalizeClass(["category-item", { active: item.id === activeCategoryId.value }]),
|
|
41461
41465
|
key: item.id,
|
|
41462
41466
|
onClick: ($event) => handleCategoryClick(item)
|
|
41463
|
-
},
|
|
41467
|
+
}, [
|
|
41468
|
+
createVNode(TextEllipsis, {
|
|
41469
|
+
text: item.name
|
|
41470
|
+
}, null, 8, ["text"])
|
|
41471
|
+
], 10, _hoisted_17$2);
|
|
41464
41472
|
}), 128))
|
|
41465
41473
|
])
|
|
41466
41474
|
]),
|
|
@@ -47058,7 +47066,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
47058
47066
|
tokenExpireTime: 1440
|
|
47059
47067
|
});
|
|
47060
47068
|
const loginPolicyForm = reactive({
|
|
47061
|
-
ssoPolicy:
|
|
47069
|
+
ssoPolicy: 0,
|
|
47062
47070
|
multiClientPolicy: 1,
|
|
47063
47071
|
unitTime: 15,
|
|
47064
47072
|
maxLoginFailTimes: 5,
|