ss-component-new 1.3.667 → 1.3.669

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 (84) hide show
  1. package/dist/MTLLoader-C2ENwU4B.js +657 -0
  2. package/dist/URDFLoader-D8HIcp6W.js +2304 -0
  3. package/dist/animationData-CDGBdGSq.js +83 -0
  4. package/dist/array-GeFGcNng.js +1044 -0
  5. package/dist/clone-epSiajPW.js +8 -0
  6. package/dist/config.js +1 -1
  7. package/dist/eleIcon-BWVKfp5t.js +29 -0
  8. package/dist/iconfont-DMYmzqd8.js +1018 -0
  9. package/dist/icons/svg/Update.svg +1 -0
  10. package/dist/icons/svg/functionList.svg +1 -0
  11. package/dist/icons/svg/uploadCopy.svg +1 -0
  12. package/dist/index-3va3ENB8.js +201 -0
  13. package/dist/index-B4vESlof.js +78 -0
  14. package/dist/index-BFRbO6Ob.js +864 -0
  15. package/dist/index-BFqUz4pN.js +52 -0
  16. package/dist/index-BO_ie9cf.js +117 -0
  17. package/dist/index-BTcUmOL9.js +83 -0
  18. package/dist/index-Bd9AU0ks.js +93 -0
  19. package/dist/index-Bfe0Vmym.js +658 -0
  20. package/dist/index-BpGFvMaU.js +62 -0
  21. package/dist/index-Bto8e0_l.js +103 -0
  22. package/dist/index-Bvvz41NY.js +44 -0
  23. package/dist/index-CALpUVvi.js +2623 -0
  24. package/dist/index-CRusLwdZ.js +48 -0
  25. package/dist/index-CV_jQDcg.js +9 -0
  26. package/dist/index-CeVSdtF3.js +407 -0
  27. package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
  28. package/dist/index-CmRnsU1X.js +996 -0
  29. package/dist/index-CxGjXQS8.js +93 -0
  30. package/dist/index-DJrzqi4-.js +209 -0
  31. package/dist/index-DT2KzAmL.js +8988 -0
  32. package/dist/index-D_kI6aHR.js +98 -0
  33. package/dist/index-D_zqmWYW.js +627 -0
  34. package/dist/index-DgW-zPUZ.js +30 -0
  35. package/dist/index-DhllboDp.js +11773 -0
  36. package/dist/index-Di7_fN-l.js +61958 -0
  37. package/dist/index-DmuX4rYk.js +98 -0
  38. package/dist/index-DxEqN-_a.js +84 -0
  39. package/dist/index-FNOjQQWl.js +619 -0
  40. package/dist/index-GqaokPsw.js +342 -0
  41. package/dist/index-SjNcMhxZ.js +447 -0
  42. package/dist/index-XGieOXX9.js +55 -0
  43. package/dist/index-YVR3acYT.js +61 -0
  44. package/dist/index-b-1Cc3pU.js +28483 -0
  45. package/dist/index-bzdYGNwv.js +24879 -0
  46. package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
  47. package/dist/index-f22t3lGR.js +107 -0
  48. package/dist/index-hPoDGmt5.js +468 -0
  49. package/dist/index-uF-ibwG0.js +9 -0
  50. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
  51. package/dist/index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BGHEN9yR.js +137728 -0
  52. package/dist/isString-CoCw_sp3.js +8 -0
  53. package/dist/localIcon-CoJHw5ss.js +76 -0
  54. package/dist/main-B3uivmHw.js +502 -0
  55. package/dist/menuIndex-B7ZUahFp.js +159 -0
  56. package/dist/request-DiogHwkN.js +9465 -0
  57. package/dist/ss-component.css +8 -2
  58. package/dist/ss-component.js +64 -28
  59. package/dist/ss-component2.js +75 -15
  60. package/dist/ss-component3.js +1 -1
  61. package/dist/threeModel-BZpdWtB3.js +1108 -0
  62. package/dist/threePreview-QZ-g7bqk.js +2259 -0
  63. package/dist/threeSceneView-DeXv560D.js +1289 -0
  64. package/dist/threeSceneViewForCPMPIP-CdhC-Jg4.js +538 -0
  65. package/dist/threeTrackPathView-Cpwcmet3.js +620 -0
  66. package/dist/threeViewerHost-OeJJtWw4.js +233 -0
  67. package/dist/urdfTree-oAPOm0qi.js +254 -0
  68. package/dist/workpieceTreePanel-RgJlR6GJ.js +555 -0
  69. package/package.json +4 -4
  70. package/public/config.js +1 -1
  71. package/public/icons/svg/Update.svg +1 -0
  72. package/public/icons/svg/functionList.svg +1 -0
  73. package/public/icons/svg/uploadCopy.svg +1 -0
  74. package/dist/index-CCShKHTf.js +0 -50
  75. package/dist/index-CHLS51j8.js +0 -1044
  76. package/dist/index-Ccv8qbdo.js +0 -9091
  77. package/dist/index-D2V0zCQE.js +0 -195
  78. package/dist/index-DgjdKpj-.js +0 -182
  79. package/dist/menu-B8iV5Rhf.js +0 -5215
  80. package/dist/origin-B7bb-ZcE.js +0 -11428
  81. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  82. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  83. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  84. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -0,0 +1,864 @@
