ss-component-new 1.3.667 → 1.3.668
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-97ajvYTo.js +657 -0
- package/dist/URDFLoader-BTohsFFD.js +2299 -0
- package/dist/animationData-Bh1dENkM.js +83 -0
- package/dist/array-BeZlnHE5.js +1045 -0
- package/dist/clone-64Nh3RrP.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-DlIcb4df.js +29 -0
- package/dist/iconfont-DLildctL.js +1018 -0
- package/dist/icons/svg/Update.svg +1 -0
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-11kpzK0A.js +209 -0
- package/dist/index-8ZSWGLlP.js +664 -0
- package/dist/index-B24zodK9.js +48 -0
- package/dist/index-BAILi3_p.js +627 -0
- package/dist/index-BEqKA-R8.js +342 -0
- package/dist/{index-BKK_dL6t.js → index-BHtNKL1L.js} +1 -1
- package/dist/index-BI0lhlHy.js +107 -0
- package/dist/index-BaGFPX8W.js +103 -0
- package/dist/index-BosPsk5k.js +83 -0
- package/dist/index-Byq7jT-a.js +470 -0
- package/dist/index-CDuL9GwS.js +8985 -0
- package/dist/index-CG1vGzHt.js +44 -0
- package/dist/index-CJySKIdc.js +61 -0
- package/dist/index-COgke2F-.js +119 -0
- package/dist/index-CRwB8jQA.js +572 -0
- package/dist/index-CUfQEUxH.js +873 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
- package/dist/index-ChtDRE_0.js +62 -0
- package/dist/index-ClXCn3x3.js +84 -0
- package/dist/index-CqjkyYQM.js +55 -0
- package/dist/index-CzGgc0w7.js +98 -0
- package/dist/index-CzMViO4H.js +28484 -0
- package/dist/index-D9fiFfMC.js +201 -0
- package/dist/index-DL9OWmfj.js +93 -0
- package/dist/index-DNzOZL27.js +1000 -0
- package/dist/index-DQHZjNCb.js +24423 -0
- package/dist/index-DSIS-l1N.js +93 -0
- package/dist/index-DTudxHP8.js +11815 -0
- package/dist/index-DU0QRffL.js +30 -0
- package/dist/index-DibaunZs.js +61957 -0
- package/dist/index-DkXSSUDS.js +447 -0
- package/dist/index-DlFmNKos.js +99 -0
- package/dist/index-DnRdT_Vp.js +78 -0
- package/dist/index-SOPMlMak.js +622 -0
- package/dist/index-aibiYft7.js +411 -0
- package/dist/index-rlStojTL.js +52 -0
- package/dist/index-uF-ibwG0.js +9 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CdPZBari.js +137703 -0
- package/dist/isString-h0UV2hrP.js +8 -0
- package/dist/localIcon-D5UoFBU5.js +76 -0
- package/dist/main-C7ijH7Xb.js +502 -0
- package/dist/menuIndex-CycdWV7s.js +159 -0
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/request-DolpfyNJ.js +9047 -0
- package/dist/ss-component.css +8 -2
- package/dist/ss-component.js +64 -28
- package/dist/ss-component2.js +75 -15
- package/dist/ss-component3.js +1 -1
- package/dist/threeModel-BQDoEUp8.js +1108 -0
- package/dist/threePreview-CIDX4oie.js +2259 -0
- package/dist/threeSceneView-C17oeWoh.js +1290 -0
- package/dist/threeSceneViewForCPMPIP-C1NcTzgS.js +539 -0
- package/dist/threeTrackPathView-BvI1Y9Qf.js +620 -0
- package/dist/threeViewerHost-Cs8SXBpW.js +233 -0
- package/dist/urdfTree-Dkdd2JSt.js +254 -0
- package/dist/workpieceTreePanel-VMAn_xKW.js +559 -0
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/public/icons/svg/Update.svg +1 -0
- package/public/icons/svg/functionList.svg +1 -0
- package/public/icons/svg/uploadCopy.svg +1 -0
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-CCShKHTf.js +0 -50
- package/dist/index-CHLS51j8.js +0 -1044
- package/dist/index-Ccv8qbdo.js +0 -9091
- package/dist/index-D2V0zCQE.js +0 -195
- package/dist/index-DgjdKpj-.js +0 -182
- package/dist/menu-B8iV5Rhf.js +0 -5215
- package/dist/origin-B7bb-ZcE.js +0 -11428
- /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
- /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { watch as Ie, ref as w, computed as we } from "vue";
|
|
2
|
+
import { p as E, k as A, w as Le } from "./index-CzMViO4H.js";
|
|
3
|
+
import { s as Te, b as V, p as C, u as Re, A as De, c as B, J as N, E as Ee, q as Ae, aZ as Be, a_ as Pe, a$ as Ue, b0 as xe, b1 as Se, b2 as ke } from "./index-CDuL9GwS.js";
|
|
4
|
+
import { s as z } from "./request-DolpfyNJ.js";
|
|
5
|
+
const qe = V(C), { systemUrl: f } = Te(qe);
|
|
6
|
+
let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
7
|
+
Ie(
|
|
8
|
+
() => f.value,
|
|
9
|
+
() => {
|
|
10
|
+
P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
11
|
+
},
|
|
12
|
+
{ deep: !0, immediate: !0 }
|
|
13
|
+
);
|
|
14
|
+
function Ne(s) {
|
|
15
|
+
return z({
|
|
16
|
+
url: `${P}/platform/import_data`,
|
|
17
|
+
method: "post",
|
|
18
|
+
data: s
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function Fe(s) {
|
|
22
|
+
return z({
|
|
23
|
+
url: `${P}/platform/export_data`,
|
|
24
|
+
method: "post",
|
|
25
|
+
data: s,
|
|
26
|
+
responseType: "blob"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function Ve(s = "") {
|
|
30
|
+
const r = s.match(/filename\*=UTF-8''([^;]+)/i);
|
|
31
|
+
if (r)
|
|
32
|
+
return decodeURIComponent(r[1]);
|
|
33
|
+
const i = s.match(/filename=["']?([^"';]+)["']?/);
|
|
34
|
+
return i ? i[1] : "download.xlsx";
|
|
35
|
+
}
|
|
36
|
+
const Ce = (s) => {
|
|
37
|
+
var b, g;
|
|
38
|
+
const r = ((b = s == null ? void 0 : s.headers) == null ? void 0 : b["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h = Ve(L) || "数据.xlsx", c = window.URL.createObjectURL(i), u = document.createElement("a");
|
|
39
|
+
u.href = c, u.setAttribute("download", h), document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(c);
|
|
40
|
+
}, Je = [
|
|
41
|
+
{
|
|
42
|
+
label: "编辑",
|
|
43
|
+
value: "edit"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "删除",
|
|
47
|
+
value: "delete"
|
|
48
|
+
}
|
|
49
|
+
], F = "role", m = {
|
|
50
|
+
ENABLE: {
|
|
51
|
+
value: "enable",
|
|
52
|
+
label: "启用",
|
|
53
|
+
tag: "primary"
|
|
54
|
+
},
|
|
55
|
+
DISABLED: {
|
|
56
|
+
value: "disabled",
|
|
57
|
+
label: "禁用",
|
|
58
|
+
tag: "info"
|
|
59
|
+
}
|
|
60
|
+
}, d = {
|
|
61
|
+
EDITABLE: {
|
|
62
|
+
value: "editable",
|
|
63
|
+
label: "可编辑",
|
|
64
|
+
tag: "primary"
|
|
65
|
+
},
|
|
66
|
+
DISABLED: {
|
|
67
|
+
value: "disabled",
|
|
68
|
+
label: "不可编辑",
|
|
69
|
+
tag: "info"
|
|
70
|
+
}
|
|
71
|
+
}, ze = {
|
|
72
|
+
TABLE: {
|
|
73
|
+
value: "Table"
|
|
74
|
+
}
|
|
75
|
+
}, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], Ke = () => {
|
|
76
|
+
const s = V(), r = Re(C), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), b = (t) => {
|
|
77
|
+
const { propertyType: e } = t || {};
|
|
78
|
+
return e === ze.TABLE.value;
|
|
79
|
+
}, g = w({}), O = we(() => {
|
|
80
|
+
var e;
|
|
81
|
+
return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
|
|
82
|
+
}), $ = (t) => {
|
|
83
|
+
var o, l;
|
|
84
|
+
const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = B(t);
|
|
85
|
+
return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
|
|
86
|
+
const { id: _ } = p;
|
|
87
|
+
return _;
|
|
88
|
+
})) || [], n;
|
|
89
|
+
}, U = (t) => {
|
|
90
|
+
let e = [];
|
|
91
|
+
return t.forEach((a) => {
|
|
92
|
+
var n;
|
|
93
|
+
if (a.isPropertyLeaf) {
|
|
94
|
+
const o = B(a);
|
|
95
|
+
e.push(o);
|
|
96
|
+
}
|
|
97
|
+
a.children && ((n = a.children) == null ? void 0 : n.length) > 0 && (e = e.concat(U(a.children)));
|
|
98
|
+
}), e;
|
|
99
|
+
}, x = (t = []) => {
|
|
100
|
+
let e = [];
|
|
101
|
+
for (let a = 0; a < t.length; a++) {
|
|
102
|
+
const n = t[a], o = n.children || [];
|
|
103
|
+
delete n.children, e.push(n), o && o.length > 0 && (e = e.concat(x(o)));
|
|
104
|
+
}
|
|
105
|
+
return e;
|
|
106
|
+
}, G = (t) => {
|
|
107
|
+
let e = [];
|
|
108
|
+
return t.forEach((a) => {
|
|
109
|
+
if (a.isPropertyLeaf) {
|
|
110
|
+
const n = x(a.params);
|
|
111
|
+
e = e.concat(n);
|
|
112
|
+
}
|
|
113
|
+
}), e;
|
|
114
|
+
}, S = (t, e) => {
|
|
115
|
+
const a = s.loginUserInfo, { id: n = 0 } = a || {}, o = N(Date.now());
|
|
116
|
+
let l = {
|
|
117
|
+
name: "",
|
|
118
|
+
code: "",
|
|
119
|
+
order_no: 1,
|
|
120
|
+
data_scope: 1,
|
|
121
|
+
remark: "",
|
|
122
|
+
tenant_id: "",
|
|
123
|
+
create_time: o,
|
|
124
|
+
update_time: o,
|
|
125
|
+
create_user_id: n,
|
|
126
|
+
create_user_name: h.value,
|
|
127
|
+
update_user_id: n,
|
|
128
|
+
update_user_name: h.value,
|
|
129
|
+
status: m.ENABLE.value,
|
|
130
|
+
main_ids: [],
|
|
131
|
+
checked_ids: [],
|
|
132
|
+
params: []
|
|
133
|
+
};
|
|
134
|
+
const { checkAll: p, tree: _ } = e || {};
|
|
135
|
+
if (p && _) {
|
|
136
|
+
const v = U(_), be = v.map((D) => ({
|
|
137
|
+
...D,
|
|
138
|
+
department_scope: "unlimited"
|
|
139
|
+
}));
|
|
140
|
+
l.main_ids = be, l.checked_ids = v.map((D) => D.id), l.params = G(v);
|
|
141
|
+
}
|
|
142
|
+
if (t) {
|
|
143
|
+
const v = $(t);
|
|
144
|
+
l = {
|
|
145
|
+
...l,
|
|
146
|
+
...v
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return l;
|
|
150
|
+
}, T = (t) => {
|
|
151
|
+
const e = [t];
|
|
152
|
+
return {
|
|
153
|
+
platId: c.value,
|
|
154
|
+
changeRoleData: e
|
|
155
|
+
};
|
|
156
|
+
}, M = async (t) => await Se({
|
|
157
|
+
platId: t
|
|
158
|
+
}), j = async () => {
|
|
159
|
+
var e;
|
|
160
|
+
r.setImportLoading(!0);
|
|
161
|
+
const t = await M(c.value).finally(() => {
|
|
162
|
+
r.setImportLoading(!1);
|
|
163
|
+
});
|
|
164
|
+
return (e = t == null ? void 0 : t.data) == null ? void 0 : e.result;
|
|
165
|
+
}, k = () => ({
|
|
166
|
+
name: ""
|
|
167
|
+
}), I = w(k()), H = () => {
|
|
168
|
+
I.value = k();
|
|
169
|
+
}, y = w({
|
|
170
|
+
pageNum: 1,
|
|
171
|
+
pageSize: 10,
|
|
172
|
+
total: 0,
|
|
173
|
+
pageSizes: [5, 10, 20, 50, 100]
|
|
174
|
+
}), Q = (t) => {
|
|
175
|
+
y.value.pageNum = t;
|
|
176
|
+
}, J = (t) => {
|
|
177
|
+
y.value.pageSize = t;
|
|
178
|
+
}, K = () => ({
|
|
179
|
+
platId: c.value,
|
|
180
|
+
pageNum: y.value.pageNum,
|
|
181
|
+
pageSize: y.value.pageSize,
|
|
182
|
+
filter: {
|
|
183
|
+
...I.value
|
|
184
|
+
}
|
|
185
|
+
}), W = async (t) => {
|
|
186
|
+
var a;
|
|
187
|
+
const e = await ke(t);
|
|
188
|
+
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
189
|
+
}, Z = async () => {
|
|
190
|
+
const t = K(), e = await W(t), { total: a } = e || {};
|
|
191
|
+
return y.value.total = a, e || {};
|
|
192
|
+
}, X = async (t) => {
|
|
193
|
+
delete t.role_id;
|
|
194
|
+
const e = T(t);
|
|
195
|
+
await xe(e);
|
|
196
|
+
}, Y = async (t) => {
|
|
197
|
+
r.setImportLoading(!0), await X(t).finally(() => {
|
|
198
|
+
r.setImportLoading(!1);
|
|
199
|
+
});
|
|
200
|
+
}, ee = async (t) => {
|
|
201
|
+
const e = T(t);
|
|
202
|
+
await Ue(e);
|
|
203
|
+
}, te = async (t) => {
|
|
204
|
+
r.setImportLoading(!0), await ee(t).finally(() => {
|
|
205
|
+
r.setImportLoading(!1);
|
|
206
|
+
});
|
|
207
|
+
}, ae = async (t) => {
|
|
208
|
+
const { role_id: e } = t, a = {
|
|
209
|
+
platId: c.value,
|
|
210
|
+
role_id: [e]
|
|
211
|
+
};
|
|
212
|
+
await Pe(a);
|
|
213
|
+
}, ne = async (t) => {
|
|
214
|
+
await Ee.confirm("是否确认要删除", "", {
|
|
215
|
+
showClose: !1,
|
|
216
|
+
confirmButtonText: "确认",
|
|
217
|
+
cancelButtonText: "取消",
|
|
218
|
+
type: "warning",
|
|
219
|
+
modalClass: "delete-role-message-modal",
|
|
220
|
+
confirmButtonClass: "delete-role-confirm"
|
|
221
|
+
}), r.setImportLoading(!0), await ae(t).finally(() => {
|
|
222
|
+
r.setImportLoading(!1);
|
|
223
|
+
});
|
|
224
|
+
}, oe = (t) => {
|
|
225
|
+
const e = t.toUpperCase(), a = m == null ? void 0 : m[e];
|
|
226
|
+
return (a == null ? void 0 : a.label) || t;
|
|
227
|
+
}, se = (t) => {
|
|
228
|
+
const e = t.toUpperCase(), a = m == null ? void 0 : m[e];
|
|
229
|
+
return (a == null ? void 0 : a.tag) || "info";
|
|
230
|
+
}, re = async (t) => {
|
|
231
|
+
var a;
|
|
232
|
+
const e = await Be(t);
|
|
233
|
+
return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
|
|
234
|
+
}, le = async (t) => {
|
|
235
|
+
const e = {
|
|
236
|
+
platId: c.value,
|
|
237
|
+
includeHidden: !0,
|
|
238
|
+
roleIds: t
|
|
239
|
+
};
|
|
240
|
+
r.setImportLoading(!0);
|
|
241
|
+
const a = await re(e).finally(() => {
|
|
242
|
+
r.setImportLoading(!1);
|
|
243
|
+
});
|
|
244
|
+
u.value = a;
|
|
245
|
+
}, ce = (t = "") => {
|
|
246
|
+
const e = t.toUpperCase(), a = d == null ? void 0 : d[e];
|
|
247
|
+
return (a == null ? void 0 : a.label) || t;
|
|
248
|
+
}, ie = (t = "") => {
|
|
249
|
+
const e = t.toUpperCase(), a = d == null ? void 0 : d[e];
|
|
250
|
+
return (a == null ? void 0 : a.tag) || "info";
|
|
251
|
+
}, R = (t) => t === d.EDITABLE.value, ue = (t, e) => {
|
|
252
|
+
const { status: a } = t || {}, { tableOperate: n } = e || {};
|
|
253
|
+
return !!(R(a) || n && Oe.includes(n));
|
|
254
|
+
}, pe = (t, e) => {
|
|
255
|
+
const { status: a } = t || {};
|
|
256
|
+
return R(a);
|
|
257
|
+
}, de = (t, e) => {
|
|
258
|
+
if (i.value)
|
|
259
|
+
return !0;
|
|
260
|
+
const { type: a } = e || {};
|
|
261
|
+
if (E.TABLE === a)
|
|
262
|
+
return ue(t, e);
|
|
263
|
+
if (E.FORM === a)
|
|
264
|
+
return pe(t);
|
|
265
|
+
const { status: n } = t || {};
|
|
266
|
+
return R(n);
|
|
267
|
+
}, me = async () => {
|
|
268
|
+
var n, o;
|
|
269
|
+
const e = {
|
|
270
|
+
pageName: "系统管理/角色管理",
|
|
271
|
+
platId: c.value,
|
|
272
|
+
userId: L.value
|
|
273
|
+
}, a = await Ae(e);
|
|
274
|
+
return (o = (n = a == null ? void 0 : a.data) == null ? void 0 : n.result) == null ? void 0 : o[0];
|
|
275
|
+
}, fe = async () => {
|
|
276
|
+
if (!i.value)
|
|
277
|
+
return g.value = await me(), g;
|
|
278
|
+
}, q = (t) => {
|
|
279
|
+
const e = B(t);
|
|
280
|
+
for (let a = 0; a < e.length; a++) {
|
|
281
|
+
const n = e == null ? void 0 : e[a], { id: o, prop: l, children: p } = n || {};
|
|
282
|
+
n.uniqueKey = `${o}_${l}`, p && (n.children = q(p));
|
|
283
|
+
}
|
|
284
|
+
return e;
|
|
285
|
+
}, ge = async (t) => {
|
|
286
|
+
var a;
|
|
287
|
+
const e = await Ne(t);
|
|
288
|
+
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
289
|
+
}, ye = async (t) => {
|
|
290
|
+
const e = new FormData(), a = S(), { create_user_id: n, update_user_id: o, create_user_name: l, update_user_name: p } = a;
|
|
291
|
+
return e.set("platId", c.value), e.set("file", t), e.set("tableType", F), e.set("create_user_id", n), e.set("update_user_id", o), e.set("create_user_name", l), e.set("update_user_name", p), await ge(e);
|
|
292
|
+
}, he = async (t) => await Fe(t), _e = async () => {
|
|
293
|
+
const t = {
|
|
294
|
+
platId: c.value,
|
|
295
|
+
tableType: F,
|
|
296
|
+
filter: I.value
|
|
297
|
+
}, e = await he(t);
|
|
298
|
+
return Ce(e), e;
|
|
299
|
+
}, ve = [["名称", "编码", "备注", "状态"]];
|
|
300
|
+
return {
|
|
301
|
+
compType: E,
|
|
302
|
+
isTableFeature: b,
|
|
303
|
+
queryInfo: I,
|
|
304
|
+
resetQuery: H,
|
|
305
|
+
pageInfo: y,
|
|
306
|
+
setPageNum: Q,
|
|
307
|
+
setPageSize: J,
|
|
308
|
+
initGetByPage: Z,
|
|
309
|
+
initRoleList: j,
|
|
310
|
+
initCreate: Y,
|
|
311
|
+
initUpdate: te,
|
|
312
|
+
initDelete: ne,
|
|
313
|
+
initRoleRequestData: T,
|
|
314
|
+
initPropertyAuthTree: le,
|
|
315
|
+
propertyAuthTree: u,
|
|
316
|
+
initRoleItem: S,
|
|
317
|
+
isSuperAdmin: i,
|
|
318
|
+
getStatusLabelByValue: oe,
|
|
319
|
+
getStatusTagByValue: se,
|
|
320
|
+
getFeatureStatusLabelByValue: ce,
|
|
321
|
+
getFeatureStatusTagByValue: ie,
|
|
322
|
+
hasEditable: de,
|
|
323
|
+
initRoleConfig: fe,
|
|
324
|
+
hasRoleEditAuth: O,
|
|
325
|
+
buildParamAuthTree: q,
|
|
326
|
+
initImport: ye,
|
|
327
|
+
initExport: _e,
|
|
328
|
+
exportTemplate: async () => {
|
|
329
|
+
const t = A.aoa_to_sheet(ve), e = A.book_new();
|
|
330
|
+
A.book_append_sheet(e, t, "角色"), Le(e, "角色模板.xlsx");
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
export {
|
|
335
|
+
Ne as a,
|
|
336
|
+
Fe as e,
|
|
337
|
+
d as f,
|
|
338
|
+
Ce as i,
|
|
339
|
+
Je as o,
|
|
340
|
+
m as s,
|
|
341
|
+
Ke as u
|
|
342
|
+
};
|
|
@@ -21,7 +21,7 @@ const u = ["xlink:href"], _ = {
|
|
|
21
21
|
m("use", { "xlink:href": n.value }, null, 8, u)
|
|
22
22
|
], 16));
|
|
23
23
|
}
|
|
24
|
-
}, f = /* @__PURE__ */ p(_, [["__scopeId", "data-v-
|
|
24
|
+
}, f = /* @__PURE__ */ p(_, [["__scopeId", "data-v-b0571675"]]);
|
|
25
25
|
export {
|
|
26
26
|
f as S
|
|
27
27
|
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
|
|
2
|
+
import { V as C } from "./index-DibaunZs.js";
|
|
3
|
+
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const b = () => {
|
|
5
|
+
const i = l("日志管理"), o = l(), a = l([
|
|
6
|
+
{
|
|
7
|
+
key: "header",
|
|
8
|
+
contents: [
|
|
9
|
+
{
|
|
10
|
+
prop: "name",
|
|
11
|
+
align: "center",
|
|
12
|
+
isRun: !1,
|
|
13
|
+
label: "日志名称",
|
|
14
|
+
isRoute: !1,
|
|
15
|
+
isTableColHidden: !1,
|
|
16
|
+
isFormColHidden: !1
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
prop: "time",
|
|
20
|
+
align: "center",
|
|
21
|
+
isRun: !1,
|
|
22
|
+
label: "生成时间",
|
|
23
|
+
isRoute: !1,
|
|
24
|
+
isTableColHidden: !1,
|
|
25
|
+
isFormColHidden: !1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
prop: "sort",
|
|
29
|
+
align: "operator",
|
|
30
|
+
isRun: !1,
|
|
31
|
+
label: "操作人",
|
|
32
|
+
isRoute: !1,
|
|
33
|
+
isTableColHidden: !1,
|
|
34
|
+
isFormColHidden: !1
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
prop: "remark",
|
|
38
|
+
align: "center",
|
|
39
|
+
isRun: !1,
|
|
40
|
+
label: "备注",
|
|
41
|
+
isRoute: !1,
|
|
42
|
+
isTableColHidden: !1,
|
|
43
|
+
isFormColHidden: !1
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "操作",
|
|
47
|
+
isMainKey: !0
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: "extraButton",
|
|
53
|
+
contents: [
|
|
54
|
+
// { label: '新增' },
|
|
55
|
+
// { label: '删除' }
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "rowButton",
|
|
60
|
+
contents: [{ label: "删除" }]
|
|
61
|
+
},
|
|
62
|
+
{ key: "tableFilter", contents: [] },
|
|
63
|
+
{
|
|
64
|
+
key: "tableContents",
|
|
65
|
+
contents: [[{ id: 764397741125751 }, "test", "test", "test", "test"]]
|
|
66
|
+
}
|
|
67
|
+
]);
|
|
68
|
+
return {
|
|
69
|
+
compName: i,
|
|
70
|
+
changedRow: o,
|
|
71
|
+
tableInfo: a,
|
|
72
|
+
handleItemDataChange: (s) => {
|
|
73
|
+
},
|
|
74
|
+
clickRowButton: async (s, d) => {
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}, h = { class: "log-management" }, k = { class: "body" }, R = /* @__PURE__ */ m({
|
|
78
|
+
__name: "index",
|
|
79
|
+
setup(i) {
|
|
80
|
+
const {
|
|
81
|
+
compName: o,
|
|
82
|
+
changedRow: a,
|
|
83
|
+
tableInfo: r,
|
|
84
|
+
handleItemDataChange: c,
|
|
85
|
+
clickRowButton: s
|
|
86
|
+
} = b();
|
|
87
|
+
return (d, n) => (p(), f("div", h, [
|
|
88
|
+
n[0] || (n[0] = e("div", { class: "header" }, null, -1)),
|
|
89
|
+
e("div", k, [
|
|
90
|
+
u(C, {
|
|
91
|
+
compName: t(o),
|
|
92
|
+
itemData: t(r),
|
|
93
|
+
changedContent: t(a),
|
|
94
|
+
onChange: t(c),
|
|
95
|
+
onOnButtonClick: t(s)
|
|
96
|
+
}, null, 8, ["compName", "itemData", "changedContent", "onChange", "onOnButtonClick"])
|
|
97
|
+
]),
|
|
98
|
+
n[1] || (n[1] = e("div", { class: "footer" }, [
|
|
99
|
+
e("div", { class: "footer-left" }),
|
|
100
|
+
e("div", { class: "footer-right" })
|
|
101
|
+
], -1))
|
|
102
|
+
]));
|
|
103
|
+
}
|
|
104
|
+
}), H = /* @__PURE__ */ g(R, [["__scopeId", "data-v-5bfd5576"]]);
|
|
105
|
+
export {
|
|
106
|
+
H as default
|
|
107
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ref as _, computed as A } from "vue";
|
|
2
|
+
import { a as I, g as M } from "./index-CJySKIdc.js";
|
|
3
|
+
import { E as N } from "./index-CDuL9GwS.js";
|
|
4
|
+
import { E as s } from "./request-DolpfyNJ.js";
|
|
5
|
+
const K = _([]), T = A(() => [
|
|
6
|
+
{
|
|
7
|
+
key: "extraButton",
|
|
8
|
+
contents: [
|
|
9
|
+
{
|
|
10
|
+
label: "清空",
|
|
11
|
+
background: "#f56c6c",
|
|
12
|
+
color: "#ffffff"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: "rowButton",
|
|
18
|
+
contents: []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "header",
|
|
22
|
+
contents: [
|
|
23
|
+
{
|
|
24
|
+
label: "账号",
|
|
25
|
+
prop: "account",
|
|
26
|
+
filterable: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "姓名",
|
|
30
|
+
prop: "userName",
|
|
31
|
+
filterable: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "时间",
|
|
35
|
+
prop: "timeStamp",
|
|
36
|
+
sortable: !0
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "tableContents",
|
|
42
|
+
contents: K.value
|
|
43
|
+
}
|
|
44
|
+
]), j = (l, n, r) => {
|
|
45
|
+
l === "清空" && N.confirm("是否确认清空所有日志", "", {
|
|
46
|
+
confirmButtonText: "确认",
|
|
47
|
+
cancelButtonText: "取消",
|
|
48
|
+
type: "warning"
|
|
49
|
+
}).then(async () => {
|
|
50
|
+
var e, o;
|
|
51
|
+
try {
|
|
52
|
+
const a = await I({ ids: n });
|
|
53
|
+
((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 200 ? (s.success("清空日志成功"), r(!0)) : (s.error(((o = a == null ? void 0 : a.data) == null ? void 0 : o.message) ?? "清空请求响应失败"), r(!1));
|
|
54
|
+
} catch {
|
|
55
|
+
s.error("清空操作处理失败"), r(!1);
|
|
56
|
+
}
|
|
57
|
+
}).catch(() => {
|
|
58
|
+
r(!1);
|
|
59
|
+
});
|
|
60
|
+
}, O = async (l = "login") => {
|
|
61
|
+
var n, r, e;
|
|
62
|
+
try {
|
|
63
|
+
const o = await M({
|
|
64
|
+
key: {
|
|
65
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
66
|
+
pageKey: "/log",
|
|
67
|
+
type: "system",
|
|
68
|
+
logType: l
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
if (((n = o == null ? void 0 : o.data) == null ? void 0 : n.code) === 200)
|
|
72
|
+
return (e = (r = o == null ? void 0 : o.data) == null ? void 0 : r.result) == null ? void 0 : e.map((a) => {
|
|
73
|
+
var t, u, c, p, f, d, y, g, v, b, S, h, w, B, D, x, E, k;
|
|
74
|
+
return l === "login" ? {
|
|
75
|
+
...(u = (t = a == null ? void 0 : a.value) == null ? void 0 : t.detail) == null ? void 0 : u.data,
|
|
76
|
+
timeStamp: (c = a == null ? void 0 : a.value) == null ? void 0 : c.timeStamp,
|
|
77
|
+
id: a == null ? void 0 : a.id,
|
|
78
|
+
type: (f = (p = a == null ? void 0 : a.value) == null ? void 0 : p.detail) == null ? void 0 : f.type
|
|
79
|
+
} : {
|
|
80
|
+
timeStamp: (d = a == null ? void 0 : a.value) == null ? void 0 : d.timeStamp,
|
|
81
|
+
account: (y = a == null ? void 0 : a.value) == null ? void 0 : y.account,
|
|
82
|
+
userName: (g = a == null ? void 0 : a.value) == null ? void 0 : g.userName,
|
|
83
|
+
module: typeof ((v = a == null ? void 0 : a.value) == null ? void 0 : v.module) == "string" ? (S = (b = a == null ? void 0 : a.value) == null ? void 0 : b.module) != null && S.startsWith("/") ? (w = (h = a == null ? void 0 : a.value) == null ? void 0 : h.module) == null ? void 0 : w.substring(1) : (B = a == null ? void 0 : a.value) == null ? void 0 : B.module : (x = (D = a == null ? void 0 : a.value) == null ? void 0 : D.module) == null ? void 0 : x.pageKey,
|
|
84
|
+
id: a == null ? void 0 : a.id,
|
|
85
|
+
type: (k = (E = a == null ? void 0 : a.value) == null ? void 0 : E.detail) == null ? void 0 : k.type
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
s.error("获取数据响应失败");
|
|
89
|
+
} catch (o) {
|
|
90
|
+
throw new Error("获取数据失败" + o);
|
|
91
|
+
}
|
|
92
|
+
}, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93
|
+
__proto__: null,
|
|
94
|
+
clickButton: j,
|
|
95
|
+
getLogTableDataAsync: O,
|
|
96
|
+
pageData: T,
|
|
97
|
+
tableData: K
|
|
98
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
99
|
+
export {
|
|
100
|
+
W as S,
|
|
101
|
+
j as c,
|
|
102
|
+
O as g
|
|
103
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
+
import { V as m } from "./index-DibaunZs.js";
|
|
3
|
+
import { g as d, c as _ } from "./index-BaGFPX8W.js";
|
|
4
|
+
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const l = n([]), g = c(() => [
|
|
6
|
+
{
|
|
7
|
+
key: "extraButton",
|
|
8
|
+
contents: [
|
|
9
|
+
{
|
|
10
|
+
label: "清空",
|
|
11
|
+
background: "#f56c6c",
|
|
12
|
+
color: "#ffffff"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: "rowButton",
|
|
18
|
+
contents: []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "header",
|
|
22
|
+
contents: [
|
|
23
|
+
{
|
|
24
|
+
label: "模块名称",
|
|
25
|
+
prop: "module",
|
|
26
|
+
filterable: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "操作类型",
|
|
30
|
+
prop: "type",
|
|
31
|
+
filterable: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "账号",
|
|
35
|
+
prop: "account",
|
|
36
|
+
filterable: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "姓名",
|
|
40
|
+
prop: "userName",
|
|
41
|
+
filterable: !0
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "时间",
|
|
45
|
+
prop: "timeStamp",
|
|
46
|
+
sortable: !0
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "tableContents",
|
|
52
|
+
contents: l.value
|
|
53
|
+
}
|
|
54
|
+
]), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
55
|
+
__proto__: null,
|
|
56
|
+
pageData: g,
|
|
57
|
+
tableData: l
|
|
58
|
+
}, Symbol.toStringTag, { value: "Module" })), D = { class: "log-wrap" }, B = /* @__PURE__ */ s({
|
|
59
|
+
__name: "index",
|
|
60
|
+
setup(x) {
|
|
61
|
+
const e = p({ ...y });
|
|
62
|
+
i(async () => {
|
|
63
|
+
e.tableData = await d("operate");
|
|
64
|
+
});
|
|
65
|
+
const r = (o) => {
|
|
66
|
+
var t;
|
|
67
|
+
_(o, (t = e.tableData) == null ? void 0 : t.map((a) => a.id), (a) => {
|
|
68
|
+
a && (e.tableData = []);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
return (o, t) => (f(), u("div", D, [
|
|
72
|
+
b(m, {
|
|
73
|
+
itemData: e.pageData,
|
|
74
|
+
allowOperate: !1,
|
|
75
|
+
allowSelect: !1,
|
|
76
|
+
onOnButtonClick: r
|
|
77
|
+
}, null, 8, ["itemData"])
|
|
78
|
+
]));
|
|
79
|
+
}
|
|
80
|
+
}), O = /* @__PURE__ */ k(B, [["__scopeId", "data-v-3d3b471d"]]);
|
|
81
|
+
export {
|
|
82
|
+
O as default
|
|
83
|
+
};
|