jmash-core 0.0.11 → 0.0.13
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/401-LzXAVxnC.mjs +101 -0
- package/dist/404-BaS1xZmV.mjs +37 -0
- package/dist/{BarChart-CbBhpMpZ.mjs → BarChart-ClnlJEhi.mjs} +41 -41
- package/dist/{FileSaver.min-CivbhzMe.mjs → FileSaver.min-C7ddeQoo.mjs} +1 -1
- package/dist/{FunnelChart-Czy2TVI1.mjs → FunnelChart-CcCVox9E.mjs} +16 -15
- package/dist/{PieChart-B8Tay-HH.mjs → PieChart-BHM8amLk.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CH5ME8e4.mjs → PieChart.vue_vue_type_script_setup_true_lang-BaJNQr7Z.mjs} +25 -24
- package/dist/{RadarChart-BzUQwTnX.mjs → RadarChart-ChaevZtZ.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DC-Ww3Mu.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DF4axEB-.mjs} +27 -26
- package/dist/{edit-DaxU7bBz.mjs → edit-5MpAgj0J.mjs} +1 -1
- package/dist/{edit-C0aHXOi3.mjs → edit-Bz0L-kJZ.mjs} +1 -1
- package/dist/{edit-B95ajyfH.mjs → edit-ClmR7gql.mjs} +1 -1
- package/dist/{edit-BJAAEDVd.mjs → edit-D2udSsbu.mjs} +1 -1
- package/dist/edit-DXSp7oE2.mjs +4 -0
- package/dist/{edit-CR7ZiKuo.mjs → edit-FahW6Usp.mjs} +51 -51
- package/dist/{edit-5ZpeysVY.mjs → edit-oUUjQ6s5.mjs} +47 -47
- package/dist/edit-zLDTi0zt.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-0Q5XHHkN.mjs → edit.vue_vue_type_script_setup_true_lang-BFSwE0WY.mjs} +24 -24
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DqqWi384.mjs → edit.vue_vue_type_script_setup_true_lang-BRk4mulZ.mjs} +22 -22
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CCq_E2KT.mjs → edit.vue_vue_type_script_setup_true_lang-BpmgWV6c.mjs} +14 -14
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C-BRxRH6.mjs → edit.vue_vue_type_script_setup_true_lang-C5DH8_ra.mjs} +30 -30
- package/dist/edit.vue_vue_type_script_setup_true_lang-F-7AWta2.mjs +588 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D4w7Aa9M.mjs → edit.vue_vue_type_script_setup_true_lang-yaBZyiFi.mjs} +25 -25
- package/dist/{el-card-acRFAeYD.mjs → el-card-CjFpAXC4.mjs} +1 -1
- package/dist/{el-col-BFrxkvh3.mjs → el-col-D9kCVYAq.mjs} +17 -17
- package/dist/{el-date-picker-CjE5H0IY.mjs → el-date-picker-_cuHa2hi.mjs} +474 -474
- package/dist/el-divider-8Ov9f55F.mjs +45 -0
- package/dist/{el-dropdown-item-SBcx6_kX.mjs → el-dropdown-item-CSpUSfWV.mjs} +95 -95
- package/dist/{el-tree-select-RwYP-GEn.mjs → el-tree-select-BUK1QB3u.mjs} +75 -75
- package/dist/{index-CQlxUoOf.mjs → index-BYYYSOkP.mjs} +1 -1
- package/dist/{index-Bqg1CGw2.mjs → index-BeFhB4ZJ.mjs} +1 -1
- package/dist/{index-B7zhho5d.mjs → index-BkPB5eHC.mjs} +92 -92
- package/dist/{index-CcXjdXcD.mjs → index-C34zVC-7.mjs} +67 -67
- package/dist/{index-BcstP65E.mjs → index-C68JBxAE.mjs} +100 -100
- package/dist/{index-ChzNa2kp.mjs → index-CPqNZOs9.mjs} +21463 -21235
- package/dist/{index-u66O7nvc.mjs → index-CXJ-WW3h.mjs} +112 -111
- package/dist/{index-DvrFzTq2.mjs → index-CYAfQz-w.mjs} +1 -1
- package/dist/index-Cuk7sDz9.mjs +277 -0
- package/dist/{index-Dyn0k8Ib.mjs → index-D8zb68MK.mjs} +64 -64
- package/dist/{index-DBmv4w5y.mjs → index-D9itg8P7.mjs} +1 -1
- package/dist/{index-DAIdsjwj.mjs → index-DHQQEEWW.mjs} +53 -53
- package/dist/{index-DQtth-qu.mjs → index-DW1L3U1A.mjs} +53 -53
- package/dist/{index-B-lo0ywJ.mjs → index-Dav45Y13.mjs} +72 -72
- package/dist/index-DhjUimfd.mjs +272 -0
- package/dist/{index-DQbHbpgW.mjs → index-GPbjfqQg.mjs} +4 -4
- package/dist/{index-hr-nwn6C.mjs → index-W4pvCYhJ.mjs} +1 -1
- package/dist/{index-SUlMvdOg.mjs → index-gaeN4E1_.mjs} +88 -88
- package/dist/index-hZzxBNan.mjs +3447 -0
- package/dist/{index-4UdK9Nb9.mjs → index-l9Oeu9G-.mjs} +49 -49
- package/dist/index.mjs +27 -28
- package/dist/index.vue_vue_type_script_setup_true_lang-DWjQT4jn.mjs +54 -0
- package/dist/picture-DRU19T9b.mjs +587 -0
- package/dist/position-Ba7wRAlR.mjs +23 -0
- package/dist/{profile-BfDHQ_n5.mjs → profile-3Wsx53aV.mjs} +25 -25
- package/dist/runAs-CE2R49GJ.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-i0DdmfK1.mjs +113 -0
- package/dist/style.css +1 -1
- package/dist/{types-D2vHMNqn.mjs → types-D3sIBzF1.mjs} +13 -13
- package/dist/{updatePwd-Dc31cBOV.mjs → updatePwd-2Dc9-bnF.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Do-jRGf0.mjs → updatePwd.vue_vue_type_script_setup_true_lang-3mhiAxD4.mjs} +9 -9
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +3 -3
- package/dts/src/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/index.d.ts +10 -3
- package/dts/src/lang/index.d.ts +90 -0
- package/dts/src/lang/package/en.d.ts +42 -0
- package/dts/src/lang/package/zh-cn.d.ts +48 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/stores/index.d.ts +5 -0
- package/dts/src/utils/color.d.ts +69 -0
- package/dts/src/utils/index.d.ts +9 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/401-BjFOoJaQ.mjs +0 -101
- package/dist/404-CT8Yk873.mjs +0 -37
- package/dist/anquanrizhi-BMAtNRi-.mjs +0 -4
- package/dist/api-DA2t0sYn.mjs +0 -4
- package/dist/bumenguanli-_DtFk-Tc.mjs +0 -4
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +0 -4
- package/dist/captcha-G9RskXh1.mjs +0 -4
- package/dist/caret-bottom-Lhe9M7aA.mjs +0 -59
- package/dist/cascader-CysbB3DR.mjs +0 -4
- package/dist/client-CmoE5d0v.mjs +0 -4
- package/dist/close-DwiHyvYJ.mjs +0 -4
- package/dist/close_all-ri0Fg4Yg.mjs +0 -4
- package/dist/close_left-DLmFYlJS.mjs +0 -4
- package/dist/close_other-B705ZMV6.mjs +0 -4
- package/dist/close_right-BUdNHbs5.mjs +0 -4
- package/dist/dict-C2cGjFov.mjs +0 -4
- package/dist/document-Bf2gTChB.mjs +0 -4
- package/dist/download-cG3k-vnb.mjs +0 -4
- package/dist/drag-CwjZNuUJ.mjs +0 -4
- package/dist/edit-CIq1RPVx.mjs +0 -4
- package/dist/edit-Di-ksvTh.mjs +0 -4
- package/dist/edit-II1vFfNu.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-VlMd6HAa.mjs +0 -575
- package/dist/email-B2AUCEGq.mjs +0 -4
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +0 -4
- package/dist/eye-DeDz_5CQ.mjs +0 -4
- package/dist/eye-open-Cm0N1Rcz.mjs +0 -4
- package/dist/fullscreen-BFXljl9l.mjs +0 -4
- package/dist/gangweiguanli-bkwyhEXB.mjs +0 -4
- package/dist/github-CL2t8fd5.mjs +0 -4
- package/dist/homepage-IeZtzO8Q.mjs +0 -4
- package/dist/icon-DwZ6Hkfk.mjs +0 -4
- package/dist/index-CF6p3ONN.mjs +0 -319
- package/dist/index-CJvo28Bb.mjs +0 -275
- package/dist/index-CS-ceXqM.mjs +0 -2580
- package/dist/ip-DOLbS1rT.mjs +0 -4
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +0 -4
- package/dist/language-C1tgLxuP.mjs +0 -4
- package/dist/link-Cjm7RVX7.mjs +0 -4
- package/dist/log-ZFSIG9ZQ.mjs +0 -4
- package/dist/menu-B7SOjMUJ.mjs +0 -4
- package/dist/message-Bws5C_1u.mjs +0 -4
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +0 -4
- package/dist/money-DM0ZKWD3.mjs +0 -4
- package/dist/monitor-CxsUJkcx.mjs +0 -4
- package/dist/order-DZ28J7CD.mjs +0 -4
- package/dist/password-BbtiGVLy.mjs +0 -4
- package/dist/peoples-3fyh79uv.mjs +0 -4
- package/dist/phone-CdpLww4_.mjs +0 -4
- package/dist/picture-877nN1qH.mjs +0 -598
- package/dist/project-DgVsw9u_.mjs +0 -4
- package/dist/publish-BCri5HbT.mjs +0 -4
- package/dist/quanxianguanli-Cpcc8C4D.mjs +0 -4
- package/dist/redis-fjUUmFu3.mjs +0 -4
- package/dist/refresh-BWNjEt3t.mjs +0 -4
- package/dist/role-BYKzPG5H.mjs +0 -4
- package/dist/security-BsMRfWoG.mjs +0 -4
- package/dist/shoujihao-BFt1tDJn.mjs +0 -4
- package/dist/shrink-kEdKK3G7.mjs +0 -4
- package/dist/size-jLonAeyJ.mjs +0 -4
- package/dist/system-BlPhikZo.mjs +0 -4
- package/dist/table-CCqA2qBP.mjs +0 -4
- package/dist/todolist-Ul73X2IJ.mjs +0 -4
- package/dist/tree-DrEt7UUZ.mjs +0 -4
- package/dist/user-B9bSWq2E.mjs +0 -4
- package/dist/visit-w_hKTLb6.mjs +0 -4
- package/dist/xingming-DHM4olm-.mjs +0 -4
- package/dist/yonghuguanli-B3vRkdqw.mjs +0 -4
- package/dist/youxiang-D68Zx-02.mjs +0 -4
- package/dist//345/210/227/350/241/250-nphA7BPW.mjs +0 -4
- package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +0 -4
- package/dist//346/250/241/345/235/227-D528qA63.mjs +0 -4
- package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +0 -4
- package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +0 -4
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { bp as fe, Z as _e, s as ne, r as ge, af as be, bq as he, a6 as ye, aj as ve, a0 as Ve, br as Ie, bs as $e, bt as Ce, bu as Ee, Y as Q, bv as Me, ao as ke, ap as Re, aq as we, bw as qe, a$ as Se, b0 as Ne, b5 as Ue, b7 as Te, ai as De, t as Be, au as Fe } from "./index-CPqNZOs9.mjs";
|
|
2
|
+
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
3
|
+
import { E as Oe, a as je } from "./el-col-D9kCVYAq.mjs";
|
|
4
|
+
import { E as Ae } from "./el-tree-select-BUK1QB3u.mjs";
|
|
5
|
+
import "./el-form-item-l0sNRNKZ.mjs";
|
|
6
|
+
import { openBlock as d, createElementBlock as k, createElementVNode as v, defineComponent as ae, toRef as se, ref as i, onMounted as Le, createVNode as l, unref as a, isRef as X, withCtx as o, withDirectives as ee, vShow as le, Fragment as W, renderList as Y, reactive as oe, toRefs as xe, createBlock as E, createTextVNode as N, toDisplayString as M, normalizeStyle as te, createCommentVNode as j } from "vue";
|
|
7
|
+
import { m as ze } from "./index-BYYYSOkP.mjs";
|
|
8
|
+
import { E as Ge } from "./el-divider-8Ov9f55F.mjs";
|
|
9
|
+
const Pe = {
|
|
10
|
+
viewBox: "0 0 1024 1024",
|
|
11
|
+
width: "1.2em",
|
|
12
|
+
height: "1.2em"
|
|
13
|
+
}, We = /* @__PURE__ */ v("path", {
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
d: "m192 384l320 384l320-384z"
|
|
16
|
+
}, null, -1), Ye = [
|
|
17
|
+
We
|
|
18
|
+
];
|
|
19
|
+
function Ze(h, V) {
|
|
20
|
+
return d(), k("svg", Pe, [...Ye]);
|
|
21
|
+
}
|
|
22
|
+
const He = { name: "ep-caret-bottom", render: Ze }, Je = {
|
|
23
|
+
viewBox: "0 0 1024 1024",
|
|
24
|
+
width: "1.2em",
|
|
25
|
+
height: "1.2em"
|
|
26
|
+
}, Ke = /* @__PURE__ */ v("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
d: "M512 320L192 704h639.936z"
|
|
29
|
+
}, null, -1), Qe = [
|
|
30
|
+
Ke
|
|
31
|
+
];
|
|
32
|
+
function Xe(h, V) {
|
|
33
|
+
return d(), k("svg", Je, [...Qe]);
|
|
34
|
+
}
|
|
35
|
+
const el = { name: "ep-caret-top", render: Xe }, ll = /* @__PURE__ */ Object.assign({});
|
|
36
|
+
let re = new Array();
|
|
37
|
+
for (const h in ll) {
|
|
38
|
+
let V = h.substring(23, h.length - 4);
|
|
39
|
+
re.push(V);
|
|
40
|
+
}
|
|
41
|
+
const ol = { class: "icon-list" }, tl = ["onClick"], nl = /* @__PURE__ */ ae({
|
|
42
|
+
__name: "index",
|
|
43
|
+
props: {
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: String,
|
|
46
|
+
require: !1,
|
|
47
|
+
default: ""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: ["iconValue"],
|
|
51
|
+
setup(h, { emit: V }) {
|
|
52
|
+
const m = h, t = V, I = se(m, "modelValue"), c = i(!1);
|
|
53
|
+
let y = [];
|
|
54
|
+
const f = i(""), $ = i([]), R = i(), w = i();
|
|
55
|
+
console.log(m.modelValue);
|
|
56
|
+
function T() {
|
|
57
|
+
f.value ? $.value = y.filter(
|
|
58
|
+
(b) => b.includes(f.value)
|
|
59
|
+
) : $.value = y;
|
|
60
|
+
}
|
|
61
|
+
function A(b) {
|
|
62
|
+
console.log(b), t("iconValue", b), c.value = !1;
|
|
63
|
+
}
|
|
64
|
+
return fe(R, () => c.value = !1, {
|
|
65
|
+
ignore: [w]
|
|
66
|
+
}), Le(() => {
|
|
67
|
+
y = re, $.value = y;
|
|
68
|
+
}), (b, u) => {
|
|
69
|
+
const q = _e, D = ne, L = el, x = He, z = Ge, C = ge, G = be, B = he;
|
|
70
|
+
return d(), k("div", {
|
|
71
|
+
ref_key: "iconSelectorRef",
|
|
72
|
+
ref: R,
|
|
73
|
+
class: "iconselect-container"
|
|
74
|
+
}, [
|
|
75
|
+
l(D, {
|
|
76
|
+
modelValue: a(I),
|
|
77
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => X(I) ? I.value = p : null),
|
|
78
|
+
readonly: "",
|
|
79
|
+
placeholder: b.$t("sysMenu.selectIcon"),
|
|
80
|
+
onClick: u[1] || (u[1] = (p) => c.value = !a(c))
|
|
81
|
+
}, {
|
|
82
|
+
prepend: o(() => [
|
|
83
|
+
l(q, { "icon-class": a(I) }, null, 8, ["icon-class"])
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
87
|
+
l(B, {
|
|
88
|
+
shadow: "none",
|
|
89
|
+
visible: a(c),
|
|
90
|
+
placement: "bottom-end",
|
|
91
|
+
trigger: "click",
|
|
92
|
+
width: "400"
|
|
93
|
+
}, {
|
|
94
|
+
reference: o(() => [
|
|
95
|
+
v("div", {
|
|
96
|
+
class: "cursor-pointer text-[#999] absolute right-[10px] top-0 height-[32px] leading-[32px]",
|
|
97
|
+
onClick: u[2] || (u[2] = (p) => c.value = !a(c))
|
|
98
|
+
}, [
|
|
99
|
+
ee(l(L, null, null, 512), [
|
|
100
|
+
[le, a(c)]
|
|
101
|
+
]),
|
|
102
|
+
ee(l(x, null, null, 512), [
|
|
103
|
+
[le, !a(c)]
|
|
104
|
+
])
|
|
105
|
+
])
|
|
106
|
+
]),
|
|
107
|
+
default: o(() => [
|
|
108
|
+
v("div", {
|
|
109
|
+
ref_key: "iconSelectorDialogRef",
|
|
110
|
+
ref: w
|
|
111
|
+
}, [
|
|
112
|
+
l(D, {
|
|
113
|
+
modelValue: a(f),
|
|
114
|
+
"onUpdate:modelValue": u[3] || (u[3] = (p) => X(f) ? f.value = p : null),
|
|
115
|
+
class: "p-2",
|
|
116
|
+
placeholder: b.$t("sysMenu.searchIcon"),
|
|
117
|
+
clearable: "",
|
|
118
|
+
onInput: T
|
|
119
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
120
|
+
l(z, { "border-style": "dashed" }),
|
|
121
|
+
l(G, { height: "300px" }, {
|
|
122
|
+
default: o(() => [
|
|
123
|
+
v("ul", ol, [
|
|
124
|
+
(d(!0), k(W, null, Y(a($), (p, F) => (d(), k("li", {
|
|
125
|
+
key: F,
|
|
126
|
+
class: "icon-item",
|
|
127
|
+
onClick: (P) => A(p)
|
|
128
|
+
}, [
|
|
129
|
+
l(C, {
|
|
130
|
+
content: p,
|
|
131
|
+
placement: "bottom",
|
|
132
|
+
effect: "light"
|
|
133
|
+
}, {
|
|
134
|
+
default: o(() => [
|
|
135
|
+
l(q, {
|
|
136
|
+
color: "var(--el-text-color-regular)",
|
|
137
|
+
"icon-class": p
|
|
138
|
+
}, null, 8, ["icon-class"])
|
|
139
|
+
]),
|
|
140
|
+
_: 2
|
|
141
|
+
}, 1032, ["content"])
|
|
142
|
+
], 8, tl))), 128))
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
})
|
|
147
|
+
], 512)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["visible"])
|
|
151
|
+
], 512);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}), al = /* @__PURE__ */ ye(nl, [["__scopeId", "data-v-8c152702"]]), sl = /* @__PURE__ */ v("br", null, null, -1), rl = { class: "tree-border" }, ul = { class: "dialog-footer" }, bl = /* @__PURE__ */ ae({
|
|
155
|
+
__name: "edit",
|
|
156
|
+
props: {
|
|
157
|
+
formData: {
|
|
158
|
+
type: Object,
|
|
159
|
+
default: () => {
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
dialog: {
|
|
163
|
+
type: Object,
|
|
164
|
+
default: () => {
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
emits: ["dialogEvent", "refresh"],
|
|
169
|
+
setup(h, { emit: V }) {
|
|
170
|
+
var p, F, P, Z;
|
|
171
|
+
const { t: m } = ve();
|
|
172
|
+
let t = oe({
|
|
173
|
+
tenant: Ve().user.tenant,
|
|
174
|
+
requestId: Math.random() * 10 + "",
|
|
175
|
+
updateMask: "moduleId,parentId,resourceType,icon,resourceName,resourceCode,target,url,hidden",
|
|
176
|
+
moduleId: "",
|
|
177
|
+
parentId: "",
|
|
178
|
+
resourceType: "catalog",
|
|
179
|
+
resourceCode: "",
|
|
180
|
+
resourceName: "",
|
|
181
|
+
url: "",
|
|
182
|
+
icon: "",
|
|
183
|
+
operCodes: [],
|
|
184
|
+
target: "",
|
|
185
|
+
hidden: !1
|
|
186
|
+
});
|
|
187
|
+
const I = i("width: 100%");
|
|
188
|
+
let c = i([]), y = i([]), f = i([]);
|
|
189
|
+
const $ = i([]), R = i(!1), w = i(!1), T = i(), A = (e, n, r) => {
|
|
190
|
+
n === "" ? r(new Error(m("sysMenu.urlRequired"))) : t.resourceId ? r() : Ie(n).then(({ data: U }) => {
|
|
191
|
+
U === !0 ? r(new Error(m("sysMenu.urlExist"))) : r();
|
|
192
|
+
}), t.parentId ? r() : n.indexOf("/") === -1 ? r(new Error(m("sysMenu.urlExistSlash"))) : r();
|
|
193
|
+
}, b = oe({
|
|
194
|
+
moduleId: [
|
|
195
|
+
{ required: !0, message: m("sysMenu.moduleRequired"), trigger: "change" }
|
|
196
|
+
],
|
|
197
|
+
resourceName: [
|
|
198
|
+
{ required: !0, message: m("sysMenu.nameRequired"), trigger: "blur" }
|
|
199
|
+
],
|
|
200
|
+
resourceCode: [
|
|
201
|
+
{
|
|
202
|
+
required: !0,
|
|
203
|
+
message: m("sysMenu.routeNameRequired"),
|
|
204
|
+
trigger: "blur"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
url: [{ required: !0, validator: A, trigger: "blur" }]
|
|
208
|
+
}), u = h, q = se(u, "dialog");
|
|
209
|
+
function D() {
|
|
210
|
+
var e;
|
|
211
|
+
console.log(Math.random() * 10), ze().then(({ data: n }) => {
|
|
212
|
+
c.value = n.results;
|
|
213
|
+
}), $e((e = u.formData) == null ? void 0 : e.resourceId).then(({ data: n }) => {
|
|
214
|
+
$.value = n.results;
|
|
215
|
+
}), Ce().then(({ data: n }) => {
|
|
216
|
+
var r;
|
|
217
|
+
y.value = n.results, (r = y.value) == null || r.forEach(
|
|
218
|
+
(U) => f.value.push(U.operationCode)
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
function L(e) {
|
|
223
|
+
console.log(e), t.icon = e;
|
|
224
|
+
}
|
|
225
|
+
function x(e) {
|
|
226
|
+
console.log(e, f.value), t.operCodes = e ? f.value : [], w.value = !1;
|
|
227
|
+
}
|
|
228
|
+
function z(e) {
|
|
229
|
+
console.log(e), t.operCodes = e, console.log(t.operCodes);
|
|
230
|
+
const n = e.length;
|
|
231
|
+
R.value = n === f.length, w.value = n > 0 && n < f.length;
|
|
232
|
+
}
|
|
233
|
+
D();
|
|
234
|
+
const C = V, G = async () => {
|
|
235
|
+
var e;
|
|
236
|
+
await ((e = T.value) == null ? void 0 : e.validate((n) => {
|
|
237
|
+
n && (t.resourceId ? Ee(t).then((r) => {
|
|
238
|
+
console.log(r), r.status === 200 && (Q({
|
|
239
|
+
message: m("common.submitSuccess"),
|
|
240
|
+
type: "success"
|
|
241
|
+
}), C("dialogEvent", !1), C("refresh", r.status === 200));
|
|
242
|
+
}) : Me(t).then((r) => {
|
|
243
|
+
console.log(r), r.status === 200 && (Q({
|
|
244
|
+
message: m("common.submitSuccess"),
|
|
245
|
+
type: "success"
|
|
246
|
+
}), C("dialogEvent", !1), C("refresh", r.status === 200));
|
|
247
|
+
}));
|
|
248
|
+
}));
|
|
249
|
+
};
|
|
250
|
+
function B() {
|
|
251
|
+
C("dialogEvent", !1);
|
|
252
|
+
}
|
|
253
|
+
if ((p = u.formData) != null && p.resourceId && (t = Object.assign(t, u.formData)), (F = u.formData) != null && F.parentId) {
|
|
254
|
+
const { formData: e } = xe(u);
|
|
255
|
+
console.log(e == null ? void 0 : e.value), t.parentId = (P = e == null ? void 0 : e.value) == null ? void 0 : P.parentId, t.moduleId = (Z = e == null ? void 0 : e.value) == null ? void 0 : Z.moduleId;
|
|
256
|
+
}
|
|
257
|
+
return t.parentId === "00000000-0000-0000-0000-000000000000" && (t.parentId = ""), (e, n) => {
|
|
258
|
+
const r = ke, U = Re, _ = we, g = Oe, ue = Ae, S = je, de = qe, O = ne, H = Se, ie = Ne, J = Ue, ce = Te, pe = De, K = Be, me = Fe;
|
|
259
|
+
return d(), E(me, {
|
|
260
|
+
title: q.value.title,
|
|
261
|
+
modelValue: q.value.visible,
|
|
262
|
+
"onUpdate:modelValue": n[11] || (n[11] = (s) => q.value.visible = s),
|
|
263
|
+
width: "1000px",
|
|
264
|
+
"destory-on-close": !0,
|
|
265
|
+
onClose: B
|
|
266
|
+
}, {
|
|
267
|
+
footer: o(() => [
|
|
268
|
+
v("div", ul, [
|
|
269
|
+
l(K, { onClick: B }, {
|
|
270
|
+
default: o(() => [
|
|
271
|
+
N(M(e.$t("common.cancel")), 1)
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}),
|
|
275
|
+
l(K, {
|
|
276
|
+
type: "primary",
|
|
277
|
+
onClick: G
|
|
278
|
+
}, {
|
|
279
|
+
default: o(() => [
|
|
280
|
+
N(M(e.$t("common.confirm")), 1)
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
})
|
|
284
|
+
])
|
|
285
|
+
]),
|
|
286
|
+
default: o(() => [
|
|
287
|
+
l(pe, {
|
|
288
|
+
ref_key: "resourceFormRef",
|
|
289
|
+
ref: T,
|
|
290
|
+
model: a(t),
|
|
291
|
+
rules: b,
|
|
292
|
+
"label-width": "160"
|
|
293
|
+
}, {
|
|
294
|
+
default: o(() => [
|
|
295
|
+
l(S, null, {
|
|
296
|
+
default: o(() => [
|
|
297
|
+
l(g, { span: 12 }, {
|
|
298
|
+
default: o(() => [
|
|
299
|
+
l(_, {
|
|
300
|
+
label: e.$t("sysMenu.module"),
|
|
301
|
+
prop: "moduleId"
|
|
302
|
+
}, {
|
|
303
|
+
default: o(() => [
|
|
304
|
+
l(U, {
|
|
305
|
+
modelValue: a(t).moduleId,
|
|
306
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => a(t).moduleId = s),
|
|
307
|
+
clearable: "",
|
|
308
|
+
placeholder: e.$t("sysMenu.moduleRequired"),
|
|
309
|
+
style: te(I.value)
|
|
310
|
+
}, {
|
|
311
|
+
default: o(() => [
|
|
312
|
+
(d(!0), k(W, null, Y(a(c), (s) => (d(), E(r, {
|
|
313
|
+
key: s.moduleId,
|
|
314
|
+
label: s.moduleName,
|
|
315
|
+
value: s.moduleId
|
|
316
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
}, 8, ["modelValue", "placeholder", "style"])
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 8, ["label"])
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}),
|
|
326
|
+
l(g, { span: 12 }, {
|
|
327
|
+
default: o(() => [
|
|
328
|
+
l(_, {
|
|
329
|
+
label: e.$t("sysMenu.parent"),
|
|
330
|
+
prop: "parentId"
|
|
331
|
+
}, {
|
|
332
|
+
default: o(() => [
|
|
333
|
+
l(ue, {
|
|
334
|
+
modelValue: a(t).parentId,
|
|
335
|
+
"onUpdate:modelValue": n[1] || (n[1] = (s) => a(t).parentId = s),
|
|
336
|
+
data: $.value,
|
|
337
|
+
filterable: "",
|
|
338
|
+
clearable: "",
|
|
339
|
+
"check-strictly": "",
|
|
340
|
+
"render-after-expand": !1,
|
|
341
|
+
style: te(I.value),
|
|
342
|
+
placeholder: e.$t("sysMenu.parentRequired")
|
|
343
|
+
}, null, 8, ["modelValue", "data", "style", "placeholder"])
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
}, 8, ["label"])
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
})
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}),
|
|
353
|
+
l(S, null, {
|
|
354
|
+
default: o(() => [
|
|
355
|
+
l(g, { span: 12 }, {
|
|
356
|
+
default: o(() => [
|
|
357
|
+
l(_, {
|
|
358
|
+
label: e.$t("sysMenu.type"),
|
|
359
|
+
prop: "resourceType"
|
|
360
|
+
}, {
|
|
361
|
+
default: o(() => [
|
|
362
|
+
l(de, {
|
|
363
|
+
modelValue: a(t).resourceType,
|
|
364
|
+
"onUpdate:modelValue": n[2] || (n[2] = (s) => a(t).resourceType = s),
|
|
365
|
+
"dict-type": "jmash.rbac.protobuf.ResourceType"
|
|
366
|
+
}, null, 8, ["modelValue"])
|
|
367
|
+
]),
|
|
368
|
+
_: 1
|
|
369
|
+
}, 8, ["label"])
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
}),
|
|
373
|
+
l(g, { span: 12 }, {
|
|
374
|
+
default: o(() => [
|
|
375
|
+
l(_, {
|
|
376
|
+
label: e.$t("sysMenu.icon"),
|
|
377
|
+
prop: "icon"
|
|
378
|
+
}, {
|
|
379
|
+
default: o(() => [
|
|
380
|
+
l(al, {
|
|
381
|
+
modelValue: a(t).icon,
|
|
382
|
+
"onUpdate:modelValue": n[3] || (n[3] = (s) => a(t).icon = s),
|
|
383
|
+
onIconValue: L
|
|
384
|
+
}, null, 8, ["modelValue"])
|
|
385
|
+
]),
|
|
386
|
+
_: 1
|
|
387
|
+
}, 8, ["label"])
|
|
388
|
+
]),
|
|
389
|
+
_: 1
|
|
390
|
+
})
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
}),
|
|
394
|
+
l(S, null, {
|
|
395
|
+
default: o(() => [
|
|
396
|
+
l(g, { span: 12 }, {
|
|
397
|
+
default: o(() => [
|
|
398
|
+
l(_, {
|
|
399
|
+
label: e.$t("sysMenu.name"),
|
|
400
|
+
prop: "resourceName"
|
|
401
|
+
}, {
|
|
402
|
+
default: o(() => [
|
|
403
|
+
l(O, {
|
|
404
|
+
clearable: "",
|
|
405
|
+
modelValue: a(t).resourceName,
|
|
406
|
+
"onUpdate:modelValue": n[4] || (n[4] = (s) => a(t).resourceName = s),
|
|
407
|
+
placeholder: e.$t("sysMenu.nameRequired")
|
|
408
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}, 8, ["label"])
|
|
412
|
+
]),
|
|
413
|
+
_: 1
|
|
414
|
+
}),
|
|
415
|
+
a(t).resourceType !== "other" ? (d(), E(g, {
|
|
416
|
+
key: 0,
|
|
417
|
+
span: 12
|
|
418
|
+
}, {
|
|
419
|
+
default: o(() => [
|
|
420
|
+
l(_, {
|
|
421
|
+
label: e.$t("sysMenu.target"),
|
|
422
|
+
prop: "target"
|
|
423
|
+
}, {
|
|
424
|
+
default: o(() => [
|
|
425
|
+
l(O, {
|
|
426
|
+
clearable: "",
|
|
427
|
+
modelValue: a(t).target,
|
|
428
|
+
"onUpdate:modelValue": n[5] || (n[5] = (s) => a(t).target = s),
|
|
429
|
+
placeholder: e.$t("sysMenu.targetRequired")
|
|
430
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
}, 8, ["label"])
|
|
434
|
+
]),
|
|
435
|
+
_: 1
|
|
436
|
+
})) : j("", !0)
|
|
437
|
+
]),
|
|
438
|
+
_: 1
|
|
439
|
+
}),
|
|
440
|
+
l(S, null, {
|
|
441
|
+
default: o(() => [
|
|
442
|
+
l(g, { span: 12 }, {
|
|
443
|
+
default: o(() => [
|
|
444
|
+
l(_, {
|
|
445
|
+
label: e.$t("sysMenu.routeName"),
|
|
446
|
+
prop: "resourceCode"
|
|
447
|
+
}, {
|
|
448
|
+
default: o(() => [
|
|
449
|
+
l(O, {
|
|
450
|
+
clearable: "",
|
|
451
|
+
modelValue: a(t).resourceCode,
|
|
452
|
+
"onUpdate:modelValue": n[6] || (n[6] = (s) => a(t).resourceCode = s),
|
|
453
|
+
placeholder: e.$t("sysMenu.routeNameRequired")
|
|
454
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
455
|
+
]),
|
|
456
|
+
_: 1
|
|
457
|
+
}, 8, ["label"])
|
|
458
|
+
]),
|
|
459
|
+
_: 1
|
|
460
|
+
}),
|
|
461
|
+
a(t).resourceType !== "other" ? (d(), E(g, {
|
|
462
|
+
key: 0,
|
|
463
|
+
span: 12
|
|
464
|
+
}, {
|
|
465
|
+
default: o(() => [
|
|
466
|
+
l(_, {
|
|
467
|
+
label: e.$t("sysMenu.url"),
|
|
468
|
+
prop: "url"
|
|
469
|
+
}, {
|
|
470
|
+
default: o(() => [
|
|
471
|
+
l(O, {
|
|
472
|
+
clearable: "",
|
|
473
|
+
modelValue: a(t).url,
|
|
474
|
+
"onUpdate:modelValue": n[7] || (n[7] = (s) => a(t).url = s),
|
|
475
|
+
placeholder: e.$t("sysMenu.urlRequired")
|
|
476
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
}, 8, ["label"])
|
|
480
|
+
]),
|
|
481
|
+
_: 1
|
|
482
|
+
})) : j("", !0)
|
|
483
|
+
]),
|
|
484
|
+
_: 1
|
|
485
|
+
}),
|
|
486
|
+
l(S, null, {
|
|
487
|
+
default: o(() => [
|
|
488
|
+
a(t).resourceType !== "other" ? (d(), E(g, {
|
|
489
|
+
key: 0,
|
|
490
|
+
span: 12
|
|
491
|
+
}, {
|
|
492
|
+
default: o(() => [
|
|
493
|
+
l(_, {
|
|
494
|
+
label: e.$t("sysMenu.status"),
|
|
495
|
+
prop: "hidden"
|
|
496
|
+
}, {
|
|
497
|
+
default: o(() => [
|
|
498
|
+
l(ie, {
|
|
499
|
+
modelValue: a(t).hidden,
|
|
500
|
+
"onUpdate:modelValue": n[8] || (n[8] = (s) => a(t).hidden = s)
|
|
501
|
+
}, {
|
|
502
|
+
default: o(() => [
|
|
503
|
+
l(H, { label: !1 }, {
|
|
504
|
+
default: o(() => [
|
|
505
|
+
N(M(e.$t("common.show")), 1)
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}),
|
|
509
|
+
l(H, { label: !0 }, {
|
|
510
|
+
default: o(() => [
|
|
511
|
+
N(M(e.$t("common.hide")), 1)
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
})
|
|
515
|
+
]),
|
|
516
|
+
_: 1
|
|
517
|
+
}, 8, ["modelValue"])
|
|
518
|
+
]),
|
|
519
|
+
_: 1
|
|
520
|
+
}, 8, ["label"])
|
|
521
|
+
]),
|
|
522
|
+
_: 1
|
|
523
|
+
})) : j("", !0)
|
|
524
|
+
]),
|
|
525
|
+
_: 1
|
|
526
|
+
}),
|
|
527
|
+
a(t).resourceType !== "catalog" ? (d(), E(S, { key: 0 }, {
|
|
528
|
+
default: o(() => [
|
|
529
|
+
l(g, { span: 24 }, {
|
|
530
|
+
default: o(() => [
|
|
531
|
+
l(_, {
|
|
532
|
+
label: e.$t("sysMenu.operatePerm"),
|
|
533
|
+
prop: "operCodes"
|
|
534
|
+
}, {
|
|
535
|
+
default: o(() => [
|
|
536
|
+
l(J, {
|
|
537
|
+
modelValue: R.value,
|
|
538
|
+
"onUpdate:modelValue": n[9] || (n[9] = (s) => R.value = s),
|
|
539
|
+
indeterminate: w.value,
|
|
540
|
+
onChange: x
|
|
541
|
+
}, {
|
|
542
|
+
default: o(() => [
|
|
543
|
+
N(M(e.$t("sysMenu.checkAll")) + "/" + M(e.$t("sysMenu.checkNoAll")), 1)
|
|
544
|
+
]),
|
|
545
|
+
_: 1
|
|
546
|
+
}, 8, ["modelValue", "indeterminate"]),
|
|
547
|
+
sl,
|
|
548
|
+
v("div", rl, [
|
|
549
|
+
l(ce, {
|
|
550
|
+
modelValue: a(t).operCodes,
|
|
551
|
+
"onUpdate:modelValue": n[10] || (n[10] = (s) => a(t).operCodes = s),
|
|
552
|
+
onChange: z
|
|
553
|
+
}, {
|
|
554
|
+
default: o(() => [
|
|
555
|
+
(d(!0), k(W, null, Y(a(y), (s) => (d(), E(J, {
|
|
556
|
+
label: s.operationCode,
|
|
557
|
+
key: s.operationId
|
|
558
|
+
}, {
|
|
559
|
+
default: o(() => [
|
|
560
|
+
N(M(s.operationName), 1)
|
|
561
|
+
]),
|
|
562
|
+
_: 2
|
|
563
|
+
}, 1032, ["label"]))), 128))
|
|
564
|
+
]),
|
|
565
|
+
_: 1
|
|
566
|
+
}, 8, ["modelValue"])
|
|
567
|
+
])
|
|
568
|
+
]),
|
|
569
|
+
_: 1
|
|
570
|
+
}, 8, ["label"])
|
|
571
|
+
]),
|
|
572
|
+
_: 1
|
|
573
|
+
})
|
|
574
|
+
]),
|
|
575
|
+
_: 1
|
|
576
|
+
})) : j("", !0)
|
|
577
|
+
]),
|
|
578
|
+
_: 1
|
|
579
|
+
}, 8, ["model", "rules"])
|
|
580
|
+
]),
|
|
581
|
+
_: 1
|
|
582
|
+
}, 8, ["title", "modelValue"]);
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
export {
|
|
587
|
+
bl as _
|
|
588
|
+
};
|