ss-component-new 1.3.696 → 1.3.697
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/config.js +1 -1
- package/dist/{index-BHtNKL1L.js → index-BKK_dL6t.js} +1 -1
- package/dist/{index-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
- package/dist/index-D7JA6c9V.js +53058 -0
- package/dist/index-Dh-XsS5U.js +1044 -0
- package/dist/index-DpYqhPhA.js +182 -0
- package/dist/index-Q71ALCnS.js +213 -0
- package/dist/index-z0_YrIG2.js +50 -0
- package/dist/menu-BwJj321q.js +5217 -0
- package/dist/origin-eVVoOCRz.js +11430 -0
- package/dist/ss-component.css +2 -8
- package/dist/ss-component.js +28 -64
- package/dist/ss-component2.js +15 -75
- package/dist/ss-component3.js +1 -1
- package/package.json +8 -6
- package/public/config.js +1 -1
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/MTLLoader-DzQM5Czw.js +0 -657
- package/dist/URDFLoader-CPXooEPU.js +0 -2299
- package/dist/animationData-DOIhMG9C.js +0 -83
- package/dist/array-CLHtElDn.js +0 -1045
- package/dist/clone-Dp_gc9ll.js +0 -8
- package/dist/eleIcon-qStmsM1q.js +0 -29
- package/dist/fileUtil-UOt_otFo.js +0 -20
- package/dist/iconfont-DmEA4YvX.js +0 -1018
- package/dist/icons/svg/functionList.svg +0 -1
- package/dist/icons/svg/method.svg +0 -1
- package/dist/index-11kpzK0A.js +0 -209
- package/dist/index-1izAkRXf.js +0 -572
- package/dist/index-B0H3C7WG.js +0 -103
- package/dist/index-B25qk008.js +0 -470
- package/dist/index-BJLCuYEK.js +0 -84
- package/dist/index-BbyrFzEO.js +0 -93
- package/dist/index-BooO2Bml.js +0 -78
- package/dist/index-Bw3sTXPI.js +0 -8993
- package/dist/index-C7sOKXGv.js +0 -48
- package/dist/index-C8Ap8ZMv.js +0 -873
- package/dist/index-CGi0g-VN.js +0 -627
- package/dist/index-CKem1G5u.js +0 -63004
- package/dist/index-CV_jQDcg.js +0 -9
- package/dist/index-CWOXvFfD.js +0 -44
- package/dist/index-CmdNsQMw.js +0 -93
- package/dist/index-CydXQbtX.js +0 -622
- package/dist/index-D9XVxZlg.js +0 -411
- package/dist/index-DAJxL40d.js +0 -55
- package/dist/index-DBsEVMiM.js +0 -201
- package/dist/index-DG4hoOWt.js +0 -665
- package/dist/index-DH6bfbMC.js +0 -119
- package/dist/index-DUbk5m5P.js +0 -99
- package/dist/index-DashTaLW.js +0 -30
- package/dist/index-DbPvKW8Q.js +0 -98
- package/dist/index-Ds6m_4JJ.js +0 -28500
- package/dist/index-DupTchhl.js +0 -1000
- package/dist/index-DyCq_odP.js +0 -331
- package/dist/index-N6DWelhz.js +0 -20549
- package/dist/index-UB_oCdlo.js +0 -62
- package/dist/index-YjBTGOkO.js +0 -61
- package/dist/index-_H190mm4.js +0 -83
- package/dist/index-jbOjjV0j.js +0 -447
- package/dist/index-mBAa1AXl.js +0 -107
- package/dist/index-qSuG4S8O.js +0 -25297
- package/dist/index-rlStojTL.js +0 -52
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js +0 -137877
- package/dist/isString-0ZglyOfu.js +0 -8
- package/dist/localIcon-D5UoFBU5.js +0 -76
- package/dist/main-Cs0nFQEQ.js +0 -502
- package/dist/menuIndex-BB0uVPRX.js +0 -159
- package/dist/request-1RPa2bBn.js +0 -9048
- package/dist/threeModel-BJjbCDpj.js +0 -1108
- package/dist/threePreview-Bfo24URW.js +0 -2259
- package/dist/threeSceneView-CHiKXhnX.js +0 -1290
- package/dist/threeSceneViewForCPMPIP-KLFT3AYb.js +0 -539
- package/dist/threeTrackPathView-DOy0uuLZ.js +0 -620
- package/dist/threeViewerHost-D1mrtsv3.js +0 -233
- package/dist/urdfTree-C6mx4T9t.js +0 -254
- package/dist/workpieceTreePanel-CnO3zz7U.js +0 -559
- package/public/icons/svg/functionList.svg +0 -1
- package/public/icons/svg/method.svg +0 -1
- /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
- /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/public/icons/svg/{Update.svg → update.svg} +0 -0
package/dist/index-DyCq_odP.js
DELETED
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { watch as be, ref as h, computed as Le } from "vue";
|
|
2
|
-
import { p as w, k as D, w as Te } from "./index-Ds6m_4JJ.js";
|
|
3
|
-
import { s as we, b as N, p as F, u as De, B as Ee, c as E, K as U, E as Be, r as Re, aZ as Ae, a_ as Pe, a$ as Se, b0 as qe, b1 as xe, b2 as Ue } from "./index-Bw3sTXPI.js";
|
|
4
|
-
import { s as V } from "./request-1RPa2bBn.js";
|
|
5
|
-
import { i as ke } from "./fileUtil-UOt_otFo.js";
|
|
6
|
-
const Ne = N(F), { systemUrl: p } = we(Ne);
|
|
7
|
-
let B = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
|
|
8
|
-
be(
|
|
9
|
-
() => p.value,
|
|
10
|
-
() => {
|
|
11
|
-
B = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
|
|
12
|
-
},
|
|
13
|
-
{ deep: !0, immediate: !0 }
|
|
14
|
-
);
|
|
15
|
-
function Fe(d) {
|
|
16
|
-
return V({
|
|
17
|
-
url: `${B}/platform/import_data`,
|
|
18
|
-
method: "post",
|
|
19
|
-
data: d
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function Ve(d) {
|
|
23
|
-
return V({
|
|
24
|
-
url: `${B}/platform/export_data`,
|
|
25
|
-
method: "post",
|
|
26
|
-
data: d,
|
|
27
|
-
responseType: "blob"
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
const We = [
|
|
31
|
-
{
|
|
32
|
-
label: "编辑",
|
|
33
|
-
value: "edit"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "删除",
|
|
37
|
-
value: "delete"
|
|
38
|
-
}
|
|
39
|
-
], k = "role", u = {
|
|
40
|
-
ENABLE: {
|
|
41
|
-
value: "enable",
|
|
42
|
-
label: "启用",
|
|
43
|
-
tag: "primary"
|
|
44
|
-
},
|
|
45
|
-
DISABLED: {
|
|
46
|
-
value: "disabled",
|
|
47
|
-
label: "禁用",
|
|
48
|
-
tag: "info"
|
|
49
|
-
}
|
|
50
|
-
}, c = {
|
|
51
|
-
EDITABLE: {
|
|
52
|
-
value: "editable",
|
|
53
|
-
label: "可编辑",
|
|
54
|
-
tag: "primary"
|
|
55
|
-
},
|
|
56
|
-
DISABLED: {
|
|
57
|
-
value: "disabled",
|
|
58
|
-
label: "不可编辑",
|
|
59
|
-
tag: "info"
|
|
60
|
-
}
|
|
61
|
-
}, ze = {
|
|
62
|
-
TABLE: {
|
|
63
|
-
value: "Table"
|
|
64
|
-
}
|
|
65
|
-
}, $e = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], Ze = () => {
|
|
66
|
-
const d = N(), o = De(F), { isSuperAdmin: y, userId: z, userName: v, platId: l } = Ee(), R = h([]), $ = (t) => {
|
|
67
|
-
const { propertyType: e } = t || {};
|
|
68
|
-
return e === ze.TABLE.value;
|
|
69
|
-
}, I = h({}), G = Le(() => {
|
|
70
|
-
var e;
|
|
71
|
-
return y.value ? !0 : ((e = I.value) == null ? void 0 : e.status) === c.EDITABLE.value;
|
|
72
|
-
}), C = (t) => {
|
|
73
|
-
var s, n;
|
|
74
|
-
const e = U(Date.now()), { id: a = 0 } = d.loginUserInfo || {}, r = E(t);
|
|
75
|
-
return r.update_user_id = a, r.update_user_name = v.value, r.update_time = e, r.checked_ids = ((n = (s = r == null ? void 0 : r.main_ids) == null ? void 0 : s.map) == null ? void 0 : n.call(s, (i) => {
|
|
76
|
-
const { id: f } = i;
|
|
77
|
-
return f;
|
|
78
|
-
})) || [], r;
|
|
79
|
-
}, A = (t) => {
|
|
80
|
-
let e = [];
|
|
81
|
-
return t.forEach((a) => {
|
|
82
|
-
var r;
|
|
83
|
-
if (a.isPropertyLeaf) {
|
|
84
|
-
const s = E(a);
|
|
85
|
-
e.push(s);
|
|
86
|
-
}
|
|
87
|
-
a.children && ((r = a.children) == null ? void 0 : r.length) > 0 && (e = e.concat(A(a.children)));
|
|
88
|
-
}), e;
|
|
89
|
-
}, P = (t = []) => {
|
|
90
|
-
let e = [];
|
|
91
|
-
for (let a = 0; a < t.length; a++) {
|
|
92
|
-
const r = t[a], s = r.children || [];
|
|
93
|
-
delete r.children, e.push(r), s && s.length > 0 && (e = e.concat(P(s)));
|
|
94
|
-
}
|
|
95
|
-
return e;
|
|
96
|
-
}, M = (t) => {
|
|
97
|
-
let e = [];
|
|
98
|
-
return t.forEach((a) => {
|
|
99
|
-
if (a.isPropertyLeaf) {
|
|
100
|
-
const r = P(a.params);
|
|
101
|
-
e = e.concat(r);
|
|
102
|
-
}
|
|
103
|
-
}), e;
|
|
104
|
-
}, S = (t, e) => {
|
|
105
|
-
const a = d.loginUserInfo, { id: r = 0 } = a || {}, s = U(Date.now());
|
|
106
|
-
let n = {
|
|
107
|
-
name: "",
|
|
108
|
-
code: "",
|
|
109
|
-
order_no: 1,
|
|
110
|
-
data_scope: 1,
|
|
111
|
-
remark: "",
|
|
112
|
-
tenant_id: "",
|
|
113
|
-
create_time: s,
|
|
114
|
-
update_time: s,
|
|
115
|
-
create_user_id: r,
|
|
116
|
-
create_user_name: v.value,
|
|
117
|
-
update_user_id: r,
|
|
118
|
-
update_user_name: v.value,
|
|
119
|
-
status: u.ENABLE.value,
|
|
120
|
-
main_ids: [],
|
|
121
|
-
checked_ids: [],
|
|
122
|
-
params: []
|
|
123
|
-
};
|
|
124
|
-
const { checkAll: i, tree: f } = e || {};
|
|
125
|
-
if (i && f) {
|
|
126
|
-
const g = A(f), Ie = g.map((T) => ({
|
|
127
|
-
...T,
|
|
128
|
-
department_scope: "unlimited"
|
|
129
|
-
}));
|
|
130
|
-
n.main_ids = Ie, n.checked_ids = g.map((T) => T.id), n.params = M(g);
|
|
131
|
-
}
|
|
132
|
-
if (t) {
|
|
133
|
-
const g = C(t);
|
|
134
|
-
n = {
|
|
135
|
-
...n,
|
|
136
|
-
...g
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
return n;
|
|
140
|
-
}, b = (t) => {
|
|
141
|
-
const e = [t];
|
|
142
|
-
return {
|
|
143
|
-
platId: l.value,
|
|
144
|
-
changeRoleData: e
|
|
145
|
-
};
|
|
146
|
-
}, O = async (t) => await xe({
|
|
147
|
-
platId: t
|
|
148
|
-
}), H = async () => {
|
|
149
|
-
var e;
|
|
150
|
-
o.setImportLoading(!0);
|
|
151
|
-
const t = await O(l.value).finally(() => {
|
|
152
|
-
o.setImportLoading(!1);
|
|
153
|
-
});
|
|
154
|
-
return (e = t == null ? void 0 : t.data) == null ? void 0 : e.result;
|
|
155
|
-
}, q = () => ({
|
|
156
|
-
name: ""
|
|
157
|
-
}), _ = h(q()), K = () => {
|
|
158
|
-
_.value = q();
|
|
159
|
-
}, m = h({
|
|
160
|
-
pageNum: 1,
|
|
161
|
-
pageSize: 10,
|
|
162
|
-
total: 0,
|
|
163
|
-
pageSizes: [5, 10, 20, 50, 100]
|
|
164
|
-
}), Q = (t) => {
|
|
165
|
-
m.value.pageNum = t;
|
|
166
|
-
}, W = (t) => {
|
|
167
|
-
m.value.pageSize = t;
|
|
168
|
-
}, Z = () => ({
|
|
169
|
-
platId: l.value,
|
|
170
|
-
pageNum: m.value.pageNum,
|
|
171
|
-
pageSize: m.value.pageSize,
|
|
172
|
-
filter: {
|
|
173
|
-
..._.value
|
|
174
|
-
}
|
|
175
|
-
}), j = async (t) => {
|
|
176
|
-
var a;
|
|
177
|
-
const e = await Ue(t);
|
|
178
|
-
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
179
|
-
}, J = async () => {
|
|
180
|
-
const t = Z(), e = await j(t), { total: a } = e || {};
|
|
181
|
-
return m.value.total = a, e || {};
|
|
182
|
-
}, X = async (t) => {
|
|
183
|
-
delete t.role_id;
|
|
184
|
-
const e = b(t);
|
|
185
|
-
await qe(e);
|
|
186
|
-
}, Y = async (t) => {
|
|
187
|
-
o.setImportLoading(!0), await X(t).finally(() => {
|
|
188
|
-
o.setImportLoading(!1);
|
|
189
|
-
});
|
|
190
|
-
}, ee = async (t) => {
|
|
191
|
-
const e = b(t);
|
|
192
|
-
await Se(e);
|
|
193
|
-
}, te = async (t) => {
|
|
194
|
-
o.setImportLoading(!0), await ee(t).finally(() => {
|
|
195
|
-
o.setImportLoading(!1);
|
|
196
|
-
});
|
|
197
|
-
}, ae = async (t) => {
|
|
198
|
-
const { role_id: e } = t, a = {
|
|
199
|
-
platId: l.value,
|
|
200
|
-
role_id: [e]
|
|
201
|
-
};
|
|
202
|
-
await Pe(a);
|
|
203
|
-
}, re = async (t) => {
|
|
204
|
-
await Be.confirm("是否确认要删除", "", {
|
|
205
|
-
showClose: !1,
|
|
206
|
-
confirmButtonText: "确认",
|
|
207
|
-
cancelButtonText: "取消",
|
|
208
|
-
type: "warning",
|
|
209
|
-
modalClass: "delete-role-message-modal",
|
|
210
|
-
confirmButtonClass: "delete-role-confirm"
|
|
211
|
-
}), o.setImportLoading(!0), await ae(t).finally(() => {
|
|
212
|
-
o.setImportLoading(!1);
|
|
213
|
-
});
|
|
214
|
-
}, se = (t) => {
|
|
215
|
-
const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
|
|
216
|
-
return (a == null ? void 0 : a.label) || t;
|
|
217
|
-
}, ne = (t) => {
|
|
218
|
-
const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
|
|
219
|
-
return (a == null ? void 0 : a.tag) || "info";
|
|
220
|
-
}, oe = async (t) => {
|
|
221
|
-
var a;
|
|
222
|
-
const e = await Ae(t);
|
|
223
|
-
return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
|
|
224
|
-
}, le = async (t) => {
|
|
225
|
-
const e = {
|
|
226
|
-
platId: l.value,
|
|
227
|
-
includeHidden: !0,
|
|
228
|
-
roleIds: t
|
|
229
|
-
};
|
|
230
|
-
o.setImportLoading(!0);
|
|
231
|
-
const a = await oe(e).finally(() => {
|
|
232
|
-
o.setImportLoading(!1);
|
|
233
|
-
});
|
|
234
|
-
R.value = a;
|
|
235
|
-
}, ie = (t = "") => {
|
|
236
|
-
const e = t.toUpperCase(), a = c == null ? void 0 : c[e];
|
|
237
|
-
return (a == null ? void 0 : a.label) || t;
|
|
238
|
-
}, ce = (t = "") => {
|
|
239
|
-
const e = t.toUpperCase(), a = c == null ? void 0 : c[e];
|
|
240
|
-
return (a == null ? void 0 : a.tag) || "info";
|
|
241
|
-
}, L = (t) => t === c.EDITABLE.value, ue = (t, e) => {
|
|
242
|
-
const { status: a } = t || {}, { tableOperate: r } = e || {};
|
|
243
|
-
return !!(L(a) || r && $e.includes(r));
|
|
244
|
-
}, pe = (t, e) => {
|
|
245
|
-
const { status: a } = t || {};
|
|
246
|
-
return L(a);
|
|
247
|
-
}, de = (t, e) => {
|
|
248
|
-
if (y.value)
|
|
249
|
-
return !0;
|
|
250
|
-
const { type: a } = e || {};
|
|
251
|
-
if (w.TABLE === a)
|
|
252
|
-
return ue(t, e);
|
|
253
|
-
if (w.FORM === a)
|
|
254
|
-
return pe(t);
|
|
255
|
-
const { status: r } = t || {};
|
|
256
|
-
return L(r);
|
|
257
|
-
}, me = async () => {
|
|
258
|
-
var r, s;
|
|
259
|
-
const e = {
|
|
260
|
-
pageName: "系统管理/角色管理",
|
|
261
|
-
platId: l.value,
|
|
262
|
-
userId: z.value
|
|
263
|
-
}, a = await Re(e);
|
|
264
|
-
return (s = (r = a == null ? void 0 : a.data) == null ? void 0 : r.result) == null ? void 0 : s[0];
|
|
265
|
-
}, fe = async () => {
|
|
266
|
-
if (!y.value)
|
|
267
|
-
return I.value = await me(), I;
|
|
268
|
-
}, x = (t) => {
|
|
269
|
-
const e = E(t);
|
|
270
|
-
for (let a = 0; a < e.length; a++) {
|
|
271
|
-
const r = e == null ? void 0 : e[a], { id: s, prop: n, children: i } = r || {};
|
|
272
|
-
r.uniqueKey = `${s}_${n}`, i && (r.children = x(i));
|
|
273
|
-
}
|
|
274
|
-
return e;
|
|
275
|
-
}, ge = async (t) => {
|
|
276
|
-
var a;
|
|
277
|
-
const e = await Fe(t);
|
|
278
|
-
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
279
|
-
}, ye = async (t) => {
|
|
280
|
-
const e = new FormData(), a = S(), { create_user_id: r, update_user_id: s, create_user_name: n, update_user_name: i } = a;
|
|
281
|
-
return e.set("platId", l.value), e.set("file", t), e.set("tableType", k), e.set("create_user_id", r), e.set("update_user_id", s), e.set("create_user_name", n), e.set("update_user_name", i), await ge(e);
|
|
282
|
-
}, _e = async (t) => await Ve(t), he = async () => {
|
|
283
|
-
const t = {
|
|
284
|
-
platId: l.value,
|
|
285
|
-
tableType: k,
|
|
286
|
-
filter: _.value
|
|
287
|
-
}, e = await _e(t);
|
|
288
|
-
return ke(e), e;
|
|
289
|
-
}, ve = [["名称", "编码", "备注", "状态"]];
|
|
290
|
-
return {
|
|
291
|
-
compType: w,
|
|
292
|
-
isTableFeature: $,
|
|
293
|
-
queryInfo: _,
|
|
294
|
-
resetQuery: K,
|
|
295
|
-
pageInfo: m,
|
|
296
|
-
setPageNum: Q,
|
|
297
|
-
setPageSize: W,
|
|
298
|
-
initGetByPage: J,
|
|
299
|
-
initRoleList: H,
|
|
300
|
-
initCreate: Y,
|
|
301
|
-
initUpdate: te,
|
|
302
|
-
initDelete: re,
|
|
303
|
-
initRoleRequestData: b,
|
|
304
|
-
initPropertyAuthTree: le,
|
|
305
|
-
propertyAuthTree: R,
|
|
306
|
-
initRoleItem: S,
|
|
307
|
-
isSuperAdmin: y,
|
|
308
|
-
getStatusLabelByValue: se,
|
|
309
|
-
getStatusTagByValue: ne,
|
|
310
|
-
getFeatureStatusLabelByValue: ie,
|
|
311
|
-
getFeatureStatusTagByValue: ce,
|
|
312
|
-
hasEditable: de,
|
|
313
|
-
initRoleConfig: fe,
|
|
314
|
-
hasRoleEditAuth: G,
|
|
315
|
-
buildParamAuthTree: x,
|
|
316
|
-
initImport: ye,
|
|
317
|
-
initExport: he,
|
|
318
|
-
exportTemplate: async () => {
|
|
319
|
-
const t = D.aoa_to_sheet(ve), e = D.book_new();
|
|
320
|
-
D.book_append_sheet(e, t, "角色"), Te(e, "角色模板.xlsx");
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
export {
|
|
325
|
-
Ve as e,
|
|
326
|
-
c as f,
|
|
327
|
-
Fe as i,
|
|
328
|
-
We as o,
|
|
329
|
-
u as s,
|
|
330
|
-
Ze as u
|
|
331
|
-
};
|