ss-component-new 1.3.286 → 1.3.288

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 (121) hide show
  1. package/dist/{MTLLoader-Bsogql70.cjs → MTLLoader-CdxYhBAE.cjs} +1 -1
  2. package/dist/{MTLLoader-CdsFGQF-.js → MTLLoader-RsaYZtZ_.js} +1 -1
  3. package/dist/{OrbitControls-DWoCUvy4.cjs → OrbitControls-BNTHZN2P.cjs} +1 -1
  4. package/dist/{OrbitControls-C2_UxiUE.js → OrbitControls-D4mDZcDl.js} +1 -1
  5. package/dist/{URDFLoader-BsZKAKIo.cjs → URDFLoader-B56WRl4z.cjs} +1 -1
  6. package/dist/{URDFLoader-Dz9DW7vE.js → URDFLoader-BPNyxykV.js} +2 -2
  7. package/dist/{animationData-DnGVHraX.js → animationData-D4Q3av_t.js} +3 -3
  8. package/dist/{animationData-oN-nuDkg.cjs → animationData-DiyxzUT8.cjs} +1 -1
  9. package/dist/{array-BkvdBkjB.cjs → array-DHHdihdS.cjs} +1 -1
  10. package/dist/{array-MoA3Ri4g.js → array-jbOhhf4v.js} +4 -4
  11. package/dist/{clone-fE05POOC.js → clone-BrrxU6_J.js} +1 -1
  12. package/dist/clone-Dn6v3xp6.cjs +1 -0
  13. package/dist/{dayjs.min-D4NpYk_n.cjs → dayjs.min-DRU3LNcy.cjs} +1 -1
  14. package/dist/{dayjs.min-Dnlx1ZBx.js → dayjs.min-Dx_LN6Bu.js} +1 -1
  15. package/dist/{iconfont-DOzv_3Zg.js → iconfont-DkmQztG1.js} +2 -2
  16. package/dist/{iconfont-Dmx62o41.cjs → iconfont-Dq-DsQsx.cjs} +1 -1
  17. package/dist/{index-C2WU_Ec1.js → index--PidpjSy.js} +2 -2
  18. package/dist/{index-sIKBEcpI.js → index--ZVD8xbU.js} +16 -26
  19. package/dist/{index-BYz3b7aZ.js → index-1rE9nGn_.js} +2 -2
  20. package/dist/{index-2xd8WpWE.js → index-B6b9Lr8M.js} +3 -3
  21. package/dist/{index-B4tCIr_z.cjs → index-BOHy6XZd.cjs} +1 -1
  22. package/dist/index-BVOdzNfr.js +9371 -0
  23. package/dist/{index-DyzZBKOp.cjs → index-BbZoRc6B.cjs} +1 -1
  24. package/dist/index-BdyYMxx4.cjs +1 -0
  25. package/dist/{index-BZ-4my22.cjs → index-Big-I9pF.cjs} +1 -1
  26. package/dist/index-BlAISTfa.cjs +1 -0
  27. package/dist/index-Bs0qreV1.cjs +1 -0
  28. package/dist/{index-Xa-cp7US.js → index-C-z63B9f.js} +9 -9
  29. package/dist/{index-B-U8MdmI.cjs → index-C0A0y_84.cjs} +1 -1
  30. package/dist/{index-DsoXkrYI.js → index-C1dVsNLG.js} +1 -1
  31. package/dist/{index-D1z8j4eV.js → index-C7-Idrnv.js} +1 -1
  32. package/dist/{index-CkgTi0gb.js → index-C9smrIfQ.js} +6 -6
  33. package/dist/{index-jkznII6r.cjs → index-CAcP6bx_.cjs} +1 -1
  34. package/dist/{index-BsOgskIp.js → index-CF4yVz1d.js} +2 -2
  35. package/dist/{index-CTwVZFcK.cjs → index-CQcXApCn.cjs} +1 -1
  36. package/dist/{index-BFrBIvIE.js → index-CTtBV5bC.js} +2 -2
  37. package/dist/{index-BECHZzKg.cjs → index-CUJ_cdPT.cjs} +1 -1
  38. package/dist/{index-BQDdBzrY.js → index-CV8QlXGI.js} +1 -1
  39. package/dist/{index-Yj1Oc3ZA.cjs → index-CXgZFuTt.cjs} +1 -1
  40. package/dist/{index-Dqh2QdZw.js → index-Cbb4eaBp.js} +3 -3
  41. package/dist/{index-_15_kR9u.cjs → index-CdrBTtcu.cjs} +1 -1
  42. package/dist/{index-C4-xNXhM.js → index-Cg7Mpfpj.js} +1 -1
  43. package/dist/{index-Cm9kN1Xu.cjs → index-CiZrZ3Xv.cjs} +1 -1
  44. package/dist/index-CliKgPns.cjs +1 -0
  45. package/dist/{index-BeOgfY4E.js → index-Cml5XnKL.js} +6 -6
  46. package/dist/{index-BRNEBbrZ.cjs → index-CuHxF23O.cjs} +1 -1
  47. package/dist/index-Cxv5DW4K.cjs +2 -0
  48. package/dist/{index-CU99CuPT.cjs → index-D1NTpDPS.cjs} +1 -1
  49. package/dist/{index-C4MvqsS3.js → index-D21dwfqO.js} +1 -1
  50. package/dist/{index-sE0VWxJ7.cjs → index-D3Lvzu_0.cjs} +1 -1
  51. package/dist/{index-BhPO2DCU.cjs → index-DAwnZFmG.cjs} +1 -1
  52. package/dist/{index-DO-1hTj2.cjs → index-DLN6R2tJ.cjs} +1 -1
  53. package/dist/{index-CnTP5O4m.js → index-DSOG6EEa.js} +4 -4
  54. package/dist/{index-DGBPHiex.cjs → index-DTiolIgS.cjs} +1 -1
  55. package/dist/index-DTsHI5xQ.js +30 -0
  56. package/dist/{index-0KXR_hwR.cjs → index-DUAnjHxe.cjs} +1 -1
  57. package/dist/{index-CAZZzLQo.cjs → index-DXWN-UJr.cjs} +1 -1
  58. package/dist/{index-Dz6vpfgy.js → index-DXjgumn5.js} +3 -3
  59. package/dist/{index-B6ql3Xm0.js → index-Df8bxCwR.js} +29 -29
  60. package/dist/{index-CJc4ev1k.cjs → index-Dm_u-SjZ.cjs} +1 -1
  61. package/dist/index-Drj3FBfd.js +1058 -0
  62. package/dist/{index-FA5lLYx0.js → index-H_NM-ZF-.js} +2 -2
  63. package/dist/{index-CbGFrsD8.cjs → index-NnqT8oEL.cjs} +1 -1
  64. package/dist/{index-Baf8WN5y.js → index-QG4F5kTH.js} +2 -2
  65. package/dist/{index-3-c8Ohjp.js → index-RSaGZhb3.js} +2 -2
  66. package/dist/{index-DLQ3bwtv.cjs → index-WTaP_KDd.cjs} +1 -1
  67. package/dist/index-cFt1QbzL.js +308 -0
  68. package/dist/{index-BHelG7C7.js → index-csCFl4vZ.js} +7531 -7517
  69. package/dist/index-gFBtUdzh.js +494 -0
  70. package/dist/{index-V_-cMWsl.cjs → index-mHmXlK2R.cjs} +1 -1
  71. package/dist/{index-DiBR8QS7.js → index-tjDz6s0y.js} +1 -1
  72. package/dist/{index-BIZJ7GKJ.js → index-uBjJS7MI.js} +4 -4
  73. package/dist/index-uSfvbTe3.cjs +25 -0
  74. package/dist/index-vbxWL2yo.cjs +1 -0
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6Se_JzC.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js} +1850 -1845
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C9SIThm3.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs} +62 -62
  77. package/dist/{main-CBC6ubO_.cjs → main-CJWCDw-y.cjs} +1 -1
  78. package/dist/{main-C7oFJi1Q.js → main-DQB2eKuh.js} +4 -4
  79. package/dist/{menu-BxHhjSbR.js → menu-CtG1loFf.js} +109 -113
  80. package/dist/{menu-Dl3Jfk-c.cjs → menu-Hdw0L-Y2.cjs} +6 -6
  81. package/dist/{menuIndex-C9SCNvTX.js → menuIndex-DmS5cMwB.js} +1 -1
  82. package/dist/{menuIndex-_ho29ItI.cjs → menuIndex-DqY0uteo.cjs} +1 -1
  83. package/dist/obj/model.mtl +42 -0
  84. package/dist/obj/model.obj +26110 -0
  85. package/dist/ss-component.cjs +1 -1
  86. package/dist/ss-component.css +1 -1
  87. package/dist/ss-component.js +12 -12
  88. package/dist/ss-component2.cjs +1 -1
  89. package/dist/ss-component2.js +12 -12
  90. package/dist/{threeModel-NJj9qUh_.js → threeModel-BV7PfpCu.js} +4 -4
  91. package/dist/{threeModel-BzGOMEcf.cjs → threeModel-BY867mnV.cjs} +1 -1
  92. package/dist/{threePreview-B5IIrseu.js → threePreview-BwElOyqr.js} +4 -4
  93. package/dist/{threePreview-CAyxqtke.cjs → threePreview-CWRtmSvh.cjs} +1 -1
  94. package/dist/{threeSceneView-nFy-ZMDh.js → threeSceneView-BytYkSfT.js} +14 -14
  95. package/dist/{threeSceneView-DmyZ6JVk.cjs → threeSceneView-ff0CsUxF.cjs} +1 -1
  96. package/dist/{threeSceneViewForCPMPIP-5AFgwENl.js → threeSceneViewForCPMPIP-Bp2-YrZL.js} +8 -8
  97. package/dist/{threeSceneViewForCPMPIP-CagUxEZ7.cjs → threeSceneViewForCPMPIP-DDWR6FSl.cjs} +1 -1
  98. package/dist/{threeTrackPathView-DzteP02y.js → threeTrackPathView-BckFDqUs.js} +4 -4
  99. package/dist/{threeTrackPathView-Dmry9hlD.cjs → threeTrackPathView-CamXHHnK.cjs} +1 -1
  100. package/dist/{threeViewerHost-B5IEEj6S.js → threeViewerHost-5ThpQYP3.js} +3 -3
  101. package/dist/{threeViewerHost-Dtrx4MAi.cjs → threeViewerHost-Cuo7oQGW.cjs} +1 -1
  102. package/dist/{urdfTree-DwRiqRR9.js → urdfTree-B6GL3kgV.js} +1 -1
  103. package/dist/{urdfTree-C62b4s3t.cjs → urdfTree-DDQw6tEb.cjs} +1 -1
  104. package/dist/{workpieceTreePanel-5IQMEHLR.cjs → workpieceTreePanel-B6AVU13A.cjs} +1 -1
  105. package/dist/{workpieceTreePanel-B-ueTwVy.js → workpieceTreePanel-BvO881iH.js} +4 -4
  106. package/package.json +1 -1
  107. package/public/obj/model.mtl +42 -0
  108. package/public/obj/model.obj +26110 -0
  109. package/dist/clone-BeaG_uby.cjs +0 -1
  110. package/dist/index-A3W3n1yI.js +0 -9393
  111. package/dist/index-B0Ay1p_8.cjs +0 -1
  112. package/dist/index-Bq07pl6z.js +0 -55
  113. package/dist/index-CTJIAikw.cjs +0 -1
  114. package/dist/index-CdbYspWB.js +0 -494
  115. package/dist/index-D7ANep-L.cjs +0 -1
  116. package/dist/index-DEUqbjst.js +0 -448
  117. package/dist/index-DLHRv2Jb.cjs +0 -25
  118. package/dist/index-DRfDSXeI.js +0 -875
  119. package/dist/index-QYUIqsbh.cjs +0 -1
  120. package/dist/index-cHplSoU4.cjs +0 -2
  121. package/dist/index-uzigFRcN.cjs +0 -1
