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,160 @@
|
|
|
1
|
+
import { _ as C, m, n as t, Y as S, J as o } from "./index-B6wY38lY.mjs";
|
|
2
|
+
import { b, u as _ } from "./el-popper-C13p_dqu.mjs";
|
|
3
|
+
import { defineComponent as T, renderSlot as O, ref as E, provide as I, inject as L, onMounted as $, unref as f, onBeforeUnmount as M } from "vue";
|
|
4
|
+
const h = /* @__PURE__ */ T({
|
|
5
|
+
inheritAttrs: !1
|
|
6
|
+
});
|
|
7
|
+
function w(n, l, i, r, c, d) {
|
|
8
|
+
return O(n.$slots, "default");
|
|
9
|
+
}
|
|
10
|
+
var P = /* @__PURE__ */ C(h, [["render", w], ["__file", "collection.vue"]]);
|
|
11
|
+
const v = /* @__PURE__ */ T({
|
|
12
|
+
name: "ElCollectionItem",
|
|
13
|
+
inheritAttrs: !1
|
|
14
|
+
});
|
|
15
|
+
function A(n, l, i, r, c, d) {
|
|
16
|
+
return O(n.$slots, "default");
|
|
17
|
+
}
|
|
18
|
+
var B = /* @__PURE__ */ C(v, [["render", A], ["__file", "collection-item.vue"]]);
|
|
19
|
+
const K = "data-el-collection-item", Y = (n) => {
|
|
20
|
+
const l = `El${n}Collection`, i = `${l}Item`, r = Symbol(l), c = Symbol(i), d = {
|
|
21
|
+
...P,
|
|
22
|
+
name: l,
|
|
23
|
+
setup() {
|
|
24
|
+
const u = E(null), a = /* @__PURE__ */ new Map();
|
|
25
|
+
I(r, {
|
|
26
|
+
itemMap: a,
|
|
27
|
+
getItems: () => {
|
|
28
|
+
const s = f(u);
|
|
29
|
+
if (!s)
|
|
30
|
+
return [];
|
|
31
|
+
const e = Array.from(s.querySelectorAll(`[${K}]`));
|
|
32
|
+
return [...a.values()].sort((N, g) => e.indexOf(N.ref) - e.indexOf(g.ref));
|
|
33
|
+
},
|
|
34
|
+
collectionRef: u
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}, y = {
|
|
38
|
+
...B,
|
|
39
|
+
name: i,
|
|
40
|
+
setup(u, { attrs: a }) {
|
|
41
|
+
const p = E(null), s = L(r, void 0);
|
|
42
|
+
I(c, {
|
|
43
|
+
collectionItemRef: p
|
|
44
|
+
}), $(() => {
|
|
45
|
+
const e = f(p);
|
|
46
|
+
e && s.itemMap.set(e, {
|
|
47
|
+
ref: e,
|
|
48
|
+
...a
|
|
49
|
+
});
|
|
50
|
+
}), M(() => {
|
|
51
|
+
const e = f(p);
|
|
52
|
+
s.itemMap.delete(e);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
COLLECTION_INJECTION_KEY: r,
|
|
58
|
+
COLLECTION_ITEM_INJECTION_KEY: c,
|
|
59
|
+
ElCollection: d,
|
|
60
|
+
ElCollectionItem: y
|
|
61
|
+
};
|
|
62
|
+
}, U = m({
|
|
63
|
+
trigger: b.trigger,
|
|
64
|
+
effect: {
|
|
65
|
+
..._.effect,
|
|
66
|
+
default: "light"
|
|
67
|
+
},
|
|
68
|
+
type: {
|
|
69
|
+
type: t(String)
|
|
70
|
+
},
|
|
71
|
+
placement: {
|
|
72
|
+
type: t(String),
|
|
73
|
+
default: "bottom"
|
|
74
|
+
},
|
|
75
|
+
popperOptions: {
|
|
76
|
+
type: t(Object),
|
|
77
|
+
default: () => ({})
|
|
78
|
+
},
|
|
79
|
+
id: String,
|
|
80
|
+
size: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: ""
|
|
83
|
+
},
|
|
84
|
+
splitButton: Boolean,
|
|
85
|
+
hideOnClick: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: !0
|
|
88
|
+
},
|
|
89
|
+
loop: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !0
|
|
92
|
+
},
|
|
93
|
+
showTimeout: {
|
|
94
|
+
type: Number,
|
|
95
|
+
default: 150
|
|
96
|
+
},
|
|
97
|
+
hideTimeout: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 150
|
|
100
|
+
},
|
|
101
|
+
tabindex: {
|
|
102
|
+
type: t([Number, String]),
|
|
103
|
+
default: 0
|
|
104
|
+
},
|
|
105
|
+
maxHeight: {
|
|
106
|
+
type: t([Number, String]),
|
|
107
|
+
default: ""
|
|
108
|
+
},
|
|
109
|
+
popperClass: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: ""
|
|
112
|
+
},
|
|
113
|
+
disabled: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: !1
|
|
116
|
+
},
|
|
117
|
+
role: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "menu"
|
|
120
|
+
},
|
|
121
|
+
buttonProps: {
|
|
122
|
+
type: t(Object)
|
|
123
|
+
},
|
|
124
|
+
teleported: _.teleported
|
|
125
|
+
}), V = m({
|
|
126
|
+
command: {
|
|
127
|
+
type: [Object, String, Number],
|
|
128
|
+
default: () => ({})
|
|
129
|
+
},
|
|
130
|
+
disabled: Boolean,
|
|
131
|
+
divided: Boolean,
|
|
132
|
+
textValue: String,
|
|
133
|
+
icon: {
|
|
134
|
+
type: S
|
|
135
|
+
}
|
|
136
|
+
}), k = m({
|
|
137
|
+
onKeydown: { type: t(Function) }
|
|
138
|
+
}), x = [
|
|
139
|
+
o.down,
|
|
140
|
+
o.pageDown,
|
|
141
|
+
o.home
|
|
142
|
+
], j = [o.up, o.pageUp, o.end], q = [...x, ...j], {
|
|
143
|
+
ElCollection: z,
|
|
144
|
+
ElCollectionItem: G,
|
|
145
|
+
COLLECTION_INJECTION_KEY: H,
|
|
146
|
+
COLLECTION_ITEM_INJECTION_KEY: W
|
|
147
|
+
} = Y("Dropdown");
|
|
148
|
+
export {
|
|
149
|
+
W as C,
|
|
150
|
+
z as E,
|
|
151
|
+
q as F,
|
|
152
|
+
j as L,
|
|
153
|
+
V as a,
|
|
154
|
+
K as b,
|
|
155
|
+
Y as c,
|
|
156
|
+
U as d,
|
|
157
|
+
G as e,
|
|
158
|
+
k as f,
|
|
159
|
+
H as g
|
|
160
|
+
};
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import { a as ie, d as O, aq as ce, aY as fe, ap as ye, aZ as _e, E as L, a_ as he, f as be, z as Re, h as ge } from "./index-B6wY38lY.mjs";
|
|
2
|
+
import { E as Ce } from "./el-dialog-CSWvTJrq.mjs";
|
|
3
|
+
import { a as Ve, E as ve } from "./el-form-item-f-baJSfe.mjs";
|
|
4
|
+
import { E as Ee, a as Ie } from "./el-table-c9Sup56w.mjs";
|
|
5
|
+
import { E as De, a as ke } from "./el-checkbox-B44P9jFr.mjs";
|
|
6
|
+
import "./el-tooltip-l0sNRNKZ.mjs";
|
|
7
|
+
import "./el-popper-C13p_dqu.mjs";
|
|
8
|
+
import "./el-scrollbar-B8QteGV0.mjs";
|
|
9
|
+
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
10
|
+
import "./el-tag-l0sNRNKZ.mjs";
|
|
11
|
+
import { E as we, a as $e } from "./el-select-ChOy6agQ.mjs";
|
|
12
|
+
import "./el-icon-l0sNRNKZ.mjs";
|
|
13
|
+
import { _ as qe } from "./index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs";
|
|
14
|
+
import { E as Ne } from "./el-tree-select-CKOwMXR7.mjs";
|
|
15
|
+
import { E as Te, a as Ue } from "./el-col-BY0nB6k3.mjs";
|
|
16
|
+
import { defineComponent as Fe, ref as i, reactive as G, toRef as Me, resolveComponent as Y, openBlock as p, createBlock as h, withCtx as a, createElementVNode as D, createVNode as t, createTextVNode as C, toDisplayString as b, unref as n, createElementBlock as k, Fragment as w, renderList as $, createCommentVNode as Ae } from "vue";
|
|
17
|
+
import { m as Se } from "./index-Dgd4Zhxz.mjs";
|
|
18
|
+
import { p as ze } from "./index-VD-Tf32c.mjs";
|
|
19
|
+
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
20
|
+
const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { class: "dialog-footer" }, Le = /* @__PURE__ */ Fe({
|
|
21
|
+
__name: "edit",
|
|
22
|
+
props: {
|
|
23
|
+
formData: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: () => {
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
dialog: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: () => {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["dialogEvent", "refresh"],
|
|
35
|
+
setup(Z, { emit: H }) {
|
|
36
|
+
var A;
|
|
37
|
+
const { t: c } = ie(), q = i();
|
|
38
|
+
let N = i([]);
|
|
39
|
+
const V = i(), T = i(), v = i(!1), E = i(!1);
|
|
40
|
+
let f = i([]), l = G({
|
|
41
|
+
tenant: O().user.tenant,
|
|
42
|
+
requestId: Math.random() * 10 + "",
|
|
43
|
+
roleType: "role",
|
|
44
|
+
updateMask: "roleCode,roleName,parentId,description",
|
|
45
|
+
roleCode: "",
|
|
46
|
+
roleName: "",
|
|
47
|
+
parentId: "",
|
|
48
|
+
description: "",
|
|
49
|
+
permCodes: [],
|
|
50
|
+
roleDuty: [
|
|
51
|
+
{
|
|
52
|
+
roleId: "",
|
|
53
|
+
dutyType: ""
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
const J = G({
|
|
58
|
+
roleCode: [{ required: !0, validator: (e, o, s) => {
|
|
59
|
+
if (o === "")
|
|
60
|
+
s(new Error(c("sysRole.codeRequired")));
|
|
61
|
+
else {
|
|
62
|
+
const m = {
|
|
63
|
+
tenant: O().user.tenant,
|
|
64
|
+
roleCode: o,
|
|
65
|
+
addFlag: !l.roleId,
|
|
66
|
+
roleId: l.roleId
|
|
67
|
+
};
|
|
68
|
+
ce(m).then(({ data: u }) => {
|
|
69
|
+
u === !0 ? s(new Error(c("sysRole.codeExist"))) : s();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}, trigger: "blur" }],
|
|
73
|
+
roleName: [
|
|
74
|
+
{ required: !0, message: c("sysRole.nameRequired"), trigger: "blur" }
|
|
75
|
+
]
|
|
76
|
+
}), y = H, R = Z, I = Me(R, "dialog");
|
|
77
|
+
function K() {
|
|
78
|
+
var e;
|
|
79
|
+
fe((e = R.formData) == null ? void 0 : e.roleId).then(({ data: o }) => {
|
|
80
|
+
V.value = o.results;
|
|
81
|
+
}), Se().then(({ data: o }) => {
|
|
82
|
+
N.value = o.results;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function Q(e) {
|
|
86
|
+
ye(e).then(({ data: o }) => {
|
|
87
|
+
console.log(o), l.permCodes = o.permCodes;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function W() {
|
|
91
|
+
U();
|
|
92
|
+
}
|
|
93
|
+
function U() {
|
|
94
|
+
ze(l.moduleId).then(({ data: e }) => {
|
|
95
|
+
T.value = e.results, F(e.results);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function X() {
|
|
99
|
+
var e;
|
|
100
|
+
l.roleDuty && l.roleDuty.length < 5 && ((e = l.roleDuty) == null || e.push({
|
|
101
|
+
roleId: "",
|
|
102
|
+
dutyType: ""
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
function x(e) {
|
|
106
|
+
var o;
|
|
107
|
+
(o = l.roleDuty) == null || o.splice(e, 1);
|
|
108
|
+
}
|
|
109
|
+
function F(e) {
|
|
110
|
+
for (let o = 0; o < e.length; o++) {
|
|
111
|
+
for (let s = 0; s < e[o].perms.length; s++)
|
|
112
|
+
f.value.push(e[o].perms[s].permCode);
|
|
113
|
+
F(e[o].children);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function ee(e) {
|
|
117
|
+
console.log(e, f.value), l.permCodes = e ? f.value : [], E.value = !1;
|
|
118
|
+
}
|
|
119
|
+
function le(e) {
|
|
120
|
+
console.log(e), l.permCodes = e, console.log(l.permCodes);
|
|
121
|
+
const o = e.length;
|
|
122
|
+
v.value = o === f.length, E.value = o > 0 && o < f.length;
|
|
123
|
+
}
|
|
124
|
+
const oe = async () => {
|
|
125
|
+
var e;
|
|
126
|
+
await ((e = q.value) == null ? void 0 : e.validate((o) => {
|
|
127
|
+
o && (l.roleId ? _e(l).then((s) => {
|
|
128
|
+
console.log(s), s.status === 200 && (L({
|
|
129
|
+
message: c("common.submitSuccess"),
|
|
130
|
+
type: "success"
|
|
131
|
+
}), y("dialogEvent", !1), y("refresh", s.status === 200));
|
|
132
|
+
}) : he(l).then((s) => {
|
|
133
|
+
console.log(s), s.status === 200 && (L({
|
|
134
|
+
message: c("common.submitSuccess"),
|
|
135
|
+
type: "success"
|
|
136
|
+
}), y("dialogEvent", !1), y("refresh", s.status === 200));
|
|
137
|
+
}));
|
|
138
|
+
}));
|
|
139
|
+
};
|
|
140
|
+
function M() {
|
|
141
|
+
y("dialogEvent", !1);
|
|
142
|
+
}
|
|
143
|
+
return (A = R.formData) != null && A.roleId && (l = Object.assign(l, R.formData), l.roleDuty = l.roleDutyModel && l.roleDutyModel.length > 0 ? l.roleDutyModel : l.roleDuty = [
|
|
144
|
+
{
|
|
145
|
+
roleId: "",
|
|
146
|
+
dutyType: ""
|
|
147
|
+
}
|
|
148
|
+
], l.parentId === "00000000-0000-0000-0000-000000000000" && (l.parentId = "")), K(), U(), (e, o) => {
|
|
149
|
+
const s = be, m = Ve, u = Te, _ = Ue, S = Ne, te = qe, ae = Y("Remove"), z = Re, re = Y("CirclePlus"), se = we, ne = $e, B = De, P = Ee, de = ke, ue = Ie, me = ve, j = ge, pe = Ce;
|
|
150
|
+
return p(), h(pe, {
|
|
151
|
+
modelValue: I.value.visible,
|
|
152
|
+
"onUpdate:modelValue": o[7] || (o[7] = (r) => I.value.visible = r),
|
|
153
|
+
title: I.value.title,
|
|
154
|
+
width: "1000px",
|
|
155
|
+
onClose: M
|
|
156
|
+
}, {
|
|
157
|
+
footer: a(() => [
|
|
158
|
+
D("div", Oe, [
|
|
159
|
+
t(j, { onClick: M }, {
|
|
160
|
+
default: a(() => [
|
|
161
|
+
C(b(e.$t("common.cancel")), 1)
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}),
|
|
165
|
+
t(j, {
|
|
166
|
+
type: "primary",
|
|
167
|
+
onClick: oe
|
|
168
|
+
}, {
|
|
169
|
+
default: a(() => [
|
|
170
|
+
C(b(e.$t("common.confirm")), 1)
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
])
|
|
175
|
+
]),
|
|
176
|
+
default: a(() => [
|
|
177
|
+
t(me, {
|
|
178
|
+
ref_key: "roleFormRef",
|
|
179
|
+
ref: q,
|
|
180
|
+
model: n(l),
|
|
181
|
+
rules: J,
|
|
182
|
+
"label-width": "170"
|
|
183
|
+
}, {
|
|
184
|
+
default: a(() => [
|
|
185
|
+
t(_, null, {
|
|
186
|
+
default: a(() => [
|
|
187
|
+
t(u, { span: 12 }, {
|
|
188
|
+
default: a(() => [
|
|
189
|
+
t(m, {
|
|
190
|
+
label: e.$t("sysRole.code"),
|
|
191
|
+
prop: "roleCode"
|
|
192
|
+
}, {
|
|
193
|
+
default: a(() => [
|
|
194
|
+
t(s, {
|
|
195
|
+
modelValue: n(l).roleCode,
|
|
196
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => n(l).roleCode = r),
|
|
197
|
+
maxlength: "30",
|
|
198
|
+
"show-word-limit": "",
|
|
199
|
+
clearable: "",
|
|
200
|
+
placeholder: e.$t("sysRole.codeRequired")
|
|
201
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["label"])
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}),
|
|
208
|
+
t(u, { span: 12 }, {
|
|
209
|
+
default: a(() => [
|
|
210
|
+
t(m, {
|
|
211
|
+
label: e.$t("sysRole.name"),
|
|
212
|
+
prop: "roleName"
|
|
213
|
+
}, {
|
|
214
|
+
default: a(() => [
|
|
215
|
+
t(s, {
|
|
216
|
+
modelValue: n(l).roleName,
|
|
217
|
+
"onUpdate:modelValue": o[1] || (o[1] = (r) => n(l).roleName = r),
|
|
218
|
+
clearable: "",
|
|
219
|
+
maxlength: "30",
|
|
220
|
+
"show-word-limit": "",
|
|
221
|
+
placeholder: e.$t("sysRole.nameRequired")
|
|
222
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["label"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}),
|
|
232
|
+
t(_, null, {
|
|
233
|
+
default: a(() => [
|
|
234
|
+
t(u, { span: 24 }, {
|
|
235
|
+
default: a(() => [
|
|
236
|
+
t(m, {
|
|
237
|
+
label: e.$t("sysRole.parent"),
|
|
238
|
+
prop: "parentId"
|
|
239
|
+
}, {
|
|
240
|
+
default: a(() => [
|
|
241
|
+
t(S, {
|
|
242
|
+
modelValue: n(l).parentId,
|
|
243
|
+
"onUpdate:modelValue": o[2] || (o[2] = (r) => n(l).parentId = r),
|
|
244
|
+
data: V.value,
|
|
245
|
+
"render-after-expand": !1,
|
|
246
|
+
filterable: "",
|
|
247
|
+
clearable: "",
|
|
248
|
+
"check-strictly": "",
|
|
249
|
+
style: { width: "100%" },
|
|
250
|
+
placeholder: e.$t("sysRole.parentRequired"),
|
|
251
|
+
onChange: Q
|
|
252
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["label"])
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
})
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}),
|
|
262
|
+
D("div", Pe, [
|
|
263
|
+
(p(!0), k(w, null, $(n(l).roleDuty, (r, d) => (p(), h(_, {
|
|
264
|
+
key: d,
|
|
265
|
+
style: { width: "100%" }
|
|
266
|
+
}, {
|
|
267
|
+
default: a(() => [
|
|
268
|
+
t(u, { span: 12 }, {
|
|
269
|
+
default: a(() => [
|
|
270
|
+
t(m, {
|
|
271
|
+
label: e.$t("sysRole.mutualType"),
|
|
272
|
+
prop: `roleDuty.${d}.dutyType`
|
|
273
|
+
}, {
|
|
274
|
+
default: a(() => [
|
|
275
|
+
t(te, {
|
|
276
|
+
modelValue: n(l).roleDuty[d].dutyType,
|
|
277
|
+
"onUpdate:modelValue": (g) => n(l).roleDuty[d].dutyType = g,
|
|
278
|
+
clearable: !0,
|
|
279
|
+
placeholder: e.$t("sysRole.mutualTypeRequired"),
|
|
280
|
+
"dict-type": "jmash.rbac.protobuf.DutyType"
|
|
281
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
282
|
+
]),
|
|
283
|
+
_: 2
|
|
284
|
+
}, 1032, ["label", "prop"])
|
|
285
|
+
]),
|
|
286
|
+
_: 2
|
|
287
|
+
}, 1024),
|
|
288
|
+
t(u, { span: 11 }, {
|
|
289
|
+
default: a(() => [
|
|
290
|
+
t(m, {
|
|
291
|
+
label: e.$t("sysRole.mutualRole"),
|
|
292
|
+
prop: `roleDuty.${d}.roleId`
|
|
293
|
+
}, {
|
|
294
|
+
default: a(() => [
|
|
295
|
+
t(S, {
|
|
296
|
+
modelValue: n(l).roleDuty[d].roleId,
|
|
297
|
+
"onUpdate:modelValue": (g) => n(l).roleDuty[d].roleId = g,
|
|
298
|
+
data: V.value,
|
|
299
|
+
filterable: "",
|
|
300
|
+
clearable: "",
|
|
301
|
+
"check-strictly": "",
|
|
302
|
+
"render-after-expand": !1,
|
|
303
|
+
style: { width: "100%" },
|
|
304
|
+
placeholder: e.$t("sysRole.mutualRoleRequired")
|
|
305
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
306
|
+
]),
|
|
307
|
+
_: 2
|
|
308
|
+
}, 1032, ["label", "prop"])
|
|
309
|
+
]),
|
|
310
|
+
_: 2
|
|
311
|
+
}, 1024),
|
|
312
|
+
d !== 0 ? (p(), h(u, {
|
|
313
|
+
key: 0,
|
|
314
|
+
span: 1,
|
|
315
|
+
class: "position-center"
|
|
316
|
+
}, {
|
|
317
|
+
default: a(() => [
|
|
318
|
+
t(z, {
|
|
319
|
+
size: "16",
|
|
320
|
+
onClick: (g) => x(d)
|
|
321
|
+
}, {
|
|
322
|
+
default: a(() => [
|
|
323
|
+
t(ae)
|
|
324
|
+
]),
|
|
325
|
+
_: 2
|
|
326
|
+
}, 1032, ["onClick"])
|
|
327
|
+
]),
|
|
328
|
+
_: 2
|
|
329
|
+
}, 1024)) : Ae("", !0)
|
|
330
|
+
]),
|
|
331
|
+
_: 2
|
|
332
|
+
}, 1024))), 128)),
|
|
333
|
+
D("div", je, [
|
|
334
|
+
t(z, {
|
|
335
|
+
size: "16",
|
|
336
|
+
onClick: X
|
|
337
|
+
}, {
|
|
338
|
+
default: a(() => [
|
|
339
|
+
t(re)
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
})
|
|
343
|
+
])
|
|
344
|
+
]),
|
|
345
|
+
t(_, null, {
|
|
346
|
+
default: a(() => [
|
|
347
|
+
t(u, { span: 24 }, {
|
|
348
|
+
default: a(() => [
|
|
349
|
+
t(m, {
|
|
350
|
+
label: e.$t("sysRole.operatePerm"),
|
|
351
|
+
prop: "permCodes"
|
|
352
|
+
}, {
|
|
353
|
+
default: a(() => [
|
|
354
|
+
t(ne, {
|
|
355
|
+
modelValue: n(l).moduleId,
|
|
356
|
+
"onUpdate:modelValue": o[3] || (o[3] = (r) => n(l).moduleId = r),
|
|
357
|
+
placeholder: e.$t("sysRole.moduleRequired"),
|
|
358
|
+
clearable: "",
|
|
359
|
+
style: { width: "100%" },
|
|
360
|
+
onChange: W
|
|
361
|
+
}, {
|
|
362
|
+
default: a(() => [
|
|
363
|
+
(p(!0), k(w, null, $(n(N), (r) => (p(), h(se, {
|
|
364
|
+
key: r.moduleId,
|
|
365
|
+
label: r.moduleName,
|
|
366
|
+
value: r.moduleId
|
|
367
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
371
|
+
t(B, {
|
|
372
|
+
modelValue: v.value,
|
|
373
|
+
"onUpdate:modelValue": o[4] || (o[4] = (r) => v.value = r),
|
|
374
|
+
indeterminate: E.value,
|
|
375
|
+
onChange: ee
|
|
376
|
+
}, {
|
|
377
|
+
default: a(() => [
|
|
378
|
+
C(b(e.$t("sysRole.checkAll")) + "/" + b(e.$t("sysRole.checkNoAll")), 1)
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["modelValue", "indeterminate"]),
|
|
382
|
+
t(ue, {
|
|
383
|
+
data: T.value,
|
|
384
|
+
"row-key": "resourceId",
|
|
385
|
+
border: "",
|
|
386
|
+
"show-header": !1,
|
|
387
|
+
"tree-props": { children: "children", hasChildren: "hasChildren" }
|
|
388
|
+
}, {
|
|
389
|
+
default: a(() => [
|
|
390
|
+
t(P, {
|
|
391
|
+
prop: "resourceName",
|
|
392
|
+
width: "230"
|
|
393
|
+
}),
|
|
394
|
+
t(P, null, {
|
|
395
|
+
default: a((r) => [
|
|
396
|
+
t(de, {
|
|
397
|
+
modelValue: n(l).permCodes,
|
|
398
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => n(l).permCodes = d),
|
|
399
|
+
onChange: le
|
|
400
|
+
}, {
|
|
401
|
+
default: a(() => [
|
|
402
|
+
(p(!0), k(w, null, $(r.row.perms, (d) => (p(), h(B, {
|
|
403
|
+
label: d.permCode,
|
|
404
|
+
key: d.permId
|
|
405
|
+
}, {
|
|
406
|
+
default: a(() => [
|
|
407
|
+
C(b(d.permName), 1)
|
|
408
|
+
]),
|
|
409
|
+
_: 2
|
|
410
|
+
}, 1032, ["label"]))), 128))
|
|
411
|
+
]),
|
|
412
|
+
_: 2
|
|
413
|
+
}, 1032, ["modelValue"])
|
|
414
|
+
]),
|
|
415
|
+
_: 1
|
|
416
|
+
})
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
}, 8, ["data"])
|
|
420
|
+
]),
|
|
421
|
+
_: 1
|
|
422
|
+
}, 8, ["label"])
|
|
423
|
+
]),
|
|
424
|
+
_: 1
|
|
425
|
+
})
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
}),
|
|
429
|
+
t(_, null, {
|
|
430
|
+
default: a(() => [
|
|
431
|
+
t(u, { span: 24 }, {
|
|
432
|
+
default: a(() => [
|
|
433
|
+
t(m, {
|
|
434
|
+
label: e.$t("sysRole.description"),
|
|
435
|
+
prop: "description"
|
|
436
|
+
}, {
|
|
437
|
+
default: a(() => [
|
|
438
|
+
t(s, {
|
|
439
|
+
modelValue: n(l).description,
|
|
440
|
+
"onUpdate:modelValue": o[6] || (o[6] = (r) => n(l).description = r),
|
|
441
|
+
type: "textarea",
|
|
442
|
+
autosize: { minRows: 2 },
|
|
443
|
+
maxlength: "200",
|
|
444
|
+
"show-word-limit": "",
|
|
445
|
+
placeholder: e.$t("sysRole.descriptionRequired"),
|
|
446
|
+
clearable: ""
|
|
447
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
448
|
+
]),
|
|
449
|
+
_: 1
|
|
450
|
+
}, 8, ["label"])
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
})
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
})
|
|
457
|
+
]),
|
|
458
|
+
_: 1
|
|
459
|
+
}, 8, ["model", "rules"])
|
|
460
|
+
]),
|
|
461
|
+
_: 1
|
|
462
|
+
}, 8, ["modelValue", "title"]);
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
}), ml = /* @__PURE__ */ Be(Le, [["__scopeId", "data-v-8ff1839c"]]);
|
|
466
|
+
export {
|
|
467
|
+
ml as default
|
|
468
|
+
};
|