@utogether/udp-core 1.0.1-beta.9 → 1.0.2
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 +37 -39
- package/dist/{403-BOzKHdlm.js → 403-B1rIjAAu.js} +6 -6
- package/dist/{404-uwgt4Nll.js → 404-mBqc2y4t.js} +4 -4
- package/dist/{500-4HBf6V9m.js → 500-BoI45Zdh.js} +2 -2
- package/dist/{AuthorityInfo-DvbIh1vT.js → AuthorityInfo-B08NBIIn.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js} +3 -3
- package/dist/{Company-D7Q9BFmr.js → Company-JGGyWEWH.js} +3 -3
- package/dist/{CompanyPanel-C0-PJlrt.js → CompanyPanel-BQ_cCmDx.js} +7 -7
- package/dist/{Department-h2hlXACv.js → Department-z2iO6hwM.js} +10 -10
- package/dist/{DepartmentPanel-B6hDEQpG.js → DepartmentPanel-BtQe7zwU.js} +108 -78
- package/dist/{DesignPanel-cS58-1v9.js → DesignPanel-7mhtVWas.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +6 -6
- package/dist/{DictView-T3TmpBa8.js → DictView-CjchV2Yk.js} +15 -16
- package/dist/InvOrganization-Pn1O_XP0.js +74 -0
- package/dist/{Org-CnCBDGKF.js → Org-BqytV_vi.js} +1 -1
- package/dist/{Preview-BaktKXB1.js → Preview-CLpUUMay.js} +2 -2
- package/dist/{ReportDefine-5Rb0PO9A.js → ReportDefine-Cz1KtEUF.js} +1 -1
- package/dist/{ReportDesign-DYdkVREA.js → ReportDesign-BaORYud4.js} +13 -13
- package/dist/{ReportQuery-BwhzIXMt.js → ReportQuery-CPCPXiXz.js} +1 -1
- package/dist/{ReportQueryFrom-PHtWwlOe.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +1 -1
- package/dist/{ReportTemplate-DaadVXIi.js → ReportTemplate-CFiNMz79.js} +11 -11
- package/dist/{Role-Dtg3nAmG.js → Role-B-XDoJd5.js} +3 -3
- package/dist/{RoleAssign-DEGtLssH.js → RoleAssign-BolW8YVs.js} +8 -8
- package/dist/{RolePanel-DpUzfE_o.js → RolePanel-2kfs5tw9.js} +1 -1
- package/dist/{RolePanel-CT7BTPmy.js → RolePanel-HilSuYns.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js → RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +13 -13
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +4 -4
- package/dist/{Staff-_NlAGkrh.js → Staff-BTk3whFC.js} +3 -3
- package/dist/{StaffInfo-DVgUvVgd.js → StaffInfo-d3AuSzlA.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +5 -5
- package/dist/{StaffPanel-DKNZE3IE.js → StaffPanel-DV-D4jjz.js} +1 -1
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
- package/dist/{SysUser-kQUf7XKz.js → SysUser-BnjYytws.js} +2 -2
- package/dist/{SysUserPanel-C191uX3U.js → SysUserPanel-CBoyD-Qi.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
- package/dist/{SystemMenu-DwuSvHnj.js → SystemMenu-kYB_ZaUt.js} +36 -36
- package/dist/{UserInfo-DIsInFld.js → UserInfo-4dx97VBL.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +10 -10
- package/dist/{childView-3Bs2UBEw.js → childView-CHPNfTEb.js} +1 -1
- package/dist/{childView-BawyULD7.js → childView-CKA_JgVZ.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
- package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
- package/dist/{code-rule-DVaYcn8S.js → code-rule-CbxuZg0-.js} +40 -38
- package/dist/core.es.js +18 -12
- package/dist/{cron-task-xuzP-BpE.js → cron-task-nTOpqQYf.js} +7 -7
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-Cudt06qS.js → frameView-Z1tPUyCh.js} +1 -1
- package/dist/index-C3q8HoJM.js +4650 -0
- package/dist/{layoutView-BlFTV2jX.js → layoutView--MGA9zUB.js} +1766 -1760
- package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
- package/dist/log-out-DiwGCg7p.js +130 -0
- package/dist/login-C6Y0ajDp.js +251 -0
- package/dist/{login-log-kqKzKTto.js → login-log-C0V-_l3F.js} +5 -3
- package/dist/{lov-view-B2HaxyMs.js → lov-view-Cmv7wZZ9.js} +6 -6
- package/dist/{menuInfo-BxCTJ1VW.js → menuInfo-UeutJpOa.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +118 -98
- package/dist/{pda-app-DPsAFNiw.js → pda-app-B6w99SJo.js} +10 -10
- package/dist/{resource-Dibb7t8u.js → resource-BybJvUv0.js} +4 -4
- package/dist/{su-welcome-DejR0KkM.js → su-welcome-C1bmxHoY.js} +119 -121
- package/dist/sys-config-BnmIDnCj.js +370 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +49 -40
- package/package.json +18 -18
- package/src/App.vue +65 -65
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +4 -2
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +1 -6
- package/src/components/udp/content/index.vue +88 -0
- package/src/components/udp/{form.vue → form/form.vue} +13 -16
- package/src/components/udp/{grid.vue → grid/index.vue} +56 -27
- package/src/components/udp/index.ts +4 -9
- package/src/components/udp/ut-stamp-badge/index.vue +271 -0
- package/src/components/udp/utils.ts +66 -105
- 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 +25 -25
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-setting/index.vue +503 -510
- 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 +101 -98
- package/src/layout/components/lay-tag/index.vue +24 -51
- package/src/layout/hooks/useDataThemeChange.ts +1 -1
- package/src/layout/hooks/useNav.ts +176 -173
- package/src/layout/hooks/useTag.ts +227 -233
- package/src/layout/types.ts +93 -92
- package/src/main.ts +115 -119
- package/src/plugins/i18n/en.ts +302 -302
- package/src/plugins/i18n/module/u-workflow.ts +1 -1
- package/src/plugins/i18n/zh.ts +21 -6
- package/src/plugins/vxe-table/index.ts +116 -53
- package/src/plugins/vxe-table/render.tsx +945 -956
- package/src/router/index.ts +17 -17
- package/src/router/modules/flow.ts +35 -0
- package/src/router/modules/home.ts +32 -32
- package/src/router/modules/remaining.ts +58 -58
- package/src/router/utils.ts +420 -377
- package/src/store/modules/app.ts +2 -4
- package/src/store/modules/epTheme.ts +48 -49
- 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 +61 -2
- package/src/utils/dataFormat/index.ts +223 -223
- package/src/utils/index.ts +3 -1
- package/src/utils/lifecycle.ts +39 -20
- package/src/utils/propTypes.ts +1 -6
- package/src/utils/storage/index.ts +2 -2
- package/src/utils/udp/http/index.ts +24 -11
- package/src/utils/udp/http/types.d.ts +3 -10
- package/src/views/login/login-view.vue +4 -18
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/department/Department.vue +58 -58
- package/src/views/organization/department/DepartmentPanel.vue +303 -283
- package/src/views/organization/inv-org/InvOrganization.vue +22 -7
- package/src/views/organization/staff/StaffInfo.vue +127 -133
- package/src/views/organization/staff/StaffPanel.vue +162 -145
- package/src/views/system/cron/cron-task.vue +2 -12
- package/src/views/system/menu/SystemMenu.vue +185 -183
- package/src/views/system/menu/menuInfo.vue +384 -363
- package/src/views/system/role/UserInfo.vue +195 -195
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -139
- package/src/views/system/sys/sys-config.vue +69 -20
- package/src/views/system/sysUser/SysUserPanel.vue +97 -28
- package/src/views/uapp/pda/pda-app.vue +208 -208
- package/src/views/udev/coderule/code-rule.vue +132 -121
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +183 -222
- package/src/views/udev/lov/childView.vue +1 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/src/views/uhome/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +319 -339
- package/src/views/ulogin/login.vue +325 -321
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +104 -107
- package/src/views/upms/user/login-log.vue +54 -60
- package/src/views/urpt/design/DesignPanel.vue +507 -507
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +2 -4
- package/src/views/utask/flow-task.vue +18 -0
- package/types/global.d.ts +231 -236
- package/dist/InvOrganization-BVuOhzbt.js +0 -66
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js +0 -111
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js +0 -294
- package/dist/childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js +0 -187
- package/dist/index-CKnq5xIa.js +0 -2623
- package/dist/log-out--RRncZhN.js +0 -120
- package/dist/login-CpKykfdf.js +0 -253
- package/dist/sys-config-DiySRWns.js +0 -277
- package/dist/utogether-Dct_14Zk.js +0 -182
- package/src/components/udp/count-down.vue +0 -536
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
- package/src/components/udp/form-upload.vue +0 -482
- package/src/components/udp/lov.vue +0 -388
- package/src/components/udp/modal-form.vue +0 -189
- package/src/components/udp/modal-grid.vue +0 -288
- package/src/components/udp/upload.vue +0 -423
- package/src/utils/udp/useRender.ts +0 -431
|
@@ -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, y as ee } from "./index-C3q8HoJM.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,117 +12,117 @@ 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",
|
|
@@ -130,21 +130,21 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
130
130
|
transfer: ""
|
|
131
131
|
}, {
|
|
132
132
|
default: m(() => [
|
|
133
|
-
e.record.menuType === "0" ? (
|
|
133
|
+
e.record.menuType === "0" ? (r(), u(n, {
|
|
134
134
|
key: 0,
|
|
135
135
|
title: e.$t("message.menuType"),
|
|
136
136
|
field: "menuCategory",
|
|
137
137
|
span: "24"
|
|
138
138
|
}, {
|
|
139
|
-
default: m(({ data:
|
|
140
|
-
|
|
141
|
-
modelValue:
|
|
142
|
-
"onUpdate:modelValue": (d) =>
|
|
143
|
-
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
144
|
transfer: !1
|
|
145
145
|
}, {
|
|
146
146
|
default: m(() => [
|
|
147
|
-
(
|
|
147
|
+
(r(!0), L(G, null, J(Y("SU.MENU.TYPE"), (d) => (r(), u(l, {
|
|
148
148
|
key: d.dictCode,
|
|
149
149
|
value: d.dictCode,
|
|
150
150
|
label: d.dictName,
|
|
@@ -156,15 +156,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
156
156
|
]),
|
|
157
157
|
_: 1
|
|
158
158
|
}, 8, ["title"])) : p("", !0),
|
|
159
|
-
n
|
|
159
|
+
t(n, {
|
|
160
160
|
title: e.$t("message.permissionCode"),
|
|
161
161
|
field: "dispalyCode",
|
|
162
162
|
span: "24"
|
|
163
163
|
}, {
|
|
164
|
-
default: m(({ data:
|
|
165
|
-
|
|
166
|
-
modelValue:
|
|
167
|
-
"onUpdate:modelValue": (d) =>
|
|
164
|
+
default: m(({ data: o }) => [
|
|
165
|
+
t(C, {
|
|
166
|
+
modelValue: o.dispalyCode,
|
|
167
|
+
"onUpdate:modelValue": (d) => o.dispalyCode = d,
|
|
168
168
|
clearable: "",
|
|
169
169
|
class: K({ "u-menu-prefix": e.dataStatus === "add" }),
|
|
170
170
|
disabled: e.dataStatus !== "add"
|
|
@@ -180,76 +180,96 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
182
182
|
}, 8, ["title"]),
|
|
183
|
-
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (
|
|
183
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
|
|
184
184
|
key: 1,
|
|
185
185
|
title: e.$t("message.menuCode"),
|
|
186
186
|
"item-render": { name: "$input" },
|
|
187
187
|
field: "menuCode",
|
|
188
188
|
span: "24"
|
|
189
189
|
}, null, 8, ["title"])) : p("", !0),
|
|
190
|
-
n
|
|
190
|
+
t(n, {
|
|
191
191
|
title: e.$t("message.menuName"),
|
|
192
192
|
"item-render": { name: "$input" },
|
|
193
193
|
field: "menuName",
|
|
194
194
|
span: "24"
|
|
195
195
|
}, null, 8, ["title"]),
|
|
196
|
-
n
|
|
196
|
+
t(n, {
|
|
197
197
|
title: e.$t("message.menuNameEn"),
|
|
198
198
|
field: "menuNameEn",
|
|
199
199
|
span: "24",
|
|
200
200
|
"item-render": { name: "$input" }
|
|
201
201
|
}, null, 8, ["title"]),
|
|
202
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
202
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
203
203
|
key: 2,
|
|
204
204
|
title: e.$t("message.menuPath"),
|
|
205
205
|
"item-render": { name: "$input" },
|
|
206
206
|
field: "menuPath",
|
|
207
207
|
span: "24"
|
|
208
208
|
}, null, 8, ["title"])),
|
|
209
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
209
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
210
210
|
key: 3,
|
|
211
211
|
title: e.$t("message.i18nField"),
|
|
212
212
|
"item-render": { name: "$input" },
|
|
213
213
|
field: "i18nField",
|
|
214
214
|
span: "24"
|
|
215
215
|
}, null, 8, ["title"])),
|
|
216
|
-
e.record.menuCategory === "2" ? (
|
|
216
|
+
e.record.menuCategory === "2" ? (r(), u(n, {
|
|
217
217
|
key: 4,
|
|
218
218
|
title: e.$t("message.frameSrc"),
|
|
219
219
|
"item-render": { name: "$input" },
|
|
220
220
|
field: "frameSrc",
|
|
221
221
|
span: "24"
|
|
222
222
|
}, null, 8, ["title"])) : p("", !0),
|
|
223
|
-
e.record.menuCategory === "3" ? (
|
|
223
|
+
e.record.menuCategory === "3" ? (r(), u(n, {
|
|
224
224
|
key: 5,
|
|
225
225
|
title: e.$t("message.externalURI"),
|
|
226
226
|
"item-render": { name: "$input" },
|
|
227
227
|
field: "menuCode",
|
|
228
228
|
span: "24"
|
|
229
229
|
}, null, 8, ["title"])) : p("", !0),
|
|
230
|
-
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (
|
|
230
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
|
|
231
231
|
key: 6,
|
|
232
232
|
title: e.$t("message.extraIcon"),
|
|
233
233
|
"item-render": { name: "$input" },
|
|
234
234
|
field: "extraIcon",
|
|
235
235
|
span: "24"
|
|
236
236
|
}, null, 8, ["title"])) : p("", !0),
|
|
237
|
-
|
|
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, {
|
|
238
258
|
key: 7,
|
|
239
259
|
title: e.$t("message.redirect"),
|
|
240
260
|
"item-render": { name: "$input" },
|
|
241
261
|
field: "redirect",
|
|
242
262
|
span: "24"
|
|
243
263
|
}, null, 8, ["title"])) : p("", !0),
|
|
244
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
264
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
245
265
|
key: 8,
|
|
246
266
|
title: e.$t("message.sort"),
|
|
247
267
|
span: "24"
|
|
248
268
|
}, {
|
|
249
|
-
default: m(({ data:
|
|
250
|
-
|
|
251
|
-
modelValue:
|
|
252
|
-
"onUpdate:modelValue": (d) =>
|
|
269
|
+
default: m(({ data: o }) => [
|
|
270
|
+
t(C, {
|
|
271
|
+
modelValue: o.sort,
|
|
272
|
+
"onUpdate:modelValue": (d) => o.sort = d,
|
|
253
273
|
type: "number",
|
|
254
274
|
step: "10",
|
|
255
275
|
clearable: ""
|
|
@@ -257,33 +277,33 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
257
277
|
]),
|
|
258
278
|
_: 1
|
|
259
279
|
}, 8, ["title"])),
|
|
260
|
-
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (
|
|
280
|
+
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (r(), u(n, {
|
|
261
281
|
key: 9,
|
|
262
282
|
title: e.$t("message.btn.auth")
|
|
263
283
|
}, {
|
|
264
284
|
default: m(() => [
|
|
265
|
-
|
|
266
|
-
modelValue:
|
|
267
|
-
"onUpdate:modelValue":
|
|
285
|
+
t(k, {
|
|
286
|
+
modelValue: b.value,
|
|
287
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o)
|
|
268
288
|
}, {
|
|
269
289
|
default: m(() => [
|
|
270
|
-
|
|
290
|
+
t(c, {
|
|
271
291
|
label: "add",
|
|
272
292
|
content: e.$t("message.btn.add")
|
|
273
293
|
}, null, 8, ["content"]),
|
|
274
|
-
|
|
294
|
+
t(c, {
|
|
275
295
|
label: "del",
|
|
276
296
|
content: e.$t("message.btn.delete")
|
|
277
297
|
}, null, 8, ["content"]),
|
|
278
|
-
|
|
298
|
+
t(c, {
|
|
279
299
|
label: "edit",
|
|
280
300
|
content: e.$t("message.btn.edit")
|
|
281
301
|
}, null, 8, ["content"]),
|
|
282
|
-
|
|
302
|
+
t(c, {
|
|
283
303
|
label: "fetch",
|
|
284
304
|
content: e.$t("message.btn.fetch")
|
|
285
305
|
}, null, 8, ["content"]),
|
|
286
|
-
|
|
306
|
+
t(c, {
|
|
287
307
|
label: "export",
|
|
288
308
|
content: e.$t("message.btn.export")
|
|
289
309
|
}, null, 8, ["content"])
|
|
@@ -293,15 +313,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
293
313
|
]),
|
|
294
314
|
_: 1
|
|
295
315
|
}, 8, ["title"])) : p("", !0),
|
|
296
|
-
e.record.menuType * 1 ? p("", !0) : (
|
|
316
|
+
e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
|
|
297
317
|
key: 10,
|
|
298
318
|
title: e.$t("message.icon"),
|
|
299
319
|
span: "24"
|
|
300
320
|
}, {
|
|
301
|
-
default: m(({ data:
|
|
302
|
-
|
|
303
|
-
modelValue:
|
|
304
|
-
"onUpdate:modelValue": (d) =>
|
|
321
|
+
default: m(({ data: o }) => [
|
|
322
|
+
t(w, {
|
|
323
|
+
modelValue: o.icon,
|
|
324
|
+
"onUpdate:modelValue": (d) => o.icon = d
|
|
305
325
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
306
326
|
]),
|
|
307
327
|
_: 1
|
|
@@ -309,22 +329,22 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
309
329
|
]),
|
|
310
330
|
_: 1
|
|
311
331
|
}, 8, ["data", "loading"]),
|
|
312
|
-
|
|
313
|
-
|
|
332
|
+
t(S),
|
|
333
|
+
t(z, {
|
|
314
334
|
type: "flex",
|
|
315
335
|
justify: "end",
|
|
316
336
|
style: { "padding-right": "22px" }
|
|
317
337
|
}, {
|
|
318
338
|
default: m(() => [
|
|
319
|
-
|
|
339
|
+
t(U, {
|
|
320
340
|
content: "cancel",
|
|
321
341
|
status: "warning",
|
|
322
|
-
onTap:
|
|
342
|
+
onTap: V
|
|
323
343
|
}),
|
|
324
|
-
|
|
344
|
+
t(U, {
|
|
325
345
|
content: "confirm",
|
|
326
346
|
status: "primary",
|
|
327
|
-
onTap:
|
|
347
|
+
onTap: B
|
|
328
348
|
})
|
|
329
349
|
]),
|
|
330
350
|
_: 1
|
|
@@ -337,5 +357,5 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
|
|
|
337
357
|
}
|
|
338
358
|
});
|
|
339
359
|
export {
|
|
340
|
-
|
|
360
|
+
re as _
|
|
341
361
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as re, ref as N, computed as
|
|
1
|
+
import { defineComponent as re, ref as N, computed as K, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
|
|
2
2
|
import { useI18n as je } from "vue-i18n";
|
|
3
3
|
import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { I as Se,
|
|
4
|
+
import { I as Se, G as xe, y as $e, _ as Pe } from "./index-C3q8HoJM.js";
|
|
5
5
|
import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
|
|
6
6
|
import { clone as oe, isString as Z } from "xe-utils";
|
|
7
7
|
import Ne from "qrcode";
|
|
@@ -257,12 +257,12 @@ ${B(r)}`), n;
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ge(e) {
|
|
261
261
|
return b("instanceOf", {
|
|
262
262
|
type: e
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Ke(e) {
|
|
266
266
|
return b("objectOf", {
|
|
267
267
|
type: Object,
|
|
268
268
|
validator(t) {
|
|
@@ -359,7 +359,7 @@ const tt = /* @__PURE__ */ (() => {
|
|
|
359
359
|
"VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
|
|
360
360
|
);
|
|
361
361
|
}
|
|
362
|
-
}, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf",
|
|
362
|
+
}, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ge), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ke), h(e, "shape", Je), h(e, "utils", {
|
|
363
363
|
validate(t, r) {
|
|
364
364
|
return S(r, t, !0) === !0;
|
|
365
365
|
},
|
|
@@ -445,7 +445,7 @@ const rt = {
|
|
|
445
445
|
const {
|
|
446
446
|
toCanvas: r,
|
|
447
447
|
toDataURL: n
|
|
448
|
-
} = Ne, o = N(!0), a = N(null), s =
|
|
448
|
+
} = Ne, o = N(!0), a = N(null), s = K(() => String(e.text)), d = K(() => ({
|
|
449
449
|
width: e.width + "px",
|
|
450
450
|
height: e.width + "px"
|
|
451
451
|
})), y = async () => {
|
|
@@ -503,8 +503,8 @@ const rt = {
|
|
|
503
503
|
q.width = T + w, q.height = T + w;
|
|
504
504
|
const X = q.getContext("2d");
|
|
505
505
|
if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
|
|
506
|
-
const
|
|
507
|
-
|
|
506
|
+
const G = v.createPattern(q, "no-repeat");
|
|
507
|
+
G && (v.fillStyle = G, v.fill());
|
|
508
508
|
};
|
|
509
509
|
return new Promise((A) => {
|
|
510
510
|
V.onload = () => {
|
|
@@ -583,7 +583,7 @@ const at = {
|
|
|
583
583
|
width: 90,
|
|
584
584
|
formatter: ({
|
|
585
585
|
row: i
|
|
586
|
-
}) => i.enabled === "1" ? n("message.appupper") : n("message.applower")
|
|
586
|
+
}) => i.enabled === "1" ? n("message.udp.appupper") : n("message.udp.applower")
|
|
587
587
|
}, {
|
|
588
588
|
field: "creationDate",
|
|
589
589
|
width: 140
|
|
@@ -704,7 +704,7 @@ const at = {
|
|
|
704
704
|
}, null, 8, ["record", "title"])) : we("", !0)]);
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
}), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-
|
|
707
|
+
}), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
|
|
708
708
|
export {
|
|
709
709
|
ht as default
|
|
710
710
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as
|
|
1
|
+
import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as b, createCommentVNode as x, Fragment as U } from "vue";
|
|
2
2
|
import { successMessage as B } from "@utogether/utils";
|
|
3
3
|
import { useClipboard as N } from "@vueuse/core";
|
|
4
|
-
import {
|
|
4
|
+
import { G as y } from "./index-C3q8HoJM.js";
|
|
5
5
|
const q = {
|
|
6
6
|
name: "StaticResource"
|
|
7
7
|
}, V = /* @__PURE__ */ w({
|
|
@@ -77,7 +77,7 @@ const q = {
|
|
|
77
77
|
editable: !1,
|
|
78
78
|
mode: "form",
|
|
79
79
|
events: p
|
|
80
|
-
}, null, 512), t.value ? (i(),
|
|
80
|
+
}, null, 512), t.value ? (i(), b(C, {
|
|
81
81
|
key: 0,
|
|
82
82
|
record: a.value,
|
|
83
83
|
items: f,
|
|
@@ -88,7 +88,7 @@ const q = {
|
|
|
88
88
|
url: n,
|
|
89
89
|
onClose: u[0] || (u[0] = (R) => t.value = !1),
|
|
90
90
|
onConfirm: h
|
|
91
|
-
}, null, 8, ["record"])) :
|
|
91
|
+
}, null, 8, ["record"])) : x("", !0)]);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
});
|