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,287 @@
|
|
|
1
|
+
import { a as Y, d as U, aq as Z, E as F, f as ee, h as oe } from "./index-B6wY38lY.mjs";
|
|
2
|
+
import { E as le } from "./el-dialog-CSWvTJrq.mjs";
|
|
3
|
+
import { a as te, E as re } from "./el-form-item-f-baJSfe.mjs";
|
|
4
|
+
import { E as ae, a as se } from "./el-table-c9Sup56w.mjs";
|
|
5
|
+
import { E as ne, a as de } 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 me, a as ue } from "./el-select-ChOy6agQ.mjs";
|
|
12
|
+
import { defineComponent as ie, ref as m, reactive as j, toRef as pe, openBlock as f, createBlock as V, unref as r, withCtx as n, createElementVNode as ce, createVNode as s, createTextVNode as g, toDisplayString as b, createElementBlock as x, Fragment as A, renderList as B, isRef as fe } from "vue";
|
|
13
|
+
import { p as be } from "./index-VD-Tf32c.mjs";
|
|
14
|
+
import { m as he } from "./index-Dgd4Zhxz.mjs";
|
|
15
|
+
import { e as ge, a as _e } from "./index-Czh2Pqwr.mjs";
|
|
16
|
+
const ye = { class: "dialog-footer" }, xe = /* @__PURE__ */ ie({
|
|
17
|
+
__name: "edit",
|
|
18
|
+
props: {
|
|
19
|
+
formData: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => {
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
dialog: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["dialogEvent", "refresh"],
|
|
31
|
+
setup(S, { emit: T }) {
|
|
32
|
+
var R;
|
|
33
|
+
const { t: u } = Y(), v = m();
|
|
34
|
+
let l = j({
|
|
35
|
+
tenant: U().user.tenant,
|
|
36
|
+
requestId: Math.random() * 10 + "",
|
|
37
|
+
roleType: "job",
|
|
38
|
+
updateMask: "roleCode,roleName,description",
|
|
39
|
+
roleId: "",
|
|
40
|
+
roleCode: "",
|
|
41
|
+
roleName: "",
|
|
42
|
+
description: "",
|
|
43
|
+
permCodes: []
|
|
44
|
+
});
|
|
45
|
+
const M = j({
|
|
46
|
+
roleCode: [{ required: !0, validator: (e, o, t) => {
|
|
47
|
+
if (o === "")
|
|
48
|
+
t(new Error(u("sysJob.codeRequired")));
|
|
49
|
+
else {
|
|
50
|
+
const d = {
|
|
51
|
+
tenant: U().user.tenant,
|
|
52
|
+
roleCode: o,
|
|
53
|
+
addFlag: !l.roleId,
|
|
54
|
+
roleId: l.roleId
|
|
55
|
+
};
|
|
56
|
+
Z(d).then(({ data: E }) => {
|
|
57
|
+
E === !0 ? t(new Error(u("sysRole.codeExist"))) : t();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}, trigger: "blur" }],
|
|
61
|
+
roleName: [
|
|
62
|
+
{ required: !0, message: u("sysJob.nameRequired"), trigger: "blur" }
|
|
63
|
+
]
|
|
64
|
+
});
|
|
65
|
+
let k = m([]);
|
|
66
|
+
const h = m(!1), _ = m(!1), w = m();
|
|
67
|
+
let i = m([]);
|
|
68
|
+
const p = T, y = S, C = pe(y, "dialog"), O = async () => {
|
|
69
|
+
var e;
|
|
70
|
+
await ((e = v.value) == null ? void 0 : e.validate((o) => {
|
|
71
|
+
o && (l.roleId ? ge(l).then((t) => {
|
|
72
|
+
console.log(t), t.status === 200 && (F({
|
|
73
|
+
message: u("common.submitSuccess"),
|
|
74
|
+
type: "success"
|
|
75
|
+
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
76
|
+
}) : _e(l).then((t) => {
|
|
77
|
+
console.log(t), t.status === 200 && (F({
|
|
78
|
+
message: u("common.submitSuccess"),
|
|
79
|
+
type: "success"
|
|
80
|
+
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
81
|
+
}));
|
|
82
|
+
}));
|
|
83
|
+
};
|
|
84
|
+
function I() {
|
|
85
|
+
p("dialogEvent", !1);
|
|
86
|
+
}
|
|
87
|
+
function N() {
|
|
88
|
+
be(l.moduleId).then(({ data: e }) => {
|
|
89
|
+
w.value = e.results, J(e.results);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function L() {
|
|
93
|
+
he().then(({ data: e }) => {
|
|
94
|
+
k.value = e.results;
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function z(e) {
|
|
98
|
+
console.log(e), N();
|
|
99
|
+
}
|
|
100
|
+
function J(e) {
|
|
101
|
+
for (let o = 0; o < e.length; o++) {
|
|
102
|
+
for (let t = 0; t < e[o].perms.length; t++)
|
|
103
|
+
i.value.push(e[o].perms[t].permCode);
|
|
104
|
+
J(e[o].children);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function P(e) {
|
|
108
|
+
console.log(e, i.value), l.permCodes = e ? i.value : [], _.value = !1;
|
|
109
|
+
}
|
|
110
|
+
function G(e) {
|
|
111
|
+
console.log(e), l.permCodes = e, console.log(l.permCodes);
|
|
112
|
+
const o = e.length;
|
|
113
|
+
h.value = o === i.value.length, _.value = o > 0 && o < i.value.length;
|
|
114
|
+
}
|
|
115
|
+
return N(), L(), (R = y.formData) != null && R.roleId && (l = Object.assign(l, y.formData)), (e, o) => {
|
|
116
|
+
const t = ee, d = te, E = me, H = ue, q = ne, $ = ae, K = de, Q = se, W = re, D = oe, X = le;
|
|
117
|
+
return f(), V(X, {
|
|
118
|
+
title: r(C).title,
|
|
119
|
+
modelValue: r(C).visible,
|
|
120
|
+
"onUpdate:modelValue": o[6] || (o[6] = (a) => r(C).visible = a),
|
|
121
|
+
width: "800px",
|
|
122
|
+
onClose: I
|
|
123
|
+
}, {
|
|
124
|
+
footer: n(() => [
|
|
125
|
+
ce("div", ye, [
|
|
126
|
+
s(D, { onClick: I }, {
|
|
127
|
+
default: n(() => [
|
|
128
|
+
g(b(e.$t("common.cancel")), 1)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}),
|
|
132
|
+
s(D, {
|
|
133
|
+
type: "primary",
|
|
134
|
+
onClick: O
|
|
135
|
+
}, {
|
|
136
|
+
default: n(() => [
|
|
137
|
+
g(b(e.$t("common.confirm")), 1)
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
})
|
|
141
|
+
])
|
|
142
|
+
]),
|
|
143
|
+
default: n(() => [
|
|
144
|
+
s(W, {
|
|
145
|
+
ref_key: "jobFormRef",
|
|
146
|
+
ref: v,
|
|
147
|
+
model: r(l),
|
|
148
|
+
rules: r(M),
|
|
149
|
+
"label-width": "160px"
|
|
150
|
+
}, {
|
|
151
|
+
default: n(() => [
|
|
152
|
+
s(d, {
|
|
153
|
+
label: e.$t("sysJob.code"),
|
|
154
|
+
prop: "roleCode"
|
|
155
|
+
}, {
|
|
156
|
+
default: n(() => [
|
|
157
|
+
s(t, {
|
|
158
|
+
modelValue: r(l).roleCode,
|
|
159
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => r(l).roleCode = a),
|
|
160
|
+
placeholder: e.$t("sysJob.codeRequired"),
|
|
161
|
+
clearable: "",
|
|
162
|
+
maxlength: "30",
|
|
163
|
+
"show-word-limit": ""
|
|
164
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["label"]),
|
|
168
|
+
s(d, {
|
|
169
|
+
label: e.$t("sysJob.name"),
|
|
170
|
+
prop: "roleName"
|
|
171
|
+
}, {
|
|
172
|
+
default: n(() => [
|
|
173
|
+
s(t, {
|
|
174
|
+
modelValue: r(l).roleName,
|
|
175
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => r(l).roleName = a),
|
|
176
|
+
placeholder: e.$t("sysJob.nameRequired"),
|
|
177
|
+
clearable: "",
|
|
178
|
+
maxlength: "30",
|
|
179
|
+
"show-word-limit": ""
|
|
180
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["label"]),
|
|
184
|
+
s(d, {
|
|
185
|
+
label: e.$t("sysJob.operatePerm"),
|
|
186
|
+
prop: "permCodes"
|
|
187
|
+
}, {
|
|
188
|
+
default: n(() => [
|
|
189
|
+
s(H, {
|
|
190
|
+
modelValue: r(l).moduleId,
|
|
191
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => r(l).moduleId = a),
|
|
192
|
+
clearable: "",
|
|
193
|
+
placeholder: e.$t("sysJob.moduleRequired"),
|
|
194
|
+
style: { width: "100%" },
|
|
195
|
+
onChange: z
|
|
196
|
+
}, {
|
|
197
|
+
default: n(() => [
|
|
198
|
+
(f(!0), x(A, null, B(r(k), (a) => (f(), V(E, {
|
|
199
|
+
key: a.moduleId,
|
|
200
|
+
label: a.moduleName,
|
|
201
|
+
value: a.moduleId
|
|
202
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
206
|
+
s(q, {
|
|
207
|
+
modelValue: r(h),
|
|
208
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => fe(h) ? h.value = a : null),
|
|
209
|
+
indeterminate: r(_),
|
|
210
|
+
onChange: P
|
|
211
|
+
}, {
|
|
212
|
+
default: n(() => [
|
|
213
|
+
g(b(e.$t("sysJob.checkAll")) + "/" + b(e.$t("sysJob.checkNoAll")), 1)
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["modelValue", "indeterminate"]),
|
|
217
|
+
s(Q, {
|
|
218
|
+
data: r(w),
|
|
219
|
+
"row-key": "resourceId",
|
|
220
|
+
border: "",
|
|
221
|
+
"show-header": !1,
|
|
222
|
+
"tree-props": { children: "children", hasChildren: "hasChildren" }
|
|
223
|
+
}, {
|
|
224
|
+
default: n(() => [
|
|
225
|
+
s($, {
|
|
226
|
+
prop: "resourceName",
|
|
227
|
+
width: "180"
|
|
228
|
+
}),
|
|
229
|
+
s($, { prop: "resourceName" }, {
|
|
230
|
+
default: n((a) => [
|
|
231
|
+
s(K, {
|
|
232
|
+
modelValue: r(l).permCodes,
|
|
233
|
+
"onUpdate:modelValue": o[4] || (o[4] = (c) => r(l).permCodes = c),
|
|
234
|
+
onChange: G
|
|
235
|
+
}, {
|
|
236
|
+
default: n(() => [
|
|
237
|
+
(f(!0), x(A, null, B(a.row.perms, (c) => (f(), V(q, {
|
|
238
|
+
label: c.permCode,
|
|
239
|
+
key: c.permId
|
|
240
|
+
}, {
|
|
241
|
+
default: n(() => [
|
|
242
|
+
g(b(c.permName), 1)
|
|
243
|
+
]),
|
|
244
|
+
_: 2
|
|
245
|
+
}, 1032, ["label"]))), 128))
|
|
246
|
+
]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1032, ["modelValue"])
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["data"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["label"]),
|
|
258
|
+
s(d, {
|
|
259
|
+
label: e.$t("sysJob.description"),
|
|
260
|
+
prop: "description"
|
|
261
|
+
}, {
|
|
262
|
+
default: n(() => [
|
|
263
|
+
s(t, {
|
|
264
|
+
modelValue: r(l).description,
|
|
265
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => r(l).description = a),
|
|
266
|
+
type: "textarea",
|
|
267
|
+
autosize: { minRows: 2 },
|
|
268
|
+
maxlength: "200",
|
|
269
|
+
"show-word-limit": "",
|
|
270
|
+
placeholder: e.$t("sysJob.descriptionRequired"),
|
|
271
|
+
clearable: ""
|
|
272
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}, 8, ["label"])
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}, 8, ["model", "rules"])
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["title", "modelValue"]);
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
export {
|
|
286
|
+
xe as _
|
|
287
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { a as q, d as R, E as b, f as w, h as D } from "./index-B6wY38lY.mjs";
|
|
2
|
+
import { E as $ } from "./el-dialog-CSWvTJrq.mjs";
|
|
3
|
+
import { a as F, E as k } from "./el-form-item-f-baJSfe.mjs";
|
|
4
|
+
import { defineComponent as S, ref as U, reactive as E, toRef as j, openBlock as B, createBlock as M, unref as l, withCtx as a, createElementVNode as O, createVNode as s, createTextVNode as y, toDisplayString as V } from "vue";
|
|
5
|
+
import { c as A, e as T, a as x } from "./index-VD-Tf32c.mjs";
|
|
6
|
+
const z = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
|
|
7
|
+
__name: "edit",
|
|
8
|
+
props: {
|
|
9
|
+
formData: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
dialog: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: ["dialogEvent", "refresh"],
|
|
21
|
+
setup(C, { emit: h }) {
|
|
22
|
+
var g;
|
|
23
|
+
const { t: i } = q(), f = U();
|
|
24
|
+
let o = E({
|
|
25
|
+
tenant: R().user.tenant,
|
|
26
|
+
requestId: Math.random() * 10 + "",
|
|
27
|
+
permCode: "",
|
|
28
|
+
permName: "",
|
|
29
|
+
updateMask: "permCode,permName"
|
|
30
|
+
});
|
|
31
|
+
const v = E({
|
|
32
|
+
permCode: [{ required: !0, validator: (r, t, e) => {
|
|
33
|
+
t === "" ? e(new Error(i("sysPerm.codeRequired"))) : o.permId ? e() : A(t).then(({ data: n }) => {
|
|
34
|
+
n === !0 ? e(new Error("该编码已存在")) : e();
|
|
35
|
+
});
|
|
36
|
+
}, trigger: "blur" }],
|
|
37
|
+
permName: [
|
|
38
|
+
{ required: !0, message: i("sysPerm.nameRequired"), trigger: "blur" }
|
|
39
|
+
]
|
|
40
|
+
}), u = C, p = j(u, "dialog"), m = h, N = async () => {
|
|
41
|
+
var r;
|
|
42
|
+
await ((r = f.value) == null ? void 0 : r.validate((t) => {
|
|
43
|
+
t && (o.permId ? T(o).then((e) => {
|
|
44
|
+
console.log(e), e.status === 200 && (b({
|
|
45
|
+
message: i("common.submitSuccess"),
|
|
46
|
+
type: "success"
|
|
47
|
+
}), m("dialogEvent", !1), m("refresh", e.status === 200));
|
|
48
|
+
}) : x(o).then((e) => {
|
|
49
|
+
console.log(e), e.status === 200 && (b({
|
|
50
|
+
message: i("common.submitSuccess"),
|
|
51
|
+
type: "success"
|
|
52
|
+
}), m("dialogEvent", !1), m("refresh", e.status === 200));
|
|
53
|
+
}));
|
|
54
|
+
}));
|
|
55
|
+
};
|
|
56
|
+
function c() {
|
|
57
|
+
m("dialogEvent", !1);
|
|
58
|
+
}
|
|
59
|
+
return (g = u.formData) != null && g.permId && (o = Object.assign(o, u.formData)), (r, t) => {
|
|
60
|
+
const e = w, n = F, P = k, _ = D, I = $;
|
|
61
|
+
return B(), M(I, {
|
|
62
|
+
modelValue: l(p).visible,
|
|
63
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => l(p).visible = d),
|
|
64
|
+
title: l(p).title,
|
|
65
|
+
width: "600px",
|
|
66
|
+
onClose: c
|
|
67
|
+
}, {
|
|
68
|
+
footer: a(() => [
|
|
69
|
+
O("div", z, [
|
|
70
|
+
s(_, { onClick: c }, {
|
|
71
|
+
default: a(() => [
|
|
72
|
+
y(V(r.$t("common.cancel")), 1)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
s(_, {
|
|
77
|
+
type: "primary",
|
|
78
|
+
onClick: N
|
|
79
|
+
}, {
|
|
80
|
+
default: a(() => [
|
|
81
|
+
y(V(r.$t("common.confirm")), 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})
|
|
85
|
+
])
|
|
86
|
+
]),
|
|
87
|
+
default: a(() => [
|
|
88
|
+
s(P, {
|
|
89
|
+
ref_key: "permissionFormRef",
|
|
90
|
+
ref: f,
|
|
91
|
+
model: l(o),
|
|
92
|
+
"label-width": "160px",
|
|
93
|
+
rules: l(v)
|
|
94
|
+
}, {
|
|
95
|
+
default: a(() => [
|
|
96
|
+
s(n, {
|
|
97
|
+
label: r.$t("sysPerm.code"),
|
|
98
|
+
prop: "permCode"
|
|
99
|
+
}, {
|
|
100
|
+
default: a(() => [
|
|
101
|
+
s(e, {
|
|
102
|
+
modelValue: l(o).permCode,
|
|
103
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => l(o).permCode = d),
|
|
104
|
+
placeholder: r.$t("sysPerm.codeRequired"),
|
|
105
|
+
disabled: !!l(o).permId,
|
|
106
|
+
clearable: ""
|
|
107
|
+
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["label"]),
|
|
111
|
+
s(n, {
|
|
112
|
+
label: r.$t("sysPerm.name"),
|
|
113
|
+
prop: "permName"
|
|
114
|
+
}, {
|
|
115
|
+
default: a(() => [
|
|
116
|
+
s(e, {
|
|
117
|
+
modelValue: l(o).permName,
|
|
118
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => l(o).permName = d),
|
|
119
|
+
placeholder: r.$t("sysPerm.nameRequired"),
|
|
120
|
+
clearable: ""
|
|
121
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["label"])
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["model", "rules"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["modelValue", "title"]);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
W as _
|
|
136
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as f, openBlock as a, createElementBlock as t, normalizeClass as s, unref as r, renderSlot as l, createTextVNode as d, toDisplayString as n, createCommentVNode as i, createElementVNode as p, normalizeStyle as y } from "vue";
|
|
2
|
+
import { m as u, n as m, x as c, _ as h, L as v } from "./index-B6wY38lY.mjs";
|
|
3
|
+
const S = u({
|
|
4
|
+
header: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: ""
|
|
7
|
+
},
|
|
8
|
+
footer: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
bodyStyle: {
|
|
13
|
+
type: m([String, Object, Array]),
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
bodyClass: String,
|
|
17
|
+
shadow: {
|
|
18
|
+
type: String,
|
|
19
|
+
values: ["always", "hover", "never"],
|
|
20
|
+
default: "always"
|
|
21
|
+
}
|
|
22
|
+
}), b = f({
|
|
23
|
+
name: "ElCard"
|
|
24
|
+
}), C = /* @__PURE__ */ f({
|
|
25
|
+
...b,
|
|
26
|
+
props: S,
|
|
27
|
+
setup(w) {
|
|
28
|
+
const o = c("card");
|
|
29
|
+
return (e, $) => (a(), t("div", {
|
|
30
|
+
class: s([r(o).b(), r(o).is(`${e.shadow}-shadow`)])
|
|
31
|
+
}, [
|
|
32
|
+
e.$slots.header || e.header ? (a(), t("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: s(r(o).e("header"))
|
|
35
|
+
}, [
|
|
36
|
+
l(e.$slots, "header", {}, () => [
|
|
37
|
+
d(n(e.header), 1)
|
|
38
|
+
])
|
|
39
|
+
], 2)) : i("v-if", !0),
|
|
40
|
+
p("div", {
|
|
41
|
+
class: s([r(o).e("body"), e.bodyClass]),
|
|
42
|
+
style: y(e.bodyStyle)
|
|
43
|
+
}, [
|
|
44
|
+
l(e.$slots, "default")
|
|
45
|
+
], 6),
|
|
46
|
+
e.$slots.footer || e.footer ? (a(), t("div", {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: s(r(o).e("footer"))
|
|
49
|
+
}, [
|
|
50
|
+
l(e.$slots, "footer", {}, () => [
|
|
51
|
+
d(n(e.footer), 1)
|
|
52
|
+
])
|
|
53
|
+
], 2)) : i("v-if", !0)
|
|
54
|
+
], 2));
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
var g = /* @__PURE__ */ h(C, [["__file", "card.vue"]]);
|
|
58
|
+
const N = v(g);
|
|
59
|
+
export {
|
|
60
|
+
N as E
|
|
61
|
+
};
|