@witlink/usercenter 1.2.93 → 1.2.95

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.
@@ -1,4 +1,4 @@
1
- import './assets/main.47bc4a87.css';var __defProp = Object.defineProperty;
1
+ import './assets/main.f4a6fe3c.css';var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -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 { notification, App, Drawer, Button, ConfigProvider, message, Modal as Modal$1, Checkbox as Checkbox$1, Divider as Divider$1 } from "ant-design-vue";
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
- notification.error({
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
- notification.error({
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
- notification.error({ message: "Forbidden", description: data.message });
207
+ message.error(data == null ? void 0 : data.message);
214
208
  } else if (error.response.status === 401) {
215
- notification.error({
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
- notification.error({ message: "Unknow error", description: error + "" });
217
+ message.error(error + "");
225
218
  }
226
219
  return Promise.reject(error);
227
220
  }
@@ -37687,65 +37680,6 @@ if (VxeUI.dynamicApp) {
37687
37680
  }
37688
37681
  VxeUI.component(VxeColumnComponent);
37689
37682
  const style = "";
37690
- const getSysList = (params) => {
37691
- return handleRespPost({
37692
- url: "/api/system/search-list-all",
37693
- method: "get",
37694
- params
37695
- });
37696
- };
37697
- const getMenuList = (params) => {
37698
- return handleRespPost({
37699
- url: "/api/menu/search-list-tree",
37700
- method: "get",
37701
- params
37702
- });
37703
- };
37704
- function refreshSystemCache(params) {
37705
- return handleRespPost({
37706
- url: "/api/cache/delete-all",
37707
- method: "get",
37708
- params
37709
- });
37710
- }
37711
- function setFunctionsSwitch(params) {
37712
- return handleRespPost({
37713
- url: "/api/menu/switch",
37714
- method: "post",
37715
- data: params
37716
- });
37717
- }
37718
- function updateMenuTreeOrder(params) {
37719
- return handleRespPost({
37720
- url: "/api/menu/update-menu-tree",
37721
- method: "post",
37722
- data: params
37723
- });
37724
- }
37725
- function getMenuDetail(params) {
37726
- return handleRespPost({
37727
- url: "/api/menu/detail-with-buttons",
37728
- method: "get",
37729
- params
37730
- });
37731
- }
37732
- function importMenu(data) {
37733
- return handleRespPost({
37734
- url: "/api/menu/import",
37735
- method: "post",
37736
- data
37737
- });
37738
- }
37739
- function useRequiredMessage() {
37740
- const { t: t2 } = useI18n();
37741
- const userStore = useUserStore();
37742
- const requiredMessage = (labelKey) => {
37743
- const suffix = t2("uc_common.isRequired");
37744
- return userStore.userLanguage === "zh_CN" ? labelKey + suffix : labelKey + " " + suffix;
37745
- };
37746
- return { requiredMessage };
37747
- }
37748
- const AddMenu_vue_vue_type_style_index_0_scoped_1d0da3f2_lang = "";
37749
37683
  const dictCache = {};
37750
37684
  function useDict(type, opts = { immediate: true }) {
37751
37685
  const i18nRes = useI18n();
@@ -37883,6 +37817,55 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
37883
37817
  }
37884
37818
  });
37885
37819
  const DictLabel = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/DictLabel.vue"]]);
37820
+ const getSysList = (params) => {
37821
+ return handleRespPost({
37822
+ url: "/api/system/search-list-all",
37823
+ method: "get",
37824
+ params
37825
+ });
37826
+ };
37827
+ const getMenuList = (params) => {
37828
+ return handleRespPost({
37829
+ url: "/api/menu/search-list-tree",
37830
+ method: "get",
37831
+ params
37832
+ });
37833
+ };
37834
+ function refreshSystemCache(params) {
37835
+ return handleRespPost({
37836
+ url: "/api/cache/delete-all",
37837
+ method: "get",
37838
+ params
37839
+ });
37840
+ }
37841
+ function setFunctionsSwitch(params) {
37842
+ return handleRespPost({
37843
+ url: "/api/menu/switch",
37844
+ method: "post",
37845
+ data: params
37846
+ });
37847
+ }
37848
+ function updateMenuTreeOrder(params) {
37849
+ return handleRespPost({
37850
+ url: "/api/menu/update-menu-tree",
37851
+ method: "post",
37852
+ data: params
37853
+ });
37854
+ }
37855
+ function getMenuDetail(params) {
37856
+ return handleRespPost({
37857
+ url: "/api/menu/detail-with-buttons",
37858
+ method: "get",
37859
+ params
37860
+ });
37861
+ }
37862
+ function importMenu(data) {
37863
+ return handleRespPost({
37864
+ url: "/api/menu/import",
37865
+ method: "post",
37866
+ data
37867
+ });
37868
+ }
37886
37869
  const _hoisted_1$j = { class: "menu-detail" };
37887
37870
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
37888
37871
  __name: "MenuDetail",
@@ -37892,8 +37875,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
37892
37875
  default: null
37893
37876
  },
37894
37877
  systemId: {
37895
- type: Number,
37896
- default: 1
37878
+ type: String,
37879
+ default: ""
37897
37880
  }
37898
37881
  },
