jmash-core 0.0.3 → 0.0.5
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-DZeMj80g.mjs +103 -0
- package/dist/404-D1KiG-19.mjs +37 -0
- package/dist/BarChart-BYm859ri.mjs +203 -0
- package/dist/FileSaver.min-DJ2XURfB.mjs +77 -0
- package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
- package/dist/PieChart-BRbbIH3_.mjs +4 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs +90 -0
- package/dist/RadarChart-Bk_uy6Km.mjs +4 -0
- package/dist/RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs +109 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/caret-bottom-DGvkHVYd.mjs +59 -0
- package/dist/common-DuVBTwAv.mjs +36 -0
- package/dist/debounce-XYByYe_I.mjs +81 -0
- package/dist/dropdown2-D_RJXnOl.mjs +160 -0
- package/dist/edit-BTjApg1x.mjs +468 -0
- package/dist/edit-BcLHrCSo.mjs +4 -0
- package/dist/edit-DC3SyT6J.mjs +4 -0
- package/dist/edit-DmP9tv3r.mjs +4 -0
- package/dist/edit-Dr-9X4r3.mjs +4 -0
- package/dist/edit-FjRAXd1B.mjs +832 -0
- package/dist/edit-bpHMc65Q.mjs +4 -0
- package/dist/edit-lB54egzx.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs +621 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs +221 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs +225 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs +156 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs +287 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs +136 -0
- package/dist/el-card-Da9MvaWO.mjs +61 -0
- package/dist/el-checkbox-B44P9jFr.mjs +548 -0
- package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
- package/dist/el-col-BY0nB6k3.mjs +135 -0
- package/dist/el-date-picker-CVwJoDEA.mjs +3349 -0
- package/dist/el-dialog-CSWvTJrq.mjs +378 -0
- package/dist/el-dropdown-item-CD8hUpml.mjs +675 -0
- package/dist/el-form-item-f-baJSfe.mjs +1489 -0
- package/dist/el-icon-l0sNRNKZ.mjs +1 -0
- package/dist/el-popover-D8RrIMbA.mjs +159 -0
- package/dist/el-popper-C13p_dqu.mjs +1656 -0
- package/dist/el-progress-CHUzIxT1.mjs +898 -0
- package/dist/el-radio-BpdPD-RN.mjs +251 -0
- package/dist/el-scrollbar-B8QteGV0.mjs +607 -0
- package/dist/el-select-ChOy6agQ.mjs +1040 -0
- package/dist/el-switch-cqWxQwcb.mjs +254 -0
- package/dist/el-table-c9Sup56w.mjs +3168 -0
- package/dist/el-tag-l0sNRNKZ.mjs +1 -0
- package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
- package/dist/el-tree-select-CKOwMXR7.mjs +1316 -0
- package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs +116 -0
- package/dist/index-B6wY38lY.mjs +13173 -0
- package/dist/index-BH-_mfRR.mjs +107 -0
- package/dist/index-BfhiNV8H.mjs +486 -0
- package/dist/index-BjqMDjBg.mjs +43994 -0
- package/dist/index-BuHauank.mjs +13 -0
- package/dist/index-CBJwB8q2.mjs +633 -0
- package/dist/index-CGCQHwLq.mjs +482 -0
- package/dist/index-CU0iVHXP.mjs +281 -0
- package/dist/index-CYxGYOaT.mjs +504 -0
- package/dist/index-Cjii0qCc.mjs +278 -0
- package/dist/index-Czh2Pqwr.mjs +63 -0
- package/dist/index-DJ08yxAP.mjs +11 -0
- package/dist/index-DUKlDGLk.mjs +2589 -0
- package/dist/index-DUVtKaDI.mjs +515 -0
- package/dist/index-Dgd4Zhxz.mjs +93 -0
- package/dist/index-Di5--Hao.mjs +328 -0
- package/dist/index-DjkMA-Wh.mjs +40 -0
- package/dist/index-DrKW_cyG.mjs +247 -0
- package/dist/index-LuiPOgGW.mjs +291 -0
- package/dist/index-VD-Tf32c.mjs +74 -0
- package/dist/index-cRrjzkNb.mjs +452 -0
- package/dist/index-cp7l4CIE.mjs +134 -0
- package/dist/index-dKz1IRM_.mjs +279 -0
- package/dist/index-dLPnFa10.mjs +964 -0
- package/dist/index-uykKwY2Z.mjs +12 -0
- package/dist/index-vp1_Sd0A.mjs +55 -0
- package/dist/index.mjs +22 -273
- package/dist/index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs +286 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs +58 -0
- package/dist/isUndefined-CUQZk6oB.mjs +6 -0
- package/dist/moment-CMYwqyVT.mjs +2579 -0
- package/dist/picture-kDaEiPHi.mjs +599 -0
- package/dist/profile-Sn98YUfh.mjs +319 -0
- package/dist/refs-COP_DuTD.mjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types-BolK_Oyb.mjs +205 -0
- package/dist/updatePwd-B3rEU05i.mjs +4 -0
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs +151 -0
- package/dist/useColumnToggleTable-CC9EXcfR.mjs +272 -0
- package/dts/src/App.vue.d.ts +1 -1
- package/dts/src/api/auth/index.d.ts +41 -0
- package/dts/src/api/auth/types.d.ts +180 -0
- package/dts/src/api/file/index.d.ts +14 -0
- package/dts/src/api/file/types.d.ts +7 -0
- package/dts/src/api/system/dept/index.d.ts +91 -0
- package/dts/src/api/system/dept/types.d.ts +63 -0
- package/dts/src/api/system/index.d.ts +7 -0
- package/dts/src/api/system/job/index.d.ts +42 -0
- package/dts/src/api/system/job/types.d.ts +60 -0
- package/dts/src/api/system/log/index.d.ts +29 -0
- package/dts/src/api/system/log/types.d.ts +42 -0
- package/dts/src/api/system/menu/index.d.ts +103 -0
- package/dts/src/api/system/menu/types.d.ts +96 -0
- package/dts/src/api/system/module/index.d.ts +57 -0
- package/dts/src/api/system/module/types.d.ts +13 -0
- package/dts/src/api/system/operation/index.d.ts +51 -0
- package/dts/src/api/system/operation/types.d.ts +12 -0
- package/dts/src/api/system/permission/index.d.ts +50 -0
- package/dts/src/api/system/permission/types.d.ts +12 -0
- package/dts/src/api/system/role/index.d.ts +77 -0
- package/dts/src/api/system/role/types.d.ts +26 -0
- package/dts/src/api/system/user/index.d.ts +133 -0
- package/dts/src/api/system/user/types.d.ts +53 -0
- package/dts/src/api/system/userLog/index.d.ts +29 -0
- package/dts/src/api/system/userLog/types.d.ts +22 -0
- package/dts/src/assets/icons/index.d.ts +0 -0
- package/dts/src/components/{icons/IconDocumentation.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
- package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
- package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
- package/dts/src/components/{TheWelcome.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
- package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
- package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
- package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
- package/dts/src/components/{icons/IconEcosystem.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +88 -0
- package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
- package/dts/src/components/{icons/IconCommunity.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
- package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
- package/dts/src/components/Table/index.vue.d.ts +73 -0
- package/dts/src/components/TableSet/index.vue.d.ts +29 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
- package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
- package/dts/src/components/Upload/index.vue.d.ts +18 -0
- package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
- package/dts/src/directive/index.d.ts +5 -0
- package/dts/src/directive/permission/index.d.ts +9 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
- package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
- package/dts/src/index.d.ts +29 -3
- package/dts/src/lang/index.d.ts +534 -0
- package/dts/src/lang/package/en.d.ts +261 -0
- package/dts/src/lang/package/zh-cn.d.ts +275 -0
- package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
- package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
- package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
- package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
- package/dts/src/layout/components/index.d.ts +4 -0
- package/dts/src/layout/index.vue.d.ts +2 -0
- package/dts/src/layout/main.vue.d.ts +2 -0
- package/dts/src/main.d.ts +5 -1
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +10 -0
- package/dts/src/settings.d.ts +13 -0
- package/dts/src/stores/index.d.ts +7 -0
- package/dts/src/stores/modules/tagsView.d.ts +82 -0
- package/dts/src/utils/common.d.ts +6 -0
- package/dts/src/utils/grpc.d.ts +2 -0
- package/dts/src/utils/i18n.d.ts +1 -0
- package/dts/src/utils/index.d.ts +24 -0
- package/dts/src/utils/request.d.ts +2 -0
- package/dts/src/utils/resize.d.ts +1 -0
- package/dts/src/utils/scroll-to.d.ts +6 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/index.vue.d.ts +2 -0
- package/dts/src/views/error-page/401.vue.d.ts +2 -0
- package/dts/src/views/error-page/404.vue.d.ts +2 -0
- package/dts/src/views/login/components/types.vue.d.ts +2 -0
- package/dts/src/views/login/index.vue.d.ts +2 -0
- package/dts/src/views/my/profile.vue.d.ts +2 -0
- package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
- package/dts/src/views/redirect/index.vue.d.ts +2 -0
- package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
- package/dts/src/views/system/dept/index.vue.d.ts +2 -0
- package/dts/src/views/system/job/edit.vue.d.ts +30 -0
- package/dts/src/views/system/job/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
- package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
- package/dts/src/views/system/menu/index.vue.d.ts +2 -0
- package/dts/src/views/system/module/edit.vue.d.ts +31 -0
- package/dts/src/views/system/module/index.vue.d.ts +2 -0
- package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
- package/dts/src/views/system/operation/index.vue.d.ts +2 -0
- package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
- package/dts/src/views/system/permission/index.vue.d.ts +2 -0
- package/dts/src/views/system/role/edit.vue.d.ts +31 -0
- package/dts/src/views/system/role/index.vue.d.ts +2 -0
- package/dts/src/views/system/user/edit.vue.d.ts +31 -0
- package/dts/src/views/system/user/index.vue.d.ts +2 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -2
- package/dts/src/components/HelloWorld.vue.d.ts +0 -15
- package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
- package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
- package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
- package/dts/src/stores/counter.d.ts +0 -13
- package/dts/src/views/AboutView.vue.d.ts +0 -2
- package/dts/src/views/HomeView.vue.d.ts +0 -2
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { aD as ge, f as ae, a as ye, d as ve, aE as he, aF as be, aG as Ve, aH as Ee, E as ee, aI as Ie, h as Ce } from "./index-B6wY38lY.mjs";
|
|
2
|
+
import { E as $e } from "./el-dialog-CSWvTJrq.mjs";
|
|
3
|
+
import { a as Me, E as ke } from "./el-form-item-f-baJSfe.mjs";
|
|
4
|
+
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
5
|
+
import { E as Re, a as qe } from "./el-checkbox-B44P9jFr.mjs";
|
|
6
|
+
import { E as re, a as se } from "./el-radio-BpdPD-RN.mjs";
|
|
7
|
+
import { defineComponent as K, ref as p, toRefs as ue, openBlock as u, createBlock as I, unref as a, isRef as J, withCtx as t, createElementBlock as R, Fragment as A, renderList as L, createTextVNode as k, toDisplayString as C, createElementVNode as q, toRef as de, onMounted as Se, createVNode as l, withDirectives as le, vShow as oe, reactive as te, normalizeStyle as ne, createCommentVNode as x } from "vue";
|
|
8
|
+
import { d as we } from "./index-BuHauank.mjs";
|
|
9
|
+
import { E as Ne, a as Ue } from "./el-col-BY0nB6k3.mjs";
|
|
10
|
+
import "./el-tag-l0sNRNKZ.mjs";
|
|
11
|
+
import { E as Te, a as De } from "./el-select-ChOy6agQ.mjs";
|
|
12
|
+
import { E as Fe } from "./el-scrollbar-B8QteGV0.mjs";
|
|
13
|
+
import { E as Be } from "./el-popper-C13p_dqu.mjs";
|
|
14
|
+
import { E as Oe } from "./el-tree-select-CKOwMXR7.mjs";
|
|
15
|
+
import { m as xe } from "./index-Dgd4Zhxz.mjs";
|
|
16
|
+
import { E as Ae } from "./el-popover-D8RrIMbA.mjs";
|
|
17
|
+
import "./el-tooltip-l0sNRNKZ.mjs";
|
|
18
|
+
import { _ as Le, E as je } from "./caret-bottom-DGvkHVYd.mjs";
|
|
19
|
+
import { _ as Ge } from "./index-DjkMA-Wh.mjs";
|
|
20
|
+
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
21
|
+
const Pe = /* @__PURE__ */ K({
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
dictType: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
dictValue: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup(y) {
|
|
34
|
+
const $ = p([]), c = y, { dictValue: o } = ue(c);
|
|
35
|
+
function b() {
|
|
36
|
+
we(c.dictType).then(({ data: d }) => {
|
|
37
|
+
$.value = d.values;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return b(), (d, g) => {
|
|
41
|
+
const m = re, V = se;
|
|
42
|
+
return u(), I(V, {
|
|
43
|
+
modelValue: a(o),
|
|
44
|
+
"onUpdate:modelValue": g[0] || (g[0] = (f) => J(o) ? o.value = f : null)
|
|
45
|
+
}, {
|
|
46
|
+
default: t(() => [
|
|
47
|
+
(u(!0), R(A, null, L(a($), (f) => (u(), I(m, {
|
|
48
|
+
label: f.key,
|
|
49
|
+
key: f.key
|
|
50
|
+
}, {
|
|
51
|
+
default: t(() => [
|
|
52
|
+
k(C(f.value), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["label"]))), 128))
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["modelValue"]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}), He = {
|
|
62
|
+
viewBox: "0 0 1024 1024",
|
|
63
|
+
width: "1.2em",
|
|
64
|
+
height: "1.2em"
|
|
65
|
+
}, We = /* @__PURE__ */ q("path", {
|
|
66
|
+
fill: "currentColor",
|
|
67
|
+
d: "M512 320L192 704h639.936z"
|
|
68
|
+
}, null, -1), Je = [
|
|
69
|
+
We
|
|
70
|
+
];
|
|
71
|
+
function Ke(y, $) {
|
|
72
|
+
return u(), R("svg", He, [...Je]);
|
|
73
|
+
}
|
|
74
|
+
const Qe = { name: "ep-caret-top", render: Ke }, Xe = require.context("../../assets/icons/svg", !1, /\.svg$/), Ye = (y) => y.keys(), Ze = /\.\/(.*)\.svg/, el = Ye(Xe).map((y) => y.match(Ze)[1]), ll = { class: "icon-list" }, ol = ["onClick"], tl = /* @__PURE__ */ K({
|
|
75
|
+
__name: "index",
|
|
76
|
+
props: {
|
|
77
|
+
modelValue: {
|
|
78
|
+
type: String,
|
|
79
|
+
require: !1,
|
|
80
|
+
default: ""
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
emits: ["iconValue"],
|
|
84
|
+
setup(y, { emit: $ }) {
|
|
85
|
+
const c = y, o = $, b = de(c, "modelValue"), d = p(!1);
|
|
86
|
+
let g = [];
|
|
87
|
+
const m = p(""), V = p([]), f = p(), S = p();
|
|
88
|
+
console.log(c.modelValue);
|
|
89
|
+
function T() {
|
|
90
|
+
m.value ? V.value = g.filter(
|
|
91
|
+
(E) => E.includes(m.value)
|
|
92
|
+
) : V.value = g;
|
|
93
|
+
}
|
|
94
|
+
function j(E) {
|
|
95
|
+
console.log(E), o("iconValue", E), d.value = !1;
|
|
96
|
+
}
|
|
97
|
+
return ge(f, () => d.value = !1, {
|
|
98
|
+
ignore: [S]
|
|
99
|
+
}), Se(() => {
|
|
100
|
+
g = el, V.value = g;
|
|
101
|
+
}), (E, i) => {
|
|
102
|
+
const w = Ge, D = ae, G = Qe, z = Le, P = je, M = Be, H = Fe, F = Ae;
|
|
103
|
+
return u(), R("div", {
|
|
104
|
+
ref_key: "iconSelectorRef",
|
|
105
|
+
ref: f,
|
|
106
|
+
class: "iconselect-container"
|
|
107
|
+
}, [
|
|
108
|
+
l(D, {
|
|
109
|
+
modelValue: a(b),
|
|
110
|
+
"onUpdate:modelValue": i[0] || (i[0] = (_) => J(b) ? b.value = _ : null),
|
|
111
|
+
readonly: "",
|
|
112
|
+
placeholder: E.$t("sysMenu.selectIcon"),
|
|
113
|
+
onClick: i[1] || (i[1] = (_) => d.value = !a(d))
|
|
114
|
+
}, {
|
|
115
|
+
prepend: t(() => [
|
|
116
|
+
l(w, { "icon-class": a(b) }, null, 8, ["icon-class"])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
120
|
+
l(F, {
|
|
121
|
+
shadow: "none",
|
|
122
|
+
visible: a(d),
|
|
123
|
+
placement: "bottom-end",
|
|
124
|
+
trigger: "click",
|
|
125
|
+
width: "400"
|
|
126
|
+
}, {
|
|
127
|
+
reference: t(() => [
|
|
128
|
+
q("div", {
|
|
129
|
+
class: "cursor-pointer text-[#999] absolute right-[10px] top-0 height-[32px] leading-[32px]",
|
|
130
|
+
onClick: i[2] || (i[2] = (_) => d.value = !a(d))
|
|
131
|
+
}, [
|
|
132
|
+
le(l(G, null, null, 512), [
|
|
133
|
+
[oe, a(d)]
|
|
134
|
+
]),
|
|
135
|
+
le(l(z, null, null, 512), [
|
|
136
|
+
[oe, !a(d)]
|
|
137
|
+
])
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
default: t(() => [
|
|
141
|
+
q("div", {
|
|
142
|
+
ref_key: "iconSelectorDialogRef",
|
|
143
|
+
ref: S
|
|
144
|
+
}, [
|
|
145
|
+
l(D, {
|
|
146
|
+
modelValue: a(m),
|
|
147
|
+
"onUpdate:modelValue": i[3] || (i[3] = (_) => J(m) ? m.value = _ : null),
|
|
148
|
+
class: "p-2",
|
|
149
|
+
placeholder: E.$t("sysMenu.searchIcon"),
|
|
150
|
+
clearable: "",
|
|
151
|
+
onInput: T
|
|
152
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
153
|
+
l(P, { "border-style": "dashed" }),
|
|
154
|
+
l(H, { height: "300px" }, {
|
|
155
|
+
default: t(() => [
|
|
156
|
+
q("ul", ll, [
|
|
157
|
+
(u(!0), R(A, null, L(a(V), (_, B) => (u(), R("li", {
|
|
158
|
+
key: B,
|
|
159
|
+
class: "icon-item",
|
|
160
|
+
onClick: (W) => j(_)
|
|
161
|
+
}, [
|
|
162
|
+
l(M, {
|
|
163
|
+
content: _,
|
|
164
|
+
placement: "bottom",
|
|
165
|
+
effect: "light"
|
|
166
|
+
}, {
|
|
167
|
+
default: t(() => [
|
|
168
|
+
l(w, {
|
|
169
|
+
color: "var(--el-text-color-regular)",
|
|
170
|
+
"icon-class": _
|
|
171
|
+
}, null, 8, ["icon-class"])
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1032, ["content"])
|
|
175
|
+
], 8, ol))), 128))
|
|
176
|
+
])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
})
|
|
180
|
+
], 512)
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["visible"])
|
|
184
|
+
], 512);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
}), nl = /* @__PURE__ */ ze(tl, [["__scopeId", "data-v-8c152702"]]), al = /* @__PURE__ */ q("br", null, null, -1), rl = { class: "tree-border" }, sl = { class: "dialog-footer" }, Rl = /* @__PURE__ */ K({
|
|
188
|
+
__name: "edit",
|
|
189
|
+
props: {
|
|
190
|
+
formData: {
|
|
191
|
+
type: Object,
|
|
192
|
+
default: () => {
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
dialog: {
|
|
196
|
+
type: Object,
|
|
197
|
+
default: () => {
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
emits: ["dialogEvent", "refresh"],
|
|
202
|
+
setup(y, { emit: $ }) {
|
|
203
|
+
var _, B, W, Q;
|
|
204
|
+
const { t: c } = ye();
|
|
205
|
+
let o = te({
|
|
206
|
+
tenant: ve().user.tenant,
|
|
207
|
+
requestId: Math.random() * 10 + "",
|
|
208
|
+
updateMask: "moduleId,parentId,resourceType,icon,resourceName,resourceCode,target,url,hidden",
|
|
209
|
+
moduleId: "",
|
|
210
|
+
parentId: "",
|
|
211
|
+
resourceType: "catalog",
|
|
212
|
+
resourceCode: "",
|
|
213
|
+
resourceName: "",
|
|
214
|
+
url: "",
|
|
215
|
+
icon: "",
|
|
216
|
+
operCodes: [],
|
|
217
|
+
target: "",
|
|
218
|
+
hidden: !1
|
|
219
|
+
});
|
|
220
|
+
const b = p("width: 100%");
|
|
221
|
+
let d = p([]), g = p([]), m = p([]);
|
|
222
|
+
const V = p([]), f = p(!1), S = p(!1), T = p(), j = (e, n, s) => {
|
|
223
|
+
n === "" ? s(new Error(c("sysMenu.urlRequired"))) : o.resourceId ? s() : he(n).then(({ data: U }) => {
|
|
224
|
+
U === !0 ? s(new Error(c("sysMenu.urlExist"))) : s();
|
|
225
|
+
}), o.parentId ? s() : n.indexOf("/") === -1 ? s(new Error(c("sysMenu.urlExistSlash"))) : s();
|
|
226
|
+
}, E = te({
|
|
227
|
+
moduleId: [
|
|
228
|
+
{ required: !0, message: c("sysMenu.moduleRequired"), trigger: "change" }
|
|
229
|
+
],
|
|
230
|
+
resourceName: [
|
|
231
|
+
{ required: !0, message: c("sysMenu.nameRequired"), trigger: "blur" }
|
|
232
|
+
],
|
|
233
|
+
resourceCode: [
|
|
234
|
+
{
|
|
235
|
+
required: !0,
|
|
236
|
+
message: c("sysMenu.routeNameRequired"),
|
|
237
|
+
trigger: "blur"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
url: [{ required: !0, validator: j, trigger: "blur" }]
|
|
241
|
+
}), i = y, w = de(i, "dialog");
|
|
242
|
+
function D() {
|
|
243
|
+
var e;
|
|
244
|
+
console.log(Math.random() * 10), xe().then(({ data: n }) => {
|
|
245
|
+
d.value = n.results;
|
|
246
|
+
}), be((e = i.formData) == null ? void 0 : e.resourceId).then(({ data: n }) => {
|
|
247
|
+
V.value = n.results;
|
|
248
|
+
}), Ve().then(({ data: n }) => {
|
|
249
|
+
var s;
|
|
250
|
+
g.value = n.results, (s = g.value) == null || s.forEach(
|
|
251
|
+
(U) => m.value.push(U.operationCode)
|
|
252
|
+
);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function G(e) {
|
|
256
|
+
console.log(e), o.icon = e;
|
|
257
|
+
}
|
|
258
|
+
function z(e) {
|
|
259
|
+
console.log(e, m.value), o.operCodes = e ? m.value : [], S.value = !1;
|
|
260
|
+
}
|
|
261
|
+
function P(e) {
|
|
262
|
+
console.log(e), o.operCodes = e, console.log(o.operCodes);
|
|
263
|
+
const n = e.length;
|
|
264
|
+
f.value = n === m.length, S.value = n > 0 && n < m.length;
|
|
265
|
+
}
|
|
266
|
+
D();
|
|
267
|
+
const M = $, H = async () => {
|
|
268
|
+
var e;
|
|
269
|
+
await ((e = T.value) == null ? void 0 : e.validate((n) => {
|
|
270
|
+
n && (o.resourceId ? Ee(o).then((s) => {
|
|
271
|
+
console.log(s), s.status === 200 && (ee({
|
|
272
|
+
message: c("common.submitSuccess"),
|
|
273
|
+
type: "success"
|
|
274
|
+
}), M("dialogEvent", !1), M("refresh", s.status === 200));
|
|
275
|
+
}) : Ie(o).then((s) => {
|
|
276
|
+
console.log(s), s.status === 200 && (ee({
|
|
277
|
+
message: c("common.submitSuccess"),
|
|
278
|
+
type: "success"
|
|
279
|
+
}), M("dialogEvent", !1), M("refresh", s.status === 200));
|
|
280
|
+
}));
|
|
281
|
+
}));
|
|
282
|
+
};
|
|
283
|
+
function F() {
|
|
284
|
+
M("dialogEvent", !1);
|
|
285
|
+
}
|
|
286
|
+
if ((_ = i.formData) != null && _.resourceId && (o = Object.assign(o, i.formData)), (B = i.formData) != null && B.parentId) {
|
|
287
|
+
const { formData: e } = ue(i);
|
|
288
|
+
console.log(e == null ? void 0 : e.value), o.parentId = (W = e == null ? void 0 : e.value) == null ? void 0 : W.parentId, o.moduleId = (Q = e == null ? void 0 : e.value) == null ? void 0 : Q.moduleId;
|
|
289
|
+
}
|
|
290
|
+
return o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = ""), (e, n) => {
|
|
291
|
+
const s = Te, U = De, v = Me, h = Ne, ie = Oe, N = Ue, ce = Pe, O = ae, X = re, pe = se, Y = Re, me = qe, fe = ke, Z = Ce, _e = $e;
|
|
292
|
+
return u(), I(_e, {
|
|
293
|
+
title: w.value.title,
|
|
294
|
+
modelValue: w.value.visible,
|
|
295
|
+
"onUpdate:modelValue": n[11] || (n[11] = (r) => w.value.visible = r),
|
|
296
|
+
width: "1000px",
|
|
297
|
+
"destory-on-close": !0,
|
|
298
|
+
onClose: F
|
|
299
|
+
}, {
|
|
300
|
+
footer: t(() => [
|
|
301
|
+
q("div", sl, [
|
|
302
|
+
l(Z, { onClick: F }, {
|
|
303
|
+
default: t(() => [
|
|
304
|
+
k(C(e.$t("common.cancel")), 1)
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
}),
|
|
308
|
+
l(Z, {
|
|
309
|
+
type: "primary",
|
|
310
|
+
onClick: H
|
|
311
|
+
}, {
|
|
312
|
+
default: t(() => [
|
|
313
|
+
k(C(e.$t("common.confirm")), 1)
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
})
|
|
317
|
+
])
|
|
318
|
+
]),
|
|
319
|
+
default: t(() => [
|
|
320
|
+
l(fe, {
|
|
321
|
+
ref_key: "resourceFormRef",
|
|
322
|
+
ref: T,
|
|
323
|
+
model: a(o),
|
|
324
|
+
rules: E,
|
|
325
|
+
"label-width": "160"
|
|
326
|
+
}, {
|
|
327
|
+
default: t(() => [
|
|
328
|
+
l(N, null, {
|
|
329
|
+
default: t(() => [
|
|
330
|
+
l(h, { span: 12 }, {
|
|
331
|
+
default: t(() => [
|
|
332
|
+
l(v, {
|
|
333
|
+
label: e.$t("sysMenu.module"),
|
|
334
|
+
prop: "moduleId"
|
|
335
|
+
}, {
|
|
336
|
+
default: t(() => [
|
|
337
|
+
l(U, {
|
|
338
|
+
modelValue: a(o).moduleId,
|
|
339
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => a(o).moduleId = r),
|
|
340
|
+
clearable: "",
|
|
341
|
+
placeholder: e.$t("sysMenu.moduleRequired"),
|
|
342
|
+
style: ne(b.value)
|
|
343
|
+
}, {
|
|
344
|
+
default: t(() => [
|
|
345
|
+
(u(!0), R(A, null, L(a(d), (r) => (u(), I(s, {
|
|
346
|
+
key: r.moduleId,
|
|
347
|
+
label: r.moduleName,
|
|
348
|
+
value: r.moduleId
|
|
349
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}, 8, ["modelValue", "placeholder", "style"])
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
}, 8, ["label"])
|
|
356
|
+
]),
|
|
357
|
+
_: 1
|
|
358
|
+
}),
|
|
359
|
+
l(h, { span: 12 }, {
|
|
360
|
+
default: t(() => [
|
|
361
|
+
l(v, {
|
|
362
|
+
label: e.$t("sysMenu.parent"),
|
|
363
|
+
prop: "parentId"
|
|
364
|
+
}, {
|
|
365
|
+
default: t(() => [
|
|
366
|
+
l(ie, {
|
|
367
|
+
modelValue: a(o).parentId,
|
|
368
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => a(o).parentId = r),
|
|
369
|
+
data: V.value,
|
|
370
|
+
filterable: "",
|
|
371
|
+
clearable: "",
|
|
372
|
+
"check-strictly": "",
|
|
373
|
+
"render-after-expand": !1,
|
|
374
|
+
style: ne(b.value),
|
|
375
|
+
placeholder: e.$t("sysMenu.parentRequired")
|
|
376
|
+
}, null, 8, ["modelValue", "data", "style", "placeholder"])
|
|
377
|
+
]),
|
|
378
|
+
_: 1
|
|
379
|
+
}, 8, ["label"])
|
|
380
|
+
]),
|
|
381
|
+
_: 1
|
|
382
|
+
})
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
}),
|
|
386
|
+
l(N, null, {
|
|
387
|
+
default: t(() => [
|
|
388
|
+
l(h, { span: 12 }, {
|
|
389
|
+
default: t(() => [
|
|
390
|
+
l(v, {
|
|
391
|
+
label: e.$t("sysMenu.type"),
|
|
392
|
+
prop: "resourceType"
|
|
393
|
+
}, {
|
|
394
|
+
default: t(() => [
|
|
395
|
+
l(ce, {
|
|
396
|
+
modelValue: a(o).resourceType,
|
|
397
|
+
"onUpdate:modelValue": n[2] || (n[2] = (r) => a(o).resourceType = r),
|
|
398
|
+
"dict-type": "jmash.rbac.protobuf.ResourceType"
|
|
399
|
+
}, null, 8, ["modelValue"])
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
}, 8, ["label"])
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}),
|
|
406
|
+
l(h, { span: 12 }, {
|
|
407
|
+
default: t(() => [
|
|
408
|
+
l(v, {
|
|
409
|
+
label: e.$t("sysMenu.icon"),
|
|
410
|
+
prop: "icon"
|
|
411
|
+
}, {
|
|
412
|
+
default: t(() => [
|
|
413
|
+
l(nl, {
|
|
414
|
+
modelValue: a(o).icon,
|
|
415
|
+
"onUpdate:modelValue": n[3] || (n[3] = (r) => a(o).icon = r),
|
|
416
|
+
onIconValue: G
|
|
417
|
+
}, null, 8, ["modelValue"])
|
|
418
|
+
]),
|
|
419
|
+
_: 1
|
|
420
|
+
}, 8, ["label"])
|
|
421
|
+
]),
|
|
422
|
+
_: 1
|
|
423
|
+
})
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
}),
|
|
427
|
+
l(N, null, {
|
|
428
|
+
default: t(() => [
|
|
429
|
+
l(h, { span: 12 }, {
|
|
430
|
+
default: t(() => [
|
|
431
|
+
l(v, {
|
|
432
|
+
label: e.$t("sysMenu.name"),
|
|
433
|
+
prop: "resourceName"
|
|
434
|
+
}, {
|
|
435
|
+
default: t(() => [
|
|
436
|
+
l(O, {
|
|
437
|
+
clearable: "",
|
|
438
|
+
modelValue: a(o).resourceName,
|
|
439
|
+
"onUpdate:modelValue": n[4] || (n[4] = (r) => a(o).resourceName = r),
|
|
440
|
+
placeholder: e.$t("sysMenu.nameRequired")
|
|
441
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}, 8, ["label"])
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}),
|
|
448
|
+
a(o).resourceType !== "other" ? (u(), I(h, {
|
|
449
|
+
key: 0,
|
|
450
|
+
span: 12
|
|
451
|
+
}, {
|
|
452
|
+
default: t(() => [
|
|
453
|
+
l(v, {
|
|
454
|
+
label: e.$t("sysMenu.target"),
|
|
455
|
+
prop: "target"
|
|
456
|
+
}, {
|
|
457
|
+
default: t(() => [
|
|
458
|
+
l(O, {
|
|
459
|
+
clearable: "",
|
|
460
|
+
modelValue: a(o).target,
|
|
461
|
+
"onUpdate:modelValue": n[5] || (n[5] = (r) => a(o).target = r),
|
|
462
|
+
placeholder: e.$t("sysMenu.targetRequired")
|
|
463
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
464
|
+
]),
|
|
465
|
+
_: 1
|
|
466
|
+
}, 8, ["label"])
|
|
467
|
+
]),
|
|
468
|
+
_: 1
|
|
469
|
+
})) : x("", !0)
|
|
470
|
+
]),
|
|
471
|
+
_: 1
|
|
472
|
+
}),
|
|
473
|
+
l(N, null, {
|
|
474
|
+
default: t(() => [
|
|
475
|
+
l(h, { span: 12 }, {
|
|
476
|
+
default: t(() => [
|
|
477
|
+
l(v, {
|
|
478
|
+
label: e.$t("sysMenu.routeName"),
|
|
479
|
+
prop: "resourceCode"
|
|
480
|
+
}, {
|
|
481
|
+
default: t(() => [
|
|
482
|
+
l(O, {
|
|
483
|
+
clearable: "",
|
|
484
|
+
modelValue: a(o).resourceCode,
|
|
485
|
+
"onUpdate:modelValue": n[6] || (n[6] = (r) => a(o).resourceCode = r),
|
|
486
|
+
placeholder: e.$t("sysMenu.routeNameRequired")
|
|
487
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
488
|
+
]),
|
|
489
|
+
_: 1
|
|
490
|
+
}, 8, ["label"])
|
|
491
|
+
]),
|
|
492
|
+
_: 1
|
|
493
|
+
}),
|
|
494
|
+
a(o).resourceType !== "other" ? (u(), I(h, {
|
|
495
|
+
key: 0,
|
|
496
|
+
span: 12
|
|
497
|
+
}, {
|
|
498
|
+
default: t(() => [
|
|
499
|
+
l(v, {
|
|
500
|
+
label: e.$t("sysMenu.url"),
|
|
501
|
+
prop: "url"
|
|
502
|
+
}, {
|
|
503
|
+
default: t(() => [
|
|
504
|
+
l(O, {
|
|
505
|
+
clearable: "",
|
|
506
|
+
modelValue: a(o).url,
|
|
507
|
+
"onUpdate:modelValue": n[7] || (n[7] = (r) => a(o).url = r),
|
|
508
|
+
placeholder: e.$t("sysMenu.urlRequired")
|
|
509
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
510
|
+
]),
|
|
511
|
+
_: 1
|
|
512
|
+
}, 8, ["label"])
|
|
513
|
+
]),
|
|
514
|
+
_: 1
|
|
515
|
+
})) : x("", !0)
|
|
516
|
+
]),
|
|
517
|
+
_: 1
|
|
518
|
+
}),
|
|
519
|
+
l(N, null, {
|
|
520
|
+
default: t(() => [
|
|
521
|
+
a(o).resourceType !== "other" ? (u(), I(h, {
|
|
522
|
+
key: 0,
|
|
523
|
+
span: 12
|
|
524
|
+
}, {
|
|
525
|
+
default: t(() => [
|
|
526
|
+
l(v, {
|
|
527
|
+
label: e.$t("sysMenu.status"),
|
|
528
|
+
prop: "hidden"
|
|
529
|
+
}, {
|
|
530
|
+
default: t(() => [
|
|
531
|
+
l(pe, {
|
|
532
|
+
modelValue: a(o).hidden,
|
|
533
|
+
"onUpdate:modelValue": n[8] || (n[8] = (r) => a(o).hidden = r)
|
|
534
|
+
}, {
|
|
535
|
+
default: t(() => [
|
|
536
|
+
l(X, { label: !1 }, {
|
|
537
|
+
default: t(() => [
|
|
538
|
+
k(C(e.$t("common.show")), 1)
|
|
539
|
+
]),
|
|
540
|
+
_: 1
|
|
541
|
+
}),
|
|
542
|
+
l(X, { label: !0 }, {
|
|
543
|
+
default: t(() => [
|
|
544
|
+
k(C(e.$t("common.hide")), 1)
|
|
545
|
+
]),
|
|
546
|
+
_: 1
|
|
547
|
+
})
|
|
548
|
+
]),
|
|
549
|
+
_: 1
|
|
550
|
+
}, 8, ["modelValue"])
|
|
551
|
+
]),
|
|
552
|
+
_: 1
|
|
553
|
+
}, 8, ["label"])
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
})) : x("", !0)
|
|
557
|
+
]),
|
|
558
|
+
_: 1
|
|
559
|
+
}),
|
|
560
|
+
a(o).resourceType !== "catalog" ? (u(), I(N, { key: 0 }, {
|
|
561
|
+
default: t(() => [
|
|
562
|
+
l(h, { span: 24 }, {
|
|
563
|
+
default: t(() => [
|
|
564
|
+
l(v, {
|
|
565
|
+
label: e.$t("sysMenu.operatePerm"),
|
|
566
|
+
prop: "operCodes"
|
|
567
|
+
}, {
|
|
568
|
+
default: t(() => [
|
|
569
|
+
l(Y, {
|
|
570
|
+
modelValue: f.value,
|
|
571
|
+
"onUpdate:modelValue": n[9] || (n[9] = (r) => f.value = r),
|
|
572
|
+
indeterminate: S.value,
|
|
573
|
+
onChange: z
|
|
574
|
+
}, {
|
|
575
|
+
default: t(() => [
|
|
576
|
+
k(C(e.$t("sysMenu.checkAll")) + "/" + C(e.$t("sysMenu.checkNoAll")), 1)
|
|
577
|
+
]),
|
|
578
|
+
_: 1
|
|
579
|
+
}, 8, ["modelValue", "indeterminate"]),
|
|
580
|
+
al,
|
|
581
|
+
q("div", rl, [
|
|
582
|
+
l(me, {
|
|
583
|
+
modelValue: a(o).operCodes,
|
|
584
|
+
"onUpdate:modelValue": n[10] || (n[10] = (r) => a(o).operCodes = r),
|
|
585
|
+
onChange: P
|
|
586
|
+
}, {
|
|
587
|
+
default: t(() => [
|
|
588
|
+
(u(!0), R(A, null, L(a(g), (r) => (u(), I(Y, {
|
|
589
|
+
label: r.operationCode,
|
|
590
|
+
key: r.operationId
|
|
591
|
+
}, {
|
|
592
|
+
default: t(() => [
|
|
593
|
+
k(C(r.operationName), 1)
|
|
594
|
+
]),
|
|
595
|
+
_: 2
|
|
596
|
+
}, 1032, ["label"]))), 128))
|
|
597
|
+
]),
|
|
598
|
+
_: 1
|
|
599
|
+
}, 8, ["modelValue"])
|
|
600
|
+
])
|
|
601
|
+
]),
|
|
602
|
+
_: 1
|
|
603
|
+
}, 8, ["label"])
|
|
604
|
+
]),
|
|
605
|
+
_: 1
|
|
606
|
+
})
|
|
607
|
+
]),
|
|
608
|
+
_: 1
|
|
609
|
+
})) : x("", !0)
|
|
610
|
+
]),
|
|
611
|
+
_: 1
|
|
612
|
+
}, 8, ["model", "rules"])
|
|
613
|
+
]),
|
|
614
|
+
_: 1
|
|
615
|
+
}, 8, ["title", "modelValue"]);
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
export {
|
|
620
|
+
Rl as _
|
|
621
|
+
};
|