@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.3
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 +6 -1
- package/dist/{403-BBQoJwTM.js → 403-BuP9jvH9.js} +1 -1
- package/dist/{404-BbJPSIWM.js → 404-DfQk8kKl.js} +1 -1
- package/dist/{500-BtFL9R4M.js → 500-OgROWdiZ.js} +1 -1
- package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-q2ksfkWH.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js} +1 -1
- package/dist/{Company-CGqmslx-.js → Company-DgqowAxc.js} +3 -3
- package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-BNb1rUhD.js} +16 -16
- package/dist/{Department-BZyJtacc.js → Department-Cl8CROSU.js} +3 -3
- package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-D5VkqKeP.js} +1 -1
- package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BGvEusHC.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js} +2 -2
- package/dist/{DictView-B4a7Hs1X.js → DictView-BnxfaOBv.js} +13 -12
- package/dist/InvOrganization-5y79ZLdY.js +66 -0
- package/dist/{Org-BTGTrAVz.js → Org-2oBAXN2r.js} +1 -1
- package/dist/{Preview-pHD84xqI.js → Preview-BaGmXH7r.js} +1 -1
- package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-DkQdBErt.js} +1 -1
- package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-DzB_A_G6.js} +2 -2
- package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-DRcMb6ya.js} +1 -1
- package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-CeA9xhR4.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js} +1 -1
- package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-qaiTMQuT.js} +1 -1
- package/dist/{Role-eFZoTpXc.js → Role-DsFulAjq.js} +3 -3
- package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DMRdocpa.js} +3 -3
- package/dist/{RolePanel-DlFw6HSf.js → RolePanel-B9POS_pg.js} +1 -1
- package/dist/{RolePanel-CoUOc3sX.js → RolePanel-wXVysDHM.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js} +3 -3
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js → RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js} +1 -1
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js} +1 -1
- package/dist/{Staff-DFBLCsAd.js → Staff-Cq4V7ruC.js} +3 -3
- package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-CJDKMbud.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js} +1 -1
- package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-CG-uggdr.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js} +2 -2
- package/dist/{SysUser-BdZvYxQH.js → SysUser-kwnzRNdD.js} +2 -2
- package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-DTlZf3vk.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js} +1 -1
- package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-BVT0n-L2.js} +9 -9
- package/dist/{UserInfo-DqXCRZts.js → UserInfo-BbTQ9Zat.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js} +1 -1
- package/dist/{childView-B2lSsqS3.js → childView-BJbIhjmf.js} +1 -1
- package/dist/{childView-DRUNqgjI.js → childView-DCsGFrG-.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-CDtsalCm.js} +1 -1
- package/dist/{code-rule-DZC9T6cl.js → code-rule-DePU6cdp.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-BJwPeA5F.js → cron-task-DUM1SIGL.js} +1 -1
- package/dist/{frameView-C6wkvok-.js → frameView-CEUTDtSm.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-ZdgOD7cF.js +3399 -0
- package/dist/{layoutView-CeJBpZb_.js → layoutView-PCjwVwkX.js} +109 -108
- package/dist/{login-BOxwzwdB.js → login-B1CjWVKu.js} +2 -2
- package/dist/{lov-view-DRF-99U4.js → lov-view-D8wwkxFJ.js} +2 -2
- package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-B5JKVwrB.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js} +27 -27
- package/dist/{pda-app-B9tn7jdv.js → pda-app-DIa1p1Ww.js} +1 -1
- package/dist/{resource-BqnxbQNe.js → resource-CCQ7Dd-5.js} +1 -1
- package/dist/{su-welcome-VwifUK_O.js → su-welcome-CLp9YaJa.js} +1 -1
- package/dist/{sys-config-C0-gSBFO.js → sys-config-BBmf_SqF.js} +1 -1
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-Di1byIum.js → utogether-Bkptx2lB.js} +1 -1
- package/package.json +1 -1
- package/src/App.vue +70 -70
- package/src/components/udp/grid.vue +500 -0
- package/src/components/udp/index.ts +7 -4
- package/src/components/udp/lov.vue +410 -0
- package/src/components/udp/modal-form.vue +2 -2
- package/src/components/udp/modal-grid.vue +297 -0
- package/src/components/udp/utils.ts +379 -40
- 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-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 +110 -109
- package/src/plugins/i18n/en.ts +291 -289
- package/src/plugins/i18n/zh.ts +338 -337
- package/src/plugins/vxe-table/index.ts +3 -3
- package/src/plugins/vxe-table/render.tsx +4 -2
- package/src/style/button.scss +85 -78
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +258 -256
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +2 -3
- package/src/views/system/menu/SystemMenu.vue +1 -1
- package/src/views/system/menu/menuInfo.vue +372 -373
- package/src/views/udev/dict/DictView.vue +106 -106
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/vite.config.ts +4 -1
- package/dist/InvOrganization-q4T3y8dQ.js +0 -260
- package/dist/index-DZc3qRTx.js +0 -2650
|
@@ -2,7 +2,7 @@ import { defineComponent as M, watch as Y, ref as w, resolveComponent as u, crea
|
|
|
2
2
|
import { useI18n as X } from "vue-i18n";
|
|
3
3
|
import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { templateRef as Z } from "@vueuse/core";
|
|
5
|
-
import { e as x, q as ee } from "./index-
|
|
5
|
+
import { e as x, q as ee } from "./index-ZdgOD7cF.js";
|
|
6
6
|
const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
|
|
7
7
|
__name: "menuInfo",
|
|
8
8
|
props: {
|
|
@@ -63,34 +63,34 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
63
63
|
message: `${t("message.required")}${t("message.menuType")}`
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
|
-
}, T = Z("xForm", null), y = w(!1), h = w(""),
|
|
67
|
-
const { record: e, dataStatus:
|
|
68
|
-
if (
|
|
69
|
-
return !
|
|
66
|
+
}, T = Z("xForm", null), y = w(!1), h = w(""), C = w(["fetch"]), B = E, L = () => {
|
|
67
|
+
const { record: e, dataStatus: l } = g, { id: o, parentId: f, hasChildren: a } = e;
|
|
68
|
+
if (l !== "update")
|
|
69
|
+
return !o && !f ? "su" : ((a || l === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
70
70
|
}, A = () => {
|
|
71
71
|
T.value.validate(async (e) => {
|
|
72
72
|
if (!e) {
|
|
73
73
|
y.value = !0;
|
|
74
|
-
let
|
|
75
|
-
const { record:
|
|
74
|
+
let l;
|
|
75
|
+
const { record: o, dataStatus: f } = g;
|
|
76
76
|
if (f === "add") {
|
|
77
|
-
|
|
78
|
-
const [a,
|
|
79
|
-
if (!a && !["0", "5"].includes(
|
|
80
|
-
const c =
|
|
81
|
-
permissionCode:
|
|
82
|
-
parentId:
|
|
77
|
+
o.permissionCode = `${h.value}.${o.dispalyCode}`;
|
|
78
|
+
const [a, $] = await q(v.post(N, [o]));
|
|
79
|
+
if (!a && !["0", "5"].includes(o.menuCategory) && C.value.length) {
|
|
80
|
+
const c = C.value.map((b, S) => ({
|
|
81
|
+
permissionCode: o.permissionCode + "." + b,
|
|
82
|
+
parentId: $[0].id,
|
|
83
83
|
menuName: R(b),
|
|
84
84
|
menuType: 1,
|
|
85
85
|
enabled: "1",
|
|
86
86
|
sort: (S + 1) * 10
|
|
87
87
|
})), [V, _] = await q(v.post(N, c));
|
|
88
|
-
V || (
|
|
88
|
+
V || (l = _[0]);
|
|
89
89
|
}
|
|
90
90
|
y.value = !1;
|
|
91
91
|
} else
|
|
92
|
-
await q(v.put(N, [
|
|
93
|
-
k("submit",
|
|
92
|
+
o.permissionCode = o.dispalyCode, await q(v.put(N, [o])), y.value = !1;
|
|
93
|
+
k("submit", l);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
}, R = (e) => ({
|
|
@@ -100,14 +100,14 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
100
100
|
del: t("message.btn.delete"),
|
|
101
101
|
export: t("message.btn.export")
|
|
102
102
|
})[e], z = (e) => {
|
|
103
|
-
var
|
|
104
|
-
return (
|
|
103
|
+
var l;
|
|
104
|
+
return (l = P[e]) == null ? void 0 : l.children.map((o) => (o.enabled = o.dictCode === "0" && g.record.menuCategory !== "0", o));
|
|
105
105
|
};
|
|
106
|
-
function k(e,
|
|
107
|
-
B("close", e,
|
|
106
|
+
function k(e, l) {
|
|
107
|
+
B("close", e, l);
|
|
108
108
|
}
|
|
109
|
-
return (e,
|
|
110
|
-
const
|
|
109
|
+
return (e, l) => {
|
|
110
|
+
const o = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), $ = u("vxe-input"), c = u("vxe-checkbox"), V = u("vxe-checkbox-group"), _ = u("ut-icon-select"), b = u("vxe-form"), S = u("el-divider"), U = u("ut-button"), j = u("el-row"), H = u("el-drawer");
|
|
111
111
|
return s(), I("div", te, [
|
|
112
112
|
n(H, {
|
|
113
113
|
"model-value": e.show,
|
|
@@ -142,7 +142,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
142
142
|
disabled: r.menuCategory === "0"
|
|
143
143
|
}, {
|
|
144
144
|
default: m(() => [
|
|
145
|
-
(s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(
|
|
145
|
+
(s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(o, {
|
|
146
146
|
key: d.dictCode,
|
|
147
147
|
value: d.dictCode,
|
|
148
148
|
label: d.dictName,
|
|
@@ -160,7 +160,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
160
160
|
span: "24"
|
|
161
161
|
}, {
|
|
162
162
|
default: m(({ data: r }) => [
|
|
163
|
-
n(
|
|
163
|
+
n($, {
|
|
164
164
|
modelValue: r.dispalyCode,
|
|
165
165
|
"onUpdate:modelValue": (d) => r.dispalyCode = d,
|
|
166
166
|
clearable: "",
|
|
@@ -245,7 +245,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
245
245
|
span: "24"
|
|
246
246
|
}, {
|
|
247
247
|
default: m(({ data: r }) => [
|
|
248
|
-
n(
|
|
248
|
+
n($, {
|
|
249
249
|
modelValue: r.sort,
|
|
250
250
|
"onUpdate:modelValue": (d) => r.sort = d,
|
|
251
251
|
type: "number",
|
|
@@ -261,8 +261,8 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
261
261
|
}, {
|
|
262
262
|
default: m(() => [
|
|
263
263
|
n(V, {
|
|
264
|
-
modelValue:
|
|
265
|
-
"onUpdate:modelValue":
|
|
264
|
+
modelValue: C.value,
|
|
265
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => C.value = r)
|
|
266
266
|
}, {
|
|
267
267
|
default: m(() => [
|
|
268
268
|
n(c, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as re, ref as R, computed as G, watch as he, createVNode as p, Fragment as z, withDirectives as me, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as we, createCommentVNode as Te, isVNode as _e } 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, x as xe, q as $e } from "./index-
|
|
4
|
+
import { I as Se, x as xe, q as $e } from "./index-ZdgOD7cF.js";
|
|
5
5
|
import { withInstall as Pe, useRender as Ae } from "@utogether/utils";
|
|
6
6
|
import { clone as oe, isString as Z } from "xe-utils";
|
|
7
7
|
import ke from "qrcode";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
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-ZdgOD7cF.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 _,
|
|
|
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 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-
|
|
5
|
+
import { q as G, e as de, n as me, _ as fe } from "./index-ZdgOD7cF.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({
|
|
@@ -3,7 +3,7 @@ import { useI18n as B } from "vue-i18n";
|
|
|
3
3
|
import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
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 { x as R, m as H, q as Q } from "./index-
|
|
6
|
+
import { x as R, m as H, q as Q } from "./index-ZdgOD7cF.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) {
|