1
+ import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n, openBlock as k, createElementBlock as x, createElementVNode as o, createVNode as t, withCtx as s, toDisplayString as N, createBlock as ue, reactive as xe, Fragment as pe, renderList as De, 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-DiogHwkN.js";
3
+ import { u as Se, o as ft, s as de, f as ce } from "./index-GqaokPsw.js";
4
+ import { M as Le, N as _t, u as vt, p as gt } from "./index-DT2KzAmL.js";
5
+ import { s as fe } from "./index-DJrzqi4-.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BGHEN9yR.js";
7
+ import "./index-Di7_fN-l.js";
8
+ import "./index-dD-mKgue.js";
9
+ import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
10
+ import "./index-b-1Cc3pU.js";
11
+ import "./index-CALpUVvi.js";
12
+ import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { c as me } from "./clone-epSiajPW.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(R, { expose: $ }) {
21
+ const f = R, D = {
22
+ value: "uniqueKey",
23
+ label: "label",
24
+ children: "children",
25
+ class: (b) => {
26
+ }
27
+ }, { buildParamAuthTree: P } = Se(), g = u(), S = Ve(() => P(f.params)), m = Ve(() => f.checkedParams.map((b) => `${b.id}_${b.prop}`));
28
+ return $({ getCheckedParams: () => {
29
+ var _;
30
+ return ((_ = g.value) == null ? void 0 : _.getCheckedNodes()) || [];
31
+ } }), (b, _) => {
32
+ const T = n("el-tree");
33
+ return k(), x("div", yt, [
34
+ _[0] || (_[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(T, {
40
+ ref_key: "paramTreeRef",
41
+ ref: g,
42
+ class: "param-tree",
43
+ data: S.value,
44
+ props: D,
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: F }) => [
52
+ o("div", kt, [
53
+ o("div", Ct, [
54
+ o("div", bt, N(v.label), 1)
55
+ ])
56
+ ])
57
+ ]),
58
+ _: 1
59
+ }, 8, ["data", "default-expanded-keys", "default-checked-keys"])
60
+ ]),
61
+ _[1] || (_[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" }, xt = { class: "edit-footer" }, Dt = { class: "footer-right" }, St = /* @__PURE__ */ J({
69
+ __name: "index",
70
+ props: {
71
+ params: {},
72
+ checkedParams: {}
73
+ },
74
+ emits: ["updateParams"],
75
+ setup(R, { expose: $, emit: f }) {
76
+ const D = f, P = u(), g = u(!1), S = () => {
77
+ g.value = !0;
78
+ }, m = () => {
79
+ g.value = !1;
80
+ }, C = () => {
81
+ m();
82
+ }, b = () => {
83
+ const T = _();
84
+ D("updateParams", T), m();
85
+ }, _ = () => {
86
+ var v;
87
+ return ((v = P.value) == null ? void 0 : v.getCheckedParams()) || [];
88
+ };
89
+ return $({ openEditDialog: S }), (T, v) => (k(), ue(fe, {
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: P,
112
+ params: R.params,
113
+ "checked-params": R.checkedParams
114
+ }, null, 8, ["params", "checked-params"])
115
+ ])
116
+ ])
117
+ ])
118
+ ]),
119
+ footer: s(() => [
120
+ o("div", xt, [
121
+ v[1] || (v[1] = o("div", { class: "footer-left" }, null, -1)),
122
+ o("div", Dt, [
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(R, { expose: $, emit: f }) {
147
+ const D = f, { initDepartmentScope: P } = Le(), g = u(), S = xe({
148
+ departmentScope: [
149
+ { required: !0, message: "请输入角色名称", trigger: "change" }
150
+ ]
151
+ }), m = u(P()), C = u(!1), b = () => {
152
+ C.value = !0;
153
+ }, _ = () => {
154
+ C.value = !1;
155
+ }, T = async (E) => {
156
+ m.value = me(E), b();
157
+ }, v = () => {
158
+ m.value = P(), _();
159
+ }, F = async () => {
160
+ var E, y;
161
+ await ((y = (E = g.value) == null ? void 0 : E.validate) == null ? void 0 : y.call(E)), D("confirm", me(m.value)), v();
162
+ };
163
+ return $({ handleEdit: T }), (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(fe, {
166
+ class: "scope-edit-dialog",
167
+ visible: C.value,
168
+ title: "数据权限",
169
+ onBeforeDestroy: _,
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), x(pe, null, De(c(_t), (V) => (k(), ue(X, {
209
+ key: V.value,
210
+ value: V.value
211
+ }, {
212
+ default: s(() => [
213
+ h(N(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: F,
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"]]), zt = { class: "role-management" }, Ot = { class: "header" }, Ut = { class: "header-left" }, Mt = { class: "query-wrapper" }, qt = { 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(R) {
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
+ }, f = vt(gt), { initDepartmentScope: D, recAndInitNodeDataPermission: P } = Le(), {
285
+ initRoleItem: g,
286
+ queryInfo: S,
287
+ resetQuery: m,
288
+ pageInfo: C,
289
+ setPageNum: b,
290
+ setPageSize: _,
291
+ initGetByPage: T,
292
+ // initRoleList,
293
+ initCreate: v,
294
+ initUpdate: F,
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(), _e = u([]), Ae = async () => {
309
+ const a = await T(), { roleData: e = [] } = a;
310
+ return e;
311
+ }, z = async () => {
312
+ _e.value = await Ae();
313
+ }, Ne = (a) => {
314
+ b(a), z();
315
+ }, Fe = (a) => {
316
+ _(a), z();
317
+ }, ze = async () => {
318
+ m(), f.setImportLoading(!0), await z().finally(() => {
319
+ f.setImportLoading(!1);
320
+ });
321
+ }, A = async () => {
322
+ await z(), await ae();
323
+ };
324
+ it(() => {
325
+ A();
326
+ });
327
+ const ve = u(), Oe = xe({
328
+ name: [
329
+ { required: !0, message: "请输入角色名称", trigger: "blur" }
330
+ ]
331
+ }), M = u(), q = u(""), d = u(g());
332
+ dt(q, (a) => {
333
+ M.value.filter(a);
334
+ });
335
+ const Ue = (a, e) => a ? e.label.includes(a) : !0, ge = u([]), K = u(), Me = (a, e) => {
336
+ var l;
337
+ a.stopPropagation(), ge.value = e.params || [], (l = K == null ? void 0 : K.value) == null || l.openEditDialog();
338
+ }, qe = (a) => {
339
+ var p;
340
+ const e = (p = a == null ? void 0 : a[0]) == null ? void 0 : p.id, l = d.value.params.filter((w) => w.id !== e);
341
+ d.value.params = [...l, ...a];
342
+ }, oe = u(!1), Ke = () => {
343
+ oe.value = !0;
344
+ }, ye = () => {
345
+ q.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, w;
360
+ await ((p = (l = ve.value) == null ? void 0 : l.validate) == null ? void 0 : p.call(l));
361
+ let a = ((w = M.value) == null ? void 0 : w.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 F(a), await A();
376
+ }, je = async () => {
377
+ await v(d.value), await A();
378
+ }, He = async () => {
379
+ await F(d.value), await A();
380
+ }, Je = async (a) => {
381
+ await E(a), await A();
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 = M.value) == null ? void 0 : l.getCheckedKeys(!0)) || []).includes(a.id);
401
+ }, Ce = u(), G = u(), le = u(D()), be = (a, e) => {
402
+ var l;
403
+ a.stopPropagation(), G.value = e, e.isPropertyLeaf && (le.value = me(e.dataPermission)), e.isProperty || (le.value = D("")), (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
+ P(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 w;
420
+ const p = (w = e.target.files) == null ? void 0 : w[0];
421
+ if (p)
422
+ try {
423
+ f.setImportLoading(!0), await Ie(p), await A(), f.setImportLoading(!1);
424
+ } catch {
425
+ f.setImportLoading(!1);
426
+ }
427
+ }, a.click();
428
+ }, tt = async () => {
429
+ f.setImportLoading(!0), await Be().finally(() => {
430
+ f.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"), w = n("el-icon"), L = n("el-dropdown-item"), ne = n("el-dropdown-menu"), ot = n("el-dropdown"), O = n("el-table-column"), U = 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(), x(pe, null, [
439
+ o("div", zt, [
440
+ o("div", Ot, [
441
+ o("div", Ut, [
442
+ o("div", Mt, [
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: z
452
+ }, {
453
+ default: s(() => [...e[6] || (e[6] = [
454
+ h("查询", -1)
455
+ ])]),
456
+ _: 1
457
+ }),
458
+ t(p, {
459
+ type: "primary",
460
+ plain: "",
461
+ onClick: ze
462
+ }, {
463
+ default: s(() => [...e[7] || (e[7] = [
464
+ h("重置", -1)
465
+ ])]),
466
+ _: 1
467
+ })
468
+ ])
469
+ ]),
470
+ o("div", qt, [
471
+ t(p, {
472
+ type: "primary",
473
+ onClick: Ze
474
+ }, {
475
+ default: s(() => [
476
+ e[8] || (e[8] = h(" 导入 ", -1)),
477
+ t(w, { class: "el-icon--right" }, {
478
+ default: s(() => [
479
+ t(c(ut))
480
+ ]),
481
+ _: 1
482
+ })
483
+ ]),
484
+ _: 1
485
+ }),
486
+ t(ot, null, {
487
+ dropdown: s(() => [
488
+ t(ne, null, {
489
+ default: s(() => [
490
+ t(L, { onClick: at }, {
491
+ default: s(() => [...e[10] || (e[10] = [
492
+ h("导出模板", -1)
493
+ ])]),
494
+ _: 1
495
+ }),
496
+ t(L, { onClick: tt }, {
497
+ default: s(() => [...e[11] || (e[11] = [
498
+ h("导出数据", -1)
499
+ ])]),
500
+ _: 1
501
+ })
502
+ ]),
503
+ _: 1
504
+ })
505
+ ]),
506
+ default: s(() => [
507
+ t(p, { type: "primary" }, {
508
+ default: s(() => [
509
+ e[9] || (e[9] = h(" 导出 ", -1)),
510
+ t(w, { class: "el-icon--right" }, {
511
+ default: s(() => [
512
+ t(c(pt))
513
+ ]),
514
+ _: 1
515
+ })
516
+ ]),
517
+ _: 1
518
+ })
519
+ ]),
520
+ _: 1
521
+ }),
522
+ t(B, {
523
+ emptyColor: !0,
524
+ onClickTrigger: e[1] || (e[1] = (r) => he()),
525
+ modelValue: "创建角色",
526
+ buttonType: "primary"
527
+ })
528
+ ])
529
+ ]),
530
+ o("div", Kt, [
531
+ o("div", Gt, [
532
+ t(st, {
533
+ class: "role-table",
534
+ data: _e.value,
535
+ "empty-text": ""
536
+ }, {
537
+ default: s(() => [
538
+ t(O, {
539
+ prop: "name",
540
+ label: "名称",
541
+ align: "center"
542
+ }),
543
+ t(O, {
544
+ prop: "code",
545
+ label: "编码",
546
+ align: "center"
547
+ }),
548
+ t(O, {
549
+ prop: "remark",
550
+ label: "备注",
551
+ align: "center"
552
+ }),
553
+ t(O, {
554
+ prop: "status",
555
+ label: "状态",
556
+ align: "center"
557
+ }, {
558
+ default: s((r) => [
559
+ t(U, {
560
+ class: "status-tag",
561
+ type: c(Z)(r.row.status),
562
+ title: "点击切换",
563
+ onClick: (i) => Qe(r.row)
564
+ }, {
565
+ default: s(() => [
566
+ h(N(c(Y)(r.row.status)), 1)
567
+ ]),
568
+ _: 2
569
+ }, 1032, ["type", "onClick"])
570
+ ]),
571
+ _: 1
572
+ }),
573
+ t(O, {
574
+ label: "操作",
575
+ align: "center"
576
+ }, {
577
+ default: s((r) => [
578
+ o("div", Qt, [
579
+ (k(!0), x(pe, null, De(c(ft), (i) => (k(), x("div", {
580
+ class: "operate-item",
581
+ key: i.value,
582
+ onClick: ct((ie) => We(i, r), ["stop"])
583
+ }, N(i.label), 9, jt))), 128))
584
+ ])
585
+ ]),
586
+ _: 1
587
+ })
588
+ ]),
589
+ _: 1
590
+ }, 8, ["data"])
591
+ ]),
592
+ o("div", Ht, [
593
+ e[12] || (e[12] = o("div", null, null, -1)),
594
+ t(lt, {
595
+ onSizeChange: Fe,
596
+ onCurrentChange: Ne,
597
+ "current-page": (we = c(C)) == null ? void 0 : we.pageNum,
598
+ "page-sizes": (Pe = c(C)) == null ? void 0 : Pe.pageSizes,
599
+ "page-size": ((Te = c(C)) == null ? void 0 : Te.pageSize) ?? 10,
600
+ layout: "total, sizes, prev, pager, next, jumper",
601
+ total: ((Ee = c(C)) == null ? void 0 : Ee.total) ?? 0
602
+ }, null, 8, ["current-page", "page-sizes", "page-size", "total"])
603
+ ])
604
+ ]),
605
+ e[13] || (e[13] = o("div", { class: "footer" }, [
606
+ o("div", { class: "footer-left" }),
607
+ o("div", { class: "footer-right" })
608
+ ], -1))
609
+ ]),
610
+ t(fe, {
611
+ class: "role-edit-dialog",
612
+ visible: oe.value,
613
+ title: "角色信息",
614
+ onBeforeDestroy: ye,
615
+ showClose: !0,
616
+ closeOnClickModal: !1,
617
+ closeOnPressEscape: !1,
618
+ modalClass: "role-edit-modal",
619
+ alignCenter: !0,
620
+ appendToBody: !1
621
+ }, {
622
+ default: s(() => [
623
+ o("div", Jt, [
624
+ e[17] || (e[17] = o("div", { class: "role-management-header" }, [
625
+ o("div", { class: "header-left" }),
626
+ o("div", { class: "header-right" })
627
+ ], -1)),
628
+ o("div", Wt, [
629
+ o("div", Xt, [
630
+ t(rt, {
631
+ class: "role-edit-form",
632
+ ref_key: "roleFormRef",
633
+ ref: ve,
634
+ model: d.value,
635
+ rules: Oe
636
+ }, {
637
+ default: s(() => [
638
+ t(re, { gutter: 20 }, {
639
+ default: s(() => [
640
+ t(j, { span: 12 }, {
641
+ default: s(() => [
642
+ t(Q, {
643
+ prop: "name",
644
+ label: "角色名称",
645
+ "label-position": "top"
646
+ }, {
647
+ default: s(() => [
648
+ t(l, {
649
+ modelValue: d.value.name,
650
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => d.value.name = r),
651
+ "aria-label": "角色名称",
652
+ placeholder: "角色名称"
653
+ }, null, 8, ["modelValue"])
654
+ ]),
655
+ _: 1
656
+ })
657
+ ]),
658
+ _: 1
659
+ }),
660
+ t(j, { span: 12 }, {
661
+ default: s(() => [
662
+ t(Q, {
663
+ label: "角色编码",
664
+ "label-position": "top"
665
+ }, {
666
+ default: s(() => [
667
+ t(l, {
668
+ modelValue: d.value.code,
669
+ "onUpdate:modelValue": e[3] || (e[3] = (r) => d.value.code = r),
670
+ "aria-label": "角色编码",
671
+ placeholder: "角色编码"
672
+ }, null, 8, ["modelValue"])
673
+ ]),
674
+ _: 1
675
+ })
676
+ ]),
677
+ _: 1
678
+ })
679
+ ]),
680
+ _: 1
681
+ }),
682
+ t(re, { gutter: 20 }, {
683
+ default: s(() => [
684
+ t(j, { span: 12 }, {
685
+ default: s(() => [
686
+ t(Q, {
687
+ label: "备注",
688
+ "label-position": "top"
689
+ }, {
690
+ default: s(() => [
691
+ t(l, {
692
+ modelValue: d.value.remark,
693
+ "onUpdate:modelValue": e[4] || (e[4] = (r) => d.value.remark = r),
694
+ "aria-label": "备注",
695
+ placeholder: "备注"
696
+ }, null, 8, ["modelValue"])
697
+ ]),
698
+ _: 1
699
+ })
700
+ ]),
701
+ _: 1
702
+ })
703
+ ]),
704
+ _: 1
705
+ }),
706
+ t(re, {
707
+ class: "auth-tree-row",
708
+ gutter: 20
709
+ }, {
710
+ default: s(() => [
711
+ t(j, { span: 24 }, {
712
+ default: s(() => [
713
+ t(Q, {
714
+ label: "特性权限",
715
+ "label-position": "top"
716
+ }, {
717
+ default: s(() => [
718
+ o("div", Yt, [
719
+ t(l, {
720
+ modelValue: q.value,
721
+ "onUpdate:modelValue": e[5] || (e[5] = (r) => q.value = r)
722
+ }, {
723
+ prefix: s(() => [
724
+ t(w, { class: "el-input__icon" }, {
725
+ default: s(() => [
726
+ t(c(mt))
727
+ ]),
728
+ _: 1
729
+ })
730
+ ]),
731
+ _: 1
732
+ }, 8, ["modelValue"]),
733
+ t(nt, {
734
+ ref_key: "propertyTreeRef",
735
+ ref: M,
736
+ class: "auth-tree",
737
+ data: c(y),
738
+ props: $,
739
+ "node-key": "id",
740
+ "show-checkbox": "",
741
+ "default-expanded-keys": d.value.checked_ids,
742
+ "default-checked-keys": d.value.checked_ids,
743
+ "filter-node-method": Ue
744
+ }, {
745
+ default: s(({ node: r, data: i }) => {
746
+ var ie;
747
+ return [
748
+ o("div", Zt, [
749
+ o("div", ea, [
750
+ o("div", ta, N(r.label), 1)
751
+ ]),
752
+ i.isPropertyLeaf && se(i) ? (k(), x("div", aa, [
753
+ t(U, {
754
+ class: "status-tag",
755
+ type: c(te)(i.status),
756
+ title: "点击切换",
757
+ onClick: (I) => Xe(I, i)
758
+ }, {
759
+ default: s(() => [
760
+ h(N(c(ee)(i.status)), 1)
761
+ ]),
762
+ _: 2
763
+ }, 1032, ["type", "onClick"])
764
+ ])) : H("", !0),
765
+ i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(), x("div", oa, [
766
+ t(U, {
767
+ class: "status-tag",
768
+ type: "success",
769
+ onClick: (I) => Me(I, i)
770
+ }, {
771
+ default: s(() => [...e[14] || (e[14] = [
772
+ h(" 参数设置 ", -1)
773
+ ])]),
774
+ _: 1
775
+ }, 8, ["onClick"])
776
+ ])) : H("", !0),
777
+ i.isPropertyLeaf && se(i) && c($e)(i) ? (k(), x("div", sa, [
778
+ t(U, {
779
+ class: "status-tag",
780
+ type: "warning",
781
+ onClick: (I) => be(I, i)
782
+ }, {
783
+ default: s(() => [...e[15] || (e[15] = [
784
+ h(" 数据权限 ", -1)
785
+ ])]),
786
+ _: 1
787
+ }, 8, ["onClick"])
788
+ ])) : H("", !0),
789
+ r.level == 1 && r.checked && !i.isProperty ? (k(), x("div", la, [
790
+ t(U, {
791
+ class: "status-tag",
792
+ type: "warning",
793
+ onClick: (I) => be(I, i)
794
+ }, {
795
+ default: s(() => [...e[16] || (e[16] = [
796
+ h(" 数据权限重置 ", -1)
797
+ ])]),
798
+ _: 1
799
+ }, 8, ["onClick"])
800
+ ])) : H("", !0)
801
+ ])
802
+ ];
803
+ }),
804
+ _: 1
805
+ }, 8, ["data", "default-expanded-keys", "default-checked-keys"])
806
+ ])
807
+ ]),
808
+ _: 1
809
+ })
810
+ ]),
811
+ _: 1
812
+ })
813
+ ]),
814
+ _: 1
815
+ })
816
+ ]),
817
+ _: 1
818
+ }, 8, ["model", "rules"])
819
+ ])
820
+ ])
821
+ ])
822
+ ]),
823
+ footer: s(() => [
824
+ o("div", na, [
825
+ e[18] || (e[18] = o("div", { class: "footer-left" }, null, -1)),
826
+ o("div", ra, [
827
+ t(B, {
828
+ class: "cancel",
829
+ emptyColor: !0,
830
+ onClickTrigger: ke,
831
+ modelValue: "取消",
832
+ buttonType: "info"
833
+ }),
834
+ t(B, {
835
+ class: "confirm",
836
+ emptyColor: !0,
837
+ onClickTrigger: Ge,
838
+ modelValue: "确定",
839
+ buttonType: "primary"
840
+ })
841
+ ])
842
+ ])
843
+ ]),
844
+ _: 1
845
+ }, 8, ["visible"]),
846
+ t(Lt, {
847
+ ref_key: "paramAuthDialog",
848
+ ref: K,
849
+ params: ge.value,
850
+ "checked-params": d.value.params,
851
+ onUpdateParams: qe
852
+ }, null, 8, ["params", "checked-params"]),
853
+ t(Ft, {
854
+ ref_key: "scopeDialog",
855
+ ref: Ce,
856
+ onConfirm: Ye
857
+ }, null, 512)
858
+ ], 64);
859
+ };
860
+ }
861
+ }), ba = /* @__PURE__ */ W(ia, [["__scopeId", "data-v-5da1e93d"]]);
862
+ export {
863
+ ba as default
864
+ };