@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 +3 -2
- package/dist/{RegionSelect.af66fae0.mjs → RegionSelect.2ec8dbb4.mjs} +1 -1
- package/dist/{UpOutlined.04b2108e.mjs → UpOutlined.f6005667.mjs} +1 -1
- package/dist/{index.db1786f2.mjs → index.178a6941.mjs} +1 -1
- package/dist/{index.7381010f.mjs → index.20b150ee.mjs} +2 -2
- package/dist/{index.f2d73da3.mjs → index.23986a52.mjs} +146 -139
- package/dist/{index.ba1785ba.mjs → index.33420cfe.mjs} +2 -2
- package/dist/{index.ba728c96.mjs → index.84de1d22.mjs} +1 -1
- package/dist/{index.dcca7299.mjs → index.86dfd232.mjs} +15 -15
- package/dist/{index.f8723642.mjs → index.aba281b8.mjs} +74 -69
- package/dist/{index.4a0a23bd.mjs → index.ac2b7590.mjs} +10 -10
- package/dist/{index.82d36d39.mjs → index.accd4906.mjs} +27 -27
- package/dist/{index.ca53b811.mjs → index.ce5e58e9.mjs} +1 -1
- package/dist/{index.61da1f51.mjs → index.e3d9feb8.mjs} +1 -1
- package/dist/usercenter.es.js +4 -4
- package/dist/usercenter.umd.js +3 -3
- package/package.json +1 -1
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: '
|
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 {
|
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.
|
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,6 +1,6 @@
|
|
1
|
-
import {
|
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.
|
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.
|
2213
|
+
component: () => import("./index.aba281b8.mjs")
|
2214
2214
|
},
|
2215
2215
|
{
|
2216
2216
|
path: "/index",
|
2217
2217
|
name: "index",
|
2218
|
-
component: () => import("./index.
|
2218
|
+
component: () => import("./index.84de1d22.mjs")
|
2219
2219
|
},
|
2220
2220
|
{
|
2221
2221
|
path: "/dashboard",
|
2222
2222
|
name: "dashboard",
|
2223
|
-
component: () => import("./index.
|
2223
|
+
component: () => import("./index.e3d9feb8.mjs")
|
2224
2224
|
},
|
2225
2225
|
{
|
2226
2226
|
path: "/404",
|
2227
2227
|
name: "404",
|
2228
|
-
component: () => import("./index.
|
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.
|
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
|
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
|
60889
|
+
var Q, ne, ee, te, oe;
|
60893
60890
|
let G = !1;
|
60894
|
-
const X = ((
|
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
|
-
|
60897
|
-
if (!te)
|
60903
|
+
if (!Z)
|
60898
60904
|
return !0;
|
60899
|
-
const
|
60900
|
-
return (
|
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 = (
|
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
|
-
|
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
|
-
|
78597
|
-
|
78602
|
+
Modal as G,
|
78603
|
+
STable as H,
|
78598
78604
|
Icon$1 as I,
|
78599
78605
|
JSEncrypt as J,
|
78600
|
-
|
78601
|
-
__unplugin_components_3$
|
78606
|
+
__unplugin_components_2$4 as K,
|
78607
|
+
__unplugin_components_3$1 as L,
|
78602
78608
|
Menu as M,
|
78603
|
-
|
78604
|
-
|
78609
|
+
__unplugin_components_3$2 as N,
|
78610
|
+
__unplugin_components_4 as O,
|
78605
78611
|
PropTypes$1 as P,
|
78606
|
-
|
78607
|
-
|
78612
|
+
__unplugin_components_0$5 as Q,
|
78613
|
+
getTimezoneCombo as R,
|
78608
78614
|
Spin as S,
|
78609
78615
|
TOKEN_PREFIX as T,
|
78610
|
-
|
78611
|
-
|
78612
|
-
|
78613
|
-
|
78614
|
-
|
78615
|
-
|
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
|
-
|
78619
|
-
|
78620
|
-
|
78621
|
-
|
78622
|
-
|
78623
|
-
|
78624
|
-
|
78625
|
-
|
78626
|
-
|
78627
|
-
|
78628
|
-
|
78629
|
-
|
78630
|
-
|
78631
|
-
|
78632
|
-
|
78633
|
-
|
78634
|
-
|
78635
|
-
|
78636
|
-
|
78637
|
-
|
78638
|
-
|
78639
|
-
|
78640
|
-
|
78641
|
-
|
78642
|
-
|
78643
|
-
|
78644
|
-
|
78645
|
-
|
78646
|
-
|
78647
|
-
|
78648
|
-
|
78649
|
-
|
78650
|
-
|
78651
|
-
|
78652
|
-
|
78653
|
-
|
78654
|
-
|
78655
|
-
|
78656
|
-
|
78657
|
-
|
78658
|
-
|
78659
|
-
|
78660
|
-
|
78661
|
-
|
78662
|
-
|
78663
|
-
|
78664
|
-
|
78665
|
-
|
78666
|
-
|
78667
|
-
|
78668
|
-
|
78669
|
-
|
78670
|
-
|
78671
|
-
|
78672
|
-
|
78673
|
-
|
78674
|
-
|
78675
|
-
|
78676
|
-
|
78677
|
-
|
78678
|
-
|
78679
|
-
|
78680
|
-
|
78681
|
-
|
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
|
-
|
78684
|
-
|
78685
|
-
|
78686
|
-
|
78687
|
-
|
78688
|
-
|
78689
|
-
|
78690
|
-
|
78691
|
-
|
78692
|
-
|
78693
|
-
|
78694
|
-
|
78695
|
-
|
78696
|
-
|
78697
|
-
|
78698
|
-
|
78699
|
-
|
78700
|
-
|
78701
|
-
|
78702
|
-
index$
|
78703
|
-
index$
|
78704
|
-
index as bl,
|
78705
|
-
|
78706
|
-
|
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
|
-
|
78717
|
+
getBrowserLang as f,
|
78711
78718
|
genComponentStyleHook as g,
|
78712
78719
|
hash as h,
|
78713
|
-
|
78714
|
-
|
78715
|
-
|
78716
|
-
|
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
|
-
|
78719
|
-
|
78720
|
-
|
78721
|
-
|
78722
|
-
|
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
|
-
|
78731
|
+
Dropdown$1 as t,
|
78725
78732
|
useConfigInject as u,
|
78726
|
-
|
78727
|
-
|
78728
|
-
|
78729
|
-
|
78730
|
-
|
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 {
|
4
|
-
import { R as ii } from "./RegionSelect.
|
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,8 +1,8 @@
|
|
1
|
-
import { defineComponent as T, ref as b, computed as
|
2
|
-
import { d as ve,
|
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.
|
5
|
-
import { _ as Se } from "./index.
|
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 =
|
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
|
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
|
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,
|
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(
|
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(
|
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
|
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
|
-
|
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 =
|
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,
|
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(
|
1029
|
+
t(L, null, {
|
1030
1030
|
default: o(() => [
|
1031
1031
|
t(Y, { md: 16 }, {
|
1032
1032
|
default: o(() => [
|