37899
37882
  emits: ["cancel"],
@@ -37992,7 +37975,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
37992
37975
  ]),
37993
37976
  _: 1
37994
37977
  }, 8, ["label"]),
37995
- __props.systemId == 2 ? (openBlock(), createBlock(_component_a_descriptions_item, {
37978
+ __props.systemId == "cis" ? (openBlock(), createBlock(_component_a_descriptions_item, {
37996
37979
  key: 0,
37997
37980
  span: 2,
37998
37981
  label: _ctx.$t("uc_fun.ucHelpLinkID")
@@ -38146,6 +38129,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38146
38129
  initUserInfo();
38147
38130
  const sysList = ref([]);
38148
38131
  const selectedSys = ref(null);
38132
+ const curRequestHeaderName = ref(null);
38149
38133
  const tableData = ref([]);
38150
38134
  const tableRef = ref(null);
38151
38135
  const dragRule = ({ dragRow, newRow, dragToChild }) => {
@@ -38224,6 +38208,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38224
38208
  };
38225
38209
  const handleSysClick = (item) => {
38226
38210
  selectedSys.value = item.systemId;
38211
+ curRequestHeaderName.value = item.requestHeaderName;
38227
38212
  initTable();
38228
38213
  };
38229
38214
  const handleRefreshLang = async () => {
@@ -38289,7 +38274,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38289
38274
  width: 672,
38290
38275
  props: {
38291
38276
  data: { id: row.id },
38292
- systemId: selectedSys.value,
38277
+ systemId: curRequestHeaderName.value,
38293
38278
  onCancel: () => {
38294
38279
  modalStore.drawerDestroy();
38295
38280
  }
@@ -39651,6 +39636,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39651
39636
  name: "",
39652
39637
  id: null
39653
39638
  };
39639
+ selfId.value = null;
39654
39640
  options.value = [];
39655
39641
  hideButtonArr.value = [];
39656
39642
  init2();
@@ -40022,289 +40008,299 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
40022
40008
  title: _ctx.$t("uc_fun.action"),
40023
40009
  width: "280"
40024
40010
  }, {
40025
- default: withCtx(({ row }) => [
40026
- row.name !== _ctx.$t("uc_organ.loadMore") ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
40027
- withDirectives(createElementVNode("div", null, [
40028
- withDirectives(createVNode(_component_a_button, {
40029
- type: "link",
40030
- style: { "padding": "0" },
40031
- onClick: ($event) => onUpdate(row)
40032
- }, {
40033
- default: withCtx(() => [
40034
- createTextVNode(toDisplayString(_ctx.$t("usercenter_button._003")), 1)
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]
40035
40027
  ]),
40036
- _: 1
40037
- }, 8, ["onClick"]), [
40038
- [vShow, editShow.value]
40039
- ]),
40040
- withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40041
- [
40042
- vShow,
40043
- (row.type == 2 || row.type == 3) && addShow.value && editShow.value && !hideButtonArr.value.includes(row.id)
40044
- ]
40045
- ]),
40046
- withDirectives(createVNode(_component_a_button, {
40047
- type: "link",
40048
- style: { "padding": "0" },
40049
- onClick: ($event) => onAddDep(row)
40050
- }, {
40051
- default: withCtx(() => [
40052
- 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
+ ]
40053
40033
  ]),
40054
- _: 1
40055
- }, 8, ["onClick"]), [
40056
- [
40057
- vShow,
40058
- (row.type == 2 || row.type == 3) && addShow.value && !hideButtonArr.value.includes(row.id)
40059
- ]
40060
- ]),
40061
- withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40062
- [
40063
- vShow,
40064
- row.type == 3 && removeShow.value && row.status == 1 && row.deletable
40065
- ]
40066
- ]),
40067
- withDirectives(createVNode(_component_a_button, {
40068
- type: "link",
40069
- style: { "padding": "0" },
40070
- onClick: ($event) => onDelete(row)
40071
- }, {
40072
- default: withCtx(() => [
40073
- createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
40074
- ]),
40075
- _: 1
40076
- }, 8, ["onClick"]), [
40077
- [
40078
- vShow,
40079
- row.type == 3 && removeShow.value && row.status == 1 && row.deletable
40080
- ]
40081
- ]),
40082
- withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40083
- [vShow, showMoreOperation(row)]
40084
- ]),
40085
- withDirectives(createElementVNode("span", null, [
40086
- createVNode(_component_a_dropdown, null, {
40087
- overlay: withCtx(() => [
40088
- createVNode(_component_a_menu, null, {
40089
- default: withCtx(() => [
40090
- withDirectives(createElementVNode("div", null, [
40091
- createVNode(_component_a_menu_item, { key: "1" }, {
40092
- default: withCtx(() => [
40093
- createVNode(_component_a_button, {
40094
- type: "link",
40095
- style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
40096
- onClick: ($event) => setUnderlyingInstitution(row)
40097
- }, {
40098
- default: withCtx(() => [
40099
- createTextVNode(toDisplayString(_ctx.$t("uc_organ.add3")), 1)
40100
- ]),
40101
- _: 1
40102
- }, 8, ["onClick"])
40103
- ]),
40104
- _: 2
40105
- }, 1024)
40106
- ], 512), [
40107
- [
40108
- vShow,
40109
- row.type == "1" && row.hasChild == false && addShow.value
40110
- ]
40111
- ]),
40112
- withDirectives(createElementVNode("div", null, [
40113
- createVNode(_component_a_menu_item, { key: "2" }, {
40114
- default: withCtx(() => [
40115
- withDirectives(createVNode(_component_a_button, {
40116
- type: "link",
40117
- style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
40118
- onClick: ($event) => onAdd(row)
40119
- }, {
40120
- default: withCtx(() => [
40121
- createTextVNode(toDisplayString(_ctx.$t("uc_organ.add1")), 1)
40122
- ]),
40123
- _: 1
40124
- }, 8, ["onClick"]), [
40125
- [vShow, addShow.value]
40126
- ])
40127
- ]),
40128
- _: 2
40129
- }, 1024)
40130
- ], 512), [
40131
- [vShow, addShow.value]
40132
- ]),
40133
- withDirectives(createElementVNode("div", null, [
40134
- createVNode(_component_a_menu_item, { key: "3" }, {
40135
- default: withCtx(() => [
40136
- withDirectives(createVNode(_component_a_button, {
40137
- type: "link",
40138
- style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
40139
- onClick: ($event) => onAddDep(row)
40140
- }, {
40141
- default: withCtx(() => [
40142
- createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
40143
- ]),
40144
- _: 1
40145
- }, 8, ["onClick"]), [
40146
- [vShow, addShow.value]
40147
- ])
40148
- ]),
40149
- _: 2
40150
- }, 1024)
40151
- ], 512), [
40152
- [vShow, false]
40153
- ]),
40154
- withDirectives(createElementVNode("div", null, [
40155
- createVNode(_component_a_menu_item, { key: "4" }, {
40156
- default: withCtx(() => [
40157
- withDirectives(createVNode(_component_a_button, {
40158
- type: "link",
40159
- style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
40160
- onClick: ($event) => onDelete(row)
40161
- }, {
40162
- default: withCtx(() => [
40163
- createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
40164
- ]),
40165
- _: 1
40166
- }, 8, ["onClick"]), [
40167
- [
40168
- vShow,
40169
- removeShow.value && row.status == 1 && row.deletable
40170
- ]
40171
- ])
40172
- ]),
40173
- _: 2
40174
- }, 1024)
40175
- ], 512), [
40176
- [
40177
- vShow,
40178
- row.type != 0 && removeShow.value && row.status == 1 && row.deletable
40179
- ]
40180
- ])
40181
- ]),
40182
- _: 2
40183
- }, 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)
40184
40041
  ]),
40185
40042
  default: withCtx(() => [
40186
- createElementVNode("a", _hoisted_7$3, [
40187
- createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
40188
- createVNode(unref(DownOutlined))
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
+ ]
40189
40058
  ])
40190
40059
  ]),
40191
40060
  _: 2
40192
- }, 1024)
40193
- ], 512), [
40194
- [vShow, showMoreOperation(row)]
40195
- ])
40196
- ], 512), [
40197
- [vShow, row.hasOperationPermissions]
40198
- ]),
40199
- withDirectives(createElementVNode("div", null, [
40200
- createVNode(_component_a_tooltip, { placement: "top" }, {
40201
- title: withCtx(() => [
40202
- createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
40203
- ]),
40204
- default: withCtx(() => [
40205
- withDirectives(createVNode(_component_a_button, {
40206
- type: "link",
40207
- style: { "padding": "0" },
40208
- onClick: ($event) => onUpdate(row),
40209
- disabled: ""
40210
- }, {
40211
- default: withCtx(() => [
40212
- createTextVNode(toDisplayString(_ctx.$t("usercenter_button._003")), 1)
40213
- ]),
40214
- _: 1
40215
- }, 8, ["onClick"]), [
40216
- [vShow, editShow.value]
40217
- ])
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
+ ]
40218
40076
  ]),
40219
- _: 2
40220
- }, 1024),
40221
- withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40222
- [
40223
- vShow,
40224
- (row.type == 2 || row.type == 3) && addShow.value && editShow.value
40225
- ]
40226
- ]),
40227
- createVNode(_component_a_tooltip, { placement: "top" }, {
40228
- title: withCtx(() => [
40229
- 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
+ ]
40230
40082
  ]),
40231
- default: withCtx(() => [
40232
- withDirectives(createVNode(_component_a_button, {
40233
- type: "link",
40234
- style: { "padding": "0" },
40235
- onClick: ($event) => onAddDep(row),
40236
- disabled: ""
40237
- }, {
40238
- default: withCtx(() => [
40239
- createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
40240
- ]),
40241
- _: 1
40242
- }, 8, ["onClick"]), [
40243
- [vShow, (row.type == 2 || row.type == 3) && addShow.value]
40244
- ])
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
+ ]
40245
40097
  ]),
