@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.10
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/build/plugins.ts +39 -32
- package/dist/{403-Dp617CWX.js → 403-Ctxjn4q8.js} +1 -1
- package/dist/{404-Cz_Axb6Y.js → 404-W5yzyiZ9.js} +1 -1
- package/dist/{500-BGCtRNse.js → 500-DXuGEOm4.js} +1 -1
- package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-C2tflCt8.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
- package/dist/{Company-IV3GTnzY.js → Company-PLez5GoH.js} +3 -3
- package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-CIGaQooL.js} +16 -16
- package/dist/{Department-B3W-OxW8.js → Department-B9wLsXFm.js} +3 -3
- package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-DSM4lTaz.js} +1 -1
- package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-B6a9wW_A.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +24 -26
- package/dist/DictView-DhFbQxdJ.js +110 -0
- package/dist/InvOrganization-D90AbR3b.js +66 -0
- package/dist/Org-DxBkYabD.js +39 -0
- package/dist/{Preview-BlDMmpdR.js → Preview-BFtRpBxw.js} +1 -1
- package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-BIa2QryC.js} +1 -1
- package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CnyjI-WD.js} +43 -43
- package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-BiK7yEhV.js} +1 -1
- package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +1 -1
- package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DdkLscP3.js} +28 -28
- package/dist/{Role-_q3lQ8CZ.js → Role-BrsxgK8D.js} +6 -6
- package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DiqwJqDa.js} +8 -8
- package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-BDusGyo7.js} +1 -1
- package/dist/{RolePanel-BQb1LlhD.js → RolePanel-Dqx5dI3f.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +21 -21
- package/dist/{Staff-BSf9Ypbk.js → Staff-Cwi9LQiZ.js} +3 -3
- package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-XjVtyaMv.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +11 -11
- package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-C-wYcFdv.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +2 -2
- package/dist/{SysUser-FAABuNti.js → SysUser-O4tvr-Ur.js} +2 -2
- package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-B853docZ.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
- package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-CXR6mrXr.js} +26 -26
- package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BkP8pE2a.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +39 -37
- package/dist/{childView-C_HmDQNd.js → childView-D0HwbgDT.js} +1 -1
- package/dist/{childView-uUlBcTza.js → childView-TRqUkSDC.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +40 -40
- package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
- package/dist/{code-rule-AgCVDKFy.js → code-rule-BV7PQWhK.js} +9 -10
- package/dist/core.es.js +14 -11
- package/dist/{cron-task-C6FgQxTi.js → cron-task-9ZS9bi7K.js} +1 -1
- package/dist/{frameView-BDgISK7N.js → frameView-DE83AN50.js} +1 -1
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-DVARtten.js +2623 -0
- package/dist/{layoutView-yb3DV2DQ.js → layoutView-D1U-c4By.js} +111 -110
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{login-RRpljbkm.js → login-sPCEiTGT.js} +106 -113
- package/dist/{lov-view-C9-rjzZR.js → lov-view-76NcYTYl.js} +2 -2
- package/dist/{menuInfo-CzPQyFhp.js → menuInfo-CxjfjFpm.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +100 -97
- package/dist/{pda-app-Dvy3U-b6.js → pda-app-BUH16bLj.js} +211 -197
- package/dist/{resource-Fy0lFkSV.js → resource-CCuHzoA6.js} +15 -15
- package/dist/{su-welcome-DYvSCUST.js → su-welcome-mRArONsd.js} +109 -110
- package/dist/{sys-config-DJ1vNQTy.js → sys-config-Cvt05yF6.js} +7 -7
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-CjmJiHoE.js → utogether-Dm_VBQHR.js} +1 -1
- package/index.ts +40 -36
- package/package.json +1 -1
- package/src/App.vue +65 -70
- package/src/api/index.ts +1 -1
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/count-down.vue +536 -0
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/form-upload.vue +414 -64
- package/src/components/udp/form.vue +112 -0
- package/src/components/udp/grid.vue +495 -0
- package/src/components/udp/index.ts +10 -4
- package/src/components/udp/lov.vue +388 -0
- package/src/components/udp/modal-form.vue +11 -2
- package/src/components/udp/modal-grid.vue +288 -0
- package/src/components/udp/upload.vue +423 -0
- package/src/components/udp/utils.ts +447 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +1 -1
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-tag/index.vue +625 -625
- package/src/layout/layoutView.vue +215 -215
- package/src/main.ts +23 -13
- package/src/plugins/i18n/en.ts +302 -289
- package/src/plugins/i18n/zh.ts +348 -337
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +956 -817
- package/src/router/index.ts +187 -183
- package/src/router/modules/remaining.ts +58 -83
- package/src/style/button.scss +85 -78
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +44 -11
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/{http → udp/http}/index.ts +8 -24
- package/src/utils/{http → udp/http}/types.d.ts +8 -5
- package/src/utils/udp/useRender.ts +17 -6
- package/src/views/login/login-view.vue +2 -2
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +2 -3
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/menu/SystemMenu.vue +183 -197
- package/src/views/system/menu/menuInfo.vue +363 -371
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +195 -193
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sys/sys-config.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +278 -278
- package/src/views/uapp/pda/pda-app.vue +208 -176
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +7 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/su-welcome.vue +3 -3
- package/src/views/ulogin/login.vue +14 -9
- package/src/views/upms/user/login-log.vue +1 -1
- package/src/views/urpt/design/DesignPanel.vue +507 -526
- package/src/views/urpt/design/ReportDesign.vue +15 -19
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +2 -1
- package/vite.config.ts +6 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
- package/dist/DictView-C-i7e4hZ.js +0 -95
- package/dist/InvOrganization-cfT6riGU.js +0 -260
- package/dist/Org-CA7vTDIF.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
- package/dist/index-DzOzUkf6.js +0 -3388
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as w, ref as o, resolveComponent as
|
|
1
|
+
import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as x, createCommentVNode as b, 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 { x as y } from "./index-
|
|
4
|
+
import { x as y } from "./index-DVARtten.js";
|
|
5
5
|
const q = {
|
|
6
6
|
name: "StaticResource"
|
|
7
7
|
}, V = /* @__PURE__ */ w({
|
|
@@ -15,15 +15,15 @@ const q = {
|
|
|
15
15
|
align: "center"
|
|
16
16
|
}, {
|
|
17
17
|
field: "templateCode",
|
|
18
|
-
title: "message.
|
|
18
|
+
title: "message.urpt.resourceCode",
|
|
19
19
|
width: 140
|
|
20
20
|
}, {
|
|
21
21
|
field: "templateName",
|
|
22
|
-
title: "message.
|
|
22
|
+
title: "message.urpt.resourceName",
|
|
23
23
|
width: 150
|
|
24
24
|
}, {
|
|
25
25
|
field: "templateUrl",
|
|
26
|
-
title: "message.
|
|
26
|
+
title: "message.urpt.resourceUrl",
|
|
27
27
|
miWidth: 200
|
|
28
28
|
}, {
|
|
29
29
|
field: "operate",
|
|
@@ -32,20 +32,20 @@ const q = {
|
|
|
32
32
|
slots: {
|
|
33
33
|
default: ({
|
|
34
34
|
row: e
|
|
35
|
-
}) => [
|
|
35
|
+
}) => [l(U, null, [l(r("ut-button"), {
|
|
36
36
|
content: "download",
|
|
37
37
|
icon: "ri-download-line",
|
|
38
38
|
status: "success",
|
|
39
39
|
onTap: () => g(e)
|
|
40
40
|
}, null)])]
|
|
41
41
|
}
|
|
42
|
-
}],
|
|
42
|
+
}], p = {
|
|
43
43
|
toolbarButtonClick({
|
|
44
44
|
code: e
|
|
45
45
|
}) {
|
|
46
46
|
e === "add" && _();
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, f = [{
|
|
49
49
|
field: "templateCode",
|
|
50
50
|
required: !0
|
|
51
51
|
}, {
|
|
@@ -67,26 +67,26 @@ const q = {
|
|
|
67
67
|
}, h = () => {
|
|
68
68
|
s.value.refreshData();
|
|
69
69
|
};
|
|
70
|
-
return (e,
|
|
71
|
-
const v =
|
|
72
|
-
return
|
|
70
|
+
return (e, u) => {
|
|
71
|
+
const v = r("ut-grid"), C = r("ut-modal-form");
|
|
72
|
+
return i(), k("div", null, [l(v, {
|
|
73
73
|
ref_key: "xgrid",
|
|
74
74
|
ref: s,
|
|
75
75
|
columns: c,
|
|
76
76
|
url: n,
|
|
77
77
|
editable: !1,
|
|
78
78
|
mode: "form",
|
|
79
|
-
events:
|
|
80
|
-
}, null, 512), t.value ? (
|
|
79
|
+
events: p
|
|
80
|
+
}, null, 512), t.value ? (i(), x(C, {
|
|
81
81
|
key: 0,
|
|
82
82
|
record: a.value,
|
|
83
|
-
items:
|
|
83
|
+
items: f,
|
|
84
84
|
width: 300,
|
|
85
85
|
height: 340,
|
|
86
86
|
"data-status": "add",
|
|
87
87
|
title: "静态资源新增",
|
|
88
88
|
url: n,
|
|
89
|
-
onClose:
|
|
89
|
+
onClose: u[0] || (u[0] = (R) => t.value = !1),
|
|
90
90
|
onConfirm: h
|
|
91
91
|
}, null, 8, ["record"])) : b("", !0)]);
|
|
92
92
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import
|
|
4
|
-
import { dbstorage as le, delay as ae, warnMessage as
|
|
5
|
-
import { q as G, e as de, n as me, _ as fe } from "./index-
|
|
1
|
+
import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as p, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
|
|
2
|
+
import { useRouter as ne } from "vue-router";
|
|
3
|
+
import oe from "dayjs";
|
|
4
|
+
import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as ue } from "@utogether/utils";
|
|
5
|
+
import { q as G, e as de, n as me, _ as fe } from "./index-DVARtten.js";
|
|
6
6
|
import { clone as _e, max as ve } from "xe-utils";
|
|
7
7
|
import pe 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 = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, qe = { class: "flex justify-end" }, De = "/upfm/v1/menuFavority", Ee = /* @__PURE__ */ J({
|
|
@@ -14,61 +14,60 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["close", "success"],
|
|
16
16
|
setup(P, { emit: h }) {
|
|
17
|
-
const j = P,
|
|
18
|
-
$.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((
|
|
19
|
-
}, R = (
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
const t = (
|
|
23
|
-
|
|
24
|
-
}, V = (
|
|
17
|
+
const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), E = async () => {
|
|
18
|
+
$.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((n) => n.menuCode !== "SysHome"), await ae(64), A();
|
|
19
|
+
}, R = (n, s) => {
|
|
20
|
+
var o;
|
|
21
|
+
u.value.splice(s, 1);
|
|
22
|
+
const t = (o = r.value[n.parentId]) == null ? void 0 : o.findIndex((v) => v === n.menuId);
|
|
23
|
+
r.value[n.parentId].splice(t, 1);
|
|
24
|
+
}, V = (n) => {
|
|
25
25
|
const s = [], t = [];
|
|
26
|
-
return
|
|
27
|
-
["5", "100"].includes(
|
|
26
|
+
return n.children.forEach((o) => {
|
|
27
|
+
["5", "100"].includes(o.menuCategory) ? s.push(o) : t.push(o);
|
|
28
28
|
}), { folder: s, menus: t };
|
|
29
29
|
}, A = () => {
|
|
30
|
-
j.dataSource.forEach((
|
|
31
|
-
|
|
30
|
+
j.dataSource.forEach((n) => {
|
|
31
|
+
r.value[n.parentId] ? r.value[n.parentId].push(n.menuId) : r.value[n.parentId] = [n.menuId];
|
|
32
32
|
});
|
|
33
|
-
}, q = (
|
|
33
|
+
}, q = (n, s) => {
|
|
34
34
|
debugger;
|
|
35
35
|
if (s.checked) {
|
|
36
|
-
if (
|
|
36
|
+
if (u.value.length === 16)
|
|
37
37
|
return X(() => {
|
|
38
|
-
|
|
39
|
-
}),
|
|
40
|
-
const t =
|
|
41
|
-
t && (t.seqNo = H() + 10, t.menuId = t.id,
|
|
38
|
+
r.value[n.id].splice(r.value[n.id].length - 1, 1);
|
|
39
|
+
}), ie("最多只能选择16个常用功能");
|
|
40
|
+
const t = n.children.find((o) => o.id === s.label);
|
|
41
|
+
t && (t.seqNo = H() + 10, t.menuId = t.id, u.value.push(t));
|
|
42
42
|
} else {
|
|
43
|
-
let t =
|
|
44
|
-
t !== -1 &&
|
|
43
|
+
let t = u.value.findIndex((o) => o.menuId === s.label);
|
|
44
|
+
t !== -1 && u.value.splice(t, 1), t = r.value[n.id].findIndex((o) => o === s.label), t !== -1 && r.value[n.id].splice(t, 1);
|
|
45
45
|
}
|
|
46
46
|
}, F = () => {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
u.value.forEach((n, s) => {
|
|
48
|
+
n.seqNo = (s + 1) * 10;
|
|
49
49
|
});
|
|
50
50
|
}, H = () => {
|
|
51
|
-
var
|
|
52
|
-
return ((
|
|
51
|
+
var n;
|
|
52
|
+
return ((n = ve(u.value, (s) => s.seqNo)) == null ? void 0 : n.seqNo) || 0;
|
|
53
53
|
}, T = () => {
|
|
54
|
-
|
|
55
|
-
const o = r.value.map((s) => ({
|
|
54
|
+
const n = u.value.map((s) => ({
|
|
56
55
|
userName: j.userName,
|
|
57
56
|
menuId: s.menuId,
|
|
58
57
|
seqNo: s.seqNo
|
|
59
58
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
I.value = !0, G().post(De, n).then(() => {
|
|
60
|
+
ce(), D(), z("success");
|
|
62
61
|
}).finally(() => {
|
|
63
62
|
I.value = !1;
|
|
64
63
|
});
|
|
65
64
|
}, D = () => {
|
|
66
65
|
b.value = !1, z("close");
|
|
67
|
-
}, L = (
|
|
66
|
+
}, L = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = h;
|
|
68
67
|
return K(() => {
|
|
69
|
-
|
|
70
|
-
}), (
|
|
71
|
-
const t = _("el-empty"),
|
|
68
|
+
u.value = _e(j.dataSource, !0), b.value = !0, E();
|
|
69
|
+
}), (n, s) => {
|
|
70
|
+
const t = _("el-empty"), o = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
|
|
72
71
|
return a(), N(U, {
|
|
73
72
|
modelValue: b.value,
|
|
74
73
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
@@ -80,37 +79,37 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
80
79
|
"show-footer": "",
|
|
81
80
|
onClose: D
|
|
82
81
|
}, {
|
|
83
|
-
default:
|
|
82
|
+
default: i(() => [
|
|
84
83
|
e("div", ge, [
|
|
85
|
-
|
|
84
|
+
c(v, {
|
|
86
85
|
heigth: "100",
|
|
87
86
|
class: "w-full border-b border-slate-300"
|
|
88
87
|
}, {
|
|
89
|
-
default:
|
|
88
|
+
default: i(() => [
|
|
90
89
|
e("div", he, [
|
|
91
|
-
|
|
90
|
+
u.value.length ? O("", !0) : (a(), N(t, {
|
|
92
91
|
key: 0,
|
|
93
92
|
"image-size": 50,
|
|
94
93
|
description: "",
|
|
95
94
|
class: "p-0"
|
|
96
95
|
})),
|
|
97
|
-
|
|
98
|
-
list:
|
|
96
|
+
c(B(pe), {
|
|
97
|
+
list: u.value,
|
|
99
98
|
handle: ".drag-item",
|
|
100
99
|
animation: "300",
|
|
101
100
|
"item-key": "id",
|
|
102
101
|
class: "flex",
|
|
103
102
|
onEnd: F
|
|
104
103
|
}, {
|
|
105
|
-
item:
|
|
104
|
+
item: i(({ element: m, index: l }) => [
|
|
106
105
|
e("div", xe, [
|
|
107
106
|
e("div", ye, [
|
|
108
107
|
e("div", {
|
|
109
108
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
110
109
|
style: Q({ backgroundColor: L(l) })
|
|
111
110
|
}, [
|
|
112
|
-
|
|
113
|
-
icon: m.icon || `ri:${
|
|
111
|
+
c(o, {
|
|
112
|
+
icon: m.icon || `ri:${n.icons[l]}-line`,
|
|
114
113
|
class: "text-2xl text-white"
|
|
115
114
|
}, null, 8, ["icon"])
|
|
116
115
|
], 4),
|
|
@@ -128,8 +127,8 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
128
127
|
]),
|
|
129
128
|
_: 1
|
|
130
129
|
}),
|
|
131
|
-
|
|
132
|
-
default:
|
|
130
|
+
c(v, { class: "u-favorite-menu--contain" }, {
|
|
131
|
+
default: i(() => [
|
|
133
132
|
e("div", ke, [
|
|
134
133
|
(a(!0), p(k, null, C($.value, (m) => (a(), p("div", {
|
|
135
134
|
key: m.id,
|
|
@@ -140,12 +139,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
140
139
|
e("div", Ne, f(m.menuName), 1)
|
|
141
140
|
]),
|
|
142
141
|
e("div", $e, [
|
|
143
|
-
|
|
144
|
-
modelValue:
|
|
145
|
-
"onUpdate:modelValue": (l) =>
|
|
142
|
+
c(S, {
|
|
143
|
+
modelValue: r.value[m.id],
|
|
144
|
+
"onUpdate:modelValue": (l) => r.value[m.id] = l,
|
|
146
145
|
onChange: (l) => q(m, l)
|
|
147
146
|
}, {
|
|
148
|
-
default:
|
|
147
|
+
default: i(() => [
|
|
149
148
|
(a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
|
|
150
149
|
key: l.id,
|
|
151
150
|
label: l.id,
|
|
@@ -164,12 +163,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
164
163
|
e("div", Ve, f(l.menuName), 1)
|
|
165
164
|
]),
|
|
166
165
|
e("div", Me, [
|
|
167
|
-
|
|
168
|
-
modelValue:
|
|
169
|
-
"onUpdate:modelValue": (d) =>
|
|
166
|
+
c(S, {
|
|
167
|
+
modelValue: r.value[l.id],
|
|
168
|
+
"onUpdate:modelValue": (d) => r.value[l.id] = d,
|
|
170
169
|
onChange: (d) => q(l, d)
|
|
171
170
|
}, {
|
|
172
|
-
default:
|
|
171
|
+
default: i(() => [
|
|
173
172
|
(a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
|
|
174
173
|
key: d.id,
|
|
175
174
|
label: d.id,
|
|
@@ -188,12 +187,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
188
187
|
e("div", Ue, f(d.menuName), 1)
|
|
189
188
|
]),
|
|
190
189
|
e("div", je, [
|
|
191
|
-
|
|
192
|
-
modelValue:
|
|
193
|
-
"onUpdate:modelValue": (x) =>
|
|
190
|
+
c(S, {
|
|
191
|
+
modelValue: r.value[d.id],
|
|
192
|
+
"onUpdate:modelValue": (x) => r.value[d.id] = x,
|
|
194
193
|
onChange: (x) => q(l, x)
|
|
195
194
|
}, {
|
|
196
|
-
default:
|
|
195
|
+
default: i(() => [
|
|
197
196
|
(a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
|
|
198
197
|
key: x.id,
|
|
199
198
|
label: x.id,
|
|
@@ -212,14 +211,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
212
211
|
})
|
|
213
212
|
])
|
|
214
213
|
]),
|
|
215
|
-
footer:
|
|
214
|
+
footer: i(() => [
|
|
216
215
|
e("div", qe, [
|
|
217
|
-
|
|
216
|
+
c(w, {
|
|
218
217
|
content: "cancel",
|
|
219
218
|
status: "warning",
|
|
220
219
|
onTap: D
|
|
221
220
|
}),
|
|
222
|
-
|
|
221
|
+
c(w, {
|
|
223
222
|
content: "confirm",
|
|
224
223
|
onTap: T
|
|
225
224
|
})
|
|
@@ -229,43 +228,43 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
229
228
|
}, 8, ["modelValue", "loading"]);
|
|
230
229
|
};
|
|
231
230
|
}
|
|
232
|
-
}), Le = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { 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" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { 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" },
|
|
231
|
+
}), Le = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { 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" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { 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" }, nt = { class: "text-gray-400 text-sm" }, ot = { class: "p-1" }, lt = /* @__PURE__ */ J({
|
|
233
232
|
name: "SuHome",
|
|
234
233
|
__name: "su-welcome",
|
|
235
234
|
setup(P) {
|
|
236
|
-
const h = de(), j =
|
|
235
|
+
const h = de(), j = ne(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
|
|
237
236
|
var s;
|
|
238
237
|
return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
|
|
239
238
|
}), E = () => {
|
|
240
|
-
var t,
|
|
241
|
-
return h.isAdminRole ? "系统管理员" : (
|
|
239
|
+
var t, o;
|
|
240
|
+
return h.isAdminRole ? "系统管理员" : (o = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : o.map((v) => v.roleName).join(",");
|
|
242
241
|
}, R = () => {
|
|
243
242
|
var t;
|
|
244
|
-
return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((
|
|
243
|
+
return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((o) => o.orgName).join(",");
|
|
245
244
|
}, V = () => {
|
|
246
|
-
const s = Number(
|
|
245
|
+
const s = Number(oe().format("HH"));
|
|
247
246
|
return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
|
|
248
247
|
}, A = () => {
|
|
249
248
|
const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
|
|
250
249
|
s.getFullYear(),
|
|
251
250
|
s.getMonth() + 1,
|
|
252
251
|
s.getDate()
|
|
253
|
-
), { gzYear:
|
|
254
|
-
return `${S}月${w}日 ${
|
|
252
|
+
), { gzYear: o, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
|
|
253
|
+
return `${S}月${w}日 ${o}${v}${M} ${U}`;
|
|
255
254
|
}, q = () => {
|
|
256
255
|
const s = "/upfm/v1/menuFavority";
|
|
257
256
|
I.value = !0;
|
|
258
257
|
const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
|
|
259
|
-
G().get(s, t).then((
|
|
260
|
-
|
|
258
|
+
G().get(s, t).then((o) => {
|
|
259
|
+
u.value = (o == null ? void 0 : o.list) || [];
|
|
261
260
|
}).finally(() => {
|
|
262
261
|
I.value = !1;
|
|
263
262
|
});
|
|
264
263
|
}, F = (s) => {
|
|
265
264
|
j.push(s.menuPath);
|
|
266
265
|
}, H = () => {
|
|
267
|
-
var
|
|
268
|
-
const s = "/
|
|
266
|
+
var o;
|
|
267
|
+
const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (o = h.getUserInfo) == null ? void 0 : o.name };
|
|
269
268
|
G().get(s, t).then((v) => {
|
|
270
269
|
$.value = (v == null ? void 0 : v.list) || [];
|
|
271
270
|
});
|
|
@@ -318,7 +317,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
318
317
|
10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
|
|
319
318
|
}
|
|
320
319
|
}
|
|
321
|
-
],
|
|
320
|
+
], n = [
|
|
322
321
|
{ name: "元旦", date: "2024-01-01" },
|
|
323
322
|
{ name: "春节", date: "2024-02-10" },
|
|
324
323
|
{ name: "清明节", date: "2024-04-04" },
|
|
@@ -329,17 +328,17 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
329
328
|
];
|
|
330
329
|
return (s, t) => {
|
|
331
330
|
var x;
|
|
332
|
-
const
|
|
331
|
+
const o = _("el-avatar"), v = _("ut-flip-down"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
|
|
333
332
|
return a(), p("div", Le, [
|
|
334
333
|
e("div", ze, [
|
|
335
334
|
e("div", Re, [
|
|
336
335
|
e("div", null, [
|
|
337
|
-
|
|
336
|
+
c(o, {
|
|
338
337
|
size: "large",
|
|
339
338
|
class: "text-4xl font-bold bg-[var(--el-color-primary)]"
|
|
340
339
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
Y(f(
|
|
340
|
+
default: i(() => [
|
|
341
|
+
Y(f(r.value), 1)
|
|
343
342
|
]),
|
|
344
343
|
_: 1
|
|
345
344
|
})
|
|
@@ -364,7 +363,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
364
363
|
]),
|
|
365
364
|
e("div", Ge, [
|
|
366
365
|
e("span", Pe, [
|
|
367
|
-
|
|
366
|
+
c(v, {
|
|
368
367
|
"show-days": !1,
|
|
369
368
|
"show-labels": !1
|
|
370
369
|
})
|
|
@@ -372,19 +371,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
372
371
|
e("div", We, f(A()), 1)
|
|
373
372
|
])
|
|
374
373
|
]),
|
|
375
|
-
|
|
374
|
+
c(l, {
|
|
376
375
|
class: "m-2",
|
|
377
376
|
gutter: 10
|
|
378
377
|
}, {
|
|
379
|
-
default:
|
|
378
|
+
default: i(() => [
|
|
380
379
|
te((a(), N(U, {
|
|
381
380
|
lg: 24,
|
|
382
381
|
md: 24,
|
|
383
382
|
class: ""
|
|
384
383
|
}, {
|
|
385
|
-
default:
|
|
386
|
-
|
|
387
|
-
header:
|
|
384
|
+
default: i(() => [
|
|
385
|
+
c(w, { class: "mb-2" }, {
|
|
386
|
+
header: i(() => [
|
|
388
387
|
e("div", { class: "flex items-center justify-between dark:bg-black" }, [
|
|
389
388
|
t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
|
|
390
389
|
e("span", {
|
|
@@ -396,18 +395,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
396
395
|
]))
|
|
397
396
|
])
|
|
398
397
|
]),
|
|
399
|
-
default:
|
|
398
|
+
default: i(() => [
|
|
400
399
|
e("div", Ye, [
|
|
401
|
-
|
|
400
|
+
u.value.length ? O("", !0) : (a(), N(M, {
|
|
402
401
|
key: 0,
|
|
403
402
|
"image-size": 100,
|
|
404
403
|
description: "快来添加常用菜单吧!",
|
|
405
404
|
class: "p-0 pb-3"
|
|
406
405
|
})),
|
|
407
406
|
e("ul", {
|
|
408
|
-
class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2":
|
|
407
|
+
class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": u.value.length > 8 }])
|
|
409
408
|
}, [
|
|
410
|
-
(a(!0), p(k, null, C(
|
|
409
|
+
(a(!0), p(k, null, C(u.value, (g, W) => (a(), p("li", {
|
|
411
410
|
key: g.id,
|
|
412
411
|
class: "text-center list-none bg-white",
|
|
413
412
|
onClick: (at) => F(g)
|
|
@@ -417,7 +416,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
417
416
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
418
417
|
style: Q({ backgroundColor: D(W) })
|
|
419
418
|
}, [
|
|
420
|
-
|
|
419
|
+
c(S, {
|
|
421
420
|
icon: g.icon || `ri:${L[W]}-line`,
|
|
422
421
|
class: "text-2xl text-white"
|
|
423
422
|
}, null, 8, ["icon"])
|
|
@@ -436,19 +435,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
436
435
|
})), [
|
|
437
436
|
[d, I.value]
|
|
438
437
|
]),
|
|
439
|
-
|
|
438
|
+
c(U, {
|
|
440
439
|
xl: 16,
|
|
441
440
|
lg: 12,
|
|
442
441
|
md: 24
|
|
443
442
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
446
|
-
header:
|
|
443
|
+
default: i(() => [
|
|
444
|
+
c(w, { class: "mb-2" }, {
|
|
445
|
+
header: i(() => t[7] || (t[7] = [
|
|
447
446
|
e("div", { class: "font-bold" }, [
|
|
448
447
|
e("span", null, "个人动态")
|
|
449
448
|
], -1)
|
|
450
449
|
])),
|
|
451
|
-
default:
|
|
450
|
+
default: i(() => [
|
|
452
451
|
e("div", Xe, [
|
|
453
452
|
e("ul", Ze, [
|
|
454
453
|
(a(!0), p(k, null, C($.value, (g) => (a(), p("li", {
|
|
@@ -457,9 +456,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
457
456
|
}, [
|
|
458
457
|
e("div", et, [
|
|
459
458
|
e("div", null, [
|
|
460
|
-
|
|
461
|
-
default:
|
|
462
|
-
Y(f(
|
|
459
|
+
c(o, { class: "text-base" }, {
|
|
460
|
+
default: i(() => [
|
|
461
|
+
Y(f(r.value), 1)
|
|
463
462
|
]),
|
|
464
463
|
_: 1
|
|
465
464
|
})
|
|
@@ -469,7 +468,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
469
468
|
e("span", st, f(g.browser), 1),
|
|
470
469
|
e("span", null, f(g.browserVersion || g.platformVersion), 1)
|
|
471
470
|
]),
|
|
472
|
-
e("div",
|
|
471
|
+
e("div", nt, f(g.loginTime), 1)
|
|
473
472
|
])
|
|
474
473
|
])
|
|
475
474
|
]))), 128))
|
|
@@ -481,24 +480,24 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
481
480
|
]),
|
|
482
481
|
_: 1
|
|
483
482
|
}),
|
|
484
|
-
|
|
483
|
+
c(U, {
|
|
485
484
|
xl: 8,
|
|
486
485
|
lg: 12,
|
|
487
486
|
md: 24,
|
|
488
487
|
class: ""
|
|
489
488
|
}, {
|
|
490
|
-
default:
|
|
491
|
-
|
|
492
|
-
header:
|
|
489
|
+
default: i(() => [
|
|
490
|
+
c(w, { class: "mb-2" }, {
|
|
491
|
+
header: i(() => t[8] || (t[8] = [
|
|
493
492
|
e("div", { class: "font-bold" }, [
|
|
494
493
|
e("span", null, "日历")
|
|
495
494
|
], -1)
|
|
496
495
|
])),
|
|
497
|
-
default:
|
|
498
|
-
e("div",
|
|
499
|
-
|
|
496
|
+
default: i(() => [
|
|
497
|
+
e("div", ot, [
|
|
498
|
+
c(m, {
|
|
500
499
|
holidays: z,
|
|
501
|
-
"statutory-holiday":
|
|
500
|
+
"statutory-holiday": n
|
|
502
501
|
})
|
|
503
502
|
])
|
|
504
503
|
]),
|
|
@@ -512,7 +511,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
512
511
|
}),
|
|
513
512
|
b.value ? (a(), N(Ee, {
|
|
514
513
|
key: 0,
|
|
515
|
-
"data-source":
|
|
514
|
+
"data-source": u.value,
|
|
516
515
|
"user-name": B(h).getUserInfo.userName,
|
|
517
516
|
icons: L,
|
|
518
517
|
onClose: t[0] || (t[0] = (g) => b.value = !1),
|
|
@@ -521,7 +520,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
521
520
|
]);
|
|
522
521
|
};
|
|
523
522
|
}
|
|
524
|
-
}), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-
|
|
523
|
+
}), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-5b8ab4a4"]]);
|
|
525
524
|
export {
|
|
526
525
|
_t as default
|
|
527
526
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as M, ref as j, reactive as E, computed as O, onMounted as S, resolveComponent as c, resolveDirective as T, withDirectives as q, createElementBlock as x, openBlock as A, createElementVNode as u, createVNode as a, withCtx as o, createTextVNode as v, toDisplayString as p } from "vue";
|
|
2
2
|
import { useI18n as B } from "vue-i18n";
|
|
3
3
|
import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { cookies as F, successMessage as J, warnMessage as
|
|
5
|
-
import { isArray as
|
|
6
|
-
import { x as
|
|
4
|
+
import { cookies as F, successMessage as J, warnMessage as K } from "@utogether/utils";
|
|
5
|
+
import { isArray as R } from "xe-utils";
|
|
6
|
+
import { x as Y, m as H, q as Q } from "./index-DVARtten.js";
|
|
7
7
|
const W = { class: "flex flex-col items-center bg-white u-system-config" }, X = { class: "flex justify-end w-1/2 p-2" }, Z = { class: "flex w-1/2 p-2 overflow-y-auto border border-gray-300 rounded-md" }, ee = { class: "flex items-center" }, te = { class: "pl-2 text-xs" }, se = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, oe = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ie = { class: "flex items-center" }, ue = { class: "pl-2 text-xs" }, k = "/upfm/v1/sysConfig", be = /* @__PURE__ */ M({
|
|
8
8
|
__name: "sys-config",
|
|
9
9
|
setup(de) {
|
|
@@ -11,12 +11,12 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
11
11
|
defaultLanguage: "zh",
|
|
12
12
|
title: "U-DP",
|
|
13
13
|
ispTitle: "U-DP",
|
|
14
|
-
i18nEnabled: "
|
|
14
|
+
i18nEnabled: "N",
|
|
15
15
|
copyright: "深圳友聚信息技术有限公司",
|
|
16
16
|
logo: [],
|
|
17
17
|
backgroundImg: [],
|
|
18
18
|
favicon: []
|
|
19
|
-
}), y = Q(), { t: m } = B(), f = j(
|
|
19
|
+
}), y = Q(), { t: m } = B(), f = j(Y());
|
|
20
20
|
let r = [];
|
|
21
21
|
const U = E({
|
|
22
22
|
defaultLanguage: [
|
|
@@ -42,7 +42,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
42
42
|
configCategory: "system",
|
|
43
43
|
fileName: ""
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
R(s[t]) && (l.configValue = C(s[t][0]).url, l.fileName = C(s[t][0]).name);
|
|
46
46
|
const d = r.findIndex((i) => i.configCode === t);
|
|
47
47
|
d !== -1 ? r[d] = Object.assign(r[d], l) : r.push(l);
|
|
48
48
|
}), e == null || e.validate(async (t) => {
|
|
@@ -56,7 +56,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
56
56
|
});
|
|
57
57
|
}, C = (e) => e != null && e.response ? { url: e.response.data, name: e.name } : { url: (e == null ? void 0 : e.realpath) || (e == null ? void 0 : e.url), name: e == null ? void 0 : e.name }, V = (e) => {
|
|
58
58
|
if (e)
|
|
59
|
-
return
|
|
59
|
+
return K(m("message.tip.singleImg"));
|
|
60
60
|
}, w = () => {
|
|
61
61
|
Object.keys(s).forEach((e) => {
|
|
62
62
|
const t = r.find((l) => l.configCode === e);
|