@utogether/udp-core 1.0.2 → 1.0.4-beta.1
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-B1rIjAAu.js → 403-CH-5FVhN.js} +1 -1
- package/dist/{404-mBqc2y4t.js → 404-CFk6Ivq-.js} +1 -1
- package/dist/{500-BoI45Zdh.js → 500-DRjSNKN3.js} +1 -1
- package/dist/{AuthorityInfo-B08NBIIn.js → AuthorityInfo-DxNFwxdz.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BI2PKcqq.js} +1 -1
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-BzIh29KB.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js} +32 -24
- package/dist/{Company-JGGyWEWH.js → Company-DGFD7_MF.js} +3 -3
- package/dist/{CompanyPanel-BQ_cCmDx.js → CompanyPanel-BHXndpIr.js} +1 -1
- package/dist/{Department-z2iO6hwM.js → Department-CFcjdf8m.js} +3 -3
- package/dist/{DepartmentPanel-BtQe7zwU.js → DepartmentPanel-DrBtJClY.js} +1 -1
- package/dist/{DesignPanel-7mhtVWas.js → DesignPanel-EAKuwOqp.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js → DesignPanel.vue_vue_type_style_index_0_lang-BOP4Q41a.js} +2 -2
- package/dist/{DictView-CjchV2Yk.js → DictView-CpRvxDO0.js} +10 -9
- package/dist/{InvOrganization-Pn1O_XP0.js → InvOrganization-DZC9aKKv.js} +1 -1
- package/dist/{Org-BqytV_vi.js → Org-D5heLogi.js} +1 -1
- package/dist/{Preview-CLpUUMay.js → Preview-DWuThn2_.js} +1 -1
- package/dist/{ReportDefine-Cz1KtEUF.js → ReportDefine-FeHx3B-B.js} +1 -1
- package/dist/{ReportDesign-BaORYud4.js → ReportDesign-Deo5AK76.js} +2 -2
- package/dist/{ReportQuery-CPCPXiXz.js → ReportQuery-WK5BPREv.js} +1 -1
- package/dist/{ReportQueryFrom-C_AcrfkJ.js → ReportQueryFrom-BcbRvwcp.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DEXuBXHO.js} +1 -1
- package/dist/{ReportTemplate-CFiNMz79.js → ReportTemplate-DAk0qIJq.js} +1 -1
- package/dist/{Role-B-XDoJd5.js → Role-sSVr8txF.js} +3 -3
- package/dist/{RoleAssign-BolW8YVs.js → RoleAssign-gg9O7P1_.js} +3 -3
- package/dist/{RolePanel-HilSuYns.js → RolePanel-D2M-Wc-X.js} +1 -1
- package/dist/{RolePanel-2kfs5tw9.js → RolePanel-DsyVPcoq.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js → RolePanel.vue_vue_type_script_setup_true_lang-C4fuYoIS.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js → RolePanel.vue_vue_type_script_setup_true_lang-RR24avbF.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js → ScrollPanel.vue_vue_type_style_index_0_lang-6v5vVx-e.js} +1 -1
- package/dist/{Staff-BTk3whFC.js → Staff-DTDrOuE0.js} +3 -3
- package/dist/{StaffInfo-d3AuSzlA.js → StaffInfo-B2H_6lwQ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js → StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js} +1 -1
- package/dist/{StaffPanel-DV-D4jjz.js → StaffPanel-dpmnAD0A.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js → StaffPanel.vue_vue_type_script_setup_true_lang-dgV9B37R.js} +47 -39
- package/dist/{SysUser-BnjYytws.js → SysUser-BjpQdzSo.js} +2 -2
- package/dist/{SysUserPanel-CBoyD-Qi.js → SysUserPanel-C5IHO7JB.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js → SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js} +1 -1
- package/dist/{SystemMenu-kYB_ZaUt.js → SystemMenu-D7W9E8SF.js} +53 -50
- package/dist/{UserInfo-4dx97VBL.js → UserInfo-D_lbSbUh.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js → UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js} +1 -1
- package/dist/{childView-CHPNfTEb.js → childView-B1XV2jZ7.js} +1 -1
- package/dist/{childView-CKA_JgVZ.js → childView-LQllG9vw.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js → childView.vue_vue_type_style_index_0_lang-DN19uWOO.js} +31 -31
- package/dist/{childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js → childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js} +19 -20
- package/dist/{code-rule-CbxuZg0-.js → code-rule-DkKKcosO.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-nTOpqQYf.js → cron-task-bGVrr2Jg.js} +1 -1
- package/dist/{frameView-Z1tPUyCh.js → frameView-B3n2JXTj.js} +1 -1
- package/dist/index-DYT0k5Sg.js +8134 -0
- package/dist/{layoutView--MGA9zUB.js → layoutView-bh22tftc.js} +144 -145
- package/dist/{log-in-CSYJDA6m.js → log-in-Dk_xyZ_l.js} +1 -1
- package/dist/{log-out-DiwGCg7p.js → log-out-CERhlqtr.js} +1 -1
- package/dist/{login-C6Y0ajDp.js → login-C5EJWWLi.js} +124 -134
- package/dist/{login-log-C0V-_l3F.js → login-log-DJBGJVV0.js} +4 -4
- package/dist/{lov-view-Cmv7wZZ9.js → lov-view-BNGHpq-d.js} +2 -2
- package/dist/{menuInfo-UeutJpOa.js → menuInfo-2DBTH6Vf.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js → menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js} +37 -35
- package/dist/{pda-app-B6w99SJo.js → pda-app-BzmHIT9A.js} +1 -1
- package/dist/{resource-BybJvUv0.js → resource-D6UY8vN8.js} +1 -1
- package/dist/{su-welcome-C1bmxHoY.js → su-welcome-okexK2W2.js} +20 -20
- package/dist/{sys-config-BnmIDnCj.js → sys-config-9F_C1LzR.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +73 -65
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/index.ts +2 -1
- package/src/layout/components/lay-content/index.vue +136 -143
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
- package/src/layout/layoutView.vue +7 -6
- package/src/main.ts +2 -2
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +968 -945
- package/src/style/vxetable.scss +356 -348
- package/src/utils/dataFormat/index.ts +17 -18
- package/src/views/organization/staff/StaffPanel.vue +12 -3
- package/src/views/system/menu/AuthorityPanel.vue +142 -140
- package/src/views/system/menu/SystemMenu.vue +194 -185
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +6 -6
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/menu-favorite.vue +3 -2
- package/src/views/ulogin/login.vue +34 -23
- package/src/views/upms/user/login-log.vue +5 -5
- package/dist/index-C3q8HoJM.js +0 -4650
|
@@ -30,7 +30,7 @@ const a = {
|
|
|
30
30
|
}, {
|
|
31
31
|
field: "userName",
|
|
32
32
|
title: "message.udp.userName",
|
|
33
|
-
width:
|
|
33
|
+
width: 220
|
|
34
34
|
}, {
|
|
35
35
|
field: "loginTime",
|
|
36
36
|
title: "message.udp.loginTime",
|
|
@@ -42,15 +42,15 @@ const a = {
|
|
|
42
42
|
}, {
|
|
43
43
|
field: "browser",
|
|
44
44
|
title: "message.udp.browser",
|
|
45
|
-
width:
|
|
45
|
+
width: 130
|
|
46
46
|
}, {
|
|
47
47
|
field: "browserVersion",
|
|
48
48
|
title: "message.udp.browserVersion",
|
|
49
|
-
width:
|
|
49
|
+
width: 150
|
|
50
50
|
}, {
|
|
51
51
|
field: "ip",
|
|
52
52
|
title: "message.udp.ip",
|
|
53
|
-
width:
|
|
53
|
+
width: 200
|
|
54
54
|
}];
|
|
55
55
|
return (u, g) => {
|
|
56
56
|
const s = l("ut-grid");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as g, createElementBlock as w, openBlock as s, createBlock as C, createCommentVNode as R } from "vue";
|
|
2
2
|
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { y as b } from "./index-
|
|
4
|
-
import { _ as y } from "./childView.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { y as b } from "./index-DYT0k5Sg.js";
|
|
4
|
+
import { _ as y } from "./childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js";
|
|
5
5
|
import { useRender as D } from "@utogether/utils";
|
|
6
6
|
const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
7
7
|
name: "LovView",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as H, watch as M, ref as
|
|
1
|
+
import { defineComponent as H, watch as M, ref as S, resolveComponent as i, createElementBlock as L, openBlock as r, createVNode as t, withCtx as m, createBlock as u, createCommentVNode as p, Fragment as G, renderList as J, normalizeClass as K, createSlots as O, createElementVNode as Q, toDisplayString as W } from "vue";
|
|
2
2
|
import { useI18n as X } from "vue-i18n";
|
|
3
3
|
import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { templateRef as Z } from "@vueuse/core";
|
|
5
|
-
import { i as
|
|
6
|
-
const
|
|
5
|
+
import { i as ee, y as te } from "./index-DYT0k5Sg.js";
|
|
6
|
+
const ne = { class: "ut-menu-wrapper" }, q = "/uums/menu", ie = /* @__PURE__ */ H({
|
|
7
7
|
__name: "menuInfo",
|
|
8
8
|
props: {
|
|
9
9
|
show: { type: Boolean, default: !1 },
|
|
@@ -13,14 +13,14 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["close"],
|
|
15
15
|
setup(I, { emit: F }) {
|
|
16
|
-
const P =
|
|
16
|
+
const P = ee().getDataDict, g = I;
|
|
17
17
|
M(
|
|
18
18
|
() => g.show,
|
|
19
19
|
() => {
|
|
20
|
-
|
|
20
|
+
$.value = g.show && D();
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
const
|
|
23
|
+
const C = te(), { t: a } = X(), E = {
|
|
24
24
|
menuCode: [
|
|
25
25
|
{
|
|
26
26
|
required: !0,
|
|
@@ -63,7 +63,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
63
63
|
message: `${a("message.required")}${a("message.menuType")}`
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
|
-
}, T = Z("xForm", null), y =
|
|
66
|
+
}, T = Z("xForm", null), y = S(!1), $ = S(""), b = S(["fetch"]), A = F, D = () => {
|
|
67
67
|
const { record: e, dataStatus: s } = g, { id: l, parentId: f, hasChildren: n } = e;
|
|
68
68
|
if (s !== "update")
|
|
69
69
|
return !l && !f ? "su" : ((n || s === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
@@ -74,23 +74,23 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
74
74
|
let s;
|
|
75
75
|
const { record: l, dataStatus: f } = g;
|
|
76
76
|
if (f === "add") {
|
|
77
|
-
l.permissionCode = `${
|
|
78
|
-
const [n,
|
|
77
|
+
l.permissionCode = `${$.value}.${l.dispalyCode}`;
|
|
78
|
+
const [n, V] = await N(C.post(q, [l]));
|
|
79
79
|
if (!n && !["0", "5"].includes(l.menuCategory) && b.value.length) {
|
|
80
|
-
const
|
|
81
|
-
permissionCode: l.permissionCode + "." +
|
|
82
|
-
parentId:
|
|
83
|
-
menuName: R(
|
|
80
|
+
const k = b.value.map((v, w) => ({
|
|
81
|
+
permissionCode: l.permissionCode + "." + v,
|
|
82
|
+
parentId: V[0].id,
|
|
83
|
+
menuName: R(v),
|
|
84
84
|
menuType: 1,
|
|
85
85
|
enabled: "1",
|
|
86
|
-
sort: (
|
|
87
|
-
})), [
|
|
88
|
-
|
|
86
|
+
sort: (w + 1) * 10
|
|
87
|
+
})), [c, _] = await N(C.post(q, k));
|
|
88
|
+
c || (s = _[0]);
|
|
89
89
|
}
|
|
90
90
|
y.value = !1;
|
|
91
91
|
} else
|
|
92
|
-
l.permissionCode = l.dispalyCode, await N(
|
|
93
|
-
|
|
92
|
+
l.permissionCode = l.dispalyCode, await N(C.put(q, [l])), y.value = !1, s = l;
|
|
93
|
+
h("submit", s);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
}, R = (e) => ({
|
|
@@ -103,22 +103,22 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
103
103
|
var s;
|
|
104
104
|
return (s = P[e]) == null ? void 0 : s.children.map((l) => (l.enabled = l.dictCode === "0" && g.record.menuCategory !== "0", l));
|
|
105
105
|
};
|
|
106
|
-
function
|
|
106
|
+
function h(e, s) {
|
|
107
107
|
A("close", e, s);
|
|
108
108
|
}
|
|
109
109
|
return (e, s) => {
|
|
110
|
-
const l = i("vxe-option"), f = i("vxe-select"), n = i("vxe-form-item"),
|
|
111
|
-
return r(), L("div",
|
|
112
|
-
t(
|
|
110
|
+
const l = i("vxe-option"), f = i("vxe-select"), n = i("vxe-form-item"), V = i("vxe-input"), k = i("vxe-number-input"), c = i("vxe-checkbox"), _ = i("vxe-checkbox-group"), v = i("ut-icon-select"), w = i("vxe-form"), z = i("el-divider"), U = i("ut-button"), j = i("el-row"), x = i("el-drawer");
|
|
111
|
+
return r(), L("div", ne, [
|
|
112
|
+
t(x, {
|
|
113
113
|
"model-value": e.show,
|
|
114
114
|
title: e.$t("message.title.memuInfo"),
|
|
115
|
-
"before-close":
|
|
115
|
+
"before-close": h,
|
|
116
116
|
direction: "rtl",
|
|
117
117
|
"destroy-on-close": "",
|
|
118
118
|
size: "50%"
|
|
119
119
|
}, {
|
|
120
120
|
default: m(() => [
|
|
121
|
-
t(
|
|
121
|
+
t(w, {
|
|
122
122
|
ref_key: "xForm",
|
|
123
123
|
ref: T,
|
|
124
124
|
data: e.record,
|
|
@@ -162,7 +162,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
162
162
|
span: "24"
|
|
163
163
|
}, {
|
|
164
164
|
default: m(({ data: o }) => [
|
|
165
|
-
t(
|
|
165
|
+
t(V, {
|
|
166
166
|
modelValue: o.dispalyCode,
|
|
167
167
|
"onUpdate:modelValue": (d) => o.dispalyCode = d,
|
|
168
168
|
clearable: "",
|
|
@@ -172,7 +172,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
172
172
|
e.dataStatus === "add" ? {
|
|
173
173
|
name: "prefix",
|
|
174
174
|
fn: m(() => [
|
|
175
|
-
Q("span", null, W(
|
|
175
|
+
Q("span", null, W($.value), 1)
|
|
176
176
|
]),
|
|
177
177
|
key: "0"
|
|
178
178
|
} : void 0
|
|
@@ -267,11 +267,11 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
267
267
|
span: "24"
|
|
268
268
|
}, {
|
|
269
269
|
default: m(({ data: o }) => [
|
|
270
|
-
t(
|
|
270
|
+
t(k, {
|
|
271
271
|
modelValue: o.sort,
|
|
272
272
|
"onUpdate:modelValue": (d) => o.sort = d,
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
"control-config": { enabled: !1 },
|
|
274
|
+
tep: "10",
|
|
275
275
|
clearable: ""
|
|
276
276
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
277
277
|
]),
|
|
@@ -282,7 +282,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
282
282
|
title: e.$t("message.btn.auth")
|
|
283
283
|
}, {
|
|
284
284
|
default: m(() => [
|
|
285
|
-
t(
|
|
285
|
+
t(_, {
|
|
286
286
|
modelValue: b.value,
|
|
287
287
|
"onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o)
|
|
288
288
|
}, {
|
|
@@ -319,7 +319,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
319
319
|
span: "24"
|
|
320
320
|
}, {
|
|
321
321
|
default: m(({ data: o }) => [
|
|
322
|
-
t(
|
|
322
|
+
t(v, {
|
|
323
323
|
modelValue: o.icon,
|
|
324
324
|
"onUpdate:modelValue": (d) => o.icon = d
|
|
325
325
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -329,8 +329,8 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
329
329
|
]),
|
|
330
330
|
_: 1
|
|
331
331
|
}, 8, ["data", "loading"]),
|
|
332
|
-
t(
|
|
333
|
-
t(
|
|
332
|
+
t(z),
|
|
333
|
+
t(j, {
|
|
334
334
|
type: "flex",
|
|
335
335
|
justify: "end",
|
|
336
336
|
style: { "padding-right": "22px" }
|
|
@@ -339,11 +339,13 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
339
339
|
t(U, {
|
|
340
340
|
content: "cancel",
|
|
341
341
|
status: "warning",
|
|
342
|
-
|
|
342
|
+
icon: "ri-close-line",
|
|
343
|
+
onTap: h
|
|
343
344
|
}),
|
|
344
345
|
t(U, {
|
|
345
346
|
content: "confirm",
|
|
346
347
|
status: "primary",
|
|
348
|
+
icon: "ri-save-line",
|
|
347
349
|
onTap: B
|
|
348
350
|
})
|
|
349
351
|
]),
|
|
@@ -357,5 +359,5 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
|
|
|
357
359
|
}
|
|
358
360
|
});
|
|
359
361
|
export {
|
|
360
|
-
|
|
362
|
+
ie as _
|
|
361
363
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as re, ref as N, computed as K, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
|
|
2
2
|
import { useI18n as je } from "vue-i18n";
|
|
3
3
|
import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { I as Se, G as xe, y as $e, _ as Pe } from "./index-
|
|
4
|
+
import { I as Se, G as xe, y as $e, _ as Pe } from "./index-DYT0k5Sg.js";
|
|
5
5
|
import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
|
|
6
6
|
import { clone as oe, isString as Z } from "xe-utils";
|
|
7
7
|
import Ne from "qrcode";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as b, createCommentVNode as x, Fragment as U } from "vue";
|
|
2
2
|
import { successMessage as B } from "@utogether/utils";
|
|
3
3
|
import { useClipboard as N } from "@vueuse/core";
|
|
4
|
-
import { G as y } from "./index-
|
|
4
|
+
import { G as y } from "./index-DYT0k5Sg.js";
|
|
5
5
|
const q = {
|
|
6
6
|
name: "StaticResource"
|
|
7
7
|
}, V = /* @__PURE__ */ w({
|
|
@@ -2,7 +2,7 @@ import { defineComponent as J, ref as y, onMounted as K, resolveComponent as p,
|
|
|
2
2
|
import { useRouter as oe } from "vue-router";
|
|
3
3
|
import ne from "dayjs";
|
|
4
4
|
import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as de } from "@utogether/utils";
|
|
5
|
-
import { y as W, i as ue, p as me, _ as fe } from "./index-
|
|
5
|
+
import { y as W, i as ue, p as me, _ as fe } from "./index-DYT0k5Sg.js";
|
|
6
6
|
import { clone as pe, max as _e } from "xe-utils";
|
|
7
7
|
import ve from "vuedraggable";
|
|
8
8
|
const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = {
|
|
@@ -19,7 +19,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
19
19
|
setup(G, { emit: h }) {
|
|
20
20
|
const j = G, d = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), L = async () => {
|
|
21
21
|
$.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await ae(64), A();
|
|
22
|
-
},
|
|
22
|
+
}, q = (o, s) => {
|
|
23
23
|
var n;
|
|
24
24
|
d.value.splice(s, 1);
|
|
25
25
|
const t = (n = r.value[o.parentId]) == null ? void 0 : n.findIndex((_) => _ === o.menuId);
|
|
@@ -53,19 +53,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
53
53
|
var o;
|
|
54
54
|
return ((o = _e(d.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
|
|
55
55
|
}, T = () => {
|
|
56
|
-
const o = d.value.map((s) => ({
|
|
56
|
+
const o = d.value.map((s, t) => ({
|
|
57
57
|
userName: j.userName,
|
|
58
58
|
menuId: s.menuId,
|
|
59
|
-
seqNo:
|
|
59
|
+
seqNo: 10 * (t + 1)
|
|
60
60
|
}));
|
|
61
61
|
I.value = !0, W().post(Ee, o).then(() => {
|
|
62
|
-
ce(), E(),
|
|
62
|
+
ce(), E(), R("success");
|
|
63
63
|
}).finally(() => {
|
|
64
64
|
I.value = !1;
|
|
65
65
|
});
|
|
66
66
|
}, E = () => {
|
|
67
|
-
b.value = !1,
|
|
68
|
-
},
|
|
67
|
+
b.value = !1, R("close");
|
|
68
|
+
}, z = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], R = h;
|
|
69
69
|
return K(() => {
|
|
70
70
|
d.value = pe(j.dataSource, !0), b.value = !0, L();
|
|
71
71
|
}), (o, s) => {
|
|
@@ -108,7 +108,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
108
108
|
e("div", ye, [
|
|
109
109
|
e("div", {
|
|
110
110
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
111
|
-
style: Q({ backgroundColor:
|
|
111
|
+
style: Q({ backgroundColor: z(l) })
|
|
112
112
|
}, [
|
|
113
113
|
c(n, {
|
|
114
114
|
icon: m.icon || `ri:${o.icons[l]}-line`,
|
|
@@ -118,7 +118,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
118
118
|
e("span", be, f(m.menuName), 1),
|
|
119
119
|
e("i", {
|
|
120
120
|
class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
|
|
121
|
-
onClick: (u) =>
|
|
121
|
+
onClick: (u) => q(m, l)
|
|
122
122
|
}, null, 8, we)
|
|
123
123
|
])
|
|
124
124
|
])
|
|
@@ -230,7 +230,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
230
230
|
}, 8, ["modelValue", "loading"]);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), ze = { class: "ut-home m-3" }, Re = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, qe = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, We = { class: "flex flex-col" }, Ge = { class: "text-4xl" }, Pe = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
|
|
234
234
|
name: "UdpWelcome",
|
|
235
235
|
__name: "su-welcome",
|
|
236
236
|
setup(G) {
|
|
@@ -240,7 +240,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
240
240
|
}), L = () => {
|
|
241
241
|
var t, n;
|
|
242
242
|
return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((_) => _.roleName).join(",");
|
|
243
|
-
},
|
|
243
|
+
}, q = () => {
|
|
244
244
|
var t;
|
|
245
245
|
return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
|
|
246
246
|
}, V = () => {
|
|
@@ -272,7 +272,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
272
272
|
K(() => {
|
|
273
273
|
D(), H();
|
|
274
274
|
});
|
|
275
|
-
const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5],
|
|
275
|
+
const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], z = [
|
|
276
276
|
"community",
|
|
277
277
|
"shield-star",
|
|
278
278
|
"group",
|
|
@@ -289,7 +289,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
289
289
|
"tv",
|
|
290
290
|
"database-2",
|
|
291
291
|
"calendar"
|
|
292
|
-
],
|
|
292
|
+
], R = [
|
|
293
293
|
{
|
|
294
294
|
2023: { 12: { 30: "班", 31: "班" } }
|
|
295
295
|
},
|
|
@@ -327,9 +327,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
327
327
|
return (s, t) => {
|
|
328
328
|
var x;
|
|
329
329
|
const n = p("el-avatar"), _ = p("ut-flip-down"), M = p("el-empty"), S = p("iconify-icon-offline"), w = p("el-card"), U = p("el-col"), m = p("ut-calendar"), l = p("el-row"), u = ee("spinning");
|
|
330
|
-
return a(), v("div",
|
|
331
|
-
e("div",
|
|
332
|
-
e("div",
|
|
330
|
+
return a(), v("div", ze, [
|
|
331
|
+
e("div", Re, [
|
|
332
|
+
e("div", qe, [
|
|
333
333
|
e("div", null, [
|
|
334
334
|
c(n, {
|
|
335
335
|
size: "large",
|
|
@@ -355,7 +355,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
355
355
|
]),
|
|
356
356
|
e("div", Oe, [
|
|
357
357
|
t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
|
|
358
|
-
e("div", Be, f(
|
|
358
|
+
e("div", Be, f(q()), 1)
|
|
359
359
|
])
|
|
360
360
|
])
|
|
361
361
|
]),
|
|
@@ -415,7 +415,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
415
415
|
style: Q({ backgroundColor: E(P) })
|
|
416
416
|
}, [
|
|
417
417
|
c(S, {
|
|
418
|
-
icon: g.icon || `ri:${
|
|
418
|
+
icon: g.icon || `ri:${z[P]}-line`,
|
|
419
419
|
class: "text-2xl text-white"
|
|
420
420
|
}, null, 8, ["icon"])
|
|
421
421
|
], 4),
|
|
@@ -494,7 +494,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
494
494
|
default: i(() => [
|
|
495
495
|
e("div", nt, [
|
|
496
496
|
c(m, {
|
|
497
|
-
holidays:
|
|
497
|
+
holidays: R,
|
|
498
498
|
"statutory-holiday": o
|
|
499
499
|
})
|
|
500
500
|
])
|
|
@@ -511,7 +511,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
511
511
|
key: 0,
|
|
512
512
|
"data-source": d.value,
|
|
513
513
|
"user-name": B(h).getUserInfo.userName,
|
|
514
|
-
icons:
|
|
514
|
+
icons: z,
|
|
515
515
|
onClose: t[0] || (t[0] = (g) => b.value = !1),
|
|
516
516
|
onSuccess: D
|
|
517
517
|
}, null, 8, ["data-source", "user-name"])) : O("", !0)
|
|
@@ -3,7 +3,7 @@ import { useI18n as Q } from "vue-i18n";
|
|
|
3
3
|
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { cookies as E, successMessage as W, warnMessage as X } from "@utogether/utils";
|
|
5
5
|
import { isArray as Z } from "xe-utils";
|
|
6
|
-
import { G as ee, o as te, p as z, y as le } from "./index-
|
|
6
|
+
import { G as ee, o as te, p as z, y as le } from "./index-DYT0k5Sg.js";
|
|
7
7
|
const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, oe = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, se = { class: "flex items-center" }, ne = { class: "pl-2 text-xs" }, ie = { class: "pl-2" }, ue = { class: "pl-2" }, re = { class: "flex items-center" }, pe = { class: "pl-2 text-xs" }, de = { class: "pl-2" }, me = { class: "flex items-center" }, ce = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, j = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ q({
|
|
8
8
|
__name: "sys-config",
|
|
9
9
|
setup(fe) {
|