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,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b9 as l, a0 as d, aj as D, Y as O, s as R, aq as $, ai as k, t as F, au as j } from "./index-CPqNZOs9.mjs";
|
|
2
2
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
function
|
|
3
|
+
import { defineComponent as S, toRef as U, ref as B, reactive as V, openBlock as M, createBlock as A, withCtx as i, createElementVNode as P, createVNode as s, createTextVNode as C, toDisplayString as E, unref as u } from "vue";
|
|
4
|
+
function L(e) {
|
|
5
5
|
return l({
|
|
6
6
|
url: "/v1/rbac/operation/page",
|
|
7
7
|
method: "get",
|
|
8
8
|
params: e
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function T(e) {
|
|
12
12
|
return l({
|
|
13
13
|
url: "/v1/rbac/operation",
|
|
14
14
|
method: "post",
|
|
15
15
|
data: e
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Y(e) {
|
|
19
19
|
return l({
|
|
20
20
|
url: "/v1/rbac/operation",
|
|
21
21
|
method: "patch",
|
|
22
22
|
data: e
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Q(e) {
|
|
26
26
|
const n = {
|
|
27
27
|
tenant: d().user.tenant,
|
|
28
28
|
operationId: e
|
|
@@ -33,7 +33,7 @@ function K(e) {
|
|
|
33
33
|
params: n
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function W(e) {
|
|
37
37
|
const n = {
|
|
38
38
|
tenant: d().user.tenant,
|
|
39
39
|
operationId: e
|
|
@@ -44,7 +44,7 @@ function Q(e) {
|
|
|
44
44
|
params: n
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function X(e) {
|
|
48
48
|
const n = {
|
|
49
49
|
tenant: d().user.tenant,
|
|
50
50
|
operationId: e
|
|
@@ -66,7 +66,7 @@ function Z(e) {
|
|
|
66
66
|
data: n
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function x(e) {
|
|
70
70
|
return l({
|
|
71
71
|
url: "/v1/rbac/operation/check",
|
|
72
72
|
method: "get",
|
|
@@ -76,7 +76,7 @@ function W(e) {
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const z = { class: "dialog-footer" }, ee = /* @__PURE__ */ S({
|
|
80
80
|
__name: "edit",
|
|
81
81
|
props: {
|
|
82
82
|
formData: {
|
|
@@ -93,7 +93,7 @@ const X = { class: "dialog-footer" }, ee = /* @__PURE__ */ U({
|
|
|
93
93
|
emits: ["dialogEvent", "refresh"],
|
|
94
94
|
setup(e, { emit: n }) {
|
|
95
95
|
var _;
|
|
96
|
-
const { t: c } = D(),
|
|
96
|
+
const { t: c } = D(), b = e, g = U(b, "dialog"), v = B();
|
|
97
97
|
let o = V({
|
|
98
98
|
tenant: d().user.tenant,
|
|
99
99
|
requestId: Math.random() * 10 + "",
|
|
@@ -106,7 +106,7 @@ const X = { class: "dialog-footer" }, ee = /* @__PURE__ */ U({
|
|
|
106
106
|
{
|
|
107
107
|
required: !0,
|
|
108
108
|
validator: (r, a, t) => {
|
|
109
|
-
a === "" ? t(new Error(c("sysOperation.codeRequired"))) : o.operationId ? t() :
|
|
109
|
+
a === "" ? t(new Error(c("sysOperation.codeRequired"))) : o.operationId ? t() : x(a).then(({ data: f }) => {
|
|
110
110
|
f === !0 ? t(new Error("该编码已存在")) : t();
|
|
111
111
|
});
|
|
112
112
|
},
|
|
@@ -123,12 +123,12 @@ const X = { class: "dialog-footer" }, ee = /* @__PURE__ */ U({
|
|
|
123
123
|
}), p = n, I = async () => {
|
|
124
124
|
var r;
|
|
125
125
|
await ((r = v.value) == null ? void 0 : r.validate((a) => {
|
|
126
|
-
a && (o.operationId ?
|
|
126
|
+
a && (o.operationId ? Y(o).then((t) => {
|
|
127
127
|
console.log(t), t.status === 200 && (O({
|
|
128
128
|
message: c("common.submitSuccess"),
|
|
129
129
|
type: "success"
|
|
130
130
|
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
131
|
-
}) :
|
|
131
|
+
}) : T(o).then((t) => {
|
|
132
132
|
console.log(t), t.status === 200 && (O({
|
|
133
133
|
message: c("common.submitSuccess"),
|
|
134
134
|
type: "success"
|
|
@@ -139,17 +139,17 @@ const X = { class: "dialog-footer" }, ee = /* @__PURE__ */ U({
|
|
|
139
139
|
function h() {
|
|
140
140
|
p("dialogEvent", !1);
|
|
141
141
|
}
|
|
142
|
-
return (_ =
|
|
143
|
-
const t = R, f = $, N = k, y = F, w =
|
|
142
|
+
return (_ = b.formData) != null && _.operationId && (o = Object.assign(o, b.formData)), (r, a) => {
|
|
143
|
+
const t = R, f = $, N = k, y = F, w = j;
|
|
144
144
|
return M(), A(w, {
|
|
145
|
-
modelValue:
|
|
146
|
-
"onUpdate:modelValue": a[2] || (a[2] = (m) =>
|
|
147
|
-
title:
|
|
145
|
+
modelValue: g.value.visible,
|
|
146
|
+
"onUpdate:modelValue": a[2] || (a[2] = (m) => g.value.visible = m),
|
|
147
|
+
title: g.value.title,
|
|
148
148
|
width: "600px",
|
|
149
149
|
onClose: h
|
|
150
150
|
}, {
|
|
151
151
|
footer: i(() => [
|
|
152
|
-
P("div",
|
|
152
|
+
P("div", z, [
|
|
153
153
|
s(y, { onClick: h }, {
|
|
154
154
|
default: i(() => [
|
|
155
155
|
C(E(r.$t("common.cancel")), 1)
|
|
@@ -216,9 +216,9 @@ const X = { class: "dialog-footer" }, ee = /* @__PURE__ */ U({
|
|
|
216
216
|
});
|
|
217
217
|
export {
|
|
218
218
|
ee as _,
|
|
219
|
-
|
|
219
|
+
X as a,
|
|
220
220
|
Z as b,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
Q as d,
|
|
222
|
+
L as g,
|
|
223
|
+
W as m
|
|
224
224
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aj as X, a0 as U, b4 as Z, Y as j, s as ee, aq as oe, ao as le, ap as te, b5 as ae, b6 as re, b7 as se, b8 as ne, ai as de, t as ue, au as me } from "./index-CPqNZOs9.mjs";
|
|
2
2
|
import "./el-checkbox-group-l0sNRNKZ.mjs";
|
|
3
3
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
4
|
-
import { defineComponent as ie, ref as u, reactive as
|
|
5
|
-
import { p as be } from "./index-
|
|
6
|
-
import { m as he } from "./index-
|
|
7
|
-
import { e as ge, a as _e } from "./index-
|
|
4
|
+
import { defineComponent as ie, ref as u, reactive as F, toRef as pe, openBlock as f, createBlock as E, unref as a, 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";
|
|
5
|
+
import { p as be } from "./index-CYAfQz-w.mjs";
|
|
6
|
+
import { m as he } from "./index-BYYYSOkP.mjs";
|
|
7
|
+
import { e as ge, a as _e } from "./index-BeFhB4ZJ.mjs";
|
|
8
8
|
const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
9
9
|
__name: "edit",
|
|
10
10
|
props: {
|
|
@@ -20,10 +20,10 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
emits: ["dialogEvent", "refresh"],
|
|
23
|
-
setup(
|
|
23
|
+
setup(S, { emit: T }) {
|
|
24
24
|
var R;
|
|
25
|
-
const { t: m } =
|
|
26
|
-
let l =
|
|
25
|
+
const { t: m } = X(), v = u();
|
|
26
|
+
let l = F({
|
|
27
27
|
tenant: U().user.tenant,
|
|
28
28
|
requestId: Math.random() * 10 + "",
|
|
29
29
|
roleType: "job",
|
|
@@ -34,7 +34,7 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
34
34
|
description: "",
|
|
35
35
|
permCodes: []
|
|
36
36
|
});
|
|
37
|
-
const
|
|
37
|
+
const M = F({
|
|
38
38
|
roleCode: [{ required: !0, validator: (e, o, t) => {
|
|
39
39
|
if (o === "")
|
|
40
40
|
t(new Error(m("sysJob.codeRequired")));
|
|
@@ -57,16 +57,16 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
57
57
|
let k = u([]);
|
|
58
58
|
const h = u(!1), _ = u(!1), w = u();
|
|
59
59
|
let i = u([]);
|
|
60
|
-
const p =
|
|
60
|
+
const p = T, y = S, C = pe(y, "dialog"), O = async () => {
|
|
61
61
|
var e;
|
|
62
62
|
await ((e = v.value) == null ? void 0 : e.validate((o) => {
|
|
63
63
|
o && (l.roleId ? ge(l).then((t) => {
|
|
64
|
-
console.log(t), t.status === 200 && (
|
|
64
|
+
console.log(t), t.status === 200 && (j({
|
|
65
65
|
message: m("common.submitSuccess"),
|
|
66
66
|
type: "success"
|
|
67
67
|
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
68
68
|
}) : _e(l).then((t) => {
|
|
69
|
-
console.log(t), t.status === 200 && (
|
|
69
|
+
console.log(t), t.status === 200 && (j({
|
|
70
70
|
message: m("common.submitSuccess"),
|
|
71
71
|
type: "success"
|
|
72
72
|
}), p("dialogEvent", !1), p("refresh", t.status === 200));
|
|
@@ -81,7 +81,7 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
81
81
|
w.value = e.results, J(e.results);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function L() {
|
|
85
85
|
he().then(({ data: e }) => {
|
|
86
86
|
k.value = e.results;
|
|
87
87
|
});
|
|
@@ -104,9 +104,9 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
104
104
|
const o = e.length;
|
|
105
105
|
h.value = o === i.value.length, _.value = o > 0 && o < i.value.length;
|
|
106
106
|
}
|
|
107
|
-
return N(),
|
|
108
|
-
const t = ee, d = oe, V = le,
|
|
109
|
-
return f(), E(
|
|
107
|
+
return N(), L(), (R = y.formData) != null && R.roleId && (l = Object.assign(l, y.formData)), (e, o) => {
|
|
108
|
+
const t = ee, d = oe, V = le, Y = te, q = ae, $ = re, H = se, K = ne, Q = de, D = ue, W = me;
|
|
109
|
+
return f(), E(W, {
|
|
110
110
|
title: a(C).title,
|
|
111
111
|
modelValue: a(C).visible,
|
|
112
112
|
"onUpdate:modelValue": o[6] || (o[6] = (r) => a(C).visible = r),
|
|
@@ -123,7 +123,7 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
123
123
|
}),
|
|
124
124
|
s(D, {
|
|
125
125
|
type: "primary",
|
|
126
|
-
onClick:
|
|
126
|
+
onClick: O
|
|
127
127
|
}, {
|
|
128
128
|
default: n(() => [
|
|
129
129
|
g(b(e.$t("common.confirm")), 1)
|
|
@@ -133,11 +133,11 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
133
133
|
])
|
|
134
134
|
]),
|
|
135
135
|
default: n(() => [
|
|
136
|
-
s(
|
|
136
|
+
s(Q, {
|
|
137
137
|
ref_key: "jobFormRef",
|
|
138
138
|
ref: v,
|
|
139
139
|
model: a(l),
|
|
140
|
-
rules: a(
|
|
140
|
+
rules: a(M),
|
|
141
141
|
"label-width": "160px"
|
|
142
142
|
}, {
|
|
143
143
|
default: n(() => [
|
|
@@ -178,7 +178,7 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
178
178
|
prop: "permCodes"
|
|
179
179
|
}, {
|
|
180
180
|
default: n(() => [
|
|
181
|
-
s(
|
|
181
|
+
s(Y, {
|
|
182
182
|
modelValue: a(l).moduleId,
|
|
183
183
|
"onUpdate:modelValue": o[2] || (o[2] = (r) => a(l).moduleId = r),
|
|
184
184
|
clearable: "",
|
|
@@ -206,7 +206,7 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}, 8, ["modelValue", "indeterminate"]),
|
|
209
|
-
s(
|
|
209
|
+
s(K, {
|
|
210
210
|
data: a(w),
|
|
211
211
|
"row-key": "resourceId",
|
|
212
212
|
border: "",
|
|
@@ -220,7 +220,7 @@ const ye = { class: "dialog-footer" }, Je = /* @__PURE__ */ ie({
|
|
|
220
220
|
}),
|
|
221
221
|
s($, { prop: "resourceName" }, {
|
|
222
222
|
default: n((r) => [
|
|
223
|
-
s(
|
|
223
|
+
s(H, {
|
|
224
224
|
modelValue: a(l).permCodes,
|
|
225
225
|
"onUpdate:modelValue": o[4] || (o[4] = (c) => a(l).permCodes = c),
|
|
226
226
|
onChange: G
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aj as N, a0 as R, Y as y, s as $, aq as w, ai as D, t as F, au as U } from "./index-CPqNZOs9.mjs";
|
|
2
2
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { e as
|
|
5
|
-
const
|
|
3
|
+
import { defineComponent as j, toRef as k, ref as S, reactive as V, openBlock as B, createBlock as O, withCtx as a, createElementVNode as z, createVNode as d, createTextVNode as _, toDisplayString as M, unref as s } from "vue";
|
|
4
|
+
import { e as A, f as T, h as Y } from "./index-BYYYSOkP.mjs";
|
|
5
|
+
const G = { class: "dialog-footer" }, Q = /* @__PURE__ */ j({
|
|
6
6
|
__name: "edit",
|
|
7
7
|
props: {
|
|
8
8
|
formData: {
|
|
@@ -19,9 +19,9 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
19
19
|
emits: ["dialogEvent", "refresh"],
|
|
20
20
|
setup(v, { emit: C }) {
|
|
21
21
|
var g;
|
|
22
|
-
const { t: i } =
|
|
22
|
+
const { t: i } = N(), n = v, p = k(n, "dialog"), c = S();
|
|
23
23
|
let o = V({
|
|
24
|
-
tenant:
|
|
24
|
+
tenant: R().user.tenant,
|
|
25
25
|
moduleId: "",
|
|
26
26
|
moduleCode: "",
|
|
27
27
|
moduleName: "",
|
|
@@ -32,7 +32,7 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
32
32
|
const E = V({
|
|
33
33
|
moduleCode: [
|
|
34
34
|
{ required: !0, validator: (t, l, e) => {
|
|
35
|
-
l === "" ? e(new Error(i("sysModule.codeRequired"))) : o.moduleId ? e() :
|
|
35
|
+
l === "" ? e(new Error(i("sysModule.codeRequired"))) : o.moduleId ? e() : A(l).then(({ data: m }) => {
|
|
36
36
|
m === !0 ? e(new Error("该编码已存在")) : e();
|
|
37
37
|
});
|
|
38
38
|
}, trigger: "blur" }
|
|
@@ -43,12 +43,12 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
43
43
|
}), r = C, h = async () => {
|
|
44
44
|
var t;
|
|
45
45
|
await ((t = c.value) == null ? void 0 : t.validate((l) => {
|
|
46
|
-
l && (o.moduleId ?
|
|
46
|
+
l && (o.moduleId ? T(o).then((e) => {
|
|
47
47
|
console.log(e), e.status === 200 && (y({
|
|
48
48
|
message: i("common.submitSuccess"),
|
|
49
49
|
type: "success"
|
|
50
50
|
}), r("dialogEvent", !1), r("refresh", e.status === 200));
|
|
51
|
-
}) :
|
|
51
|
+
}) : Y(o).then((e) => {
|
|
52
52
|
console.log(e), e.status === 200 && (y({
|
|
53
53
|
message: i("common.submitSuccess"),
|
|
54
54
|
type: "success"
|
|
@@ -60,8 +60,8 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
60
60
|
r("dialogEvent", !1);
|
|
61
61
|
}
|
|
62
62
|
return (g = n.formData) != null && g.moduleId && (o = Object.assign(o, n.formData)), (t, l) => {
|
|
63
|
-
const e = $, m = w,
|
|
64
|
-
return B(), O(
|
|
63
|
+
const e = $, m = w, q = D, b = F, I = U;
|
|
64
|
+
return B(), O(I, {
|
|
65
65
|
modelValue: p.value.visible,
|
|
66
66
|
"onUpdate:modelValue": l[3] || (l[3] = (u) => p.value.visible = u),
|
|
67
67
|
title: p.value.title,
|
|
@@ -69,7 +69,7 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
69
69
|
onClose: f
|
|
70
70
|
}, {
|
|
71
71
|
footer: a(() => [
|
|
72
|
-
|
|
72
|
+
z("div", G, [
|
|
73
73
|
d(b, { onClick: f }, {
|
|
74
74
|
default: a(() => [
|
|
75
75
|
_(M(t.$t("common.cancel")), 1)
|
|
@@ -88,7 +88,7 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
90
90
|
default: a(() => [
|
|
91
|
-
d(
|
|
91
|
+
d(q, {
|
|
92
92
|
ref_key: "moduleFormRef",
|
|
93
93
|
ref: c,
|
|
94
94
|
model: s(o),
|
|
@@ -151,5 +151,5 @@ const W = { class: "dialog-footer" }, P = /* @__PURE__ */ k({
|
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
export {
|
|
154
|
-
|
|
154
|
+
Q as _
|
|
155
155
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aj as I, a0 as R, Y as b, s as w, aq as D, ai as $, t as F, au as j } from "./index-CPqNZOs9.mjs";
|
|
2
2
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { c as A, e as
|
|
5
|
-
const
|
|
3
|
+
import { defineComponent as k, ref as S, reactive as y, toRef as U, openBlock as B, createBlock as M, unref as a, withCtx as l, createElementVNode as O, createVNode as s, createTextVNode as V, toDisplayString as C } from "vue";
|
|
4
|
+
import { c as A, e as T, a as Y } from "./index-CYAfQz-w.mjs";
|
|
5
|
+
const x = { class: "dialog-footer" }, L = /* @__PURE__ */ k({
|
|
6
6
|
__name: "edit",
|
|
7
7
|
props: {
|
|
8
8
|
formData: {
|
|
@@ -19,9 +19,9 @@ const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
|
19
19
|
emits: ["dialogEvent", "refresh"],
|
|
20
20
|
setup(E, { emit: h }) {
|
|
21
21
|
var g;
|
|
22
|
-
const { t: i } =
|
|
22
|
+
const { t: i } = I(), c = S();
|
|
23
23
|
let o = y({
|
|
24
|
-
tenant:
|
|
24
|
+
tenant: R().user.tenant,
|
|
25
25
|
requestId: Math.random() * 10 + "",
|
|
26
26
|
permCode: "",
|
|
27
27
|
permName: "",
|
|
@@ -36,15 +36,15 @@ const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
|
36
36
|
permName: [
|
|
37
37
|
{ required: !0, message: i("sysPerm.nameRequired"), trigger: "blur" }
|
|
38
38
|
]
|
|
39
|
-
}), u = E, p =
|
|
39
|
+
}), u = E, p = U(u, "dialog"), m = h, N = async () => {
|
|
40
40
|
var r;
|
|
41
41
|
await ((r = c.value) == null ? void 0 : r.validate((t) => {
|
|
42
|
-
t && (o.permId ?
|
|
42
|
+
t && (o.permId ? T(o).then((e) => {
|
|
43
43
|
console.log(e), e.status === 200 && (b({
|
|
44
44
|
message: i("common.submitSuccess"),
|
|
45
45
|
type: "success"
|
|
46
46
|
}), m("dialogEvent", !1), m("refresh", e.status === 200));
|
|
47
|
-
}) :
|
|
47
|
+
}) : Y(o).then((e) => {
|
|
48
48
|
console.log(e), e.status === 200 && (b({
|
|
49
49
|
message: i("common.submitSuccess"),
|
|
50
50
|
type: "success"
|
|
@@ -56,18 +56,18 @@ const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
|
56
56
|
m("dialogEvent", !1);
|
|
57
57
|
}
|
|
58
58
|
return (g = u.formData) != null && g.permId && (o = Object.assign(o, u.formData)), (r, t) => {
|
|
59
|
-
const e =
|
|
60
|
-
return B(), M(
|
|
61
|
-
modelValue:
|
|
62
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) =>
|
|
63
|
-
title:
|
|
59
|
+
const e = w, n = D, P = $, _ = F, q = j;
|
|
60
|
+
return B(), M(q, {
|
|
61
|
+
modelValue: a(p).visible,
|
|
62
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => a(p).visible = d),
|
|
63
|
+
title: a(p).title,
|
|
64
64
|
width: "600px",
|
|
65
65
|
onClose: f
|
|
66
66
|
}, {
|
|
67
|
-
footer:
|
|
68
|
-
O("div",
|
|
67
|
+
footer: l(() => [
|
|
68
|
+
O("div", x, [
|
|
69
69
|
s(_, { onClick: f }, {
|
|
70
|
-
default:
|
|
70
|
+
default: l(() => [
|
|
71
71
|
V(C(r.$t("common.cancel")), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
@@ -76,32 +76,32 @@ const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
|
76
76
|
type: "primary",
|
|
77
77
|
onClick: N
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
79
|
+
default: l(() => [
|
|
80
80
|
V(C(r.$t("common.confirm")), 1)
|
|
81
81
|
]),
|
|
82
82
|
_: 1
|
|
83
83
|
})
|
|
84
84
|
])
|
|
85
85
|
]),
|
|
86
|
-
default:
|
|
86
|
+
default: l(() => [
|
|
87
87
|
s(P, {
|
|
88
88
|
ref_key: "permissionFormRef",
|
|
89
89
|
ref: c,
|
|
90
|
-
model:
|
|
90
|
+
model: a(o),
|
|
91
91
|
"label-width": "160px",
|
|
92
|
-
rules:
|
|
92
|
+
rules: a(v)
|
|
93
93
|
}, {
|
|
94
|
-
default:
|
|
94
|
+
default: l(() => [
|
|
95
95
|
s(n, {
|
|
96
96
|
label: r.$t("sysPerm.code"),
|
|
97
97
|
prop: "permCode"
|
|
98
98
|
}, {
|
|
99
|
-
default:
|
|
99
|
+
default: l(() => [
|
|
100
100
|
s(e, {
|
|
101
|
-
modelValue:
|
|
102
|
-
"onUpdate:modelValue": t[0] || (t[0] = (d) =>
|
|
101
|
+
modelValue: a(o).permCode,
|
|
102
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => a(o).permCode = d),
|
|
103
103
|
placeholder: r.$t("sysPerm.codeRequired"),
|
|
104
|
-
disabled: !!
|
|
104
|
+
disabled: !!a(o).permId,
|
|
105
105
|
clearable: ""
|
|
106
106
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
107
107
|
]),
|
|
@@ -111,10 +111,10 @@ const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
|
111
111
|
label: r.$t("sysPerm.name"),
|
|
112
112
|
prop: "permName"
|
|
113
113
|
}, {
|
|
114
|
-
default:
|
|
114
|
+
default: l(() => [
|
|
115
115
|
s(e, {
|
|
116
|
-
modelValue:
|
|
117
|
-
"onUpdate:modelValue": t[1] || (t[1] = (d) =>
|
|
116
|
+
modelValue: a(o).permName,
|
|
117
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => a(o).permName = d),
|
|
118
118
|
placeholder: r.$t("sysPerm.nameRequired"),
|
|
119
119
|
clearable: ""
|
|
120
120
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -131,5 +131,5 @@ const W = { class: "dialog-footer" }, J = /* @__PURE__ */ S({
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
L as _
|
|
135
135
|
};
|