@utogether/udp-core 1.0.0 → 1.0.1-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/build/plugins.ts +8 -2
- package/dist/{403-B1R-4vXw.js → 403-Dp617CWX.js} +9 -8
- package/dist/{404-fXPl8csw.js → 404-Cz_Axb6Y.js} +15 -14
- package/dist/{500-eI5842YB.js → 500-BGCtRNse.js} +11 -10
- package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DGGfm7IS.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js} +3 -3
- package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
- package/dist/{Company-CYC9Avfz.js → Company-IV3GTnzY.js} +3 -3
- package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-qV-_VtoL.js} +10 -10
- package/dist/{Department-B4BNSiYx.js → Department-B3W-OxW8.js} +3 -3
- package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-Cw3OWxE7.js} +23 -23
- package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-BFxR2fHJ.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js} +6 -6
- package/dist/{DictView-bIS5-rK-.js → DictView-C-i7e4hZ.js} +9 -9
- package/dist/InvOrganization-cfT6riGU.js +260 -0
- package/dist/{Org-kXHSjsgJ.js → Org-CA7vTDIF.js} +3 -3
- package/dist/{Preview-CRyiwUIR.js → Preview-BlDMmpdR.js} +1 -1
- package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-Cub_85LA.js} +1 -1
- package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-hFhq5UVE.js} +10 -10
- package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-ChkWEyxT.js} +5 -5
- package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-KVyD_8Dj.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js} +6 -5
- package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-ag9NDvh2.js} +11 -11
- package/dist/{Role-BwTV2QMH.js → Role-_q3lQ8CZ.js} +3 -3
- package/dist/{RoleAssign-De1JjOun.js → RoleAssign-DZb9IRsm.js} +3 -3
- package/dist/{RolePanel-pUBXsqCM.js → RolePanel-BQb1LlhD.js} +1 -1
- package/dist/{RolePanel-E3RcdByM.js → RolePanel-CsLsz-Ds.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js} +12 -12
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js} +4 -4
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js} +8 -8
- package/dist/{Staff-Czm7A8vI.js → Staff-BSf9Ypbk.js} +3 -3
- package/dist/StaffInfo-BNKasyMF.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js} +7 -7
- package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-Bpq0WVlH.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js} +46 -49
- package/dist/{SysUser-BGwbttRn.js → SysUser-FAABuNti.js} +2 -2
- package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-PxJeOgHm.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js} +1 -2
- package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-7NAGon.js} +47 -45
- package/dist/{UserInfo-BsyAcT2d.js → UserInfo-ClXKtyGo.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js} +13 -13
- package/dist/{childView-CyuLTUqC.js → childView-C_HmDQNd.js} +1 -1
- package/dist/{childView-CF83nhxb.js → childView-uUlBcTza.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js} +6 -6
- package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js} +1 -1
- package/dist/{code-rule-Bz-gnktN.js → code-rule-AgCVDKFy.js} +6 -6
- package/dist/core.es.js +4 -4
- package/dist/{cron-task-CIifSUdW.js → cron-task-C6FgQxTi.js} +11 -11
- package/dist/{frameView-_d2mqjjQ.js → frameView-BDgISK7N.js} +15 -14
- package/dist/index-DzOzUkf6.js +3388 -0
- package/dist/{layoutView-DLKVepB8.js → layoutView-yb3DV2DQ.js} +658 -653
- package/dist/{login-LREiDfFU.js → login-RRpljbkm.js} +26 -25
- package/dist/{lov-view-DDrIVILB.js → lov-view-C9-rjzZR.js} +5 -5
- package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-CzPQyFhp.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js} +17 -17
- package/dist/pda-app-Dvy3U-b6.js +696 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-BCwx9fEv.js → resource-Fy0lFkSV.js} +7 -7
- package/dist/{su-welcome-189A7N4r.js → su-welcome-DYvSCUST.js} +41 -40
- package/dist/{sys-config-BZ3sejow.js → sys-config-DJ1vNQTy.js} +18 -18
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-r08LNiIZ.js → utogether-CjmJiHoE.js} +6 -6
- package/package.json +4 -2
- package/src/App.vue +3 -3
- package/src/components/udp/form-upload.vue +132 -0
- package/src/components/udp/index.ts +4 -0
- package/src/components/udp/modal-form.vue +180 -0
- package/src/components/udp/utils.ts +40 -0
- package/src/main.ts +5 -4
- package/src/plugins/vxe-table/index.ts +3 -3
- package/src/plugins/vxe-table/render.tsx +604 -184
- package/src/utils/udp/useRender.ts +420 -0
- package/src/views/organization/inv-org/InvOrganization.vue +2 -1
- package/src/views/organization/staff/StaffInfo.vue +0 -30
- package/src/views/organization/staff/StaffPanel.vue +4 -3
- package/src/views/system/menu/AuthorityPanel.vue +2 -2
- package/src/views/system/menu/SystemMenu.vue +9 -3
- package/src/views/system/menu/menuInfo.vue +6 -3
- package/src/views/system/role/AuthorityInfo.vue +1 -19
- package/src/views/system/sysUser/SysUserPanel.vue +1 -1
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/uhome/components/menu-favorite.vue +1 -1
- package/src/views/uhome/su-welcome.vue +1 -1
- package/src/views/ulogin/login.vue +1 -1
- package/types/global.d.ts +0 -1
- package/vite.config.ts +9 -2
- package/dist/InvOrganization-MuM2jtsG.js +0 -66
- package/dist/StaffInfo-DJzvBuxy.js +0 -4
- package/dist/core.umd.js +0 -173
- package/dist/index-BKIw8tSn.js +0 -9195
- package/dist/pda-app-CRhVGijN.js +0 -2209
- package/dist/redirect-DiaNDu8F.js +0 -15
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/components/ReCountTo/README.md +0 -2
- package/src/components/ReCountTo/index.ts +0 -18
- package/src/components/ReCountTo/src/normal/index.tsx +0 -165
- package/src/components/ReCountTo/src/normal/props.ts +0 -37
- package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
- package/src/components/ReCountTo/src/rebound/props.ts +0 -14
- package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
- package/src/components/ReCropper/index.ts +0 -14
- package/src/components/ReCropper/src/index.tsx +0 -141
- package/src/components/ReFlicker/index.css +0 -39
- package/src/components/ReFlicker/index.ts +0 -50
- package/src/components/ReFlop/index.ts +0 -14
- package/src/components/ReFlop/src/Filpper.tsx +0 -99
- package/src/components/ReFlop/src/filpper.css +0 -184
- package/src/components/ReFlop/src/index.vue +0 -126
- package/src/components/ReFlowChart/index.ts +0 -24
- package/src/components/ReFlowChart/src/Control.vue +0 -139
- package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
- package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +0 -62
- package/src/components/ReSplitPane/index.css +0 -49
- package/src/components/ReSplitPane/index.tsx +0 -119
- package/src/components/ReSplitPane/resizer.css +0 -45
- package/src/components/ReSplitPane/resizer.tsx +0 -30
- package/src/components/SuCommon/card/components/Card.vue +0 -148
- package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
- package/src/components/SuCommon/card/index.vue +0 -142
- package/src/components/SuCommon/icon-select/index.vue +0 -241
- package/src/components/SuCommon/table/index.vue +0 -208
- package/src/components/SuCommon/utils/index.ts +0 -103
- package/src/components/SuCommon/utils/slot.tsx +0 -50
- package/src/views/components/contextmenu/basic.vue +0 -74
- package/src/views/components/contextmenu/context-menu.vue +0 -40
- package/src/views/components/contextmenu/menuDynamic.vue +0 -99
- package/src/views/components/contextmenu/menuGroup.vue +0 -71
- package/src/views/components/count-to/index.vue +0 -43
- package/src/views/components/cropping/index.vue +0 -59
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +0 -82
- package/src/views/components/video/index.vue +0 -57
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as
|
|
2
|
-
import { successMessage as
|
|
1
|
+
import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
|
|
2
|
+
import { successMessage as B } from "@utogether/utils";
|
|
3
3
|
import { useClipboard as N } from "@vueuse/core";
|
|
4
|
-
import {
|
|
4
|
+
import { x as y } from "./index-DzOzUkf6.js";
|
|
5
5
|
const q = {
|
|
6
6
|
name: "StaticResource"
|
|
7
7
|
}, V = /* @__PURE__ */ w({
|
|
@@ -32,7 +32,7 @@ const q = {
|
|
|
32
32
|
slots: {
|
|
33
33
|
default: ({
|
|
34
34
|
row: e
|
|
35
|
-
}) => [r(
|
|
35
|
+
}) => [r(U, null, [r(l("ut-button"), {
|
|
36
36
|
content: "download",
|
|
37
37
|
icon: "ri-download-line",
|
|
38
38
|
status: "success",
|
|
@@ -63,7 +63,7 @@ const q = {
|
|
|
63
63
|
}], t = o(!1), _ = (e) => {
|
|
64
64
|
a.value = {}, t.value = !0;
|
|
65
65
|
}, g = (e) => {
|
|
66
|
-
m(d + "/ufil/" + e.templateUrl),
|
|
66
|
+
m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
|
|
67
67
|
}, h = () => {
|
|
68
68
|
s.value.refreshData();
|
|
69
69
|
};
|
|
@@ -77,7 +77,7 @@ const q = {
|
|
|
77
77
|
editable: !1,
|
|
78
78
|
mode: "form",
|
|
79
79
|
events: f
|
|
80
|
-
}, null, 512), t.value ? (u(),
|
|
80
|
+
}, null, 512), t.value ? (u(), x(C, {
|
|
81
81
|
key: 0,
|
|
82
82
|
record: a.value,
|
|
83
83
|
items: p,
|
|
@@ -88,7 +88,7 @@ const q = {
|
|
|
88
88
|
url: n,
|
|
89
89
|
onClose: i[0] || (i[0] = (R) => t.value = !1),
|
|
90
90
|
onConfirm: h
|
|
91
|
-
}, null, 8, ["record"])) :
|
|
91
|
+
}, null, 8, ["record"])) : b("", !0)]);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as c, createElementVNode as e, createVNode as i, 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 {
|
|
3
|
-
import
|
|
4
|
-
import { dbstorage as
|
|
2
|
+
import { useRouter as oe } from "vue-router";
|
|
3
|
+
import ne from "dayjs";
|
|
4
|
+
import { dbstorage as le, delay as ae, warnMessage as ce, successMessage as ie, lunarCalendar as re, cookies as ue } from "@utogether/utils";
|
|
5
|
+
import { q as G, e as de, n as me, _ as fe } from "./index-DzOzUkf6.js";
|
|
5
6
|
import { clone as _e, max as ve } from "xe-utils";
|
|
6
7
|
import pe from "vuedraggable";
|
|
7
|
-
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" },
|
|
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({
|
|
8
9
|
__name: "menu-favorite",
|
|
9
10
|
props: {
|
|
10
11
|
dataSource: { default: () => [] },
|
|
@@ -13,8 +14,8 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
13
14
|
},
|
|
14
15
|
emits: ["close", "success"],
|
|
15
16
|
setup(P, { emit: h }) {
|
|
16
|
-
const j = P, r = y([]), $ = y([]), b = y(!1), I = y(!1), u = y({}),
|
|
17
|
-
$.value = await
|
|
17
|
+
const j = P, r = y([]), $ = y([]), b = y(!1), I = y(!1), u = y({}), E = async () => {
|
|
18
|
+
$.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await ae(64), A();
|
|
18
19
|
}, R = (o, s) => {
|
|
19
20
|
var n;
|
|
20
21
|
r.value.splice(s, 1);
|
|
@@ -29,13 +30,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
29
30
|
j.dataSource.forEach((o) => {
|
|
30
31
|
u.value[o.parentId] ? u.value[o.parentId].push(o.menuId) : u.value[o.parentId] = [o.menuId];
|
|
31
32
|
});
|
|
32
|
-
},
|
|
33
|
+
}, q = (o, s) => {
|
|
33
34
|
debugger;
|
|
34
35
|
if (s.checked) {
|
|
35
36
|
if (r.value.length === 16)
|
|
36
37
|
return X(() => {
|
|
37
38
|
u.value[o.id].splice(u.value[o.id].length - 1, 1);
|
|
38
|
-
}),
|
|
39
|
+
}), ce("最多只能选择16个常用功能");
|
|
39
40
|
const t = o.children.find((n) => n.id === s.label);
|
|
40
41
|
t && (t.seqNo = H() + 10, t.menuId = t.id, r.value.push(t));
|
|
41
42
|
} else {
|
|
@@ -56,16 +57,16 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
56
57
|
menuId: s.menuId,
|
|
57
58
|
seqNo: s.seqNo
|
|
58
59
|
}));
|
|
59
|
-
console.log(o), I.value = !0, G().post(
|
|
60
|
-
|
|
60
|
+
console.log(o), I.value = !0, G().post(De, o).then(() => {
|
|
61
|
+
ie(), D(), z("success");
|
|
61
62
|
}).finally(() => {
|
|
62
63
|
I.value = !1;
|
|
63
64
|
});
|
|
64
|
-
},
|
|
65
|
+
}, D = () => {
|
|
65
66
|
b.value = !1, z("close");
|
|
66
|
-
},
|
|
67
|
+
}, L = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
|
|
67
68
|
return K(() => {
|
|
68
|
-
r.value = _e(j.dataSource, !0), b.value = !0,
|
|
69
|
+
r.value = _e(j.dataSource, !0), b.value = !0, E();
|
|
69
70
|
}), (o, s) => {
|
|
70
71
|
const t = _("el-empty"), n = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
|
|
71
72
|
return a(), N(U, {
|
|
@@ -77,7 +78,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
77
78
|
title: "常用菜单设置(拖动可改变菜单顺序)",
|
|
78
79
|
"class-name": "u-favorite-modal",
|
|
79
80
|
"show-footer": "",
|
|
80
|
-
onClose:
|
|
81
|
+
onClose: D
|
|
81
82
|
}, {
|
|
82
83
|
default: c(() => [
|
|
83
84
|
e("div", ge, [
|
|
@@ -106,7 +107,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
106
107
|
e("div", ye, [
|
|
107
108
|
e("div", {
|
|
108
109
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
109
|
-
style: Q({ backgroundColor:
|
|
110
|
+
style: Q({ backgroundColor: L(l) })
|
|
110
111
|
}, [
|
|
111
112
|
i(n, {
|
|
112
113
|
icon: m.icon || `ri:${o.icons[l]}-line`,
|
|
@@ -142,7 +143,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
142
143
|
i(S, {
|
|
143
144
|
modelValue: u.value[m.id],
|
|
144
145
|
"onUpdate:modelValue": (l) => u.value[m.id] = l,
|
|
145
|
-
onChange: (l) =>
|
|
146
|
+
onChange: (l) => q(m, l)
|
|
146
147
|
}, {
|
|
147
148
|
default: c(() => [
|
|
148
149
|
(a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
|
|
@@ -166,7 +167,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
166
167
|
i(S, {
|
|
167
168
|
modelValue: u.value[l.id],
|
|
168
169
|
"onUpdate:modelValue": (d) => u.value[l.id] = d,
|
|
169
|
-
onChange: (d) =>
|
|
170
|
+
onChange: (d) => q(l, d)
|
|
170
171
|
}, {
|
|
171
172
|
default: c(() => [
|
|
172
173
|
(a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
|
|
@@ -190,7 +191,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
190
191
|
i(S, {
|
|
191
192
|
modelValue: u.value[d.id],
|
|
192
193
|
"onUpdate:modelValue": (x) => u.value[d.id] = x,
|
|
193
|
-
onChange: (x) =>
|
|
194
|
+
onChange: (x) => q(l, x)
|
|
194
195
|
}, {
|
|
195
196
|
default: c(() => [
|
|
196
197
|
(a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
|
|
@@ -212,11 +213,11 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
212
213
|
])
|
|
213
214
|
]),
|
|
214
215
|
footer: c(() => [
|
|
215
|
-
e("div",
|
|
216
|
+
e("div", qe, [
|
|
216
217
|
i(w, {
|
|
217
218
|
content: "cancel",
|
|
218
219
|
status: "warning",
|
|
219
|
-
onTap:
|
|
220
|
+
onTap: D
|
|
220
221
|
}),
|
|
221
222
|
i(w, {
|
|
222
223
|
content: "confirm",
|
|
@@ -228,33 +229,33 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
228
229
|
}, 8, ["modelValue", "loading"]);
|
|
229
230
|
};
|
|
230
231
|
}
|
|
231
|
-
}),
|
|
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" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
|
|
232
233
|
name: "SuHome",
|
|
233
234
|
__name: "su-welcome",
|
|
234
235
|
setup(P) {
|
|
235
|
-
const h =
|
|
236
|
+
const h = de(), j = oe(), r = y([]), $ = y([]), b = y(!1), I = y(!1), u = Z(() => {
|
|
236
237
|
var s;
|
|
237
238
|
return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
|
|
238
|
-
}),
|
|
239
|
+
}), E = () => {
|
|
239
240
|
var t, n;
|
|
240
241
|
return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((v) => v.roleName).join(",");
|
|
241
242
|
}, R = () => {
|
|
242
243
|
var t;
|
|
243
|
-
return h.isAdminRole ? "【系统管理员】拥有所有组织" :
|
|
244
|
+
return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
|
|
244
245
|
}, V = () => {
|
|
245
|
-
const s = Number(
|
|
246
|
+
const s = Number(ne().format("HH"));
|
|
246
247
|
return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
|
|
247
248
|
}, A = () => {
|
|
248
|
-
const s = /* @__PURE__ */ new Date(), t =
|
|
249
|
+
const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
|
|
249
250
|
s.getFullYear(),
|
|
250
251
|
s.getMonth() + 1,
|
|
251
252
|
s.getDate()
|
|
252
253
|
), { gzYear: n, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
|
|
253
254
|
return `${S}月${w}日 ${n}${v}${M} ${U}`;
|
|
254
|
-
},
|
|
255
|
-
const s = "/
|
|
255
|
+
}, q = () => {
|
|
256
|
+
const s = "/upfm/v1/menuFavority";
|
|
256
257
|
I.value = !0;
|
|
257
|
-
const t = { pageSize: 20, pageNum: 1, userName:
|
|
258
|
+
const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
|
|
258
259
|
G().get(s, t).then((n) => {
|
|
259
260
|
r.value = (n == null ? void 0 : n.list) || [];
|
|
260
261
|
}).finally(() => {
|
|
@@ -272,9 +273,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
272
273
|
b.value = !0;
|
|
273
274
|
};
|
|
274
275
|
K(() => {
|
|
275
|
-
|
|
276
|
+
q(), H();
|
|
276
277
|
});
|
|
277
|
-
const
|
|
278
|
+
const D = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], L = [
|
|
278
279
|
"community",
|
|
279
280
|
"shield-star",
|
|
280
281
|
"group",
|
|
@@ -329,7 +330,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
329
330
|
return (s, t) => {
|
|
330
331
|
var x;
|
|
331
332
|
const n = _("el-avatar"), v = _("ut-countdown"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
|
|
332
|
-
return a(), p("div",
|
|
333
|
+
return a(), p("div", Le, [
|
|
333
334
|
e("div", ze, [
|
|
334
335
|
e("div", Re, [
|
|
335
336
|
e("div", null, [
|
|
@@ -353,7 +354,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
353
354
|
]),
|
|
354
355
|
e("div", He, [
|
|
355
356
|
t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
|
|
356
|
-
e("div", Te, f(
|
|
357
|
+
e("div", Te, f(E()), 1)
|
|
357
358
|
]),
|
|
358
359
|
e("div", Oe, [
|
|
359
360
|
t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
|
|
@@ -414,10 +415,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
414
415
|
e("div", Ke, [
|
|
415
416
|
e("div", {
|
|
416
417
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
417
|
-
style: Q({ backgroundColor:
|
|
418
|
+
style: Q({ backgroundColor: D(W) })
|
|
418
419
|
}, [
|
|
419
420
|
i(S, {
|
|
420
|
-
icon: g.icon || `ri:${
|
|
421
|
+
icon: g.icon || `ri:${L[W]}-line`,
|
|
421
422
|
class: "text-2xl text-white"
|
|
422
423
|
}, null, 8, ["icon"])
|
|
423
424
|
], 4),
|
|
@@ -509,18 +510,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
509
510
|
]),
|
|
510
511
|
_: 1
|
|
511
512
|
}),
|
|
512
|
-
b.value ? (a(), N(
|
|
513
|
+
b.value ? (a(), N(Ee, {
|
|
513
514
|
key: 0,
|
|
514
515
|
"data-source": r.value,
|
|
515
516
|
"user-name": B(h).getUserInfo.userName,
|
|
516
|
-
icons:
|
|
517
|
+
icons: L,
|
|
517
518
|
onClose: t[0] || (t[0] = (g) => b.value = !1),
|
|
518
|
-
onSuccess:
|
|
519
|
+
onSuccess: q
|
|
519
520
|
}, null, 8, ["data-source", "user-name"])) : O("", !0)
|
|
520
521
|
]);
|
|
521
522
|
};
|
|
522
523
|
}
|
|
523
|
-
}),
|
|
524
|
+
}), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-4f622fd8"]]);
|
|
524
525
|
export {
|
|
525
|
-
|
|
526
|
+
_t as default
|
|
526
527
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
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
|
+
import { useI18n as B } from "vue-i18n";
|
|
3
3
|
import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { cookies as
|
|
4
|
+
import { cookies as F, successMessage as J, warnMessage as Y } from "@utogether/utils";
|
|
5
5
|
import { isArray as K } from "xe-utils";
|
|
6
|
-
import {
|
|
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__ */
|
|
6
|
+
import { x as R, m as H, q as Q } from "./index-DzOzUkf6.js";
|
|
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) {
|
|
10
10
|
const L = j(), _ = j(!1), s = E({
|
|
@@ -16,7 +16,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
16
16
|
logo: [],
|
|
17
17
|
backgroundImg: [],
|
|
18
18
|
favicon: []
|
|
19
|
-
}), y = Q(), { t: m } =
|
|
19
|
+
}), y = Q(), { t: m } = B(), f = j(R());
|
|
20
20
|
let r = [];
|
|
21
21
|
const U = E({
|
|
22
22
|
defaultLanguage: [
|
|
@@ -29,8 +29,8 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
29
29
|
title: [
|
|
30
30
|
{ required: !0, message: m("message.required") + m("message.udp.systemTitle"), trigger: "blur" }
|
|
31
31
|
]
|
|
32
|
-
}), h =
|
|
33
|
-
const e =
|
|
32
|
+
}), h = O(() => {
|
|
33
|
+
const e = F.get(H);
|
|
34
34
|
return {
|
|
35
35
|
Authorization: "Bearer " + JSON.parse(e).accessToken
|
|
36
36
|
};
|
|
@@ -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
|
-
K(s[t]) && (l.configValue =
|
|
45
|
+
K(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) => {
|
|
@@ -51,13 +51,13 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
51
51
|
const l = r.filter((g) => !g.id), d = r.filter((g) => g.id), i = [];
|
|
52
52
|
l.length ? i.push(y.post(k, l)) : i.push(y.put(k, d));
|
|
53
53
|
const [b] = await N(Promise.all(i));
|
|
54
|
-
b || (J(),
|
|
54
|
+
b || (J(), w()), _.value = !1;
|
|
55
55
|
}
|
|
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
59
|
return Y(m("message.tip.singleImg"));
|
|
60
|
-
},
|
|
60
|
+
}, w = () => {
|
|
61
61
|
Object.keys(s).forEach((e) => {
|
|
62
62
|
const t = r.find((l) => l.configCode === e);
|
|
63
63
|
if (t && (s[t.configCode] = t.configValue || s[t.configCode], t.fileName)) {
|
|
@@ -69,13 +69,13 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
69
69
|
});
|
|
70
70
|
}, z = async () => {
|
|
71
71
|
const [e, t] = await N(y.get(k, {}));
|
|
72
|
-
e || (r = t.list),
|
|
72
|
+
e || (r = t.list), w();
|
|
73
73
|
};
|
|
74
|
-
return
|
|
74
|
+
return S(() => {
|
|
75
75
|
z();
|
|
76
76
|
}), (e, t) => {
|
|
77
|
-
const l = c("el-button"), d = c("el-input"), i = c("el-form-item"), b = c("el-option"), g = c("el-select"), I = c("el-switch"), $ = c("el-upload"),
|
|
78
|
-
return
|
|
77
|
+
const l = c("el-button"), d = c("el-input"), i = c("el-form-item"), b = c("el-option"), g = c("el-select"), I = c("el-switch"), $ = c("el-upload"), D = c("el-form"), G = T("spinning");
|
|
78
|
+
return q((A(), x("div", W, [
|
|
79
79
|
u("div", X, [
|
|
80
80
|
a(l, {
|
|
81
81
|
type: "primary",
|
|
@@ -88,7 +88,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
88
88
|
})
|
|
89
89
|
]),
|
|
90
90
|
u("div", Z, [
|
|
91
|
-
a(
|
|
91
|
+
a(D, {
|
|
92
92
|
ref_key: "xfrom",
|
|
93
93
|
ref: L,
|
|
94
94
|
model: s,
|
|
@@ -267,7 +267,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
|
|
|
267
267
|
}, 8, ["model", "rules"])
|
|
268
268
|
])
|
|
269
269
|
])), [
|
|
270
|
-
[
|
|
270
|
+
[G, _.value]
|
|
271
271
|
]);
|
|
272
272
|
};
|
|
273
273
|
}
|