ss-component-new 1.3.699 → 1.3.700

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 (88) hide show
  1. package/dist/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/MTLLoader-DzQM5Czw.js +657 -0
  3. package/dist/URDFLoader-CPXooEPU.js +2299 -0
  4. package/dist/animationData-DOIhMG9C.js +83 -0
  5. package/dist/array-lig-X3M9.js +1045 -0
  6. package/dist/clone-Dp_gc9ll.js +8 -0
  7. package/dist/config.js +1 -1
  8. package/dist/eleIcon-qStmsM1q.js +29 -0
  9. package/dist/fileUtil-UOt_otFo.js +20 -0
  10. package/dist/iconfont-DwCBmDct.js +1026 -0
  11. package/dist/icons/svg/functionList.svg +1 -0
  12. package/dist/icons/svg/method.svg +1 -0
  13. package/dist/index-11kpzK0A.js +209 -0
  14. package/dist/index-B-AFi1eL.js +873 -0
  15. package/dist/index-B0H3C7WG.js +103 -0
  16. package/dist/index-BDRDpsgF.js +25297 -0
  17. package/dist/{index-BKK_dL6t.js → index-BHtNKL1L.js} +1 -1
  18. package/dist/index-BJ3RS3n_.js +63004 -0
  19. package/dist/index-BJLCuYEK.js +84 -0
  20. package/dist/index-BbyrFzEO.js +93 -0
  21. package/dist/index-Bn1_Pbpm.js +98 -0
  22. package/dist/index-BniHrGik.js +107 -0
  23. package/dist/index-BooO2Bml.js +78 -0
  24. package/dist/index-Bw3sTXPI.js +8993 -0
  25. package/dist/index-C7sOKXGv.js +48 -0
  26. package/dist/index-CGUz8yrZ.js +20503 -0
  27. package/dist/index-CGi0g-VN.js +627 -0
  28. package/dist/index-CV_jQDcg.js +9 -0
  29. package/dist/index-CWOXvFfD.js +44 -0
  30. package/dist/{index-BKoAuSBh.js → index-ChNfRlIP.js} +18 -223
  31. package/dist/index-CjlKFGAF.js +470 -0
  32. package/dist/index-CydXQbtX.js +622 -0
  33. package/dist/index-D9XVxZlg.js +411 -0
  34. package/dist/index-DAJxL40d.js +55 -0
  35. package/dist/index-DBsEVMiM.js +201 -0
  36. package/dist/index-DG4hoOWt.js +665 -0
  37. package/dist/index-DUbk5m5P.js +99 -0
  38. package/dist/index-Ds6m_4JJ.js +28500 -0
  39. package/dist/index-DupTchhl.js +1000 -0
  40. package/dist/index-DxduRnLV.js +93 -0
  41. package/dist/index-DyCq_odP.js +331 -0
  42. package/dist/index-TDMzk3L7.js +83 -0
  43. package/dist/index-UB_oCdlo.js +62 -0
  44. package/dist/index-VV2Ao7jZ.js +119 -0
  45. package/dist/index-YjBTGOkO.js +61 -0
  46. package/dist/index-erE4kNF5.js +30 -0
  47. package/dist/index-iY5h1bpA.js +572 -0
  48. package/dist/index-jbOjjV0j.js +447 -0
  49. package/dist/index-rlStojTL.js +52 -0
  50. package/dist/index-uF-ibwG0.js +9 -0
  51. package/dist/{index-DzkvwqGK.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js} +113317 -105434
  52. package/dist/isString-0ZglyOfu.js +8 -0
  53. package/dist/localIcon-D5UoFBU5.js +76 -0
  54. package/dist/main-Cepry4zn.js +502 -0
  55. package/dist/menuIndex-BB0uVPRX.js +159 -0
  56. package/dist/obj/model.mtl +42 -0
  57. package/dist/obj/model.obj +26110 -0
  58. package/dist/request-1RPa2bBn.js +9048 -0
  59. package/dist/ss-component.css +8 -2
  60. package/dist/ss-component.js +64 -28
  61. package/dist/ss-component2.js +75 -15
  62. package/dist/ss-component3.js +1 -1
  63. package/dist/threeModel-DcUyC6Vh.js +1109 -0
  64. package/dist/threePreview-CbGqCMch.js +2810 -0
  65. package/dist/threeSceneView-BDyFpkq-.js +1290 -0
  66. package/dist/threeSceneViewForCPMPIP-DUSufDRq.js +539 -0
  67. package/dist/threeTrackPathView-yLEUuGXc.js +620 -0
  68. package/dist/threeViewerHost-BXdZ6Wgi.js +233 -0
  69. package/dist/urdfTree-C6mx4T9t.js +254 -0
  70. package/dist/workpieceTreePanel-DjR9f2D1.js +559 -0
  71. package/package.json +6 -8
  72. package/public/config.js +1 -1
  73. package/public/icons/svg/functionList.svg +1 -0
  74. package/public/icons/svg/method.svg +1 -0
  75. package/public/obj/model.mtl +42 -0
  76. package/public/obj/model.obj +26110 -0
  77. package/dist/index-BqyJXXmI.js +0 -213
  78. package/dist/index-CTEz1Xq6.js +0 -182
  79. package/dist/index-CrIVk8ml.js +0 -1044
  80. package/dist/index-D1ebCzlM.js +0 -50
  81. package/dist/menu-ZnhLgjWw.js +0 -5218
  82. package/dist/origin-Bs605dr-.js +0 -11468
  83. /package/dist/icons/svg/{update.svg → Update.svg} +0 -0
  84. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  85. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  86. /package/public/icons/svg/{update.svg → Update.svg} +0 -0
  87. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  88. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -0,0 +1,873 @@
