ss-component-new 1.3.642 → 1.3.644
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/JSEncrypt-B36c1iN5.js +1983 -0
- package/dist/{MTLLoader-CZqN7Zrs.js → MTLLoader-CzUQTGKY.js} +2 -2
- package/dist/{URDFLoader-5yxKptss.js → URDFLoader-Cpc_aT68.js} +584 -589
- package/dist/{animationData-_pwKquvD.js → animationData-BgDqzRLe.js} +3 -3
- package/dist/{array-DnDxObVG.js → array-D8M1X1Ro.js} +14 -13
- package/dist/{clone-BjJ_R9XN.js → clone-DqQwDoSV.js} +1 -1
- package/dist/{eleIcon-BWVKfp5t.js → eleIcon-Dtsx377t.js} +2 -2
- package/dist/{iconfont-DGtoabuW.js → iconfont-B4WPRBLy.js} +91 -91
- package/dist/{index-DuWxkinQ.js → index-0Pw9Txsz.js} +176 -167
- package/dist/{index-DJrzqi4-.js → index-11kpzK0A.js} +17 -17
- package/dist/{index-BibSA99e.js → index-B2i-wZ7I.js} +20 -17
- package/dist/{index-dD-mKgue.js → index-BHtNKL1L.js} +2 -2
- package/dist/{index-Bvvz41NY.js → index-BI3gwdBk.js} +1 -1
- package/dist/{index-D4wGWsnp.js → index-BIxhrXtt.js} +3 -3
- package/dist/{index-DwmZbmjQ.js → index-BjSS0ovo.js} +80 -74
- package/dist/{index-qv_1lhhv.js → index-BkAYMm70.js} +2 -2
- package/dist/{index-CgdG1jHE.js → index-BrtXf90v.js} +23003 -23095
- package/dist/{index-Df6vtfN9.js → index-BvrZtqVU.js} +20 -18
- package/dist/{index-FPf0BzIG.js → index-C4OLi6tq.js} +551 -554
- package/dist/index-C9QM6oa1.js +11397 -0
- package/dist/{index-ChxyvjM5.js → index-C9y1HVim.js} +6 -6
- package/dist/{index-CmGpt__g.js → index-CB2B4YM9.js} +3 -3
- package/dist/{index-D_kI6aHR.js → index-CDpLX430.js} +8 -7
- package/dist/{index-CC9AzuGU.js → index-CFjNYQu4.js} +5 -5
- package/dist/{index-DV-y9RNF.js → index-C_c-5ZAh.js} +61 -57
- package/dist/{index-CNBXFDkc.js → index-C_proWoC.js} +4 -4
- package/dist/{index-CcdSuqPt.js → index-Cnet9-km.js} +8 -8
- package/dist/{index-CUB0YIQp.js → index-D8cOzz3g.js} +5 -5
- package/dist/{index-DW6CZC2b.js → index-DGmjWChr.js} +1051 -1053
- package/dist/{index-DEzoAZ20.js → index-DHmpeyMt.js} +9164 -9616
- package/dist/{index-CwKQTNJ6.js → index-DLZVUgaP.js} +2 -2
- package/dist/{index-BiHdwruW.js → index-DT7MjPj0.js} +62 -60
- package/dist/{index-DlH7-Quf.js → index-DpcGBPYo.js} +3 -3
- package/dist/{index-Dae7KcRH.js → index-DzZWEErj.js} +3 -3
- package/dist/index-Dzmh37xZ.js +572 -0
- package/dist/{index-C6ZyziE9.js → index-FCnO8UeA.js} +4 -4
- package/dist/{index-BcWf6LmN.js → index-IXxKIj3h.js} +4 -4
- package/dist/{index-BwEO2Ckl.js → index-NwTP3AQl.js} +7 -7
- package/dist/{index-CUUkM-MP.js → index-awI81WIz.js} +47 -43
- package/dist/{index-JxFaaWxD.js → index-fxJSVddL.js} +1 -1
- package/dist/{index-BFqUz4pN.js → index-rlStojTL.js} +1 -1
- package/dist/{index-YVR3acYT.js → index-tLd2cEHX.js} +1 -1
- package/dist/{index-Dt57dqp_.js → index-z5wovvkI.js} +8 -8
- package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js} +27735 -27760
- package/dist/isString-CXX7MUiv.js +8 -0
- package/dist/{localIcon-CoJHw5ss.js → localIcon-D5UoFBU5.js} +1 -1
- package/dist/{main-DNhfV8BO.js → main-CAAw_Zsf.js} +9 -9
- package/dist/{menuIndex-CY5XD7Ny.js → menuIndex-2JX7SuB8.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/{request-DiogHwkN.js → request-D-LN5bvn.js} +3075 -3494
- 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-CySDiDg5.js → threeModel-D7pZcypI.js} +174 -174
- package/dist/{threePreview-BC0mxp0t.js → threePreview-Cjupz9HK.js} +12 -12
- package/dist/{threeSceneView-CPEVDWcz.js → threeSceneView-DzpPQCjn.js} +111 -110
- package/dist/{threeSceneViewForCPMPIP-COMjXvyR.js → threeSceneViewForCPMPIP-C39zZNzT.js} +17 -16
- package/dist/{threeTrackPathView-C8RcSYdk.js → threeTrackPathView-DuiNPnon.js} +7 -7
- package/dist/{threeViewerHost-B1IN5jlg.js → threeViewerHost-URHOdtr5.js} +4 -4
- package/dist/{urdfTree-BGPikD3W.js → urdfTree-CymLIkE8.js} +9 -9
- package/dist/{workpieceTreePanel-DO6BojnM.js → workpieceTreePanel-DaTdJC9q.js} +60 -56
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-T3VFnH9E.js +0 -2623
- package/dist/index-lmzbsYe_.js +0 -11550
- package/dist/isString-CoCw_sp3.js +0 -8
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n,
|
|
2
|
-
import { u as ut,
|
|
3
|
-
import { u as Se, o as
|
|
4
|
-
import { M as Le, N as
|
|
5
|
-
import { s as
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_39e1db95_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, 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, h as pt, j as mt } from "./request-D-LN5bvn.js";
|
|
3
|
+
import { u as Se, o as _t, s as de, f as ce } from "./index-DpcGBPYo.js";
|
|
4
|
+
import { M as Le, N as ft, u as vt, p as gt } from "./index-DGmjWChr.js";
|
|
5
|
+
import { s as _e } from "./index-11kpzK0A.js";
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js";
|
|
7
|
+
import "./index-BrtXf90v.js";
|
|
8
|
+
import "./index-BHtNKL1L.js";
|
|
9
|
+
import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
10
|
+
import "./index-C4OLi6tq.js";
|
|
11
|
+
import "./index-Dzmh37xZ.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-DqQwDoSV.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(U, { expose: $ }) {
|
|
21
|
+
const _ = U, x = {
|
|
22
22
|
value: "uniqueKey",
|
|
23
23
|
label: "label",
|
|
24
24
|
children: "children",
|
|
25
25
|
class: (b) => {
|
|
26
26
|
}
|
|
27
|
-
}, { buildParamAuthTree:
|
|
27
|
+
}, { buildParamAuthTree: T } = Se(), g = u(), S = Ve(() => T(_.params)), m = Ve(() => _.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 f;
|
|
30
|
+
return ((f = g.value) == null ? void 0 : f.getCheckedNodes()) || [];
|
|
31
|
+
} }), (b, f) => {
|
|
32
|
+
const w = n("el-tree");
|
|
33
|
+
return k(), D("div", yt, [
|
|
34
|
+
f[0] || (f[0] = o("div", { class: "header" }, [
|
|
35
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(w, {
|
|
40
40
|
ref_key: "paramTreeRef",
|
|
41
41
|
ref: g,
|
|
42
42
|
class: "param-tree",
|
|
43
43
|
data: S.value,
|
|
44
|
-
props:
|
|
44
|
+
props: x,
|
|
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: N }) => [
|
|
52
52
|
o("div", kt, [
|
|
53
53
|
o("div", Ct, [
|
|
54
|
-
o("div", bt,
|
|
54
|
+
o("div", bt, A(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
|
+
f[1] || (f[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" }, Dt = { class: "edit-footer" }, xt = { 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(U, { expose: $, emit: _ }) {
|
|
76
|
+
const x = _, T = 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 w = f();
|
|
84
|
+
x("updateParams", w), m();
|
|
85
|
+
}, f = () => {
|
|
86
86
|
var v;
|
|
87
|
-
return ((v =
|
|
87
|
+
return ((v = T.value) == null ? void 0 : v.getCheckedParams()) || [];
|
|
88
88
|
};
|
|
89
|
-
return $({ openEditDialog: S }), (
|
|
89
|
+
return $({ openEditDialog: S }), (w, v) => (k(), ue(_e, {
|
|
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: T,
|
|
112
|
+
params: w.params,
|
|
113
|
+
"checked-params": w.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", Dt, [
|
|
121
121
|
v[1] || (v[1] = o("div", { class: "footer-left" }, null, -1)),
|
|
122
|
-
o("div",
|
|
122
|
+
o("div", xt, [
|
|
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(U, { expose: $, emit: _ }) {
|
|
147
|
+
const x = _, { initDepartmentScope: T } = Le(), g = u(), S = De({
|
|
148
148
|
departmentScope: [
|
|
149
149
|
{ required: !0, message: "请输入角色名称", trigger: "change" }
|
|
150
150
|
]
|
|
151
|
-
}), m = u(
|
|
151
|
+
}), m = u(T()), C = u(!1), b = () => {
|
|
152
152
|
C.value = !0;
|
|
153
|
-
},
|
|
153
|
+
}, f = () => {
|
|
154
154
|
C.value = !1;
|
|
155
|
-
},
|
|
155
|
+
}, w = async (E) => {
|
|
156
156
|
m.value = me(E), b();
|
|
157
157
|
}, v = () => {
|
|
158
|
-
m.value =
|
|
159
|
-
},
|
|
158
|
+
m.value = T(), f();
|
|
159
|
+
}, N = 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)), x("confirm", me(m.value)), v();
|
|
162
162
|
};
|
|
163
|
-
return $({ handleEdit:
|
|
163
|
+
return $({ handleEdit: w }), (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(_e, {
|
|
166
166
|
class: "scope-edit-dialog",
|
|
167
167
|
visible: C.value,
|
|
168
168
|
title: "数据权限",
|
|
169
|
-
onBeforeDestroy:
|
|
169
|
+
onBeforeDestroy: f,
|
|
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), D(pe, null, xe(c(ft), (V) => (k(), ue(X, {
|
|
209
209
|
key: V.value,
|
|
210
210
|
value: V.value
|
|
211
211
|
}, {
|
|
212
212
|
default: s(() => [
|
|
213
|
-
h(
|
|
213
|
+
h(A(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: N,
|
|
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"]]), zt = { class: "role-management" }, Ot = { class: "header" }, Ut = { class: "header-left" }, Mt = { class: "query-wrapper" }, qt = { class: "header-right" }, Kt = { class: "body" },
|
|
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" }, jt = { class: "role-table-wrapper" }, Gt = { class: "operate-list" }, Qt = ["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(U) {
|
|
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
|
+
}, _ = vt(gt), { initDepartmentScope: x, recAndInitNodeDataPermission: T } = 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: f,
|
|
291
|
+
initGetByPage: w,
|
|
292
292
|
// initRoleList,
|
|
293
293
|
initCreate: v,
|
|
294
|
-
initUpdate:
|
|
294
|
+
initUpdate: N,
|
|
295
295
|
initDelete: E,
|
|
296
296
|
propertyAuthTree: y,
|
|
297
297
|
initPropertyAuthTree: X,
|
|
@@ -305,26 +305,26 @@ 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(), fe = u([]), Ae = async () => {
|
|
309
|
+
const a = await w(), { roleData: e = [] } = a;
|
|
310
310
|
return e;
|
|
311
|
-
},
|
|
312
|
-
|
|
311
|
+
}, F = async () => {
|
|
312
|
+
fe.value = await Ae();
|
|
313
313
|
}, Ne = (a) => {
|
|
314
|
-
b(a),
|
|
314
|
+
b(a), F();
|
|
315
315
|
}, Fe = (a) => {
|
|
316
|
-
|
|
316
|
+
f(a), F();
|
|
317
317
|
}, ze = async () => {
|
|
318
|
-
m(),
|
|
319
|
-
|
|
318
|
+
m(), _.setImportLoading(!0), await F().finally(() => {
|
|
319
|
+
_.setImportLoading(!1);
|
|
320
320
|
});
|
|
321
|
-
},
|
|
322
|
-
await
|
|
321
|
+
}, R = async () => {
|
|
322
|
+
await F(), await ae();
|
|
323
323
|
};
|
|
324
324
|
it(() => {
|
|
325
|
-
|
|
325
|
+
R();
|
|
326
326
|
});
|
|
327
|
-
const ve = u(), Oe =
|
|
327
|
+
const ve = u(), Oe = De({
|
|
328
328
|
name: [
|
|
329
329
|
{ required: !0, message: "请输入角色名称", trigger: "blur" }
|
|
330
330
|
]
|
|
@@ -337,7 +337,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
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((P) => P.id !== e);
|
|
341
341
|
d.value.params = [...l, ...a];
|
|
342
342
|
}, oe = u(!1), Ke = () => {
|
|
343
343
|
oe.value = !0;
|
|
@@ -355,10 +355,10 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
355
355
|
}), d.value = g(a, l), Ke();
|
|
356
356
|
}, ke = () => {
|
|
357
357
|
d.value = g(), ye();
|
|
358
|
-
},
|
|
359
|
-
var l, p,
|
|
358
|
+
}, je = async () => {
|
|
359
|
+
var l, p, P;
|
|
360
360
|
await ((p = (l = ve.value) == null ? void 0 : l.validate) == null ? void 0 : p.call(l));
|
|
361
|
-
let a = ((
|
|
361
|
+
let a = ((P = M.value) == null ? void 0 : P.getCheckedNodes()) || [];
|
|
362
362
|
a = a.filter((L) => L.isPropertyLeaf), a = a.map((L) => {
|
|
363
363
|
const { departmentScope: ne } = L.dataPermission || {};
|
|
364
364
|
return {
|
|
@@ -367,18 +367,18 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
367
367
|
};
|
|
368
368
|
}), d.value.main_ids = a;
|
|
369
369
|
const { role_id: e } = d.value;
|
|
370
|
-
e ? await He() : await
|
|
371
|
-
},
|
|
370
|
+
e ? await He() : await Qe(), ke();
|
|
371
|
+
}, Ge = async (a) => {
|
|
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
|
|
376
|
-
},
|
|
377
|
-
await v(d.value), await
|
|
375
|
+
de.ENABLE.value === e ? a.status = de.DISABLED.value : a.status = de.ENABLE.value, await N(a), await R();
|
|
376
|
+
}, Qe = async () => {
|
|
377
|
+
await v(d.value), await R();
|
|
378
378
|
}, He = async () => {
|
|
379
|
-
await
|
|
379
|
+
await N(d.value), await R();
|
|
380
380
|
}, Je = async (a) => {
|
|
381
|
-
await E(a), await
|
|
381
|
+
await E(a), await R();
|
|
382
382
|
}, We = async (a, e) => {
|
|
383
383
|
if (!V.value)
|
|
384
384
|
return;
|
|
@@ -398,17 +398,17 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
398
398
|
}, se = (a) => {
|
|
399
399
|
var l;
|
|
400
400
|
return (((l = M.value) == null ? void 0 : l.getCheckedKeys(!0)) || []).includes(a.id);
|
|
401
|
-
}, Ce = u(),
|
|
401
|
+
}, Ce = u(), j = u(), le = u(x()), be = (a, e) => {
|
|
402
402
|
var l;
|
|
403
|
-
a.stopPropagation(),
|
|
403
|
+
a.stopPropagation(), j.value = e, e.isPropertyLeaf && (le.value = me(e.dataPermission)), e.isProperty || (le.value = x("")), (l = Ce.value) == null || l.handleEdit(le.value);
|
|
404
404
|
}, Ye = (a) => {
|
|
405
|
-
const { isProperty: e, isPropertyLeaf: l } =
|
|
405
|
+
const { isProperty: e, isPropertyLeaf: l } = j.value;
|
|
406
406
|
if (l) {
|
|
407
|
-
|
|
407
|
+
j.value.dataPermission = a;
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
410
|
if (!e) {
|
|
411
|
-
|
|
411
|
+
T(j.value, a);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
}, Ze = async () => {
|
|
@@ -416,26 +416,26 @@ 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 P;
|
|
420
|
+
const p = (P = e.target.files) == null ? void 0 : P[0];
|
|
421
421
|
if (p)
|
|
422
422
|
try {
|
|
423
|
-
|
|
423
|
+
_.setImportLoading(!0), await Ie(p), await R(), _.setImportLoading(!1);
|
|
424
424
|
} catch {
|
|
425
|
-
|
|
425
|
+
_.setImportLoading(!1);
|
|
426
426
|
}
|
|
427
427
|
}, a.click();
|
|
428
428
|
}, tt = async () => {
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
_.setImportLoading(!0), await Be().finally(() => {
|
|
430
|
+
_.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(),
|
|
437
|
+
const l = n("el-input"), p = n("el-button"), P = n("el-icon"), L = n("el-dropdown-item"), ne = n("el-dropdown-menu"), ot = n("el-dropdown"), z = n("el-table-column"), O = n("el-tag"), st = n("el-table"), lt = n("el-pagination"), G = n("el-form-item"), Q = n("el-col"), re = n("el-row"), nt = n("el-tree"), rt = n("el-form");
|
|
438
|
+
return k(), D(pe, null, [
|
|
439
439
|
o("div", zt, [
|
|
440
440
|
o("div", Ot, [
|
|
441
441
|
o("div", Ut, [
|
|
@@ -448,22 +448,24 @@ 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: F
|
|
452
452
|
}, {
|
|
453
|
-
default: s(() =>
|
|
454
|
-
h("查询"
|
|
455
|
-
])
|
|
456
|
-
_: 1
|
|
453
|
+
default: s(() => e[6] || (e[6] = [
|
|
454
|
+
h("查询")
|
|
455
|
+
])),
|
|
456
|
+
_: 1,
|
|
457
|
+
__: [6]
|
|
457
458
|
}),
|
|
458
459
|
t(p, {
|
|
459
460
|
type: "primary",
|
|
460
461
|
plain: "",
|
|
461
462
|
onClick: ze
|
|
462
463
|
}, {
|
|
463
|
-
default: s(() =>
|
|
464
|
-
h("重置"
|
|
465
|
-
])
|
|
466
|
-
_: 1
|
|
464
|
+
default: s(() => e[7] || (e[7] = [
|
|
465
|
+
h("重置")
|
|
466
|
+
])),
|
|
467
|
+
_: 1,
|
|
468
|
+
__: [7]
|
|
467
469
|
})
|
|
468
470
|
])
|
|
469
471
|
]),
|
|
@@ -473,31 +475,34 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
473
475
|
onClick: Ze
|
|
474
476
|
}, {
|
|
475
477
|
default: s(() => [
|
|
476
|
-
e[8] || (e[8] = h(" 导入 "
|
|
477
|
-
t(
|
|
478
|
+
e[8] || (e[8] = h(" 导入 ")),
|
|
479
|
+
t(P, { class: "el-icon--right" }, {
|
|
478
480
|
default: s(() => [
|
|
479
481
|
t(c(ut))
|
|
480
482
|
]),
|
|
481
483
|
_: 1
|
|
482
484
|
})
|
|
483
485
|
]),
|
|
484
|
-
_: 1
|
|
486
|
+
_: 1,
|
|
487
|
+
__: [8]
|
|
485
488
|
}),
|
|
486
489
|
t(ot, null, {
|
|
487
490
|
dropdown: s(() => [
|
|
488
491
|
t(ne, null, {
|
|
489
492
|
default: s(() => [
|
|
490
493
|
t(L, { onClick: at }, {
|
|
491
|
-
default: s(() =>
|
|
492
|
-
h("导出模板"
|
|
493
|
-
])
|
|
494
|
-
_: 1
|
|
494
|
+
default: s(() => e[10] || (e[10] = [
|
|
495
|
+
h("导出模板")
|
|
496
|
+
])),
|
|
497
|
+
_: 1,
|
|
498
|
+
__: [10]
|
|
495
499
|
}),
|
|
496
500
|
t(L, { onClick: tt }, {
|
|
497
|
-
default: s(() =>
|
|
498
|
-
h("导出数据"
|
|
499
|
-
])
|
|
500
|
-
_: 1
|
|
501
|
+
default: s(() => e[11] || (e[11] = [
|
|
502
|
+
h("导出数据")
|
|
503
|
+
])),
|
|
504
|
+
_: 1,
|
|
505
|
+
__: [11]
|
|
501
506
|
})
|
|
502
507
|
]),
|
|
503
508
|
_: 1
|
|
@@ -506,15 +511,16 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
506
511
|
default: s(() => [
|
|
507
512
|
t(p, { type: "primary" }, {
|
|
508
513
|
default: s(() => [
|
|
509
|
-
e[9] || (e[9] = h(" 导出 "
|
|
510
|
-
t(
|
|
514
|
+
e[9] || (e[9] = h(" 导出 ")),
|
|
515
|
+
t(P, { class: "el-icon--right" }, {
|
|
511
516
|
default: s(() => [
|
|
512
517
|
t(c(pt))
|
|
513
518
|
]),
|
|
514
519
|
_: 1
|
|
515
520
|
})
|
|
516
521
|
]),
|
|
517
|
-
_: 1
|
|
522
|
+
_: 1,
|
|
523
|
+
__: [9]
|
|
518
524
|
})
|
|
519
525
|
]),
|
|
520
526
|
_: 1
|
|
@@ -528,59 +534,59 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
528
534
|
])
|
|
529
535
|
]),
|
|
530
536
|
o("div", Kt, [
|
|
531
|
-
o("div",
|
|
537
|
+
o("div", jt, [
|
|
532
538
|
t(st, {
|
|
533
539
|
class: "role-table",
|
|
534
|
-
data:
|
|
540
|
+
data: fe.value,
|
|
535
541
|
"empty-text": ""
|
|
536
542
|
}, {
|
|
537
543
|
default: s(() => [
|
|
538
|
-
t(
|
|
544
|
+
t(z, {
|
|
539
545
|
prop: "name",
|
|
540
546
|
label: "名称",
|
|
541
547
|
align: "center"
|
|
542
548
|
}),
|
|
543
|
-
t(
|
|
549
|
+
t(z, {
|
|
544
550
|
prop: "code",
|
|
545
551
|
label: "编码",
|
|
546
552
|
align: "center"
|
|
547
553
|
}),
|
|
548
|
-
t(
|
|
554
|
+
t(z, {
|
|
549
555
|
prop: "remark",
|
|
550
556
|
label: "备注",
|
|
551
557
|
align: "center"
|
|
552
558
|
}),
|
|
553
|
-
t(
|
|
559
|
+
t(z, {
|
|
554
560
|
prop: "status",
|
|
555
561
|
label: "状态",
|
|
556
562
|
align: "center"
|
|
557
563
|
}, {
|
|
558
564
|
default: s((r) => [
|
|
559
|
-
t(
|
|
565
|
+
t(O, {
|
|
560
566
|
class: "status-tag",
|
|
561
567
|
type: c(Z)(r.row.status),
|
|
562
568
|
title: "点击切换",
|
|
563
|
-
onClick: (i) =>
|
|
569
|
+
onClick: (i) => Ge(r.row)
|
|
564
570
|
}, {
|
|
565
571
|
default: s(() => [
|
|
566
|
-
h(
|
|
572
|
+
h(A(c(Y)(r.row.status)), 1)
|
|
567
573
|
]),
|
|
568
574
|
_: 2
|
|
569
575
|
}, 1032, ["type", "onClick"])
|
|
570
576
|
]),
|
|
571
577
|
_: 1
|
|
572
578
|
}),
|
|
573
|
-
t(
|
|
579
|
+
t(z, {
|
|
574
580
|
label: "操作",
|
|
575
581
|
align: "center"
|
|
576
582
|
}, {
|
|
577
583
|
default: s((r) => [
|
|
578
|
-
o("div",
|
|
579
|
-
(k(!0),
|
|
584
|
+
o("div", Gt, [
|
|
585
|
+
(k(!0), D(pe, null, xe(c(_t), (i) => (k(), D("div", {
|
|
580
586
|
class: "operate-item",
|
|
581
587
|
key: i.value,
|
|
582
588
|
onClick: ct((ie) => We(i, r), ["stop"])
|
|
583
|
-
},
|
|
589
|
+
}, A(i.label), 9, Qt))), 128))
|
|
584
590
|
])
|
|
585
591
|
]),
|
|
586
592
|
_: 1
|
|
@@ -607,7 +613,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
607
613
|
o("div", { class: "footer-right" })
|
|
608
614
|
], -1))
|
|
609
615
|
]),
|
|
610
|
-
t(
|
|
616
|
+
t(_e, {
|
|
611
617
|
class: "role-edit-dialog",
|
|
612
618
|
visible: oe.value,
|
|
613
619
|
title: "角色信息",
|
|
@@ -637,9 +643,9 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
637
643
|
default: s(() => [
|
|
638
644
|
t(re, { gutter: 20 }, {
|
|
639
645
|
default: s(() => [
|
|
640
|
-
t(
|
|
646
|
+
t(Q, { span: 12 }, {
|
|
641
647
|
default: s(() => [
|
|
642
|
-
t(
|
|
648
|
+
t(G, {
|
|
643
649
|
prop: "name",
|
|
644
650
|
label: "角色名称",
|
|
645
651
|
"label-position": "top"
|
|
@@ -657,9 +663,9 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
657
663
|
]),
|
|
658
664
|
_: 1
|
|
659
665
|
}),
|
|
660
|
-
t(
|
|
666
|
+
t(Q, { span: 12 }, {
|
|
661
667
|
default: s(() => [
|
|
662
|
-
t(
|
|
668
|
+
t(G, {
|
|
663
669
|
label: "角色编码",
|
|
664
670
|
"label-position": "top"
|
|
665
671
|
}, {
|
|
@@ -681,9 +687,9 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
681
687
|
}),
|
|
682
688
|
t(re, { gutter: 20 }, {
|
|
683
689
|
default: s(() => [
|
|
684
|
-
t(
|
|
690
|
+
t(Q, { span: 12 }, {
|
|
685
691
|
default: s(() => [
|
|
686
|
-
t(
|
|
692
|
+
t(G, {
|
|
687
693
|
label: "备注",
|
|
688
694
|
"label-position": "top"
|
|
689
695
|
}, {
|
|
@@ -708,9 +714,9 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
708
714
|
gutter: 20
|
|
709
715
|
}, {
|
|
710
716
|
default: s(() => [
|
|
711
|
-
t(
|
|
717
|
+
t(Q, { span: 24 }, {
|
|
712
718
|
default: s(() => [
|
|
713
|
-
t(
|
|
719
|
+
t(G, {
|
|
714
720
|
label: "特性权限",
|
|
715
721
|
"label-position": "top"
|
|
716
722
|
}, {
|
|
@@ -721,7 +727,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
721
727
|
"onUpdate:modelValue": e[5] || (e[5] = (r) => q.value = r)
|
|
722
728
|
}, {
|
|
723
729
|
prefix: s(() => [
|
|
724
|
-
t(
|
|
730
|
+
t(P, { class: "el-input__icon" }, {
|
|
725
731
|
default: s(() => [
|
|
726
732
|
t(c(mt))
|
|
727
733
|
]),
|
|
@@ -747,56 +753,59 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
747
753
|
return [
|
|
748
754
|
o("div", Zt, [
|
|
749
755
|
o("div", ea, [
|
|
750
|
-
o("div", ta,
|
|
756
|
+
o("div", ta, A(r.label), 1)
|
|
751
757
|
]),
|
|
752
|
-
i.isPropertyLeaf && se(i) ? (k(),
|
|
753
|
-
t(
|
|
758
|
+
i.isPropertyLeaf && se(i) ? (k(), D("div", aa, [
|
|
759
|
+
t(O, {
|
|
754
760
|
class: "status-tag",
|
|
755
761
|
type: c(te)(i.status),
|
|
756
762
|
title: "点击切换",
|
|
757
763
|
onClick: (I) => Xe(I, i)
|
|
758
764
|
}, {
|
|
759
765
|
default: s(() => [
|
|
760
|
-
h(
|
|
766
|
+
h(A(c(ee)(i.status)), 1)
|
|
761
767
|
]),
|
|
762
768
|
_: 2
|
|
763
769
|
}, 1032, ["type", "onClick"])
|
|
764
770
|
])) : H("", !0),
|
|
765
|
-
i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(),
|
|
766
|
-
t(
|
|
771
|
+
i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(), D("div", oa, [
|
|
772
|
+
t(O, {
|
|
767
773
|
class: "status-tag",
|
|
768
774
|
type: "success",
|
|
769
775
|
onClick: (I) => Me(I, i)
|
|
770
776
|
}, {
|
|
771
|
-
default: s(() =>
|
|
772
|
-
h(" 参数设置 "
|
|
773
|
-
])
|
|
774
|
-
_:
|
|
775
|
-
|
|
777
|
+
default: s(() => e[14] || (e[14] = [
|
|
778
|
+
h(" 参数设置 ")
|
|
779
|
+
])),
|
|
780
|
+
_: 2,
|
|
781
|
+
__: [14]
|
|
782
|
+
}, 1032, ["onClick"])
|
|
776
783
|
])) : H("", !0),
|
|
777
|
-
i.isPropertyLeaf && se(i) && c($e)(i) ? (k(),
|
|
778
|
-
t(
|
|
784
|
+
i.isPropertyLeaf && se(i) && c($e)(i) ? (k(), D("div", sa, [
|
|
785
|
+
t(O, {
|
|
779
786
|
class: "status-tag",
|
|
780
787
|
type: "warning",
|
|
781
788
|
onClick: (I) => be(I, i)
|
|
782
789
|
}, {
|
|
783
|
-
default: s(() =>
|
|
784
|
-
h(" 数据权限 "
|
|
785
|
-
])
|
|
786
|
-
_:
|
|
787
|
-
|
|
790
|
+
default: s(() => e[15] || (e[15] = [
|
|
791
|
+
h(" 数据权限 ")
|
|
792
|
+
])),
|
|
793
|
+
_: 2,
|
|
794
|
+
__: [15]
|
|
795
|
+
}, 1032, ["onClick"])
|
|
788
796
|
])) : H("", !0),
|
|
789
|
-
r.level == 1 && r.checked && !i.isProperty ? (k(),
|
|
790
|
-
t(
|
|
797
|
+
r.level == 1 && r.checked && !i.isProperty ? (k(), D("div", la, [
|
|
798
|
+
t(O, {
|
|
791
799
|
class: "status-tag",
|
|
792
800
|
type: "warning",
|
|
793
801
|
onClick: (I) => be(I, i)
|
|
794
802
|
}, {
|
|
795
|
-
default: s(() =>
|
|
796
|
-
h(" 数据权限重置 "
|
|
797
|
-
])
|
|
798
|
-
_:
|
|
799
|
-
|
|
803
|
+
default: s(() => e[16] || (e[16] = [
|
|
804
|
+
h(" 数据权限重置 ")
|
|
805
|
+
])),
|
|
806
|
+
_: 2,
|
|
807
|
+
__: [16]
|
|
808
|
+
}, 1032, ["onClick"])
|
|
800
809
|
])) : H("", !0)
|
|
801
810
|
])
|
|
802
811
|
];
|
|
@@ -834,7 +843,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
834
843
|
t(B, {
|
|
835
844
|
class: "confirm",
|
|
836
845
|
emptyColor: !0,
|
|
837
|
-
onClickTrigger:
|
|
846
|
+
onClickTrigger: je,
|
|
838
847
|
modelValue: "确定",
|
|
839
848
|
buttonType: "primary"
|
|
840
849
|
})
|