@topdatasec/probe 1.0.3 → 1.0.5

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.
@@ -1,11 +1,12 @@
1
- import { defineComponent as H, useModel as ne, resolveComponent as p, openBlock as y, createElementBlock as x, Fragment as A, renderList as K, createVNode as e, withCtx as E, unref as M, createCommentVNode as O, ref as w, reactive as j, createTextVNode as q, createElementVNode as v, toDisplayString as C, mergeProps as X, createBlock as W } from "vue";
1
+ import { defineComponent as H, useModel as ne, resolveComponent as p, openBlock as f, createElementBlock as k, Fragment as B, renderList as K, createVNode as e, withCtx as $, unref as A, createCommentVNode as O, ref as x, reactive as G, createTextVNode as F, createElementVNode as _, toDisplayString as q, mergeProps as X, createBlock as j } from "vue";
2
2
  import { CircleClose as re, UploadFilled as se } from "@element-plus/icons-vue";
3
3
  import { TdsTable as ae, TdsForm as Y } from "topdatasec-ui";
4
+ import ue from "spark-md5";
4
5
  import { ElMessage as Q } from "element-plus";
5
- const ue = {
6
+ const ie = {
6
7
  key: 0,
7
8
  class: "absolute right--13px text-#f56c6c hover:cursor-pointer"
8
- }, ie = /* @__PURE__ */ H({
9
+ }, de = /* @__PURE__ */ H({
9
10
  __name: "IpPortList",
10
11
  props: {
11
12
  modelValue: { default: () => [{ ip: "", port: "" }] },
@@ -13,114 +14,114 @@ const ue = {
13
14
  },
14
15
  emits: ["update:modelValue"],
15
16
  setup(t) {
16
- const l = ne(t, "modelValue"), { $t: o } = window;
17
- function a() {
17
+ const l = ne(t, "modelValue"), { $t: n } = window;
18
+ function s() {
18
19
  l.value = [...l.value, { ip: "", port: "" }];
19
20
  }
20
- function c(m) {
21
- const r = [...l.value];
22
- r.splice(m, 1), l.value = r;
21
+ function d(v) {
22
+ const o = [...l.value];
23
+ o.splice(v, 1), l.value = o;
23
24
  }
24
- return (m, r) => {
25
- const _ = p("el-input"), T = p("el-form-item"), b = p("el-icon"), s = p("el-button");
26
- return y(), x("div", null, [
27
- (y(!0), x(A, null, K(l.value, (u, S) => (y(), x("div", {
28
- key: S,
25
+ return (v, o) => {
26
+ const y = p("el-input"), S = p("el-form-item"), h = p("el-icon"), a = p("el-button");
27
+ return f(), k("div", null, [
28
+ (f(!0), k(B, null, K(l.value, (u, E) => (f(), k("div", {
29
+ key: E,
29
30
  class: "flex form-m0 w-100% mb-5px"
30
31
  }, [
31
- e(T, { class: "w-70%" }, {
32
- default: E(() => [
33
- e(_, {
32
+ e(S, { class: "w-70%" }, {
33
+ default: $(() => [
34
+ e(y, {
34
35
  modelValue: u.ip,
35
- "onUpdate:modelValue": (L) => u.ip = L,
36
+ "onUpdate:modelValue": (C) => u.ip = C,
36
37
  class: "min-w-300px w-100%",
37
38
  placeholder: "IP"
38
39
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
39
40
  ]),
40
41
  _: 2
41
42
  }, 1024),
42
- e(T, { class: "ml-auto w-30%" }, {
43
- default: E(() => [
44
- e(_, {
43
+ e(S, { class: "ml-auto w-30%" }, {
44
+ default: $(() => [
45
+ e(y, {
45
46
  modelValue: u.port,
46
- "onUpdate:modelValue": (L) => u.port = L,
47
+ "onUpdate:modelValue": (C) => u.port = C,
47
48
  class: "ml-10",
48
- placeholder: M(o)("global.port")
49
+ placeholder: A(n)("global.port")
49
50
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
50
51
  ]),
51
52
  _: 2
52
53
  }, 1024),
53
- l.value.length > 1 ? (y(), x("div", ue, [
54
- e(b, {
55
- onClick: (L) => c(S)
54
+ l.value.length > 1 ? (f(), k("div", ie, [
55
+ e(h, {
56
+ onClick: (C) => d(E)
56
57
  }, {
57
- default: E(() => [
58
- e(M(re))
58
+ default: $(() => [
59
+ e(A(re))
59
60
  ]),
60
61
  _: 1
61
62
  }, 8, ["onClick"])
62
63
  ])) : O("", !0)
63
64
  ]))), 128)),
64
- e(s, {
65
+ e(a, {
65
66
  class: "w-100% mt-10px border-dashed!",
66
67
  icon: "Plus",
67
- onClick: a
68
+ onClick: s
68
69
  })
69
70
  ]);
70
71
  };
71
72
  }
72
73
  });
73
74
  const ee = (t, l) => {
74
- const o = t.__vccOpts || t;
75
- for (const [a, c] of l)
76
- o[a] = c;
77
- return o;
78
- }, V = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-16fc9c64"]]), I = 5 * 1024 * 1024;
79
- function de(t, l) {
80
- return new Promise((o, a) => {
81
- const c = new (void 0)(), m = new FileReader(), r = Math.ceil(t.size / I);
82
- let _ = 0;
83
- m.onload = (b) => {
84
- var s;
85
- if (c.append((s = b.target) == null ? void 0 : s.result), _++, l) {
86
- const u = Math.floor(_ / r * 100);
75
+ const n = t.__vccOpts || t;
76
+ for (const [s, d] of l)
77
+ n[s] = d;
78
+ return n;
79
+ }, N = /* @__PURE__ */ ee(de, [["__scopeId", "data-v-16fc9c64"]]), z = 5 * 1024 * 1024;
80
+ function pe(t, l) {
81
+ return new Promise((n, s) => {
82
+ const d = new ue.ArrayBuffer(), v = new FileReader(), o = Math.ceil(t.size / z);
83
+ let y = 0;
84
+ v.onload = (h) => {
85
+ var a;
86
+ if (d.append((a = h.target) == null ? void 0 : a.result), y++, l) {
87
+ const u = Math.floor(y / o * 100);
87
88
  l(u);
88
89
  }
89
- if (_ < r)
90
- T();
90
+ if (y < o)
91
+ S();
91
92
  else {
92
- const u = c.end();
93
- o(u);
93
+ const u = d.end();
94
+ n(u);
94
95
  }
95
- }, m.onerror = () => {
96
- a(new Error("MD5计算失败"));
96
+ }, v.onerror = () => {
97
+ s(new Error("MD5计算失败"));
97
98
  };
98
- function T() {
99
- const b = _ * I, s = Math.min(b + I, t.size);
100
- m.readAsArrayBuffer(t.slice(b, s));
99
+ function S() {
100
+ const h = y * z, a = Math.min(h + z, t.size);
101
+ v.readAsArrayBuffer(t.slice(h, a));
101
102
  }
102
- T();
103
+ S();
103
104
  });
104
105
  }
105
- async function pe(t, l, o, a, c, m = "/api/upload/chunk") {
106
- const r = l * I, _ = Math.min(r + I, t.size), T = t.slice(r, _), b = _ - r, s = new FormData();
107
- s.append("file", T, t.name), s.append("chunkIndex", String(l + 1)), s.append("totalChunkNum", String(o)), s.append("fileMd5", a), s.append("tds_token", c), s.append("fileName", t.name), s.append("fileSize", String(t.size)), s.append("fileExt", t.name.substring(t.name.lastIndexOf(".") + 1)), s.append("chunkSize", String(I)), s.append("currentChunkSize", String(b));
106
+ async function ce(t, l, n, s, d, v = "/api/upload/chunk") {
107
+ const o = l * z, y = Math.min(o + z, t.size), S = t.slice(o, y), h = y - o, a = new FormData();
108
+ a.append("file", S, t.name), a.append("chunkIndex", String(l + 1)), a.append("totalChunkNum", String(n)), a.append("fileMd5", s), a.append("tds_token", d), a.append("fileName", t.name), a.append("fileSize", String(t.size)), a.append("fileExt", t.name.substring(t.name.lastIndexOf(".") + 1)), a.append("chunkSize", String(z)), a.append("currentChunkSize", String(h));
108
109
  try {
109
- const u = await fetch(m, {
110
+ const u = await fetch(v, {
110
111
  method: "POST",
111
- body: s
112
+ body: a
112
113
  });
113
114
  if (console.log(u, "upload response"), !u.ok)
114
115
  throw new Error(`分片 ${l + 1} 上传失败,HTTP状态码: ${u.status}`);
115
- const S = await u.json();
116
- if (console.log(S, "upload result"), S.recode !== 0)
117
- throw new Error(`上传失败: ${S.remsg || "未知错误"}`);
116
+ const E = await u.json();
117
+ if (console.log(E, "upload result"), E.recode !== 0)
118
+ throw new Error(`上传失败: ${E.remsg || "未知错误"}`);
118
119
  return !0;
119
120
  } catch (u) {
120
121
  throw console.error(`上传分片 ${l + 1} 时出错:`, u), u;
121
122
  }
122
123
  }
123
- async function ce(t, l = "/api/upload/merge") {
124
+ async function me(t, l = "/api/upload/merge") {
124
125
  try {
125
126
  if (!(await fetch(l, {
126
127
  method: "POST",
@@ -131,167 +132,167 @@ async function ce(t, l = "/api/upload/merge") {
131
132
  })).ok)
132
133
  throw new Error("文件合并失败");
133
134
  return !0;
134
- } catch (o) {
135
- return console.error("合并分片时出错:", o), !1;
135
+ } catch (n) {
136
+ return console.error("合并分片时出错:", n), !1;
136
137
  }
137
138
  }
138
- async function me(t) {
139
- const { token: l, file: o, fileDesc: a = "", uploadUrl: c = "/api/upload/chunk", mergeUrl: m = "/api/upload/merge", onProgress: r, onSuccess: _, onError: T } = t;
139
+ async function _e(t) {
140
+ const { token: l, file: n, fileDesc: s = "", uploadUrl: d = "/api/upload/chunk", mergeUrl: v = "/api/upload/merge", onProgress: o, onSuccess: y, onError: S } = t;
140
141
  try {
141
- r == null || r({
142
+ o == null || o({
142
143
  progress: 0,
143
144
  statusText: "正在计算文件MD5...",
144
145
  status: "preparing"
145
146
  });
146
- const s = await de(o, (g) => {
147
- r == null || r({
148
- progress: Math.floor(g * 0.1),
147
+ const a = await pe(n, (U) => {
148
+ o == null || o({
149
+ progress: Math.floor(U * 0.1),
149
150
  // MD5计算占10%进度
150
- statusText: `正在计算文件MD5... ${g}%`,
151
+ statusText: `正在计算文件MD5... ${U}%`,
151
152
  status: "preparing"
152
153
  });
153
154
  });
154
- r == null || r({
155
+ o == null || o({
155
156
  progress: 10,
156
157
  statusText: "MD5计算完成",
157
158
  status: "preparing",
158
- fileMd5: s
159
+ fileMd5: a
159
160
  });
160
- const u = Math.ceil(o.size / I);
161
- r == null || r({
161
+ const u = Math.ceil(n.size / z);
162
+ o == null || o({
162
163
  progress: 10,
163
164
  statusText: `开始上传 (共${u}个分片)`,
164
165
  status: "uploading",
165
- fileMd5: s
166
+ fileMd5: a
166
167
  });
167
- for (let g = 0; g < u; g++) {
168
- const P = Math.floor(g / u * 80);
169
- r == null || r({
170
- progress: 10 + P,
171
- statusText: `正在上传分片 ${g + 1}/${u}`,
168
+ for (let U = 0; U < u; U++) {
169
+ const L = Math.floor(U / u * 80);
170
+ o == null || o({
171
+ progress: 10 + L,
172
+ statusText: `正在上传分片 ${U + 1}/${u}`,
172
173
  status: "uploading",
173
- fileMd5: s
174
- }), await pe(o, g, u, s, l, c);
174
+ fileMd5: a
175
+ }), await ce(n, U, u, a, l, d);
175
176
  }
176
- r == null || r({
177
+ o == null || o({
177
178
  progress: 90,
178
179
  statusText: "正在合并文件...",
179
180
  status: "merging",
180
- fileMd5: s
181
+ fileMd5: a
181
182
  });
182
- const S = o.name.substring(o.name.lastIndexOf(".") + 1), L = {
183
- fileDesc: a,
184
- fileExt: S,
185
- fileMd5: s,
186
- fileName: o.name,
187
- fileSize: String(o.size),
183
+ const E = n.name.substring(n.name.lastIndexOf(".") + 1), C = {
184
+ fileDesc: s,
185
+ fileExt: E,
186
+ fileMd5: a,
187
+ fileName: n.name,
188
+ fileSize: String(n.size),
188
189
  tds_token: l,
189
190
  totalChunkNum: String(u)
190
191
  };
191
- if (!await ce(L, m))
192
+ if (!await me(C, v))
192
193
  throw new Error("文件合并失败");
193
- r == null || r({
194
+ o == null || o({
194
195
  progress: 100,
195
196
  statusText: "上传成功",
196
197
  status: "success",
197
- fileMd5: s
198
- }), Q.success(`${o.name} 上传成功`), _ == null || _(s);
199
- } catch (b) {
200
- r == null || r({
198
+ fileMd5: a
199
+ }), Q.success(`${n.name} 上传成功`), y == null || y(a);
200
+ } catch (h) {
201
+ o == null || o({
201
202
  progress: 0,
202
- statusText: b.message || "上传失败",
203
+ statusText: h.message || "上传失败",
203
204
  status: "error"
204
- }), Q.error(`${o.name} 上传失败: ${b.message}`), T == null || T(b);
205
+ }), Q.error(`${n.name} 上传失败: ${h.message}`), S == null || S(h);
205
206
  }
206
207
  }
207
- function _e(t) {
208
+ function fe(t) {
208
209
  if (t === 0)
209
210
  return "0 B";
210
- const l = 1024, o = ["B", "KB", "MB", "GB", "TB"], a = Math.floor(Math.log(t) / Math.log(l));
211
- return Math.round(t / Math.pow(l, a) * 100) / 100 + " " + o[a];
211
+ const l = 1024, n = ["B", "KB", "MB", "GB", "TB"], s = Math.floor(Math.log(t) / Math.log(l));
212
+ return Math.round(t / Math.pow(l, s) * 100) / 100 + " " + n[s];
212
213
  }
213
- const U = {
214
+ const M = {
214
215
  get deployURL() {
215
216
  return window.$probeURL || "";
216
217
  }
217
218
  }, te = (t = {}) => window.$http.request({
218
- url: `${U.deployURL}/service_deploy/deployment/deploy`,
219
+ url: `${M.deployURL}/service_deploy/deployment/deploy`,
219
220
  method: "post",
220
221
  data: t
221
- }), fe = (t = {}) => window.$http.request({
222
- url: `${U.deployURL}/service_deploy/deployment/servers/add`,
222
+ }), ve = (t = {}) => window.$http.request({
223
+ url: `${M.deployURL}/service_deploy/deployment/servers/add`,
223
224
  method: "post",
224
225
  data: t
225
226
  }), le = (t = {}) => window.$http.request({
226
- url: `${U.deployURL}/service_deploy/deployment/packages/get`,
227
+ url: `${M.deployURL}/service_deploy/deployment/packages/get`,
227
228
  method: "post",
228
229
  data: t,
229
230
  isError: !1
230
231
  }), oe = (t = {}) => window.$http.request({
231
- url: `${U.deployURL}/service_deploy/deployment/servers/get`,
232
+ url: `${M.deployURL}/service_deploy/deployment/servers/get`,
232
233
  method: "post",
233
234
  data: t,
234
235
  isError: !1
235
- }), ve = (t = {}) => window.$http.request({
236
- url: `${U.deployURL}/service_deploy/deployment/servers/del`,
237
- method: "post",
238
- data: t
239
236
  }), ye = (t = {}) => window.$http.request({
240
- url: `${U.deployURL}/service_deploy/deployment/packages/del`,
237
+ url: `${M.deployURL}/service_deploy/deployment/servers/del`,
241
238
  method: "post",
242
239
  data: t
243
240
  }), ge = (t = {}) => window.$http.request({
244
- url: `${U.deployURL}/service_deploy/deployment/servers/get_arch`,
241
+ url: `${M.deployURL}/service_deploy/deployment/packages/del`,
245
242
  method: "post",
246
- data: t,
247
- isError: !1
243
+ data: t
248
244
  }), he = (t = {}) => window.$http.request({
249
- url: `${U.deployURL}/service_deploy/deployment/deployment_history/get`,
245
+ url: `${M.deployURL}/service_deploy/deployment/servers/get_arch`,
250
246
  method: "post",
251
247
  data: t,
252
248
  isError: !1
253
249
  }), be = (t = {}) => window.$http.request({
254
- url: `${U.deployURL}/service_deploy/deployment/servers/test_ssh`,
250
+ url: `${M.deployURL}/service_deploy/deployment/deployment_history/get`,
255
251
  method: "post",
256
- data: t
252
+ data: t,
253
+ isError: !1
257
254
  }), we = (t = {}) => window.$http.request({
258
- url: `${U.deployURL}/service_deploy/deployment/servers/check_env`,
255
+ url: `${M.deployURL}/service_deploy/deployment/servers/test_ssh`,
259
256
  method: "post",
260
257
  data: t
261
258
  }), xe = (t = {}) => window.$http.request({
262
- url: `${U.deployURL}/service_deploy/deployment/servers/install_env`,
259
+ url: `${M.deployURL}/service_deploy/deployment/servers/check_env`,
263
260
  method: "post",
264
261
  data: t
265
- }), ke = {
262
+ }), ke = (t = {}) => window.$http.request({
263
+ url: `${M.deployURL}/service_deploy/deployment/servers/install_env`,
264
+ method: "post",
265
+ data: t
266
+ }), Te = {
266
267
  class: "h-100%"
267
- }, Te = {
268
+ }, $e = {
268
269
  key: 0,
269
270
  class: "upload-progress-list"
270
- }, $e = {
271
- class: "file-info"
272
271
  }, Ee = {
273
- class: "file-name"
272
+ class: "file-info"
274
273
  }, Se = {
275
- class: "file-size"
274
+ class: "file-name"
276
275
  }, Ue = {
277
- class: "progress-text"
276
+ class: "file-size"
278
277
  }, Le = {
278
+ class: "progress-text"
279
+ }, Me = {
279
280
  class: "table-box h-[calc(100%-220px)]",
280
281
  style: {
281
- height: "calc(100% -220px)"
282
+ height: "calc(100% - 220px)"
282
283
  }
283
284
  }, Ce = {
284
285
  key: 0
285
- }, Me = {
286
- class: "flex flex-wrap gap-12px p-12px"
287
286
  }, qe = {
288
- class: "font-bold text-14px mb-8px text-[var(--el-text-color-primary)]"
287
+ class: "flex flex-wrap gap-12px p-12px"
289
288
  }, Ae = {
290
- class: "text-12px text-[var(--el-text-color-regular)] space-y-4px"
289
+ class: "font-bold text-14px mb-8px text-[var(--el-text-color-primary)]"
291
290
  }, Fe = {
291
+ class: "text-12px text-[var(--el-text-color-regular)] space-y-4px"
292
+ }, Be = {
292
293
  key: 1,
293
294
  class: "font-bold text-center text-gray-500 py-20"
294
- }, Be = /* @__PURE__ */ H({
295
+ }, De = /* @__PURE__ */ H({
295
296
  __name: "index",
296
297
  props: {
297
298
  token: {
@@ -300,44 +301,44 @@ const U = {
300
301
  }
301
302
  },
302
303
  setup(t) {
303
- const l = w(), o = w(), a = w("快速部署"), c = w({}), {
304
- $t: m,
305
- $messageBox: r
306
- } = window;
307
- function _(i) {
308
- c.value = {
304
+ const l = x(), n = x(), s = x("快速部署"), d = x({}), {
305
+ $t: v,
306
+ $messageBox: o
307
+ } = window, y = t;
308
+ function S(i) {
309
+ d.value = {
309
310
  id: i.id
310
- }, o.value.open();
311
+ }, n.value.open();
311
312
  }
312
- const T = w([{
313
+ const h = x([{
313
314
  ip: "",
314
315
  port: ""
315
- }]), b = w([{
316
+ }]), a = x([{
316
317
  ip: "",
317
318
  port: ""
318
- }]), s = w([{
319
+ }]), u = x([{
319
320
  ip: "",
320
321
  port: ""
321
- }]), u = w([{
322
+ }]), E = x([{
322
323
  ip: "",
323
324
  port: ""
324
325
  }]);
325
- async function S(i) {
326
- const k = (n, d) => {
327
- const f = Math.max(n.length, d.length);
326
+ async function C(i) {
327
+ const b = (w, c) => {
328
+ const m = Math.max(w.length, c.length);
328
329
  return Array.from({
329
- length: f
330
- }, (h, $) => {
331
- var F, N, z, R;
330
+ length: m
331
+ }, (g, T) => {
332
+ var D, V, P, R;
332
333
  return {
333
- src_ip: ((F = n[$]) == null ? void 0 : F.ip) || "",
334
- src_port: Number((N = n[$]) == null ? void 0 : N.port) || 0,
335
- dst_ip: ((z = d[$]) == null ? void 0 : z.ip) || "",
336
- dst_port: Number((R = d[$]) == null ? void 0 : R.port) || 0
334
+ src_ip: ((D = w[T]) == null ? void 0 : D.ip) || "",
335
+ src_port: Number((V = w[T]) == null ? void 0 : V.port) || 0,
336
+ dst_ip: ((P = c[T]) == null ? void 0 : P.ip) || "",
337
+ dst_port: Number((R = c[T]) == null ? void 0 : R.port) || 0
337
338
  };
338
339
  });
339
- }, B = {
340
- packages_id: [c.value.id],
340
+ }, r = {
341
+ packages_id: [d.value.id],
341
342
  server_id: i.server_id,
342
343
  service_type: window.$prodType,
343
344
  deploy_params: {
@@ -346,22 +347,22 @@ const U = {
346
347
  interface: i.interface || "",
347
348
  engine_ip: i.engine_ip || "",
348
349
  engine_port: i.engine_port || "",
349
- filterWhitelist: k(T.value, b.value),
350
- filterBlacklist: k(s.value, u.value)
350
+ filterWhitelist: b(h.value, a.value),
351
+ filterBlacklist: b(u.value, E.value)
351
352
  }
352
353
  };
353
354
  await te({
354
- data: B
355
- }), l.value.getTableList(), o.value.close();
355
+ data: r
356
+ }), l.value.getTableList(), n.value.close();
356
357
  }
357
- async function L(i) {
358
- r(i, "file_name", m("button.delete"), "error").then(async () => {
359
- await ye({
358
+ async function I(i) {
359
+ o(i, "file_name", v("button.delete"), "error").then(async () => {
360
+ await ge({
360
361
  data: [i.id]
361
362
  }), l.value.getTableList();
362
363
  });
363
364
  }
364
- const D = j([
365
+ const U = G([
365
366
  // { type: 'selection', align: 'center', field: 'id', hide: true },
366
367
  {
367
368
  field: "server_id",
@@ -403,8 +404,8 @@ const U = {
403
404
  field: "deployment_server",
404
405
  name: "已部署服务器数",
405
406
  render: (i) => {
406
- var k;
407
- return ((k = i.row.deployment_server) == null ? void 0 : k.length) || 0;
407
+ var b;
408
+ return ((b = i.row.deployment_server) == null ? void 0 : b.length) || 0;
408
409
  }
409
410
  },
410
411
  {
@@ -487,17 +488,21 @@ const U = {
487
488
  show: {
488
489
  type: "input",
489
490
  tooltip: "白名单配置后,仅采集白名单内相关流量,如不填写,则采集所有流量",
490
- render: () => e(A, null, [e("p", {
491
+ render: () => e(B, null, [e("div", {
492
+ style: "width: 100%"
493
+ }, [e("p", {
491
494
  class: "color-[var(--el-text-color-regular)]"
492
- }, [q("源ip端口:")]), e(V, {
493
- modelValue: T.value,
494
- "onUpdate:modelValue": (i) => T.value = i
495
- }, null), e("p", {
495
+ }, [F("源ip端口:")]), e(N, {
496
+ modelValue: h.value,
497
+ "onUpdate:modelValue": (i) => h.value = i
498
+ }, null)]), e("div", {
499
+ style: "width: 100%"
500
+ }, [e("p", {
496
501
  class: "color-[var(--el-text-color-regular)]"
497
- }, [q("目的ip端口:")]), e(V, {
498
- modelValue: b.value,
499
- "onUpdate:modelValue": (i) => b.value = i
500
- }, null)])
502
+ }, [F("目的ip端口:")]), e(N, {
503
+ modelValue: a.value,
504
+ "onUpdate:modelValue": (i) => a.value = i
505
+ }, null)])])
501
506
  },
502
507
  hide: !0
503
508
  },
@@ -507,16 +512,16 @@ const U = {
507
512
  show: {
508
513
  type: "input",
509
514
  tooltip: "黑名单配置后,将不再采集黑名单内相关流量",
510
- render: () => e(A, null, [e("p", {
515
+ render: () => e(B, null, [e("p", {
511
516
  class: "color-[var(--el-text-color-regular)]"
512
- }, [q("源ip端口:")]), e(V, {
513
- modelValue: s.value,
514
- "onUpdate:modelValue": (i) => s.value = i
515
- }, null), e("p", {
516
- class: "color-[var(--el-text-color-regular)]"
517
- }, [q("目的ip端口:")]), e(V, {
517
+ }, [F("源ip端口:")]), e(N, {
518
518
  modelValue: u.value,
519
519
  "onUpdate:modelValue": (i) => u.value = i
520
+ }, null), e("p", {
521
+ class: "color-[var(--el-text-color-regular)]"
522
+ }, [F("目的ip端口:")]), e(N, {
523
+ modelValue: E.value,
524
+ "onUpdate:modelValue": (i) => E.value = i
520
525
  }, null)])
521
526
  },
522
527
  hide: !0
@@ -530,7 +535,7 @@ const U = {
530
535
  link: !0,
531
536
  type: "primary",
532
537
  class: "custom-btn",
533
- onClick: () => _(i.row)
538
+ onClick: () => S(i.row)
534
539
  }, {
535
540
  icon: () => e(p("tds-svg-icon"), {
536
541
  name: "deployed",
@@ -540,107 +545,108 @@ const U = {
540
545
  link: !0,
541
546
  type: "danger",
542
547
  icon: "Delete",
543
- title: m("button.delete"),
544
- onClick: () => L([i.row])
548
+ title: v("button.delete"),
549
+ onClick: () => I([i.row])
545
550
  }, null)])
546
551
  }
547
- ]), g = w([]);
548
- function P(i) {
549
- const k = i.raw;
550
- if (!k)
552
+ ]), L = x([]);
553
+ function W(i) {
554
+ const b = i.raw;
555
+ if (!b)
551
556
  return;
552
- const B = {
553
- fileName: k.name,
554
- fileSize: k.size,
557
+ const r = {
558
+ fileName: b.name,
559
+ fileSize: b.size,
555
560
  progress: 0,
556
561
  progressStatus: "",
557
562
  statusText: "准备上传..."
558
563
  };
559
- g.value.push(B);
560
- const n = g.value.length - 1;
561
- me({
562
- file: k,
564
+ L.value.push(r);
565
+ const w = L.value.length - 1;
566
+ _e({
567
+ file: b,
563
568
  fileDesc: "探针安装包",
564
569
  // 替换为你实际的接口地址
565
- uploadUrl: U.deployURL + "/service_deploy/deployment/packages/upload",
566
- mergeUrl: U.deployURL + "/service_deploy/deployment/packages/upload_merge",
570
+ uploadUrl: M.deployURL + "/service_deploy/deployment/packages/upload",
571
+ mergeUrl: M.deployURL + "/service_deploy/deployment/packages/upload_merge",
572
+ token: y.token,
567
573
  // 进度回调
568
- onProgress: (d) => {
569
- const f = g.value[n];
570
- f && (f.progress = d.progress, f.statusText = d.statusText, d.fileMd5 && (f.fileMd5 = d.fileMd5), d.status === "error" ? f.progressStatus = "exception" : d.status === "success" ? f.progressStatus = "success" : f.progressStatus = "");
574
+ onProgress: (c) => {
575
+ const m = L.value[w];
576
+ m && (m.progress = c.progress, m.statusText = c.statusText, c.fileMd5 && (m.fileMd5 = c.fileMd5), c.status === "error" ? m.progressStatus = "exception" : c.status === "success" ? m.progressStatus = "success" : m.progressStatus = "");
571
577
  },
572
578
  // 成功回调
573
579
  onSuccess: () => {
574
- var f;
575
- const d = g.value[n];
576
- d && (d.progress = 100, d.progressStatus = "success", d.statusText = "上传成功"), (f = l.value) == null || f.getTableList(), setTimeout(() => {
577
- const h = g.value.findIndex(($) => $.fileName === k.name);
578
- h !== -1 && g.value.splice(h, 1);
580
+ var m;
581
+ const c = L.value[w];
582
+ c && (c.progress = 100, c.progressStatus = "success", c.statusText = "上传成功"), (m = l.value) == null || m.getTableList(), setTimeout(() => {
583
+ const g = L.value.findIndex((T) => T.fileName === b.name);
584
+ g !== -1 && L.value.splice(g, 1);
579
585
  }, 3e3);
580
586
  },
581
587
  // 失败回调
582
- onError: (d) => {
583
- console.error("文件上传失败:", d);
584
- const f = g.value[n];
585
- f && (f.progressStatus = "exception", f.statusText = d.message || "上传失败");
588
+ onError: (c) => {
589
+ console.error("文件上传失败:", c);
590
+ const m = L.value[w];
591
+ m && (m.progressStatus = "exception", m.statusText = c.message || "上传失败");
586
592
  }
587
593
  });
588
594
  }
589
- return (i, k) => {
590
- const B = p("el-icon"), n = p("el-upload"), d = p("el-progress"), f = p("el-table-column");
591
- return y(), x("div", ke, [e(n, {
595
+ return (i, b) => {
596
+ const r = p("el-icon"), w = p("el-upload"), c = p("el-progress"), m = p("el-table-column");
597
+ return f(), k("div", Te, [e(w, {
592
598
  class: "upload-demo mt-10px",
593
599
  drag: "",
594
600
  action: "",
595
601
  "auto-upload": !1,
596
602
  accept: ".tar.gz,.tgz",
597
- "on-change": P,
603
+ "on-change": W,
598
604
  "show-file-list": !1,
599
605
  multiple: ""
600
606
  }, {
601
- default: E(() => [e(B, {
607
+ default: $(() => [e(r, {
602
608
  class: "el-icon--upload"
603
609
  }, {
604
- default: E(() => [e(M(se))]),
610
+ default: $(() => [e(A(se))]),
605
611
  _: 1
606
- }), k[0] || (k[0] = v("div", {
612
+ }), b[0] || (b[0] = _("div", {
607
613
  class: "el-upload__text"
608
- }, [q(" 点击或拖拽文件到此处上传   "), v("br"), v("em", null, "支持的格式: tar.gz, tgz")], -1))]),
614
+ }, [F(" 点击或拖拽文件到此处上传  "), _("br"), _("em", null, "支持的格式: tar.gz, tgz")], -1))]),
609
615
  _: 1
610
- }), g.value.length > 0 ? (y(), x("div", Te, [(y(!0), x(A, null, K(g.value, (h) => (y(), x("div", {
611
- key: h.fileName,
616
+ }), L.value.length > 0 ? (f(), k("div", $e, [(f(!0), k(B, null, K(L.value, (g) => (f(), k("div", {
617
+ key: g.fileName,
612
618
  class: "upload-progress-item"
613
- }, [v("div", $e, [v("span", Ee, C(h.fileName), 1), v("span", Se, C(M(_e)(h.fileSize)), 1)]), e(d, {
614
- percentage: h.progress,
615
- status: h.progressStatus
616
- }, null, 8, ["percentage", "status"]), v("div", Ue, C(h.statusText), 1)]))), 128))])) : O("", !0), v("div", Le, [e(M(ae), {
619
+ }, [_("div", Ee, [_("span", Se, q(g.fileName), 1), _("span", Ue, q(A(fe)(g.fileSize)), 1)]), e(c, {
620
+ percentage: g.progress,
621
+ status: g.progressStatus
622
+ }, null, 8, ["percentage", "status"]), _("div", Le, q(g.statusText), 1)]))), 128))])) : O("", !0), _("div", Me, [e(A(ae), {
617
623
  ref_key: "refTdsTable",
618
624
  ref: l,
619
- columns: D,
620
- "request-api": M(le),
625
+ columns: U,
626
+ "request-api": A(le),
621
627
  options: i.$tableOptions()
622
628
  }, {
623
- default: E(() => [e(f, {
629
+ default: $(() => [e(m, {
624
630
  type: "expand"
625
631
  }, {
626
- default: E((h) => [h.row.deployment_server && h.row.deployment_server.length > 0 ? (y(), x("div", Ce, [k[1] || (k[1] = v("div", {
632
+ default: $((g) => [g.row.deployment_server && g.row.deployment_server.length > 0 ? (f(), k("div", Ce, [b[1] || (b[1] = _("div", {
627
633
  class: "font-bold text-14px mt-12px"
628
- }, "已部署的服务器", -1)), v("div", Me, [(y(!0), x(A, null, K(h.row.deployment_server, ($) => (y(), x("div", {
629
- key: $.id,
634
+ }, "已部署的服务器", -1)), _("div", qe, [(f(!0), k(B, null, K(g.row.deployment_server, (T) => (f(), k("div", {
635
+ key: T.id,
630
636
  class: "w-30% px-20px py-10px rounded-8px bg-[var(--el-fill-color-light)] border border-solid border-[var(--el-border-color-lighter)] hover:shadow-md transition-shadow"
631
- }, [v("div", qe, C($.server_name), 1), v("div", Ae, [v("p", null, "IP: " + C($.ip_address), 1), v("p", null, "部署时间: " + C($.deployment_time), 1)])]))), 128))])])) : (y(), x("div", Fe, "暂无部署服务器记录"))]),
637
+ }, [_("div", Ae, q(T.server_name), 1), _("div", Fe, [_("p", null, "IP: " + q(T.ip_address), 1), _("p", null, "部署时间: " + q(T.deployment_time), 1)])]))), 128))])])) : (f(), k("div", Be, "暂无部署服务器记录"))]),
632
638
  _: 1
633
639
  })]),
634
640
  _: 1
635
- }, 8, ["columns", "request-api", "options"])]), e(M(Y), X({
641
+ }, 8, ["columns", "request-api", "options"])]), e(A(Y), X({
636
642
  ref_key: "refTdsForm",
637
- ref: o
643
+ ref: n
638
644
  }, i.$formBindProps({
639
- title: a.value,
640
- form: c.value,
641
- columns: D
645
+ title: s.value,
646
+ form: d.value,
647
+ columns: U
642
648
  }), {
643
- onSubmit: S
649
+ onSubmit: C
644
650
  }), null, 16)]);
645
651
  };
646
652
  }
@@ -648,106 +654,106 @@ const U = {
648
654
  class: "table-box"
649
655
  }, Ve = {
650
656
  class: "flex items-center"
651
- }, De = {
652
- key: 0
653
657
  }, ze = {
654
- class: "flex flex-wrap gap-12px p-12px"
658
+ key: 0
655
659
  }, Ie = {
656
- class: "font-bold text-14px mb-8px text-[var(--el-text-color-primary)]"
660
+ class: "flex flex-wrap gap-12px p-12px"
657
661
  }, Pe = {
658
- class: "text-12px text-[var(--el-text-color-regular)] space-y-4px"
662
+ class: "font-bold text-14px mb-8px text-[var(--el-text-color-primary)]"
659
663
  }, Re = {
664
+ class: "text-12px text-[var(--el-text-color-regular)] space-y-4px"
665
+ }, Oe = {
660
666
  key: 1,
661
667
  class: "font-bold text-center text-gray-500 py-20"
662
- }, Oe = /* @__PURE__ */ H({
668
+ }, He = /* @__PURE__ */ H({
663
669
  __name: "index",
664
670
  setup(t) {
665
671
  const {
666
672
  $t: l,
667
- $messageBox: o
668
- } = window, a = w(), c = w(), m = w(""), r = w({}), _ = w("show");
669
- function T() {
670
- r.value = {}, _.value = "show", m.value = "添加服务器", c.value.open();
673
+ $messageBox: n
674
+ } = window, s = x(), d = x(), v = x(""), o = x({}), y = x("show");
675
+ function S() {
676
+ o.value = {}, y.value = "show", v.value = "添加服务器", d.value.open();
671
677
  }
672
- const b = (n) => {
673
- o(n, "server_name", l("button.delete"), "error").then(async () => {
674
- await ve({
675
- data: n.map((d) => d.id)
676
- }), a.value.getTableList();
678
+ const h = (r) => {
679
+ n(r, "server_name", l("button.delete"), "error").then(async () => {
680
+ await ye({
681
+ data: r.map((w) => w.id)
682
+ }), s.value.getTableList();
677
683
  });
678
684
  };
679
- function s(n) {
680
- r.value = {
681
- id: n.id
682
- }, _.value = "deploy", m.value = "快速部署", c.value.open();
685
+ function a(r) {
686
+ o.value = {
687
+ id: r.id
688
+ }, y.value = "deploy", v.value = "快速部署", d.value.open();
683
689
  }
684
- const u = w([{
690
+ const u = x([{
685
691
  ip: "",
686
692
  port: ""
687
- }]), S = w([{
693
+ }]), E = x([{
688
694
  ip: "",
689
695
  port: ""
690
- }]), L = w([{
696
+ }]), C = x([{
691
697
  ip: "",
692
698
  port: ""
693
- }]), D = w([{
699
+ }]), I = x([{
694
700
  ip: "",
695
701
  port: ""
696
702
  }]);
697
- async function g(n) {
698
- if (_.value === "show") {
699
- await fe({
700
- data: n
701
- }), a.value.getTableList(), c.value.close();
703
+ async function U(r) {
704
+ if (y.value === "show") {
705
+ await ve({
706
+ data: r
707
+ }), s.value.getTableList(), d.value.close();
702
708
  return;
703
709
  }
704
- const d = (h, $) => {
705
- const F = Math.max(h.length, $.length);
710
+ const w = (m, g) => {
711
+ const T = Math.max(m.length, g.length);
706
712
  return Array.from({
707
- length: F
708
- }, (N, z) => {
709
- var R, G, J, Z;
713
+ length: T
714
+ }, (D, V) => {
715
+ var P, R, J, Z;
710
716
  return {
711
- src_ip: ((R = h[z]) == null ? void 0 : R.ip) || "",
712
- src_port: Number((G = h[z]) == null ? void 0 : G.port) || 0,
713
- dst_ip: ((J = $[z]) == null ? void 0 : J.ip) || "",
714
- dst_port: Number((Z = $[z]) == null ? void 0 : Z.port) || 0
717
+ src_ip: ((P = m[V]) == null ? void 0 : P.ip) || "",
718
+ src_port: Number((R = m[V]) == null ? void 0 : R.port) || 0,
719
+ dst_ip: ((J = g[V]) == null ? void 0 : J.ip) || "",
720
+ dst_port: Number((Z = g[V]) == null ? void 0 : Z.port) || 0
715
721
  };
716
722
  });
717
- }, f = {
718
- packages_id: [n.packages_id],
719
- server_id: [r.value.id],
723
+ }, c = {
724
+ packages_id: [r.packages_id],
725
+ server_id: [o.value.id],
720
726
  service_type: window.$prodType,
721
727
  deploy_params: {
722
- probe_name: n.probe_name || "",
723
- collection_mode: n.collection_mode,
724
- interface: n.interface || "",
725
- engine_ip: n.engine_ip || "",
726
- engine_port: n.engine_port || "",
727
- filterWhitelist: d(u.value, S.value),
728
- filterBlacklist: d(L.value, D.value)
728
+ probe_name: r.probe_name || "",
729
+ collection_mode: r.collection_mode,
730
+ interface: r.interface || "",
731
+ engine_ip: r.engine_ip || "",
732
+ engine_port: r.engine_port || "",
733
+ filterWhitelist: w(u.value, E.value),
734
+ filterBlacklist: w(C.value, I.value)
729
735
  }
730
736
  };
731
737
  await te({
732
- data: f
733
- }), a.value.getTableList(), c.value.close();
734
- }
735
- function P(n) {
736
- be({
737
- data: [n.id]
738
- }), a.value.getTableList();
738
+ data: c
739
+ }), s.value.getTableList(), d.value.close();
739
740
  }
740
- function i(n) {
741
+ function L(r) {
741
742
  we({
742
- data: [n.id]
743
- }), a.value.getTableList();
743
+ data: [r.id]
744
+ }), s.value.getTableList();
744
745
  }
745
- function k(n) {
746
+ function W(r) {
746
747
  xe({
747
- data: [n.id]
748
- }), a.value.getTableList();
748
+ data: [r.id]
749
+ }), s.value.getTableList();
749
750
  }
750
- const B = j([{
751
+ function i(r) {
752
+ ke({
753
+ data: [r.id]
754
+ }), s.value.getTableList();
755
+ }
756
+ const b = G([{
751
757
  field: "server_name",
752
758
  name: "服务器名称",
753
759
  show: {
@@ -802,7 +808,7 @@ const U = {
802
808
  }, {
803
809
  field: "arch",
804
810
  name: "架构",
805
- enum: ge,
811
+ enum: he,
806
812
  show: {
807
813
  type: "select"
808
814
  },
@@ -812,7 +818,7 @@ const U = {
812
818
  }, {
813
819
  field: "deployed_count",
814
820
  name: "已部署探针数量",
815
- render: (n) => e("span", null, [n.row.deployment_packages.length])
821
+ render: (r) => e("span", null, [r.row.deployment_packages.length])
816
822
  }, {
817
823
  field: "status",
818
824
  name: "状态",
@@ -928,16 +934,16 @@ const U = {
928
934
  deploy: {
929
935
  type: "input",
930
936
  tooltip: "白名单配置后,仅采集白名单内相关流量,如不填写,则采集所有流量",
931
- render: () => e(A, null, [e("p", {
937
+ render: () => e(B, null, [e("p", {
932
938
  class: "color-[var(--el-text-color-regular)]"
933
- }, [q("源ip端口:")]), e(V, {
939
+ }, [F("源ip端口:")]), e(N, {
934
940
  modelValue: u.value,
935
- "onUpdate:modelValue": (n) => u.value = n
941
+ "onUpdate:modelValue": (r) => u.value = r
936
942
  }, null), e("p", {
937
943
  class: "color-[var(--el-text-color-regular)]"
938
- }, [q("目的ip端口:")]), e(V, {
939
- modelValue: S.value,
940
- "onUpdate:modelValue": (n) => S.value = n
944
+ }, [F("目的ip端口:")]), e(N, {
945
+ modelValue: E.value,
946
+ "onUpdate:modelValue": (r) => E.value = r
941
947
  }, null)])
942
948
  },
943
949
  hide: !0
@@ -947,16 +953,16 @@ const U = {
947
953
  deploy: {
948
954
  type: "input",
949
955
  tooltip: "黑名单配置后,将不再采集黑名单内相关流量",
950
- render: () => e(A, null, [e("p", {
956
+ render: () => e(B, null, [e("p", {
951
957
  class: "color-[var(--el-text-color-regular)]"
952
- }, [q("源ip端口:")]), e(V, {
953
- modelValue: L.value,
954
- "onUpdate:modelValue": (n) => L.value = n
958
+ }, [F("源ip端口:")]), e(N, {
959
+ modelValue: C.value,
960
+ "onUpdate:modelValue": (r) => C.value = r
955
961
  }, null), e("p", {
956
962
  class: "color-[var(--el-text-color-regular)]"
957
- }, [q("目的ip端口:")]), e(V, {
958
- modelValue: D.value,
959
- "onUpdate:modelValue": (n) => D.value = n
963
+ }, [F("目的ip端口:")]), e(N, {
964
+ modelValue: I.value,
965
+ "onUpdate:modelValue": (r) => I.value = r
960
966
  }, null)])
961
967
  },
962
968
  hide: !0
@@ -965,18 +971,18 @@ const U = {
965
971
  name: window.$t("global.operate"),
966
972
  width: 180,
967
973
  fixed: "right",
968
- render: (n) => e("div", null, [e(p("el-button"), {
974
+ render: (r) => e("div", null, [e(p("el-button"), {
969
975
  link: !0,
970
976
  type: "primary",
971
977
  icon: "Connection",
972
978
  title: "连通性检查",
973
979
  class: "custom-btn",
974
- onClick: () => P(n.row)
980
+ onClick: () => L(r.row)
975
981
  }, null), e(p("el-button"), {
976
982
  link: !0,
977
983
  type: "primary",
978
984
  class: "custom-btn",
979
- onClick: () => i(n.row)
985
+ onClick: () => W(r.row)
980
986
  }, {
981
987
  icon: () => e(p("tds-svg-icon"), {
982
988
  name: "install_env",
@@ -986,7 +992,7 @@ const U = {
986
992
  link: !0,
987
993
  type: "primary",
988
994
  class: "custom-btn",
989
- onClick: () => k(n.row)
995
+ onClick: () => i(r.row)
990
996
  }, {
991
997
  icon: () => e(p("tds-svg-icon"), {
992
998
  name: "docker",
@@ -996,7 +1002,7 @@ const U = {
996
1002
  link: !0,
997
1003
  type: "primary",
998
1004
  class: "custom-btn",
999
- onClick: () => s(n.row)
1005
+ onClick: () => a(r.row)
1000
1006
  }, {
1001
1007
  icon: () => e(p("tds-svg-icon"), {
1002
1008
  name: "deployed",
@@ -1007,80 +1013,80 @@ const U = {
1007
1013
  type: "danger",
1008
1014
  icon: "Delete",
1009
1015
  title: l("button.delete"),
1010
- onClick: () => b([n.row])
1016
+ onClick: () => h([r.row])
1011
1017
  }, null)])
1012
1018
  }]);
1013
- return (n, d) => {
1014
- const f = p("el-button"), h = p("el-table-column"), $ = p("TdsTable");
1015
- return y(), x("div", Ne, [e($, {
1019
+ return (r, w) => {
1020
+ const c = p("el-button"), m = p("el-table-column"), g = p("TdsTable");
1021
+ return f(), k("div", Ne, [e(g, {
1016
1022
  ref_key: "refTdsTable",
1017
- ref: a,
1018
- columns: B,
1019
- "request-api": M(oe),
1023
+ ref: s,
1024
+ columns: b,
1025
+ "request-api": A(oe),
1020
1026
  "search-col": 4,
1021
- options: n.$tableOptions(),
1027
+ options: r.$tableOptions(),
1022
1028
  "reserve-selection": ""
1023
1029
  }, {
1024
- tableHeader: E(() => [v("div", Ve, [e(f, {
1030
+ tableHeader: $(() => [_("div", Ve, [e(c, {
1025
1031
  class: "custom-btn",
1026
1032
  type: "primary",
1027
1033
  icon: "Plus",
1028
1034
  plain: "",
1029
- onClick: d[0] || (d[0] = (F) => T())
1035
+ onClick: w[0] || (w[0] = (T) => S())
1030
1036
  }, {
1031
- default: E(() => [q(C(M(l)("button.add")), 1)]),
1037
+ default: $(() => [F(q(A(l)("button.add")), 1)]),
1032
1038
  _: 1
1033
1039
  })])]),
1034
- default: E(() => [e(h, {
1040
+ default: $(() => [e(m, {
1035
1041
  type: "expand"
1036
1042
  }, {
1037
- default: E((F) => [F.row.deployment_packages && F.row.deployment_packages.length > 0 ? (y(), x("div", De, [d[1] || (d[1] = v("div", {
1043
+ default: $((T) => [T.row.deployment_packages && T.row.deployment_packages.length > 0 ? (f(), k("div", ze, [w[1] || (w[1] = _("div", {
1038
1044
  class: "font-bold text-14px mt-12px"
1039
- }, "已部署的探针包", -1)), v("div", ze, [(y(!0), x(A, null, K(F.row.deployment_packages, (N) => (y(), x("div", {
1040
- key: N.id,
1045
+ }, "已部署的探针包", -1)), _("div", Ie, [(f(!0), k(B, null, K(T.row.deployment_packages, (D) => (f(), k("div", {
1046
+ key: D.id,
1041
1047
  class: "w-30% px-20px py-10px rounded-8px bg-[var(--el-fill-color-light)] border border-solid border-[var(--el-border-color-lighter)] hover:shadow-md transition-shadow"
1042
- }, [v("div", Ie, C(N.file_name), 1), v("div", Pe, [v("p", null, "版本: " + C(N.version), 1), v("p", null, "部署时间: " + C(N.deployment_time), 1)])]))), 128))])])) : (y(), x("div", Re, "暂无部署服务器记录"))]),
1048
+ }, [_("div", Pe, q(D.file_name), 1), _("div", Re, [_("p", null, "版本: " + q(D.version), 1), _("p", null, "部署时间: " + q(D.deployment_time), 1)])]))), 128))])])) : (f(), k("div", Oe, "暂无部署服务器记录"))]),
1043
1049
  _: 1
1044
1050
  })]),
1045
1051
  _: 1
1046
- }, 8, ["columns", "request-api", "options"]), e(M(Y), X({
1052
+ }, 8, ["columns", "request-api", "options"]), e(A(Y), X({
1047
1053
  ref_key: "refTdsForm",
1048
- ref: c
1049
- }, n.$formBindProps({
1050
- title: m.value,
1051
- form: r.value,
1052
- columns: B,
1053
- formKey: _.value
1054
+ ref: d
1055
+ }, r.$formBindProps({
1056
+ title: v.value,
1057
+ form: o.value,
1058
+ columns: b,
1059
+ formKey: y.value
1054
1060
  }), {
1055
- onSubmit: g
1061
+ onSubmit: U
1056
1062
  }), null, 16)]);
1057
1063
  };
1058
1064
  }
1059
- }), He = {
1065
+ }), Ke = {
1060
1066
  class: "table-box"
1061
- }, Ke = {
1067
+ }, We = {
1062
1068
  style: {
1063
1069
  padding: "0 50px"
1064
1070
  }
1065
- }, We = /* @__PURE__ */ H({
1071
+ }, je = /* @__PURE__ */ H({
1066
1072
  __name: "index",
1067
1073
  setup(t) {
1068
- const l = j([{
1074
+ const l = G([{
1069
1075
  field: "packages_name",
1070
1076
  name: "探针包",
1071
- render: (o) => e(A, null, [e("p", {
1077
+ render: (n) => e(B, null, [e("p", {
1072
1078
  class: "font-bold"
1073
- }, [o.row.packages_name]), e("p", {
1079
+ }, [n.row.packages_name]), e("p", {
1074
1080
  class: "text-gray-400"
1075
- }, [o.row.packages_version])])
1081
+ }, [n.row.packages_version])])
1076
1082
  }, {
1077
1083
  field: "server_name",
1078
1084
  name: "服务器",
1079
- render: (o) => e(A, null, [e("p", {
1085
+ render: (n) => e(B, null, [e("p", {
1080
1086
  class: "font-bold"
1081
- }, [o.row.server_name]), e("p", {
1087
+ }, [n.row.server_name]), e("p", {
1082
1088
  class: "text-gray-400"
1083
- }, [o.row.ip_address])])
1089
+ }, [n.row.ip_address])])
1084
1090
  }, {
1085
1091
  field: "deployment_time",
1086
1092
  name: "部署时间"
@@ -1102,27 +1108,27 @@ const U = {
1102
1108
  tagType: "success"
1103
1109
  }]
1104
1110
  }]);
1105
- return (o, a) => {
1106
- const c = p("el-table-column"), m = p("TdsTable");
1107
- return y(), x("div", He, [e(m, {
1111
+ return (n, s) => {
1112
+ const d = p("el-table-column"), v = p("TdsTable");
1113
+ return f(), k("div", Ke, [e(v, {
1108
1114
  ref: "refTdsTable",
1109
1115
  columns: l,
1110
1116
  "search-col": 4,
1111
- "request-api": M(he),
1112
- options: o.$tableOptions(),
1117
+ "request-api": A(be),
1118
+ options: n.$tableOptions(),
1113
1119
  "reserve-selection": ""
1114
1120
  }, {
1115
- default: E(() => [e(c, {
1121
+ default: $(() => [e(d, {
1116
1122
  type: "expand"
1117
1123
  }, {
1118
- default: E((r) => [v("div", Ke, C(r.row.deployment_log), 1)]),
1124
+ default: $((o) => [_("div", We, q(o.row.deployment_log), 1)]),
1119
1125
  _: 1
1120
1126
  })]),
1121
1127
  _: 1
1122
1128
  }, 8, ["columns", "request-api", "options"])]);
1123
1129
  };
1124
1130
  }
1125
- }), je = { class: "main-wrapper" }, Ge = /* @__PURE__ */ H({
1131
+ }), Ge = { class: "main-wrapper" }, Je = /* @__PURE__ */ H({
1126
1132
  name: "TCProbe",
1127
1133
  __name: "index",
1128
1134
  props: {
@@ -1132,43 +1138,43 @@ const U = {
1132
1138
  }
1133
1139
  },
1134
1140
  setup(t) {
1135
- const l = t, o = w("package");
1136
- return (a, c) => {
1137
- const m = p("el-tab-pane"), r = p("el-tabs");
1138
- return y(), x("div", je, [
1139
- e(r, {
1140
- modelValue: o.value,
1141
- "onUpdate:modelValue": c[0] || (c[0] = (_) => o.value = _),
1141
+ const l = x("package");
1142
+ return (n, s) => {
1143
+ const d = p("el-tab-pane"), v = p("el-tabs");
1144
+ return f(), k("div", Ge, [
1145
+ e(v, {
1146
+ modelValue: l.value,
1147
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => l.value = o),
1142
1148
  class: "demo-tabs"
1143
1149
  }, {
1144
- default: E(() => [
1145
- e(m, {
1150
+ default: $(() => [
1151
+ e(d, {
1146
1152
  label: "安装包管理",
1147
1153
  name: "package"
1148
1154
  }, {
1149
- default: E(() => [
1150
- o.value === "package" ? (y(), W(Be, {
1155
+ default: $(() => [
1156
+ l.value === "package" ? (f(), j(De, {
1151
1157
  key: 0,
1152
- token: l.token
1158
+ token: t.token
1153
1159
  }, null, 8, ["token"])) : O("", !0)
1154
1160
  ]),
1155
1161
  _: 1
1156
1162
  }),
1157
- e(m, {
1163
+ e(d, {
1158
1164
  label: "探针部署",
1159
1165
  name: "deploy"
1160
1166
  }, {
1161
- default: E(() => [
1162
- o.value === "deploy" ? (y(), W(Oe, { key: 0 })) : O("", !0)
1167
+ default: $(() => [
1168
+ l.value === "deploy" ? (f(), j(He, { key: 0 })) : O("", !0)
1163
1169
  ]),
1164
1170
  _: 1
1165
1171
  }),
1166
- e(m, {
1172
+ e(d, {
1167
1173
  label: "部署历史",
1168
1174
  name: "history"
1169
1175
  }, {
1170
- default: E(() => [
1171
- o.value === "history" ? (y(), W(We, { key: 0 })) : O("", !0)
1176
+ default: $(() => [
1177
+ l.value === "history" ? (f(), j(je, { key: 0 })) : O("", !0)
1172
1178
  ]),
1173
1179
  _: 1
1174
1180
  })
@@ -1179,24 +1185,24 @@ const U = {
1179
1185
  };
1180
1186
  }
1181
1187
  });
1182
- const Je = /* @__PURE__ */ ee(Ge, [["__scopeId", "data-v-628de145"]]), Ze = (t, l) => {
1183
- if (t.install = (o) => {
1184
- for (const a of [t, ...Object.values(l ?? {})])
1185
- o.component(a.name, a);
1188
+ const Ze = /* @__PURE__ */ ee(Je, [["__scopeId", "data-v-f99b9b23"]]), Qe = (t, l) => {
1189
+ if (t.install = (n) => {
1190
+ for (const s of [t, ...Object.values(l ?? {})])
1191
+ n.component(s.name, s);
1186
1192
  }, l)
1187
- for (const [o, a] of Object.entries(l))
1188
- t[o] = a;
1193
+ for (const [n, s] of Object.entries(l))
1194
+ t[n] = s;
1189
1195
  return t;
1190
- }, Qe = Ze(Je), Xe = {
1191
- TCProbe: Qe
1192
- }, ot = {
1196
+ }, Xe = Qe(Ze), Ye = {
1197
+ TCProbe: Xe
1198
+ }, rt = {
1193
1199
  install(t, l) {
1194
- Object.entries(Xe).forEach(([o, a]) => {
1195
- t.component(o, a);
1200
+ Object.entries(Ye).forEach(([n, s]) => {
1201
+ t.component(n, s);
1196
1202
  }), l != null && l.prodType && (window.$prodType = l.prodType), l != null && l.envURL && (window.$probeURL = l.envURL);
1197
1203
  }
1198
1204
  };
1199
1205
  export {
1200
- Qe as TCProbe,
1201
- ot as default
1206
+ Xe as TCProbe,
1207
+ rt as default
1202
1208
  };