40246
- _: 2
40247
- }, 1024),
40248
- withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40249
- [
40250
- vShow,
40251
- removeShow.value && row.type == 3 && row.status == 1 && row.deletable
40252
- ]
40253
- ]),
40254
- createVNode(_component_a_tooltip, { placement: "top" }, {
40255
- title: withCtx(() => [
40256
- createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
40098
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40099
+ [vShow, showMoreOperation(row)]
40257
40100
  ]),
40258
- default: withCtx(() => [
40259
- withDirectives(createVNode(_component_a_button, {
40260
- type: "link",
40261
- style: { "padding": "0" },
40262
- onClick: ($event) => onDelete(row),
40263
- disabled: ""
40264
- }, {
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
+ ]),
40265
40180
  default: withCtx(() => [
40266
- createTextVNode(toDisplayString(_ctx.$t("usercenter_button._004")), 1)
40181
+ createElementVNode("a", _hoisted_7$3, [
40182
+ createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
40183
+ createVNode(unref(DownOutlined))
40184
+ ])
40267
40185
  ]),
40268
- _: 1
40269
- }, 8, ["onClick"]), [
40270
- [
40271
- vShow,
40272
- removeShow.value && row.type == 3 && row.status == 1 && row.deletable
40273
- ]
40274
- ])
40275
- ]),
40276
- _: 2
40277
- }, 1024),
40278
- withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
40279
- [vShow, row.type != 3 && row.type != 2]
40186
+ _: 2
40187
+ }, 1024)
40188
+ ], 512), [
40189
+ [vShow, showMoreOperation(row)]
40190
+ ])
40191
+ ], 512), [
40192
+ [vShow, row.hasOperationPermissions]
40280
40193
  ]),
