jmash-core 0.0.28 → 0.0.29
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-DHF-V-Zy.mjs → 401-BpFL6Wou.mjs} +2 -2
- package/dist/{404-BYdOQuni.mjs → 404-B2fGmCHd.mjs} +1 -1
- package/dist/{BarChart-RqUPCdJI.mjs → BarChart-W-SAFGgJ.mjs} +2 -2
- package/dist/{PieChart-1jIJVala.mjs → PieChart-DfFb4yVO.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-DVIUkdCZ.mjs → PieChart.vue_vue_type_script_setup_true_lang-BKQzeEvm.mjs} +2 -2
- package/dist/{RadarChart-Bc8S0ALP.mjs → RadarChart-CUZ1RLG5.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CZH2B93g.mjs → RadarChart.vue_vue_type_script_setup_true_lang-SrVhFOp2.mjs} +2 -2
- package/dist/a_fixed-CXYo1gbQ.mjs +4 -0
- package/dist/a_list-nphA7BPW.mjs +4 -0
- package/dist/anquanrizhi-BMAtNRi-.mjs +4 -0
- package/dist/api-CqqDM6lC.mjs +4 -0
- package/dist/bumenguanli-_DtFk-Tc.mjs +4 -0
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +4 -0
- package/dist/captcha-Ca2DxFnb.mjs +4 -0
- package/dist/cascader-CVLDcfYS.mjs +4 -0
- package/dist/client-BuhkltCt.mjs +4 -0
- package/dist/close-B7UHw1tp.mjs +4 -0
- package/dist/close_all-Dp3gNriY.mjs +4 -0
- package/dist/close_left-B31SalrN.mjs +4 -0
- package/dist/close_other-BX1LJARr.mjs +4 -0
- package/dist/close_right-CJZGXRxS.mjs +4 -0
- package/dist/dict-CstSmJGm.mjs +4 -0
- package/dist/document-CbJQ3IQT.mjs +4 -0
- package/dist/download-d1CYmFFp.mjs +4 -0
- package/dist/drag-CwjZNuUJ.mjs +4 -0
- package/dist/{edit-Dfa1EM3Q.mjs → edit-7NPn7Jk7.mjs} +1 -1
- package/dist/{edit-ChkuuXol.mjs → edit-BI8AxqQP.mjs} +1 -1
- package/dist/{edit-mxla5Dwo.mjs → edit-Bnw7U7eL.mjs} +7 -7
- package/dist/{edit-D9SACDyC.mjs → edit-BoLxB5EY.mjs} +6 -6
- package/dist/edit-C6TX6ZTZ.mjs +4 -0
- package/dist/{edit-DPjM8Jlu.mjs → edit-CMbTKYFF.mjs} +1 -1
- package/dist/{edit-Dt4fjw1S.mjs → edit-DGRBrUhW.mjs} +1 -1
- package/dist/edit-Eg28bv4t.mjs +4 -0
- package/dist/edit-c7dEyma4.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DRoxMTE3.mjs → edit.vue_vue_type_script_setup_true_lang-53GSkLf9.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CEJcRABj.mjs → edit.vue_vue_type_script_setup_true_lang-BE--oN5N.mjs} +2 -2
- package/dist/edit.vue_vue_type_script_setup_true_lang-CBHG6wpS.mjs +590 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-O9kmmp-o.mjs → edit.vue_vue_type_script_setup_true_lang-CY9b03JY.mjs} +3 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-2gWgg28j.mjs → edit.vue_vue_type_script_setup_true_lang-DEq5JlSy.mjs} +5 -5
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D6LyCzD-.mjs → edit.vue_vue_type_script_setup_true_lang-DmBWrt0o.mjs} +3 -3
- package/dist/{el-card-DwHvO2Ya.mjs → el-card-DDJhkx_r.mjs} +1 -1
- package/dist/{el-col-CpkHzVh2.mjs → el-col-1pNAzCzM.mjs} +1 -1
- package/dist/{el-date-picker-B6dLs8du.mjs → el-date-picker-BB5hiA2A.mjs} +1 -1
- package/dist/{el-divider-N6be-jn8.mjs → el-divider-2aKfjla4.mjs} +1 -1
- package/dist/{el-dropdown-item-B-4lE04J.mjs → el-dropdown-item-D43lTQQn.mjs} +2 -2
- package/dist/{el-form-item--x5GHc7n.mjs → el-form-item-CfB3NJcN.mjs} +1 -1
- package/dist/{el-tree-select-DpKRTcZJ.mjs → el-tree-select-DuBB1RZs.mjs} +2 -2
- package/dist/email-B2AUCEGq.mjs +4 -0
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +4 -0
- package/dist/eye-DeDz_5CQ.mjs +4 -0
- package/dist/eye-open-DqtT7Ue1.mjs +4 -0
- package/dist/fullscreen-CgUsFPmH.mjs +4 -0
- package/dist/fullscreen-exit-CdKPxnPS.mjs +4 -0
- package/dist/gangweiguanli-bkwyhEXB.mjs +4 -0
- package/dist/github-D8t79enS.mjs +4 -0
- package/dist/homepage-Dvoa-z90.mjs +4 -0
- package/dist/icon-DwZ6Hkfk.mjs +4 -0
- package/dist/indent-decrease-BtTedpts.mjs +4 -0
- package/dist/{index-CPlBZyYT.mjs → index-7wqOITFC.mjs} +5 -5
- package/dist/{index-B8Bjod4Z.mjs → index-Aiekem6C.mjs} +1 -1
- package/dist/{index-Kn7Q3GUp.mjs → index-B0bb18sC.mjs} +4855 -4855
- package/dist/{index-CZbK2Kio.mjs → index-Bale7LTK.mjs} +7 -7
- package/dist/{index-pAD6CUAf.mjs → index-C3XVNEvL.mjs} +5 -5
- package/dist/{index-FcnP7111.mjs → index-CH5rOF9a.mjs} +6 -6
- package/dist/{index-BpV4WDjm.mjs → index-CQ8u4unc.mjs} +1 -1
- package/dist/{index-B3-6N5dQ.mjs → index-Cp3JTbHz.mjs} +4 -4
- package/dist/{index-Dwg0azQy.mjs → index-Cui5OwdH.mjs} +6 -6
- package/dist/{index-pBVS-dCg.mjs → index-DJbKPe8f.mjs} +1 -1
- package/dist/{index-BRV4P_kX.mjs → index-DMOlZhJL.mjs} +7 -7
- package/dist/{index-CyTjYwGV.mjs → index-DO4anNVQ.mjs} +1 -1
- package/dist/{index-CzQLCV1q.mjs → index-DR5htlqC.mjs} +1 -1
- package/dist/{index-0Jc1dpgF.mjs → index-DfPT7Aqv.mjs} +4 -4
- package/dist/{index-iYRVwor-.mjs → index-DpHQyin2.mjs} +1 -1
- package/dist/{index-B4ruvSZ3.mjs → index-Dt3nhXwm.mjs} +5 -5
- package/dist/{index-C6rajwwk.mjs → index-DviGF8QS.mjs} +5 -5
- package/dist/{index-D6WFVmZz.mjs → index-P3GLSfAw.mjs} +5 -5
- package/dist/{index-BGrn7xfJ.mjs → index-Xx0qfX45.mjs} +5 -5
- package/dist/{index-Cn9_c0n1.mjs → index-eBJ62Jwu.mjs} +9 -9
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DfsB8ZEs.mjs → index.vue_vue_type_script_setup_true_lang-DwPGA2-c.mjs} +2 -2
- package/dist/ip-KttQdgnz.mjs +4 -0
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +4 -0
- package/dist/language-8_mM10m-.mjs +4 -0
- package/dist/link-C12BB_4T.mjs +4 -0
- package/dist/lock-x1nlaZbe.mjs +4 -0
- package/dist/log-ZFSIG9ZQ.mjs +4 -0
- package/dist/menu-R0l6-TrU.mjs +4 -0
- package/dist/message-DdP0o8rx.mjs +4 -0
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +4 -0
- package/dist/money-DOHVYo9H.mjs +4 -0
- package/dist/monitor-DA1U9GXQ.mjs +4 -0
- package/dist/moon-BH2YPGjD.mjs +4 -0
- package/dist/order-9UanBwm1.mjs +4 -0
- package/dist/password-BbtiGVLy.mjs +4 -0
- package/dist/peoples-CY6pAt8k.mjs +4 -0
- package/dist/phone-CdpLww4_.mjs +4 -0
- package/dist/{picture-D34s_Oi0.mjs → picture-CqVemSw7.mjs} +2 -2
- package/dist/{position-MRKj9hcz.mjs → position-DLRb7_xf.mjs} +1 -1
- package/dist/{profile-Bk-lwQKm.mjs → profile-CEYaxa6H.mjs} +7 -7
- package/dist/project-CcbJeg5G.mjs +4 -0
- package/dist/publish-BPlkrj9K.mjs +4 -0
- package/dist/quanxianguanli-Cpcc8C4D.mjs +4 -0
- package/dist/redis-fjUUmFu3.mjs +4 -0
- package/dist/refresh-FEjK-h-7.mjs +4 -0
- package/dist/role-DiO02CEe.mjs +4 -0
- package/dist/{runAs-D7rwJWn8.mjs → runAs-XwZrGd7W.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-Dt6k5rlD.mjs → runAs.vue_vue_type_script_setup_true_lang-Da7v3sT2.mjs} +2 -2
- package/dist/security-pFtu_-jl.mjs +4 -0
- package/dist/setting-4Nly5aI_.mjs +4 -0
- package/dist/shoujihao-BFt1tDJn.mjs +4 -0
- package/dist/shrink-kEdKK3G7.mjs +4 -0
- package/dist/size-Dp8pcL7e.mjs +4 -0
- package/dist/sunny-bOd_iT1-.mjs +4 -0
- package/dist/system-19q1vLmi.mjs +4 -0
- package/dist/table-CvNtd0_I.mjs +4 -0
- package/dist/team-COy-X023.mjs +4 -0
- package/dist/todolist-BjVDWiLT.mjs +4 -0
- package/dist/tree-COLikYEs.mjs +4 -0
- package/dist/{types-CRwHW1_s.mjs → types-CdTdIYnQ.mjs} +3 -3
- package/dist/{updatePwd-DEDAJW3q.mjs → updatePwd-CDdBkLQQ.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-foekKrMF.mjs → updatePwd.vue_vue_type_script_setup_true_lang-CRvPjIyR.mjs} +2 -2
- package/dist/user-CIuEpak9.mjs +4 -0
- package/dist/visit-xGOaaP3T.mjs +4 -0
- package/dist/xingming-DHM4olm-.mjs +4 -0
- package/dist/yonghuguanli-B3vRkdqw.mjs +4 -0
- package/dist/youxiang-D68Zx-02.mjs +4 -0
- package/dts/src/components/IconSelect/requireIcons.d.ts +8 -0
- package/dts/src/main.d.ts +0 -4
- package/package.json +1 -1
- package/dist/edit-QqWLBTAl.mjs +0 -4
- package/dist/edit-xL7t35XF.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-BYh6kXhd.mjs +0 -590
- package/dts/src/views/system/log/index.vue.d.ts +0 -2
|
@@ -1,590 +0,0 @@
|
|
|
1
|
-
import { bu as fe, Y as _e, s as ne, r as ge, ad as he, bv as be, a4 as ye, $ as ve, bw as Ve, bx as Ie, by as $e, bz as Ce, bA as Ee, ak as Me, al as ke, bB as Re, aX as we, aY as qe, b1 as Se, b3 as Ne, t as Ue, ap as Te } from "./index-Kn7Q3GUp.mjs";
|
|
2
|
-
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
3
|
-
import { E as Be, a as De } from "./el-col-CpkHzVh2.mjs";
|
|
4
|
-
import { E as Fe } from "./el-tree-select-DpKRTcZJ.mjs";
|
|
5
|
-
import { E as Oe, a as Ae } from "./el-form-item--x5GHc7n.mjs";
|
|
6
|
-
import { openBlock as d, createElementBlock as k, createElementVNode as v, defineComponent as ae, toRef as re, ref as i, onMounted as je, createVNode as l, unref as a, isRef as Q, withCtx as o, withDirectives as Z, vShow as ee, Fragment as Y, renderList as W, reactive as le, toRefs as xe, createBlock as E, createTextVNode as N, toDisplayString as M, normalizeStyle as oe, createCommentVNode as A } from "vue";
|
|
7
|
-
import { ElMessage as te } from "element-plus";
|
|
8
|
-
import { useI18n as Le } from "vue-i18n";
|
|
9
|
-
import { m as ze } from "./index-BpV4WDjm.mjs";
|
|
10
|
-
import { E as Ge } from "./el-divider-N6be-jn8.mjs";
|
|
11
|
-
const Pe = {
|
|
12
|
-
viewBox: "0 0 1024 1024",
|
|
13
|
-
width: "1.2em",
|
|
14
|
-
height: "1.2em"
|
|
15
|
-
}, Ye = /* @__PURE__ */ v("path", {
|
|
16
|
-
fill: "currentColor",
|
|
17
|
-
d: "m192 384l320 384l320-384z"
|
|
18
|
-
}, null, -1), We = [
|
|
19
|
-
Ye
|
|
20
|
-
];
|
|
21
|
-
function Xe(b, V) {
|
|
22
|
-
return d(), k("svg", Pe, [...We]);
|
|
23
|
-
}
|
|
24
|
-
const He = { name: "ep-caret-bottom", render: Xe }, Je = {
|
|
25
|
-
viewBox: "0 0 1024 1024",
|
|
26
|
-
width: "1.2em",
|
|
27
|
-
height: "1.2em"
|
|
28
|
-
}, Ke = /* @__PURE__ */ v("path", {
|
|
29
|
-
fill: "currentColor",
|
|
30
|
-
d: "M512 320L192 704h639.936z"
|
|
31
|
-
}, null, -1), Qe = [
|
|
32
|
-
Ke
|
|
33
|
-
];
|
|
34
|
-
function Ze(b, V) {
|
|
35
|
-
return d(), k("svg", Je, [...Qe]);
|
|
36
|
-
}
|
|
37
|
-
const el = { name: "ep-caret-top", render: Ze }, ll = /* @__PURE__ */ Object.assign({});
|
|
38
|
-
let se = new Array();
|
|
39
|
-
for (const b in ll) {
|
|
40
|
-
let V = b.substring(23, b.length - 4);
|
|
41
|
-
se.push(V);
|
|
42
|
-
}
|
|
43
|
-
const ol = { class: "icon-list" }, tl = ["onClick"], nl = /* @__PURE__ */ ae({
|
|
44
|
-
__name: "index",
|
|
45
|
-
props: {
|
|
46
|
-
modelValue: {
|
|
47
|
-
type: String,
|
|
48
|
-
require: !1,
|
|
49
|
-
default: ""
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
emits: ["iconValue"],
|
|
53
|
-
setup(b, { emit: V }) {
|
|
54
|
-
const m = b, t = V, I = re(m, "modelValue"), c = i(!1);
|
|
55
|
-
let y = [];
|
|
56
|
-
const f = i(""), $ = i([]), R = i(), w = i();
|
|
57
|
-
console.log(m.modelValue);
|
|
58
|
-
function T() {
|
|
59
|
-
f.value ? $.value = y.filter(
|
|
60
|
-
(h) => h.includes(f.value)
|
|
61
|
-
) : $.value = y;
|
|
62
|
-
}
|
|
63
|
-
function j(h) {
|
|
64
|
-
console.log(h), t("iconValue", h), c.value = !1;
|
|
65
|
-
}
|
|
66
|
-
return fe(R, () => c.value = !1, {
|
|
67
|
-
ignore: [w]
|
|
68
|
-
}), je(() => {
|
|
69
|
-
y = se, $.value = y;
|
|
70
|
-
}), (h, u) => {
|
|
71
|
-
const q = _e, B = ne, x = el, L = He, z = Ge, C = ge, G = he, D = be;
|
|
72
|
-
return d(), k("div", {
|
|
73
|
-
ref_key: "iconSelectorRef",
|
|
74
|
-
ref: R,
|
|
75
|
-
class: "iconselect-container"
|
|
76
|
-
}, [
|
|
77
|
-
l(B, {
|
|
78
|
-
modelValue: a(I),
|
|
79
|
-
"onUpdate:modelValue": u[0] || (u[0] = (p) => Q(I) ? I.value = p : null),
|
|
80
|
-
readonly: "",
|
|
81
|
-
placeholder: h.$t("sysMenu.selectIcon"),
|
|
82
|
-
onClick: u[1] || (u[1] = (p) => c.value = !a(c))
|
|
83
|
-
}, {
|
|
84
|
-
prepend: o(() => [
|
|
85
|
-
l(q, { "icon-class": a(I) }, null, 8, ["icon-class"])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["modelValue", "placeholder"]),
|
|
89
|
-
l(D, {
|
|
90
|
-
shadow: "none",
|
|
91
|
-
visible: a(c),
|
|
92
|
-
placement: "bottom-end",
|
|
93
|
-
trigger: "click",
|
|
94
|
-
width: "400"
|
|
95
|
-
}, {
|
|
96
|
-
reference: o(() => [
|
|
97
|
-
v("div", {
|
|
98
|
-
class: "cursor-pointer text-[#999] absolute right-[10px] top-0 height-[32px] leading-[32px]",
|
|
99
|
-
onClick: u[2] || (u[2] = (p) => c.value = !a(c))
|
|
100
|
-
}, [
|
|
101
|
-
Z(l(x, null, null, 512), [
|
|
102
|
-
[ee, a(c)]
|
|
103
|
-
]),
|
|
104
|
-
Z(l(L, null, null, 512), [
|
|
105
|
-
[ee, !a(c)]
|
|
106
|
-
])
|
|
107
|
-
])
|
|
108
|
-
]),
|
|
109
|
-
default: o(() => [
|
|
110
|
-
v("div", {
|
|
111
|
-
ref_key: "iconSelectorDialogRef",
|
|
112
|
-
ref: w
|
|
113
|
-
}, [
|
|
114
|
-
l(B, {
|
|
115
|
-
modelValue: a(f),
|
|
116
|
-
"onUpdate:modelValue": u[3] || (u[3] = (p) => Q(f) ? f.value = p : null),
|
|
117
|
-
class: "p-2",
|
|
118
|
-
placeholder: h.$t("sysMenu.searchIcon"),
|
|
119
|
-
clearable: "",
|
|
120
|
-
onInput: T
|
|
121
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
122
|
-
l(z, { "border-style": "dashed" }),
|
|
123
|
-
l(G, { height: "300px" }, {
|
|
124
|
-
default: o(() => [
|
|
125
|
-
v("ul", ol, [
|
|
126
|
-
(d(!0), k(Y, null, W(a($), (p, F) => (d(), k("li", {
|
|
127
|
-
key: F,
|
|
128
|
-
class: "icon-item",
|
|
129
|
-
onClick: (P) => j(p)
|
|
130
|
-
}, [
|
|
131
|
-
l(C, {
|
|
132
|
-
content: p,
|
|
133
|
-
placement: "bottom",
|
|
134
|
-
effect: "light"
|
|
135
|
-
}, {
|
|
136
|
-
default: o(() => [
|
|
137
|
-
l(q, {
|
|
138
|
-
color: "var(--el-text-color-regular)",
|
|
139
|
-
"icon-class": p
|
|
140
|
-
}, null, 8, ["icon-class"])
|
|
141
|
-
]),
|
|
142
|
-
_: 2
|
|
143
|
-
}, 1032, ["content"])
|
|
144
|
-
], 8, tl))), 128))
|
|
145
|
-
])
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
})
|
|
149
|
-
], 512)
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["visible"])
|
|
153
|
-
], 512);
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}), al = /* @__PURE__ */ ye(nl, [["__scopeId", "data-v-8c152702"]]), rl = /* @__PURE__ */ v("br", null, null, -1), sl = { class: "tree-border" }, ul = { class: "dialog-footer" }, yl = /* @__PURE__ */ ae({
|
|
157
|
-
__name: "edit",
|
|
158
|
-
props: {
|
|
159
|
-
formData: {
|
|
160
|
-
type: Object,
|
|
161
|
-
default: () => {
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
dialog: {
|
|
165
|
-
type: Object,
|
|
166
|
-
default: () => {
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
emits: ["dialogEvent", "refresh"],
|
|
171
|
-
setup(b, { emit: V }) {
|
|
172
|
-
var p, F, P, X;
|
|
173
|
-
const { t: m } = Le();
|
|
174
|
-
let t = le({
|
|
175
|
-
tenant: ve().user.tenant,
|
|
176
|
-
requestId: Math.random() * 10 + "",
|
|
177
|
-
updateMask: "moduleId,parentId,resourceType,icon,resourceName,resourceCode,target,url,hidden",
|
|
178
|
-
moduleId: "",
|
|
179
|
-
parentId: "",
|
|
180
|
-
resourceType: "catalog",
|
|
181
|
-
resourceCode: "",
|
|
182
|
-
resourceName: "",
|
|
183
|
-
url: "",
|
|
184
|
-
icon: "",
|
|
185
|
-
operCodes: [],
|
|
186
|
-
target: "",
|
|
187
|
-
hidden: !1
|
|
188
|
-
});
|
|
189
|
-
const I = i("width: 100%");
|
|
190
|
-
let c = i([]), y = i([]), f = i([]);
|
|
191
|
-
const $ = i([]), R = i(!1), w = i(!1), T = i(), j = (e, n, s) => {
|
|
192
|
-
n === "" ? s(new Error(m("sysMenu.urlRequired"))) : t.resourceId ? s() : Ve(n).then(({ data: U }) => {
|
|
193
|
-
U === !0 ? s(new Error(m("sysMenu.urlExist"))) : s();
|
|
194
|
-
}), t.parentId ? s() : n.indexOf("/") === -1 ? s(new Error(m("sysMenu.urlExistSlash"))) : s();
|
|
195
|
-
}, h = le({
|
|
196
|
-
moduleId: [
|
|
197
|
-
{ required: !0, message: m("sysMenu.moduleRequired"), trigger: "change" }
|
|
198
|
-
],
|
|
199
|
-
resourceName: [
|
|
200
|
-
{ required: !0, message: m("sysMenu.nameRequired"), trigger: "blur" }
|
|
201
|
-
],
|
|
202
|
-
resourceCode: [
|
|
203
|
-
{
|
|
204
|
-
required: !0,
|
|
205
|
-
message: m("sysMenu.routeNameRequired"),
|
|
206
|
-
trigger: "blur"
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
url: [{ required: !0, validator: j, trigger: "blur" }]
|
|
210
|
-
}), u = b, q = re(u, "dialog");
|
|
211
|
-
function B() {
|
|
212
|
-
var e;
|
|
213
|
-
console.log(Math.random() * 10), ze().then(({ data: n }) => {
|
|
214
|
-
c.value = n.results;
|
|
215
|
-
}), Ie((e = u.formData) == null ? void 0 : e.resourceId).then(({ data: n }) => {
|
|
216
|
-
$.value = n.results;
|
|
217
|
-
}), $e().then(({ data: n }) => {
|
|
218
|
-
var s;
|
|
219
|
-
y.value = n.results, (s = y.value) == null || s.forEach(
|
|
220
|
-
(U) => f.value.push(U.operationCode.toString())
|
|
221
|
-
);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
function x(e) {
|
|
225
|
-
console.log(e), t.icon = e;
|
|
226
|
-
}
|
|
227
|
-
function L(e) {
|
|
228
|
-
console.log(e, f.value), t.operCodes = e ? f.value : [], w.value = !1;
|
|
229
|
-
}
|
|
230
|
-
function z(e) {
|
|
231
|
-
console.log(e), t.operCodes = e, console.log(t.operCodes);
|
|
232
|
-
const n = e.length;
|
|
233
|
-
R.value = n === f.value.length, w.value = n > 0 && n < f.value.length;
|
|
234
|
-
}
|
|
235
|
-
B();
|
|
236
|
-
const C = V, G = async () => {
|
|
237
|
-
var e;
|
|
238
|
-
await ((e = T.value) == null ? void 0 : e.validate((n) => {
|
|
239
|
-
n && (t.resourceId ? Ce(t).then((s) => {
|
|
240
|
-
console.log(s), s.status === 200 && (te({
|
|
241
|
-
message: m("common.submitSuccess"),
|
|
242
|
-
type: "success"
|
|
243
|
-
}), C("dialogEvent", !1), C("refresh", s.status === 200));
|
|
244
|
-
}) : Ee(t).then((s) => {
|
|
245
|
-
console.log(s), s.status === 200 && (te({
|
|
246
|
-
message: m("common.submitSuccess"),
|
|
247
|
-
type: "success"
|
|
248
|
-
}), C("dialogEvent", !1), C("refresh", s.status === 200));
|
|
249
|
-
}));
|
|
250
|
-
}));
|
|
251
|
-
};
|
|
252
|
-
function D() {
|
|
253
|
-
C("dialogEvent", !1);
|
|
254
|
-
}
|
|
255
|
-
if ((p = u.formData) != null && p.resourceId && (t = Object.assign(t, u.formData)), (F = u.formData) != null && F.parentId) {
|
|
256
|
-
const { formData: e } = xe(u);
|
|
257
|
-
console.log(e == null ? void 0 : e.value), t.parentId = (P = e == null ? void 0 : e.value) == null ? void 0 : P.parentId, t.moduleId = (X = e == null ? void 0 : e.value) == null ? void 0 : X.moduleId;
|
|
258
|
-
}
|
|
259
|
-
return t.parentId === "00000000-0000-0000-0000-000000000000" && (t.parentId = ""), (e, n) => {
|
|
260
|
-
const s = Me, U = ke, _ = Oe, g = Be, ue = Fe, S = De, de = Re, O = ne, H = we, ie = qe, J = Se, ce = Ne, pe = Ae, K = Ue, me = Te;
|
|
261
|
-
return d(), E(me, {
|
|
262
|
-
title: q.value.title,
|
|
263
|
-
modelValue: q.value.visible,
|
|
264
|
-
"onUpdate:modelValue": n[11] || (n[11] = (r) => q.value.visible = r),
|
|
265
|
-
width: "1000px",
|
|
266
|
-
"destory-on-close": !0,
|
|
267
|
-
onClose: D
|
|
268
|
-
}, {
|
|
269
|
-
footer: o(() => [
|
|
270
|
-
v("div", ul, [
|
|
271
|
-
l(K, { onClick: D }, {
|
|
272
|
-
default: o(() => [
|
|
273
|
-
N(M(e.$t("common.cancel")), 1)
|
|
274
|
-
]),
|
|
275
|
-
_: 1
|
|
276
|
-
}),
|
|
277
|
-
l(K, {
|
|
278
|
-
type: "primary",
|
|
279
|
-
onClick: G
|
|
280
|
-
}, {
|
|
281
|
-
default: o(() => [
|
|
282
|
-
N(M(e.$t("common.confirm")), 1)
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
})
|
|
286
|
-
])
|
|
287
|
-
]),
|
|
288
|
-
default: o(() => [
|
|
289
|
-
l(pe, {
|
|
290
|
-
ref_key: "resourceFormRef",
|
|
291
|
-
ref: T,
|
|
292
|
-
model: a(t),
|
|
293
|
-
rules: h,
|
|
294
|
-
"label-width": "160"
|
|
295
|
-
}, {
|
|
296
|
-
default: o(() => [
|
|
297
|
-
l(S, null, {
|
|
298
|
-
default: o(() => [
|
|
299
|
-
l(g, { span: 12 }, {
|
|
300
|
-
default: o(() => [
|
|
301
|
-
l(_, {
|
|
302
|
-
label: e.$t("sysMenu.module"),
|
|
303
|
-
prop: "moduleId"
|
|
304
|
-
}, {
|
|
305
|
-
default: o(() => [
|
|
306
|
-
l(U, {
|
|
307
|
-
modelValue: a(t).moduleId,
|
|
308
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) => a(t).moduleId = r),
|
|
309
|
-
clearable: "",
|
|
310
|
-
placeholder: e.$t("sysMenu.moduleRequired"),
|
|
311
|
-
style: oe(I.value)
|
|
312
|
-
}, {
|
|
313
|
-
default: o(() => [
|
|
314
|
-
(d(!0), k(Y, null, W(a(c), (r) => (d(), E(s, {
|
|
315
|
-
key: r.moduleId,
|
|
316
|
-
label: r.moduleName,
|
|
317
|
-
value: r.moduleId
|
|
318
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["modelValue", "placeholder", "style"])
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}, 8, ["label"])
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}),
|
|
328
|
-
l(g, { span: 12 }, {
|
|
329
|
-
default: o(() => [
|
|
330
|
-
l(_, {
|
|
331
|
-
label: e.$t("sysMenu.parent"),
|
|
332
|
-
prop: "parentId"
|
|
333
|
-
}, {
|
|
334
|
-
default: o(() => [
|
|
335
|
-
l(ue, {
|
|
336
|
-
modelValue: a(t).parentId,
|
|
337
|
-
"onUpdate:modelValue": n[1] || (n[1] = (r) => a(t).parentId = r),
|
|
338
|
-
data: $.value,
|
|
339
|
-
filterable: "",
|
|
340
|
-
clearable: "",
|
|
341
|
-
"check-strictly": "",
|
|
342
|
-
"render-after-expand": !1,
|
|
343
|
-
style: oe(I.value),
|
|
344
|
-
placeholder: e.$t("sysMenu.parentRequired")
|
|
345
|
-
}, null, 8, ["modelValue", "data", "style", "placeholder"])
|
|
346
|
-
]),
|
|
347
|
-
_: 1
|
|
348
|
-
}, 8, ["label"])
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
})
|
|
352
|
-
]),
|
|
353
|
-
_: 1
|
|
354
|
-
}),
|
|
355
|
-
l(S, null, {
|
|
356
|
-
default: o(() => [
|
|
357
|
-
l(g, { span: 12 }, {
|
|
358
|
-
default: o(() => [
|
|
359
|
-
l(_, {
|
|
360
|
-
label: e.$t("sysMenu.type"),
|
|
361
|
-
prop: "resourceType"
|
|
362
|
-
}, {
|
|
363
|
-
default: o(() => [
|
|
364
|
-
l(de, {
|
|
365
|
-
modelValue: a(t).resourceType,
|
|
366
|
-
"onUpdate:modelValue": n[2] || (n[2] = (r) => a(t).resourceType = r),
|
|
367
|
-
"dict-type": "jmash.rbac.protobuf.ResourceType"
|
|
368
|
-
}, null, 8, ["modelValue"])
|
|
369
|
-
]),
|
|
370
|
-
_: 1
|
|
371
|
-
}, 8, ["label"])
|
|
372
|
-
]),
|
|
373
|
-
_: 1
|
|
374
|
-
}),
|
|
375
|
-
l(g, { span: 12 }, {
|
|
376
|
-
default: o(() => [
|
|
377
|
-
l(_, {
|
|
378
|
-
label: e.$t("sysMenu.icon"),
|
|
379
|
-
prop: "icon"
|
|
380
|
-
}, {
|
|
381
|
-
default: o(() => [
|
|
382
|
-
l(al, {
|
|
383
|
-
modelValue: a(t).icon,
|
|
384
|
-
"onUpdate:modelValue": n[3] || (n[3] = (r) => a(t).icon = r),
|
|
385
|
-
onIconValue: x
|
|
386
|
-
}, null, 8, ["modelValue"])
|
|
387
|
-
]),
|
|
388
|
-
_: 1
|
|
389
|
-
}, 8, ["label"])
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
})
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
}),
|
|
396
|
-
l(S, null, {
|
|
397
|
-
default: o(() => [
|
|
398
|
-
l(g, { span: 12 }, {
|
|
399
|
-
default: o(() => [
|
|
400
|
-
l(_, {
|
|
401
|
-
label: e.$t("sysMenu.name"),
|
|
402
|
-
prop: "resourceName"
|
|
403
|
-
}, {
|
|
404
|
-
default: o(() => [
|
|
405
|
-
l(O, {
|
|
406
|
-
clearable: "",
|
|
407
|
-
modelValue: a(t).resourceName,
|
|
408
|
-
"onUpdate:modelValue": n[4] || (n[4] = (r) => a(t).resourceName = r),
|
|
409
|
-
placeholder: e.$t("sysMenu.nameRequired")
|
|
410
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
}, 8, ["label"])
|
|
414
|
-
]),
|
|
415
|
-
_: 1
|
|
416
|
-
}),
|
|
417
|
-
a(t).resourceType !== "other" ? (d(), E(g, {
|
|
418
|
-
key: 0,
|
|
419
|
-
span: 12
|
|
420
|
-
}, {
|
|
421
|
-
default: o(() => [
|
|
422
|
-
l(_, {
|
|
423
|
-
label: e.$t("sysMenu.target"),
|
|
424
|
-
prop: "target"
|
|
425
|
-
}, {
|
|
426
|
-
default: o(() => [
|
|
427
|
-
l(O, {
|
|
428
|
-
clearable: "",
|
|
429
|
-
modelValue: a(t).target,
|
|
430
|
-
"onUpdate:modelValue": n[5] || (n[5] = (r) => a(t).target = r),
|
|
431
|
-
placeholder: e.$t("sysMenu.targetRequired")
|
|
432
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
}, 8, ["label"])
|
|
436
|
-
]),
|
|
437
|
-
_: 1
|
|
438
|
-
})) : A("", !0)
|
|
439
|
-
]),
|
|
440
|
-
_: 1
|
|
441
|
-
}),
|
|
442
|
-
l(S, null, {
|
|
443
|
-
default: o(() => [
|
|
444
|
-
l(g, { span: 12 }, {
|
|
445
|
-
default: o(() => [
|
|
446
|
-
l(_, {
|
|
447
|
-
label: e.$t("sysMenu.routeName"),
|
|
448
|
-
prop: "resourceCode"
|
|
449
|
-
}, {
|
|
450
|
-
default: o(() => [
|
|
451
|
-
l(O, {
|
|
452
|
-
clearable: "",
|
|
453
|
-
modelValue: a(t).resourceCode,
|
|
454
|
-
"onUpdate:modelValue": n[6] || (n[6] = (r) => a(t).resourceCode = r),
|
|
455
|
-
placeholder: e.$t("sysMenu.routeNameRequired")
|
|
456
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
457
|
-
]),
|
|
458
|
-
_: 1
|
|
459
|
-
}, 8, ["label"])
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}),
|
|
463
|
-
a(t).resourceType !== "other" ? (d(), E(g, {
|
|
464
|
-
key: 0,
|
|
465
|
-
span: 12
|
|
466
|
-
}, {
|
|
467
|
-
default: o(() => [
|
|
468
|
-
l(_, {
|
|
469
|
-
label: e.$t("sysMenu.url"),
|
|
470
|
-
prop: "url"
|
|
471
|
-
}, {
|
|
472
|
-
default: o(() => [
|
|
473
|
-
l(O, {
|
|
474
|
-
clearable: "",
|
|
475
|
-
modelValue: a(t).url,
|
|
476
|
-
"onUpdate:modelValue": n[7] || (n[7] = (r) => a(t).url = r),
|
|
477
|
-
placeholder: e.$t("sysMenu.urlRequired")
|
|
478
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
479
|
-
]),
|
|
480
|
-
_: 1
|
|
481
|
-
}, 8, ["label"])
|
|
482
|
-
]),
|
|
483
|
-
_: 1
|
|
484
|
-
})) : A("", !0)
|
|
485
|
-
]),
|
|
486
|
-
_: 1
|
|
487
|
-
}),
|
|
488
|
-
l(S, null, {
|
|
489
|
-
default: o(() => [
|
|
490
|
-
a(t).resourceType !== "other" ? (d(), E(g, {
|
|
491
|
-
key: 0,
|
|
492
|
-
span: 12
|
|
493
|
-
}, {
|
|
494
|
-
default: o(() => [
|
|
495
|
-
l(_, {
|
|
496
|
-
label: e.$t("sysMenu.status"),
|
|
497
|
-
prop: "hidden"
|
|
498
|
-
}, {
|
|
499
|
-
default: o(() => [
|
|
500
|
-
l(ie, {
|
|
501
|
-
modelValue: a(t).hidden,
|
|
502
|
-
"onUpdate:modelValue": n[8] || (n[8] = (r) => a(t).hidden = r)
|
|
503
|
-
}, {
|
|
504
|
-
default: o(() => [
|
|
505
|
-
l(H, { label: !1 }, {
|
|
506
|
-
default: o(() => [
|
|
507
|
-
N(M(e.$t("common.show")), 1)
|
|
508
|
-
]),
|
|
509
|
-
_: 1
|
|
510
|
-
}),
|
|
511
|
-
l(H, { label: !0 }, {
|
|
512
|
-
default: o(() => [
|
|
513
|
-
N(M(e.$t("common.hide")), 1)
|
|
514
|
-
]),
|
|
515
|
-
_: 1
|
|
516
|
-
})
|
|
517
|
-
]),
|
|
518
|
-
_: 1
|
|
519
|
-
}, 8, ["modelValue"])
|
|
520
|
-
]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 8, ["label"])
|
|
523
|
-
]),
|
|
524
|
-
_: 1
|
|
525
|
-
})) : A("", !0)
|
|
526
|
-
]),
|
|
527
|
-
_: 1
|
|
528
|
-
}),
|
|
529
|
-
a(t).resourceType !== "catalog" ? (d(), E(S, { key: 0 }, {
|
|
530
|
-
default: o(() => [
|
|
531
|
-
l(g, { span: 24 }, {
|
|
532
|
-
default: o(() => [
|
|
533
|
-
l(_, {
|
|
534
|
-
label: e.$t("sysMenu.operatePerm"),
|
|
535
|
-
prop: "operCodes"
|
|
536
|
-
}, {
|
|
537
|
-
default: o(() => [
|
|
538
|
-
l(J, {
|
|
539
|
-
modelValue: R.value,
|
|
540
|
-
"onUpdate:modelValue": n[9] || (n[9] = (r) => R.value = r),
|
|
541
|
-
indeterminate: w.value,
|
|
542
|
-
onChange: L
|
|
543
|
-
}, {
|
|
544
|
-
default: o(() => [
|
|
545
|
-
N(M(e.$t("sysMenu.checkAll")) + "/" + M(e.$t("sysMenu.checkNoAll")), 1)
|
|
546
|
-
]),
|
|
547
|
-
_: 1
|
|
548
|
-
}, 8, ["modelValue", "indeterminate"]),
|
|
549
|
-
rl,
|
|
550
|
-
v("div", sl, [
|
|
551
|
-
l(ce, {
|
|
552
|
-
modelValue: a(t).operCodes,
|
|
553
|
-
"onUpdate:modelValue": n[10] || (n[10] = (r) => a(t).operCodes = r),
|
|
554
|
-
onChange: z
|
|
555
|
-
}, {
|
|
556
|
-
default: o(() => [
|
|
557
|
-
(d(!0), k(Y, null, W(a(y), (r) => (d(), E(J, {
|
|
558
|
-
label: r.operationCode,
|
|
559
|
-
key: r.operationId
|
|
560
|
-
}, {
|
|
561
|
-
default: o(() => [
|
|
562
|
-
N(M(r.operationName), 1)
|
|
563
|
-
]),
|
|
564
|
-
_: 2
|
|
565
|
-
}, 1032, ["label"]))), 128))
|
|
566
|
-
]),
|
|
567
|
-
_: 1
|
|
568
|
-
}, 8, ["modelValue"])
|
|
569
|
-
])
|
|
570
|
-
]),
|
|
571
|
-
_: 1
|
|
572
|
-
}, 8, ["label"])
|
|
573
|
-
]),
|
|
574
|
-
_: 1
|
|
575
|
-
})
|
|
576
|
-
]),
|
|
577
|
-
_: 1
|
|
578
|
-
})) : A("", !0)
|
|
579
|
-
]),
|
|
580
|
-
_: 1
|
|
581
|
-
}, 8, ["model", "rules"])
|
|
582
|
-
]),
|
|
583
|
-
_: 1
|
|
584
|
-
}, 8, ["title", "modelValue"]);
|
|
585
|
-
};
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
export {
|
|
589
|
-
yl as _
|
|
590
|
-
};
|