jmash-core 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/401-LzXAVxnC.mjs +101 -0
- package/dist/404-BaS1xZmV.mjs +37 -0
- package/dist/{BarChart-CbBhpMpZ.mjs → BarChart-ClnlJEhi.mjs} +41 -41
- package/dist/{FileSaver.min-CivbhzMe.mjs → FileSaver.min-C7ddeQoo.mjs} +1 -1
- package/dist/{FunnelChart-Czy2TVI1.mjs → FunnelChart-CcCVox9E.mjs} +16 -15
- package/dist/{PieChart-B8Tay-HH.mjs → PieChart-BHM8amLk.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CH5ME8e4.mjs → PieChart.vue_vue_type_script_setup_true_lang-BaJNQr7Z.mjs} +25 -24
- package/dist/{RadarChart-BzUQwTnX.mjs → RadarChart-ChaevZtZ.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DC-Ww3Mu.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DF4axEB-.mjs} +27 -26
- package/dist/{edit-DaxU7bBz.mjs → edit-5MpAgj0J.mjs} +1 -1
- package/dist/{edit-C0aHXOi3.mjs → edit-Bz0L-kJZ.mjs} +1 -1
- package/dist/{edit-B95ajyfH.mjs → edit-ClmR7gql.mjs} +1 -1
- package/dist/{edit-BJAAEDVd.mjs → edit-D2udSsbu.mjs} +1 -1
- package/dist/edit-DXSp7oE2.mjs +4 -0
- package/dist/{edit-CR7ZiKuo.mjs → edit-FahW6Usp.mjs} +51 -51
- package/dist/{edit-5ZpeysVY.mjs → edit-oUUjQ6s5.mjs} +47 -47
- package/dist/edit-zLDTi0zt.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-0Q5XHHkN.mjs → edit.vue_vue_type_script_setup_true_lang-BFSwE0WY.mjs} +24 -24
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DqqWi384.mjs → edit.vue_vue_type_script_setup_true_lang-BRk4mulZ.mjs} +22 -22
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CCq_E2KT.mjs → edit.vue_vue_type_script_setup_true_lang-BpmgWV6c.mjs} +14 -14
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C-BRxRH6.mjs → edit.vue_vue_type_script_setup_true_lang-C5DH8_ra.mjs} +30 -30
- package/dist/edit.vue_vue_type_script_setup_true_lang-F-7AWta2.mjs +588 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D4w7Aa9M.mjs → edit.vue_vue_type_script_setup_true_lang-yaBZyiFi.mjs} +25 -25
- package/dist/{el-card-acRFAeYD.mjs → el-card-CjFpAXC4.mjs} +1 -1
- package/dist/{el-col-BFrxkvh3.mjs → el-col-D9kCVYAq.mjs} +17 -17
- package/dist/{el-date-picker-CjE5H0IY.mjs → el-date-picker-_cuHa2hi.mjs} +474 -474
- package/dist/el-divider-8Ov9f55F.mjs +45 -0
- package/dist/{el-dropdown-item-SBcx6_kX.mjs → el-dropdown-item-CSpUSfWV.mjs} +95 -95
- package/dist/{el-tree-select-RwYP-GEn.mjs → el-tree-select-BUK1QB3u.mjs} +75 -75
- package/dist/{index-CQlxUoOf.mjs → index-BYYYSOkP.mjs} +1 -1
- package/dist/{index-Bqg1CGw2.mjs → index-BeFhB4ZJ.mjs} +1 -1
- package/dist/{index-B7zhho5d.mjs → index-BkPB5eHC.mjs} +92 -92
- package/dist/{index-CcXjdXcD.mjs → index-C34zVC-7.mjs} +67 -67
- package/dist/{index-BcstP65E.mjs → index-C68JBxAE.mjs} +100 -100
- package/dist/{index-ChzNa2kp.mjs → index-CPqNZOs9.mjs} +21463 -21235
- package/dist/{index-u66O7nvc.mjs → index-CXJ-WW3h.mjs} +112 -111
- package/dist/{index-DvrFzTq2.mjs → index-CYAfQz-w.mjs} +1 -1
- package/dist/index-Cuk7sDz9.mjs +277 -0
- package/dist/{index-Dyn0k8Ib.mjs → index-D8zb68MK.mjs} +64 -64
- package/dist/{index-DBmv4w5y.mjs → index-D9itg8P7.mjs} +1 -1
- package/dist/{index-DAIdsjwj.mjs → index-DHQQEEWW.mjs} +53 -53
- package/dist/{index-DQtth-qu.mjs → index-DW1L3U1A.mjs} +53 -53
- package/dist/{index-B-lo0ywJ.mjs → index-Dav45Y13.mjs} +72 -72
- package/dist/index-DhjUimfd.mjs +272 -0
- package/dist/{index-DQbHbpgW.mjs → index-GPbjfqQg.mjs} +4 -4
- package/dist/{index-hr-nwn6C.mjs → index-W4pvCYhJ.mjs} +1 -1
- package/dist/{index-SUlMvdOg.mjs → index-gaeN4E1_.mjs} +88 -88
- package/dist/index-hZzxBNan.mjs +3447 -0
- package/dist/{index-4UdK9Nb9.mjs → index-l9Oeu9G-.mjs} +49 -49
- package/dist/index.mjs +27 -28
- package/dist/index.vue_vue_type_script_setup_true_lang-DWjQT4jn.mjs +54 -0
- package/dist/picture-DRU19T9b.mjs +587 -0
- package/dist/position-Ba7wRAlR.mjs +23 -0
- package/dist/{profile-BfDHQ_n5.mjs → profile-3Wsx53aV.mjs} +25 -25
- package/dist/runAs-CE2R49GJ.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-i0DdmfK1.mjs +113 -0
- package/dist/style.css +1 -1
- package/dist/{types-D2vHMNqn.mjs → types-D3sIBzF1.mjs} +13 -13
- package/dist/{updatePwd-Dc31cBOV.mjs → updatePwd-2Dc9-bnF.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Do-jRGf0.mjs → updatePwd.vue_vue_type_script_setup_true_lang-3mhiAxD4.mjs} +9 -9
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +3 -3
- package/dts/src/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/index.d.ts +10 -3
- package/dts/src/lang/index.d.ts +90 -0
- package/dts/src/lang/package/en.d.ts +42 -0
- package/dts/src/lang/package/zh-cn.d.ts +48 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/stores/index.d.ts +5 -0
- package/dts/src/utils/color.d.ts +69 -0
- package/dts/src/utils/index.d.ts +9 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/401-BjFOoJaQ.mjs +0 -101
- package/dist/404-CT8Yk873.mjs +0 -37
- package/dist/anquanrizhi-BMAtNRi-.mjs +0 -4
- package/dist/api-DA2t0sYn.mjs +0 -4
- package/dist/bumenguanli-_DtFk-Tc.mjs +0 -4
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +0 -4
- package/dist/captcha-G9RskXh1.mjs +0 -4
- package/dist/caret-bottom-Lhe9M7aA.mjs +0 -59
- package/dist/cascader-CysbB3DR.mjs +0 -4
- package/dist/client-CmoE5d0v.mjs +0 -4
- package/dist/close-DwiHyvYJ.mjs +0 -4
- package/dist/close_all-ri0Fg4Yg.mjs +0 -4
- package/dist/close_left-DLmFYlJS.mjs +0 -4
- package/dist/close_other-B705ZMV6.mjs +0 -4
- package/dist/close_right-BUdNHbs5.mjs +0 -4
- package/dist/dict-C2cGjFov.mjs +0 -4
- package/dist/document-Bf2gTChB.mjs +0 -4
- package/dist/download-cG3k-vnb.mjs +0 -4
- package/dist/drag-CwjZNuUJ.mjs +0 -4
- package/dist/edit-CIq1RPVx.mjs +0 -4
- package/dist/edit-Di-ksvTh.mjs +0 -4
- package/dist/edit-II1vFfNu.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-VlMd6HAa.mjs +0 -575
- package/dist/email-B2AUCEGq.mjs +0 -4
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +0 -4
- package/dist/eye-DeDz_5CQ.mjs +0 -4
- package/dist/eye-open-Cm0N1Rcz.mjs +0 -4
- package/dist/fullscreen-BFXljl9l.mjs +0 -4
- package/dist/gangweiguanli-bkwyhEXB.mjs +0 -4
- package/dist/github-CL2t8fd5.mjs +0 -4
- package/dist/homepage-IeZtzO8Q.mjs +0 -4
- package/dist/icon-DwZ6Hkfk.mjs +0 -4
- package/dist/index-CF6p3ONN.mjs +0 -319
- package/dist/index-CJvo28Bb.mjs +0 -275
- package/dist/index-CS-ceXqM.mjs +0 -2580
- package/dist/ip-DOLbS1rT.mjs +0 -4
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +0 -4
- package/dist/language-C1tgLxuP.mjs +0 -4
- package/dist/link-Cjm7RVX7.mjs +0 -4
- package/dist/log-ZFSIG9ZQ.mjs +0 -4
- package/dist/menu-B7SOjMUJ.mjs +0 -4
- package/dist/message-Bws5C_1u.mjs +0 -4
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +0 -4
- package/dist/money-DM0ZKWD3.mjs +0 -4
- package/dist/monitor-CxsUJkcx.mjs +0 -4
- package/dist/order-DZ28J7CD.mjs +0 -4
- package/dist/password-BbtiGVLy.mjs +0 -4
- package/dist/peoples-3fyh79uv.mjs +0 -4
- package/dist/phone-CdpLww4_.mjs +0 -4
- package/dist/picture-877nN1qH.mjs +0 -598
- package/dist/project-DgVsw9u_.mjs +0 -4
- package/dist/publish-BCri5HbT.mjs +0 -4
- package/dist/quanxianguanli-Cpcc8C4D.mjs +0 -4
- package/dist/redis-fjUUmFu3.mjs +0 -4
- package/dist/refresh-BWNjEt3t.mjs +0 -4
- package/dist/role-BYKzPG5H.mjs +0 -4
- package/dist/security-BsMRfWoG.mjs +0 -4
- package/dist/shoujihao-BFt1tDJn.mjs +0 -4
- package/dist/shrink-kEdKK3G7.mjs +0 -4
- package/dist/size-jLonAeyJ.mjs +0 -4
- package/dist/system-BlPhikZo.mjs +0 -4
- package/dist/table-CCqA2qBP.mjs +0 -4
- package/dist/todolist-Ul73X2IJ.mjs +0 -4
- package/dist/tree-DrEt7UUZ.mjs +0 -4
- package/dist/user-B9bSWq2E.mjs +0 -4
- package/dist/visit-w_hKTLb6.mjs +0 -4
- package/dist/xingming-DHM4olm-.mjs +0 -4
- package/dist/yonghuguanli-B3vRkdqw.mjs +0 -4
- package/dist/youxiang-D68Zx-02.mjs +0 -4
- package/dist//345/210/227/350/241/250-nphA7BPW.mjs +0 -4
- package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +0 -4
- package/dist//346/250/241/345/235/227-D528qA63.mjs +0 -4
- package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +0 -4
- package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aj as ie, a0 as z, b4 as ce, bA as fe, b3 as ye, bB as _e, Y as L, bC as he, s as be, aq as Re, aO as ge, E as Ce, ao as Ve, ap as ve, b5 as Ie, b6 as Ee, b7 as De, b8 as ke, ai as we, t as $e, au as qe, a6 as Ne } from "./index-CPqNZOs9.mjs";
|
|
2
2
|
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
3
|
-
import { E as Te } from "./el-tree-select-
|
|
4
|
-
import { E as Ue, a as
|
|
3
|
+
import { E as Te } from "./el-tree-select-BUK1QB3u.mjs";
|
|
4
|
+
import { E as Ue, a as Ae } from "./el-col-D9kCVYAq.mjs";
|
|
5
5
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { m as
|
|
8
|
-
import { p as
|
|
9
|
-
const Oe = { class: "positon_name" }, Pe = { class: "plus-position" },
|
|
6
|
+
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 Be } from "vue";
|
|
7
|
+
import { m as Se } from "./index-BYYYSOkP.mjs";
|
|
8
|
+
import { p as je } from "./index-CYAfQz-w.mjs";
|
|
9
|
+
const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, ze = { class: "dialog-footer" }, Le = /* @__PURE__ */ Fe({
|
|
10
10
|
__name: "edit",
|
|
11
11
|
props: {
|
|
12
12
|
formData: {
|
|
@@ -21,13 +21,13 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
emits: ["dialogEvent", "refresh"],
|
|
24
|
-
setup(
|
|
25
|
-
var
|
|
26
|
-
const { t: c } = ie(),
|
|
27
|
-
let
|
|
24
|
+
setup(H, { emit: J }) {
|
|
25
|
+
var M;
|
|
26
|
+
const { t: c } = ie(), q = i();
|
|
27
|
+
let N = i([]);
|
|
28
28
|
const V = i(), T = i(), v = i(!1), I = i(!1);
|
|
29
29
|
let f = i([]), l = G({
|
|
30
|
-
tenant:
|
|
30
|
+
tenant: z().user.tenant,
|
|
31
31
|
requestId: Math.random() * 10 + "",
|
|
32
32
|
roleType: "role",
|
|
33
33
|
updateMask: "roleCode,roleName,parentId,description",
|
|
@@ -43,13 +43,13 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
});
|
|
46
|
-
const
|
|
46
|
+
const K = G({
|
|
47
47
|
roleCode: [{ required: !0, validator: (e, o, s) => {
|
|
48
48
|
if (o === "")
|
|
49
49
|
s(new Error(c("sysRole.codeRequired")));
|
|
50
50
|
else {
|
|
51
51
|
const m = {
|
|
52
|
-
tenant:
|
|
52
|
+
tenant: z().user.tenant,
|
|
53
53
|
roleCode: o,
|
|
54
54
|
addFlag: !l.roleId,
|
|
55
55
|
roleId: l.roleId
|
|
@@ -62,26 +62,26 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
62
62
|
roleName: [
|
|
63
63
|
{ required: !0, message: c("sysRole.nameRequired"), trigger: "blur" }
|
|
64
64
|
]
|
|
65
|
-
}), y =
|
|
66
|
-
function
|
|
65
|
+
}), y = J, R = H, E = Me(R, "dialog");
|
|
66
|
+
function Q() {
|
|
67
67
|
var e;
|
|
68
|
-
fe((e =
|
|
68
|
+
fe((e = R.formData) == null ? void 0 : e.roleId).then(({ data: o }) => {
|
|
69
69
|
V.value = o.results;
|
|
70
|
-
}),
|
|
71
|
-
|
|
70
|
+
}), Se().then(({ data: o }) => {
|
|
71
|
+
N.value = o.results;
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function W(e) {
|
|
75
75
|
ye(e).then(({ data: o }) => {
|
|
76
76
|
console.log(o), l.permCodes = o.permCodes;
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function X() {
|
|
80
80
|
U();
|
|
81
81
|
}
|
|
82
82
|
function U() {
|
|
83
|
-
|
|
84
|
-
T.value = e.results,
|
|
83
|
+
je(l.moduleId).then(({ data: e }) => {
|
|
84
|
+
T.value = e.results, A(e.results);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
function Z() {
|
|
@@ -95,11 +95,11 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
95
95
|
var o;
|
|
96
96
|
(o = l.roleDuty) == null || o.splice(e, 1);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function A(e) {
|
|
99
99
|
for (let o = 0; o < e.length; o++) {
|
|
100
100
|
for (let s = 0; s < e[o].perms.length; s++)
|
|
101
101
|
f.value.push(e[o].perms[s].permCode);
|
|
102
|
-
|
|
102
|
+
A(e[o].children);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function ee(e) {
|
|
@@ -112,40 +112,40 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
112
112
|
}
|
|
113
113
|
const oe = async () => {
|
|
114
114
|
var e;
|
|
115
|
-
await ((e =
|
|
115
|
+
await ((e = q.value) == null ? void 0 : e.validate((o) => {
|
|
116
116
|
o && (l.roleId ? _e(l).then((s) => {
|
|
117
|
-
console.log(s), s.status === 200 && (
|
|
117
|
+
console.log(s), s.status === 200 && (L({
|
|
118
118
|
message: c("common.submitSuccess"),
|
|
119
119
|
type: "success"
|
|
120
120
|
}), y("dialogEvent", !1), y("refresh", s.status === 200));
|
|
121
121
|
}) : he(l).then((s) => {
|
|
122
|
-
console.log(s), s.status === 200 && (
|
|
122
|
+
console.log(s), s.status === 200 && (L({
|
|
123
123
|
message: c("common.submitSuccess"),
|
|
124
124
|
type: "success"
|
|
125
125
|
}), y("dialogEvent", !1), y("refresh", s.status === 200));
|
|
126
126
|
}));
|
|
127
127
|
}));
|
|
128
128
|
};
|
|
129
|
-
function
|
|
129
|
+
function F() {
|
|
130
130
|
y("dialogEvent", !1);
|
|
131
131
|
}
|
|
132
|
-
return (
|
|
132
|
+
return (M = R.formData) != null && M.roleId && (l = Object.assign(l, R.formData), l.roleDuty = l.roleDutyModel && l.roleDutyModel.length > 0 ? l.roleDutyModel : l.roleDuty = [
|
|
133
133
|
{
|
|
134
134
|
roleId: "",
|
|
135
135
|
dutyType: ""
|
|
136
136
|
}
|
|
137
|
-
], l.parentId === "00000000-0000-0000-0000-000000000000" && (l.parentId = "")),
|
|
138
|
-
const s = be, m =
|
|
137
|
+
], l.parentId === "00000000-0000-0000-0000-000000000000" && (l.parentId = "")), Q(), U(), (e, o) => {
|
|
138
|
+
const s = be, m = Re, u = Ue, _ = Ae, B = Te, te = ge, ae = Y("Remove"), S = Ce, re = Y("CirclePlus"), se = Ve, ne = ve, j = Ie, O = Ee, de = De, ue = ke, me = we, P = $e, pe = qe;
|
|
139
139
|
return p(), h(pe, {
|
|
140
140
|
modelValue: E.value.visible,
|
|
141
141
|
"onUpdate:modelValue": o[7] || (o[7] = (r) => E.value.visible = r),
|
|
142
142
|
title: E.value.title,
|
|
143
143
|
width: "1000px",
|
|
144
|
-
onClose:
|
|
144
|
+
onClose: F
|
|
145
145
|
}, {
|
|
146
146
|
footer: a(() => [
|
|
147
|
-
D("div",
|
|
148
|
-
t(P, { onClick:
|
|
147
|
+
D("div", ze, [
|
|
148
|
+
t(P, { onClick: F }, {
|
|
149
149
|
default: a(() => [
|
|
150
150
|
C(b(e.$t("common.cancel")), 1)
|
|
151
151
|
]),
|
|
@@ -165,9 +165,9 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
165
165
|
default: a(() => [
|
|
166
166
|
t(me, {
|
|
167
167
|
ref_key: "roleFormRef",
|
|
168
|
-
ref:
|
|
168
|
+
ref: q,
|
|
169
169
|
model: n(l),
|
|
170
|
-
rules:
|
|
170
|
+
rules: K,
|
|
171
171
|
"label-width": "170"
|
|
172
172
|
}, {
|
|
173
173
|
default: a(() => [
|
|
@@ -227,7 +227,7 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
227
227
|
prop: "parentId"
|
|
228
228
|
}, {
|
|
229
229
|
default: a(() => [
|
|
230
|
-
t(
|
|
230
|
+
t(B, {
|
|
231
231
|
modelValue: n(l).parentId,
|
|
232
232
|
"onUpdate:modelValue": o[2] || (o[2] = (r) => n(l).parentId = r),
|
|
233
233
|
data: V.value,
|
|
@@ -237,7 +237,7 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
237
237
|
"check-strictly": "",
|
|
238
238
|
style: { width: "100%" },
|
|
239
239
|
placeholder: e.$t("sysRole.parentRequired"),
|
|
240
|
-
onChange:
|
|
240
|
+
onChange: W
|
|
241
241
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
242
242
|
]),
|
|
243
243
|
_: 1
|
|
@@ -263,7 +263,7 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
263
263
|
default: a(() => [
|
|
264
264
|
t(te, {
|
|
265
265
|
modelValue: n(l).roleDuty[d].dutyType,
|
|
266
|
-
"onUpdate:modelValue": (
|
|
266
|
+
"onUpdate:modelValue": (g) => n(l).roleDuty[d].dutyType = g,
|
|
267
267
|
clearable: !0,
|
|
268
268
|
placeholder: e.$t("sysRole.mutualTypeRequired"),
|
|
269
269
|
"dict-type": "jmash.rbac.protobuf.DutyType"
|
|
@@ -281,9 +281,9 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
281
281
|
prop: `roleDuty.${d}.roleId`
|
|
282
282
|
}, {
|
|
283
283
|
default: a(() => [
|
|
284
|
-
t(
|
|
284
|
+
t(B, {
|
|
285
285
|
modelValue: n(l).roleDuty[d].roleId,
|
|
286
|
-
"onUpdate:modelValue": (
|
|
286
|
+
"onUpdate:modelValue": (g) => n(l).roleDuty[d].roleId = g,
|
|
287
287
|
data: V.value,
|
|
288
288
|
filterable: "",
|
|
289
289
|
clearable: "",
|
|
@@ -304,9 +304,9 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
304
304
|
class: "position-center"
|
|
305
305
|
}, {
|
|
306
306
|
default: a(() => [
|
|
307
|
-
t(
|
|
307
|
+
t(S, {
|
|
308
308
|
size: "16",
|
|
309
|
-
onClick: (
|
|
309
|
+
onClick: (g) => x(d)
|
|
310
310
|
}, {
|
|
311
311
|
default: a(() => [
|
|
312
312
|
t(ae)
|
|
@@ -315,12 +315,12 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
315
315
|
}, 1032, ["onClick"])
|
|
316
316
|
]),
|
|
317
317
|
_: 2
|
|
318
|
-
}, 1024)) :
|
|
318
|
+
}, 1024)) : Be("", !0)
|
|
319
319
|
]),
|
|
320
320
|
_: 2
|
|
321
321
|
}, 1024))), 128)),
|
|
322
322
|
D("div", Pe, [
|
|
323
|
-
t(
|
|
323
|
+
t(S, {
|
|
324
324
|
size: "16",
|
|
325
325
|
onClick: Z
|
|
326
326
|
}, {
|
|
@@ -346,10 +346,10 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
346
346
|
placeholder: e.$t("sysRole.moduleRequired"),
|
|
347
347
|
clearable: "",
|
|
348
348
|
style: { width: "100%" },
|
|
349
|
-
onChange:
|
|
349
|
+
onChange: X
|
|
350
350
|
}, {
|
|
351
351
|
default: a(() => [
|
|
352
|
-
(p(!0), k(w, null, $(n(
|
|
352
|
+
(p(!0), k(w, null, $(n(N), (r) => (p(), h(se, {
|
|
353
353
|
key: r.moduleId,
|
|
354
354
|
label: r.moduleName,
|
|
355
355
|
value: r.moduleId
|
|
@@ -357,7 +357,7 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
357
357
|
]),
|
|
358
358
|
_: 1
|
|
359
359
|
}, 8, ["modelValue", "placeholder"]),
|
|
360
|
-
t(
|
|
360
|
+
t(j, {
|
|
361
361
|
modelValue: v.value,
|
|
362
362
|
"onUpdate:modelValue": o[4] || (o[4] = (r) => v.value = r),
|
|
363
363
|
indeterminate: I.value,
|
|
@@ -388,7 +388,7 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
388
388
|
onChange: le
|
|
389
389
|
}, {
|
|
390
390
|
default: a(() => [
|
|
391
|
-
(p(!0), k(w, null, $(r.row.perms, (d) => (p(), h(
|
|
391
|
+
(p(!0), k(w, null, $(r.row.perms, (d) => (p(), h(j, {
|
|
392
392
|
label: d.permCode,
|
|
393
393
|
key: d.permId
|
|
394
394
|
}, {
|
|
@@ -451,7 +451,7 @@ const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { cl
|
|
|
451
451
|
}, 8, ["modelValue", "title"]);
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
}), xe = /* @__PURE__ */
|
|
454
|
+
}), xe = /* @__PURE__ */ Ne(Le, [["__scopeId", "data-v-8ff1839c"]]);
|
|
455
455
|
export {
|
|
456
456
|
xe as default
|
|
457
457
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as je } from "./el-tree-select-
|
|
3
|
-
import { E as Je } from "./el-date-picker-
|
|
4
|
-
import { E as Pe, a as Te } from "./el-col-
|
|
1
|
+
import { b9 as u, a0 as m, ba as W, bb as X, aj as he, cf as ge, cg as ve, Y as k, a5 as Ue, bA as _e, ao as Ie, ap as Ve, aq as ke, s as we, t as $e, aO as Ee, b5 as Ne, E as Ce, ai as qe, aV as De, au as Re, a6 as Ae } from "./index-CPqNZOs9.mjs";
|
|
2
|
+
import { E as je } from "./el-tree-select-BUK1QB3u.mjs";
|
|
3
|
+
import { E as Je } from "./el-date-picker-_cuHa2hi.mjs";
|
|
4
|
+
import { E as Pe, a as Te } from "./el-col-D9kCVYAq.mjs";
|
|
5
5
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as Se } from "./index-
|
|
6
|
+
import { defineComponent as Oe, ref as h, reactive as R, toRef as Be, resolveComponent as G, resolveDirective as Fe, openBlock as y, createBlock as g, withCtx as a, createElementVNode as A, createVNode as l, createTextVNode as w, toDisplayString as $, unref as n, createElementBlock as K, Fragment as H, renderList as Q, createCommentVNode as j, withDirectives as Me } from "vue";
|
|
7
|
+
import { t as Ye } from "./index-D9itg8P7.mjs";
|
|
8
|
+
import { t as Se } from "./index-BeFhB4ZJ.mjs";
|
|
9
9
|
function ut(r) {
|
|
10
10
|
return u({
|
|
11
11
|
url: "/v1/rbac/user/page",
|
|
@@ -35,14 +35,14 @@ function pt(r) {
|
|
|
35
35
|
data: i
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ze(r) {
|
|
39
39
|
return u({
|
|
40
40
|
url: "/v1/rbac/user",
|
|
41
41
|
method: "post",
|
|
42
42
|
data: r
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Le(r) {
|
|
46
46
|
return u({
|
|
47
47
|
url: "/v1/rbac/user",
|
|
48
48
|
method: "patch",
|
|
@@ -143,14 +143,14 @@ function Ze(r) {
|
|
|
143
143
|
params: i
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ge(r) {
|
|
147
147
|
return u({
|
|
148
148
|
url: "/v1/rbac/opens/id",
|
|
149
149
|
method: "delete",
|
|
150
150
|
params: r
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ke(r, i) {
|
|
154
154
|
const d = {
|
|
155
155
|
tenant: m().user.tenant,
|
|
156
156
|
userId: r,
|
|
@@ -176,7 +176,7 @@ function _t(r) {
|
|
|
176
176
|
data: r
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { class: "dialog-footer" }, xe = /* @__PURE__ */
|
|
179
|
+
const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { class: "dialog-footer" }, xe = /* @__PURE__ */ Oe({
|
|
180
180
|
__name: "edit",
|
|
181
181
|
props: {
|
|
182
182
|
formData: {
|
|
@@ -192,9 +192,9 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
192
192
|
},
|
|
193
193
|
emits: ["dialogEvent", "refresh"],
|
|
194
194
|
setup(r, { emit: i }) {
|
|
195
|
-
var S,
|
|
196
|
-
const { t: d } = he(), J = h(), P = h(), T = h(),
|
|
197
|
-
let t =
|
|
195
|
+
var S, z;
|
|
196
|
+
const { t: d } = he(), J = h(), P = h(), T = h(), O = h(), B = h();
|
|
197
|
+
let t = R({
|
|
198
198
|
tenant: m().user.tenant,
|
|
199
199
|
requestId: Math.random() * 10 + "",
|
|
200
200
|
updateMask: "directoryId,loginName,nickName,realName,gender,birthDate,mobilePhone,email,emailApproved,phoneApproved",
|
|
@@ -215,7 +215,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
215
215
|
}
|
|
216
216
|
]
|
|
217
217
|
});
|
|
218
|
-
const x =
|
|
218
|
+
const x = R({
|
|
219
219
|
directoryId: [
|
|
220
220
|
{
|
|
221
221
|
required: !0,
|
|
@@ -246,7 +246,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
246
246
|
roleIds: [
|
|
247
247
|
{ required: !0, message: d("sysUser.roleRequired"), trigger: "change" }
|
|
248
248
|
]
|
|
249
|
-
}), E = r, N =
|
|
249
|
+
}), E = r, N = Be(E, "dialog"), _ = i, C = h(!1), F = h([]), ee = R([
|
|
250
250
|
{
|
|
251
251
|
label: d("sysUser.type"),
|
|
252
252
|
prop: "openType",
|
|
@@ -292,7 +292,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
292
292
|
function re(e) {
|
|
293
293
|
t.repeatPwd = e;
|
|
294
294
|
}
|
|
295
|
-
(S = E.formData) != null && S.userId && (t = Object.assign(t, E.formData), ((
|
|
295
|
+
(S = E.formData) != null && S.userId && (t = Object.assign(t, E.formData), ((z = t.userJobs) == null ? void 0 : z.length) === 0 && (t.userJobs = [
|
|
296
296
|
{
|
|
297
297
|
deptId: "",
|
|
298
298
|
jobId: ""
|
|
@@ -301,12 +301,12 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
301
301
|
const oe = async () => {
|
|
302
302
|
var e;
|
|
303
303
|
await ((e = J.value) == null ? void 0 : e.validate((o) => {
|
|
304
|
-
o && (t.userId ?
|
|
304
|
+
o && (t.userId ? Le(t).then((p) => {
|
|
305
305
|
console.log(p), p.status === 200 && (k({
|
|
306
306
|
message: d("common.submitSuccess"),
|
|
307
307
|
type: "success"
|
|
308
308
|
}), _("dialogEvent", !1), _("refresh", p.status === 200));
|
|
309
|
-
}) :
|
|
309
|
+
}) : ze(t).then((p) => {
|
|
310
310
|
console.log(p), p.status === 200 && (k({
|
|
311
311
|
message: d("common.submitSuccess"),
|
|
312
312
|
type: "success"
|
|
@@ -314,11 +314,11 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
314
314
|
}));
|
|
315
315
|
}));
|
|
316
316
|
};
|
|
317
|
-
function
|
|
317
|
+
function M() {
|
|
318
318
|
_("dialogEvent", !1);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
|
|
320
|
+
function q(e, o) {
|
|
321
|
+
Ke(t.userId ? t.userId : "", e).then(({ data: p }) => {
|
|
322
322
|
p === !0 && k({
|
|
323
323
|
message: o + d("sysUser.exists"),
|
|
324
324
|
type: "warning"
|
|
@@ -337,11 +337,11 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
337
337
|
userId: e.userId,
|
|
338
338
|
openId: e.openId
|
|
339
339
|
};
|
|
340
|
-
|
|
340
|
+
Ge(o).then((p) => {
|
|
341
341
|
console.log(p), p.status === 200 && (k({
|
|
342
342
|
message: d("common.successUnbind"),
|
|
343
343
|
type: "success"
|
|
344
|
-
}),
|
|
344
|
+
}), Y());
|
|
345
345
|
});
|
|
346
346
|
}).catch(() => {
|
|
347
347
|
});
|
|
@@ -349,31 +349,31 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
349
349
|
function ne() {
|
|
350
350
|
_e().then(({ data: e }) => {
|
|
351
351
|
P.value = e.results;
|
|
352
|
-
}),
|
|
352
|
+
}), Ye().then(({ data: e }) => {
|
|
353
353
|
T.value = e.results;
|
|
354
354
|
}), Se().then(({ data: e }) => {
|
|
355
|
-
|
|
355
|
+
O.value = e.results;
|
|
356
356
|
}), He().then(({ data: e }) => {
|
|
357
|
-
console.log(e),
|
|
357
|
+
console.log(e), B.value = e.directoryId;
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Y() {
|
|
361
361
|
C.value = !0, Ze(t.userId).then(({ data: e }) => {
|
|
362
|
-
|
|
362
|
+
F.value = e.results, C.value = !1;
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
return ne(),
|
|
366
|
-
const p = Ie, de = Ve, b = ke, c = Pe, v = we, U = Te, I = $e, ue = Ee,
|
|
365
|
+
return ne(), Y(), (e, o) => {
|
|
366
|
+
const p = Ie, de = Ve, b = ke, c = Pe, v = we, U = Te, I = $e, ue = Ee, L = Ne, ie = Je, D = je, pe = G("Remove"), Z = Ce, me = G("CirclePlus"), ce = qe, be = De, fe = Re, ye = Fe("hasPerm");
|
|
367
367
|
return y(), g(fe, {
|
|
368
368
|
title: N.value.title,
|
|
369
369
|
modelValue: N.value.visible,
|
|
370
370
|
"onUpdate:modelValue": o[15] || (o[15] = (s) => N.value.visible = s),
|
|
371
371
|
width: "900px",
|
|
372
|
-
onClose:
|
|
372
|
+
onClose: M
|
|
373
373
|
}, {
|
|
374
374
|
footer: a(() => [
|
|
375
375
|
A("div", Xe, [
|
|
376
|
-
l(I, { onClick:
|
|
376
|
+
l(I, { onClick: M }, {
|
|
377
377
|
default: a(() => [
|
|
378
378
|
w($(e.$t("common.cancel")), 1)
|
|
379
379
|
]),
|
|
@@ -416,7 +416,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
416
416
|
style: { width: "100%" }
|
|
417
417
|
}, {
|
|
418
418
|
default: a(() => [
|
|
419
|
-
(y(!0),
|
|
419
|
+
(y(!0), K(H, null, Q(B.value, (s) => (y(), g(p, {
|
|
420
420
|
key: s,
|
|
421
421
|
label: s,
|
|
422
422
|
value: s
|
|
@@ -444,7 +444,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
444
444
|
placeholder: e.$t("sysUser.usernameRequired"),
|
|
445
445
|
maxlength: "30",
|
|
446
446
|
"show-word-limit": "",
|
|
447
|
-
onChange: o[2] || (o[2] = (s) =>
|
|
447
|
+
onChange: o[2] || (o[2] = (s) => q(s, e.$t("sysUser.username")))
|
|
448
448
|
}, null, 8, ["modelValue", "placeholder"])
|
|
449
449
|
]),
|
|
450
450
|
_: 1
|
|
@@ -572,10 +572,10 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
572
572
|
"onUpdate:modelValue": o[8] || (o[8] = (s) => n(t).mobilePhone = s),
|
|
573
573
|
placeholder: e.$t("sysUser.phoneNumberRequired"),
|
|
574
574
|
clearable: "",
|
|
575
|
-
onChange: o[9] || (o[9] = (s) =>
|
|
575
|
+
onChange: o[9] || (o[9] = (s) => q(s, e.$t("sysUser.phoneNumber")))
|
|
576
576
|
}, {
|
|
577
577
|
append: a(() => [
|
|
578
|
-
l(
|
|
578
|
+
l(L, {
|
|
579
579
|
modelValue: n(t).phoneApproved,
|
|
580
580
|
"onUpdate:modelValue": o[7] || (o[7] = (s) => n(t).phoneApproved = s),
|
|
581
581
|
disabled: !n(t).userId,
|
|
@@ -604,10 +604,10 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
604
604
|
clearable: "",
|
|
605
605
|
maxlength: "30",
|
|
606
606
|
"show-word-limit": "",
|
|
607
|
-
onChange: o[12] || (o[12] = (s) =>
|
|
607
|
+
onChange: o[12] || (o[12] = (s) => q(s, e.$t("sysUser.email")))
|
|
608
608
|
}, {
|
|
609
609
|
append: a(() => [
|
|
610
|
-
l(
|
|
610
|
+
l(L, {
|
|
611
611
|
modelValue: n(t).emailApproved,
|
|
612
612
|
"onUpdate:modelValue": o[10] || (o[10] = (s) => n(t).emailApproved = s),
|
|
613
613
|
disabled: !n(t).userId,
|
|
@@ -656,7 +656,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
656
656
|
prop: "roleIds"
|
|
657
657
|
}, {
|
|
658
658
|
default: a(() => [
|
|
659
|
-
l(
|
|
659
|
+
l(D, {
|
|
660
660
|
modelValue: n(t).roleIds,
|
|
661
661
|
"onUpdate:modelValue": o[14] || (o[14] = (s) => n(t).roleIds = s),
|
|
662
662
|
data: P.value,
|
|
@@ -678,7 +678,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
678
678
|
_: 1
|
|
679
679
|
}),
|
|
680
680
|
A("div", Qe, [
|
|
681
|
-
(y(!0),
|
|
681
|
+
(y(!0), K(H, null, Q(n(t).userJobs, (s, f) => (y(), g(U, {
|
|
682
682
|
key: f,
|
|
683
683
|
style: { width: "100%" }
|
|
684
684
|
}, {
|
|
@@ -690,7 +690,7 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
690
690
|
prop: `userJobs.${f}.deptId`
|
|
691
691
|
}, {
|
|
692
692
|
default: a(() => [
|
|
693
|
-
l(
|
|
693
|
+
l(D, {
|
|
694
694
|
modelValue: n(t).userJobs[f].deptId,
|
|
695
695
|
"onUpdate:modelValue": (V) => n(t).userJobs[f].deptId = V,
|
|
696
696
|
data: T.value,
|
|
@@ -714,10 +714,10 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
714
714
|
prop: `userJobs.${f}.jobId`
|
|
715
715
|
}, {
|
|
716
716
|
default: a(() => [
|
|
717
|
-
l(
|
|
717
|
+
l(D, {
|
|
718
718
|
modelValue: n(t).userJobs[f].jobId,
|
|
719
719
|
"onUpdate:modelValue": (V) => n(t).userJobs[f].jobId = V,
|
|
720
|
-
data:
|
|
720
|
+
data: O.value,
|
|
721
721
|
"render-after-expand": !1,
|
|
722
722
|
filterable: "",
|
|
723
723
|
clearable: "",
|
|
@@ -770,12 +770,12 @@ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { cl
|
|
|
770
770
|
n(t).userId ? (y(), g(be, {
|
|
771
771
|
key: 0,
|
|
772
772
|
"list-loading": C.value,
|
|
773
|
-
"table-data":
|
|
773
|
+
"table-data": F.value,
|
|
774
774
|
"table-label": ee,
|
|
775
775
|
"is-selection": !1
|
|
776
776
|
}, {
|
|
777
777
|
operation: a((s) => [
|
|
778
|
-
|
|
778
|
+
Me((y(), g(I, {
|
|
779
779
|
link: "",
|
|
780
780
|
size: "small",
|
|
781
781
|
type: "primary",
|