@utogether/udp-core 1.0.1-beta.3 → 1.0.1-beta.31
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 +3 -3
- package/dist/{403-BuP9jvH9.js → 403-DdjDWbkf.js} +1 -1
- package/dist/{404-DfQk8kKl.js → 404-D9vF2gFz.js} +1 -1
- package/dist/{500-OgROWdiZ.js → 500-mVaDmUjL.js} +1 -1
- package/dist/{AuthorityInfo-q2ksfkWH.js → AuthorityInfo-DOUJ_Zrj.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-B12sAzqt.js +100 -0
- package/dist/{Company-DgqowAxc.js → Company-DY__kM9F.js} +3 -3
- package/dist/{CompanyPanel-BNb1rUhD.js → CompanyPanel-C5N8QcMA.js} +17 -17
- package/dist/{Department-Cl8CROSU.js → Department-DsuDZdy5.js} +3 -3
- package/dist/{DepartmentPanel-D5VkqKeP.js → DepartmentPanel-CdwI7Rzu.js} +25 -25
- package/dist/{DesignPanel-BGvEusHC.js → DesignPanel-B50-g0TL.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js → DesignPanel.vue_vue_type_style_index_0_lang-KV8JOZ6v.js} +28 -30
- package/dist/DictView-Be2Z5Obk.js +110 -0
- package/dist/InvOrganization-Lui1q3Ou.js +74 -0
- package/dist/Org-qO5ExsPN.js +39 -0
- package/dist/{Preview-BaGmXH7r.js → Preview-Dq4dfV2D.js} +2 -2
- package/dist/{ReportDefine-DkQdBErt.js → ReportDefine-DH3FvbS1.js} +1 -1
- package/dist/{ReportDesign-DzB_A_G6.js → ReportDesign-Bou01Jbr.js} +43 -43
- package/dist/{ReportQuery-DRcMb6ya.js → ReportQuery-BBkmPPSw.js} +1 -1
- package/dist/{ReportQueryFrom-CeA9xhR4.js → ReportQueryFrom-BCY8lTJ7.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CpktcM8J.js} +1 -1
- package/dist/{ReportTemplate-qaiTMQuT.js → ReportTemplate-C_yJXxQ-.js} +28 -28
- package/dist/{Role-DsFulAjq.js → Role-CTatYsrC.js} +6 -6
- package/dist/{RoleAssign-DMRdocpa.js → RoleAssign-Cqt3CelK.js} +9 -9
- package/dist/{RolePanel-wXVysDHM.js → RolePanel-C3JMpNu8.js} +1 -1
- package/dist/{RolePanel-B9POS_pg.js → RolePanel-brKRJIhD.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DD8u9pq8.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js → RolePanel.vue_vue_type_script_setup_true_lang-i6Gq4r5B.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js → ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js} +23 -23
- package/dist/{Staff-Cq4V7ruC.js → Staff-Cd3twQ6Y.js} +3 -3
- package/dist/{StaffInfo-CJDKMbud.js → StaffInfo-DJp0a0qd.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dp2AhJ4I.js} +16 -16
- package/dist/{StaffPanel-CG-uggdr.js → StaffPanel-B93hClzs.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js → StaffPanel.vue_vue_type_script_setup_true_lang-CXjUzq7n.js} +2 -2
- package/dist/{SysUser-kwnzRNdD.js → SysUser-BvI6vaqI.js} +2 -2
- package/dist/{SysUserPanel-DTlZf3vk.js → SysUserPanel-C9V8X-Ek.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-bMqTui07.js +343 -0
- package/dist/{SystemMenu-BVT0n-L2.js → SystemMenu-D4WME5d0.js} +27 -27
- package/dist/{UserInfo-BbTQ9Zat.js → UserInfo-D-AfdfJs.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js → UserInfo.vue_vue_type_style_index_0_lang-C-JQYIxe.js} +41 -39
- package/dist/{childView-BJbIhjmf.js → childView--WMSo-wH.js} +1 -1
- package/dist/{childView-DCsGFrG-.js → childView-1MTl6Kaj.js} +1 -1
- package/dist/childView.vue_vue_type_style_index_0_lang-B8Losc4Y.js +170 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js → childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js} +1 -1
- package/dist/{code-rule-DePU6cdp.js → code-rule-D-RqrQB6.js} +42 -41
- package/dist/core.es.js +19 -10
- package/dist/{cron-task-DUM1SIGL.js → cron-task-D-X-KFZm.js} +11 -11
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-CEUTDtSm.js → frameView-MAW_-GHJ.js} +1 -1
- package/dist/index-Bc9vCX7z.js +2904 -0
- package/dist/{layoutView-PCjwVwkX.js → layoutView-De2QIEr2.js} +1639 -1629
- package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
- package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
- package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
- package/dist/login-rdZ0GPYc.js +249 -0
- package/dist/{lov-view-D8wwkxFJ.js → lov-view-Ao7LMspL.js} +5 -5
- package/dist/{menuInfo-B5JKVwrB.js → menuInfo-DmOcK6An.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js → menuInfo.vue_vue_type_style_index_0_lang-Ln-zFWV7.js} +121 -99
- package/dist/{pda-app-DIa1p1Ww.js → pda-app-DY63mQ2T.js} +202 -188
- package/dist/{resource-CCQ7Dd-5.js → resource-B21uV58T.js} +18 -18
- package/dist/{su-welcome-CLp9YaJa.js → su-welcome-DgjzJeDF.js} +122 -121
- package/dist/sys-config-DOtK2I32.js +370 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +19 -6
- package/package.json +1 -1
- package/src/App.vue +65 -70
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +5 -3
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +3 -3
- package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
- package/src/components/udp/content/index.vue +88 -0
- package/src/components/udp/form/form.vue +109 -0
- package/src/components/udp/{grid.vue → grid/index.vue} +524 -500
- package/src/components/udp/index.ts +4 -6
- package/src/components/udp/ut-stamp-badge/index.vue +272 -0
- package/src/components/udp/utils.ts +408 -379
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +8 -6
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +1 -1
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +8 -12
- package/src/layout/components/lay-tag/index.vue +596 -625
- package/src/layout/hooks/useTag.ts +12 -18
- package/src/layout/types.ts +3 -2
- package/src/main.ts +115 -110
- package/src/plugins/i18n/en.ts +302 -291
- package/src/plugins/i18n/module/u-workflow.ts +1 -1
- package/src/plugins/i18n/zh.ts +362 -338
- package/src/plugins/vxe-table/index.ts +116 -53
- package/src/plugins/vxe-table/render.tsx +183 -57
- package/src/router/index.ts +101 -97
- package/src/router/modules/flow.ts +35 -0
- package/src/router/modules/remaining.ts +1 -26
- package/src/router/utils.ts +50 -7
- package/src/store/modules/app.ts +1 -3
- package/src/store/modules/multiTags.ts +15 -14
- package/src/store/modules/permission.ts +25 -15
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +85 -85
- package/src/style/login.css +1 -1
- package/src/style/vxetable.scss +348 -258
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/index.ts +3 -1
- package/src/utils/propTypes.ts +1 -6
- package/src/utils/{http → udp/http}/index.ts +27 -30
- package/src/utils/{http → udp/http}/types.d.ts +2 -6
- package/src/views/login/login-view.vue +6 -20
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/department/DepartmentPanel.vue +6 -20
- package/src/views/organization/inv-org/InvOrganization.vue +22 -7
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/cron/cron-task.vue +2 -12
- package/src/views/system/menu/SystemMenu.vue +185 -197
- package/src/views/system/menu/menuInfo.vue +384 -372
- 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 +11 -9
- package/src/views/system/role-assign/RoleAssign.vue +2 -2
- package/src/views/system/role-assign/RolePanel.vue +12 -9
- package/src/views/system/sys/sys-config.vue +70 -21
- package/src/views/system/sysUser/SysUserPanel.vue +132 -62
- package/src/views/uapp/pda/pda-app.vue +48 -16
- package/src/views/udev/coderule/code-rule.vue +132 -121
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +71 -111
- package/src/views/udev/lov/childView.vue +1 -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/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +3 -3
- package/src/views/ulogin/login.vue +19 -12
- package/src/views/upms/interface/log-in.vue +2 -8
- package/src/views/upms/interface/log-out.vue +2 -8
- package/src/views/upms/user/login-log.vue +2 -8
- package/src/views/urpt/design/DesignPanel.vue +16 -35
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +17 -23
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/src/views/utask/flow-task.vue +18 -0
- package/types/global.d.ts +4 -9
- package/vite.config.ts +2 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js +0 -102
- package/dist/DictView-BnxfaOBv.js +0 -96
- package/dist/InvOrganization-5y79ZLdY.js +0 -66
- package/dist/Org-2oBAXN2r.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js +0 -288
- package/dist/childView.vue_vue_type_style_index_0_lang-CDtsalCm.js +0 -187
- package/dist/index-ZdgOD7cF.js +0 -3399
- package/dist/login-B1CjWVKu.js +0 -252
- package/dist/sys-config-BBmf_SqF.js +0 -277
- package/dist/utogether-Bkptx2lB.js +0 -182
- package/src/components/udp/form-upload.vue +0 -183
- package/src/components/udp/lov.vue +0 -410
- package/src/components/udp/modal-form.vue +0 -180
- package/src/components/udp/modal-grid.vue +0 -297
- package/src/utils/udp/useRender.ts +0 -420
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as
|
|
1
|
+
import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as w, createElementBlock as g, 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 {
|
|
4
|
-
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { w as b } from "./index-Bc9vCX7z.js";
|
|
4
|
+
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js";
|
|
5
5
|
import { useRender as I } from "@utogether/utils";
|
|
6
6
|
const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
7
7
|
name: "LovView",
|
|
@@ -57,7 +57,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
|
57
57
|
}, null)] : null
|
|
58
58
|
}
|
|
59
59
|
}], n = o(!1), d = o(null), m = (e) => {
|
|
60
|
-
|
|
60
|
+
w(() => {
|
|
61
61
|
n.value = !0, d.value = e;
|
|
62
62
|
});
|
|
63
63
|
}, p = () => {
|
|
@@ -76,7 +76,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
|
76
76
|
};
|
|
77
77
|
return (e, i) => {
|
|
78
78
|
const _ = a("ut-grid");
|
|
79
|
-
return s(),
|
|
79
|
+
return s(), g("div", null, [u(_, {
|
|
80
80
|
ref_key: "xgrid",
|
|
81
81
|
ref: t,
|
|
82
82
|
items: f,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as H, watch as M, ref as _, 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
|
-
import { t as
|
|
3
|
+
import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { templateRef as Z } from "@vueuse/core";
|
|
5
|
-
import {
|
|
6
|
-
const te = { class: "ut-menu-wrapper" },
|
|
5
|
+
import { i as x, w as ee } from "./index-Bc9vCX7z.js";
|
|
6
|
+
const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */ H({
|
|
7
7
|
__name: "menuInfo",
|
|
8
8
|
props: {
|
|
9
9
|
show: { type: Boolean, default: !1 },
|
|
@@ -12,137 +12,139 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
12
12
|
direction: { default: "rtl" }
|
|
13
13
|
},
|
|
14
14
|
emits: ["close"],
|
|
15
|
-
setup(
|
|
16
|
-
const P = x().getDataDict, g =
|
|
17
|
-
|
|
15
|
+
setup(I, { emit: F }) {
|
|
16
|
+
const P = x().getDataDict, g = I;
|
|
17
|
+
M(
|
|
18
18
|
() => g.show,
|
|
19
19
|
() => {
|
|
20
|
-
h.value = g.show &&
|
|
20
|
+
h.value = g.show && D();
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
const v = ee(), { t } = X(),
|
|
23
|
+
const v = ee(), { t: a } = X(), E = {
|
|
24
24
|
menuCode: [
|
|
25
25
|
{
|
|
26
26
|
required: !0,
|
|
27
|
-
message: `${
|
|
27
|
+
message: `${a("message.required")}${a("message.menuCode")}`
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
30
|
menuName: [
|
|
31
31
|
{
|
|
32
32
|
required: !0,
|
|
33
|
-
message: `${
|
|
33
|
+
message: `${a("message.required")}${a("message.menuName")}`
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
menuPath: [
|
|
37
37
|
{
|
|
38
38
|
required: !0,
|
|
39
|
-
message: `${
|
|
39
|
+
message: `${a("message.required")}${a("message.menuPath")}`
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
frameSrc: [
|
|
43
43
|
{
|
|
44
44
|
required: !0,
|
|
45
|
-
message: `${
|
|
45
|
+
message: `${a("message.required")}${a("message.externalURI")}`
|
|
46
46
|
}
|
|
47
47
|
],
|
|
48
48
|
i18nField: [
|
|
49
49
|
{
|
|
50
50
|
required: !0,
|
|
51
|
-
message: `${
|
|
51
|
+
message: `${a("message.required")}${a("message.i18nField")}`
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
dispalyCode: [
|
|
55
55
|
{
|
|
56
56
|
required: !0,
|
|
57
|
-
message: `${
|
|
57
|
+
message: `${a("message.required")}${a("message.permissionCode")}`
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
menuCategory: [
|
|
61
61
|
{
|
|
62
62
|
required: !0,
|
|
63
|
-
message: `${
|
|
63
|
+
message: `${a("message.required")}${a("message.menuType")}`
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
|
-
}, T = Z("xForm", null), y =
|
|
67
|
-
const { record: e, dataStatus:
|
|
68
|
-
if (
|
|
69
|
-
return !
|
|
70
|
-
},
|
|
66
|
+
}, T = Z("xForm", null), y = _(!1), h = _(""), b = _(["fetch"]), A = F, D = () => {
|
|
67
|
+
const { record: e, dataStatus: s } = g, { id: l, parentId: f, hasChildren: n } = e;
|
|
68
|
+
if (s !== "update")
|
|
69
|
+
return !l && !f ? "su" : ((n || s === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
70
|
+
}, B = () => {
|
|
71
71
|
T.value.validate(async (e) => {
|
|
72
72
|
if (!e) {
|
|
73
73
|
y.value = !0;
|
|
74
|
-
let
|
|
75
|
-
const { record:
|
|
74
|
+
let s;
|
|
75
|
+
const { record: l, dataStatus: f } = g;
|
|
76
76
|
if (f === "add") {
|
|
77
|
-
|
|
78
|
-
const [
|
|
79
|
-
if (!
|
|
80
|
-
const c =
|
|
81
|
-
permissionCode:
|
|
82
|
-
parentId:
|
|
83
|
-
menuName: R(
|
|
77
|
+
l.permissionCode = `${h.value}.${l.dispalyCode}`;
|
|
78
|
+
const [n, C] = await N(v.post(q, [l]));
|
|
79
|
+
if (!n && !["0", "5"].includes(l.menuCategory) && b.value.length) {
|
|
80
|
+
const c = b.value.map(($, S) => ({
|
|
81
|
+
permissionCode: l.permissionCode + "." + $,
|
|
82
|
+
parentId: C[0].id,
|
|
83
|
+
menuName: R($),
|
|
84
84
|
menuType: 1,
|
|
85
85
|
enabled: "1",
|
|
86
86
|
sort: (S + 1) * 10
|
|
87
|
-
})), [
|
|
88
|
-
|
|
87
|
+
})), [k, w] = await N(v.post(q, c));
|
|
88
|
+
k || (s = w[0]);
|
|
89
89
|
}
|
|
90
90
|
y.value = !1;
|
|
91
91
|
} else
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
l.permissionCode = l.dispalyCode, await N(v.put(q, [l])), y.value = !1, s = l;
|
|
93
|
+
V("submit", s);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
}, R = (e) => ({
|
|
97
|
-
fetch:
|
|
98
|
-
add:
|
|
99
|
-
edit:
|
|
100
|
-
del:
|
|
101
|
-
export:
|
|
102
|
-
})[e],
|
|
103
|
-
var
|
|
104
|
-
return (
|
|
97
|
+
fetch: a("message.btn.fetch"),
|
|
98
|
+
add: a("message.btn.add"),
|
|
99
|
+
edit: a("message.btn.edit"),
|
|
100
|
+
del: a("message.btn.delete"),
|
|
101
|
+
export: a("message.btn.export")
|
|
102
|
+
})[e], Y = (e) => {
|
|
103
|
+
var s;
|
|
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
|
|
107
|
-
|
|
106
|
+
function V(e, s) {
|
|
107
|
+
A("close", e, s);
|
|
108
108
|
}
|
|
109
|
-
return (e,
|
|
110
|
-
const
|
|
111
|
-
return
|
|
112
|
-
|
|
109
|
+
return (e, s) => {
|
|
110
|
+
const l = i("vxe-option"), f = i("vxe-select"), n = i("vxe-form-item"), C = i("vxe-input"), c = i("vxe-checkbox"), k = i("vxe-checkbox-group"), w = i("ut-icon-select"), $ = i("vxe-form"), S = i("el-divider"), U = i("ut-button"), z = i("el-row"), j = i("el-drawer");
|
|
111
|
+
return r(), L("div", te, [
|
|
112
|
+
t(j, {
|
|
113
113
|
"model-value": e.show,
|
|
114
114
|
title: e.$t("message.title.memuInfo"),
|
|
115
|
-
"before-close":
|
|
115
|
+
"before-close": V,
|
|
116
116
|
direction: "rtl",
|
|
117
117
|
"destroy-on-close": "",
|
|
118
118
|
size: "50%"
|
|
119
119
|
}, {
|
|
120
120
|
default: m(() => [
|
|
121
|
-
|
|
121
|
+
t($, {
|
|
122
122
|
ref_key: "xForm",
|
|
123
123
|
ref: T,
|
|
124
124
|
data: e.record,
|
|
125
|
-
rules:
|
|
125
|
+
rules: E,
|
|
126
126
|
loading: y.value,
|
|
127
127
|
"title-colon": "",
|
|
128
128
|
"title-align": "right",
|
|
129
|
-
"title-width": "110"
|
|
129
|
+
"title-width": "110",
|
|
130
|
+
transfer: ""
|
|
130
131
|
}, {
|
|
131
132
|
default: m(() => [
|
|
132
|
-
e.record.menuType === "0" ? (
|
|
133
|
+
e.record.menuType === "0" ? (r(), u(n, {
|
|
133
134
|
key: 0,
|
|
134
135
|
title: e.$t("message.menuType"),
|
|
135
136
|
field: "menuCategory",
|
|
136
137
|
span: "24"
|
|
137
138
|
}, {
|
|
138
|
-
default: m(({ data:
|
|
139
|
-
|
|
140
|
-
modelValue:
|
|
141
|
-
"onUpdate:modelValue": (d) =>
|
|
142
|
-
disabled:
|
|
139
|
+
default: m(({ data: o }) => [
|
|
140
|
+
t(f, {
|
|
141
|
+
modelValue: o.menuCategory,
|
|
142
|
+
"onUpdate:modelValue": (d) => o.menuCategory = d,
|
|
143
|
+
disabled: o.menuCategory === "0",
|
|
144
|
+
transfer: !1
|
|
143
145
|
}, {
|
|
144
146
|
default: m(() => [
|
|
145
|
-
(
|
|
147
|
+
(r(!0), L(G, null, J(Y("SU.MENU.TYPE"), (d) => (r(), u(l, {
|
|
146
148
|
key: d.dictCode,
|
|
147
149
|
value: d.dictCode,
|
|
148
150
|
label: d.dictName,
|
|
@@ -154,15 +156,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
154
156
|
]),
|
|
155
157
|
_: 1
|
|
156
158
|
}, 8, ["title"])) : p("", !0),
|
|
157
|
-
n
|
|
159
|
+
t(n, {
|
|
158
160
|
title: e.$t("message.permissionCode"),
|
|
159
161
|
field: "dispalyCode",
|
|
160
162
|
span: "24"
|
|
161
163
|
}, {
|
|
162
|
-
default: m(({ data:
|
|
163
|
-
|
|
164
|
-
modelValue:
|
|
165
|
-
"onUpdate:modelValue": (d) =>
|
|
164
|
+
default: m(({ data: o }) => [
|
|
165
|
+
t(C, {
|
|
166
|
+
modelValue: o.dispalyCode,
|
|
167
|
+
"onUpdate:modelValue": (d) => o.dispalyCode = d,
|
|
166
168
|
clearable: "",
|
|
167
169
|
class: K({ "u-menu-prefix": e.dataStatus === "add" }),
|
|
168
170
|
disabled: e.dataStatus !== "add"
|
|
@@ -178,76 +180,96 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
178
180
|
]),
|
|
179
181
|
_: 1
|
|
180
182
|
}, 8, ["title"]),
|
|
181
|
-
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (
|
|
183
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
|
|
182
184
|
key: 1,
|
|
183
185
|
title: e.$t("message.menuCode"),
|
|
184
186
|
"item-render": { name: "$input" },
|
|
185
187
|
field: "menuCode",
|
|
186
188
|
span: "24"
|
|
187
189
|
}, null, 8, ["title"])) : p("", !0),
|
|
188
|
-
n
|
|
190
|
+
t(n, {
|
|
189
191
|
title: e.$t("message.menuName"),
|
|
190
192
|
"item-render": { name: "$input" },
|
|
191
193
|
field: "menuName",
|
|
192
194
|
span: "24"
|
|
193
195
|
}, null, 8, ["title"]),
|
|
194
|
-
n
|
|
196
|
+
t(n, {
|
|
195
197
|
title: e.$t("message.menuNameEn"),
|
|
196
198
|
field: "menuNameEn",
|
|
197
199
|
span: "24",
|
|
198
200
|
"item-render": { name: "$input" }
|
|
199
201
|
}, null, 8, ["title"]),
|
|
200
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
202
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
201
203
|
key: 2,
|
|
202
204
|
title: e.$t("message.menuPath"),
|
|
203
205
|
"item-render": { name: "$input" },
|
|
204
206
|
field: "menuPath",
|
|
205
207
|
span: "24"
|
|
206
208
|
}, null, 8, ["title"])),
|
|
207
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
209
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
208
210
|
key: 3,
|
|
209
211
|
title: e.$t("message.i18nField"),
|
|
210
212
|
"item-render": { name: "$input" },
|
|
211
213
|
field: "i18nField",
|
|
212
214
|
span: "24"
|
|
213
215
|
}, null, 8, ["title"])),
|
|
214
|
-
e.record.menuCategory === "2" ? (
|
|
216
|
+
e.record.menuCategory === "2" ? (r(), u(n, {
|
|
215
217
|
key: 4,
|
|
216
218
|
title: e.$t("message.frameSrc"),
|
|
217
219
|
"item-render": { name: "$input" },
|
|
218
220
|
field: "frameSrc",
|
|
219
221
|
span: "24"
|
|
220
222
|
}, null, 8, ["title"])) : p("", !0),
|
|
221
|
-
e.record.menuCategory === "3" ? (
|
|
223
|
+
e.record.menuCategory === "3" ? (r(), u(n, {
|
|
222
224
|
key: 5,
|
|
223
225
|
title: e.$t("message.externalURI"),
|
|
224
226
|
"item-render": { name: "$input" },
|
|
225
227
|
field: "menuCode",
|
|
226
228
|
span: "24"
|
|
227
229
|
}, null, 8, ["title"])) : p("", !0),
|
|
228
|
-
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (
|
|
230
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
|
|
229
231
|
key: 6,
|
|
230
232
|
title: e.$t("message.extraIcon"),
|
|
231
233
|
"item-render": { name: "$input" },
|
|
232
234
|
field: "extraIcon",
|
|
233
235
|
span: "24"
|
|
234
236
|
}, null, 8, ["title"])) : p("", !0),
|
|
235
|
-
|
|
237
|
+
t(n, {
|
|
238
|
+
"visible-method": ({ data: o }) => o.menuCategory === "1",
|
|
239
|
+
title: e.$t("message.udp.showLink"),
|
|
240
|
+
"item-render": {
|
|
241
|
+
name: "VxeSwitch",
|
|
242
|
+
props: { openLabel: "显示", closeLabel: "隐藏", closeValue: "N", openValue: "Y" }
|
|
243
|
+
},
|
|
244
|
+
field: "showLink",
|
|
245
|
+
span: "24"
|
|
246
|
+
}, null, 8, ["visible-method", "title"]),
|
|
247
|
+
t(n, {
|
|
248
|
+
"visible-method": ({ data: o }) => o.menuCategory === "1",
|
|
249
|
+
title: e.$t("message.udp.isApprovalPage"),
|
|
250
|
+
"item-render": {
|
|
251
|
+
name: "VxeSwitch",
|
|
252
|
+
props: { openLabel: "是", closeLabel: "否", closeValue: "N", openValue: "Y" }
|
|
253
|
+
},
|
|
254
|
+
field: "isApprovalPage",
|
|
255
|
+
span: "24"
|
|
256
|
+
}, null, 8, ["visible-method", "title"]),
|
|
257
|
+
["0", "5"].includes(e.record.menuCategory) ? (r(), u(n, {
|
|
236
258
|
key: 7,
|
|
237
259
|
title: e.$t("message.redirect"),
|
|
238
260
|
"item-render": { name: "$input" },
|
|
239
261
|
field: "redirect",
|
|
240
262
|
span: "24"
|
|
241
263
|
}, null, 8, ["title"])) : p("", !0),
|
|
242
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
264
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
243
265
|
key: 8,
|
|
244
266
|
title: e.$t("message.sort"),
|
|
245
267
|
span: "24"
|
|
246
268
|
}, {
|
|
247
|
-
default: m(({ data:
|
|
248
|
-
|
|
249
|
-
modelValue:
|
|
250
|
-
"onUpdate:modelValue": (d) =>
|
|
269
|
+
default: m(({ data: o }) => [
|
|
270
|
+
t(C, {
|
|
271
|
+
modelValue: o.sort,
|
|
272
|
+
"onUpdate:modelValue": (d) => o.sort = d,
|
|
251
273
|
type: "number",
|
|
252
274
|
step: "10",
|
|
253
275
|
clearable: ""
|
|
@@ -255,33 +277,33 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
255
277
|
]),
|
|
256
278
|
_: 1
|
|
257
279
|
}, 8, ["title"])),
|
|
258
|
-
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (
|
|
280
|
+
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (r(), u(n, {
|
|
259
281
|
key: 9,
|
|
260
282
|
title: e.$t("message.btn.auth")
|
|
261
283
|
}, {
|
|
262
284
|
default: m(() => [
|
|
263
|
-
|
|
264
|
-
modelValue:
|
|
265
|
-
"onUpdate:modelValue":
|
|
285
|
+
t(k, {
|
|
286
|
+
modelValue: b.value,
|
|
287
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o)
|
|
266
288
|
}, {
|
|
267
289
|
default: m(() => [
|
|
268
|
-
|
|
290
|
+
t(c, {
|
|
269
291
|
label: "add",
|
|
270
292
|
content: e.$t("message.btn.add")
|
|
271
293
|
}, null, 8, ["content"]),
|
|
272
|
-
|
|
294
|
+
t(c, {
|
|
273
295
|
label: "del",
|
|
274
296
|
content: e.$t("message.btn.delete")
|
|
275
297
|
}, null, 8, ["content"]),
|
|
276
|
-
|
|
298
|
+
t(c, {
|
|
277
299
|
label: "edit",
|
|
278
300
|
content: e.$t("message.btn.edit")
|
|
279
301
|
}, null, 8, ["content"]),
|
|
280
|
-
|
|
302
|
+
t(c, {
|
|
281
303
|
label: "fetch",
|
|
282
304
|
content: e.$t("message.btn.fetch")
|
|
283
305
|
}, null, 8, ["content"]),
|
|
284
|
-
|
|
306
|
+
t(c, {
|
|
285
307
|
label: "export",
|
|
286
308
|
content: e.$t("message.btn.export")
|
|
287
309
|
}, null, 8, ["content"])
|
|
@@ -291,15 +313,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
291
313
|
]),
|
|
292
314
|
_: 1
|
|
293
315
|
}, 8, ["title"])) : p("", !0),
|
|
294
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
316
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
295
317
|
key: 10,
|
|
296
318
|
title: e.$t("message.icon"),
|
|
297
319
|
span: "24"
|
|
298
320
|
}, {
|
|
299
|
-
default: m(({ data:
|
|
300
|
-
|
|
301
|
-
modelValue:
|
|
302
|
-
"onUpdate:modelValue": (d) =>
|
|
321
|
+
default: m(({ data: o }) => [
|
|
322
|
+
t(w, {
|
|
323
|
+
modelValue: o.icon,
|
|
324
|
+
"onUpdate:modelValue": (d) => o.icon = d
|
|
303
325
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
304
326
|
]),
|
|
305
327
|
_: 1
|
|
@@ -307,22 +329,22 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
307
329
|
]),
|
|
308
330
|
_: 1
|
|
309
331
|
}, 8, ["data", "loading"]),
|
|
310
|
-
|
|
311
|
-
|
|
332
|
+
t(S),
|
|
333
|
+
t(z, {
|
|
312
334
|
type: "flex",
|
|
313
335
|
justify: "end",
|
|
314
336
|
style: { "padding-right": "22px" }
|
|
315
337
|
}, {
|
|
316
338
|
default: m(() => [
|
|
317
|
-
|
|
339
|
+
t(U, {
|
|
318
340
|
content: "cancel",
|
|
319
341
|
status: "warning",
|
|
320
|
-
onTap:
|
|
342
|
+
onTap: V
|
|
321
343
|
}),
|
|
322
|
-
|
|
344
|
+
t(U, {
|
|
323
345
|
content: "confirm",
|
|
324
346
|
status: "primary",
|
|
325
|
-
onTap:
|
|
347
|
+
onTap: B
|
|
326
348
|
})
|
|
327
349
|
]),
|
|
328
350
|
_: 1
|
|
@@ -335,5 +357,5 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
335
357
|
}
|
|
336
358
|
});
|
|
337
359
|
export {
|
|
338
|
-
|
|
360
|
+
re as _
|
|
339
361
|
};
|