1
+ import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n, createElementBlock as D, openBlock as k, createElementVNode as o, createVNode as t, withCtx as s, toDisplayString as A, createBlock as ue, reactive as De, Fragment as pe, renderList as xe, unref as c, createTextVNode as h, onMounted as it, watch as dt, withModifiers as ct, createCommentVNode as H } from "vue";
2
+ import { u as ut, k as pt, l as mt } from "./request-1RPa2bBn.js";
3
+ import { u as Se, o as _t, s as de, f as ce } from "./index-DyCq_odP.js";
4
+ import { N as Le, O as ft, u as vt, p as gt } from "./index-Bw3sTXPI.js";
5
+ import { s as _e } from "./index-11kpzK0A.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js";
7
+ import "./index-BJ3RS3n_.js";
8
+ import "./index-BHtNKL1L.js";
9
+ import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
10
+ import "./index-Ds6m_4JJ.js";
11
+ import "./index-iY5h1bpA.js";
12
+ import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { c as me } from "./clone-Dp_gc9ll.js";
14
+ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
15
+ __name: "index",
16
+ props: {
17
+ params: {},
18
+ checkedParams: {}
19
+ },
20
+ setup(U, { expose: $ }) {
21
+ const _ = U, x = {
22
+ value: "uniqueKey",
23
+ label: "label",
24
+ children: "children",
25
+ class: (b) => {
26
+ }
27
+ }, { buildParamAuthTree: T } = Se(), g = u(), S = Ve(() => T(_.params)), m = Ve(() => _.checkedParams.map((b) => `${b.id}_${b.prop}`));
28
+ return $({ getCheckedParams: () => {
29
+ var f;
30
+ return ((f = g.value) == null ? void 0 : f.getCheckedNodes()) || [];
31
+ } }), (b, f) => {
32
+ const w = n("el-tree");
33
+ return k(), D("div", yt, [
34
+ f[0] || (f[0] = o("div", { class: "header" }, [
35
+ o("div", { class: "header-left" }),
36
+ o("div", { class: "header-right" })
37
+ ], -1)),
38
+ o("div", ht, [
39
+ t(w, {
40
+ ref_key: "paramTreeRef",
41
+ ref: g,
42
+ class: "param-tree",
43
+ data: S.value,
44
+ props: x,
45
+ "node-key": "uniqueKey",
46
+ "show-checkbox": "",
47
+ "default-expanded-keys": m.value,
48
+ "default-checked-keys": m.value,
49
+ height: "100%"
50
+ }, {
51
+ default: s(({ node: v, data: N }) => [
52
+ o("div", kt, [
53
+ o("div", Ct, [
54
+ o("div", bt, A(v.label), 1)
55
+ ])
56
+ ])
57
+ ]),
58
+ _: 1
59
+ }, 8, ["data", "default-expanded-keys", "default-checked-keys"])
60
+ ]),
61
+ f[1] || (f[1] = o("div", { class: "footer" }, [
62
+ o("div", { class: "footer-left" }),
63
+ o("div", { class: "footer-right" })
64
+ ], -1))
65
+ ]);
66
+ };
67
+ }
68
+ }), Pt = /* @__PURE__ */ W(wt, [["__scopeId", "data-v-b7ce5c18"]]), Tt = { class: "param-wrapper" }, Et = { class: "param-body" }, Vt = { class: "role-form-wrapper" }, Dt = { class: "edit-footer" }, xt = { class: "footer-right" }, St = /* @__PURE__ */ J({
69
+ __name: "index",
70
+ props: {
71
+ params: {},
72
+ checkedParams: {}
73
+ },
74
+ emits: ["updateParams"],
75
+ setup(U, { expose: $, emit: _ }) {
76
+ const x = _, T = u(), g = u(!1), S = () => {
77
+ g.value = !0;
78
+ }, m = () => {
79
+ g.value = !1;
80
+ }, C = () => {
81
+ m();
82
+ }, b = () => {
83
+ const w = f();
84
+ x("updateParams", w), m();
85
+ }, f = () => {
86
+ var v;
87
+ return ((v = T.value) == null ? void 0 : v.getCheckedParams()) || [];
88
+ };
89
+ return $({ openEditDialog: S }), (w, v) => (k(), ue(_e, {
90
+ class: "param-edit-dialog",
91
+ visible: g.value,
92
+ title: "参数权限",
93
+ onBeforeDestroy: m,
94
+ showClose: !0,
95
+ closeOnClickModal: !1,
96
+ closeOnPressEscape: !1,
97
+ modalClass: "role-edit-modal",
98
+ alignCenter: !0,
99
+ appendToBody: !1
100
+ }, {
101
+ default: s(() => [
102
+ o("div", Tt, [
103
+ v[0] || (v[0] = o("div", { class: "param-header" }, [
104
+ o("div", { class: "header-left" }),
105
+ o("div", { class: "header-right" })
106
+ ], -1)),
107
+ o("div", Et, [
108
+ o("div", Vt, [
109
+ t(Pt, {
110
+ ref_key: "paramAuthTree",
111
+ ref: T,
112
+ params: w.params,
113
+ "checked-params": w.checkedParams
114
+ }, null, 8, ["params", "checked-params"])
115
+ ])
116
+ ])
117
+ ])
118
+ ]),
119
+ footer: s(() => [
120
+ o("div", Dt, [
121
+ v[1] || (v[1] = o("div", { class: "footer-left" }, null, -1)),
122
+ o("div", xt, [
123
+ t(B, {
124
+ class: "cancel",
125
+ emptyColor: !0,
126
+ onClickTrigger: C,
127
+ modelValue: "取消",
128
+ buttonType: "info"
129
+ }),
130
+ t(B, {
131
+ class: "confirm",
132
+ emptyColor: !0,
133
+ onClickTrigger: b,
134
+ modelValue: "确定",
135
+ buttonType: "primary"
136
+ })
137
+ ])
138
+ ])
139
+ ]),
140
+ _: 1
141
+ }, 8, ["visible"]));
142
+ }
143
+ }), Lt = /* @__PURE__ */ W(St, [["__scopeId", "data-v-875ed466"]]), $t = { class: "scope-management-wrapper" }, It = { class: "scope-management-body" }, Bt = { class: "scope-form-wrapper" }, Rt = { class: "edit-footer" }, At = { class: "footer-right" }, Nt = /* @__PURE__ */ J({
144
+ __name: "index",
145
+ emits: ["confirm"],
146
+ setup(U, { expose: $, emit: _ }) {
147
+ const x = _, { initDepartmentScope: T } = Le(), g = u(), S = De({
148
+ departmentScope: [
149
+ { required: !0, message: "请输入角色名称", trigger: "change" }
150
+ ]
151
+ }), m = u(T()), C = u(!1), b = () => {
152
+ C.value = !0;
153
+ }, f = () => {
154
+ C.value = !1;
155
+ }, w = async (E) => {
156
+ m.value = me(E), b();
157
+ }, v = () => {
158
+ m.value = T(), f();
159
+ }, N = async () => {
160
+ var E, y;
161
+ await ((y = (E = g.value) == null ? void 0 : E.validate) == null ? void 0 : y.call(E)), x("confirm", me(m.value)), v();
162
+ };
163
+ return $({ handleEdit: w }), (E, y) => {
164
+ const X = n("el-radio"), Y = n("el-radio-group"), Z = n("el-form-item"), ee = n("el-col"), te = n("el-row"), ae = n("el-form");
165
+ return k(), ue(_e, {
166
+ class: "scope-edit-dialog",
167
+ visible: C.value,
168
+ title: "数据权限",
169
+ onBeforeDestroy: f,
170
+ showClose: !0,
171
+ closeOnClickModal: !1,
172
+ closeOnPressEscape: !1,
173
+ modalClass: "scope-edit-modal",
174
+ alignCenter: !0,
175
+ appendToBody: !1
176
+ }, {
177
+ default: s(() => [
178
+ o("div", $t, [
179
+ y[1] || (y[1] = o("div", { class: "scope-management-header" }, [
180
+ o("div", { class: "header-left" }),
181
+ o("div", { class: "header-right" })
182
+ ], -1)),
183
+ o("div", It, [
184
+ o("div", Bt, [
185
+ t(ae, {
186
+ class: "scope-edit-form",
187
+ ref_key: "scopeFormRef",
188
+ ref: g,
189
+ model: m.value,
190
+ rules: S
191
+ }, {
192
+ default: s(() => [
193
+ t(te, { gutter: 20 }, {
194
+ default: s(() => [
195
+ t(ee, { span: 24 }, {
196
+ default: s(() => [
197
+ t(Z, {
198
+ prop: "departmentScope",
199
+ label: "部门权限范围",
200
+ "label-position": "top"
201
+ }, {
202
+ default: s(() => [
203
+ t(Y, {
204
+ modelValue: m.value.departmentScope,
205
+ "onUpdate:modelValue": y[0] || (y[0] = (V) => m.value.departmentScope = V)
206
+ }, {
207
+ default: s(() => [
208
+ (k(!0), D(pe, null, xe(c(ft), (V) => (k(), ue(X, {
209
+ key: V.value,
210
+ value: V.value
211
+ }, {
212
+ default: s(() => [
213
+ h(A(V.label), 1)
214
+ ]),
215
+ _: 2
216
+ }, 1032, ["value"]))), 128))
217
+ ]),
218
+ _: 1
219
+ }, 8, ["modelValue"])
220
+ ]),
221
+ _: 1
222
+ })
223
+ ]),
224
+ _: 1
225
+ })
226
+ ]),
227
+ _: 1
228
+ })
229
+ ]),
230
+ _: 1
231
+ }, 8, ["model", "rules"])
232
+ ])
233
+ ])
234
+ ])
235
+ ]),
236
+ footer: s(() => [
237
+ o("div", Rt, [
238
+ y[2] || (y[2] = o("div", { class: "footer-left" }, null, -1)),
239
+ o("div", At, [
240
+ t(B, {
241
+ class: "cancel",
242
+ emptyColor: !0,
243
+ onClickTrigger: v,
244
+ modelValue: "取消",
245
+ buttonType: "info"
246
+ }),
247
+ t(B, {
248
+ class: "confirm",
249
+ emptyColor: !0,
250
+ onClickTrigger: N,
251
+ modelValue: "确定",
252
+ buttonType: "primary"
253
+ })
254
+ ])
255
+ ])
256
+ ]),
257
+ _: 1
258
+ }, 8, ["visible"]);
259
+ };
260
+ }
261
+ }), Ft = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-40d37c72"]]), Ot = { class: "role-management" }, zt = { class: "header" }, Ut = { class: "header-left" }, qt = { class: "query-wrapper" }, Mt = { class: "header-right" }, Kt = { class: "body" }, Gt = { class: "role-table-wrapper" }, Qt = { class: "operate-list" }, jt = ["onClick"], Ht = { class: "pagination-wrapper" }, Jt = { class: "role-management-wrapper" }, Wt = { class: "role-management-body" }, Xt = { class: "role-form-wrapper" }, Yt = { class: "auth-tree-wrapper" }, Zt = { class: "node-content-wrapper" }, ea = { class: "node-label-wrapper" }, ta = { class: "node-label" }, aa = {
262
+ key: 0,
263
+ class: "status-tag"
264
+ }, oa = {
265
+ key: 1,
266
+ class: "status-tag"
267
+ }, sa = {
268
+ key: 2,
269
+ class: "status-tag"
270
+ }, la = {
271
+ key: 3,
272
+ class: "status-tag"
273
+ }, na = { class: "edit-footer" }, ra = { class: "footer-right" }, ia = /* @__PURE__ */ J({
274
+ __name: "index",
275
+ setup(U) {
276
+ const $ = {
277
+ value: "id",
278
+ label: "label",
279
+ children: "children"
280
+ // class: (data: TreeNode) => {
281
+ // const { isProperty } = data
282
+ // return isProperty ? 'property-node' : 'unit-node'
283
+ // }
284
+ }, _ = vt(gt), { initDepartmentScope: x, recAndInitNodeDataPermission: T } = Le(), {
285
+ initRoleItem: g,
286
+ queryInfo: S,
287
+ resetQuery: m,
288
+ pageInfo: C,
289
+ setPageNum: b,
290
+ setPageSize: f,
291
+ initGetByPage: w,
292
+ // initRoleList,
293
+ initCreate: v,
294
+ initUpdate: N,
295
+ initDelete: E,
296
+ propertyAuthTree: y,
297
+ initPropertyAuthTree: X,
298
+ getStatusLabelByValue: Y,
299
+ getStatusTagByValue: Z,
300
+ getFeatureStatusLabelByValue: ee,
301
+ getFeatureStatusTagByValue: te,
302
+ initRoleConfig: ae,
303
+ hasRoleEditAuth: V,
304
+ isTableFeature: $e,
305
+ initImport: Ie,
306
+ initExport: Be,
307
+ exportTemplate: Re
308
+ } = Se(), fe = u([]), Ae = async () => {
309
+ const a = await w(), { roleData: e = [] } = a;
310
+ return e;
311
+ }, F = async () => {
312
+ fe.value = await Ae();
313
+ }, Ne = (a) => {
314
+ b(a), F();
315
+ }, Fe = (a) => {
316
+ f(a), F();
317
+ }, Oe = async () => {
318
+ m(), _.setImportLoading(!0), await F().finally(() => {
319
+ _.setImportLoading(!1);
320
+ });
321
+ }, R = async () => {
322
+ await F(), await ae();
323
+ };
324
+ it(() => {
325
+ R();
326
+ });
327
+ const ve = u(), ze = De({
328
+ name: [
329
+ { required: !0, message: "请输入角色名称", trigger: "blur" }
330
+ ]
331
+ }), q = u(), M = u(""), d = u(g());
332
+ dt(M, (a) => {
333
+ q.value.filter(a);
334
+ });
335
+ const Ue = (a, e) => a ? e.label.includes(a) : !0, ge = u([]), K = u(), qe = (a, e) => {
336
+ var l;
337
+ a.stopPropagation(), ge.value = e.params || [], (l = K == null ? void 0 : K.value) == null || l.openEditDialog();
338
+ }, Me = (a) => {
339
+ var p;
340
+ const e = (p = a == null ? void 0 : a[0]) == null ? void 0 : p.id, l = d.value.params.filter((P) => P.id !== e);
341
+ d.value.params = [...l, ...a];
342
+ }, oe = u(!1), Ke = () => {
343
+ oe.value = !0;
344
+ }, ye = () => {
345
+ M.value = "", oe.value = !1;
346
+ }, he = async (a) => {
347
+ if (!V.value)
348
+ return;
349
+ const e = [];
350
+ a && e.push(a.role_id), await X(e);
351
+ let l = {};
352
+ a != null && a.role_id || (l = {
353
+ checkAll: !0,
354
+ tree: y.value
355
+ }), d.value = g(a, l), Ke();
356
+ }, ke = () => {
357
+ d.value = g(), ye();
358
+ }, Ge = async () => {
359
+ var l, p, P;
360
+ await ((p = (l = ve.value) == null ? void 0 : l.validate) == null ? void 0 : p.call(l));
361
+ let a = ((P = q.value) == null ? void 0 : P.getCheckedNodes()) || [];
362
+ a = a.filter((L) => L.isPropertyLeaf), a = a.map((L) => {
363
+ const { departmentScope: ne } = L.dataPermission || {};
364
+ return {
365
+ ...L,
366
+ department_scope: ne
367
+ };
368
+ }), d.value.main_ids = a;
369
+ const { role_id: e } = d.value;
370
+ e ? await He() : await je(), ke();
371
+ }, Qe = async (a) => {
372
+ if (!V.value)
373
+ return;
374
+ const { status: e } = a;
375
+ de.ENABLE.value === e ? a.status = de.DISABLED.value : a.status = de.ENABLE.value, await N(a), await R();
376
+ }, je = async () => {
377
+ await v(d.value), await R();
378
+ }, He = async () => {
379
+ await N(d.value), await R();
380
+ }, Je = async (a) => {
381
+ await E(a), await R();
382
+ }, We = async (a, e) => {
383
+ if (!V.value)
384
+ return;
385
+ const { value: l } = a, p = e.row;
386
+ if (l === "edit") {
387
+ he(p);
388
+ return;
389
+ }
390
+ if (l === "delete") {
391
+ await Je(p);
392
+ return;
393
+ }
394
+ }, Xe = async (a, e) => {
395
+ a.stopPropagation();
396
+ const { status: l } = e;
397
+ ce.EDITABLE.value === l ? e.status = ce.DISABLED.value : e.status = ce.EDITABLE.value;
398
+ }, se = (a) => {
399
+ var l;
400
+ return (((l = q.value) == null ? void 0 : l.getCheckedKeys(!0)) || []).includes(a.id);
401
+ }, Ce = u(), G = u(), le = u(x()), be = (a, e) => {
402
+ var l;
403
+ a.stopPropagation(), G.value = e, e.isPropertyLeaf && (le.value = me(e.dataPermission)), e.isProperty || (le.value = x("")), (l = Ce.value) == null || l.handleEdit(le.value);
404
+ }, Ye = (a) => {
405
+ const { isProperty: e, isPropertyLeaf: l } = G.value;
406
+ if (l) {
407
+ G.value.dataPermission = a;
408
+ return;
409
+ }
410
+ if (!e) {
411
+ T(G.value, a);
412
+ return;
413
+ }
414
+ }, Ze = async () => {
415
+ await et();
416
+ }, et = async () => {
417
+ const a = document.createElement("input");
418
+ a.type = "file", a.accept = ".xlsx", a.onchange = async (e) => {
419
+ var P;
420
+ const p = (P = e.target.files) == null ? void 0 : P[0];
421
+ if (p)
422
+ try {
423
+ _.setImportLoading(!0), await Ie(p), await R(), _.setImportLoading(!1);
424
+ } catch {
425
+ _.setImportLoading(!1);
426
+ }
427
+ }, a.click();
428
+ }, tt = async () => {
429
+ _.setImportLoading(!0), await Be().finally(() => {
430
+ _.setImportLoading(!1);
431
+ });
432
+ }, at = async () => {
433
+ Re();
434
+ };
435
+ return (a, e) => {
436
+ var we, Pe, Te, Ee;
437
+ const l = n("el-input"), p = n("el-button"), P = n("el-icon"), L = n("el-dropdown-item"), ne = n("el-dropdown-menu"), ot = n("el-dropdown"), O = n("el-table-column"), z = n("el-tag"), st = n("el-table"), lt = n("el-pagination"), Q = n("el-form-item"), j = n("el-col"), re = n("el-row"), nt = n("el-tree"), rt = n("el-form");
438
+ return k(), D(pe, null, [
439
+ o("div", Ot, [
440
+ o("div", zt, [
441
+ o("div", Ut, [
442
+ o("div", qt, [
443
+ t(l, {
444
+ modelValue: c(S).name,
445
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => c(S).name = r),
446
+ style: { width: "240px" },
447
+ placeholder: "请输入名称"
448
+ }, null, 8, ["modelValue"]),
449
+ t(p, {
450
+ type: "primary",
451
+ onClick: F
452
+ }, {
453
+ default: s(() => e[6] || (e[6] = [
454
+ h("查询")
455
+ ])),
456
+ _: 1,
457
+ __: [6]
458
+ }),
459
+ t(p, {
460
+ type: "primary",
461
+ plain: "",
462
+ onClick: Oe
463
+ }, {
464
+ default: s(() => e[7] || (e[7] = [
465
+ h("重置")
466
+ ])),
467
+ _: 1,
468
+ __: [7]
469
+ })
470
+ ])
471
+ ]),
472
+ o("div", Mt, [
473
+ t(p, {
474
+ type: "primary",
475
+ onClick: Ze
476
+ }, {
477
+ default: s(() => [
478
+ e[8] || (e[8] = h(" 导入 ")),
479
+ t(P, { class: "el-icon--right" }, {
480
+ default: s(() => [
481
+ t(c(ut))
482
+ ]),
483
+ _: 1
484
+ })
485
+ ]),
486
+ _: 1,
487
+ __: [8]
488
+ }),
489
+ t(ot, null, {
490
+ dropdown: s(() => [
491
+ t(ne, null, {
492
+ default: s(() => [
493
+ t(L, { onClick: at }, {
494
+ default: s(() => e[10] || (e[10] = [
495
+ h("导出模板")
496
+ ])),
497
+ _: 1,
498
+ __: [10]
499
+ }),
500
+ t(L, { onClick: tt }, {
501
+ default: s(() => e[11] || (e[11] = [
502
+ h("导出数据")
503
+ ])),
504
+ _: 1,
505
+ __: [11]
506
+ })
507
+ ]),
508
+ _: 1
509
+ })
510
+ ]),
511
+ default: s(() => [
512
+ t(p, { type: "primary" }, {
513
+ default: s(() => [
514
+ e[9] || (e[9] = h(" 导出 ")),
515
+ t(P, { class: "el-icon--right" }, {
516
+ default: s(() => [
517
+ t(c(pt))
518
+ ]),
519
+ _: 1
520
+ })
521
+ ]),
522
+ _: 1,
523
+ __: [9]
524
+ })
525
+ ]),
526
+ _: 1
527
+ }),
528
+ t(B, {
529
+ emptyColor: !0,
530
+ onClickTrigger: e[1] || (e[1] = (r) => he()),
531
+ modelValue: "创建角色",
532
+ buttonType: "primary"
533
+ })
534
+ ])
535
+ ]),
536
+ o("div", Kt, [
537
+ o("div", Gt, [
538
+ t(st, {
539
+ class: "role-table",
540
+ data: fe.value,
541
+ "empty-text": ""
542
+ }, {
543
+ default: s(() => [
544
+ t(O, {
545
+ prop: "name",
546
+ label: "名称",
547
+ align: "center"
548
+ }),
549
+ t(O, {
550
+ prop: "code",
551
+ label: "编码",
552
+ align: "center"
553
+ }),
554
+ t(O, {
555
+ prop: "remark",
556
+ label: "备注",
557
+ align: "center"
558
+ }),
559
+ t(O, {
560
+ prop: "status",
561
+ label: "状态",
562
+ align: "center"
563
+ }, {
564
+ default: s((r) => [
565
+ t(z, {
566
+ class: "status-tag",
567
+ type: c(Z)(r.row.status),
568
+ title: "点击切换",
569
+ onClick: (i) => Qe(r.row)
570
+ }, {
571
+ default: s(() => [
572
+ h(A(c(Y)(r.row.status)), 1)
573
+ ]),
574
+ _: 2
575
+ }, 1032, ["type", "onClick"])
576
+ ]),
577
+ _: 1
578
+ }),
579
+ t(O, {
580
+ label: "操作",
581
+ align: "center"
582
+ }, {
583
+ default: s((r) => [
584
+ o("div", Qt, [
585
+ (k(!0), D(pe, null, xe(c(_t), (i) => (k(), D("div", {
586
+ class: "operate-item",
587
+ key: i.value,
588
+ onClick: ct((ie) => We(i, r), ["stop"])
589
+ }, A(i.label), 9, jt))), 128))
590
+ ])
591
+ ]),
592
+ _: 1
593
+ })
594
+ ]),
595
+ _: 1
596
+ }, 8, ["data"])
597
+ ]),
598
+ o("div", Ht, [
599
+ e[12] || (e[12] = o("div", null, null, -1)),
600
+ t(lt, {
601
+ onSizeChange: Fe,
602
+ onCurrentChange: Ne,
603
+ "current-page": (we = c(C)) == null ? void 0 : we.pageNum,
604
+ "page-sizes": (Pe = c(C)) == null ? void 0 : Pe.pageSizes,
605
+ "page-size": ((Te = c(C)) == null ? void 0 : Te.pageSize) ?? 10,
606
+ layout: "total, sizes, prev, pager, next, jumper",
607
+ total: ((Ee = c(C)) == null ? void 0 : Ee.total) ?? 0
608
+ }, null, 8, ["current-page", "page-sizes", "page-size", "total"])
609
+ ])
610
+ ]),
611
+ e[13] || (e[13] = o("div", { class: "footer" }, [
612
+ o("div", { class: "footer-left" }),
613
+ o("div", { class: "footer-right" })
614
+ ], -1))
615
+ ]),
616
+ t(_e, {
617
+ class: "role-edit-dialog",
618
+ visible: oe.value,
619
+ title: "角色信息",
620
+ onBeforeDestroy: ye,
621
+ showClose: !0,
622
+ closeOnClickModal: !1,
623
+ closeOnPressEscape: !1,
624
+ modalClass: "role-edit-modal",
625
+ alignCenter: !0,
626
+ appendToBody: !1
627
+ }, {
628
+ default: s(() => [
629
+ o("div", Jt, [
630
+ e[17] || (e[17] = o("div", { class: "role-management-header" }, [
631
+ o("div", { class: "header-left" }),
632
+ o("div", { class: "header-right" })
633
+ ], -1)),
634
+ o("div", Wt, [
635
+ o("div", Xt, [
636
+ t(rt, {
637
+ class: "role-edit-form",
638
+ ref_key: "roleFormRef",
639
+ ref: ve,
640
+ model: d.value,
641
+ rules: ze
642
+ }, {
643
+ default: s(() => [
644
+ t(re, { gutter: 20 }, {
645
+ default: s(() => [
646
+ t(j, { span: 12 }, {
647
+ default: s(() => [
648
+ t(Q, {
649
+ prop: "name",
650
+ label: "角色名称",
651
+ "label-position": "top"
652
+ }, {
653
+ default: s(() => [
654
+ t(l, {
655
+ modelValue: d.value.name,
656
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => d.value.name = r),
657
+ "aria-label": "角色名称",
658
+ placeholder: "角色名称"
659
+ }, null, 8, ["modelValue"])
660
+ ]),
661
+ _: 1
662
+ })
663
+ ]),
664
+ _: 1
665
+ }),
666
+ t(j, { span: 12 }, {
667
+ default: s(() => [
668
+ t(Q, {
669
+ label: "角色编码",
670
+ "label-position": "top"
671
+ }, {
672
+ default: s(() => [
673
+ t(l, {
674
+ modelValue: d.value.code,
675
+ "onUpdate:modelValue": e[3] || (e[3] = (r) => d.value.code = r),
676
+ "aria-label": "角色编码",
677
+ placeholder: "角色编码"
678
+ }, null, 8, ["modelValue"])
679
+ ]),
680
+ _: 1
681
+ })
682
+ ]),
683
+ _: 1
684
+ })
685
+ ]),
686
+ _: 1
687
+ }),
688
+ t(re, { gutter: 20 }, {
689
+ default: s(() => [
690
+ t(j, { span: 12 }, {
691
+ default: s(() => [
692
+ t(Q, {
693
+ label: "备注",
694
+ "label-position": "top"
695
+ }, {
696
+ default: s(() => [
697
+ t(l, {
698
+ modelValue: d.value.remark,
699
+ "onUpdate:modelValue": e[4] || (e[4] = (r) => d.value.remark = r),
700
+ "aria-label": "备注",
701
+ placeholder: "备注"
702
+ }, null, 8, ["modelValue"])
703
+ ]),
704
+ _: 1
705
+ })
706
+ ]),
707
+ _: 1
708
+ })
709
+ ]),
710
+ _: 1
711
+ }),
712
+ t(re, {
713
+ class: "auth-tree-row",
714
+ gutter: 20
715
+ }, {
716
+ default: s(() => [
717
+ t(j, { span: 24 }, {
718
+ default: s(() => [
719
+ t(Q, {
720
+ label: "特性权限",
721
+ "label-position": "top"
722
+ }, {
723
+ default: s(() => [
724
+ o("div", Yt, [
725
+ t(l, {
726
+ modelValue: M.value,
727
+ "onUpdate:modelValue": e[5] || (e[5] = (r) => M.value = r)
728
+ }, {
729
+ prefix: s(() => [
730
+ t(P, { class: "el-input__icon" }, {
731
+ default: s(() => [
732
+ t(c(mt))
733
+ ]),
734
+ _: 1
735
+ })
736
+ ]),
737
+ _: 1
738
+ }, 8, ["modelValue"]),
739
+ t(nt, {
740
+ ref_key: "propertyTreeRef",
741
+ ref: q,
742
+ class: "auth-tree",
743
+ data: c(y),
744
+ props: $,
745
+ "node-key": "id",
746
+ "show-checkbox": "",
747
+ "default-expanded-keys": d.value.checked_ids,
748
+ "default-checked-keys": d.value.checked_ids,
749
+ "filter-node-method": Ue
750
+ }, {
751
+ default: s(({ node: r, data: i }) => {
752
+ var ie;
753
+ return [
754
+ o("div", Zt, [
755
+ o("div", ea, [
756
+ o("div", ta, A(r.label), 1)
757
+ ]),
758
+ i.isPropertyLeaf && se(i) ? (k(), D("div", aa, [
759
+ t(z, {
760
+ class: "status-tag",
761
+ type: c(te)(i.status),
762
+ title: "点击切换",
763
+ onClick: (I) => Xe(I, i)
764
+ }, {
765
+ default: s(() => [
766
+ h(A(c(ee)(i.status)), 1)
767
+ ]),
768
+ _: 2
769
+ }, 1032, ["type", "onClick"])
770
+ ])) : H("", !0),
771
+ i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(), D("div", oa, [
772
+ t(z, {
773
+ class: "status-tag",
774
+ type: "success",
775
+ onClick: (I) => qe(I, i)
776
+ }, {
777
+ default: s(() => e[14] || (e[14] = [
778
+ h(" 参数设置 ")
779
+ ])),
780
+ _: 2,
781
+ __: [14]
782
+ }, 1032, ["onClick"])
783
+ ])) : H("", !0),
784
+ i.isPropertyLeaf && se(i) && c($e)(i) ? (k(), D("div", sa, [
785
+ t(z, {
786
+ class: "status-tag",
787
+ type: "warning",
788
+ onClick: (I) => be(I, i)
789
+ }, {
790
+ default: s(() => e[15] || (e[15] = [
791
+ h(" 数据权限 ")
792
+ ])),
793
+ _: 2,
794
+ __: [15]
795
+ }, 1032, ["onClick"])
796
+ ])) : H("", !0),
797
+ r.level == 1 && r.checked && !i.isProperty ? (k(), D("div", la, [
798
+ t(z, {
799
+ class: "status-tag",
800
+ type: "warning",
801
+ onClick: (I) => be(I, i)
802
+ }, {
803
+ default: s(() => e[16] || (e[16] = [
804
+ h(" 数据权限重置 ")
805
+ ])),
806
+ _: 2,
807
+ __: [16]
808
+ }, 1032, ["onClick"])
809
+ ])) : H("", !0)
810
+ ])
811
+ ];
812
+ }),
813
+ _: 1
814
+ }, 8, ["data", "default-expanded-keys", "default-checked-keys"])
815
+ ])
816
+ ]),
817
+ _: 1
818
+ })
819
+ ]),
820
+ _: 1
821
+ })
822
+ ]),
823
+ _: 1
824
+ })
825
+ ]),
826
+ _: 1
827
+ }, 8, ["model", "rules"])
828
+ ])
829
+ ])
830
+ ])
831
+ ]),
832
+ footer: s(() => [
833
+ o("div", na, [
834
+ e[18] || (e[18] = o("div", { class: "footer-left" }, null, -1)),
835
+ o("div", ra, [
836
+ t(B, {
837
+ class: "cancel",
838
+ emptyColor: !0,
839
+ onClickTrigger: ke,
840
+ modelValue: "取消",
841
+ buttonType: "info"
842
+ }),
843
+ t(B, {
844
+ class: "confirm",
845
+ emptyColor: !0,
846
+ onClickTrigger: Ge,
847
+ modelValue: "确定",
848
+ buttonType: "primary"
849
+ })
850
+ ])
851
+ ])
852
+ ]),
853
+ _: 1
854
+ }, 8, ["visible"]),
855
+ t(Lt, {
856
+ ref_key: "paramAuthDialog",
857
+ ref: K,
858
+ params: ge.value,
859
+ "checked-params": d.value.params,
860
+ onUpdateParams: Me
861
+ }, null, 8, ["params", "checked-params"]),
862
+ t(Ft, {
863
+ ref_key: "scopeDialog",
864
+ ref: Ce,
865
+ onConfirm: Ye
866
+ }, null, 512)
867
+ ], 64);
868
+ };
869
+ }
870
+ }), ba = /* @__PURE__ */ W(ia, [["__scopeId", "data-v-5da1e93d"]]);
871
+ export {
872
+ ba as default
873
+ };