@utogether/udp-core 2.0.0-beta.25 → 2.0.0-beta.26
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/{403-QwBKrRZE.js → 403-D6Wb3JJh.js} +1 -1
- package/dist/{404-Cr7MbzNV.js → 404-B_HNbPNV.js} +1 -1
- package/dist/{500-B7kCOeIA.js → 500-BMemTTy1.js} +1 -1
- package/dist/{AuthorityInfo-Dwml2K4S.js → AuthorityInfo-6wHxwiFM.js} +1 -1
- package/dist/{AuthorityPanel-DzPhsPpa.js → AuthorityPanel-OqF_DvXA.js} +1 -1
- package/dist/{Company-BhOlvl7Q.js → Company-BLXSfow0.js} +1 -1
- package/dist/{CompanyPanel-ByhY5-Sq.js → CompanyPanel-B4kRZ5Cg.js} +1 -1
- package/dist/{Department-QvngN63N.js → Department-oFhsa7cd.js} +1 -1
- package/dist/{DepartmentPanel-DntGycxr.js → DepartmentPanel-B1UGpu-r.js} +2 -2
- package/dist/DepartmentPanel-BL58AdoT.js +2 -0
- package/dist/{DesignPanel-BMN4DZ0R.js → DesignPanel-DmkFVw1N.js} +2 -2
- package/dist/{DictView-ERFqZ5VD.js → DictView-CC5yMzOq.js} +1 -1
- package/dist/{Preview-CVZdnHB1.js → Preview-CAzWxLmP.js} +1 -1
- package/dist/{ReportDesign-CjfTyyy_.js → ReportDesign-DwchGG2P.js} +1 -1
- package/dist/{ReportQuery-CP-E0Puv.js → ReportQuery-D5jaRJEn.js} +1 -1
- package/dist/{ReportQueryFrom-D7SPPAps.js → ReportQueryFrom-CNlmtYey.js} +1 -1
- package/dist/{ReportTemplate-DE25zc1f.js → ReportTemplate-CNcTmccs.js} +1 -1
- package/dist/{Role-K7v_ZhFE.js → Role-Be8WfdCA.js} +1 -1
- package/dist/{RoleAssign-C16fjLaX.js → RoleAssign-CtehGAUf.js} +1 -1
- package/dist/{RolePanel-DPCe9k8f.js → RolePanel-CAwITg_q.js} +1 -1
- package/dist/{RolePanel-CV-xPlYJ.js → RolePanel-SN0FGFZ7.js} +3 -3
- package/dist/{Staff-w2ly4qd0.js → Staff-V2YsNKcj.js} +1 -1
- package/dist/{StaffInfo-DPDRpz6F.js → StaffInfo-CKRPW0r4.js} +1 -1
- package/dist/{StaffPanel-DI1eTTp9.js → StaffPanel-BxcgMg7u.js} +2 -2
- package/dist/{SysUser-BMTX1cJM.js → SysUser-Dxyj5w5m.js} +1 -1
- package/dist/{SysUserPanel-xwZdVjdp.js → SysUserPanel-DI6CWcZo.js} +1 -1
- package/dist/{SystemMenu-TXhiQZVm.js → SystemMenu-BBHREM8T.js} +2 -2
- package/dist/{UserInfo-JQqw8FMT.js → UserInfo-BMVQ0xwE.js} +1 -1
- package/dist/{authority-Bi6BGB5B.js → authority-BJFEUdrh.js} +1 -1
- package/dist/{childView-CyrcwshT.js → childView-BBjPEraB.js} +1 -1
- package/dist/{childView-Bk8OD9bV.js → childView-DNqG2UVm.js} +1 -1
- package/dist/core.es.js +5 -5
- package/dist/{layoutView-DFUjrqAS.js → layoutView-B6Mx2ERA.js} +237 -237
- package/dist/{login-BdCDnuXL.js → login-D_Hjy3Jd.js} +82 -84
- package/dist/{lov-view-DkmG4K57.js → lov-view-DM5Nm5tW.js} +1 -1
- package/dist/{menuInfo-kp2wNYOp.js → menuInfo-BlOY1KZW.js} +1 -1
- package/dist/{su-welcome-JeiovGpe.js → su-welcome-DVD3S_du.js} +4 -4
- package/dist/{router-CeluSGiD.js → system-Cm3lyBas.js} +451 -454
- package/dist/{udp-core-Dhm-BlAs.js → udp-core-DaQd5CF1.js} +212 -216
- package/dist/udp-core.css +1 -1
- package/dist/{useDataThemeChange-BCy8JBG7.js → useDataThemeChange-DJ4K3VGp.js} +31 -31
- package/dist/{useNav-DY8FkltH.js → useNav-BhOJIdrJ.js} +8 -8
- package/package.json +1 -1
- package/src/App.vue +5 -0
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/utils.ts +420 -414
- package/src/main.ts +109 -110
- package/src/router/utils.ts +2 -3
- package/src/views/login/login-view.vue +297 -301
- package/src/views/ulogin/login.vue +3 -32
- package/dist/DepartmentPanel-BCXqC39J.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, i as a, m as o, p as s, r as c, w as l } from "./system-Cm3lyBas.js";
|
|
2
2
|
import { c as u, o as d, r as f } from "./api-BFNxcxSN.js";
|
|
3
3
|
import { c as p, r as m, t as h } from "./contant-Q77dU_V3.js";
|
|
4
4
|
import { computed as g, ref as _ } from "vue";
|
|
@@ -12,9 +12,9 @@ v(k, {
|
|
|
12
12
|
i18n: l
|
|
13
13
|
}), P();
|
|
14
14
|
var j = {
|
|
15
|
-
i18n: (e,
|
|
15
|
+
i18n: (e, n) => t().global.t(e, n),
|
|
16
16
|
translate(e) {
|
|
17
|
-
return e && ["message.", "el."].findIndex((t) => e.includes(t)) !== -1 ?
|
|
17
|
+
return e && ["message.", "el."].findIndex((t) => e.includes(t)) !== -1 ? t().global.t.call(t().global.locale, e) : e;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
function M(e = {}) {
|
|
@@ -53,25 +53,25 @@ function P() {
|
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region src/layout/hooks/useLayout.ts
|
|
55
55
|
function F() {
|
|
56
|
-
let { $storage: e, $config:
|
|
56
|
+
let { $storage: e, $config: t } = C();
|
|
57
57
|
return {
|
|
58
58
|
layout: g(() => e?.layout.layout),
|
|
59
59
|
layoutTheme: g(() => e?.layout),
|
|
60
60
|
initStorage: () => {
|
|
61
|
-
|
|
62
|
-
layout:
|
|
63
|
-
theme:
|
|
64
|
-
darkMode:
|
|
65
|
-
sidebarStatus:
|
|
66
|
-
epThemeColor:
|
|
67
|
-
overallStyle:
|
|
61
|
+
r().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = i), e?.locale || (O().locale.value = t?.Locale ?? "zh"), e && !e?.layout && (e.layout = {
|
|
62
|
+
layout: t?.Layout ?? "vertical",
|
|
63
|
+
theme: t?.Theme ?? "default",
|
|
64
|
+
darkMode: t?.DarkMode ?? !1,
|
|
65
|
+
sidebarStatus: t?.SidebarStatus ?? !0,
|
|
66
|
+
epThemeColor: t?.EpThemeColor ?? "#409EFF",
|
|
67
|
+
overallStyle: t?.OverallStyle ?? "light"
|
|
68
68
|
}), e && !e?.configure && (e.configure = {
|
|
69
|
-
grey:
|
|
70
|
-
weak:
|
|
71
|
-
hideTabs:
|
|
72
|
-
showLogo:
|
|
73
|
-
showModel:
|
|
74
|
-
multiTagsCache:
|
|
69
|
+
grey: t?.Grey ?? !1,
|
|
70
|
+
weak: t?.Weak ?? !1,
|
|
71
|
+
hideTabs: t?.HideTabs ?? !1,
|
|
72
|
+
showLogo: t?.ShowLogo ?? !0,
|
|
73
|
+
showModel: t?.ShowModel ?? "smart",
|
|
74
|
+
multiTagsCache: t?.MultiTagsCache ?? !1
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
};
|
|
@@ -113,7 +113,7 @@ var I = D("udp-app", {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
function L() {
|
|
116
|
-
return I(
|
|
116
|
+
return I(e);
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/store/modules/epTheme.ts
|
|
@@ -136,12 +136,12 @@ var R = D("udp-epTheme", {
|
|
|
136
136
|
} }
|
|
137
137
|
});
|
|
138
138
|
function z() {
|
|
139
|
-
return R(
|
|
139
|
+
return R(e);
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/layout/hooks/useDataThemeChange.ts
|
|
143
143
|
function B() {
|
|
144
|
-
let { layoutTheme:
|
|
144
|
+
let { layoutTheme: e, layout: t } = F(), r = _([
|
|
145
145
|
{
|
|
146
146
|
color: "#1b2a47",
|
|
147
147
|
themeColor: "default"
|
|
@@ -183,18 +183,18 @@ function B() {
|
|
|
183
183
|
let r = n || document.body, { className: i } = r;
|
|
184
184
|
i = i.replace(t, "").trim(), r.className = e ? `${i} ${t}` : i;
|
|
185
185
|
}
|
|
186
|
-
function b(
|
|
187
|
-
|
|
188
|
-
layout:
|
|
189
|
-
theme:
|
|
186
|
+
function b(n = d().Theme ?? "default") {
|
|
187
|
+
e.value.theme = n, document.documentElement.setAttribute("data-theme", n), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${n}`), l.layout = {
|
|
188
|
+
layout: t.value,
|
|
189
|
+
theme: n,
|
|
190
190
|
darkMode: u.value,
|
|
191
191
|
sidebarStatus: l.layout?.sidebarStatus,
|
|
192
192
|
epThemeColor: l.layout?.epThemeColor,
|
|
193
193
|
overallStyle: f.value
|
|
194
|
-
}, T(
|
|
194
|
+
}, T(n === "default" || n === "light" ? d().EpThemeColor || "#409EFF" : r.value.find((e) => e.themeColor === n).color);
|
|
195
195
|
}
|
|
196
|
-
function w(t, n
|
|
197
|
-
document.documentElement.style.setProperty(`--el-color-primary-${
|
|
196
|
+
function w(e, t, n) {
|
|
197
|
+
document.documentElement.style.setProperty(`--el-color-primary-${e}-${t}`, u.value ? c(n, t / 10) : a(n, t / 10));
|
|
198
198
|
}
|
|
199
199
|
let T = (e) => {
|
|
200
200
|
z().setEpThemeColor(e), document.documentElement.style.setProperty("--el-color-primary", e);
|
|
@@ -206,15 +206,15 @@ function B() {
|
|
|
206
206
|
}
|
|
207
207
|
function D() {
|
|
208
208
|
y.remove(h), y.remove(p), y.remove(m), x.clear(), S.clear();
|
|
209
|
-
let { Grey: e, Weak:
|
|
210
|
-
L().setLayout(c), T(a),
|
|
209
|
+
let { Grey: e, Weak: t, MultiTagsCache: r, EpThemeColor: a, Layout: c } = d();
|
|
210
|
+
L().setLayout(c), T(a), n().multiTagsCacheChange(r), v(e, "html-grey", document.querySelector("html")), v(t, "html-weakness", document.querySelector("html")), o.push("/login"), n().handleTags("equal", [...i]), s();
|
|
211
211
|
}
|
|
212
212
|
return {
|
|
213
213
|
body: g,
|
|
214
214
|
overallStyle: f,
|
|
215
215
|
dataTheme: u,
|
|
216
|
-
layoutTheme:
|
|
217
|
-
themeColors:
|
|
216
|
+
layoutTheme: e,
|
|
217
|
+
themeColors: r,
|
|
218
218
|
onReset: D,
|
|
219
219
|
toggleClass: v,
|
|
220
220
|
dataThemeChange: E,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, O as t, c as n, d as r, m as i, n as a, o, p as s, t as c } from "./system-Cm3lyBas.js";
|
|
2
2
|
import { s as l } from "./api-BFNxcxSN.js";
|
|
3
3
|
import { c as u, r as d, t as f } from "./contant-Q77dU_V3.js";
|
|
4
|
-
import { n as p, r as m } from "./useDataThemeChange-
|
|
4
|
+
import { n as p, r as m } from "./useDataThemeChange-DJ4K3VGp.js";
|
|
5
5
|
import { t as h } from "./mitt-CQgI7DYU.js";
|
|
6
6
|
import { computed as g } from "vue";
|
|
7
7
|
import { cookies as _, storageLocal as v, useGlobal as y } from "@utogether/utils";
|
|
@@ -10,7 +10,7 @@ import { useRouter as x } from "vue-router";
|
|
|
10
10
|
//#region src/layout/hooks/useNav.ts
|
|
11
11
|
var S = "当前路由配置不正确,请检查配置";
|
|
12
12
|
function C() {
|
|
13
|
-
let C = m(), w = x().options.routes, { wholeMenus: T } = b(
|
|
13
|
+
let C = m(), w = x().options.routes, { wholeMenus: T } = b(a()), E = g(() => ({
|
|
14
14
|
width: "100%",
|
|
15
15
|
display: "flex",
|
|
16
16
|
alignItems: "center",
|
|
@@ -24,13 +24,13 @@ function C() {
|
|
|
24
24
|
document.title = l().MODE === "staging" ? `${F.value}•测试` : F.value;
|
|
25
25
|
}
|
|
26
26
|
function L() {
|
|
27
|
-
n(),
|
|
27
|
+
n(), e().handleTags("equal", [...t]), _.remove(f), _.remove(u), _.remove(d), a().setWholeMenus([]), e().handleTags("splice", "", {
|
|
28
28
|
startIndex: 1,
|
|
29
|
-
length:
|
|
30
|
-
}),
|
|
29
|
+
length: e()?.multiTags?.length
|
|
30
|
+
}), a().clearAllCachePage(), s(), o(), i.push("/login");
|
|
31
31
|
}
|
|
32
32
|
function R() {
|
|
33
|
-
|
|
33
|
+
i.push("/welcome");
|
|
34
34
|
}
|
|
35
35
|
function z() {
|
|
36
36
|
h.emit("openPanel");
|
|
@@ -50,7 +50,7 @@ function C() {
|
|
|
50
50
|
T.value.length === 0 || W(e) || h.emit("changLayoutRoute", e);
|
|
51
51
|
}
|
|
52
52
|
function W(e) {
|
|
53
|
-
return
|
|
53
|
+
return r.includes(e);
|
|
54
54
|
}
|
|
55
55
|
function G() {
|
|
56
56
|
let e = {
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -21,6 +21,8 @@ import { storageLocal } from '@utogether/utils';
|
|
|
21
21
|
import { getEnv } from './config';
|
|
22
22
|
import { kSYSCONFIG } from './contant';
|
|
23
23
|
import { getServiceApi, getBaseURL } from './api';
|
|
24
|
+
import { initDict } from './api/user';
|
|
25
|
+
import { useSystemStoreHook } from './store/modules/system';
|
|
24
26
|
|
|
25
27
|
export default defineComponent({
|
|
26
28
|
name: 'app',
|
|
@@ -49,6 +51,9 @@ export default defineComponent({
|
|
|
49
51
|
this.pollingVersion(config['title']);
|
|
50
52
|
});
|
|
51
53
|
},
|
|
54
|
+
mounted() {
|
|
55
|
+
initDict().then(res => useSystemStoreHook().setDict(res));
|
|
56
|
+
},
|
|
52
57
|
methods: {
|
|
53
58
|
// / 版本实时更新检测,只作用于线上环境
|
|
54
59
|
pollingVersion(title) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: wei.li
|
|
3
3
|
* @Date: 2021-11-17 16:33:37
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2026-
|
|
5
|
+
* @LastEditTime: 2026-04-16 10:09:53
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -78,7 +78,6 @@ const cacheColumns = {};
|
|
|
78
78
|
// console.log(attrs);
|
|
79
79
|
const instance = getCurrentInstance()!;
|
|
80
80
|
const hasAuthority = instance.appContext.config.globalProperties.$hasAuthority;
|
|
81
|
-
const debugModel = instance.appContext.config.globalProperties.$debugModel;
|
|
82
81
|
|
|
83
82
|
const viewCode = instance.parent.type.name;
|
|
84
83
|
const $mode = instance.appContext.config.globalProperties.$mode;
|
|
@@ -102,7 +101,7 @@ const { t } = useI18n();
|
|
|
102
101
|
const xgrid = ref(null);
|
|
103
102
|
const showModal = ref(false);
|
|
104
103
|
|
|
105
|
-
const serviceApi =
|
|
104
|
+
const serviceApi = instance.appContext.config.globalProperties.$serviceApi;
|
|
106
105
|
|
|
107
106
|
const favorite = {
|
|
108
107
|
icon: 'vxe-icon-setting',
|
|
@@ -486,14 +485,13 @@ nextTick(() => {
|
|
|
486
485
|
columnDrop();
|
|
487
486
|
}, 500);
|
|
488
487
|
});
|
|
489
|
-
function gerServiceURL() {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
488
|
+
// function gerServiceURL() {
|
|
489
|
+
// const whiteList = ['/uums/', '/upfm/', '/urpt/', '/usch/'];
|
|
490
|
+
// if (debugModel && props?.url && !whiteList.some(str => props.url.includes(str))) {
|
|
491
|
+
// return instance.appContext.config.globalProperties.$debuggerApi;
|
|
492
|
+
// }
|
|
493
|
+
// return instance.appContext.config.globalProperties.$serviceApi;
|
|
494
|
+
// }
|
|
497
495
|
/**
|
|
498
496
|
* @description Vue实例卸载
|
|
499
497
|
*/
|