jmash-core 0.0.8 → 0.0.10
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-D1navTeN.mjs → 401-CHBVbzep.mjs} +13 -15
- package/dist/{404-D1KiG-19.mjs → 404-C06c3dKV.mjs} +1 -1
- package/dist/{BarChart--O8TFL11.mjs → BarChart-DMEOgtiK.mjs} +27 -30
- package/dist/{FileSaver.min-CFSHg9zJ.mjs → FileSaver.min-QT2Ccp7G.mjs} +5 -5
- package/dist/{PieChart-BsEXTafD.mjs → PieChart-CR6Jny_5.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BoPZVlEy.mjs → PieChart.vue_vue_type_script_setup_true_lang-65SK3HKm.mjs} +2 -2
- package/dist/{RadarChart-B-25o1xQ.mjs → RadarChart-dAF4Lmnh.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-Dk53W_7d.mjs → RadarChart.vue_vue_type_script_setup_true_lang-CugqBg8u.mjs} +2 -2
- package/dist/anquanrizhi-BMAtNRi-.mjs +4 -0
- package/dist/api-DA2t0sYn.mjs +4 -0
- package/dist/bumenguanli-_DtFk-Tc.mjs +4 -0
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +4 -0
- package/dist/captcha-G9RskXh1.mjs +4 -0
- package/dist/{caret-bottom-DnFVxAos.mjs → caret-bottom-DQsNMTCk.mjs} +1 -1
- package/dist/cascader-CysbB3DR.mjs +4 -0
- package/dist/client-CmoE5d0v.mjs +4 -0
- package/dist/close-DwiHyvYJ.mjs +4 -0
- package/dist/close_all-ri0Fg4Yg.mjs +4 -0
- package/dist/close_left-DLmFYlJS.mjs +4 -0
- package/dist/close_other-B705ZMV6.mjs +4 -0
- package/dist/close_right-BUdNHbs5.mjs +4 -0
- package/dist/dict-C2cGjFov.mjs +4 -0
- package/dist/document-Bf2gTChB.mjs +4 -0
- package/dist/download-cG3k-vnb.mjs +4 -0
- package/dist/drag-CwjZNuUJ.mjs +4 -0
- package/dist/{edit-CNBEQPXE.mjs → edit-BILFCR0k.mjs} +156 -167
- package/dist/{edit-Cn3dM7k5.mjs → edit-BaKHtEYP.mjs} +1 -1
- package/dist/{edit-CRxj4EY1.mjs → edit-BryJ1Ozj.mjs} +1 -1
- package/dist/{edit-BrhHNCNl.mjs → edit-C3_M4SAm.mjs} +1 -1
- package/dist/{edit-DpmMYYl6.mjs → edit-CBUBEDYQ.mjs} +64 -75
- package/dist/edit-CIq1RPVx.mjs +4 -0
- package/dist/{edit-Bi-somHb.mjs → edit-Da4rBqIl.mjs} +1 -1
- package/dist/edit-YR1BLwBM.mjs +4 -0
- package/dist/edit-dkzoPlC1.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Buq1ql0E.mjs → edit.vue_vue_type_script_setup_true_lang-5_bW1lje.mjs} +22 -23
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CVrHkM_q.mjs → edit.vue_vue_type_script_setup_true_lang-B0CmHQFN.mjs} +64 -72
- package/dist/{edit.vue_vue_type_script_setup_true_lang-B90c-BBg.mjs → edit.vue_vue_type_script_setup_true_lang-BojWrHVs.mjs} +25 -26
- package/dist/edit.vue_vue_type_script_setup_true_lang-DfZ2CWbT.mjs +575 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-8pvOxMW7.mjs → edit.vue_vue_type_script_setup_true_lang-DvT8PvhG.mjs} +32 -33
- package/dist/{edit.vue_vue_type_script_setup_true_lang-De3m51Sn.mjs → edit.vue_vue_type_script_setup_true_lang-RRQ8AbpV.mjs} +57 -64
- package/dist/{el-card-D0KW8m51.mjs → el-card-BOz1BuaJ.mjs} +1 -1
- package/dist/{el-col-CshwMyIb.mjs → el-col-ByQ4RMxz.mjs} +27 -27
- package/dist/{el-date-picker-L919iy84.mjs → el-date-picker-BxsQLDQk.mjs} +374 -378
- package/dist/{el-dropdown-item-awCBld5w.mjs → el-dropdown-item-Oj8hVe5g.mjs} +120 -125
- package/dist/{el-tree-select-D4-wTWIf.mjs → el-tree-select-D9LnnJmi.mjs} +87 -90
- package/dist/email-B2AUCEGq.mjs +4 -0
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +4 -0
- package/dist/eye-DeDz_5CQ.mjs +4 -0
- package/dist/eye-open-Cm0N1Rcz.mjs +4 -0
- package/dist/fullscreen-BFXljl9l.mjs +4 -0
- package/dist/gangweiguanli-bkwyhEXB.mjs +4 -0
- package/dist/github-CL2t8fd5.mjs +4 -0
- package/dist/homepage-IeZtzO8Q.mjs +4 -0
- package/dist/icon-DwZ6Hkfk.mjs +4 -0
- package/dist/{index-rOm9tk5c.mjs → index-7E1Q6xEm.mjs} +98 -110
- package/dist/{index-DyAyeZcb.mjs → index-B1tUnBOd.mjs} +1 -1
- package/dist/{index-BZjZrmGu.mjs → index-B6lfofak.mjs} +52 -56
- package/dist/{index-BYabHywL.mjs → index-BC5xzJHH.mjs} +53 -57
- package/dist/{index-DNsvQhEF.mjs → index-BFilvnBa.mjs} +228 -245
- package/dist/{index-DJ08yxAP.mjs → index-BQj9zHJH.mjs} +1 -1
- package/dist/index-BTnK8LSe.mjs +319 -0
- package/dist/{index-DBkD-FDF.mjs → index-BhWLFjrd.mjs} +153 -165
- package/dist/{index-CFY0L-EF.mjs → index-Bm8Ym_vg.mjs} +87 -96
- package/dist/{index-BccYTnUE.mjs → index-CMhIkM_l.mjs} +1 -1
- package/dist/{index-C_tL22hb.mjs → index-CO0p57s7.mjs} +62 -65
- package/dist/{index-BkQGtIM0.mjs → index-CTwdawf9.mjs} +1 -1
- package/dist/{index-B3Yexifn.mjs → index-CYOLMp2W.mjs} +98 -107
- package/dist/{index-BuvRskP0.mjs → index-CZazFMG9.mjs} +102 -106
- package/dist/{index-3qIRz0lG.mjs → index-CcwdkUsS.mjs} +109 -121
- package/dist/{index-B-d0sG_m.mjs → index-DIik67HQ.mjs} +56 -59
- package/dist/{index-C2REEPMM.mjs → index-DgmZIJSM.mjs} +1 -1
- package/dist/index-DjBUKTDX.mjs +29725 -0
- package/dist/{index-JhnBAnIL.mjs → index-H2NqoRop.mjs} +1 -1
- package/dist/{index-B5gZoPzf.mjs → index-WG3AukVT.mjs} +66 -69
- package/dist/index.mjs +31 -19
- package/dist/ip-DOLbS1rT.mjs +4 -0
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +4 -0
- package/dist/language-C1tgLxuP.mjs +4 -0
- package/dist/link-Cjm7RVX7.mjs +4 -0
- package/dist/log-ZFSIG9ZQ.mjs +4 -0
- package/dist/menu-B7SOjMUJ.mjs +4 -0
- package/dist/message-Bws5C_1u.mjs +4 -0
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +4 -0
- package/dist/money-DM0ZKWD3.mjs +4 -0
- package/dist/monitor-CxsUJkcx.mjs +4 -0
- package/dist/order-DZ28J7CD.mjs +4 -0
- package/dist/password-BbtiGVLy.mjs +4 -0
- package/dist/peoples-3fyh79uv.mjs +4 -0
- package/dist/phone-CdpLww4_.mjs +4 -0
- package/dist/{picture-DCK2sm2j.mjs → picture-CG9bft5d.mjs} +26 -27
- package/dist/profile-B8BtUlO7.mjs +261 -0
- package/dist/project-DgVsw9u_.mjs +4 -0
- package/dist/publish-BCri5HbT.mjs +4 -0
- package/dist/quanxianguanli-Cpcc8C4D.mjs +4 -0
- package/dist/redis-fjUUmFu3.mjs +4 -0
- package/dist/refresh-BWNjEt3t.mjs +4 -0
- package/dist/role-BYKzPG5H.mjs +4 -0
- package/dist/security-BsMRfWoG.mjs +4 -0
- package/dist/shoujihao-BFt1tDJn.mjs +4 -0
- package/dist/shrink-kEdKK3G7.mjs +4 -0
- package/dist/size-jLonAeyJ.mjs +4 -0
- package/dist/style.css +1 -1
- package/dist/system-BlPhikZo.mjs +4 -0
- package/dist/table-CCqA2qBP.mjs +4 -0
- package/dist/todolist-Ul73X2IJ.mjs +4 -0
- package/dist/tree-DrEt7UUZ.mjs +4 -0
- package/dist/{types-u03-XGUh.mjs → types-CZaBSnxK.mjs} +46 -47
- package/dist/{updatePwd-DVMHZaH_.mjs → updatePwd-BRhEXp-m.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-C3ySntYh.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DcvNM8-2.mjs} +13 -14
- package/dist/user-B9bSWq2E.mjs +4 -0
- package/dist/visit-w_hKTLb6.mjs +4 -0
- package/dist/xingming-DHM4olm-.mjs +4 -0
- package/dist/yonghuguanli-B3vRkdqw.mjs +4 -0
- package/dist/youxiang-D68Zx-02.mjs +4 -0
- package/dist//345/210/227/350/241/250-nphA7BPW.mjs +4 -0
- package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +4 -0
- package/dist//346/250/241/345/235/227-D528qA63.mjs +4 -0
- package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +4 -0
- package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +4 -0
- package/dts/src/api/auth/index.d.ts +6 -6
- package/dts/src/api/file/index.d.ts +1 -1
- package/dts/src/api/system/dept/index.d.ts +13 -13
- package/dts/src/api/system/index.d.ts +1 -1
- package/dts/src/api/system/job/index.d.ts +6 -6
- package/dts/src/api/system/log/index.d.ts +4 -4
- package/dts/src/api/system/menu/index.d.ts +15 -15
- package/dts/src/api/system/module/index.d.ts +9 -9
- package/dts/src/api/system/operation/index.d.ts +8 -8
- package/dts/src/api/system/permission/index.d.ts +7 -7
- package/dts/src/api/system/role/index.d.ts +11 -11
- package/dts/src/api/system/user/index.d.ts +19 -19
- package/dts/src/api/system/userLog/index.d.ts +4 -4
- package/dts/src/components/DictRadio/index.vue.d.ts +1 -1
- package/dts/src/components/DictSelect/index.vue.d.ts +2 -2
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +3 -3
- package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +7 -9
- package/dts/src/lang/index.d.ts +1 -1
- package/dts/src/router/index.d.ts +1 -2
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
- package/dts/src/views/system/dept/edit.vue.d.ts +1 -0
- package/dts/src/views/system/job/edit.vue.d.ts +1 -0
- package/dts/src/views/system/menu/edit.vue.d.ts +1 -0
- package/dts/src/views/system/module/edit.vue.d.ts +1 -0
- package/dts/src/views/system/operation/edit.vue.d.ts +1 -0
- package/dts/src/views/system/permission/edit.vue.d.ts +1 -0
- package/dts/src/views/system/role/edit.vue.d.ts +1 -0
- package/dts/src/views/system/user/edit.vue.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
- package/dist/common-DuVBTwAv.mjs +0 -36
- package/dist/debounce-YcFmMYKS.mjs +0 -81
- package/dist/dropdown2-C14KfhQM.mjs +0 -160
- package/dist/edit-DeLAIti_.mjs +0 -4
- package/dist/edit-YBi7ifGA.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-CBRI_ssD.mjs +0 -621
- package/dist/el-checkbox-BKQlv24T.mjs +0 -548
- package/dist/el-dialog-DnjLYfXR.mjs +0 -378
- package/dist/el-form-item-vFTHxYmj.mjs +0 -1489
- package/dist/el-popover-Bgt26ytG.mjs +0 -159
- package/dist/el-popper-C4ObtCw4.mjs +0 -1656
- package/dist/el-progress-Du5X0h6t.mjs +0 -898
- package/dist/el-radio-DMm6yz9z.mjs +0 -251
- package/dist/el-scrollbar-DNrfQkzc.mjs +0 -607
- package/dist/el-select-CvXSBkeW.mjs +0 -1040
- package/dist/el-switch-CTHtmrXm.mjs +0 -254
- package/dist/el-table-DBe6lMX0.mjs +0 -3168
- package/dist/el-tag-l0sNRNKZ.mjs +0 -1
- package/dist/el-tooltip-l0sNRNKZ.mjs +0 -1
- package/dist/importUpload.vue_vue_type_script_setup_true_lang-B3MGPw_2.mjs +0 -116
- package/dist/index-529I9E4k.mjs +0 -633
- package/dist/index-B8FM-nwF.mjs +0 -13
- package/dist/index-C_rrQCFw.mjs +0 -328
- package/dist/index-D_7EobKs.mjs +0 -17594
- package/dist/index-DjkMA-Wh.mjs +0 -40
- package/dist/index-PBq39c_Y.mjs +0 -107
- package/dist/index.vue_vue_type_script_setup_true_lang-Btv8D2QS.mjs +0 -58
- package/dist/index.vue_vue_type_script_setup_true_lang-CS7m36k5.mjs +0 -286
- package/dist/isUndefined-CUQZk6oB.mjs +0 -6
- package/dist/profile-MjSEwXyJ.mjs +0 -319
- package/dist/refs-J3utyiz5.mjs +0 -9
- package/dist/useColumnToggleTable-ayAFGBOJ.mjs +0 -272
- /package/dist/{el-icon-l0sNRNKZ.mjs → el-form-item-l0sNRNKZ.mjs} +0 -0
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as Ce } from "./el-dialog-DnjLYfXR.mjs";
|
|
3
|
-
import { a as Ve, E as ve } from "./el-form-item-vFTHxYmj.mjs";
|
|
4
|
-
import { E as Ee, a as Ie } from "./el-table-DBe6lMX0.mjs";
|
|
5
|
-
import { E as De, a as ke } from "./el-checkbox-BKQlv24T.mjs";
|
|
6
|
-
import "./el-tooltip-l0sNRNKZ.mjs";
|
|
7
|
-
import "./el-popper-C4ObtCw4.mjs";
|
|
8
|
-
import "./el-scrollbar-DNrfQkzc.mjs";
|
|
1
|
+
import { W as ie, D as j, aK as ce, be as fe, aJ as ye, bf as _e, A as z, bg as he, a4 as be, a3 as ge, aw as Re, E as Ce, a1 as Ve, a2 as ve, aL as Ie, aM as Ee, aN as De, aO as ke, X as we, a5 as $e, L as Ne, y as qe } from "./index-DjBUKTDX.mjs";
|
|
9
2
|
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
10
|
-
import "./el-
|
|
11
|
-
import { E as
|
|
12
|
-
import "./el-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
import { m as Ae } from "./index-BccYTnUE.mjs";
|
|
18
|
-
import { p as ze } from "./index-JhnBAnIL.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({
|
|
3
|
+
import { E as Te } from "./el-tree-select-D9LnnJmi.mjs";
|
|
4
|
+
import { E as Ue, a as Me } from "./el-col-ByQ4RMxz.mjs";
|
|
5
|
+
import "./el-form-item-l0sNRNKZ.mjs";
|
|
6
|
+
import { defineComponent as Ae, ref as i, reactive as G, toRef as Fe, resolveComponent as J, 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 Se } from "vue";
|
|
7
|
+
import { m as Be } from "./index-CMhIkM_l.mjs";
|
|
8
|
+
import { p as Le } from "./index-H2NqoRop.mjs";
|
|
9
|
+
const Oe = { class: "positon_name" }, Pe = { class: "plus-position" }, je = { class: "dialog-footer" }, ze = /* @__PURE__ */ Ae({
|
|
21
10
|
__name: "edit",
|
|
22
11
|
props: {
|
|
23
12
|
formData: {
|
|
@@ -32,13 +21,13 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
32
21
|
}
|
|
33
22
|
},
|
|
34
23
|
emits: ["dialogEvent", "refresh"],
|
|
35
|
-
setup(
|
|
36
|
-
var
|
|
37
|
-
const { t: c } = ie(),
|
|
38
|
-
let
|
|
39
|
-
const V = i(), T = i(), v = i(!1),
|
|
24
|
+
setup(K, { emit: W }) {
|
|
25
|
+
var F;
|
|
26
|
+
const { t: c } = ie(), N = i();
|
|
27
|
+
let q = i([]);
|
|
28
|
+
const V = i(), T = i(), v = i(!1), I = i(!1);
|
|
40
29
|
let f = i([]), l = G({
|
|
41
|
-
tenant:
|
|
30
|
+
tenant: j().user.tenant,
|
|
42
31
|
requestId: Math.random() * 10 + "",
|
|
43
32
|
roleType: "role",
|
|
44
33
|
updateMask: "roleCode,roleName,parentId,description",
|
|
@@ -54,13 +43,13 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
54
43
|
}
|
|
55
44
|
]
|
|
56
45
|
});
|
|
57
|
-
const
|
|
46
|
+
const X = G({
|
|
58
47
|
roleCode: [{ required: !0, validator: (e, o, s) => {
|
|
59
48
|
if (o === "")
|
|
60
49
|
s(new Error(c("sysRole.codeRequired")));
|
|
61
50
|
else {
|
|
62
51
|
const m = {
|
|
63
|
-
tenant:
|
|
52
|
+
tenant: j().user.tenant,
|
|
64
53
|
roleCode: o,
|
|
65
54
|
addFlag: !l.roleId,
|
|
66
55
|
roleId: l.roleId
|
|
@@ -73,13 +62,13 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
73
62
|
roleName: [
|
|
74
63
|
{ required: !0, message: c("sysRole.nameRequired"), trigger: "blur" }
|
|
75
64
|
]
|
|
76
|
-
}), y =
|
|
77
|
-
function
|
|
65
|
+
}), y = W, g = K, E = Fe(g, "dialog");
|
|
66
|
+
function H() {
|
|
78
67
|
var e;
|
|
79
|
-
fe((e =
|
|
68
|
+
fe((e = g.formData) == null ? void 0 : e.roleId).then(({ data: o }) => {
|
|
80
69
|
V.value = o.results;
|
|
81
|
-
}),
|
|
82
|
-
|
|
70
|
+
}), Be().then(({ data: o }) => {
|
|
71
|
+
q.value = o.results;
|
|
83
72
|
});
|
|
84
73
|
}
|
|
85
74
|
function Q(e) {
|
|
@@ -87,15 +76,15 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
87
76
|
console.log(o), l.permCodes = o.permCodes;
|
|
88
77
|
});
|
|
89
78
|
}
|
|
90
|
-
function
|
|
79
|
+
function Y() {
|
|
91
80
|
U();
|
|
92
81
|
}
|
|
93
82
|
function U() {
|
|
94
|
-
|
|
95
|
-
T.value = e.results,
|
|
83
|
+
Le(l.moduleId).then(({ data: e }) => {
|
|
84
|
+
T.value = e.results, M(e.results);
|
|
96
85
|
});
|
|
97
86
|
}
|
|
98
|
-
function
|
|
87
|
+
function Z() {
|
|
99
88
|
var e;
|
|
100
89
|
l.roleDuty && l.roleDuty.length < 5 && ((e = l.roleDuty) == null || e.push({
|
|
101
90
|
roleId: "",
|
|
@@ -106,63 +95,63 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
106
95
|
var o;
|
|
107
96
|
(o = l.roleDuty) == null || o.splice(e, 1);
|
|
108
97
|
}
|
|
109
|
-
function
|
|
98
|
+
function M(e) {
|
|
110
99
|
for (let o = 0; o < e.length; o++) {
|
|
111
100
|
for (let s = 0; s < e[o].perms.length; s++)
|
|
112
101
|
f.value.push(e[o].perms[s].permCode);
|
|
113
|
-
|
|
102
|
+
M(e[o].children);
|
|
114
103
|
}
|
|
115
104
|
}
|
|
116
105
|
function ee(e) {
|
|
117
|
-
console.log(e, f.value), l.permCodes = e ? f.value : [],
|
|
106
|
+
console.log(e, f.value), l.permCodes = e ? f.value : [], I.value = !1;
|
|
118
107
|
}
|
|
119
108
|
function le(e) {
|
|
120
109
|
console.log(e), l.permCodes = e, console.log(l.permCodes);
|
|
121
110
|
const o = e.length;
|
|
122
|
-
v.value = o === f.length,
|
|
111
|
+
v.value = o === f.length, I.value = o > 0 && o < f.length;
|
|
123
112
|
}
|
|
124
113
|
const oe = async () => {
|
|
125
114
|
var e;
|
|
126
|
-
await ((e =
|
|
115
|
+
await ((e = N.value) == null ? void 0 : e.validate((o) => {
|
|
127
116
|
o && (l.roleId ? _e(l).then((s) => {
|
|
128
|
-
console.log(s), s.status === 200 && (
|
|
117
|
+
console.log(s), s.status === 200 && (z({
|
|
129
118
|
message: c("common.submitSuccess"),
|
|
130
119
|
type: "success"
|
|
131
120
|
}), y("dialogEvent", !1), y("refresh", s.status === 200));
|
|
132
121
|
}) : he(l).then((s) => {
|
|
133
|
-
console.log(s), s.status === 200 && (
|
|
122
|
+
console.log(s), s.status === 200 && (z({
|
|
134
123
|
message: c("common.submitSuccess"),
|
|
135
124
|
type: "success"
|
|
136
125
|
}), y("dialogEvent", !1), y("refresh", s.status === 200));
|
|
137
126
|
}));
|
|
138
127
|
}));
|
|
139
128
|
};
|
|
140
|
-
function
|
|
129
|
+
function A() {
|
|
141
130
|
y("dialogEvent", !1);
|
|
142
131
|
}
|
|
143
|
-
return (
|
|
132
|
+
return (F = g.formData) != null && F.roleId && (l = Object.assign(l, g.formData), l.roleDuty = l.roleDutyModel && l.roleDutyModel.length > 0 ? l.roleDutyModel : l.roleDuty = [
|
|
144
133
|
{
|
|
145
134
|
roleId: "",
|
|
146
135
|
dutyType: ""
|
|
147
136
|
}
|
|
148
|
-
], l.parentId === "00000000-0000-0000-0000-000000000000" && (l.parentId = "")),
|
|
149
|
-
const s = be, m =
|
|
137
|
+
], l.parentId === "00000000-0000-0000-0000-000000000000" && (l.parentId = "")), H(), U(), (e, o) => {
|
|
138
|
+
const s = be, m = ge, u = Ue, _ = Me, S = Te, te = Re, ae = J("Remove"), B = Ce, re = J("CirclePlus"), se = Ve, ne = ve, L = Ie, O = Ee, de = De, ue = ke, me = we, P = $e, pe = Ne;
|
|
150
139
|
return p(), h(pe, {
|
|
151
|
-
modelValue:
|
|
152
|
-
"onUpdate:modelValue": o[7] || (o[7] = (r) =>
|
|
153
|
-
title:
|
|
140
|
+
modelValue: E.value.visible,
|
|
141
|
+
"onUpdate:modelValue": o[7] || (o[7] = (r) => E.value.visible = r),
|
|
142
|
+
title: E.value.title,
|
|
154
143
|
width: "1000px",
|
|
155
|
-
onClose:
|
|
144
|
+
onClose: A
|
|
156
145
|
}, {
|
|
157
146
|
footer: a(() => [
|
|
158
|
-
D("div",
|
|
159
|
-
t(
|
|
147
|
+
D("div", je, [
|
|
148
|
+
t(P, { onClick: A }, {
|
|
160
149
|
default: a(() => [
|
|
161
150
|
C(b(e.$t("common.cancel")), 1)
|
|
162
151
|
]),
|
|
163
152
|
_: 1
|
|
164
153
|
}),
|
|
165
|
-
t(
|
|
154
|
+
t(P, {
|
|
166
155
|
type: "primary",
|
|
167
156
|
onClick: oe
|
|
168
157
|
}, {
|
|
@@ -176,9 +165,9 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
176
165
|
default: a(() => [
|
|
177
166
|
t(me, {
|
|
178
167
|
ref_key: "roleFormRef",
|
|
179
|
-
ref:
|
|
168
|
+
ref: N,
|
|
180
169
|
model: n(l),
|
|
181
|
-
rules:
|
|
170
|
+
rules: X,
|
|
182
171
|
"label-width": "170"
|
|
183
172
|
}, {
|
|
184
173
|
default: a(() => [
|
|
@@ -238,7 +227,7 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
238
227
|
prop: "parentId"
|
|
239
228
|
}, {
|
|
240
229
|
default: a(() => [
|
|
241
|
-
t(
|
|
230
|
+
t(S, {
|
|
242
231
|
modelValue: n(l).parentId,
|
|
243
232
|
"onUpdate:modelValue": o[2] || (o[2] = (r) => n(l).parentId = r),
|
|
244
233
|
data: V.value,
|
|
@@ -259,7 +248,7 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
259
248
|
]),
|
|
260
249
|
_: 1
|
|
261
250
|
}),
|
|
262
|
-
D("div",
|
|
251
|
+
D("div", Oe, [
|
|
263
252
|
(p(!0), k(w, null, $(n(l).roleDuty, (r, d) => (p(), h(_, {
|
|
264
253
|
key: d,
|
|
265
254
|
style: { width: "100%" }
|
|
@@ -274,7 +263,7 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
274
263
|
default: a(() => [
|
|
275
264
|
t(te, {
|
|
276
265
|
modelValue: n(l).roleDuty[d].dutyType,
|
|
277
|
-
"onUpdate:modelValue": (
|
|
266
|
+
"onUpdate:modelValue": (R) => n(l).roleDuty[d].dutyType = R,
|
|
278
267
|
clearable: !0,
|
|
279
268
|
placeholder: e.$t("sysRole.mutualTypeRequired"),
|
|
280
269
|
"dict-type": "jmash.rbac.protobuf.DutyType"
|
|
@@ -292,9 +281,9 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
292
281
|
prop: `roleDuty.${d}.roleId`
|
|
293
282
|
}, {
|
|
294
283
|
default: a(() => [
|
|
295
|
-
t(
|
|
284
|
+
t(S, {
|
|
296
285
|
modelValue: n(l).roleDuty[d].roleId,
|
|
297
|
-
"onUpdate:modelValue": (
|
|
286
|
+
"onUpdate:modelValue": (R) => n(l).roleDuty[d].roleId = R,
|
|
298
287
|
data: V.value,
|
|
299
288
|
filterable: "",
|
|
300
289
|
clearable: "",
|
|
@@ -315,9 +304,9 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
315
304
|
class: "position-center"
|
|
316
305
|
}, {
|
|
317
306
|
default: a(() => [
|
|
318
|
-
t(
|
|
307
|
+
t(B, {
|
|
319
308
|
size: "16",
|
|
320
|
-
onClick: (
|
|
309
|
+
onClick: (R) => x(d)
|
|
321
310
|
}, {
|
|
322
311
|
default: a(() => [
|
|
323
312
|
t(ae)
|
|
@@ -330,10 +319,10 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
330
319
|
]),
|
|
331
320
|
_: 2
|
|
332
321
|
}, 1024))), 128)),
|
|
333
|
-
D("div",
|
|
334
|
-
t(
|
|
322
|
+
D("div", Pe, [
|
|
323
|
+
t(B, {
|
|
335
324
|
size: "16",
|
|
336
|
-
onClick:
|
|
325
|
+
onClick: Z
|
|
337
326
|
}, {
|
|
338
327
|
default: a(() => [
|
|
339
328
|
t(re)
|
|
@@ -357,10 +346,10 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
357
346
|
placeholder: e.$t("sysRole.moduleRequired"),
|
|
358
347
|
clearable: "",
|
|
359
348
|
style: { width: "100%" },
|
|
360
|
-
onChange:
|
|
349
|
+
onChange: Y
|
|
361
350
|
}, {
|
|
362
351
|
default: a(() => [
|
|
363
|
-
(p(!0), k(w, null, $(n(
|
|
352
|
+
(p(!0), k(w, null, $(n(q), (r) => (p(), h(se, {
|
|
364
353
|
key: r.moduleId,
|
|
365
354
|
label: r.moduleName,
|
|
366
355
|
value: r.moduleId
|
|
@@ -368,10 +357,10 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
368
357
|
]),
|
|
369
358
|
_: 1
|
|
370
359
|
}, 8, ["modelValue", "placeholder"]),
|
|
371
|
-
t(
|
|
360
|
+
t(L, {
|
|
372
361
|
modelValue: v.value,
|
|
373
362
|
"onUpdate:modelValue": o[4] || (o[4] = (r) => v.value = r),
|
|
374
|
-
indeterminate:
|
|
363
|
+
indeterminate: I.value,
|
|
375
364
|
onChange: ee
|
|
376
365
|
}, {
|
|
377
366
|
default: a(() => [
|
|
@@ -387,11 +376,11 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
387
376
|
"tree-props": { children: "children", hasChildren: "hasChildren" }
|
|
388
377
|
}, {
|
|
389
378
|
default: a(() => [
|
|
390
|
-
t(
|
|
379
|
+
t(O, {
|
|
391
380
|
prop: "resourceName",
|
|
392
381
|
width: "230"
|
|
393
382
|
}),
|
|
394
|
-
t(
|
|
383
|
+
t(O, null, {
|
|
395
384
|
default: a((r) => [
|
|
396
385
|
t(de, {
|
|
397
386
|
modelValue: n(l).permCodes,
|
|
@@ -399,7 +388,7 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
399
388
|
onChange: le
|
|
400
389
|
}, {
|
|
401
390
|
default: a(() => [
|
|
402
|
-
(p(!0), k(w, null, $(r.row.perms, (d) => (p(), h(
|
|
391
|
+
(p(!0), k(w, null, $(r.row.perms, (d) => (p(), h(L, {
|
|
403
392
|
label: d.permCode,
|
|
404
393
|
key: d.permId
|
|
405
394
|
}, {
|
|
@@ -462,7 +451,7 @@ const Pe = { class: "positon_name" }, je = { class: "plus-position" }, Oe = { cl
|
|
|
462
451
|
}, 8, ["modelValue", "title"]);
|
|
463
452
|
};
|
|
464
453
|
}
|
|
465
|
-
}),
|
|
454
|
+
}), xe = /* @__PURE__ */ qe(ze, [["__scopeId", "data-v-8ff1839c"]]);
|
|
466
455
|
export {
|
|
467
|
-
|
|
456
|
+
xe as default
|
|
468
457
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const c = "data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M106.133%2067.2a4.797%204.797%200%200%200-4.8%204.8c0%20.187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654%200%204.8-2.147%204.8-4.8%200-2.654-2.146-4.8-4.8-4.8H9.6a9.594%209.594%200%200%200-9.6%209.6V118.4c0%205.307%204.293%209.6%209.6%209.6h91.733c5.307%200%209.6-4.293%209.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533%200-2.653-2.146-4.8-4.8-4.8z'/%3e%3cpath%20d='M125.16%2013.373L114.587%202.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96%2052.96a4.264%204.264%200%200%200-.907%201.36L33.813%2088.533c-.746%201.76-.226%203.534.907%204.68%201.133%201.147%202.92%201.667%204.693.92l31.4-13.293c.507-.213.96-.52%201.36-.907l52.96-52.96c3.747-3.746%203.774-9.853.027-13.6zM66.107%2072.4l-18.32%207.76%207.76-18.32L92.72%2024.667l10.56%2010.56L66.107%2072.4zm52.226-52.227l-8.266%208.267-10.56-10.56%208.266-8.267.027-.026%2010.56%2010.56-.027.026z'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
c as default
|
|
4
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
1
|
+
import { W as q, D, A as b, a4 as R, a3 as w, X as $, a5 as F, L as k } from "./index-DjBUKTDX.mjs";
|
|
2
|
+
import "./el-form-item-l0sNRNKZ.mjs";
|
|
3
|
+
import { defineComponent as S, ref as U, reactive as y, toRef as j, openBlock as B, createBlock as M, unref as l, withCtx as a, createElementVNode as O, createVNode as s, createTextVNode as V, toDisplayString as C } from "vue";
|
|
4
|
+
import { c as A, e as L, a as T } from "./index-H2NqoRop.mjs";
|
|
5
|
+
const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
7
6
|
__name: "edit",
|
|
8
7
|
props: {
|
|
9
8
|
formData: {
|
|
@@ -18,11 +17,11 @@ const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
|
18
17
|
}
|
|
19
18
|
},
|
|
20
19
|
emits: ["dialogEvent", "refresh"],
|
|
21
|
-
setup(
|
|
20
|
+
setup(E, { emit: h }) {
|
|
22
21
|
var g;
|
|
23
|
-
const { t: i } =
|
|
22
|
+
const { t: i } = q(), c = U();
|
|
24
23
|
let o = y({
|
|
25
|
-
tenant:
|
|
24
|
+
tenant: D().user.tenant,
|
|
26
25
|
requestId: Math.random() * 10 + "",
|
|
27
26
|
permCode: "",
|
|
28
27
|
permName: "",
|
|
@@ -30,22 +29,22 @@ const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
|
30
29
|
});
|
|
31
30
|
const v = y({
|
|
32
31
|
permCode: [{ required: !0, validator: (r, t, e) => {
|
|
33
|
-
t === "" ? e(new Error(i("sysPerm.codeRequired"))) : o.permId ? e() :
|
|
32
|
+
t === "" ? e(new Error(i("sysPerm.codeRequired"))) : o.permId ? e() : A(t).then(({ data: n }) => {
|
|
34
33
|
n === !0 ? e(new Error("该编码已存在")) : e();
|
|
35
34
|
});
|
|
36
35
|
}, trigger: "blur" }],
|
|
37
36
|
permName: [
|
|
38
37
|
{ required: !0, message: i("sysPerm.nameRequired"), trigger: "blur" }
|
|
39
38
|
]
|
|
40
|
-
}), u =
|
|
39
|
+
}), u = E, p = j(u, "dialog"), m = h, N = async () => {
|
|
41
40
|
var r;
|
|
42
|
-
await ((r =
|
|
43
|
-
t && (o.permId ?
|
|
41
|
+
await ((r = c.value) == null ? void 0 : r.validate((t) => {
|
|
42
|
+
t && (o.permId ? L(o).then((e) => {
|
|
44
43
|
console.log(e), e.status === 200 && (b({
|
|
45
44
|
message: i("common.submitSuccess"),
|
|
46
45
|
type: "success"
|
|
47
46
|
}), m("dialogEvent", !1), m("refresh", e.status === 200));
|
|
48
|
-
}) :
|
|
47
|
+
}) : T(o).then((e) => {
|
|
49
48
|
console.log(e), e.status === 200 && (b({
|
|
50
49
|
message: i("common.submitSuccess"),
|
|
51
50
|
type: "success"
|
|
@@ -53,23 +52,23 @@ const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
|
53
52
|
}));
|
|
54
53
|
}));
|
|
55
54
|
};
|
|
56
|
-
function
|
|
55
|
+
function f() {
|
|
57
56
|
m("dialogEvent", !1);
|
|
58
57
|
}
|
|
59
58
|
return (g = u.formData) != null && g.permId && (o = Object.assign(o, u.formData)), (r, t) => {
|
|
60
|
-
const e =
|
|
59
|
+
const e = R, n = w, P = $, _ = F, I = k;
|
|
61
60
|
return B(), M(I, {
|
|
62
61
|
modelValue: l(p).visible,
|
|
63
62
|
"onUpdate:modelValue": t[2] || (t[2] = (d) => l(p).visible = d),
|
|
64
63
|
title: l(p).title,
|
|
65
64
|
width: "600px",
|
|
66
|
-
onClose:
|
|
65
|
+
onClose: f
|
|
67
66
|
}, {
|
|
68
67
|
footer: a(() => [
|
|
69
|
-
O("div",
|
|
70
|
-
s(_, { onClick:
|
|
68
|
+
O("div", W, [
|
|
69
|
+
s(_, { onClick: f }, {
|
|
71
70
|
default: a(() => [
|
|
72
|
-
|
|
71
|
+
V(C(r.$t("common.cancel")), 1)
|
|
73
72
|
]),
|
|
74
73
|
_: 1
|
|
75
74
|
}),
|
|
@@ -78,7 +77,7 @@ const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
|
78
77
|
onClick: N
|
|
79
78
|
}, {
|
|
80
79
|
default: a(() => [
|
|
81
|
-
|
|
80
|
+
V(C(r.$t("common.confirm")), 1)
|
|
82
81
|
]),
|
|
83
82
|
_: 1
|
|
84
83
|
})
|
|
@@ -87,7 +86,7 @@ const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
|
87
86
|
default: a(() => [
|
|
88
87
|
s(P, {
|
|
89
88
|
ref_key: "permissionFormRef",
|
|
90
|
-
ref:
|
|
89
|
+
ref: c,
|
|
91
90
|
model: l(o),
|
|
92
91
|
"label-width": "160px",
|
|
93
92
|
rules: l(v)
|
|
@@ -132,5 +131,5 @@ const T = { class: "dialog-footer" }, W = /* @__PURE__ */ k({
|
|
|
132
131
|
}
|
|
133
132
|
});
|
|
134
133
|
export {
|
|
135
|
-
|
|
134
|
+
J as _
|
|
136
135
|
};
|