40281
- createVNode(_component_a_tooltip, { placement: "top" }, {
40282
- title: withCtx(() => [
40283
- createElementVNode("span", null, toDisplayString(_ctx.$t("uc_organ.nopermission")), 1)
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
+ ]
40284
40221
  ]),
40285
- default: withCtx(() => [
40286
- withDirectives(createElementVNode("span", null, [
40287
- createVNode(_component_a_dropdown, { disabled: "" }, {
40288
- overlay: withCtx(() => [..._cache[1] || (_cache[1] = [])]),
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
+ }, {
40289
40233
  default: withCtx(() => [
40290
- createElementVNode("a", _hoisted_8$3, [
40291
- createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
40292
- createVNode(unref(DownOutlined))
40293
- ])
40234
+ createTextVNode(toDisplayString(_ctx.$t("uc_organ.add2")), 1)
40294
40235
  ]),
40295
40236
  _: 1
40296
- })
40297
- ], 512), [
40298
- [vShow, row.type != 3 && row.type != 2]
40299
- ])
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
+ ]
40300
40248
  ]),
40301
- _: 2
40302
- }, 1024)
40303
- ], 512), [
40304
- [vShow, !row.hasOperationPermissions]
40305
- ])
40306
- ], 64)) : createCommentVNode("v-if", true)
40307
- ]),
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("common.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
+ }),
40308
40304
  _: 1
40309
40305
  }, 8, ["title"])
40310
40306
  ]),
@@ -45475,6 +45471,15 @@ function orgSwitchStatus(params) {
45475
45471
  data: params
45476
45472
  });
45477
45473
  }
45474
+ function useRequiredMessage() {
45475
+ const { t: t2 } = useI18n();
45476
+ const userStore = useUserStore();
45477
+ const requiredMessage = (labelKey) => {
45478
+ const suffix = t2("uc_common.isRequired");
45479
+ return userStore.userLanguage === "zh_CN" ? labelKey + suffix : labelKey + " " + suffix;
45480
+ };
45481
+ return { requiredMessage };
45482
+ }
45478
45483
  const _hoisted_1$5 = { class: "rwd" };
45479
45484
  const _hoisted_2$3 = { class: "pwd-strength-tip" };
45480
45485
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
@@ -47057,7 +47062,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
47057
47062
  tokenExpireTime: 1440
47058
47063
  });
47059
47064
  const loginPolicyForm = reactive({
47060
- ssoPolicy: 1,
47065
+ ssoPolicy: 0,
47061
47066
  multiClientPolicy: 1,
47062
47067
  unitTime: 15,
47063
47068
  maxLoginFailTimes: 5,