@witlink/usercenter 1.2.6 → 1.2.8

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/README.md CHANGED
@@ -22,7 +22,6 @@ import {
22
22
  SysOrgan, // 组织架构管理
23
23
  SysRole, // 角色管理
24
24
  SysUser, // 用户管理
25
- SysUserInfo, //个人中心
26
25
  } from '@witlink/usercenter'
27
26
  ```
28
27
 
@@ -38,12 +37,14 @@ const app = createApp(App)
38
37
  // export interface UserCenterOptions {
39
38
  // lang?: LangType
40
39
  // i18n: any
40
+ // logoutToUrl: string
41
41
  // pinia?: any
42
42
  // themeColor?: ColorOptions
43
43
  // }
44
44
 
45
45
  app.use(UserCenter, {
46
46
  i18n,
47
+ logoutToUrl: string, // 在当前页面token失效后跳转的地址
47
48
  pinia, // 设置用户中心store 如果在主系统已加载piniaPluginPersistedstate 持久化插件则不需要设置
48
49
  lang: 'zh_CN',
49
50
  themeColor: {
@@ -151,7 +152,7 @@ export default router;
151
152
  cors: true,
152
153
  proxy: {
153
154
  '/usercenter/api': {
154
- target: 'https://192.168.2.240', //目标url
155
+ target: '当前系统的接口代理地址', //目标url
155
156
  changeOrigin: true, //支持跨域
156
157
  secure: false, // 跳过 HTTPS 证书检查
157
158
  },
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as n, watch as _, openBlock as b, createElementBlock as w, createVNode as V } from "vue";
2
- import { a2 as y, a3 as C, a4 as R, a5 as S, _ as k } from "./index.f2d73da3.mjs";
2
+ import { a3 as y, a4 as C, a5 as R, a6 as S, _ as k } from "./index.23986a52.mjs";
3
3
  const D = /* @__PURE__ */ v({
4
4
  __name: "RegionSelect",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { createVNode as u } from "vue";
2
- import { A as l } from "./index.f2d73da3.mjs";
2
+ import { A as l } from "./index.23986a52.mjs";
3
3
  var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" };
4
4
  const p = o;
5
5
  function c(r) {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as n } from "./index.f2d73da3.mjs";
2
+ import { _ as n } from "./index.23986a52.mjs";
3
3
  const t = {};
4
4
  function c(i, o) {
5
5
  return e(), r("div", null, "dictionary");
@@ -1,6 +1,6 @@
1
- import { a6 as A, a7 as et, c as j, a as T, a8 as tt, a9 as Ae, aa as v, ab as F, ac as Z, ad as xe, ae as ie, g as nt, af as at, ag as rt, ah as Te, ai as je, aj as We, ak as He, al as lt, am as it, an as ot, ao as st, ap as ut, aq as dt, ar as ct, as as ft, u as pt, at as mt, au as gt, av as Se, aw as vt, D as ht, ax as Ve, ay as Oe, az as bt, P as $e } from "./index.f2d73da3.mjs";
1
+ import { a7 as A, a8 as et, c as j, a as T, a9 as tt, aa as Ae, ab as v, ac as F, ad as Z, ae as xe, af as ie, g as nt, ag as at, ah as rt, ai as Te, aj as je, ak as We, al as He, am as lt, an as it, ao as ot, ap as st, aq as ut, ar as dt, as as ct, at as ft, u as pt, au as mt, av as gt, aw as Se, ax as vt, D as ht, ay as Ve, az as Oe, aA as bt, P as $e } from "./index.23986a52.mjs";
2
2
  import { defineComponent as Ee, ref as Ge, onBeforeUnmount as qe, createVNode as b, shallowRef as M, computed as W, watch as ee } from "vue";
3
- import { U as St } from "./UpOutlined.04b2108e.mjs";
3
+ import { U as St } from "./UpOutlined.f6005667.mjs";
4
4
  function we() {
5
5
  return typeof BigInt == "function";
6
6
  }
@@ -2210,22 +2210,22 @@ const useAppStore = defineStore({
2210
2210
  {
2211
2211
  path: "/login",
2212
2212
  name: "login",
2213
- component: () => import("./index.f8723642.mjs")
2213
+ component: () => import("./index.aba281b8.mjs")
2214
2214
  },
2215
2215
  {
2216
2216
  path: "/index",
2217
2217
  name: "index",
2218
- component: () => import("./index.ba728c96.mjs")
2218
+ component: () => import("./index.84de1d22.mjs")
2219
2219
  },
2220
2220
  {
2221
2221
  path: "/dashboard",
2222
2222
  name: "dashboard",
2223
- component: () => import("./index.61da1f51.mjs")
2223
+ component: () => import("./index.e3d9feb8.mjs")
2224
2224
  },
2225
2225
  {
2226
2226
  path: "/404",
2227
2227
  name: "404",
2228
- component: () => import("./index.ca53b811.mjs"),
2228
+ component: () => import("./index.ce5e58e9.mjs"),
2229
2229
  meta: {
2230
2230
  title: "404 \u627E\u4E0D\u5230\u9875\u9762"
2231
2231
  }
@@ -58052,7 +58052,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
58052
58052
  email: "",
58053
58053
  captcha: "",
58054
58054
  userCode: ""
58055
- }));
58055
+ }), ee.value = 0);
58056
58056
  });
58057
58057
  });
58058
58058
  }, he = ($e, xe) => xe ? (ee.value = 0, /[0-9]/.test(xe) && ee.value++, /[a-zA-Z]/.test(xe) && ee.value++, /[^0-9a-zA-Z_]/.test(xe) && ee.value++, Promise.resolve()) : Promise.reject(W("personal_center.user_pwd1_msg1")), pe = reactive({
@@ -59459,9 +59459,12 @@ const bus = mitt(), _hoisted_1$w = {
59459
59459
  BasicLayout,
59460
59460
  RouteView,
59461
59461
  TabsLayout
59462
+ }, getBrowserLang = () => {
59463
+ const C = navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage;
59464
+ return C.indexOf("zh") > -1 ? "zh_CN" : C.indexOf("en") > -1 ? "en_US" : C.indexOf("fr") > -1 ? "fr_FR" : C.indexOf("nl") > -1 ? "nl-NL" : C.indexOf("de") > -1 ? "de-DE" : C.indexOf("ja") > -1 ? "ja-JP" : C.indexOf("it") > -1 ? "it-IT" : C.indexOf("pt") > -1 ? "pt-PT" : C.indexOf("es") > -1 ? "es" : C.indexOf("sv") > -1 ? "sv-fi" : "en_US";
59462
59465
  };
59463
59466
  let router = null;
59464
- const viewModules = /* @__PURE__ */ Object.assign({ "/src/views/dashboard/index.vue": () => import("./index.61da1f51.mjs"), "/src/views/error/404/index.vue": () => import("./index.ca53b811.mjs"), "/src/views/index/index.vue": () => import("./index.ba728c96.mjs"), "/src/views/login/index.vue": () => import("./index.f8723642.mjs"), "/src/views/sys/dictionary/index.vue": () => import("./index.db1786f2.mjs"), "/src/views/sys/functions/index.vue": () => Promise.resolve().then(() => index$7), "/src/views/sys/lang/index.vue": () => import("./index.4a0a23bd.mjs"), "/src/views/sys/org/index.vue": () => import("./index.dcca7299.mjs"), "/src/views/sys/organ/index.vue": () => Promise.resolve().then(() => index$5), "/src/views/sys/parameter/index.vue": () => import("./index.82d36d39.mjs"), "/src/views/sys/role/index.vue": () => Promise.resolve().then(() => index$3), "/src/views/sys/user/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/sys/userinfo/index.vue": () => import("./index.ba1785ba.mjs") });
59467
+ const viewModules = /* @__PURE__ */ Object.assign({ "/src/views/dashboard/index.vue": () => import("./index.e3d9feb8.mjs"), "/src/views/error/404/index.vue": () => import("./index.ce5e58e9.mjs"), "/src/views/index/index.vue": () => import("./index.84de1d22.mjs"), "/src/views/login/index.vue": () => import("./index.aba281b8.mjs"), "/src/views/sys/dictionary/index.vue": () => import("./index.178a6941.mjs"), "/src/views/sys/functions/index.vue": () => Promise.resolve().then(() => index$7), "/src/views/sys/lang/index.vue": () => import("./index.ac2b7590.mjs"), "/src/views/sys/org/index.vue": () => import("./index.86dfd232.mjs"), "/src/views/sys/organ/index.vue": () => Promise.resolve().then(() => index$5), "/src/views/sys/parameter/index.vue": () => import("./index.accd4906.mjs"), "/src/views/sys/role/index.vue": () => Promise.resolve().then(() => index$3), "/src/views/sys/user/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/sys/userinfo/index.vue": () => import("./index.33420cfe.mjs") });
59465
59468
  function hasPermission(C, H) {
59466
59469
  if (H.meta && H.meta.permission) {
59467
59470
  let U = !1;
@@ -59498,9 +59501,6 @@ function addRoutes(C, H = "") {
59498
59501
  }
59499
59502
  });
59500
59503
  }
59501
- function getBrowserLang$1() {
59502
- return (navigator.language || navigator.languages && navigator.languages[0] || "en-US").toLowerCase() === "zh-cn" ? "zh_CN" : "en_US";
59503
- }
59504
59504
  const useUserStore = defineStore({
59505
59505
  id: `${TOKEN_PREFIX}user`,
59506
59506
  state: () => ({
@@ -59550,7 +59550,7 @@ const useUserStore = defineStore({
59550
59550
  }
59551
59551
  }), Z.permissionList = Z.permissions.map((oe) => oe.permissionId);
59552
59552
  const ne = Z.roleTypeId === "0", ee = Q ? Q.some((oe) => oe.roleTypeId === "0") : !1, te = ne || ee;
59553
- this.userLanguage = W.userLanguage || getBrowserLang$1(), this.userId = W.userId, this.moneyUnit = W.monetaryyUnit, this.timezone = W.timezone, this.branchId = W.branchId, this.dateFormat = W.dateFormat, this.mobile = W.mobile, this.email = W.email, this.roles = [W.role], this.roleIdOthers = W.roleIdOthers, this.changePwd = W.changePwd, this.info = W, this.buttonPermission = G, this.name = W.name, this.welcome = W.name, this.isWarehouseManager = te, this.avatar = "usercenter/" + W.avatar;
59553
+ this.userLanguage = W.userLanguage || getBrowserLang(), this.userId = W.userId, this.moneyUnit = W.monetaryyUnit, this.timezone = W.timezone, this.branchId = W.branchId, this.dateFormat = W.dateFormat, this.mobile = W.mobile, this.email = W.email, this.roles = [W.role], this.roleIdOthers = W.roleIdOthers, this.changePwd = W.changePwd, this.info = W, this.buttonPermission = G, this.name = W.name, this.welcome = W.name, this.isWarehouseManager = te, this.avatar = "usercenter/" + W.avatar;
59554
59554
  } else {
59555
59555
  H("getInfo: roles must be a non-null array !");
59556
59556
  const Z = $lang("login", "noperssionInfo");
@@ -59971,9 +59971,6 @@ const DatePicker$1 = locale$3, typeTemplate$1 = "${label}\u4E0D\u662F\u4E00\u4E2
59971
59971
  }, fr_FR = localeValues;
59972
59972
  let i18n, langList = null;
59973
59973
  const localMap = /* @__PURE__ */ new Map();
59974
- function getBrowserLang() {
59975
- return (navigator.language || navigator.languages && navigator.languages[0] || "en-US").toLowerCase() === "zh-cn" ? "zh_CN" : "en_US";
59976
- }
59977
59974
  function setI18n$1(C) {
59978
59975
  i18n = C;
59979
59976
  }
@@ -60889,17 +60886,26 @@ const _hoisted_1$s = { class: "functions-wrap" }, _hoisted_2$7 = { style: { padd
60889
60886
  function usePermissionId() {
60890
60887
  const C = useUserStore(), H = useRoute();
60891
60888
  return { hasPermissionId: (W) => {
60892
- var Z, Q, ne, ee;
60889
+ var Q, ne, ee, te, oe;
60893
60890
  let G = !1;
60894
- const X = ((Z = H.meta) == null ? void 0 : Z.sourceName) || H.name;
60891
+ const X = ((Q = H.meta) == null ? void 0 : Q.sourceName) || H.name, Z = getStore();
60892
+ if (!C.buttonPermission) {
60893
+ const re = {};
60894
+ ((ne = Z.state.value.app) == null ? void 0 : ne.roles).permissions.map((ie) => {
60895
+ var ae;
60896
+ if (ie.actionEntitySet != null && ((ae = ie.actionEntitySet) == null ? void 0 : ae.length) > 0) {
60897
+ const se = ie.actionEntitySet.map((ce) => ce.action);
60898
+ ie.actionList = se, re[ie.permissionId] = se;
60899
+ }
60900
+ }), C.buttonPermission = re;
60901
+ }
60895
60902
  if (isNaN(Number(X))) {
60896
- const te = getStore();
60897
- if (!te)
60903
+ if (!Z)
60898
60904
  return !0;
60899
- const oe = te.state.value.app.activePath, le = ((Q = te.state.value.app) == null ? void 0 : Q.routers).find((ie) => ie.path === oe);
60900
- return (ne = C.buttonPermission[le.name]) == null ? void 0 : ne.includes(W);
60905
+ const re = Z.state.value.app.activePath, ie = ((ee = Z.state.value.app) == null ? void 0 : ee.routers).find((ae) => ae.path === re);
60906
+ return (te = C.buttonPermission[ie.name]) == null ? void 0 : te.includes(W);
60901
60907
  }
60902
- return Object.keys(C.buttonPermission).length === 0 ? G = !0 : G = (ee = C.buttonPermission[X]) == null ? void 0 : ee.includes(W), G;
60908
+ return Object.keys(C.buttonPermission).length === 0 ? G = !0 : G = (oe = C.buttonPermission[X]) == null ? void 0 : oe.includes(W), G;
60903
60909
  } };
60904
60910
  }
60905
60911
  const coreVersion = "4.0.35", VxeCore = {
@@ -78586,146 +78592,147 @@ const UserCenter = {
78586
78592
  }
78587
78593
  };
78588
78594
  export {
78589
- __unplugin_components_0$2 as $,
78595
+ useDistByType as $,
78590
78596
  AntdIcon as A,
78591
78597
  Button$1 as B,
78592
78598
  CheckCircleFilled$1 as C,
78593
78599
  DownOutlined$1 as D,
78594
78600
  ExclamationCircleFilled$1 as E,
78595
78601
  Form$1 as F,
78596
- STable as G,
78597
- __unplugin_components_2$4 as H,
78602
+ Modal as G,
78603
+ STable as H,
78598
78604
  Icon$1 as I,
78599
78605
  JSEncrypt as J,
78600
- __unplugin_components_3$1 as K,
78601
- __unplugin_components_3$2 as L,
78606
+ __unplugin_components_2$4 as K,
78607
+ __unplugin_components_3$1 as L,
78602
78608
  Menu as M,
78603
- __unplugin_components_4 as N,
78604
- __unplugin_components_0$5 as O,
78609
+ __unplugin_components_3$2 as N,
78610
+ __unplugin_components_4 as O,
78605
78611
  PropTypes$1 as P,
78606
- getTimezoneCombo as Q,
78607
- SelectOption as R,
78612
+ __unplugin_components_0$5 as Q,
78613
+ getTimezoneCombo as R,
78608
78614
  Spin as S,
78609
78615
  TOKEN_PREFIX as T,
78610
- Select as U,
78611
- getLangCombo as V,
78612
- DictEx as W,
78613
- FooterToolBar as X,
78614
- Card$1 as Y,
78615
- useDistByType as Z,
78616
+ SelectOption as U,
78617
+ Select as V,
78618
+ getLangCombo as W,
78619
+ DictEx as X,
78620
+ FooterToolBar as Y,
78621
+ Card$1 as Z,
78616
78622
  _export_sfc as _,
78617
78623
  _objectSpread2$1 as a,
78618
- ClockCircleOutlined$1 as a$,
78619
- __unplugin_components_3$4 as a0,
78620
- bus as a1,
78621
- getRegionRootCombo as a2,
78622
- getRegionChildCombo as a3,
78623
- getRegionDetail as a4,
78624
- __unplugin_components_0$3 as a5,
78625
- functionType as a6,
78626
- isMobile as a7,
78627
- warning$4 as a8,
78628
- wrapperRaf as a9,
78629
- AllAntdIcon as aA,
78630
- __unplugin_components_3 as aB,
78631
- __unplugin_components_2 as aC,
78632
- commonjsGlobal as aD,
78633
- noteOnce as aE,
78634
- isVisible as aF,
78635
- useMergedState as aG,
78636
- Trigger as aH,
78637
- useMemo as aI,
78638
- shallowequal as aJ,
78639
- warningOnce as aK,
78640
- useState as aL,
78641
- slideDownIn as aM,
78642
- slideUpIn as aN,
78643
- slideDownOut as aO,
78644
- slideUpOut as aP,
78645
- roundedArrow as aQ,
78646
- textEllipsis as aR,
78647
- initSlideMotion as aS,
78648
- initMoveMotion as aT,
78649
- TinyColor as aU,
78650
- __unplugin_components_1$2 as aV,
78651
- objectType as aW,
78652
- arrayType as aX,
78653
- devWarning as aY,
78654
- useLocaleReceiver as aZ,
78655
- enUS as a_,
78656
- _extends$1 as aa,
78657
- booleanType as ab,
78658
- someType as ac,
78659
- stringType as ad,
78660
- KeyCode$1 as ae,
78661
- initInputToken as af,
78662
- genCompactItemStyle as ag,
78663
- resetComponent as ah,
78664
- genBasicInputStyle as ai,
78665
- genStatusStyle as aj,
78666
- genHoverStyle as ak,
78667
- genActiveStyle as al,
78668
- genDisabledStyle as am,
78669
- genInputGroupStyle as an,
78670
- genPlaceholderStyle as ao,
78671
- resetIcon as ap,
78672
- useInjectFormItemContext as aq,
78673
- FormItemInputContext as ar,
78674
- getMergedStatus as as,
78675
- useCompactItemContext as at,
78676
- useInjectDisabled as au,
78677
- getStatusClassNames as av,
78678
- omit$4 as aw,
78679
- NoCompactStyle as ax,
78680
- NoFormStatus as ay,
78681
- cloneElement as az,
78624
+ enUS as a$,
78625
+ __unplugin_components_0$2 as a0,
78626
+ __unplugin_components_3$4 as a1,
78627
+ bus as a2,
78628
+ getRegionRootCombo as a3,
78629
+ getRegionChildCombo as a4,
78630
+ getRegionDetail as a5,
78631
+ __unplugin_components_0$3 as a6,
78632
+ functionType as a7,
78633
+ isMobile as a8,
78634
+ warning$4 as a9,
78635
+ cloneElement as aA,
78636
+ AllAntdIcon as aB,
78637
+ __unplugin_components_3 as aC,
78638
+ __unplugin_components_2 as aD,
78639
+ commonjsGlobal as aE,
78640
+ noteOnce as aF,
78641
+ isVisible as aG,
78642
+ useMergedState as aH,
78643
+ Trigger as aI,
78644
+ useMemo as aJ,
78645
+ shallowequal as aK,
78646
+ warningOnce as aL,
78647
+ useState as aM,
78648
+ slideDownIn as aN,
78649
+ slideUpIn as aO,
78650
+ slideDownOut as aP,
78651
+ slideUpOut as aQ,
78652
+ roundedArrow as aR,
78653
+ textEllipsis as aS,
78654
+ initSlideMotion as aT,
78655
+ initMoveMotion as aU,
78656
+ TinyColor as aV,
78657
+ __unplugin_components_1$2 as aW,
78658
+ objectType as aX,
78659
+ arrayType as aY,
78660
+ devWarning as aZ,
78661
+ useLocaleReceiver as a_,
78662
+ wrapperRaf as aa,
78663
+ _extends$1 as ab,
78664
+ booleanType as ac,
78665
+ someType as ad,
78666
+ stringType as ae,
78667
+ KeyCode$1 as af,
78668
+ initInputToken as ag,
78669
+ genCompactItemStyle as ah,
78670
+ resetComponent as ai,
78671
+ genBasicInputStyle as aj,
78672
+ genStatusStyle as ak,
78673
+ genHoverStyle as al,
78674
+ genActiveStyle as am,
78675
+ genDisabledStyle as an,
78676
+ genInputGroupStyle as ao,
78677
+ genPlaceholderStyle as ap,
78678
+ resetIcon as aq,
78679
+ useInjectFormItemContext as ar,
78680
+ FormItemInputContext as as,
78681
+ getMergedStatus as at,
78682
+ useCompactItemContext as au,
78683
+ useInjectDisabled as av,
78684
+ getStatusClassNames as aw,
78685
+ omit$4 as ax,
78686
+ NoCompactStyle as ay,
78687
+ NoFormStatus as az,
78682
78688
  CloseCircleFilled$1 as b,
78683
- __unplugin_components_1$1 as b0,
78684
- EditModal as b1,
78685
- toFormatDate as b2,
78686
- __unplugin_components_0$1 as b3,
78687
- getOffset as b4,
78688
- toUTC as b5,
78689
- UploadOutlined$1 as b6,
78690
- PlusOutlined$1 as b7,
78691
- useInitUserinfo as b8,
78692
- useAppStore as b9,
78693
- antLocaleMap as ba,
78694
- __unplugin_components_0$4 as bb,
78695
- Tabs as bc,
78696
- __unplugin_components_2$3 as bd,
78697
- changeTheme as be,
78698
- setToken as bf,
78699
- removeToken as bg,
78700
- setLogoutToUrl as bh,
78701
- index$6 as bi,
78702
- index$4 as bj,
78703
- index$2 as bk,
78704
- index as bl,
78705
- changeLanguage as bm,
78706
- UserCenter as bn,
78689
+ ClockCircleOutlined$1 as b0,
78690
+ __unplugin_components_1$1 as b1,
78691
+ EditModal as b2,
78692
+ toFormatDate as b3,
78693
+ __unplugin_components_0$1 as b4,
78694
+ getOffset as b5,
78695
+ toUTC as b6,
78696
+ UploadOutlined$1 as b7,
78697
+ PlusOutlined$1 as b8,
78698
+ useInitUserinfo as b9,
78699
+ useAppStore as ba,
78700
+ antLocaleMap as bb,
78701
+ __unplugin_components_0$4 as bc,
78702
+ Tabs as bd,
78703
+ __unplugin_components_2$3 as be,
78704
+ changeTheme as bf,
78705
+ setToken as bg,
78706
+ removeToken as bh,
78707
+ setLogoutToUrl as bi,
78708
+ index$6 as bj,
78709
+ index$4 as bk,
78710
+ index$2 as bl,
78711
+ index as bm,
78712
+ changeLanguage as bn,
78713
+ UserCenter as bo,
78707
78714
  classNames as c,
78708
78715
  useUserStore as d,
78709
78716
  ACCESS_TOKEN as e,
78710
- changeLang as f,
78717
+ getBrowserLang as f,
78711
78718
  genComponentStyleHook as g,
78712
78719
  hash as h,
78713
- CheckOutlined$1 as i,
78714
- CaretUpOutlined$1 as j,
78715
- CaretDownOutlined$1 as k,
78716
- getAppInfo as l,
78720
+ changeLang as i,
78721
+ CheckOutlined$1 as j,
78722
+ CaretUpOutlined$1 as k,
78723
+ CaretDownOutlined$1 as l,
78717
78724
  merge$2 as m,
78718
- getCode as n,
78719
- Input as o,
78720
- __unplugin_components_1$3 as p,
78721
- __unplugin_components_4$1 as q,
78722
- Dropdown$1 as r,
78725
+ getAppInfo as n,
78726
+ getCode as o,
78727
+ Input as p,
78728
+ __unplugin_components_1$3 as q,
78729
+ __unplugin_components_4$1 as r,
78723
78730
  storage as s,
78724
- Avatar$1 as t,
78731
+ Dropdown$1 as t,
78725
78732
  useConfigInject as u,
78726
- login as v,
78727
- setUpdateUserLanguage as w,
78728
- logout as x,
78729
- handleRespPost as y,
78730
- Modal as z
78733
+ Avatar$1 as v,
78734
+ login as w,
78735
+ setUpdateUserLanguage as x,
78736
+ logout as y,
78737
+ handleRespPost as z
78731
78738
  };
@@ -1,7 +1,7 @@
1
1
  import { useAttrs as fr, provide as za, inject as Ua, createVNode as v, createTextVNode as $t, defineComponent as ke, shallowRef as Ue, ref as R, watch as ge, onBeforeUnmount as zn, nextTick as ja, computed as L, onBeforeUpdate as pr, watchEffect as nn, toRef as pe, onMounted as xt, getCurrentScope as vr, onScopeDispose as gr, unref as Se, getCurrentInstance as mr, Fragment as At, useSlots as wr, openBlock as le, createElementBlock as Ce, createElementVNode as j, createCommentVNode as Me, toDisplayString as ve, renderSlot as dt, normalizeStyle as Ct, createBlock as Xe, withCtx as A, normalizeClass as qa, withDirectives as Yn, vShow as Hn, createSlots as br, renderList as Cr, isRef as yr, reactive as Qt, h as xn } from "vue";
2
2
  import { useRoute as Ka } from "vue-router";
3
- import { aD as ft, aE as $r, aa as T, a as O, c as he, ae as fe, a9 as ot, aF as xr, az as kr, a8 as Be, aG as je, aH as Sr, aI as _r, aJ as Mr, aK as Dr, aL as Ma, g as Pr, m as Tn, af as Or, ag as Ir, al as Nn, ah as Da, ak as Yr, ai as Hr, aM as Tr, aN as Nr, aO as Rr, aP as Er, aQ as Wr, aR as Ar, aS as Pa, aT as Oa, aU as Jt, B as an, aV as Vr, A as on, aW as Rn, ab as tt, ac as yt, a6 as re, ad as Mt, aX as ct, aq as Qa, ar as Ga, aY as Dt, u as Za, at as Ja, aZ as eo, a_ as to, a$ as no, av as ao, as as oo, b as ro, aw as Lr, t as Br, _ as pt, $ as Fr, y as Ot, b0 as io, L as lo, N as so, d as rn, b1 as Xr, b2 as uo, b3 as zr, b4 as Ur, b5 as Ia, b6 as jr, b7 as co, H as ho, K as fo, aB as qr, z as Kr, W as Qr, I as Ya, o as Gr, p as Zr, F as Jr, b8 as ei, b9 as ti, ba as ni, bb as ai, bc as oi, bd as ri } from "./index.f2d73da3.mjs";
4
- import { R as ii } from "./RegionSelect.af66fae0.mjs";
3
+ import { aE as ft, aF as $r, ab as T, a as O, c as he, af as fe, aa as ot, aG as xr, aA as kr, a9 as Be, aH as je, aI as Sr, aJ as _r, aK as Mr, aL as Dr, aM as Ma, g as Pr, m as Tn, ag as Or, ah as Ir, am as Nn, ai as Da, al as Yr, aj as Hr, aN as Tr, aO as Nr, aP as Rr, aQ as Er, aR as Wr, aS as Ar, aT as Pa, aU as Oa, aV as Jt, B as an, aW as Vr, A as on, aX as Rn, ac as tt, ad as yt, a7 as re, ae as Mt, aY as ct, ar as Qa, as as Ga, aZ as Dt, u as Za, au as Ja, a_ as eo, a$ as to, b0 as no, aw as ao, at as oo, b as ro, ax as Lr, v as Br, _ as pt, a0 as Fr, z as Ot, b1 as io, N as lo, O as so, d as rn, b2 as Xr, b3 as uo, b4 as zr, b5 as Ur, b6 as Ia, b7 as jr, b8 as co, K as ho, L as fo, aC as qr, G as Kr, X as Qr, I as Ya, p as Gr, q as Zr, F as Jr, b9 as ei, ba as ti, bb as ni, bc as ai, bd as oi, be as ri } from "./index.23986a52.mjs";
4
+ import { R as ii } from "./RegionSelect.2ec8dbb4.mjs";
5
5
  import { useI18n as ln } from "vue-i18n";
6
6
  import { message as bt } from "ant-design-vue";
7
7
  import './assets/index.423cd927.css';var po = { exports: {} };
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as n } from "./index.f2d73da3.mjs";
2
+ import { _ as n } from "./index.23986a52.mjs";
3
3
  const t = {};
4
4
  function c(i, o) {
5
5
  return e(), r("div", null, "\u9996\u9875");
@@ -1,8 +1,8 @@
1
- import { defineComponent as T, ref as b, computed as L, openBlock as f, createBlock as R, withCtx as o, renderSlot as Q, createElementVNode as E, normalizeClass as ee, createElementBlock as I, watch as ae, onMounted as K, createVNode as t, Fragment as j, renderList as oe, createTextVNode as k, toDisplayString as z, reactive as F, createCommentVNode as $, mergeProps as te, resolveComponent as x, withDirectives as _e, unref as ye, vShow as fe } from "vue";
2
- import { d as ve, O as be, _ as D, Q as he, R as le, U as re, V as we, y as O, W as H, X as Ce, o as ne, p as se, H as ue, K as de, F as ie, S as Ae, B as Ne, Y as me, h as ke, z as Ie, Z as Pe, G as ze, $ as Ue, a0 as $e, a1 as Re } from "./index.f2d73da3.mjs";
1
+ import { defineComponent as T, ref as b, computed as V, openBlock as f, createBlock as R, withCtx as o, renderSlot as Q, createElementVNode as E, normalizeClass as ee, createElementBlock as I, watch as ae, onMounted as K, createVNode as t, Fragment as j, renderList as oe, createTextVNode as k, toDisplayString as z, reactive as F, createCommentVNode as $, mergeProps as te, resolveComponent as x, withDirectives as _e, unref as ye, vShow as fe } from "vue";
2
+ import { d as ve, Q as be, _ as D, R as he, U as le, V as re, W as we, z as O, X as H, Y as Ce, p as ne, q as se, K as ue, L as de, F as ie, S as Ae, B as Ne, Z as me, h as ke, G as Ie, $ as Pe, H as ze, a0 as Ue, a1 as $e, a2 as Re } from "./index.23986a52.mjs";
3
3
  import { useI18n as W } from "vue-i18n";
4
- import { R as qe } from "./RegionSelect.af66fae0.mjs";
5
- import { _ as Se } from "./index.7381010f.mjs";
4
+ import { R as qe } from "./RegionSelect.2ec8dbb4.mjs";
5
+ import { _ as Se } from "./index.20b150ee.mjs";
6
6
  import { message as Te } from "ant-design-vue";
7
7
  import './assets/index.b965b94b.css';const De = /* @__PURE__ */ T({
8
8
  __name: "index",
@@ -13,7 +13,7 @@ import './assets/index.b965b94b.css';const De = /* @__PURE__ */ T({
13
13
  }
14
14
  },
15
15
  setup(n) {
16
- const m = ve(), r = n, g = b(!1), c = L(() => m.userLanguage), u = L(() => c.value === "en_US"), v = L(() => {
16
+ const m = ve(), r = n, g = b(!1), c = V(() => m.userLanguage), u = V(() => c.value === "en_US"), v = V(() => {
17
17
  let e = "ctrl-wrapper";
18
18
  return typeof r.className == "string" || Array.isArray(r.className) ? e = ["ctrl-wrapper"].concat(r.className) : typeof r.className == "object" && (e = {
19
19
  "ctrl-wrapper": !0,
@@ -186,14 +186,14 @@ function Fe(n) {
186
186
  params: n
187
187
  });
188
188
  }
189
- function Ve(n) {
189
+ function Le(n) {
190
190
  return O({
191
191
  url: "/api/sys/org/search-list",
192
192
  method: "get",
193
193
  params: n
194
194
  });
195
195
  }
196
- function Le(n) {
196
+ function Ve(n) {
197
197
  return O({
198
198
  url: "/api/sys/org/delete",
199
199
  method: "post",
@@ -387,7 +387,7 @@ const Ge = /* @__PURE__ */ T({
387
387
  return K(() => {
388
388
  h(c.params);
389
389
  }), (a, l) => {
390
- const P = ne, p = se, s = ue, A = de, S = Se, M = ie, Y = Ae, V = Ne, G = me;
390
+ const P = ne, p = se, s = ue, A = de, S = Se, M = ie, Y = Ae, L = Ne, G = me;
391
391
  return f(), R(G, {
392
392
  bordered: !1,
393
393
  title: n.params.opType == "1" ? a.$t("org.title") : a.$t("org.title4")
@@ -775,14 +775,14 @@ const Ge = /* @__PURE__ */ T({
775
775
  }, 8, ["spinning"]),
776
776
  t(Ce, { style: { width: "100%" } }, {
777
777
  default: o(() => [
778
- t(V, { onClick: y }, {
778
+ t(L, { onClick: y }, {
779
779
  default: o(() => [
780
780
  k(z(a.$t("common.btn_cancel")), 1)
781
781
  ]),
782
782
  _: 1
783
783
  }),
784
784
  l[12] || (l[12] = k("\xA0\xA0 ")),
785
- t(V, {
785
+ t(L, {
786
786
  onClick: C,
787
787
  type: "primary"
788
788
  }, {
@@ -908,7 +908,7 @@ const Qe = /* @__PURE__ */ D(Ge, [["__scopeId", "data-v-bc1e3beb"], ["__file", "
908
908
  opType: "",
909
909
  orgId: ""
910
910
  }), i = async (s) => {
911
- const A = Object.assign(s, _), { result: S } = await Ve(A);
911
+ const A = Object.assign(s, _), { result: S } = await Le(A);
912
912
  return S;
913
913
  }, N = () => {
914
914
  c.value = !1;
@@ -926,14 +926,14 @@ const Qe = /* @__PURE__ */ D(Ge, [["__scopeId", "data-v-bc1e3beb"], ["__file", "
926
926
  }, q = (s) => {
927
927
  h("3"), v.value = s, c.value = !0;
928
928
  }, a = (s) => {
929
- Le({ orgId: s.orgId }).then(() => {
929
+ Ve({ orgId: s.orgId }).then(() => {
930
930
  g.value.refresh(), Te.success(m("assetclass.del_success"));
931
931
  });
932
932
  }, l = () => {
933
933
  h("0"), u.value = !1, g.value.refresh();
934
934
  }, P = () => {
935
935
  u.value = !1;
936
- }, p = L(() => [
936
+ }, p = V(() => [
937
937
  {
938
938
  title: m("device.index1"),
939
939
  width: "50px",
@@ -1001,7 +1001,7 @@ const Qe = /* @__PURE__ */ D(Ge, [["__scopeId", "data-v-bc1e3beb"], ["__file", "
1001
1001
  }
1002
1002
  ]);
1003
1003
  return (s, A) => {
1004
- const S = Ue, M = x("uc-btn-add"), Y = ue, V = de, G = x("uc-pick-label"), d = x("uc-btn-edit"), X = $e, pe = x("uc-btn-reset-pwd"), ce = x("uc-btn-remove"), ge = me;
1004
+ const S = Ue, M = x("uc-btn-add"), Y = ue, L = de, G = x("uc-pick-label"), d = x("uc-btn-edit"), X = $e, pe = x("uc-btn-reset-pwd"), ce = x("uc-btn-remove"), ge = me;
1005
1005
  return f(), I("div", null, [
1006
1006
  t(ge, null, {
1007
1007
  default: o(() => [
@@ -1026,7 +1026,7 @@ const Qe = /* @__PURE__ */ D(Ge, [["__scopeId", "data-v-bc1e3beb"], ["__file", "
1026
1026
  })
1027
1027
  ]),
1028
1028
  E("div", Je, [
1029
- t(V, null, {
1029
+ t(L, null, {
1030
1030
  default: o(() => [
1031
1031
  t(Y, { md: 16 }, {
1032
1032
  default: o(() => [