@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.25
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/dist/403-QwBKrRZE.js +72 -0
- package/dist/404-Cr7MbzNV.js +72 -0
- package/dist/500-B7kCOeIA.js +77 -0
- package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
- package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
- package/dist/Company-BhOlvl7Q.js +21 -0
- package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-QvngN63N.js +21 -0
- package/dist/DepartmentPanel-BCXqC39J.js +2 -0
- package/dist/DepartmentPanel-DntGycxr.js +242 -0
- package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
- package/dist/DictView-ERFqZ5VD.js +100 -0
- package/dist/File-WJXjGYxr.js +89 -0
- package/dist/InvOrganization-BwMmD8Ua.js +76 -0
- package/dist/Org-HgnOWubi.js +76 -0
- package/dist/Preview-CVZdnHB1.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-CjfTyyy_.js +158 -0
- package/dist/ReportQuery-CP-E0Puv.js +101 -0
- package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
- package/dist/ReportTemplate-DE25zc1f.js +162 -0
- package/dist/Role-K7v_ZhFE.js +21 -0
- package/dist/RoleAssign-C16fjLaX.js +22 -0
- package/dist/RolePanel-CV-xPlYJ.js +176 -0
- package/dist/RolePanel-DPCe9k8f.js +131 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-w2ly4qd0.js +22 -0
- package/dist/StaffInfo-DPDRpz6F.js +149 -0
- package/dist/StaffPanel-DI1eTTp9.js +143 -0
- package/dist/SysUser-BMTX1cJM.js +12 -0
- package/dist/SysUserPanel-xwZdVjdp.js +365 -0
- package/dist/SystemMenu-TXhiQZVm.js +154 -0
- package/dist/UserInfo-JQqw8FMT.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-Bi6BGB5B.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-Bk8OD9bV.js +181 -0
- package/dist/childView-CyrcwshT.js +184 -0
- package/dist/code-rule-QFrhqFrW.js +151 -0
- package/dist/contant-Q77dU_V3.js +4 -0
- package/dist/core.es.js +6 -23
- package/dist/cron-task-BpUDKEAU.js +131 -0
- package/dist/flow-task-DAc2NrDU.js +11 -0
- package/dist/frameView-Di0zJZUR.js +39 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/layout-home-BVp7vYLR.js +239 -0
- package/dist/layoutView-DFUjrqAS.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-BdCDnuXL.js +233 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DkmG4K57.js +95 -0
- package/dist/menuInfo-kp2wNYOp.js +346 -0
- package/dist/mitt-CQgI7DYU.js +27 -0
- package/dist/pda-app-CA7YI37u.js +589 -0
- package/dist/redirect-N0k4tImU.js +16 -0
- package/dist/resource-CfQTHFcs.js +94 -0
- package/dist/router-CeluSGiD.js +1531 -0
- package/dist/su-welcome-JeiovGpe.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/udp-core-Dhm-BlAs.js +2032 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
- package/dist/useNav-DY8FkltH.js +106 -0
- package/dist/utogether-l7JXs4Lv.js +4 -0
- package/dist/water-mark-WDQZ9YqB.js +119 -0
- package/dist/wecom-push-kWkAVRCj.js +77 -0
- package/package.json +1 -1
- package/src/api/index.ts +51 -51
- package/src/components/udp/index.ts +9 -8
- package/src/components/udp/lov/index.vue +430 -0
- package/src/components/udp/upload/index.vue +444 -444
- package/src/main.ts +110 -111
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- package/tsconfig.json +1 -1
- package/vite.config.ts +8 -3
- package/dist/403-DDCAPCYb.js +0 -65
- package/dist/404-BclWW4UB.js +0 -65
- package/dist/500-BAggMgTl.js +0 -67
- package/dist/AuthorityInfo-liCxYVNc.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
- package/dist/Company-DjaOAaWM.js +0 -25
- package/dist/CompanyPanel-Dp_2z717.js +0 -206
- package/dist/DataSet-DT-rGICv.js +0 -147
- package/dist/Department-Bp5RGbl9.js +0 -25
- package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
- package/dist/DesignPanel-BS2ioHd_.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
- package/dist/DictView-pYJXt6IS.js +0 -111
- package/dist/InvOrganization-D90gRzlN.js +0 -74
- package/dist/Org-Dk4KuIx2.js +0 -39
- package/dist/Preview-DpZR6uKs.js +0 -48
- package/dist/ReportDefine-PtJnfaLw.js +0 -10
- package/dist/ReportDesign-4HWkcTtA.js +0 -165
- package/dist/ReportQuery-BPY1lWFn.js +0 -75
- package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
- package/dist/ReportTemplate-C2F3oy8I.js +0 -161
- package/dist/Role-iTP6DYOi.js +0 -25
- package/dist/RoleAssign-DIYNHQeF.js +0 -26
- package/dist/RolePanel-0ojFIz9G.js +0 -4
- package/dist/RolePanel-B0Yr5vjo.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
- package/dist/Staff-sftZ0bIV.js +0 -26
- package/dist/StaffInfo-BG2FMXzR.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
- package/dist/StaffPanel-BydqiitC.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
- package/dist/SysUser-qMGVHpJ_.js +0 -15
- package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
- package/dist/SystemMenu-DUbWmLip.js +0 -156
- package/dist/UserInfo-DNkiTdWm.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/childView-CjUjh8Da.js +0 -4
- package/dist/childView-DT9luEEK.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
- package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
- package/dist/code-rule-uOazxFfn.js +0 -148
- package/dist/cron-task-DEykunjo.js +0 -135
- package/dist/flow-task-B07st2aD.js +0 -10
- package/dist/frameView-FxzlbkeM.js +0 -44
- package/dist/index-BnxyUGKa.js +0 -7944
- package/dist/layout-home-C0jme8Ju.js +0 -232
- package/dist/layoutView-BqMAHIxF.js +0 -3239
- package/dist/log-in-skZaWMBY.js +0 -117
- package/dist/log-out-BiND7muW.js +0 -130
- package/dist/login-C-184YPO.js +0 -235
- package/dist/login-log-BEHYT0v0.js +0 -70
- package/dist/lov-view-Df-swRfy.js +0 -99
- package/dist/menuInfo-CpyjX4a4.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
- package/dist/pda-app-DP87aTBc.js +0 -710
- package/dist/redirect-BqegffKC.js +0 -15
- package/dist/resource-CAldbnw4.js +0 -97
- package/dist/su-welcome-DoBUqadB.js +0 -42225
- package/dist/sys-config-hGuE7DUf.js +0 -385
- package/dist/useNav-Cf_e5pBY.js +0 -92
- package/dist/utogether-MlnyYtNS.js +0 -4
- package/dist/wecom-push-DR7NsNro.js +0 -70
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as e } from "./api-BFNxcxSN.js";
|
|
2
|
+
import { t } from "./await-to-js.es5-DkWYmPXW.js";
|
|
3
|
+
import { t as n } from "./childView-CyrcwshT.js";
|
|
4
|
+
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, nextTick as c, openBlock as l, ref as u, resolveComponent as d } from "vue";
|
|
5
|
+
import { useRender as f } from "@utogether/utils";
|
|
6
|
+
//#region src/views/udev/lov/lov-view.vue?vue&type=script&setup=true&lang.tsx
|
|
7
|
+
var p = "/upfm/v1/lovViewHeader", m = /* @__PURE__ */ s({
|
|
8
|
+
name: "LovView",
|
|
9
|
+
__name: "lov-view",
|
|
10
|
+
setup(s) {
|
|
11
|
+
let m = u(null), h = [{ field: "lovCode" }, { field: "lovName" }], g = f(), _ = [
|
|
12
|
+
{
|
|
13
|
+
type: "checkbox",
|
|
14
|
+
width: 50,
|
|
15
|
+
align: "center"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
field: "lovCode",
|
|
19
|
+
required: !0,
|
|
20
|
+
editRender: g.renderInput()
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
field: "lovName",
|
|
24
|
+
required: !0,
|
|
25
|
+
editRender: g.renderInput()
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
field: "valueField",
|
|
29
|
+
required: !0,
|
|
30
|
+
editRender: g.renderInput()
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
field: "lovTitle",
|
|
34
|
+
editRender: g.renderInput()
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
field: "lovType",
|
|
38
|
+
editRender: g.renderDict("SU.LOV.TYPE"),
|
|
39
|
+
required: !0,
|
|
40
|
+
formatter: ["formatDict", "SU.LOV.TYPE"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
field: "remarks",
|
|
44
|
+
title: "message.remark",
|
|
45
|
+
editRender: g.renderInput()
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
field: "enabled",
|
|
49
|
+
width: 80,
|
|
50
|
+
cellRender: g.renderEnabled(S)
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
field: "operate",
|
|
54
|
+
width: 100,
|
|
55
|
+
fixed: "right",
|
|
56
|
+
slots: { default: ({ row: e }) => !e.id || e.enabled === "0" ? null : [o(d("ut-button"), {
|
|
57
|
+
content: "config",
|
|
58
|
+
icon: "ri-edit-box-line",
|
|
59
|
+
onTap: () => b(e)
|
|
60
|
+
}, null)] }
|
|
61
|
+
}
|
|
62
|
+
], v = u(!1), y = u(null), b = (e) => {
|
|
63
|
+
c(() => {
|
|
64
|
+
v.value = !0, y.value = e;
|
|
65
|
+
});
|
|
66
|
+
}, x = () => {
|
|
67
|
+
m.value.refreshData(), v.value = !1;
|
|
68
|
+
};
|
|
69
|
+
async function S({ row: n }) {
|
|
70
|
+
let [r] = await t(e().put(p, [n]));
|
|
71
|
+
!r && m.value.refreshData();
|
|
72
|
+
}
|
|
73
|
+
let C = { editActived({ row: e }) {
|
|
74
|
+
_[1].editRender.props.disabled = !!e.id, m.value.refreshColumn();
|
|
75
|
+
} };
|
|
76
|
+
return (e, t) => {
|
|
77
|
+
let s = d("ut-grid");
|
|
78
|
+
return l(), a("div", null, [o(s, {
|
|
79
|
+
ref_key: "xgrid",
|
|
80
|
+
ref: m,
|
|
81
|
+
items: h,
|
|
82
|
+
columns: _,
|
|
83
|
+
url: p,
|
|
84
|
+
events: C
|
|
85
|
+
}, null, 512), v.value ? (l(), r(n, {
|
|
86
|
+
key: 0,
|
|
87
|
+
show: v.value,
|
|
88
|
+
record: y.value,
|
|
89
|
+
onOnClose: x
|
|
90
|
+
}, null, 8, ["show", "record"])) : i("", !0)]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
export { m as default };
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { I as e, y as t } from "./router-CeluSGiD.js";
|
|
2
|
+
import { r as n } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as r } from "./await-to-js.es5-DkWYmPXW.js";
|
|
4
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, resolveComponent as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
|
|
5
|
+
import { templateRef as b } from "@vueuse/core";
|
|
6
|
+
import { useI18n as x } from "vue-i18n";
|
|
7
|
+
//#region src/views/system/menu/menuInfo.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var S = { class: "ut-menu-wrapper" }, C = "/uums/menu", w = /* @__PURE__ */ d({
|
|
9
|
+
__name: "menuInfo",
|
|
10
|
+
props: {
|
|
11
|
+
show: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
record: { default: () => ({}) },
|
|
16
|
+
dataStatus: { default: "detail" },
|
|
17
|
+
direction: { default: "rtl" }
|
|
18
|
+
},
|
|
19
|
+
emits: ["close"],
|
|
20
|
+
setup(e, { emit: d }) {
|
|
21
|
+
let w = t().getDataDict, T = e;
|
|
22
|
+
v(() => T.show, () => {
|
|
23
|
+
j.value = T.show && P();
|
|
24
|
+
});
|
|
25
|
+
let E = n(), { t: D } = x(), O = {
|
|
26
|
+
menuCode: [{
|
|
27
|
+
required: !0,
|
|
28
|
+
message: `${D("message.required")}${D("message.menuCode")}`
|
|
29
|
+
}],
|
|
30
|
+
menuName: [{
|
|
31
|
+
required: !0,
|
|
32
|
+
message: `${D("message.required")}${D("message.menuName")}`
|
|
33
|
+
}],
|
|
34
|
+
menuPath: [{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: `${D("message.required")}${D("message.menuPath")}`
|
|
37
|
+
}],
|
|
38
|
+
frameSrc: [{
|
|
39
|
+
required: !0,
|
|
40
|
+
message: `${D("message.required")}${D("message.externalURI")}`
|
|
41
|
+
}],
|
|
42
|
+
i18nField: [{
|
|
43
|
+
required: !0,
|
|
44
|
+
message: `${D("message.required")}${D("message.i18nField")}`
|
|
45
|
+
}],
|
|
46
|
+
dispalyCode: [{
|
|
47
|
+
required: !0,
|
|
48
|
+
message: `${D("message.required")}${D("message.permissionCode")}`
|
|
49
|
+
}],
|
|
50
|
+
menuCategory: [{
|
|
51
|
+
required: !0,
|
|
52
|
+
message: `${D("message.required")}${D("message.menuType")}`
|
|
53
|
+
}]
|
|
54
|
+
}, k = b("xForm", null), A = m(!1), j = m(""), M = m(["fetch"]), N = d, P = () => {
|
|
55
|
+
let { record: e, dataStatus: t } = T, { id: n, parentId: r, hasChildren: i } = e;
|
|
56
|
+
if (t !== "update") return !n && !r ? "su" : ((i || t === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
57
|
+
}, F = () => {
|
|
58
|
+
k.value.validate(async (e) => {
|
|
59
|
+
if (!e) {
|
|
60
|
+
A.value = !0;
|
|
61
|
+
let e, { record: t, dataStatus: n } = T;
|
|
62
|
+
if (n === "add") {
|
|
63
|
+
t.permissionCode = `${j.value}.${t.dispalyCode}`;
|
|
64
|
+
let [n, i] = await r(E.post(C, [t]));
|
|
65
|
+
if (!n && !["0", "5"].includes(t.menuCategory) && M.value.length) {
|
|
66
|
+
let n = M.value.map((e, n) => ({
|
|
67
|
+
permissionCode: t.permissionCode + "." + e,
|
|
68
|
+
parentId: i[0].id,
|
|
69
|
+
menuName: I(e),
|
|
70
|
+
menuType: 1,
|
|
71
|
+
enabled: "1",
|
|
72
|
+
sort: (n + 1) * 10
|
|
73
|
+
})), [a, o] = await r(E.post(C, n));
|
|
74
|
+
a || (e = o[0]);
|
|
75
|
+
}
|
|
76
|
+
A.value = !1;
|
|
77
|
+
} else t.permissionCode = t.dispalyCode, await r(E.put(C, [t])), A.value = !1, e = t;
|
|
78
|
+
R("submit", e);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}, I = (e) => ({
|
|
82
|
+
fetch: D("message.btn.fetch"),
|
|
83
|
+
add: D("message.btn.add"),
|
|
84
|
+
edit: D("message.btn.edit"),
|
|
85
|
+
del: D("message.btn.delete"),
|
|
86
|
+
export: D("message.btn.export")
|
|
87
|
+
})[e], L = (e) => w[e]?.children.map((e) => (e.enabled = e.dictCode === "0" && T.record.menuCategory !== "0", e));
|
|
88
|
+
function R(e, t) {
|
|
89
|
+
N("close", e, t);
|
|
90
|
+
}
|
|
91
|
+
return (t, n) => {
|
|
92
|
+
let r = g("vxe-option"), d = g("vxe-select"), m = g("vxe-form-item"), v = g("vxe-input"), b = g("vxe-number-input"), x = g("vxe-checkbox"), C = g("vxe-checkbox-group"), w = g("ut-icon-select"), T = g("vxe-form"), E = g("el-divider"), D = g("ut-button"), N = g("el-row"), P = g("el-drawer");
|
|
93
|
+
return p(), s("div", S, [u(P, {
|
|
94
|
+
"model-value": e.show,
|
|
95
|
+
title: t.$t("message.title.memuInfo"),
|
|
96
|
+
"before-close": R,
|
|
97
|
+
direction: "rtl",
|
|
98
|
+
"destroy-on-close": "",
|
|
99
|
+
size: "50%"
|
|
100
|
+
}, {
|
|
101
|
+
default: y(() => [
|
|
102
|
+
u(T, {
|
|
103
|
+
ref_key: "xForm",
|
|
104
|
+
ref: k,
|
|
105
|
+
data: e.record,
|
|
106
|
+
rules: O,
|
|
107
|
+
loading: A.value,
|
|
108
|
+
"title-colon": "",
|
|
109
|
+
"title-align": "right",
|
|
110
|
+
"title-width": "110",
|
|
111
|
+
transfer: ""
|
|
112
|
+
}, {
|
|
113
|
+
default: y(() => [
|
|
114
|
+
e.record.menuType === "0" ? (p(), a(m, {
|
|
115
|
+
key: 0,
|
|
116
|
+
title: t.$t("message.menuType"),
|
|
117
|
+
field: "menuCategory",
|
|
118
|
+
span: "24"
|
|
119
|
+
}, {
|
|
120
|
+
default: y(({ data: e }) => [u(d, {
|
|
121
|
+
modelValue: e.menuCategory,
|
|
122
|
+
"onUpdate:modelValue": (t) => e.menuCategory = t,
|
|
123
|
+
disabled: e.menuCategory === "0",
|
|
124
|
+
transfer: !1
|
|
125
|
+
}, {
|
|
126
|
+
default: y(() => [(p(!0), s(i, null, h(L("SU.MENU.TYPE"), (e) => (p(), a(r, {
|
|
127
|
+
key: e.dictCode,
|
|
128
|
+
value: e.dictCode,
|
|
129
|
+
label: e.dictName,
|
|
130
|
+
disabled: e.enabled
|
|
131
|
+
}, null, 8, [
|
|
132
|
+
"value",
|
|
133
|
+
"label",
|
|
134
|
+
"disabled"
|
|
135
|
+
]))), 128))]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, [
|
|
138
|
+
"modelValue",
|
|
139
|
+
"onUpdate:modelValue",
|
|
140
|
+
"disabled"
|
|
141
|
+
])]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["title"])) : o("", !0),
|
|
144
|
+
u(m, {
|
|
145
|
+
title: t.$t("message.permissionCode"),
|
|
146
|
+
field: "dispalyCode",
|
|
147
|
+
span: "24"
|
|
148
|
+
}, {
|
|
149
|
+
default: y(({ data: t }) => [u(v, {
|
|
150
|
+
modelValue: t.dispalyCode,
|
|
151
|
+
"onUpdate:modelValue": (e) => t.dispalyCode = e,
|
|
152
|
+
clearable: "",
|
|
153
|
+
class: f({ "u-menu-prefix": e.dataStatus === "add" }),
|
|
154
|
+
disabled: e.dataStatus !== "add"
|
|
155
|
+
}, l({ _: 2 }, [e.dataStatus === "add" ? {
|
|
156
|
+
name: "prefix",
|
|
157
|
+
fn: y(() => [c("span", null, _(j.value), 1)]),
|
|
158
|
+
key: "0"
|
|
159
|
+
} : void 0]), 1032, [
|
|
160
|
+
"modelValue",
|
|
161
|
+
"onUpdate:modelValue",
|
|
162
|
+
"class",
|
|
163
|
+
"disabled"
|
|
164
|
+
])]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["title"]),
|
|
167
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (p(), a(m, {
|
|
168
|
+
key: 1,
|
|
169
|
+
title: t.$t("message.menuCode"),
|
|
170
|
+
"item-render": { name: "$input" },
|
|
171
|
+
field: "menuCode",
|
|
172
|
+
span: "24"
|
|
173
|
+
}, null, 8, ["title"])) : o("", !0),
|
|
174
|
+
u(m, {
|
|
175
|
+
title: t.$t("message.menuName"),
|
|
176
|
+
"item-render": { name: "$input" },
|
|
177
|
+
field: "menuName",
|
|
178
|
+
span: "24"
|
|
179
|
+
}, null, 8, ["title"]),
|
|
180
|
+
u(m, {
|
|
181
|
+
title: t.$t("message.menuNameEn"),
|
|
182
|
+
field: "menuNameEn",
|
|
183
|
+
span: "24",
|
|
184
|
+
"item-render": { name: "$input" }
|
|
185
|
+
}, null, 8, ["title"]),
|
|
186
|
+
e.record.menuType * 1 ? o("", !0) : (p(), a(m, {
|
|
187
|
+
key: 2,
|
|
188
|
+
title: t.$t("message.menuPath"),
|
|
189
|
+
"item-render": { name: "$input" },
|
|
190
|
+
field: "menuPath",
|
|
191
|
+
span: "24"
|
|
192
|
+
}, null, 8, ["title"])),
|
|
193
|
+
e.record.menuType * 1 ? o("", !0) : (p(), a(m, {
|
|
194
|
+
key: 3,
|
|
195
|
+
title: t.$t("message.i18nField"),
|
|
196
|
+
"item-render": { name: "$input" },
|
|
197
|
+
field: "i18nField",
|
|
198
|
+
span: "24"
|
|
199
|
+
}, null, 8, ["title"])),
|
|
200
|
+
e.record.menuCategory === "2" ? (p(), a(m, {
|
|
201
|
+
key: 4,
|
|
202
|
+
title: t.$t("message.frameSrc"),
|
|
203
|
+
"item-render": { name: "$input" },
|
|
204
|
+
field: "frameSrc",
|
|
205
|
+
span: "24"
|
|
206
|
+
}, null, 8, ["title"])) : o("", !0),
|
|
207
|
+
e.record.menuCategory === "3" ? (p(), a(m, {
|
|
208
|
+
key: 5,
|
|
209
|
+
title: t.$t("message.externalURI"),
|
|
210
|
+
"item-render": { name: "$input" },
|
|
211
|
+
field: "menuCode",
|
|
212
|
+
span: "24"
|
|
213
|
+
}, null, 8, ["title"])) : o("", !0),
|
|
214
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (p(), a(m, {
|
|
215
|
+
key: 6,
|
|
216
|
+
title: t.$t("message.extraIcon"),
|
|
217
|
+
"item-render": { name: "$input" },
|
|
218
|
+
field: "extraIcon",
|
|
219
|
+
span: "24"
|
|
220
|
+
}, null, 8, ["title"])) : o("", !0),
|
|
221
|
+
u(m, {
|
|
222
|
+
"visible-method": ({ data: e }) => e.menuCategory === "1",
|
|
223
|
+
title: t.$t("message.udp.showLink"),
|
|
224
|
+
"item-render": {
|
|
225
|
+
name: "VxeSwitch",
|
|
226
|
+
props: {
|
|
227
|
+
openLabel: "显示",
|
|
228
|
+
closeLabel: "隐藏",
|
|
229
|
+
closeValue: "N",
|
|
230
|
+
openValue: "Y"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
field: "showLink",
|
|
234
|
+
span: "24"
|
|
235
|
+
}, null, 8, ["visible-method", "title"]),
|
|
236
|
+
u(m, {
|
|
237
|
+
"visible-method": ({ data: e }) => e.menuCategory === "1",
|
|
238
|
+
title: t.$t("message.udp.isApprovalPage"),
|
|
239
|
+
"item-render": {
|
|
240
|
+
name: "VxeSwitch",
|
|
241
|
+
props: {
|
|
242
|
+
openLabel: "是",
|
|
243
|
+
closeLabel: "否",
|
|
244
|
+
closeValue: "N",
|
|
245
|
+
openValue: "Y"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
field: "isApprovalPage",
|
|
249
|
+
span: "24"
|
|
250
|
+
}, null, 8, ["visible-method", "title"]),
|
|
251
|
+
["0", "5"].includes(e.record.menuCategory) ? (p(), a(m, {
|
|
252
|
+
key: 7,
|
|
253
|
+
title: t.$t("message.redirect"),
|
|
254
|
+
"item-render": { name: "$input" },
|
|
255
|
+
field: "redirect",
|
|
256
|
+
span: "24"
|
|
257
|
+
}, null, 8, ["title"])) : o("", !0),
|
|
258
|
+
e.record.menuType * 1 ? o("", !0) : (p(), a(m, {
|
|
259
|
+
key: 8,
|
|
260
|
+
title: t.$t("message.sort"),
|
|
261
|
+
span: "24"
|
|
262
|
+
}, {
|
|
263
|
+
default: y(({ data: e }) => [u(b, {
|
|
264
|
+
modelValue: e.sort,
|
|
265
|
+
"onUpdate:modelValue": (t) => e.sort = t,
|
|
266
|
+
"control-config": { enabled: !1 },
|
|
267
|
+
tep: "10",
|
|
268
|
+
clearable: ""
|
|
269
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["title"])),
|
|
272
|
+
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (p(), a(m, {
|
|
273
|
+
key: 9,
|
|
274
|
+
title: t.$t("message.btn.auth")
|
|
275
|
+
}, {
|
|
276
|
+
default: y(() => [u(C, {
|
|
277
|
+
modelValue: M.value,
|
|
278
|
+
"onUpdate:modelValue": n[0] ||= (e) => M.value = e
|
|
279
|
+
}, {
|
|
280
|
+
default: y(() => [
|
|
281
|
+
u(x, {
|
|
282
|
+
label: "add",
|
|
283
|
+
content: t.$t("message.btn.add")
|
|
284
|
+
}, null, 8, ["content"]),
|
|
285
|
+
u(x, {
|
|
286
|
+
label: "del",
|
|
287
|
+
content: t.$t("message.btn.delete")
|
|
288
|
+
}, null, 8, ["content"]),
|
|
289
|
+
u(x, {
|
|
290
|
+
label: "edit",
|
|
291
|
+
content: t.$t("message.btn.edit")
|
|
292
|
+
}, null, 8, ["content"]),
|
|
293
|
+
u(x, {
|
|
294
|
+
label: "fetch",
|
|
295
|
+
content: t.$t("message.btn.fetch")
|
|
296
|
+
}, null, 8, ["content"]),
|
|
297
|
+
u(x, {
|
|
298
|
+
label: "export",
|
|
299
|
+
content: t.$t("message.btn.export")
|
|
300
|
+
}, null, 8, ["content"])
|
|
301
|
+
]),
|
|
302
|
+
_: 1
|
|
303
|
+
}, 8, ["modelValue"])]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["title"])) : o("", !0),
|
|
306
|
+
e.record.menuType * 1 ? o("", !0) : (p(), a(m, {
|
|
307
|
+
key: 10,
|
|
308
|
+
title: t.$t("message.icon"),
|
|
309
|
+
span: "24"
|
|
310
|
+
}, {
|
|
311
|
+
default: y(({ data: e }) => [u(w, {
|
|
312
|
+
modelValue: e.icon,
|
|
313
|
+
"onUpdate:modelValue": (t) => e.icon = t
|
|
314
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
315
|
+
_: 1
|
|
316
|
+
}, 8, ["title"]))
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
}, 8, ["data", "loading"]),
|
|
320
|
+
u(E),
|
|
321
|
+
u(N, {
|
|
322
|
+
type: "flex",
|
|
323
|
+
justify: "end",
|
|
324
|
+
style: { "padding-right": "22px" }
|
|
325
|
+
}, {
|
|
326
|
+
default: y(() => [u(D, {
|
|
327
|
+
content: "cancel",
|
|
328
|
+
status: "warning",
|
|
329
|
+
icon: "ri-close-line",
|
|
330
|
+
onTap: R
|
|
331
|
+
}), u(D, {
|
|
332
|
+
content: "confirm",
|
|
333
|
+
status: "primary",
|
|
334
|
+
icon: "ri-save-line",
|
|
335
|
+
onTap: F
|
|
336
|
+
})]),
|
|
337
|
+
_: 1
|
|
338
|
+
})
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
}, 8, ["model-value", "title"])]);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
}), T = /* @__PURE__ */ e({ default: () => E }), E = w;
|
|
345
|
+
//#endregion
|
|
346
|
+
export { T as n, E as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
return {
|
|
4
|
+
all: e ||= /* @__PURE__ */ new Map(),
|
|
5
|
+
on: function(t, n) {
|
|
6
|
+
var r = e.get(t);
|
|
7
|
+
r ? r.push(n) : e.set(t, [n]);
|
|
8
|
+
},
|
|
9
|
+
off: function(t, n) {
|
|
10
|
+
var r = e.get(t);
|
|
11
|
+
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
12
|
+
},
|
|
13
|
+
emit: function(t, n) {
|
|
14
|
+
var r = e.get(t);
|
|
15
|
+
r && r.slice().map(function(e) {
|
|
16
|
+
e(n);
|
|
17
|
+
}), (r = e.get("*")) && r.slice().map(function(e) {
|
|
18
|
+
e(t, n);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/utils/mitt.ts
|
|
25
|
+
var t = e();
|
|
26
|
+
//#endregion
|
|
27
|
+
export { t };
|