@@ -1,875 +0,0 @@
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, g as pt, h as mt } from "./request-CoGtW0Ux.js";
3
- import { u as Se, o as _t, s as de, f as ce } from "./index-Dqh2QdZw.js";
4
- import "./dayjs.min-Dnlx1ZBx.js";
5
- import { q as Le, r as ft, u as vt, p as gt } from "./menu-BxHhjSbR.js";
6
- import { s as _e } from "./index-CnjGqJZS.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6Se_JzC.js";
8
- import "./index-BHelG7C7.js";
9
- import "./index-BHtNKL1L.js";
10
- import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
11
- import "./index-3-c8Ohjp.js";
12
- import "./index-BIZJ7GKJ.js";
13
- import "./index-C4-xNXhM.js";
14
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- import { c as me } from "./clone-fE05POOC.js";
16
- 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({
17
- __name: "index",
18
- props: {
19
- params: {},
20
- checkedParams: {}
21
- },
22
- setup(U, { expose: $ }) {
23
- const _ = U, x = {
24
- value: "uniqueKey",
25
- label: "label",
26
- children: "children",
27
- class: (b) => {
28
- }
29
- }, { buildParamAuthTree: T } = Se(), g = u(), S = Ve(() => T(_.params)), m = Ve(() => _.checkedParams.map((b) => `${b.id}_${b.prop}`));
30
- return $({ getCheckedParams: () => {
31
- var f;
32
- return ((f = g.value) == null ? void 0 : f.getCheckedNodes()) || [];
33
- } }), (b, f) => {
34
- const w = n("el-tree");
35
- return k(), D("div", yt, [
36
- f[0] || (f[0] = o("div", { class: "header" }, [
37
- o("div", { class: "header-left" }),
38
- o("div", { class: "header-right" })
39
- ], -1)),
40
- o("div", ht, [
41
- t(w, {
42
- ref_key: "paramTreeRef",
43
- ref: g,
44
- class: "param-tree",
45
- data: S.value,
46
- props: x,
47
- "node-key": "uniqueKey",
48
- "show-checkbox": "",
49
- "default-expanded-keys": m.value,
50
- "default-checked-keys": m.value,
51
- height: "100%"
52
- }, {
53
- default: s(({ node: v, data: N }) => [
54
- o("div", kt, [
55
- o("div", Ct, [
56
- o("div", bt, A(v.label), 1)
57
- ])
58
- ])
59
- ]),
60
- _: 1
61
- }, 8, ["data", "default-expanded-keys", "default-checked-keys"])
62
- ]),
63
- f[1] || (f[1] = o("div", { class: "footer" }, [
64
- o("div", { class: "footer-left" }),
65
- o("div", { class: "footer-right" })
66
- ], -1))
67
- ]);
68
- };
69
- }
70
- }), 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({
71
- __name: "index",
72
- props: {
73
- params: {},
74
- checkedParams: {}
75
- },
76
- emits: ["updateParams"],
77
- setup(U, { expose: $, emit: _ }) {
78
- const x = _, T = u(), g = u(!1), S = () => {
79
- g.value = !0;
80
- }, m = () => {
81
- g.value = !1;
82
- }, C = () => {
83
- m();
84
- }, b = () => {
85
- const w = f();
86
- x("updateParams", w), m();
87
- }, f = () => {
88
- var v;
89
- return ((v = T.value) == null ? void 0 : v.getCheckedParams()) || [];
90
- };
91
- return $({ openEditDialog: S }), (w, v) => (k(), ue(_e, {
92
- class: "param-edit-dialog",
93
- visible: g.value,
94
- title: "参数权限",
95
- onBeforeDestroy: m,
96
- showClose: !0,
97
- closeOnClickModal: !1,
98
- closeOnPressEscape: !1,
99
- modalClass: "role-edit-modal",
100
- alignCenter: !0,
101
- appendToBody: !1
102
- }, {
103
- default: s(() => [
104
- o("div", Tt, [
105
- v[0] || (v[0] = o("div", { class: "param-header" }, [
106
- o("div", { class: "header-left" }),
107
- o("div", { class: "header-right" })
108
- ], -1)),
109
- o("div", Et, [
110
- o("div", Vt, [
111
- t(Pt, {
112
- ref_key: "paramAuthTree",
113
- ref: T,
114
- params: w.params,
115
- "checked-params": w.checkedParams
116
- }, null, 8, ["params", "checked-params"])
117
- ])
118
- ])
119
- ])
120
- ]),
121
- footer: s(() => [
122
- o("div", Dt, [
123
- v[1] || (v[1] = o("div", { class: "footer-left" }, null, -1)),
124
- o("div", xt, [
125
- t(B, {
126
- class: "cancel",
127
- emptyColor: !0,
128
- onClickTrigger: C,
129
- modelValue: "取消",
130
- buttonType: "info"
131
- }),
132
- t(B, {
133
- class: "confirm",
134
- emptyColor: !0,
135
- onClickTrigger: b,
136
- modelValue: "确定",
137
- buttonType: "primary"
138
- })
139
- ])
140
- ])
141
- ]),
142
- _: 1
143
- }, 8, ["visible"]));
144
- }
145
- }), 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({
146
- __name: "index",
147
- emits: ["confirm"],
148
- setup(U, { expose: $, emit: _ }) {
149
- const x = _, { initDepartmentScope: T } = Le(), g = u(), S = De({
150
- departmentScope: [
151
- { required: !0, message: "请输入角色名称", trigger: "change" }
152
- ]
153
- }), m = u(T()), C = u(!1), b = () => {
154
- C.value = !0;
155
- }, f = () => {
156
- C.value = !1;
157
- }, w = async (E) => {
158
- m.value = me(E), b();
159
- }, v = () => {
160
- m.value = T(), f();
161
- }, N = async () => {
162
- var E, y;
163
- await ((y = (E = g.value) == null ? void 0 : E.validate) == null ? void 0 : y.call(E)), x("confirm", me(m.value)), v();
164
- };
165
- return $({ handleEdit: w }), (E, y) => {
166
- 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");
167
- return k(), ue(_e, {
168
- class: "scope-edit-dialog",
169
- visible: C.value,
170
- title: "数据权限",
171
- onBeforeDestroy: f,
172
- showClose: !0,
173
- closeOnClickModal: !1,
174
- closeOnPressEscape: !1,
175
- modalClass: "scope-edit-modal",
176
- alignCenter: !0,
177
- appendToBody: !1
178
- }, {
179
- default: s(() => [
180
- o("div", $t, [
181
- y[1] || (y[1] = o("div", { class: "scope-management-header" }, [
182
- o("div", { class: "header-left" }),
183
- o("div", { class: "header-right" })
184
- ], -1)),
185
- o("div", It, [
186
- o("div", Bt, [
187
- t(ae, {
188
- class: "scope-edit-form",
189
- ref_key: "scopeFormRef",
190
- ref: g,
191
- model: m.value,
192
- rules: S
193
- }, {
194
- default: s(() => [
195
- t(te, { gutter: 20 }, {
196
- default: s(() => [
197
- t(ee, { span: 24 }, {
198
- default: s(() => [
199
- t(Z, {
200
- prop: "departmentScope",
201
- label: "部门权限范围",
202
- "label-position": "top"
203
- }, {
204
- default: s(() => [
205
- t(Y, {
206
- modelValue: m.value.departmentScope,
207
- "onUpdate:modelValue": y[0] || (y[0] = (V) => m.value.departmentScope = V)
208
- }, {
209
- default: s(() => [
210
- (k(!0), D(pe, null, xe(c(ft), (V) => (k(), ue(X, {
211
- key: V.value,
212
- value: V.value
213
- }, {
214
- default: s(() => [
215
- h(A(V.label), 1)
216
- ]),
217
- _: 2
218
- }, 1032, ["value"]))), 128))
219
- ]),
220
- _: 1
221
- }, 8, ["modelValue"])
222
- ]),
223
- _: 1
224
- })
225
- ]),
226
- _: 1
227
- })
228
- ]),
229
- _: 1
230
- })
231
- ]),
232
- _: 1
233
- }, 8, ["model", "rules"])
234
- ])
235
- ])
236
- ])
237
- ]),
238
- footer: s(() => [
239
- o("div", Rt, [
240
- y[2] || (y[2] = o("div", { class: "footer-left" }, null, -1)),
241
- o("div", At, [
242
- t(B, {
243
- class: "cancel",
244
- emptyColor: !0,
245
- onClickTrigger: v,
246
- modelValue: "取消",
247
- buttonType: "info"
248
- }),
249
- t(B, {
250
- class: "confirm",
251
- emptyColor: !0,
252
- onClickTrigger: N,
253
- modelValue: "确定",
254
- buttonType: "primary"
255
- })
256
- ])
257
- ])
258
- ]),
259
- _: 1
260
- }, 8, ["visible"]);
261
- };
262
- }
263
- }), Ft = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-40d37c72"]]), zt = { class: "role-management" }, Ot = { 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 = {
264
- key: 0,
265
- class: "status-tag"
266
- }, oa = {
267
- key: 1,
268
- class: "status-tag"
269
- }, sa = {
270
- key: 2,
271
- class: "status-tag"
272
- }, la = {
273
- key: 3,
274
- class: "status-tag"
275
- }, na = { class: "edit-footer" }, ra = { class: "footer-right" }, ia = /* @__PURE__ */ J({
276
- __name: "index",
277
- setup(U) {
278
- const $ = {
279
- value: "id",
280
- label: "label",
281
- children: "children"
282
- // class: (data: TreeNode) => {
283
- // const { isProperty } = data
284
- // return isProperty ? 'property-node' : 'unit-node'
285
- // }
286
- }, _ = vt(gt), { initDepartmentScope: x, recAndInitNodeDataPermission: T } = Le(), {
287
- initRoleItem: g,
288
- queryInfo: S,
289
- resetQuery: m,
290
- pageInfo: C,
291
- setPageNum: b,
292
- setPageSize: f,
293
- initGetByPage: w,
294
- // initRoleList,
295
- initCreate: v,
296
- initUpdate: N,
297
- initDelete: E,
298
- propertyAuthTree: y,
299
- initPropertyAuthTree: X,
300
- getStatusLabelByValue: Y,
301
- getStatusTagByValue: Z,
302
- getFeatureStatusLabelByValue: ee,
303
- getFeatureStatusTagByValue: te,
304
- initRoleConfig: ae,
305
- hasRoleEditAuth: V,
306
- isTableFeature: $e,
307
- initImport: Ie,
308
- initExport: Be,
309
- exportTemplate: Re
310
- } = Se(), fe = u([]), Ae = async () => {
311
- const a = await w(), { roleData: e = [] } = a;
312
- return e;
313
- }, F = async () => {
314
- fe.value = await Ae();
315
- }, Ne = (a) => {
316
- b(a), F();
317
- }, Fe = (a) => {
318
- f(a), F();
319
- }, ze = async () => {
320
- m(), _.setImportLoading(!0), await F().finally(() => {
321
- _.setImportLoading(!1);
322
- });
323
- }, R = async () => {
324
- await F(), await ae();
325
- };
326
- it(() => {
327
- R();
328
- });
329
- const ve = u(), Oe = De({
330
- name: [
331
- { required: !0, message: "请输入角色名称", trigger: "blur" }
332
- ]
333
- }), q = u(), M = u(""), d = u(g());
334
- dt(M, (a) => {
335
- q.value.filter(a);
336
- });
337
- const Ue = (a, e) => a ? e.label.includes(a) : !0, ge = u([]), K = u(), qe = (a, e) => {
338
- var l;
339
- a.stopPropagation(), ge.value = e.params || [], (l = K == null ? void 0 : K.value) == null || l.openEditDialog();
340
- }, Me = (a) => {
341
- var p;
342
- const e = (p = a == null ? void 0 : a[0]) == null ? void 0 : p.id, l = d.value.params.filter((P) => P.id !== e);
343
- d.value.params = [...l, ...a];
344
- }, oe = u(!1), Ke = () => {
345
- oe.value = !0;
346
- }, ye = () => {
347
- M.value = "", oe.value = !1;
348
- }, he = async (a) => {
349
- if (!V.value)
350
- return;
351
- const e = [];
352
- a && e.push(a.role_id), await X(e);
353
- let l = {};
354
- a != null && a.role_id || (l = {
355
- checkAll: !0,
356
- tree: y.value
357
- }), d.value = g(a, l), Ke();
358
- }, ke = () => {
359
- d.value = g(), ye();
360
- }, Ge = async () => {
361
- var l, p, P;
362
- await ((p = (l = ve.value) == null ? void 0 : l.validate) == null ? void 0 : p.call(l));
363
- let a = ((P = q.value) == null ? void 0 : P.getCheckedNodes()) || [];
364
- a = a.filter((L) => L.isPropertyLeaf), a = a.map((L) => {
365
- const { departmentScope: ne } = L.dataPermission || {};
366
- return {
367
- ...L,
368
- department_scope: ne
369
- };
370
- }), d.value.main_ids = a;
371
- const { role_id: e } = d.value;
372
- e ? await He() : await je(), ke();
373
- }, Qe = async (a) => {
374
- if (!V.value)
375
- return;
376
- const { status: e } = a;
377
- de.ENABLE.value === e ? a.status = de.DISABLED.value : a.status = de.ENABLE.value, await N(a), await R();
378
- }, je = async () => {
379
- await v(d.value), await R();
380
- }, He = async () => {
381
- await N(d.value), await R();
382
- }, Je = async (a) => {
383
- await E(a), await R();
384
- }, We = async (a, e) => {
385
- if (!V.value)
386
- return;
387
- const { value: l } = a, p = e.row;
388
- if (l === "edit") {
389
- he(p);
390
- return;
391
- }
392
- if (l === "delete") {
393
- await Je(p);
394
- return;
395
- }
396
- }, Xe = async (a, e) => {
397
- a.stopPropagation();
398
- const { status: l } = e;
399
- ce.EDITABLE.value === l ? e.status = ce.DISABLED.value : e.status = ce.EDITABLE.value;
400
- }, se = (a) => {
401
- var l;
402
- return (((l = q.value) == null ? void 0 : l.getCheckedKeys(!0)) || []).includes(a.id);
403
- }, Ce = u(), G = u(), le = u(x()), be = (a, e) => {
404
- var l;
405
- 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);
406
- }, Ye = (a) => {
407
- const { isProperty: e, isPropertyLeaf: l } = G.value;
408
- if (l) {
409
- G.value.dataPermission = a;
410
- return;
411
- }
412
- if (!e) {
413
- T(G.value, a);
414
- return;
415
- }
416
- }, Ze = async () => {
417
- await et();
418
- }, et = async () => {
419
- const a = document.createElement("input");
420
- a.type = "file", a.accept = ".xlsx", a.onchange = async (e) => {
421
- var P;
422
- const p = (P = e.target.files) == null ? void 0 : P[0];
423
- if (p)
424
- try {
425
- _.setImportLoading(!0), await Ie(p), await R(), _.setImportLoading(!1);
426
- } catch {
427
- _.setImportLoading(!1);
428
- }
429
- }, a.click();
430
- }, tt = async () => {
431
- _.setImportLoading(!0), await Be().finally(() => {
432
- _.setImportLoading(!1);
433
- });
434
- }, at = async () => {
435
- Re();
436
- };
437
- return (a, e) => {
438
- var we, Pe, Te, Ee;
439
- 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"), z = n("el-table-column"), O = 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");
440
- return k(), D(pe, null, [
441
- o("div", zt, [
442
- o("div", Ot, [
443
- o("div", Ut, [
444
- o("div", qt, [
445
- t(l, {
446
- modelValue: c(S).name,
447
- "onUpdate:modelValue": e[0] || (e[0] = (r) => c(S).name = r),
448
- style: { width: "240px" },
449
- placeholder: "请输入名称"
450
- }, null, 8, ["modelValue"]),
451
- t(p, {
452
- type: "primary",
453
- onClick: F
454
- }, {
455
- default: s(() => e[6] || (e[6] = [
456
- h("查询")
457
- ])),
458
- _: 1,
459
- __: [6]
460
- }),
461
- t(p, {
462
- type: "primary",
463
- plain: "",
464
- onClick: ze
465
- }, {
466
- default: s(() => e[7] || (e[7] = [
467
- h("重置")
468
- ])),
469
- _: 1,
470
- __: [7]
471
- })
472
- ])
473
- ]),
474
- o("div", Mt, [
475
- t(p, {
476
- type: "primary",
477
- onClick: Ze
478
- }, {
479
- default: s(() => [
480
- e[8] || (e[8] = h(" 导入 ")),
481
- t(P, { class: "el-icon--right" }, {
482
- default: s(() => [
483
- t(c(ut))
484
- ]),
485
- _: 1
486
- })
487
- ]),
488
- _: 1,
489
- __: [8]
490
- }),
491
- t(ot, null, {
492
- dropdown: s(() => [
493
- t(ne, null, {
494
- default: s(() => [
495
- t(L, { onClick: at }, {
496
- default: s(() => e[10] || (e[10] = [
497
- h("导出模板")
498
- ])),
499
- _: 1,
500
- __: [10]
501
- }),
502
- t(L, { onClick: tt }, {
503
- default: s(() => e[11] || (e[11] = [
504
- h("导出数据")
505
- ])),
506
- _: 1,
507
- __: [11]
508
- })
509
- ]),
510
- _: 1
511
- })
512
- ]),
513
- default: s(() => [
514
- t(p, { type: "primary" }, {
515
- default: s(() => [
516
- e[9] || (e[9] = h(" 导出 ")),
517
- t(P, { class: "el-icon--right" }, {
518
- default: s(() => [
519
- t(c(pt))
520
- ]),
521
- _: 1
522
- })
523
- ]),
524
- _: 1,
525
- __: [9]
526
- })
527
- ]),
528
- _: 1
529
- }),
530
- t(B, {
531
- emptyColor: !0,
532
- onClickTrigger: e[1] || (e[1] = (r) => he()),
533
- modelValue: "创建角色",
534
- buttonType: "primary"
535
- })
536
- ])
537
- ]),
538
- o("div", Kt, [
539
- o("div", Gt, [
540
- t(st, {
541
- class: "role-table",
542
- data: fe.value,
543
- "empty-text": ""
544
- }, {
545
- default: s(() => [
546
- t(z, {
547
- prop: "name",
548
- label: "名称",
549
- align: "center"
550
- }),
551
- t(z, {
552
- prop: "code",
553
- label: "编码",
554
- align: "center"
555
- }),
556
- t(z, {
557
- prop: "remark",
558
- label: "备注",
559
- align: "center"
560
- }),
561
- t(z, {
562
- prop: "status",
563
- label: "状态",
564
- align: "center"
565
- }, {
566
- default: s((r) => [
567
- t(O, {
568
- class: "status-tag",
569
- type: c(Z)(r.row.status),
570
- title: "点击切换",
571
- onClick: (i) => Qe(r.row)
572
- }, {
573
- default: s(() => [
574
- h(A(c(Y)(r.row.status)), 1)
575
- ]),
576
- _: 2
577
- }, 1032, ["type", "onClick"])
578
- ]),
579
- _: 1
580
- }),
581
- t(z, {
582
- label: "操作",
583
- align: "center"
584
- }, {
585
- default: s((r) => [
586
- o("div", Qt, [
587
- (k(!0), D(pe, null, xe(c(_t), (i) => (k(), D("div", {
588
- class: "operate-item",
589
- key: i.value,
590
- onClick: ct((ie) => We(i, r), ["stop"])
591
- }, A(i.label), 9, jt))), 128))
592
- ])
593
- ]),
594
- _: 1
595
- })
596
- ]),
597
- _: 1
598
- }, 8, ["data"])
599
- ]),
600
- o("div", Ht, [
601
- e[12] || (e[12] = o("div", null, null, -1)),
602
- t(lt, {
603
- onSizeChange: Fe,
604
- onCurrentChange: Ne,
605
- "current-page": (we = c(C)) == null ? void 0 : we.pageNum,
606
- "page-sizes": (Pe = c(C)) == null ? void 0 : Pe.pageSizes,
607
- "page-size": ((Te = c(C)) == null ? void 0 : Te.pageSize) ?? 10,
608
- layout: "total, sizes, prev, pager, next, jumper",
609
- total: ((Ee = c(C)) == null ? void 0 : Ee.total) ?? 0
610
- }, null, 8, ["current-page", "page-sizes", "page-size", "total"])
611
- ])
612
- ]),
613
- e[13] || (e[13] = o("div", { class: "footer" }, [
614
- o("div", { class: "footer-left" }),
615
- o("div", { class: "footer-right" })
616
- ], -1))
617
- ]),
618
- t(_e, {
619
- class: "role-edit-dialog",
620
- visible: oe.value,
621
- title: "角色信息",
622
- onBeforeDestroy: ye,
623
- showClose: !0,
624
- closeOnClickModal: !1,
625
- closeOnPressEscape: !1,
626
- modalClass: "role-edit-modal",
627
- alignCenter: !0,
628
- appendToBody: !1
629
- }, {
630
- default: s(() => [
631
- o("div", Jt, [
632
- e[17] || (e[17] = o("div", { class: "role-management-header" }, [
633
- o("div", { class: "header-left" }),
634
- o("div", { class: "header-right" })
635
- ], -1)),
636
- o("div", Wt, [
637
- o("div", Xt, [
638
- t(rt, {
639
- class: "role-edit-form",
640
- ref_key: "roleFormRef",
641
- ref: ve,
642
- model: d.value,
643
- rules: Oe
644
- }, {
645
- default: s(() => [
646
- t(re, { gutter: 20 }, {
647
- default: s(() => [
648
- t(j, { span: 12 }, {
649
- default: s(() => [
650
- t(Q, {
651
- prop: "name",
652
- label: "角色名称",
653
- "label-position": "top"
654
- }, {
655
- default: s(() => [
656
- t(l, {
657
- modelValue: d.value.name,
658
- "onUpdate:modelValue": e[2] || (e[2] = (r) => d.value.name = r),
659
- "aria-label": "角色名称",
660
- placeholder: "角色名称"
661
- }, null, 8, ["modelValue"])
662
- ]),
663
- _: 1
664
- })
665
- ]),
666
- _: 1
667
- }),
668
- t(j, { span: 12 }, {
669
- default: s(() => [
670
- t(Q, {
671
- label: "角色编码",
672
- "label-position": "top"
673
- }, {
674
- default: s(() => [
675
- t(l, {
676
- modelValue: d.value.code,
677
- "onUpdate:modelValue": e[3] || (e[3] = (r) => d.value.code = r),
678
- "aria-label": "角色编码",
679
- placeholder: "角色编码"
680
- }, null, 8, ["modelValue"])
681
- ]),
682
- _: 1
683
- })
684
- ]),
685
- _: 1
686
- })
687
- ]),
688
- _: 1
689
- }),
690
- t(re, { gutter: 20 }, {
691
- default: s(() => [
692
- t(j, { span: 12 }, {
693
- default: s(() => [
694
- t(Q, {
695
- label: "备注",
696
- "label-position": "top"
697
- }, {
698
- default: s(() => [
699
- t(l, {
700
- modelValue: d.value.remark,
701
- "onUpdate:modelValue": e[4] || (e[4] = (r) => d.value.remark = r),
702
- "aria-label": "备注",
703
- placeholder: "备注"
704
- }, null, 8, ["modelValue"])
705
- ]),
706
- _: 1
707
- })
708
- ]),
709
- _: 1
710
- })
711
- ]),
712
- _: 1
713
- }),
714
- t(re, {
715
- class: "auth-tree-row",
716
- gutter: 20
717
- }, {
718
- default: s(() => [
719
- t(j, { span: 24 }, {
720
- default: s(() => [
721
- t(Q, {
722
- label: "特性权限",
723
- "label-position": "top"
724
- }, {
725
- default: s(() => [
726
- o("div", Yt, [
727
- t(l, {
728
- modelValue: M.value,
729
- "onUpdate:modelValue": e[5] || (e[5] = (r) => M.value = r)
730
- }, {
731
- prefix: s(() => [
732
- t(P, { class: "el-input__icon" }, {
733
- default: s(() => [
734
- t(c(mt))
735
- ]),
736
- _: 1
737
- })
738
- ]),
739
- _: 1
740
- }, 8, ["modelValue"]),
741
- t(nt, {
742
- ref_key: "propertyTreeRef",
743
- ref: q,
744
- class: "auth-tree",
745
- data: c(y),
746
- props: $,
747
- "node-key": "id",
748
- "show-checkbox": "",
749
- "default-expanded-keys": d.value.checked_ids,
750
- "default-checked-keys": d.value.checked_ids,
751
- "filter-node-method": Ue
752
- }, {
753
- default: s(({ node: r, data: i }) => {
754
- var ie;
755
- return [
756
- o("div", Zt, [
757
- o("div", ea, [
758
- o("div", ta, A(r.label), 1)
759
- ]),
760
- i.isPropertyLeaf && se(i) ? (k(), D("div", aa, [
761
- t(O, {
762
- class: "status-tag",
763
- type: c(te)(i.status),
764
- title: "点击切换",
765
- onClick: (I) => Xe(I, i)
766
- }, {
767
- default: s(() => [
768
- h(A(c(ee)(i.status)), 1)
769
- ]),
770
- _: 2
771
- }, 1032, ["type", "onClick"])
772
- ])) : H("", !0),
773
- i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(), D("div", oa, [
774
- t(O, {
775
- class: "status-tag",
776
- type: "success",
777
- onClick: (I) => qe(I, i)
778
- }, {
779
- default: s(() => e[14] || (e[14] = [
780
- h(" 参数设置 ")
781
- ])),
782
- _: 2,
783
- __: [14]
784
- }, 1032, ["onClick"])
785
- ])) : H("", !0),
786
- i.isPropertyLeaf && se(i) && c($e)(i) ? (k(), D("div", sa, [
787
- t(O, {
788
- class: "status-tag",
789
- type: "warning",
790
- onClick: (I) => be(I, i)
791
- }, {
792
- default: s(() => e[15] || (e[15] = [
793
- h(" 数据权限 ")
794
- ])),
795
- _: 2,
796
- __: [15]
797
- }, 1032, ["onClick"])
798
- ])) : H("", !0),
799
- r.level == 1 && r.checked && !i.isProperty ? (k(), D("div", la, [
800
- t(O, {
801
- class: "status-tag",
802
- type: "warning",
803
- onClick: (I) => be(I, i)
804
- }, {
805
- default: s(() => e[16] || (e[16] = [
806
- h(" 数据权限重置 ")
807
- ])),
808
- _: 2,
809
- __: [16]
810
- }, 1032, ["onClick"])
811
- ])) : H("", !0)
812
- ])
813
- ];
814
- }),
815
- _: 1
816
- }, 8, ["data", "default-expanded-keys", "default-checked-keys"])
817
- ])
818
- ]),
819
- _: 1
820
- })
821
- ]),
822
- _: 1
823
- })
824
- ]),
825
- _: 1
826
- })
827
- ]),
828
- _: 1
829
- }, 8, ["model", "rules"])
830
- ])
831
- ])
832
- ])
833
- ]),
834
- footer: s(() => [
835
- o("div", na, [
836
- e[18] || (e[18] = o("div", { class: "footer-left" }, null, -1)),
837
- o("div", ra, [
838
- t(B, {
839
- class: "cancel",
840
- emptyColor: !0,
841
- onClickTrigger: ke,
842
- modelValue: "取消",
843
- buttonType: "info"
844
- }),
845
- t(B, {
846
- class: "confirm",
847
- emptyColor: !0,
848
- onClickTrigger: Ge,
849
- modelValue: "确定",
850
- buttonType: "primary"
851
- })
852
- ])
853
- ])
854
- ]),
855
- _: 1
856
- }, 8, ["visible"]),
857
- t(Lt, {
858
- ref_key: "paramAuthDialog",
859
- ref: K,
860
- params: ge.value,
861
- "checked-params": d.value.params,
862
- onUpdateParams: Me
863
- }, null, 8, ["params", "checked-params"]),
864
- t(Ft, {
865
- ref_key: "scopeDialog",
866
- ref: Ce,
867
- onConfirm: Ye
868
- }, null, 512)
869
- ], 64);
870
- };
871
- }
872
- }), Pa = /* @__PURE__ */ W(ia, [["__scopeId", "data-v-5da1e93d"]]);
873
- export {
874
- Pa as default
875
- };