ss-component-new 1.3.683 → 1.3.684
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-DPHzTMwa.js → MTLLoader-DzMo1SNe.js} +102 -102
- package/dist/{URDFLoader-M-UG5-pR.js → URDFLoader-BAROJ9ka.js} +591 -586
- package/dist/{animationData-DRuHGkTO.js → animationData-CTWTDXsQ.js} +7 -7
- package/dist/{array-DjjQ0-_X.js → array-CRYq9Jxn.js} +13 -14
- package/dist/{clone-nUXh221j.js → clone-sAhQxdz5.js} +1 -1
- package/dist/{eleIcon-DlIcb4df.js → eleIcon-6RTuwqdk.js} +2 -2
- package/dist/fileUtil-UOt_otFo.js +20 -0
- package/dist/{iconfont-BhJBoU2I.js → iconfont-TorEaqH3.js} +125 -125
- package/dist/{index-CG1vGzHt.js → index--N4l6N1w.js} +1 -1
- package/dist/{index-B6x7nsvL.js → index-2gwwCj6d.js} +5 -5
- package/dist/{index-ChfKhYMO.js → index-9UYMNDVY.js} +24355 -24391
- package/dist/{index-Cl2tex39.js → index-B0BoH4wm.js} +163 -172
- package/dist/{index-R2i3Xnfq.js → index-B30aeKGM.js} +4 -4
- package/dist/index-B4nNFQS-.js +11779 -0
- package/dist/{index-CIoBc8yl.js → index-B8_ZqXDA.js} +60 -62
- package/dist/{index-zdWtzZvH.js → index-BCmMcLum.js} +7 -7
- package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
- package/dist/{index-DlFmNKos.js → index-BKMAFsRN.js} +7 -8
- package/dist/{index-Dx-bFdbp.js → index-BRQACLz0.js} +8 -8
- package/dist/{index-DyOGhRxL.js → index-BZg5q_rs.js} +4 -4
- package/dist/{index-gFBsqsq6.js → index-Bkg9CQm3.js} +3 -3
- package/dist/{index-CM6CVZ_d.js → index-Bywqjsvo.js} +21513 -15029
- package/dist/{index-CzgY9rV-.js → index-BzT9veMM.js} +57 -61
- package/dist/{index-QdkaQuAk.js → index-C06Ba2iF.js} +2 -2
- package/dist/{index-CYspf59Y.js → index-C8LpAkhu.js} +8 -8
- package/dist/{index-BNDaeOZD.js → index-C9_Pcose.js} +40 -43
- package/dist/index-CGzlH16h.js +331 -0
- package/dist/{index-DewO44mx.js → index-COBZQS9O.js} +2 -2
- package/dist/{index-DkFpug1v.js → index-COV5ar9Q.js} +18 -20
- package/dist/{index-CJySKIdc.js → index-CvOCu8lX.js} +1 -1
- package/dist/{index-CnmXW-Bj.js → index-D-YGtSgX.js} +36 -40
- package/dist/{index-CJbdXJRV.js → index-D-_Ie1fO.js} +3 -3
- package/dist/{index-CccqT4-H.js → index-D2g9hX2c.js} +6 -6
- package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
- package/dist/{index-CKB74hmA.js → index-DUPQ7Cfd.js} +482 -483
- package/dist/{index-CsqopIxB.js → index-D_f48W32.js} +1078 -1079
- package/dist/{index-8KwwXnRD.js → index-DyoKmN7k.js} +3 -3
- package/dist/index-G2ZhOQG1.js +2623 -0
- package/dist/{index-BLFiId9N.js → index-TpycHQ-H.js} +5 -5
- package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
- package/dist/{index-CBL2Pg06.js → index-dcW2d4Zs.js} +5 -5
- package/dist/{index-Cpv5443J.js → index-hGjbrq0G.js} +4 -4
- package/dist/{index-DTjEPXdC.js → index-tLigeTzl.js} +76 -81
- 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
- package/dist/{index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BsOR2Ig8.js → index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js} +50343 -56267
- package/dist/isString-DzMmG8uL.js +8 -0
- package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
- package/dist/{main-C7zjHnDD.js → main-B27LAY78.js} +9 -9
- package/dist/{menuIndex-BE8WKQ_M.js → menuIndex-C_G8igKy.js} +1 -1
- package/dist/{request-DolpfyNJ.js → request-CllqY4TP.js} +3482 -3063
- package/dist/ss-component.css +3 -3
- package/dist/ss-component.js +14 -14
- package/dist/ss-component2.js +13 -13
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-DiiHNAHL.js → threeModel-vX7holAy.js} +174 -174
- package/dist/{threePreview-Bu2Spume.js → threePreview-0iSlhKYj.js} +12 -12
- package/dist/{threeSceneView-DxeVIhrp.js → threeSceneView-D1dS9xmL.js} +49 -50
- package/dist/{threeSceneViewForCPMPIP-DPYmtlbM.js → threeSceneViewForCPMPIP-DWvkVqSw.js} +16 -17
- package/dist/{threeTrackPathView-fb0Ye-HT.js → threeTrackPathView-BzrYvQKg.js} +36 -36
- package/dist/{threeViewerHost-DHRT4ihY.js → threeViewerHost-BA3W7FKF.js} +36 -36
- package/dist/{urdfTree-CFaALNOQ.js → urdfTree-CZeEnUnE.js} +9 -9
- package/dist/{workpieceTreePanel-BxNqg9o9.js → workpieceTreePanel-BLWHbILu.js} +76 -80
- package/package.json +2 -4
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/icons/svg/method.svg +0 -1
- package/dist/index-BBzJ8BLa.js +0 -572
- package/dist/index-Ba8phnvt.js +0 -342
- package/dist/index-CBPXalBI.js +0 -15007
- package/dist/isString-h0UV2hrP.js +0 -8
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/icons/svg/method.svg +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n,
|
|
2
|
-
import { u as ut, k as pt, l as mt } from "./request-
|
|
3
|
-
import { u as Se, o as
|
|
4
|
-
import {
|
|
5
|
-
import { s as
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
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-CllqY4TP.js";
|
|
3
|
+
import { u as Se, o as ft, s as de, f as ce } from "./index-CGzlH16h.js";
|
|
4
|
+
import { M as Le, N as _t, u as vt, p as gt } from "./index-D_f48W32.js";
|
|
5
|
+
import { s as fe } from "./index-DJrzqi4-.js";
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js";
|
|
7
|
+
import "./index-9UYMNDVY.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-DUPQ7Cfd.js";
|
|
11
|
+
import "./index-G2ZhOQG1.js";
|
|
12
12
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
import { c as me } from "./clone-
|
|
13
|
+
import { c as me } from "./clone-sAhQxdz5.js";
|
|
14
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
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
17
17
|
params: {},
|
|
18
18
|
checkedParams: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
20
|
+
setup(R, { expose: $ }) {
|
|
21
|
+
const f = R, D = {
|
|
22
22
|
value: "uniqueKey",
|
|
23
23
|
label: "label",
|
|
24
24
|
children: "children",
|
|
25
25
|
class: (b) => {
|
|
26
26
|
}
|
|
27
|
-
}, { buildParamAuthTree:
|
|
27
|
+
}, { buildParamAuthTree: P } = Se(), g = u(), S = Ve(() => P(f.params)), m = Ve(() => f.checkedParams.map((b) => `${b.id}_${b.prop}`));
|
|
28
28
|
return $({ getCheckedParams: () => {
|
|
29
|
-
var
|
|
30
|
-
return ((
|
|
31
|
-
} }), (b,
|
|
32
|
-
const
|
|
33
|
-
return k(),
|
|
34
|
-
|
|
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
35
|
o("div", { class: "header-left" }),
|
|
36
36
|
o("div", { class: "header-right" })
|
|
37
37
|
], -1)),
|
|
38
38
|
o("div", ht, [
|
|
39
|
-
t(
|
|
39
|
+
t(T, {
|
|
40
40
|
ref_key: "paramTreeRef",
|
|
41
41
|
ref: g,
|
|
42
42
|
class: "param-tree",
|
|
43
43
|
data: S.value,
|
|
44
|
-
props:
|
|
44
|
+
props: D,
|
|
45
45
|
"node-key": "uniqueKey",
|
|
46
46
|
"show-checkbox": "",
|
|
47
47
|
"default-expanded-keys": m.value,
|
|
48
48
|
"default-checked-keys": m.value,
|
|
49
49
|
height: "100%"
|
|
50
50
|
}, {
|
|
51
|
-
default: s(({ node: v, data:
|
|
51
|
+
default: s(({ node: v, data: F }) => [
|
|
52
52
|
o("div", kt, [
|
|
53
53
|
o("div", Ct, [
|
|
54
|
-
o("div", bt,
|
|
54
|
+
o("div", bt, N(v.label), 1)
|
|
55
55
|
])
|
|
56
56
|
])
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}, 8, ["data", "default-expanded-keys", "default-checked-keys"])
|
|
60
60
|
]),
|
|
61
|
-
|
|
61
|
+
_[1] || (_[1] = o("div", { class: "footer" }, [
|
|
62
62
|
o("div", { class: "footer-left" }),
|
|
63
63
|
o("div", { class: "footer-right" })
|
|
64
64
|
], -1))
|
|
65
65
|
]);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
}), Pt = /* @__PURE__ */ W(wt, [["__scopeId", "data-v-b7ce5c18"]]), Tt = { class: "param-wrapper" }, Et = { class: "param-body" }, Vt = { class: "role-form-wrapper" },
|
|
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
69
|
__name: "index",
|
|
70
70
|
props: {
|
|
71
71
|
params: {},
|
|
72
72
|
checkedParams: {}
|
|
73
73
|
},
|
|
74
74
|
emits: ["updateParams"],
|
|
75
|
-
setup(
|
|
76
|
-
const
|
|
75
|
+
setup(R, { expose: $, emit: f }) {
|
|
76
|
+
const D = f, P = u(), g = u(!1), S = () => {
|
|
77
77
|
g.value = !0;
|
|
78
78
|
}, m = () => {
|
|
79
79
|
g.value = !1;
|
|
80
80
|
}, C = () => {
|
|
81
81
|
m();
|
|
82
82
|
}, b = () => {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
},
|
|
83
|
+
const T = _();
|
|
84
|
+
D("updateParams", T), m();
|
|
85
|
+
}, _ = () => {
|
|
86
86
|
var v;
|
|
87
|
-
return ((v =
|
|
87
|
+
return ((v = P.value) == null ? void 0 : v.getCheckedParams()) || [];
|
|
88
88
|
};
|
|
89
|
-
return $({ openEditDialog: S }), (
|
|
89
|
+
return $({ openEditDialog: S }), (T, v) => (k(), ue(fe, {
|
|
90
90
|
class: "param-edit-dialog",
|
|
91
91
|
visible: g.value,
|
|
92
92
|
title: "参数权限",
|
|
@@ -108,18 +108,18 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
108
108
|
o("div", Vt, [
|
|
109
109
|
t(Pt, {
|
|
110
110
|
ref_key: "paramAuthTree",
|
|
111
|
-
ref:
|
|
112
|
-
params:
|
|
113
|
-
"checked-params":
|
|
111
|
+
ref: P,
|
|
112
|
+
params: R.params,
|
|
113
|
+
"checked-params": R.checkedParams
|
|
114
114
|
}, null, 8, ["params", "checked-params"])
|
|
115
115
|
])
|
|
116
116
|
])
|
|
117
117
|
])
|
|
118
118
|
]),
|
|
119
119
|
footer: s(() => [
|
|
120
|
-
o("div",
|
|
120
|
+
o("div", xt, [
|
|
121
121
|
v[1] || (v[1] = o("div", { class: "footer-left" }, null, -1)),
|
|
122
|
-
o("div",
|
|
122
|
+
o("div", Dt, [
|
|
123
123
|
t(B, {
|
|
124
124
|
class: "cancel",
|
|
125
125
|
emptyColor: !0,
|
|
@@ -143,30 +143,30 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
143
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
144
|
__name: "index",
|
|
145
145
|
emits: ["confirm"],
|
|
146
|
-
setup(
|
|
147
|
-
const
|
|
146
|
+
setup(R, { expose: $, emit: f }) {
|
|
147
|
+
const D = f, { initDepartmentScope: P } = Le(), g = u(), S = xe({
|
|
148
148
|
departmentScope: [
|
|
149
149
|
{ required: !0, message: "请输入角色名称", trigger: "change" }
|
|
150
150
|
]
|
|
151
|
-
}), m = u(
|
|
151
|
+
}), m = u(P()), C = u(!1), b = () => {
|
|
152
152
|
C.value = !0;
|
|
153
|
-
},
|
|
153
|
+
}, _ = () => {
|
|
154
154
|
C.value = !1;
|
|
155
|
-
},
|
|
155
|
+
}, T = async (E) => {
|
|
156
156
|
m.value = me(E), b();
|
|
157
157
|
}, v = () => {
|
|
158
|
-
m.value =
|
|
159
|
-
},
|
|
158
|
+
m.value = P(), _();
|
|
159
|
+
}, F = async () => {
|
|
160
160
|
var E, y;
|
|
161
|
-
await ((y = (E = g.value) == null ? void 0 : E.validate) == null ? void 0 : y.call(E)),
|
|
161
|
+
await ((y = (E = g.value) == null ? void 0 : E.validate) == null ? void 0 : y.call(E)), D("confirm", me(m.value)), v();
|
|
162
162
|
};
|
|
163
|
-
return $({ handleEdit:
|
|
163
|
+
return $({ handleEdit: T }), (E, y) => {
|
|
164
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(
|
|
165
|
+
return k(), ue(fe, {
|
|
166
166
|
class: "scope-edit-dialog",
|
|
167
167
|
visible: C.value,
|
|
168
168
|
title: "数据权限",
|
|
169
|
-
onBeforeDestroy:
|
|
169
|
+
onBeforeDestroy: _,
|
|
170
170
|
showClose: !0,
|
|
171
171
|
closeOnClickModal: !1,
|
|
172
172
|
closeOnPressEscape: !1,
|
|
@@ -205,12 +205,12 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
205
205
|
"onUpdate:modelValue": y[0] || (y[0] = (V) => m.value.departmentScope = V)
|
|
206
206
|
}, {
|
|
207
207
|
default: s(() => [
|
|
208
|
-
(k(!0),
|
|
208
|
+
(k(!0), x(pe, null, De(c(_t), (V) => (k(), ue(X, {
|
|
209
209
|
key: V.value,
|
|
210
210
|
value: V.value
|
|
211
211
|
}, {
|
|
212
212
|
default: s(() => [
|
|
213
|
-
h(
|
|
213
|
+
h(N(V.label), 1)
|
|
214
214
|
]),
|
|
215
215
|
_: 2
|
|
216
216
|
}, 1032, ["value"]))), 128))
|
|
@@ -247,7 +247,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
247
247
|
t(B, {
|
|
248
248
|
class: "confirm",
|
|
249
249
|
emptyColor: !0,
|
|
250
|
-
onClickTrigger:
|
|
250
|
+
onClickTrigger: F,
|
|
251
251
|
modelValue: "确定",
|
|
252
252
|
buttonType: "primary"
|
|
253
253
|
})
|
|
@@ -258,7 +258,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
258
258
|
}, 8, ["visible"]);
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
}), Ft = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-40d37c72"]]),
|
|
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
262
|
key: 0,
|
|
263
263
|
class: "status-tag"
|
|
264
264
|
}, oa = {
|
|
@@ -272,7 +272,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
272
272
|
class: "status-tag"
|
|
273
273
|
}, na = { class: "edit-footer" }, ra = { class: "footer-right" }, ia = /* @__PURE__ */ J({
|
|
274
274
|
__name: "index",
|
|
275
|
-
setup(
|
|
275
|
+
setup(R) {
|
|
276
276
|
const $ = {
|
|
277
277
|
value: "id",
|
|
278
278
|
label: "label",
|
|
@@ -281,17 +281,17 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
281
281
|
// const { isProperty } = data
|
|
282
282
|
// return isProperty ? 'property-node' : 'unit-node'
|
|
283
283
|
// }
|
|
284
|
-
},
|
|
284
|
+
}, f = vt(gt), { initDepartmentScope: D, recAndInitNodeDataPermission: P } = Le(), {
|
|
285
285
|
initRoleItem: g,
|
|
286
286
|
queryInfo: S,
|
|
287
287
|
resetQuery: m,
|
|
288
288
|
pageInfo: C,
|
|
289
289
|
setPageNum: b,
|
|
290
|
-
setPageSize:
|
|
291
|
-
initGetByPage:
|
|
290
|
+
setPageSize: _,
|
|
291
|
+
initGetByPage: T,
|
|
292
292
|
// initRoleList,
|
|
293
293
|
initCreate: v,
|
|
294
|
-
initUpdate:
|
|
294
|
+
initUpdate: F,
|
|
295
295
|
initDelete: E,
|
|
296
296
|
propertyAuthTree: y,
|
|
297
297
|
initPropertyAuthTree: X,
|
|
@@ -305,44 +305,44 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
305
305
|
initImport: Ie,
|
|
306
306
|
initExport: Be,
|
|
307
307
|
exportTemplate: Re
|
|
308
|
-
} = Se(),
|
|
309
|
-
const a = await
|
|
308
|
+
} = Se(), _e = u([]), Ae = async () => {
|
|
309
|
+
const a = await T(), { roleData: e = [] } = a;
|
|
310
310
|
return e;
|
|
311
|
-
},
|
|
312
|
-
|
|
311
|
+
}, z = async () => {
|
|
312
|
+
_e.value = await Ae();
|
|
313
313
|
}, Ne = (a) => {
|
|
314
|
-
b(a),
|
|
314
|
+
b(a), z();
|
|
315
315
|
}, Fe = (a) => {
|
|
316
|
-
|
|
317
|
-
},
|
|
318
|
-
m(),
|
|
319
|
-
|
|
316
|
+
_(a), z();
|
|
317
|
+
}, ze = async () => {
|
|
318
|
+
m(), f.setImportLoading(!0), await z().finally(() => {
|
|
319
|
+
f.setImportLoading(!1);
|
|
320
320
|
});
|
|
321
|
-
},
|
|
322
|
-
await
|
|
321
|
+
}, A = async () => {
|
|
322
|
+
await z(), await ae();
|
|
323
323
|
};
|
|
324
324
|
it(() => {
|
|
325
|
-
|
|
325
|
+
A();
|
|
326
326
|
});
|
|
327
|
-
const ve = u(),
|
|
327
|
+
const ve = u(), Oe = xe({
|
|
328
328
|
name: [
|
|
329
329
|
{ required: !0, message: "请输入角色名称", trigger: "blur" }
|
|
330
330
|
]
|
|
331
|
-
}),
|
|
332
|
-
dt(
|
|
333
|
-
|
|
331
|
+
}), M = u(), q = u(""), d = u(g());
|
|
332
|
+
dt(q, (a) => {
|
|
333
|
+
M.value.filter(a);
|
|
334
334
|
});
|
|
335
|
-
const Ue = (a, e) => a ? e.label.includes(a) : !0, ge = u([]), K = u(),
|
|
335
|
+
const Ue = (a, e) => a ? e.label.includes(a) : !0, ge = u([]), K = u(), Me = (a, e) => {
|
|
336
336
|
var l;
|
|
337
337
|
a.stopPropagation(), ge.value = e.params || [], (l = K == null ? void 0 : K.value) == null || l.openEditDialog();
|
|
338
|
-
},
|
|
338
|
+
}, qe = (a) => {
|
|
339
339
|
var p;
|
|
340
|
-
const e = (p = a == null ? void 0 : a[0]) == null ? void 0 : p.id, l = d.value.params.filter((
|
|
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
341
|
d.value.params = [...l, ...a];
|
|
342
342
|
}, oe = u(!1), Ke = () => {
|
|
343
343
|
oe.value = !0;
|
|
344
344
|
}, ye = () => {
|
|
345
|
-
|
|
345
|
+
q.value = "", oe.value = !1;
|
|
346
346
|
}, he = async (a) => {
|
|
347
347
|
if (!V.value)
|
|
348
348
|
return;
|
|
@@ -356,9 +356,9 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
356
356
|
}, ke = () => {
|
|
357
357
|
d.value = g(), ye();
|
|
358
358
|
}, Ge = async () => {
|
|
359
|
-
var l, p,
|
|
359
|
+
var l, p, w;
|
|
360
360
|
await ((p = (l = ve.value) == null ? void 0 : l.validate) == null ? void 0 : p.call(l));
|
|
361
|
-
let a = ((
|
|
361
|
+
let a = ((w = M.value) == null ? void 0 : w.getCheckedNodes()) || [];
|
|
362
362
|
a = a.filter((L) => L.isPropertyLeaf), a = a.map((L) => {
|
|
363
363
|
const { departmentScope: ne } = L.dataPermission || {};
|
|
364
364
|
return {
|
|
@@ -372,13 +372,13 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
372
372
|
if (!V.value)
|
|
373
373
|
return;
|
|
374
374
|
const { status: e } = a;
|
|
375
|
-
de.ENABLE.value === e ? a.status = de.DISABLED.value : a.status = de.ENABLE.value, await
|
|
375
|
+
de.ENABLE.value === e ? a.status = de.DISABLED.value : a.status = de.ENABLE.value, await F(a), await A();
|
|
376
376
|
}, je = async () => {
|
|
377
|
-
await v(d.value), await
|
|
377
|
+
await v(d.value), await A();
|
|
378
378
|
}, He = async () => {
|
|
379
|
-
await
|
|
379
|
+
await F(d.value), await A();
|
|
380
380
|
}, Je = async (a) => {
|
|
381
|
-
await E(a), await
|
|
381
|
+
await E(a), await A();
|
|
382
382
|
}, We = async (a, e) => {
|
|
383
383
|
if (!V.value)
|
|
384
384
|
return;
|
|
@@ -397,10 +397,10 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
397
397
|
ce.EDITABLE.value === l ? e.status = ce.DISABLED.value : e.status = ce.EDITABLE.value;
|
|
398
398
|
}, se = (a) => {
|
|
399
399
|
var l;
|
|
400
|
-
return (((l =
|
|
401
|
-
}, Ce = u(), G = u(), le = u(
|
|
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
402
|
var l;
|
|
403
|
-
a.stopPropagation(), G.value = e, e.isPropertyLeaf && (le.value = me(e.dataPermission)), e.isProperty || (le.value =
|
|
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
404
|
}, Ye = (a) => {
|
|
405
405
|
const { isProperty: e, isPropertyLeaf: l } = G.value;
|
|
406
406
|
if (l) {
|
|
@@ -408,7 +408,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
410
|
if (!e) {
|
|
411
|
-
|
|
411
|
+
P(G.value, a);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
}, Ze = async () => {
|
|
@@ -416,30 +416,30 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
416
416
|
}, et = async () => {
|
|
417
417
|
const a = document.createElement("input");
|
|
418
418
|
a.type = "file", a.accept = ".xlsx", a.onchange = async (e) => {
|
|
419
|
-
var
|
|
420
|
-
const p = (
|
|
419
|
+
var w;
|
|
420
|
+
const p = (w = e.target.files) == null ? void 0 : w[0];
|
|
421
421
|
if (p)
|
|
422
422
|
try {
|
|
423
|
-
|
|
423
|
+
f.setImportLoading(!0), await Ie(p), await A(), f.setImportLoading(!1);
|
|
424
424
|
} catch {
|
|
425
|
-
|
|
425
|
+
f.setImportLoading(!1);
|
|
426
426
|
}
|
|
427
427
|
}, a.click();
|
|
428
428
|
}, tt = async () => {
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
f.setImportLoading(!0), await Be().finally(() => {
|
|
430
|
+
f.setImportLoading(!1);
|
|
431
431
|
});
|
|
432
432
|
}, at = async () => {
|
|
433
433
|
Re();
|
|
434
434
|
};
|
|
435
435
|
return (a, e) => {
|
|
436
436
|
var we, Pe, Te, Ee;
|
|
437
|
-
const l = n("el-input"), p = n("el-button"),
|
|
438
|
-
return k(),
|
|
439
|
-
o("div",
|
|
440
|
-
o("div",
|
|
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
441
|
o("div", Ut, [
|
|
442
|
-
o("div",
|
|
442
|
+
o("div", Mt, [
|
|
443
443
|
t(l, {
|
|
444
444
|
modelValue: c(S).name,
|
|
445
445
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => c(S).name = r),
|
|
@@ -448,61 +448,56 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
448
448
|
}, null, 8, ["modelValue"]),
|
|
449
449
|
t(p, {
|
|
450
450
|
type: "primary",
|
|
451
|
-
onClick:
|
|
451
|
+
onClick: z
|
|
452
452
|
}, {
|
|
453
|
-
default: s(() => e[6] || (e[6] = [
|
|
454
|
-
h("查询")
|
|
455
|
-
])),
|
|
456
|
-
_: 1
|
|
457
|
-
__: [6]
|
|
453
|
+
default: s(() => [...e[6] || (e[6] = [
|
|
454
|
+
h("查询", -1)
|
|
455
|
+
])]),
|
|
456
|
+
_: 1
|
|
458
457
|
}),
|
|
459
458
|
t(p, {
|
|
460
459
|
type: "primary",
|
|
461
460
|
plain: "",
|
|
462
|
-
onClick:
|
|
461
|
+
onClick: ze
|
|
463
462
|
}, {
|
|
464
|
-
default: s(() => e[7] || (e[7] = [
|
|
465
|
-
h("重置")
|
|
466
|
-
])),
|
|
467
|
-
_: 1
|
|
468
|
-
__: [7]
|
|
463
|
+
default: s(() => [...e[7] || (e[7] = [
|
|
464
|
+
h("重置", -1)
|
|
465
|
+
])]),
|
|
466
|
+
_: 1
|
|
469
467
|
})
|
|
470
468
|
])
|
|
471
469
|
]),
|
|
472
|
-
o("div",
|
|
470
|
+
o("div", qt, [
|
|
473
471
|
t(p, {
|
|
474
472
|
type: "primary",
|
|
475
473
|
onClick: Ze
|
|
476
474
|
}, {
|
|
477
475
|
default: s(() => [
|
|
478
|
-
e[8] || (e[8] = h(" 导入 ")),
|
|
479
|
-
t(
|
|
476
|
+
e[8] || (e[8] = h(" 导入 ", -1)),
|
|
477
|
+
t(w, { class: "el-icon--right" }, {
|
|
480
478
|
default: s(() => [
|
|
481
479
|
t(c(ut))
|
|
482
480
|
]),
|
|
483
481
|
_: 1
|
|
484
482
|
})
|
|
485
483
|
]),
|
|
486
|
-
_: 1
|
|
487
|
-
__: [8]
|
|
484
|
+
_: 1
|
|
488
485
|
}),
|
|
489
486
|
t(ot, null, {
|
|
490
487
|
dropdown: s(() => [
|
|
491
488
|
t(ne, null, {
|
|
492
489
|
default: s(() => [
|
|
493
490
|
t(L, { onClick: at }, {
|
|
494
|
-
default: s(() => e[10] || (e[10] = [
|
|
495
|
-
h("导出模板")
|
|
496
|
-
])),
|
|
497
|
-
_: 1
|
|
498
|
-
__: [10]
|
|
491
|
+
default: s(() => [...e[10] || (e[10] = [
|
|
492
|
+
h("导出模板", -1)
|
|
493
|
+
])]),
|
|
494
|
+
_: 1
|
|
499
495
|
}),
|
|
500
496
|
t(L, { onClick: tt }, {
|
|
501
|
-
default: s(() => e[11] || (e[11] = [
|
|
502
|
-
h("导出数据")
|
|
503
|
-
])),
|
|
504
|
-
_: 1
|
|
505
|
-
__: [11]
|
|
497
|
+
default: s(() => [...e[11] || (e[11] = [
|
|
498
|
+
h("导出数据", -1)
|
|
499
|
+
])]),
|
|
500
|
+
_: 1
|
|
506
501
|
})
|
|
507
502
|
]),
|
|
508
503
|
_: 1
|
|
@@ -511,16 +506,15 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
511
506
|
default: s(() => [
|
|
512
507
|
t(p, { type: "primary" }, {
|
|
513
508
|
default: s(() => [
|
|
514
|
-
e[9] || (e[9] = h(" 导出 ")),
|
|
515
|
-
t(
|
|
509
|
+
e[9] || (e[9] = h(" 导出 ", -1)),
|
|
510
|
+
t(w, { class: "el-icon--right" }, {
|
|
516
511
|
default: s(() => [
|
|
517
512
|
t(c(pt))
|
|
518
513
|
]),
|
|
519
514
|
_: 1
|
|
520
515
|
})
|
|
521
516
|
]),
|
|
522
|
-
_: 1
|
|
523
|
-
__: [9]
|
|
517
|
+
_: 1
|
|
524
518
|
})
|
|
525
519
|
]),
|
|
526
520
|
_: 1
|
|
@@ -537,7 +531,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
537
531
|
o("div", Gt, [
|
|
538
532
|
t(st, {
|
|
539
533
|
class: "role-table",
|
|
540
|
-
data:
|
|
534
|
+
data: _e.value,
|
|
541
535
|
"empty-text": ""
|
|
542
536
|
}, {
|
|
543
537
|
default: s(() => [
|
|
@@ -562,14 +556,14 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
562
556
|
align: "center"
|
|
563
557
|
}, {
|
|
564
558
|
default: s((r) => [
|
|
565
|
-
t(
|
|
559
|
+
t(U, {
|
|
566
560
|
class: "status-tag",
|
|
567
561
|
type: c(Z)(r.row.status),
|
|
568
562
|
title: "点击切换",
|
|
569
563
|
onClick: (i) => Qe(r.row)
|
|
570
564
|
}, {
|
|
571
565
|
default: s(() => [
|
|
572
|
-
h(
|
|
566
|
+
h(N(c(Y)(r.row.status)), 1)
|
|
573
567
|
]),
|
|
574
568
|
_: 2
|
|
575
569
|
}, 1032, ["type", "onClick"])
|
|
@@ -582,11 +576,11 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
582
576
|
}, {
|
|
583
577
|
default: s((r) => [
|
|
584
578
|
o("div", Qt, [
|
|
585
|
-
(k(!0),
|
|
579
|
+
(k(!0), x(pe, null, De(c(ft), (i) => (k(), x("div", {
|
|
586
580
|
class: "operate-item",
|
|
587
581
|
key: i.value,
|
|
588
582
|
onClick: ct((ie) => We(i, r), ["stop"])
|
|
589
|
-
},
|
|
583
|
+
}, N(i.label), 9, jt))), 128))
|
|
590
584
|
])
|
|
591
585
|
]),
|
|
592
586
|
_: 1
|
|
@@ -613,7 +607,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
613
607
|
o("div", { class: "footer-right" })
|
|
614
608
|
], -1))
|
|
615
609
|
]),
|
|
616
|
-
t(
|
|
610
|
+
t(fe, {
|
|
617
611
|
class: "role-edit-dialog",
|
|
618
612
|
visible: oe.value,
|
|
619
613
|
title: "角色信息",
|
|
@@ -638,7 +632,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
638
632
|
ref_key: "roleFormRef",
|
|
639
633
|
ref: ve,
|
|
640
634
|
model: d.value,
|
|
641
|
-
rules:
|
|
635
|
+
rules: Oe
|
|
642
636
|
}, {
|
|
643
637
|
default: s(() => [
|
|
644
638
|
t(re, { gutter: 20 }, {
|
|
@@ -723,11 +717,11 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
723
717
|
default: s(() => [
|
|
724
718
|
o("div", Yt, [
|
|
725
719
|
t(l, {
|
|
726
|
-
modelValue:
|
|
727
|
-
"onUpdate:modelValue": e[5] || (e[5] = (r) =>
|
|
720
|
+
modelValue: q.value,
|
|
721
|
+
"onUpdate:modelValue": e[5] || (e[5] = (r) => q.value = r)
|
|
728
722
|
}, {
|
|
729
723
|
prefix: s(() => [
|
|
730
|
-
t(
|
|
724
|
+
t(w, { class: "el-input__icon" }, {
|
|
731
725
|
default: s(() => [
|
|
732
726
|
t(c(mt))
|
|
733
727
|
]),
|
|
@@ -738,7 +732,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
738
732
|
}, 8, ["modelValue"]),
|
|
739
733
|
t(nt, {
|
|
740
734
|
ref_key: "propertyTreeRef",
|
|
741
|
-
ref:
|
|
735
|
+
ref: M,
|
|
742
736
|
class: "auth-tree",
|
|
743
737
|
data: c(y),
|
|
744
738
|
props: $,
|
|
@@ -753,59 +747,56 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
753
747
|
return [
|
|
754
748
|
o("div", Zt, [
|
|
755
749
|
o("div", ea, [
|
|
756
|
-
o("div", ta,
|
|
750
|
+
o("div", ta, N(r.label), 1)
|
|
757
751
|
]),
|
|
758
|
-
i.isPropertyLeaf && se(i) ? (k(),
|
|
759
|
-
t(
|
|
752
|
+
i.isPropertyLeaf && se(i) ? (k(), x("div", aa, [
|
|
753
|
+
t(U, {
|
|
760
754
|
class: "status-tag",
|
|
761
755
|
type: c(te)(i.status),
|
|
762
756
|
title: "点击切换",
|
|
763
757
|
onClick: (I) => Xe(I, i)
|
|
764
758
|
}, {
|
|
765
759
|
default: s(() => [
|
|
766
|
-
h(
|
|
760
|
+
h(N(c(ee)(i.status)), 1)
|
|
767
761
|
]),
|
|
768
762
|
_: 2
|
|
769
763
|
}, 1032, ["type", "onClick"])
|
|
770
764
|
])) : H("", !0),
|
|
771
|
-
i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(),
|
|
772
|
-
t(
|
|
765
|
+
i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(), x("div", oa, [
|
|
766
|
+
t(U, {
|
|
773
767
|
class: "status-tag",
|
|
774
768
|
type: "success",
|
|
775
|
-
onClick: (I) =>
|
|
769
|
+
onClick: (I) => Me(I, i)
|
|
776
770
|
}, {
|
|
777
|
-
default: s(() => e[14] || (e[14] = [
|
|
778
|
-
h(" 参数设置 ")
|
|
779
|
-
])),
|
|
780
|
-
_:
|
|
781
|
-
|
|
782
|
-
}, 1032, ["onClick"])
|
|
771
|
+
default: s(() => [...e[14] || (e[14] = [
|
|
772
|
+
h(" 参数设置 ", -1)
|
|
773
|
+
])]),
|
|
774
|
+
_: 1
|
|
775
|
+
}, 8, ["onClick"])
|
|
783
776
|
])) : H("", !0),
|
|
784
|
-
i.isPropertyLeaf && se(i) && c($e)(i) ? (k(),
|
|
785
|
-
t(
|
|
777
|
+
i.isPropertyLeaf && se(i) && c($e)(i) ? (k(), x("div", sa, [
|
|
778
|
+
t(U, {
|
|
786
779
|
class: "status-tag",
|
|
787
780
|
type: "warning",
|
|
788
781
|
onClick: (I) => be(I, i)
|
|
789
782
|
}, {
|
|
790
|
-
default: s(() => e[15] || (e[15] = [
|
|
791
|
-
h(" 数据权限 ")
|
|
792
|
-
])),
|
|
793
|
-
_:
|
|
794
|
-
|
|
795
|
-
}, 1032, ["onClick"])
|
|
783
|
+
default: s(() => [...e[15] || (e[15] = [
|
|
784
|
+
h(" 数据权限 ", -1)
|
|
785
|
+
])]),
|
|
786
|
+
_: 1
|
|
787
|
+
}, 8, ["onClick"])
|
|
796
788
|
])) : H("", !0),
|
|
797
|
-
r.level == 1 && r.checked && !i.isProperty ? (k(),
|
|
798
|
-
t(
|
|
789
|
+
r.level == 1 && r.checked && !i.isProperty ? (k(), x("div", la, [
|
|
790
|
+
t(U, {
|
|
799
791
|
class: "status-tag",
|
|
800
792
|
type: "warning",
|
|
801
793
|
onClick: (I) => be(I, i)
|
|
802
794
|
}, {
|
|
803
|
-
default: s(() => e[16] || (e[16] = [
|
|
804
|
-
h(" 数据权限重置 ")
|
|
805
|
-
])),
|
|
806
|
-
_:
|
|
807
|
-
|
|
808
|
-
}, 1032, ["onClick"])
|
|
795
|
+
default: s(() => [...e[16] || (e[16] = [
|
|
796
|
+
h(" 数据权限重置 ", -1)
|
|
797
|
+
])]),
|
|
798
|
+
_: 1
|
|
799
|
+
}, 8, ["onClick"])
|
|
809
800
|
])) : H("", !0)
|
|
810
801
|
])
|
|
811
802
|
];
|
|
@@ -857,7 +848,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
857
848
|
ref: K,
|
|
858
849
|
params: ge.value,
|
|
859
850
|
"checked-params": d.value.params,
|
|
860
|
-
onUpdateParams:
|
|
851
|
+
onUpdateParams: qe
|
|
861
852
|
}, null, 8, ["params", "checked-params"]),
|
|
862
853
|
t(Ft, {
|
|
863
854
|
ref_key: "scopeDialog",
|