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.
Files changed (212) hide show
  1. package/dist/401-DZeMj80g.mjs +103 -0
  2. package/dist/404-D1KiG-19.mjs +37 -0
  3. package/dist/BarChart-BYm859ri.mjs +203 -0
  4. package/dist/FileSaver.min-DJ2XURfB.mjs +77 -0
  5. package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
  6. package/dist/PieChart-BRbbIH3_.mjs +4 -0
  7. package/dist/PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs +90 -0
  8. package/dist/RadarChart-Bk_uy6Km.mjs +4 -0
  9. package/dist/RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs +109 -0
  10. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  11. package/dist/caret-bottom-DGvkHVYd.mjs +59 -0
  12. package/dist/common-DuVBTwAv.mjs +36 -0
  13. package/dist/debounce-XYByYe_I.mjs +81 -0
  14. package/dist/dropdown2-D_RJXnOl.mjs +160 -0
  15. package/dist/edit-BTjApg1x.mjs +468 -0
  16. package/dist/edit-BcLHrCSo.mjs +4 -0
  17. package/dist/edit-DC3SyT6J.mjs +4 -0
  18. package/dist/edit-DmP9tv3r.mjs +4 -0
  19. package/dist/edit-Dr-9X4r3.mjs +4 -0
  20. package/dist/edit-FjRAXd1B.mjs +832 -0
  21. package/dist/edit-bpHMc65Q.mjs +4 -0
  22. package/dist/edit-lB54egzx.mjs +4 -0
  23. package/dist/edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs +621 -0
  24. package/dist/edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs +221 -0
  25. package/dist/edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs +225 -0
  26. package/dist/edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs +156 -0
  27. package/dist/edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs +287 -0
  28. package/dist/edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs +136 -0
  29. package/dist/el-card-Da9MvaWO.mjs +61 -0
  30. package/dist/el-checkbox-B44P9jFr.mjs +548 -0
  31. package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
  32. package/dist/el-col-BY0nB6k3.mjs +135 -0
  33. package/dist/el-date-picker-CVwJoDEA.mjs +3349 -0
  34. package/dist/el-dialog-CSWvTJrq.mjs +378 -0
  35. package/dist/el-dropdown-item-CD8hUpml.mjs +675 -0
  36. package/dist/el-form-item-f-baJSfe.mjs +1489 -0
  37. package/dist/el-icon-l0sNRNKZ.mjs +1 -0
  38. package/dist/el-popover-D8RrIMbA.mjs +159 -0
  39. package/dist/el-popper-C13p_dqu.mjs +1656 -0
  40. package/dist/el-progress-CHUzIxT1.mjs +898 -0
  41. package/dist/el-radio-BpdPD-RN.mjs +251 -0
  42. package/dist/el-scrollbar-B8QteGV0.mjs +607 -0
  43. package/dist/el-select-ChOy6agQ.mjs +1040 -0
  44. package/dist/el-switch-cqWxQwcb.mjs +254 -0
  45. package/dist/el-table-c9Sup56w.mjs +3168 -0
  46. package/dist/el-tag-l0sNRNKZ.mjs +1 -0
  47. package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
  48. package/dist/el-tree-select-CKOwMXR7.mjs +1316 -0
  49. package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs +116 -0
  50. package/dist/index-B6wY38lY.mjs +13173 -0
  51. package/dist/index-BH-_mfRR.mjs +107 -0
  52. package/dist/index-BfhiNV8H.mjs +486 -0
  53. package/dist/index-BjqMDjBg.mjs +43994 -0
  54. package/dist/index-BuHauank.mjs +13 -0
  55. package/dist/index-CBJwB8q2.mjs +633 -0
  56. package/dist/index-CGCQHwLq.mjs +482 -0
  57. package/dist/index-CU0iVHXP.mjs +281 -0
  58. package/dist/index-CYxGYOaT.mjs +504 -0
  59. package/dist/index-Cjii0qCc.mjs +278 -0
  60. package/dist/index-Czh2Pqwr.mjs +63 -0
  61. package/dist/index-DJ08yxAP.mjs +11 -0
  62. package/dist/index-DUKlDGLk.mjs +2589 -0
  63. package/dist/index-DUVtKaDI.mjs +515 -0
  64. package/dist/index-Dgd4Zhxz.mjs +93 -0
  65. package/dist/index-Di5--Hao.mjs +328 -0
  66. package/dist/index-DjkMA-Wh.mjs +40 -0
  67. package/dist/index-DrKW_cyG.mjs +247 -0
  68. package/dist/index-LuiPOgGW.mjs +291 -0
  69. package/dist/index-VD-Tf32c.mjs +74 -0
  70. package/dist/index-cRrjzkNb.mjs +452 -0
  71. package/dist/index-cp7l4CIE.mjs +134 -0
  72. package/dist/index-dKz1IRM_.mjs +279 -0
  73. package/dist/index-dLPnFa10.mjs +964 -0
  74. package/dist/index-uykKwY2Z.mjs +12 -0
  75. package/dist/index-vp1_Sd0A.mjs +55 -0
  76. package/dist/index.mjs +22 -273
  77. package/dist/index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs +286 -0
  78. package/dist/index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs +58 -0
  79. package/dist/isUndefined-CUQZk6oB.mjs +6 -0
  80. package/dist/moment-CMYwqyVT.mjs +2579 -0
  81. package/dist/picture-kDaEiPHi.mjs +599 -0
  82. package/dist/profile-Sn98YUfh.mjs +319 -0
  83. package/dist/refs-COP_DuTD.mjs +9 -0
  84. package/dist/style.css +1 -1
  85. package/dist/types-BolK_Oyb.mjs +205 -0
  86. package/dist/updatePwd-B3rEU05i.mjs +4 -0
  87. package/dist/updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs +151 -0
  88. package/dist/useColumnToggleTable-CC9EXcfR.mjs +272 -0
  89. package/dts/src/App.vue.d.ts +1 -1
  90. package/dts/src/api/auth/index.d.ts +41 -0
  91. package/dts/src/api/auth/types.d.ts +180 -0
  92. package/dts/src/api/file/index.d.ts +14 -0
  93. package/dts/src/api/file/types.d.ts +7 -0
  94. package/dts/src/api/system/dept/index.d.ts +91 -0
  95. package/dts/src/api/system/dept/types.d.ts +63 -0
  96. package/dts/src/api/system/index.d.ts +7 -0
  97. package/dts/src/api/system/job/index.d.ts +42 -0
  98. package/dts/src/api/system/job/types.d.ts +60 -0
  99. package/dts/src/api/system/log/index.d.ts +29 -0
  100. package/dts/src/api/system/log/types.d.ts +42 -0
  101. package/dts/src/api/system/menu/index.d.ts +103 -0
  102. package/dts/src/api/system/menu/types.d.ts +96 -0
  103. package/dts/src/api/system/module/index.d.ts +57 -0
  104. package/dts/src/api/system/module/types.d.ts +13 -0
  105. package/dts/src/api/system/operation/index.d.ts +51 -0
  106. package/dts/src/api/system/operation/types.d.ts +12 -0
  107. package/dts/src/api/system/permission/index.d.ts +50 -0
  108. package/dts/src/api/system/permission/types.d.ts +12 -0
  109. package/dts/src/api/system/role/index.d.ts +77 -0
  110. package/dts/src/api/system/role/types.d.ts +26 -0
  111. package/dts/src/api/system/user/index.d.ts +133 -0
  112. package/dts/src/api/system/user/types.d.ts +53 -0
  113. package/dts/src/api/system/userLog/index.d.ts +29 -0
  114. package/dts/src/api/system/userLog/types.d.ts +22 -0
  115. package/dts/src/assets/icons/index.d.ts +0 -0
  116. package/dts/src/components/{icons/IconDocumentation.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
  117. package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
  118. package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
  119. package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
  120. package/dts/src/components/{TheWelcome.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
  121. package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
  122. package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
  123. package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
  124. package/dts/src/components/{icons/IconEcosystem.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
  125. package/dts/src/components/Pagination/index.vue.d.ts +88 -0
  126. package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
  127. package/dts/src/components/{icons/IconCommunity.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
  128. package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
  129. package/dts/src/components/Table/index.vue.d.ts +73 -0
  130. package/dts/src/components/TableSet/index.vue.d.ts +29 -0
  131. package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
  132. package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
  133. package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
  134. package/dts/src/components/Upload/index.vue.d.ts +18 -0
  135. package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
  136. package/dts/src/directive/index.d.ts +5 -0
  137. package/dts/src/directive/permission/index.d.ts +9 -0
  138. package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
  139. package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
  140. package/dts/src/index.d.ts +29 -3
  141. package/dts/src/lang/index.d.ts +534 -0
  142. package/dts/src/lang/package/en.d.ts +261 -0
  143. package/dts/src/lang/package/zh-cn.d.ts +275 -0
  144. package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
  145. package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
  146. package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
  147. package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
  148. package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
  149. package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
  150. package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
  151. package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
  152. package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
  153. package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
  154. package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
  155. package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
  156. package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
  157. package/dts/src/layout/components/index.d.ts +4 -0
  158. package/dts/src/layout/index.vue.d.ts +2 -0
  159. package/dts/src/layout/main.vue.d.ts +2 -0
  160. package/dts/src/main.d.ts +5 -1
  161. package/dts/src/permission.d.ts +1 -0
  162. package/dts/src/router/index.d.ts +10 -0
  163. package/dts/src/settings.d.ts +13 -0
  164. package/dts/src/stores/index.d.ts +7 -0
  165. package/dts/src/stores/modules/tagsView.d.ts +82 -0
  166. package/dts/src/utils/common.d.ts +6 -0
  167. package/dts/src/utils/grpc.d.ts +2 -0
  168. package/dts/src/utils/i18n.d.ts +1 -0
  169. package/dts/src/utils/index.d.ts +24 -0
  170. package/dts/src/utils/request.d.ts +2 -0
  171. package/dts/src/utils/resize.d.ts +1 -0
  172. package/dts/src/utils/scroll-to.d.ts +6 -0
  173. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
  174. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
  175. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
  176. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
  177. package/dts/src/views/dashboard/index.vue.d.ts +2 -0
  178. package/dts/src/views/error-page/401.vue.d.ts +2 -0
  179. package/dts/src/views/error-page/404.vue.d.ts +2 -0
  180. package/dts/src/views/login/components/types.vue.d.ts +2 -0
  181. package/dts/src/views/login/index.vue.d.ts +2 -0
  182. package/dts/src/views/my/profile.vue.d.ts +2 -0
  183. package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
  184. package/dts/src/views/redirect/index.vue.d.ts +2 -0
  185. package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
  186. package/dts/src/views/system/dept/index.vue.d.ts +2 -0
  187. package/dts/src/views/system/job/edit.vue.d.ts +30 -0
  188. package/dts/src/views/system/job/index.vue.d.ts +2 -0
  189. package/dts/src/views/system/log/index.vue.d.ts +2 -0
  190. package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
  191. package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
  192. package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
  193. package/dts/src/views/system/menu/index.vue.d.ts +2 -0
  194. package/dts/src/views/system/module/edit.vue.d.ts +31 -0
  195. package/dts/src/views/system/module/index.vue.d.ts +2 -0
  196. package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
  197. package/dts/src/views/system/operation/index.vue.d.ts +2 -0
  198. package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
  199. package/dts/src/views/system/permission/index.vue.d.ts +2 -0
  200. package/dts/src/views/system/role/edit.vue.d.ts +31 -0
  201. package/dts/src/views/system/role/index.vue.d.ts +2 -0
  202. package/dts/src/views/system/user/edit.vue.d.ts +31 -0
  203. package/dts/src/views/system/user/index.vue.d.ts +2 -0
  204. package/dts/tsconfig.tsbuildinfo +1 -1
  205. package/package.json +31 -2
  206. package/dts/src/components/HelloWorld.vue.d.ts +0 -15
  207. package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
  208. package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
  209. package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
  210. package/dts/src/stores/counter.d.ts +0 -13
  211. package/dts/src/views/AboutView.vue.d.ts +0 -2
  212. package/dts/src/views/HomeView.vue.d.ts +0 -2
@@ -0,0 +1,221 @@
1
+ import { a as F, d as S, E, f as j, h as T } from "./index-B6wY38lY.mjs";
2
+ import { E as B } from "./el-dialog-CSWvTJrq.mjs";
3
+ import { a as M, E as O } from "./el-form-item-f-baJSfe.mjs";
4
+ import { E as z, a as A } from "./el-radio-BpdPD-RN.mjs";
5
+ import "./el-tag-l0sNRNKZ.mjs";
6
+ import "./el-select-ChOy6agQ.mjs";
7
+ import "./el-scrollbar-B8QteGV0.mjs";
8
+ import "./el-popper-C13p_dqu.mjs";
9
+ import { E as G } from "./el-tree-select-CKOwMXR7.mjs";
10
+ import "./el-checkbox-B44P9jFr.mjs";
11
+ import { defineComponent as H, ref as h, reactive as v, toRef as J, openBlock as K, createBlock as L, withCtx as a, createElementVNode as P, createVNode as o, createTextVNode as u, toDisplayString as f, unref as d } from "vue";
12
+ import { t as Q, j as W, k as X } from "./index-cp7l4CIE.mjs";
13
+ const Y = { class: "dialog-footer" }, ie = /* @__PURE__ */ H({
14
+ __name: "edit",
15
+ props: {
16
+ formData: {
17
+ type: Object,
18
+ default: () => {
19
+ }
20
+ },
21
+ dialog: {
22
+ type: Object,
23
+ default: () => {
24
+ }
25
+ }
26
+ },
27
+ emits: ["dialogEvent", "refresh"],
28
+ setup(I, { emit: $ }) {
29
+ var _;
30
+ const { t: i } = F(), b = h(), y = h([]);
31
+ let t = v({
32
+ tenant: S().user.tenant,
33
+ requestId: Math.random() * 10 + "",
34
+ updateMask: "deptType,deptCode,deptName,parentId,description,status",
35
+ deptCode: "",
36
+ deptName: "",
37
+ parentId: "",
38
+ deptType: "dept",
39
+ description: "",
40
+ status: !0
41
+ });
42
+ const w = v({
43
+ deptCode: [
44
+ { required: !0, message: i("sysDept.codeRequired"), trigger: "blur" }
45
+ ],
46
+ deptName: [
47
+ { required: !0, message: i("sysDept.nameRequired"), trigger: "blur" }
48
+ ]
49
+ }), p = $, m = I, c = J(m, "dialog");
50
+ function R() {
51
+ var e;
52
+ Q((e = m.formData) == null ? void 0 : e.deptId).then(({ data: l }) => {
53
+ y.value = l.results;
54
+ });
55
+ }
56
+ (_ = m.formData) != null && _.deptId && (t = Object.assign(t, m.formData), t.parentId === "00000000-0000-0000-0000-000000000000" && (t.parentId = ""));
57
+ function g() {
58
+ p("dialogEvent", !1);
59
+ }
60
+ async function C() {
61
+ var e;
62
+ await ((e = b.value) == null ? void 0 : e.validate((l) => {
63
+ l && (t.deptId ? W(t).then((r) => {
64
+ r.status === 200 && (E({
65
+ message: i("common.submitSuccess"),
66
+ type: "success"
67
+ }), p("dialogEvent", !1), p("refresh", r.status === 200));
68
+ }) : X(t).then((r) => {
69
+ r.status === 200 && (E({
70
+ message: i("common.submitSuccess"),
71
+ type: "success"
72
+ }), p("dialogEvent", !1), p("refresh", r.status === 200));
73
+ }));
74
+ }));
75
+ }
76
+ return R(), (e, l) => {
77
+ const r = j, n = M, q = G, D = z, N = A, k = O, V = T, U = B;
78
+ return K(), L(U, {
79
+ title: c.value.title,
80
+ modelValue: c.value.visible,
81
+ "onUpdate:modelValue": l[5] || (l[5] = (s) => c.value.visible = s),
82
+ width: "800px",
83
+ onClose: g
84
+ }, {
85
+ footer: a(() => [
86
+ P("div", Y, [
87
+ o(V, { onClick: g }, {
88
+ default: a(() => [
89
+ u(f(e.$t("common.cancel")), 1)
90
+ ]),
91
+ _: 1
92
+ }),
93
+ o(V, {
94
+ type: "primary",
95
+ onClick: C
96
+ }, {
97
+ default: a(() => [
98
+ u(f(e.$t("common.confirm")), 1)
99
+ ]),
100
+ _: 1
101
+ })
102
+ ])
103
+ ]),
104
+ default: a(() => [
105
+ o(k, {
106
+ ref_key: "deptFormRef",
107
+ ref: b,
108
+ model: d(t),
109
+ rules: w,
110
+ "label-width": "160px"
111
+ }, {
112
+ default: a(() => [
113
+ o(n, {
114
+ label: e.$t("sysDept.code"),
115
+ prop: "deptCode"
116
+ }, {
117
+ default: a(() => [
118
+ o(r, {
119
+ modelValue: d(t).deptCode,
120
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => d(t).deptCode = s),
121
+ placeholder: e.$t("sysDept.codeRequired"),
122
+ maxlength: "30",
123
+ "show-word-limit": "",
124
+ clearable: ""
125
+ }, null, 8, ["modelValue", "placeholder"])
126
+ ]),
127
+ _: 1
128
+ }, 8, ["label"]),
129
+ o(n, {
130
+ label: e.$t("sysDept.name"),
131
+ prop: "deptName"
132
+ }, {
133
+ default: a(() => [
134
+ o(r, {
135
+ modelValue: d(t).deptName,
136
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => d(t).deptName = s),
137
+ placeholder: e.$t("sysDept.nameRequired"),
138
+ maxlength: "30",
139
+ "show-word-limit": "",
140
+ clearable: ""
141
+ }, null, 8, ["modelValue", "placeholder"])
142
+ ]),
143
+ _: 1
144
+ }, 8, ["label"]),
145
+ o(n, {
146
+ label: e.$t("sysDept.parent"),
147
+ prop: "parentId"
148
+ }, {
149
+ default: a(() => [
150
+ o(q, {
151
+ modelValue: d(t).parentId,
152
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => d(t).parentId = s),
153
+ data: y.value,
154
+ "render-after-expand": !1,
155
+ filterable: "",
156
+ clearable: "",
157
+ "check-strictly": "",
158
+ placeholder: e.$t("sysDept.parentRequired"),
159
+ style: { width: "100%" }
160
+ }, null, 8, ["modelValue", "data", "placeholder"])
161
+ ]),
162
+ _: 1
163
+ }, 8, ["label"]),
164
+ o(n, {
165
+ label: e.$t("sysDept.description"),
166
+ prop: "description"
167
+ }, {
168
+ default: a(() => [
169
+ o(r, {
170
+ modelValue: d(t).description,
171
+ "onUpdate:modelValue": l[3] || (l[3] = (s) => d(t).description = s),
172
+ type: "textarea",
173
+ autosize: { minRows: 2 },
174
+ placeholder: e.$t("sysDept.descriptionRequired"),
175
+ clearable: "",
176
+ maxlength: "200",
177
+ "show-word-limit": ""
178
+ }, null, 8, ["modelValue", "placeholder"])
179
+ ]),
180
+ _: 1
181
+ }, 8, ["label"]),
182
+ o(n, {
183
+ label: e.$t("sysDept.status"),
184
+ prop: "status"
185
+ }, {
186
+ default: a(() => [
187
+ o(N, {
188
+ modelValue: d(t).status,
189
+ "onUpdate:modelValue": l[4] || (l[4] = (s) => d(t).status = s)
190
+ }, {
191
+ default: a(() => [
192
+ o(D, { label: !0 }, {
193
+ default: a(() => [
194
+ u(f(e.$t("common.enable")), 1)
195
+ ]),
196
+ _: 1
197
+ }),
198
+ o(D, { label: !1 }, {
199
+ default: a(() => [
200
+ u(f(e.$t("common.disable")), 1)
201
+ ]),
202
+ _: 1
203
+ })
204
+ ]),
205
+ _: 1
206
+ }, 8, ["modelValue"])
207
+ ]),
208
+ _: 1
209
+ }, 8, ["label"])
210
+ ]),
211
+ _: 1
212
+ }, 8, ["model", "rules"])
213
+ ]),
214
+ _: 1
215
+ }, 8, ["title", "modelValue"]);
216
+ };
217
+ }
218
+ });
219
+ export {
220
+ ie as _
221
+ };
@@ -0,0 +1,225 @@
1
+ import { ar as l, d as u, a as D, E, f as R, h as $ } from "./index-B6wY38lY.mjs";
2
+ import { E as k } from "./el-dialog-CSWvTJrq.mjs";
3
+ import { a as F, E as S } from "./el-form-item-f-baJSfe.mjs";
4
+ import { defineComponent as U, toRef as j, ref as B, reactive as O, openBlock as M, createBlock as A, withCtx as i, createElementVNode as P, createVNode as s, createTextVNode as V, toDisplayString as C, unref as d } from "vue";
5
+ function W(e) {
6
+ return l({
7
+ url: "/v1/rbac/operation/page",
8
+ method: "get",
9
+ params: e
10
+ });
11
+ }
12
+ function T(e) {
13
+ return l({
14
+ url: "/v1/rbac/operation",
15
+ method: "post",
16
+ data: e
17
+ });
18
+ }
19
+ function x(e) {
20
+ return l({
21
+ url: "/v1/rbac/operation",
22
+ method: "patch",
23
+ data: e
24
+ });
25
+ }
26
+ function X(e) {
27
+ const n = {
28
+ tenant: u().user.tenant,
29
+ operationId: e
30
+ };
31
+ return l({
32
+ url: "/v1/rbac/operation/id",
33
+ method: "delete",
34
+ params: n
35
+ });
36
+ }
37
+ function Y(e) {
38
+ const n = {
39
+ tenant: u().user.tenant,
40
+ operationId: e
41
+ };
42
+ return l({
43
+ url: "/v1/rbac/operation/moveup",
44
+ method: "post",
45
+ params: n
46
+ });
47
+ }
48
+ function Z(e) {
49
+ const n = {
50
+ tenant: u().user.tenant,
51
+ operationId: e
52
+ };
53
+ return l({
54
+ url: "/v1/rbac/operation/movedown",
55
+ method: "post",
56
+ params: n
57
+ });
58
+ }
59
+ function ee(e) {
60
+ const n = {
61
+ tenant: u().user.tenant,
62
+ operationId: e
63
+ };
64
+ return l({
65
+ url: "/v1/rbac/operation/batch",
66
+ method: "put",
67
+ data: n
68
+ });
69
+ }
70
+ function z(e) {
71
+ return l({
72
+ url: "/v1/rbac/operation/check",
73
+ method: "get",
74
+ params: {
75
+ tenant: u().user.tenant,
76
+ operationCode: e
77
+ }
78
+ });
79
+ }
80
+ const G = { class: "dialog-footer" }, te = /* @__PURE__ */ U({
81
+ __name: "edit",
82
+ props: {
83
+ formData: {
84
+ type: Object,
85
+ default: () => {
86
+ }
87
+ },
88
+ dialog: {
89
+ type: Object,
90
+ default: () => {
91
+ }
92
+ }
93
+ },
94
+ emits: ["dialogEvent", "refresh"],
95
+ setup(e, { emit: n }) {
96
+ var _;
97
+ const { t: c } = D(), g = e, b = j(g, "dialog"), v = B();
98
+ let o = O({
99
+ tenant: u().user.tenant,
100
+ requestId: Math.random() * 10 + "",
101
+ operationCode: "",
102
+ operationName: "",
103
+ updateMask: "operationCode,operationName"
104
+ });
105
+ const q = O({
106
+ operationCode: [
107
+ {
108
+ required: !0,
109
+ validator: (r, a, t) => {
110
+ a === "" ? t(new Error(c("sysOperation.codeRequired"))) : o.operationId ? t() : z(a).then(({ data: f }) => {
111
+ f === !0 ? t(new Error("该编码已存在")) : t();
112
+ });
113
+ },
114
+ trigger: "blur"
115
+ }
116
+ ],
117
+ operationName: [
118
+ {
119
+ required: !0,
120
+ message: c("sysOperation.nameRequired"),
121
+ trigger: "blur"
122
+ }
123
+ ]
124
+ }), p = n, I = async () => {
125
+ var r;
126
+ await ((r = v.value) == null ? void 0 : r.validate((a) => {
127
+ a && (o.operationId ? x(o).then((t) => {
128
+ console.log(t), t.status === 200 && (E({
129
+ message: c("common.submitSuccess"),
130
+ type: "success"
131
+ }), p("dialogEvent", !1), p("refresh", t.status === 200));
132
+ }) : T(o).then((t) => {
133
+ console.log(t), t.status === 200 && (E({
134
+ message: c("common.submitSuccess"),
135
+ type: "success"
136
+ }), p("dialogEvent", !1), p("refresh", t.status === 200));
137
+ }));
138
+ }));
139
+ };
140
+ function h() {
141
+ p("dialogEvent", !1);
142
+ }
143
+ return (_ = g.formData) != null && _.operationId && (o = Object.assign(o, g.formData)), (r, a) => {
144
+ const t = R, f = F, N = S, y = $, w = k;
145
+ return M(), A(w, {
146
+ modelValue: b.value.visible,
147
+ "onUpdate:modelValue": a[2] || (a[2] = (m) => b.value.visible = m),
148
+ title: b.value.title,
149
+ width: "600px",
150
+ onClose: h
151
+ }, {
152
+ footer: i(() => [
153
+ P("div", G, [
154
+ s(y, { onClick: h }, {
155
+ default: i(() => [
156
+ V(C(r.$t("common.cancel")), 1)
157
+ ]),
158
+ _: 1
159
+ }),
160
+ s(y, {
161
+ type: "primary",
162
+ onClick: I
163
+ }, {
164
+ default: i(() => [
165
+ V(C(r.$t("common.confirm")), 1)
166
+ ]),
167
+ _: 1
168
+ })
169
+ ])
170
+ ]),
171
+ default: i(() => [
172
+ s(N, {
173
+ ref_key: "operationFormRef",
174
+ ref: v,
175
+ model: d(o),
176
+ rules: q,
177
+ "label-width": "160px"
178
+ }, {
179
+ default: i(() => [
180
+ s(f, {
181
+ label: r.$t("sysOperation.code"),
182
+ prop: "operationCode"
183
+ }, {
184
+ default: i(() => [
185
+ s(t, {
186
+ modelValue: d(o).operationCode,
187
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => d(o).operationCode = m),
188
+ placeholder: r.$t("sysOperation.codeRequired"),
189
+ disabled: !!d(o).operationId,
190
+ clearable: ""
191
+ }, null, 8, ["modelValue", "placeholder", "disabled"])
192
+ ]),
193
+ _: 1
194
+ }, 8, ["label"]),
195
+ s(f, {
196
+ label: r.$t("sysOperation.name"),
197
+ prop: "operationName"
198
+ }, {
199
+ default: i(() => [
200
+ s(t, {
201
+ modelValue: d(o).operationName,
202
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => d(o).operationName = m),
203
+ placeholder: r.$t("sysOperation.nameRequired"),
204
+ clearable: ""
205
+ }, null, 8, ["modelValue", "placeholder"])
206
+ ]),
207
+ _: 1
208
+ }, 8, ["label"])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["model", "rules"])
212
+ ]),
213
+ _: 1
214
+ }, 8, ["modelValue", "title"]);
215
+ };
216
+ }
217
+ });
218
+ export {
219
+ te as _,
220
+ Z as a,
221
+ ee as b,
222
+ X as d,
223
+ W as g,
224
+ Y as m
225
+ };
@@ -0,0 +1,156 @@
1
+ import { a as R, d as q, E as y, f as $, h as w } from "./index-B6wY38lY.mjs";
2
+ import { E as D } from "./el-dialog-CSWvTJrq.mjs";
3
+ import { a as F, E as U } from "./el-form-item-f-baJSfe.mjs";
4
+ import { defineComponent as k, toRef as S, ref as j, reactive as V, openBlock as B, createBlock as O, withCtx as a, createElementVNode as z, createVNode as d, createTextVNode as _, toDisplayString as E, unref as s } from "vue";
5
+ import { e as A, f as T, h as G } from "./index-Dgd4Zhxz.mjs";
6
+ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ k({
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(M, { emit: h }) {
22
+ var g;
23
+ const { t: i } = R(), n = M, p = S(n, "dialog"), f = j();
24
+ let o = V({
25
+ tenant: q().user.tenant,
26
+ moduleId: "",
27
+ moduleCode: "",
28
+ moduleName: "",
29
+ description: "",
30
+ updateMask: "moduleCode,moduleName,description",
31
+ requestId: Math.random() * 10 + ""
32
+ });
33
+ const v = V({
34
+ moduleCode: [
35
+ { required: !0, validator: (t, l, e) => {
36
+ l === "" ? e(new Error(i("sysModule.codeRequired"))) : o.moduleId ? e() : A(l).then(({ data: m }) => {
37
+ m === !0 ? e(new Error("该编码已存在")) : e();
38
+ });
39
+ }, trigger: "blur" }
40
+ ],
41
+ moduleName: [
42
+ { required: !0, message: i("sysModule.nameRequired"), trigger: "blur" }
43
+ ]
44
+ }), r = h, C = async () => {
45
+ var t;
46
+ await ((t = f.value) == null ? void 0 : t.validate((l) => {
47
+ l && (o.moduleId ? T(o).then((e) => {
48
+ console.log(e), e.status === 200 && (y({
49
+ message: i("common.submitSuccess"),
50
+ type: "success"
51
+ }), r("dialogEvent", !1), r("refresh", e.status === 200));
52
+ }) : G(o).then((e) => {
53
+ console.log(e), e.status === 200 && (y({
54
+ message: i("common.submitSuccess"),
55
+ type: "success"
56
+ }), r("dialogEvent", !1), r("refresh", e.status === 200));
57
+ }));
58
+ }));
59
+ };
60
+ function c() {
61
+ r("dialogEvent", !1);
62
+ }
63
+ return (g = n.formData) != null && g.moduleId && (o = Object.assign(o, n.formData)), (t, l) => {
64
+ const e = $, m = F, I = U, b = w, N = D;
65
+ return B(), O(N, {
66
+ modelValue: p.value.visible,
67
+ "onUpdate:modelValue": l[3] || (l[3] = (u) => p.value.visible = u),
68
+ title: p.value.title,
69
+ width: "600px",
70
+ onClose: c
71
+ }, {
72
+ footer: a(() => [
73
+ z("div", H, [
74
+ d(b, { onClick: c }, {
75
+ default: a(() => [
76
+ _(E(t.$t("common.cancel")), 1)
77
+ ]),
78
+ _: 1
79
+ }),
80
+ d(b, {
81
+ type: "primary",
82
+ onClick: C
83
+ }, {
84
+ default: a(() => [
85
+ _(E(t.$t("common.confirm")), 1)
86
+ ]),
87
+ _: 1
88
+ })
89
+ ])
90
+ ]),
91
+ default: a(() => [
92
+ d(I, {
93
+ ref_key: "moduleFormRef",
94
+ ref: f,
95
+ model: s(o),
96
+ rules: v,
97
+ "label-width": "160px"
98
+ }, {
99
+ default: a(() => [
100
+ d(m, {
101
+ label: t.$t("sysModule.code"),
102
+ prop: "moduleCode"
103
+ }, {
104
+ default: a(() => [
105
+ d(e, {
106
+ modelValue: s(o).moduleCode,
107
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => s(o).moduleCode = u),
108
+ placeholder: t.$t("sysModule.codeRequired"),
109
+ disabled: !!s(o).moduleId,
110
+ clearable: ""
111
+ }, null, 8, ["modelValue", "placeholder", "disabled"])
112
+ ]),
113
+ _: 1
114
+ }, 8, ["label"]),
115
+ d(m, {
116
+ label: t.$t("sysModule.name"),
117
+ prop: "moduleName"
118
+ }, {
119
+ default: a(() => [
120
+ d(e, {
121
+ modelValue: s(o).moduleName,
122
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => s(o).moduleName = u),
123
+ placeholder: t.$t("sysModule.nameRequired"),
124
+ clearable: ""
125
+ }, null, 8, ["modelValue", "placeholder"])
126
+ ]),
127
+ _: 1
128
+ }, 8, ["label"]),
129
+ d(m, {
130
+ label: t.$t("sysModule.description"),
131
+ prop: "description"
132
+ }, {
133
+ default: a(() => [
134
+ d(e, {
135
+ modelValue: s(o).description,
136
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => s(o).description = u),
137
+ type: "textarea",
138
+ autosize: { minRows: 2 },
139
+ placeholder: t.$t("sysModule.descriptionRequired"),
140
+ clearable: ""
141
+ }, null, 8, ["modelValue", "placeholder"])
142
+ ]),
143
+ _: 1
144
+ }, 8, ["label"])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["model", "rules"])
148
+ ]),
149
+ _: 1
150
+ }, 8, ["modelValue", "title"]);
151
+ };
152
+ }
153
+ });
154
+ export {
155
+ X as _
156
+ };