ss-component-new 1.3.428 → 1.3.430

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.
Files changed (107) hide show
  1. package/dist/{MTLLoader-DBXJU4gy.js → MTLLoader-D7sNoLcK.js} +1 -1
  2. package/dist/{MTLLoader-C1qSZuWT.cjs → MTLLoader-p0GsbA2N.cjs} +1 -1
  3. package/dist/{OrbitControls-BFwyCnTH.cjs → OrbitControls-BhtVNiz9.cjs} +1 -1
  4. package/dist/{OrbitControls-BK6rha_f.js → OrbitControls-xsAEcOQ0.js} +1 -1
  5. package/dist/{URDFLoader-CTaB1j6-.cjs → URDFLoader-DAb823an.cjs} +1 -1
  6. package/dist/{URDFLoader-B4rOIDHb.js → URDFLoader-OhWW6Ghz.js} +2 -2
  7. package/dist/{animationData-DugoMERO.cjs → animationData-CM85S6tn.cjs} +1 -1
  8. package/dist/{animationData-Bfdz_yNt.js → animationData-CZHPgZ5e.js} +3 -3
  9. package/dist/{array-BOctoevY.cjs → array-0RI_MV-5.cjs} +1 -1
  10. package/dist/{array-CtInsg0G.js → array-DeAl78t6.js} +84 -84
  11. package/dist/{clone-r23wXuC7.js → clone-BDsG8VVj.js} +1 -1
  12. package/dist/clone-D92QCGo2.cjs +1 -0
  13. package/dist/{iconfont-C4b-8B6C.js → iconfont-C5j4Td3D.js} +2 -2
  14. package/dist/{iconfont-B8J8hnDJ.cjs → iconfont-DvB947R2.cjs} +1 -1
  15. package/dist/{index-1tRX531i.cjs → index-4SWc85gj.cjs} +1 -1
  16. package/dist/index-8V0NHmW6.cjs +1 -0
  17. package/dist/{index-x-HWwt4p.js → index-9Fw7ND1N.js} +11 -11
  18. package/dist/{index-DQdcA8b0.cjs → index-B6e2oM-P.cjs} +1 -1
  19. package/dist/{index-Bn4g3hXz.cjs → index-B9MP9Z_h.cjs} +1 -1
  20. package/dist/{index-C9LONCdW.js → index-BEyBnEnd.js} +5 -5
  21. package/dist/{index-BWtc895B.js → index-BF5SUWUn.js} +1 -1
  22. package/dist/{index-rGJF9UJ9.js → index-BK-oz1IK.js} +1908 -1929
  23. package/dist/{index-BDClkBzq.cjs → index-BTfuvT7M.cjs} +1 -1
  24. package/dist/{index-D38qJHp0.js → index-BTgKT-Kp.js} +21 -21
  25. package/dist/{index-HHT3da7j.cjs → index-BpYkNRvs.cjs} +12 -12
  26. package/dist/{index-DzN70K91.js → index-C-rFa3VT.js} +1229 -1203
  27. package/dist/{index-N0L2zoGC.cjs → index-C09sw7CL.cjs} +1 -1
  28. package/dist/{index-Bu5lDLj_.cjs → index-C3JpBKyN.cjs} +1 -1
  29. package/dist/{index-CZly4koJ.js → index-CFiyfU1X.js} +36 -36
  30. package/dist/{index-D3lXIyot.cjs → index-CGaJRFh6.cjs} +1 -1
  31. package/dist/{index-Dbv6QX4e.js → index-CGqnKnrd.js} +2 -2
  32. package/dist/{index-B7H-5M2Y.cjs → index-CIMnUwEB.cjs} +1 -1
  33. package/dist/{index-6RECQqV8.js → index-CKsprVNa.js} +1 -1
  34. package/dist/{index-DaiB_qqV.cjs → index-CLLeUa5o.cjs} +1 -1
  35. package/dist/index-CWzVeyId.cjs +2 -0
  36. package/dist/{index-DhD0tnVr.cjs → index-CZuPznao.cjs} +1 -1
  37. package/dist/{index-CdsqSTRI.js → index-Ca_pqbsS.js} +20 -20
  38. package/dist/{index-CTkNgtX3.cjs → index-Call_60N.cjs} +1 -1
  39. package/dist/{index-CKCe1GPP.cjs → index-CljHDtk8.cjs} +1 -1
  40. package/dist/{index-BBr25gXh.js → index-D1U0qzcp.js} +4 -4
  41. package/dist/{index-B0HOwfWc.cjs → index-DCfi_waU.cjs} +1 -1
  42. package/dist/{index-BtWec77G.cjs → index-DDAEpzaB.cjs} +1 -1
  43. package/dist/{index-Bi1DonQa.js → index-DDK5gDem.js} +12 -12
  44. package/dist/{index-BIbJs6Kp.cjs → index-DM4iU2Ab.cjs} +1 -1
  45. package/dist/{index-CdGqaqYM.js → index-DO5zum3x.js} +2 -2
  46. package/dist/{index-BK6-AVLE.js → index-DQ94pBGZ.js} +339 -330
  47. package/dist/{index-H2suIBRd.js → index-DSKIm3im.js} +4 -4
  48. package/dist/{index-DlXwTcJ9.js → index-DTllcl_O.js} +2 -2
  49. package/dist/{index-DvbvoiZG.js → index-DU2dKJOK.js} +15 -15
  50. package/dist/{index-CtLw-tqJ.js → index-DbPbr5TD.js} +9840 -9754
  51. package/dist/{index-Dk-xbMrl.js → index-DgTbfgjE.js} +18 -18
  52. package/dist/index-Digv4Fyh.cjs +1 -0
  53. package/dist/{index-ss_5hS2p.js → index-DkA3dv5l.js} +1 -1
  54. package/dist/{index-DAZMn3y_.js → index-Dn7UEQUd.js} +1 -1
  55. package/dist/{index-BfK0dq3V.cjs → index-DoorIpTj.cjs} +1 -1
  56. package/dist/{index-CNRHr3kT.cjs → index-DqmyyzfP.cjs} +1 -1
  57. package/dist/{index-CnsDmHXo.cjs → index-DxPKykuA.cjs} +1 -1
  58. package/dist/{index-jDRNGigR.js → index-Dxs-F0xJ.js} +8 -8
  59. package/dist/{index-mDUckx7n.cjs → index-DyCQbiMc.cjs} +1 -1
  60. package/dist/index-Dz_V4Aef.cjs +26 -0
  61. package/dist/{index-DpRkYDKO.cjs → index-IGuY2Qp9.cjs} +1 -1
  62. package/dist/{index-TDwSq2BF.js → index-Lhh-KMx5.js} +2 -2
  63. package/dist/{index-DAfCxuFU.js → index-RF5qQdBY.js} +1 -1
  64. package/dist/{index-CJijEg9W.js → index-ToiCtVRE.js} +7 -7
  65. package/dist/{index-NSrMRasA.cjs → index-XVjZTSe1.cjs} +1 -1
  66. package/dist/{index-CeXLp3RG.js → index-YzkBsOrM.js} +4 -4
  67. package/dist/{index-mpH7L8Rm.js → index-fH3hPSMI.js} +41 -39
  68. package/dist/{index-C772JVG0.cjs → index-fh5hS-5q.cjs} +1 -1
  69. package/dist/{index-qhLt4UGH.cjs → index-ilXWn4_Y.cjs} +1 -1
  70. package/dist/index-p9kkXcpR.js +10841 -0
  71. package/dist/{index-DyHFsX8U.js → index-sl2ZbrIv.js} +1 -1
  72. package/dist/index-xN3pvlzo.cjs +18 -0
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bk-thOPD.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs} +1 -1
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-EOt2_XRY.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js} +3 -3
  75. package/dist/{main-Dyv9tK3q.cjs → main-2_nRO_Yd.cjs} +1 -1
  76. package/dist/{main-BazhXMmW.js → main-hbDYKA6O.js} +4 -4
  77. package/dist/{menuIndex-B8QQIas4.cjs → menuIndex-8KYc1zS9.cjs} +1 -1
  78. package/dist/{menuIndex-qnbpFYeU.js → menuIndex-CPrSvY9F.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +3 -3
  81. package/dist/ss-component.js +15 -15
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-CKvba3tD.js → threeModel-C1V8R9PI.js} +45 -45
  85. package/dist/{threeModel-BWwXtPBu.cjs → threeModel-z-ti4e5E.cjs} +1 -1
  86. package/dist/{threePreview-GizvH53S.js → threePreview-BoiGO8RT.js} +4 -4
  87. package/dist/{threePreview-CbKggw3I.cjs → threePreview-Bs-m2IAX.cjs} +1 -1
  88. package/dist/{threeSceneView-D6UJzKUj.js → threeSceneView-BCuH_gVn.js} +11 -11
  89. package/dist/{threeSceneView-CJnJdw2X.cjs → threeSceneView-CTHpWmwg.cjs} +1 -1
  90. package/dist/{threeSceneViewForCPMPIP-hUnAkwBg.cjs → threeSceneViewForCPMPIP-CsDzXB39.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-NCyWbrvb.js → threeSceneViewForCPMPIP-Dyb60cS_.js} +8 -8
  92. package/dist/{threeTrackPathView-DSHB2LWA.js → threeTrackPathView-C7MWmsr9.js} +4 -4
  93. package/dist/{threeTrackPathView-ZqSjOtFS.cjs → threeTrackPathView-DL3Fx1XR.cjs} +1 -1
  94. package/dist/{threeViewerHost-BEEjkIf3.js → threeViewerHost-2yySAP_2.js} +3 -3
  95. package/dist/{threeViewerHost-D0oJ3S3c.cjs → threeViewerHost-Bk3vNumJ.cjs} +1 -1
  96. package/dist/{urdfTree-DnkBJIj6.cjs → urdfTree-B1vSZdxZ.cjs} +1 -1
  97. package/dist/{urdfTree-DEWAJ5kl.js → urdfTree-BwPn5sja.js} +1 -1
  98. package/dist/{workpieceTreePanel-XOSlhouq.js → workpieceTreePanel-DnVOjYQ2.js} +4 -4
  99. package/dist/{workpieceTreePanel-DzpjPYZ9.cjs → workpieceTreePanel-zPR2Z6wa.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/dist/clone-t2ps0jmw.cjs +0 -1
  102. package/dist/index-BSeL_Eve.js +0 -10837
  103. package/dist/index-BeOgM-lp.cjs +0 -1
  104. package/dist/index-ClvA5-wg.cjs +0 -18
  105. package/dist/index-DAEMvwnX.cjs +0 -26
  106. package/dist/index-DUBEV33e.cjs +0 -2
  107. package/dist/index-DgpEgbFi.cjs +0 -1
@@ -1,24 +1,24 @@
1
- import { createElementBlock as x, openBlock as $, createElementVNode as n, renderSlot as M, defineComponent as X, ref as b, resolveComponent as _, createVNode as t, withCtx as a, unref as P, reactive as oe, computed as Q, onMounted as me, createBlock as G, resolveDirective as ye, createCommentVNode as te, withDirectives as he, normalizeClass as ne, toDisplayString as E, Transition as Ce, watch as ae, Fragment as Te, createTextVNode as O, onBeforeUnmount as we } from "vue";
1
+ import { createElementBlock as F, openBlock as L, createElementVNode as s, renderSlot as E, defineComponent as W, ref as _, resolveComponent as b, createVNode as t, withCtx as a, unref as P, reactive as le, computed as G, onMounted as me, createBlock as J, resolveDirective as ye, createCommentVNode as ae, withDirectives as he, normalizeClass as ie, toDisplayString as S, Transition as Ce, watch as ee, Fragment as we, createTextVNode as O, onBeforeUnmount as Te } from "vue";
2
2
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { b as le, p as W, s as se, u as ke, a as Ve, l as Ue, v as $e } from "./index-rGJF9UJ9.js";
4
- import { _ as J } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
- import { c as Le, a as qe, f as Ae, b as ie, E as re } from "./request-XJsZ4h2T.js";
3
+ import { b as ne, p as Q, s as se, u as ke, a as Ue, l as Ve, e as Le, v as $e } from "./index-BK-oz1IK.js";
4
+ import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
+ import { c as qe, a as Ae, f as Ie, b as re, E as ce } from "./request-XJsZ4h2T.js";
6
6
  import "./JSEncrypt-B36c1iN5.js";
7
- import { u as Ie } from "./index-x-HWwt4p.js";
8
- import { useRouter as xe } from "vue-router";
9
- import { l as De } from "./index-DAfCxuFU.js";
10
- const Fe = {}, Ne = { class: "left-wrap" }, Re = { class: "left-bg" };
11
- function Se(y, w) {
12
- return $(), x("div", Ne, [
13
- n("div", Re, [
14
- M(y.$slots, "img", {}, void 0, !0)
7
+ import { u as De } from "./index-9Fw7ND1N.js";
8
+ import { useRouter as Fe } from "vue-router";
9
+ import { l as xe } from "./index-RF5qQdBY.js";
10
+ const Re = {}, Ne = { class: "left-wrap" }, Se = { class: "left-bg" };
11
+ function Ee(y, T) {
12
+ return L(), F("div", Ne, [
13
+ s("div", Se, [
14
+ E(y.$slots, "img", {}, void 0, !0)
15
15
  ])
16
16
  ]);
17
17
  }
18
- const Ee = /* @__PURE__ */ H(Fe, [["render", Se], ["__scopeId", "data-v-9b7ee6c9"]]), Y = {
18
+ const Me = /* @__PURE__ */ H(Re, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9"]]), Z = {
19
19
  ACCOUNT: "account",
20
20
  FACE: "face"
21
- }, Me = { class: "right-wrap" }, Be = { class: "tab-content" }, Oe = { class: "tab-tips" }, Pe = { class: "tab-content" }, He = { class: "tab-tips" }, Ke = /* @__PURE__ */ X({
21
+ }, Be = { class: "right-wrap" }, Oe = { class: "tab-content" }, Pe = { class: "tab-tips" }, He = { class: "tab-content" }, je = { class: "tab-tips" }, Ke = /* @__PURE__ */ W({
22
22
  __name: "index",
23
23
  props: {
24
24
  tabList: {
@@ -31,61 +31,61 @@ const Ee = /* @__PURE__ */ H(Fe, [["render", Se], ["__scopeId", "data-v-9b7ee6c9
31
31
  }
32
32
  },
33
33
  emits: ["clickLogin", "handleTabChange"],
34
- setup(y, { emit: w }) {
35
- const m = b(Y.ACCOUNT), p = w, C = () => {
34
+ setup(y, { emit: T }) {
35
+ const m = _(Z.ACCOUNT), p = T, C = () => {
36
36
  p("clickLogin", m.value);
37
37
  }, e = (v) => {
38
38
  p("handleTabChange", v);
39
39
  };
40
40
  return (v, k) => {
41
- const f = _("el-button"), V = _("el-tab-pane"), U = _("el-tabs");
42
- return $(), x("div", Me, [
43
- t(U, {
41
+ const f = b("el-button"), U = b("el-tab-pane"), V = b("el-tabs");
42
+ return L(), F("div", Be, [
43
+ t(V, {
44
44
  modelValue: m.value,
45
- "onUpdate:modelValue": k[0] || (k[0] = (h) => m.value = h),
45
+ "onUpdate:modelValue": k[0] || (k[0] = (w) => m.value = w),
46
46
  class: "right-tabs",
47
47
  onTabChange: e
48
48
  }, {
49
49
  default: a(() => [
50
- t(V, {
51
- name: P(Y).ACCOUNT
50
+ t(U, {
51
+ name: P(Z).ACCOUNT
52
52
  }, {
53
53
  label: a(() => [
54
- M(v.$slots, "tabLabel1", {}, void 0, !0)
54
+ E(v.$slots, "tabLabel1", {}, void 0, !0)
55
55
  ]),
56
56
  default: a(() => [
57
- n("div", Be, [
58
- M(v.$slots, "tabContent1", {}, void 0, !0)
57
+ s("div", Oe, [
58
+ E(v.$slots, "tabContent1", {}, void 0, !0)
59
59
  ]),
60
- n("div", {
60
+ s("div", {
61
61
  class: "tab-button special",
62
62
  onClick: C
63
63
  }, [
64
64
  t(f, { loading: y.loading }, {
65
65
  default: a(() => [
66
- M(v.$slots, "tabButton1", {}, void 0, !0)
66
+ E(v.$slots, "tabButton1", {}, void 0, !0)
67
67
  ]),
68
68
  _: 3
69
69
  }, 8, ["loading"])
70
70
  ]),
71
- n("div", Oe, [
72
- M(v.$slots, "tabTips1", {}, void 0, !0)
71
+ s("div", Pe, [
72
+ E(v.$slots, "tabTips1", {}, void 0, !0)
73
73
  ])
74
74
  ]),
75
75
  _: 3
76
76
  }, 8, ["name"]),
77
- t(V, {
78
- name: P(Y).FACE
77
+ t(U, {
78
+ name: P(Z).FACE
79
79
  }, {
80
80
  label: a(() => [
81
- M(v.$slots, "tabLabel2", {}, void 0, !0)
81
+ E(v.$slots, "tabLabel2", {}, void 0, !0)
82
82
  ]),
83
83
  default: a(() => [
84
- n("div", Pe, [
85
- M(v.$slots, "tabContent2", {}, void 0, !0)
84
+ s("div", He, [
85
+ E(v.$slots, "tabContent2", {}, void 0, !0)
86
86
  ]),
87
- n("div", He, [
88
- M(v.$slots, "tabTips2", {}, void 0, !0)
87
+ s("div", je, [
88
+ E(v.$slots, "tabTips2", {}, void 0, !0)
89
89
  ])
90
90
  ]),
91
91
  _: 3
@@ -96,15 +96,15 @@ const Ee = /* @__PURE__ */ H(Fe, [["render", Se], ["__scopeId", "data-v-9b7ee6c9
96
96
  ]);
97
97
  };
98
98
  }
99
- }), je = /* @__PURE__ */ H(Ke, [["__scopeId", "data-v-8b1962f0"]]), ze = /^[a-z][a-z0-9+.-]*:\/\//i, ce = (y) => ze.test(y);
100
- function Qe(y) {
101
- ce(y) || (y = `http://${y}`);
99
+ }), ze = /* @__PURE__ */ H(Ke, [["__scopeId", "data-v-8b1962f0"]]), Qe = /^[a-z][a-z0-9+.-]*:\/\//i, ue = (y) => Qe.test(y);
100
+ function We(y) {
101
+ ue(y) || (y = `http://${y}`);
102
102
  try {
103
- const w = new URL(y);
103
+ const T = new URL(y);
104
104
  return {
105
- host: w.hostname,
105
+ host: T.hostname,
106
106
  // 域名:example.com
107
- port: w.port || null
107
+ port: T.port || null
108
108
  // 端口:8080(默认端口返回空字符串,转为 null)
109
109
  };
110
110
  } catch {
@@ -114,79 +114,79 @@ function Qe(y) {
114
114
  };
115
115
  }
116
116
  }
117
- const We = () => ({ initUrlInfo: () => ({
117
+ const Xe = () => ({ initUrlInfo: () => ({
118
118
  host: null,
119
119
  port: null
120
- }), hasProtocol: ce, generateUrl: (m) => {
120
+ }), hasProtocol: ue, generateUrl: (m) => {
121
121
  const { host: p, port: C } = m;
122
122
  if (!p)
123
123
  return null;
124
124
  let e = `${p}`;
125
- return ce(p) || (e = `http://${e}`), C && (e = `${e}:${C}`), e;
126
- } }), Xe = { class: "body-wrapper" }, Ge = { class: "api-form-wrapper" }, Je = { class: "edit-footer" }, Ye = { class: "footer-right" }, Ze = /* @__PURE__ */ X({
125
+ return ue(p) || (e = `http://${e}`), C && (e = `${e}:${C}`), e;
126
+ } }), Ge = { class: "body-wrapper" }, Je = { class: "api-form-wrapper" }, Ye = { class: "edit-footer" }, Ze = { class: "footer-right" }, et = /* @__PURE__ */ W({
127
127
  __name: "index",
128
128
  emits: ["updateApiUrl"],
129
- setup(y, { expose: w, emit: m }) {
130
- const p = m, C = le(W), { systemUrl: e } = se(C), { initUrlInfo: v, generateUrl: k } = We(), f = b(v()), V = b(), U = oe({
129
+ setup(y, { expose: T, emit: m }) {
130
+ const p = m, C = ne(Q), { systemUrl: e } = se(C), { initUrlInfo: v, generateUrl: k } = Xe(), f = _(v()), U = _(), V = le({
131
131
  host: [
132
132
  { required: !0, message: "请输入职位名称", trigger: "blur" }
133
133
  ]
134
- }), h = Q(() => e.value || "http://222.92.178.198:63002"), i = () => {
135
- f.value = Qe(h.value);
134
+ }), w = G(() => e.value || "http://222.92.178.198:63002"), i = () => {
135
+ f.value = We(w.value);
136
136
  };
137
137
  me(() => {
138
138
  i();
139
139
  });
140
- const o = b(!1), l = () => {
140
+ const o = _(!1), n = () => {
141
141
  i(), o.value = !0;
142
142
  }, r = () => {
143
143
  o.value = !1;
144
- }, d = () => {
144
+ }, u = () => {
145
145
  r();
146
- }, L = async () => {
147
- var c;
148
- await ((c = V.value) == null ? void 0 : c.validate());
149
- const T = k(f.value);
150
- p("updateApiUrl", T), d();
146
+ }, A = async () => {
147
+ var d;
148
+ await ((d = U.value) == null ? void 0 : d.validate());
149
+ const h = k(f.value);
150
+ p("updateApiUrl", h), u();
151
151
  };
152
- return w({
153
- openDialog: l,
154
- handleClose: d
155
- }), (T, c) => {
156
- const R = _("el-input"), D = _("el-form-item"), u = _("el-col"), F = _("el-row"), I = _("el-form"), N = _("el-dialog");
157
- return $(), G(N, {
152
+ return T({
153
+ openDialog: n,
154
+ handleClose: u
155
+ }), (h, d) => {
156
+ const x = b("el-input"), R = b("el-form-item"), M = b("el-col"), c = b("el-row"), $ = b("el-form"), N = b("el-dialog");
157
+ return L(), J(N, {
158
158
  class: "api-form-dialog",
159
159
  modelValue: o.value,
160
- "onUpdate:modelValue": c[2] || (c[2] = (S) => o.value = S),
161
- "before-close": d,
160
+ "onUpdate:modelValue": d[2] || (d[2] = (I) => o.value = I),
161
+ "before-close": u,
162
162
  "destroy-on-close": "",
163
163
  "show-close": !1
164
164
  }, {
165
- header: a(() => c[3] || (c[3] = [])),
165
+ header: a(() => d[3] || (d[3] = [])),
166
166
  default: a(() => [
167
- n("div", Xe, [
168
- n("div", Ge, [
169
- t(I, {
167
+ s("div", Ge, [
168
+ s("div", Je, [
169
+ t($, {
170
170
  class: "api-edit-form",
171
171
  ref_key: "apiFormRef",
172
- ref: V,
172
+ ref: U,
173
173
  model: f.value,
174
- rules: U
174
+ rules: V
175
175
  }, {
176
176
  default: a(() => [
177
- t(F, { gutter: 20 }, {
177
+ t(c, { gutter: 20 }, {
178
178
  default: a(() => [
179
- t(u, { span: 12 }, {
179
+ t(M, { span: 12 }, {
180
180
  default: a(() => [
181
- t(D, {
181
+ t(R, {
182
182
  prop: "host",
183
183
  label: "主机名",
184
184
  "label-position": "top"
185
185
  }, {
186
186
  default: a(() => [
187
- t(R, {
187
+ t(x, {
188
188
  modelValue: f.value.host,
189
- "onUpdate:modelValue": c[0] || (c[0] = (S) => f.value.host = S),
189
+ "onUpdate:modelValue": d[0] || (d[0] = (I) => f.value.host = I),
190
190
  "aria-label": "主机名",
191
191
  placeholder: "主机名"
192
192
  }, null, 8, ["modelValue"])
@@ -196,17 +196,17 @@ const We = () => ({ initUrlInfo: () => ({
196
196
  ]),
197
197
  _: 1
198
198
  }),
199
- t(u, { span: 12 }, {
199
+ t(M, { span: 12 }, {
200
200
  default: a(() => [
201
- t(D, {
201
+ t(R, {
202
202
  prop: "port",
203
203
  label: "端口",
204
204
  "label-position": "top"
205
205
  }, {
206
206
  default: a(() => [
207
- t(R, {
207
+ t(x, {
208
208
  modelValue: f.value.port,
209
- "onUpdate:modelValue": c[1] || (c[1] = (S) => f.value.port = S),
209
+ "onUpdate:modelValue": d[1] || (d[1] = (I) => f.value.port = I),
210
210
  "aria-label": "端口",
211
211
  placeholder: "端口"
212
212
  }, null, 8, ["modelValue"])
@@ -226,20 +226,20 @@ const We = () => ({ initUrlInfo: () => ({
226
226
  ])
227
227
  ]),
228
228
  footer: a(() => [
229
- n("div", Je, [
230
- c[4] || (c[4] = n("div", { class: "footer-left" }, null, -1)),
231
- n("div", Ye, [
232
- t(J, {
229
+ s("div", Ye, [
230
+ d[4] || (d[4] = s("div", { class: "footer-left" }, null, -1)),
231
+ s("div", Ze, [
232
+ t(Y, {
233
233
  class: "cancel",
234
234
  emptyColor: !0,
235
- onClickTrigger: d,
235
+ onClickTrigger: u,
236
236
  modelValue: "取消",
237
237
  buttonType: "info"
238
238
  }),
239
- t(J, {
239
+ t(Y, {
240
240
  class: "confirm",
241
241
  emptyColor: !0,
242
- onClickTrigger: L,
242
+ onClickTrigger: A,
243
243
  modelValue: "确定",
244
244
  buttonType: "primary"
245
245
  })
@@ -250,19 +250,19 @@ const We = () => ({ initUrlInfo: () => ({
250
250
  }, 8, ["modelValue"]);
251
251
  };
252
252
  }
253
- }), et = /* @__PURE__ */ H(Ze, [["__scopeId", "data-v-20c1098b"]]), tt = { class: "dialog-header" }, ot = { class: "dialog-subtitle" }, at = {
253
+ }), tt = /* @__PURE__ */ H(et, [["__scopeId", "data-v-20c1098b"]]), ot = { class: "dialog-header" }, at = { class: "dialog-subtitle" }, lt = {
254
254
  key: 0,
255
255
  class: "restart-panel"
256
- }, st = { class: "restart-title" }, lt = { class: "restart-subtitle" }, nt = {
256
+ }, st = { class: "restart-title" }, nt = { class: "restart-subtitle" }, it = {
257
257
  key: 1,
258
258
  class: "dialog-body"
259
- }, it = { class: "db-type-selector" }, rt = { key: "sqlite" }, ct = { key: "pgsql" }, ut = {
259
+ }, rt = { class: "db-type-selector" }, ct = { key: "sqlite" }, ut = { key: "pgsql" }, dt = {
260
260
  key: 0,
261
261
  class: "dialog-footer"
262
- }, dt = 6e4, pe = 2e3, pt = /* @__PURE__ */ X({
262
+ }, pt = 6e4, pe = 2e3, mt = /* @__PURE__ */ W({
263
263
  __name: "index",
264
- setup(y, { expose: w }) {
265
- const m = le(W), { systemUrl: p } = se(m), C = Q(() => p.value || "http://222.92.178.198:63002"), e = oe({
264
+ setup(y, { expose: T }) {
265
+ const m = ne(Q), { systemUrl: p } = se(m), C = G(() => p.value || "http://222.92.178.198:63002"), e = le({
266
266
  databaseType: "sqlite",
267
267
  sqliteDir: "sqlite-data",
268
268
  user: "",
@@ -270,157 +270,157 @@ const We = () => ({ initUrlInfo: () => ({
270
270
  database: "",
271
271
  password: "",
272
272
  port: "5432"
273
- }), v = Q(() => e.databaseType === "sqlite" ? {
273
+ }), v = G(() => e.databaseType === "sqlite" ? {
274
274
  sqliteDir: [{ required: !0, message: "请输入数据库目录", trigger: "blur" }]
275
275
  } : {
276
276
  host: [{ required: !0, message: "请输入主机地址", trigger: "blur" }],
277
277
  port: [{ required: !0, message: "请输入端口号", trigger: "blur" }],
278
278
  database: [{ required: !0, message: "请输入数据库名", trigger: "blur" }],
279
279
  user: [{ required: !0, message: "请输入用户名", trigger: "blur" }]
280
- }), k = b(null), f = b(!1), V = b(!1), U = b(!1), h = b(!1), i = b(0), o = b("running"), l = b(1);
280
+ }), k = _(null), f = _(!1), U = _(!1), V = _(!1), w = _(!1), i = _(0), o = _("running"), n = _(1);
281
281
  let r = null;
282
- const d = Q(() => o.value === "success" ? "重启成功!" : o.value === "timeout" ? "连接超时" : "正在应用配置并等待服务重新启动中..."), L = Q(() => o.value === "success" ? "服务已恢复,配置已生效" : o.value === "timeout" ? "超过最大等待时间,请手动检查服务状态" : "请稍后" + ".".repeat(l.value));
283
- let T = null, c = null;
284
- const R = () => {
282
+ const u = G(() => o.value === "success" ? "重启成功!" : o.value === "timeout" ? "连接超时" : "正在应用配置并等待服务重新启动中..."), A = G(() => o.value === "success" ? "服务已恢复,配置已生效" : o.value === "timeout" ? "超过最大等待时间,请手动检查服务状态" : "请稍后" + ".".repeat(n.value));
283
+ let h = null, d = null;
284
+ const x = () => {
285
285
  r && (clearInterval(r), r = null);
286
- }, D = () => {
287
- T && (clearInterval(T), T = null), c && (clearInterval(c), c = null), R();
288
- }, u = () => {
286
+ }, R = () => {
287
+ h && (clearInterval(h), h = null), d && (clearInterval(d), d = null), x();
288
+ }, M = () => {
289
289
  i.value = 0;
290
290
  let g = 0;
291
- T = setInterval(() => {
291
+ h = setInterval(() => {
292
292
  g += 100;
293
- const s = 90 * (1 - Math.exp(-g / 8e3));
294
- i.value = Math.min(parseFloat(s.toFixed(1)), 90);
293
+ const l = 90 * (1 - Math.exp(-g / 8e3));
294
+ i.value = Math.min(parseFloat(l.toFixed(1)), 90);
295
295
  }, 100);
296
- }, F = () => {
297
- l.value = 1, r = setInterval(() => {
298
- l.value = l.value >= 3 ? 1 : l.value + 1;
296
+ }, c = () => {
297
+ n.value = 1, r = setInterval(() => {
298
+ n.value = n.value >= 3 ? 1 : n.value + 1;
299
299
  }, 500);
300
- }, I = () => {
301
- R();
300
+ }, $ = () => {
301
+ x();
302
302
  const g = setInterval(() => {
303
303
  i.value = Math.min(i.value + 3, 100), i.value >= 100 && (clearInterval(g), o.value = "success");
304
304
  }, 30);
305
305
  }, N = () => {
306
306
  let g = 0;
307
- c = setInterval(async () => {
308
- if (g += pe, g >= dt) {
309
- D(), o.value = "timeout";
307
+ d = setInterval(async () => {
308
+ if (g += pe, g >= pt) {
309
+ R(), o.value = "timeout";
310
310
  return;
311
311
  }
312
312
  try {
313
- const { data: s } = await ie.get(C.value + "/platform/config/db", { timeout: 3e3 });
314
- (s == null ? void 0 : s.code) === 200 && (D(), I());
313
+ const { data: l } = await re.get(C.value + "/platform/config/db", { timeout: 3e3 });
314
+ (l == null ? void 0 : l.code) === 200 && (R(), $());
315
315
  } catch {
316
316
  }
317
317
  }, pe);
318
- }, S = async () => {
318
+ }, I = async () => {
319
319
  try {
320
- V.value = !0;
321
- const { data: g } = await ie.get(C.value + "/platform/config/db");
320
+ U.value = !0;
321
+ const { data: g } = await re.get(C.value + "/platform/config/db");
322
322
  if ((g == null ? void 0 : g.code) === 200 && (g != null && g.data)) {
323
- const s = g.data;
324
- e.databaseType = s.databaseType === "pgsql" ? "pgsql" : "sqlite", e.sqliteDir = s.sqliteDir || "sqlite-data", e.user = s.user || "", e.host = s.host || "", e.database = s.database || "", e.password = s.password || "", e.port = String(s.port || 5432);
323
+ const l = g.data;
324
+ e.databaseType = l.databaseType === "pgsql" ? "pgsql" : "sqlite", e.sqliteDir = l.sqliteDir || "sqlite-data", e.user = l.user || "", e.host = l.host || "", e.database = l.database || "", e.password = l.password || "", e.port = String(l.port || 5432);
325
325
  }
326
326
  } catch {
327
327
  } finally {
328
- V.value = !1;
328
+ U.value = !1;
329
329
  }
330
- }, Z = () => {
331
- h.value = !1, o.value = "running", i.value = 0, l.value = 1, f.value = !0, S();
332
- }, K = () => {
333
- D(), f.value = !1;
334
- }, ue = () => K(), fe = (g) => {
335
- h.value || g();
330
+ }, te = () => {
331
+ w.value = !1, o.value = "running", i.value = 0, n.value = 1, f.value = !0, I();
332
+ }, X = () => {
333
+ R(), f.value = !1;
334
+ }, j = () => X(), fe = (g) => {
335
+ w.value || g();
336
336
  }, ve = async () => {
337
- var g, s, j;
337
+ var g, l, K;
338
338
  await ((g = k.value) == null ? void 0 : g.validate());
339
339
  try {
340
- U.value = !0;
341
- const A = { databaseType: e.databaseType };
342
- e.databaseType === "sqlite" ? A.sqliteDir = e.sqliteDir.trim() : (A.user = e.user.trim(), A.host = e.host.trim(), A.database = e.database.trim(), A.password = e.password, A.port = Number(e.port)), await ie.post(C.value + "/platform/config/db", A), h.value = !0, o.value = "running", u(), F(), setTimeout(N, 1e3);
343
- } catch (A) {
344
- const B = ((j = (s = A == null ? void 0 : A.response) == null ? void 0 : s.data) == null ? void 0 : j.message) || "保存失败,请重试";
345
- re.error(B);
340
+ V.value = !0;
341
+ const D = { databaseType: e.databaseType };
342
+ e.databaseType === "sqlite" ? D.sqliteDir = e.sqliteDir.trim() : (D.user = e.user.trim(), D.host = e.host.trim(), D.database = e.database.trim(), D.password = e.password, D.port = Number(e.port)), await re.post(C.value + "/platform/config/db", D), w.value = !0, o.value = "running", M(), c(), setTimeout(N, 1e3);
343
+ } catch (D) {
344
+ const B = ((K = (l = D == null ? void 0 : D.response) == null ? void 0 : l.data) == null ? void 0 : K.message) || "保存失败,请重试";
345
+ ce.error(B);
346
346
  } finally {
347
- U.value = !1;
347
+ V.value = !1;
348
348
  }
349
349
  };
350
- return w({ openDialog: Z, handleClose: ue }), (g, s) => {
351
- const j = _("el-icon"), A = _("el-progress"), B = _("el-input"), z = _("el-form-item"), ee = _("el-col"), de = _("el-row"), ge = _("el-form"), _e = _("el-dialog"), be = ye("loading");
352
- return $(), G(_e, {
350
+ return T({ openDialog: te, handleClose: j }), (g, l) => {
351
+ const K = b("el-icon"), D = b("el-progress"), B = b("el-input"), z = b("el-form-item"), oe = b("el-col"), de = b("el-row"), ge = b("el-form"), _e = b("el-dialog"), be = ye("loading");
352
+ return L(), J(_e, {
353
353
  class: "db-config-dialog",
354
354
  modelValue: f.value,
355
- "onUpdate:modelValue": s[8] || (s[8] = (q) => f.value = q),
355
+ "onUpdate:modelValue": l[8] || (l[8] = (q) => f.value = q),
356
356
  "before-close": fe,
357
- "close-on-click-modal": !h.value,
358
- "close-on-press-escape": !h.value,
357
+ "close-on-click-modal": !w.value,
358
+ "close-on-press-escape": !w.value,
359
359
  "destroy-on-close": "",
360
360
  "show-close": !1,
361
361
  width: "480px"
362
362
  }, {
363
363
  header: a(() => [
364
- n("div", tt, [
365
- s[9] || (s[9] = n("span", { class: "dialog-title" }, "数据库配置", -1)),
366
- n("span", ot, E(h.value ? "" : "修改后服务将自动重启"), 1)
364
+ s("div", ot, [
365
+ l[9] || (l[9] = s("span", { class: "dialog-title" }, "数据库配置", -1)),
366
+ s("span", at, S(w.value ? "" : "修改后服务将自动重启"), 1)
367
367
  ])
368
368
  ]),
369
369
  default: a(() => [
370
- h.value ? ($(), x("div", at, [
371
- o.value !== "running" ? ($(), x("div", {
370
+ w.value ? (L(), F("div", lt, [
371
+ o.value !== "running" ? (L(), F("div", {
372
372
  key: 0,
373
- class: ne(["restart-icon-wrap", { success: o.value === "success", error: o.value === "timeout" }])
373
+ class: ie(["restart-icon-wrap", { success: o.value === "success", error: o.value === "timeout" }])
374
374
  }, [
375
- o.value === "success" ? ($(), G(j, {
375
+ o.value === "success" ? (L(), J(K, {
376
376
  key: 0,
377
377
  class: "restart-icon"
378
378
  }, {
379
379
  default: a(() => [
380
- t(P(Le))
380
+ t(P(qe))
381
381
  ]),
382
382
  _: 1
383
- })) : ($(), G(j, {
383
+ })) : (L(), J(K, {
384
384
  key: 1,
385
385
  class: "restart-icon"
386
386
  }, {
387
387
  default: a(() => [
388
- t(P(qe))
388
+ t(P(Ae))
389
389
  ]),
390
390
  _: 1
391
391
  }))
392
- ], 2)) : te("", !0),
393
- n("div", st, E(d.value), 1),
394
- n("div", lt, E(L.value), 1),
395
- t(A, {
392
+ ], 2)) : ae("", !0),
393
+ s("div", st, S(u.value), 1),
394
+ s("div", nt, S(A.value), 1),
395
+ t(D, {
396
396
  class: "restart-progress",
397
397
  percentage: Math.round(i.value),
398
398
  status: o.value === "success" ? "success" : o.value === "timeout" ? "exception" : "",
399
399
  "stroke-width": 10
400
400
  }, null, 8, ["percentage", "status"]),
401
- o.value === "success" || o.value === "timeout" ? ($(), G(J, {
401
+ o.value === "success" || o.value === "timeout" ? (L(), J(Y, {
402
402
  key: 1,
403
403
  class: "restart-close-btn",
404
404
  emptyColor: !0,
405
- onClickTrigger: K,
405
+ onClickTrigger: X,
406
406
  modelValue: o.value === "success" ? "确定" : "关闭",
407
407
  buttonType: o.value === "success" ? "primary" : "info"
408
- }, null, 8, ["modelValue", "buttonType"])) : te("", !0)
409
- ])) : he(($(), x("div", nt, [
410
- n("div", it, [
411
- n("div", {
412
- class: ne(["db-type-card", { active: e.databaseType === "sqlite" }]),
413
- onClick: s[0] || (s[0] = (q) => e.databaseType = "sqlite")
414
- }, s[10] || (s[10] = [
415
- n("span", { class: "db-label" }, "SQLite", -1),
416
- n("span", { class: "db-desc" }, "本地文件数据库", -1)
408
+ }, null, 8, ["modelValue", "buttonType"])) : ae("", !0)
409
+ ])) : he((L(), F("div", it, [
410
+ s("div", rt, [
411
+ s("div", {
412
+ class: ie(["db-type-card", { active: e.databaseType === "sqlite" }]),
413
+ onClick: l[0] || (l[0] = (q) => e.databaseType = "sqlite")
414
+ }, l[10] || (l[10] = [
415
+ s("span", { class: "db-label" }, "SQLite", -1),
416
+ s("span", { class: "db-desc" }, "本地文件数据库", -1)
417
417
  ]), 2),
418
- n("div", {
419
- class: ne(["db-type-card", { active: e.databaseType === "pgsql" }]),
420
- onClick: s[1] || (s[1] = (q) => e.databaseType = "pgsql")
421
- }, s[11] || (s[11] = [
422
- n("span", { class: "db-label" }, "PostgreSQL", -1),
423
- n("span", { class: "db-desc" }, "远程关系型数据库", -1)
418
+ s("div", {
419
+ class: ie(["db-type-card", { active: e.databaseType === "pgsql" }]),
420
+ onClick: l[1] || (l[1] = (q) => e.databaseType = "pgsql")
421
+ }, l[11] || (l[11] = [
422
+ s("span", { class: "db-label" }, "PostgreSQL", -1),
423
+ s("span", { class: "db-desc" }, "远程关系型数据库", -1)
424
424
  ]), 2)
425
425
  ]),
426
426
  t(ge, {
@@ -437,7 +437,7 @@ const We = () => ({ initUrlInfo: () => ({
437
437
  mode: "out-in"
438
438
  }, {
439
439
  default: a(() => [
440
- e.databaseType === "sqlite" ? ($(), x("div", rt, [
440
+ e.databaseType === "sqlite" ? (L(), F("div", ct, [
441
441
  t(z, {
442
442
  label: "数据库目录",
443
443
  prop: "sqliteDir"
@@ -445,29 +445,29 @@ const We = () => ({ initUrlInfo: () => ({
445
445
  default: a(() => [
446
446
  t(B, {
447
447
  modelValue: e.sqliteDir,
448
- "onUpdate:modelValue": s[2] || (s[2] = (q) => e.sqliteDir = q),
448
+ "onUpdate:modelValue": l[2] || (l[2] = (q) => e.sqliteDir = q),
449
449
  placeholder: "例如:sqlite-data",
450
450
  clearable: ""
451
451
  }, {
452
452
  prefix: a(() => [
453
- t(j, null, {
453
+ t(K, null, {
454
454
  default: a(() => [
455
- t(P(Ae))
455
+ t(P(Ie))
456
456
  ]),
457
457
  _: 1
458
458
  })
459
459
  ]),
460
460
  _: 1
461
461
  }, 8, ["modelValue"]),
462
- s[12] || (s[12] = n("div", { class: "field-hint" }, "相对于后端 exe 所在目录的路径", -1))
462
+ l[12] || (l[12] = s("div", { class: "field-hint" }, "相对于后端 exe 所在目录的路径", -1))
463
463
  ]),
464
464
  _: 1,
465
465
  __: [12]
466
466
  })
467
- ])) : ($(), x("div", ct, [
467
+ ])) : (L(), F("div", ut, [
468
468
  t(de, { gutter: 16 }, {
469
469
  default: a(() => [
470
- t(ee, { span: 16 }, {
470
+ t(oe, { span: 16 }, {
471
471
  default: a(() => [
472
472
  t(z, {
473
473
  label: "主机地址",
@@ -476,7 +476,7 @@ const We = () => ({ initUrlInfo: () => ({
476
476
  default: a(() => [
477
477
  t(B, {
478
478
  modelValue: e.host,
479
- "onUpdate:modelValue": s[3] || (s[3] = (q) => e.host = q),
479
+ "onUpdate:modelValue": l[3] || (l[3] = (q) => e.host = q),
480
480
  placeholder: "127.0.0.1",
481
481
  clearable: ""
482
482
  }, null, 8, ["modelValue"])
@@ -486,7 +486,7 @@ const We = () => ({ initUrlInfo: () => ({
486
486
  ]),
487
487
  _: 1
488
488
  }),
489
- t(ee, { span: 8 }, {
489
+ t(oe, { span: 8 }, {
490
490
  default: a(() => [
491
491
  t(z, {
492
492
  label: "端口",
@@ -495,7 +495,7 @@ const We = () => ({ initUrlInfo: () => ({
495
495
  default: a(() => [
496
496
  t(B, {
497
497
  modelValue: e.port,
498
- "onUpdate:modelValue": s[4] || (s[4] = (q) => e.port = q),
498
+ "onUpdate:modelValue": l[4] || (l[4] = (q) => e.port = q),
499
499
  placeholder: "5432",
500
500
  clearable: ""
501
501
  }, null, 8, ["modelValue"])
@@ -515,7 +515,7 @@ const We = () => ({ initUrlInfo: () => ({
515
515
  default: a(() => [
516
516
  t(B, {
517
517
  modelValue: e.database,
518
- "onUpdate:modelValue": s[5] || (s[5] = (q) => e.database = q),
518
+ "onUpdate:modelValue": l[5] || (l[5] = (q) => e.database = q),
519
519
  placeholder: "new_insofworks_admin",
520
520
  clearable: ""
521
521
  }, null, 8, ["modelValue"])
@@ -524,7 +524,7 @@ const We = () => ({ initUrlInfo: () => ({
524
524
  }),
525
525
  t(de, { gutter: 16 }, {
526
526
  default: a(() => [
527
- t(ee, { span: 12 }, {
527
+ t(oe, { span: 12 }, {
528
528
  default: a(() => [
529
529
  t(z, {
530
530
  label: "用户名",
@@ -533,7 +533,7 @@ const We = () => ({ initUrlInfo: () => ({
533
533
  default: a(() => [
534
534
  t(B, {
535
535
  modelValue: e.user,
536
- "onUpdate:modelValue": s[6] || (s[6] = (q) => e.user = q),
536
+ "onUpdate:modelValue": l[6] || (l[6] = (q) => e.user = q),
537
537
  placeholder: "postgres",
538
538
  clearable: ""
539
539
  }, null, 8, ["modelValue"])
@@ -543,7 +543,7 @@ const We = () => ({ initUrlInfo: () => ({
543
543
  ]),
544
544
  _: 1
545
545
  }),
546
- t(ee, { span: 12 }, {
546
+ t(oe, { span: 12 }, {
547
547
  default: a(() => [
548
548
  t(z, {
549
549
  label: "密码",
@@ -552,7 +552,7 @@ const We = () => ({ initUrlInfo: () => ({
552
552
  default: a(() => [
553
553
  t(B, {
554
554
  modelValue: e.password,
555
- "onUpdate:modelValue": s[7] || (s[7] = (q) => e.password = q),
555
+ "onUpdate:modelValue": l[7] || (l[7] = (q) => e.password = q),
556
556
  type: "password",
557
557
  "show-password": "",
558
558
  clearable: ""
@@ -574,20 +574,20 @@ const We = () => ({ initUrlInfo: () => ({
574
574
  _: 1
575
575
  }, 8, ["model", "rules"])
576
576
  ])), [
577
- [be, V.value]
577
+ [be, U.value]
578
578
  ])
579
579
  ]),
580
580
  footer: a(() => [
581
- h.value ? te("", !0) : ($(), x("div", ut, [
582
- t(J, {
581
+ w.value ? ae("", !0) : (L(), F("div", dt, [
582
+ t(Y, {
583
583
  emptyColor: !0,
584
- onClickTrigger: ue,
584
+ onClickTrigger: j,
585
585
  modelValue: "取消",
586
586
  buttonType: "info"
587
587
  }),
588
- t(J, {
588
+ t(Y, {
589
589
  emptyColor: !0,
590
- loading: U.value,
590
+ loading: V.value,
591
591
  onClickTrigger: ve,
592
592
  modelValue: "保存并重启",
593
593
  buttonType: "primary"
@@ -598,7 +598,7 @@ const We = () => ({ initUrlInfo: () => ({
598
598
  }, 8, ["modelValue", "close-on-click-modal", "close-on-press-escape"]);
599
599
  };
600
600
  }
601
- }), mt = /* @__PURE__ */ H(pt, [["__scopeId", "data-v-35ac885d"]]), ft = { class: "account-wrap" }, vt = { class: "extra-operate" }, gt = /* @__PURE__ */ X({
601
+ }), ft = /* @__PURE__ */ H(mt, [["__scopeId", "data-v-01b4eb9b"]]), vt = { class: "account-wrap" }, gt = { class: "extra-operate" }, _t = /* @__PURE__ */ W({
602
602
  __name: "index",
603
603
  props: {
604
604
  activeTabName: {
@@ -611,53 +611,53 @@ const We = () => ({ initUrlInfo: () => ({
611
611
  }
612
612
  },
613
613
  emits: ["handleLoginFormChange", "updateApiUrl"],
614
- setup(y, { emit: w }) {
615
- const m = y, p = oe({
614
+ setup(y, { emit: T }) {
615
+ const m = y, p = le({
616
616
  account: "",
617
617
  password: ""
618
- }), C = oe({
618
+ }), C = le({
619
619
  account: [
620
620
  { required: !0, message: "请输入账号", trigger: "blur" }
621
621
  ],
622
622
  password: [
623
623
  { required: !0, message: "请输入密码", trigger: "blur" }
624
624
  ]
625
- }), e = b(null), v = w;
626
- ae(() => m.isClickLogin, (i) => {
625
+ }), e = _(null), v = T;
626
+ ee(() => m.isClickLogin, (i) => {
627
627
  var o;
628
- i && (m == null ? void 0 : m.activeTabName) === "account" && ((o = e.value) == null || o.validate((l) => {
628
+ i && (m == null ? void 0 : m.activeTabName) === "account" && ((o = e.value) == null || o.validate((n) => {
629
629
  var r;
630
- for (let d in p)
631
- p.hasOwnProperty(d) && (p[d] = (r = p[d]) == null ? void 0 : r.trim());
632
- v("handleLoginFormChange", l, l ? p : null);
630
+ for (let u in p)
631
+ p.hasOwnProperty(u) && (p[u] = (r = p[u]) == null ? void 0 : r.trim());
632
+ v("handleLoginFormChange", n, n ? p : null);
633
633
  }));
634
634
  }, {
635
635
  immediate: !0
636
- }), ae(() => m.activeTabName, (i) => {
636
+ }), ee(() => m.activeTabName, (i) => {
637
637
  var o;
638
638
  i === "account" && ((o = e.value) == null || o.resetFields());
639
639
  });
640
- const k = b(), f = () => {
640
+ const k = _(), f = () => {
641
641
  var i, o;
642
642
  (o = (i = k.value) == null ? void 0 : i.openDialog) == null || o.call(i);
643
- }, V = (i) => {
643
+ }, U = (i) => {
644
644
  v("updateApiUrl", i);
645
- }, U = b(), h = () => {
645
+ }, V = _(), w = () => {
646
646
  var i, o;
647
- (o = (i = U.value) == null ? void 0 : i.openDialog) == null || o.call(i);
647
+ (o = (i = V.value) == null ? void 0 : i.openDialog) == null || o.call(i);
648
648
  };
649
649
  return (i, o) => {
650
- const l = _("svg-icon"), r = _("el-input"), d = _("el-form-item"), L = _("el-form"), T = _("el-link");
651
- return $(), x(Te, null, [
652
- n("div", ft, [
653
- t(L, {
650
+ const n = b("svg-icon"), r = b("el-input"), u = b("el-form-item"), A = b("el-form"), h = b("el-link");
651
+ return L(), F(we, null, [
652
+ s("div", vt, [
653
+ t(A, {
654
654
  model: p,
655
655
  rules: C,
656
656
  ref_key: "formRef",
657
657
  ref: e
658
658
  }, {
659
659
  default: a(() => [
660
- t(d, {
660
+ t(u, {
661
661
  label: "",
662
662
  prop: "account"
663
663
  }, {
@@ -665,12 +665,12 @@ const We = () => ({ initUrlInfo: () => ({
665
665
  t(r, {
666
666
  class: "account-input",
667
667
  modelValue: p.account,
668
- "onUpdate:modelValue": o[0] || (o[0] = (c) => p.account = c),
668
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => p.account = d),
669
669
  placeholder: "请输入账号",
670
670
  clearable: ""
671
671
  }, {
672
672
  prefix: a(() => [
673
- t(l, {
673
+ t(n, {
674
674
  name: "account",
675
675
  style: { width: "15px", height: "15px" }
676
676
  })
@@ -680,7 +680,7 @@ const We = () => ({ initUrlInfo: () => ({
680
680
  ]),
681
681
  _: 1
682
682
  }),
683
- t(d, {
683
+ t(u, {
684
684
  label: "",
685
685
  prop: "password"
686
686
  }, {
@@ -688,14 +688,14 @@ const We = () => ({ initUrlInfo: () => ({
688
688
  t(r, {
689
689
  class: "account-input",
690
690
  modelValue: p.password,
691
- "onUpdate:modelValue": o[1] || (o[1] = (c) => p.password = c),
691
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => p.password = d),
692
692
  type: "password",
693
693
  placeholder: "请输入密码",
694
694
  "show-password": "",
695
695
  clearable: ""
696
696
  }, {
697
697
  prefix: a(() => [
698
- t(l, {
698
+ t(n, {
699
699
  name: "password",
700
700
  style: { width: "15px", height: "15px" }
701
701
  })
@@ -708,8 +708,8 @@ const We = () => ({ initUrlInfo: () => ({
708
708
  ]),
709
709
  _: 1
710
710
  }, 8, ["model", "rules"]),
711
- n("div", vt, [
712
- t(T, {
711
+ s("div", gt, [
712
+ t(h, {
713
713
  class: "api-button",
714
714
  type: "primary",
715
715
  onClick: f
@@ -720,10 +720,10 @@ const We = () => ({ initUrlInfo: () => ({
720
720
  _: 1,
721
721
  __: [2]
722
722
  }),
723
- t(T, {
723
+ t(h, {
724
724
  class: "db-button",
725
725
  type: "primary",
726
- onClick: h
726
+ onClick: w
727
727
  }, {
728
728
  default: a(() => o[3] || (o[3] = [
729
729
  O("数据库配置")
@@ -733,19 +733,19 @@ const We = () => ({ initUrlInfo: () => ({
733
733
  })
734
734
  ])
735
735
  ]),
736
- t(et, {
736
+ t(tt, {
737
737
  ref_key: "apiFormDialogRef",
738
738
  ref: k,
739
- onUpdateApiUrl: V
739
+ onUpdateApiUrl: U
740
740
  }, null, 512),
741
- t(mt, {
741
+ t(ft, {
742
742
  ref_key: "dbConfigDialogRef",
743
- ref: U
743
+ ref: V
744
744
  }, null, 512)
745
745
  ], 64);
746
746
  };
747
747
  }
748
- }), _t = /* @__PURE__ */ H(gt, [["__scopeId", "data-v-101a522a"]]), bt = { class: "account-wrap" }, yt = { class: "video-wrap" }, ht = /* @__PURE__ */ X({
748
+ }), bt = /* @__PURE__ */ H(_t, [["__scopeId", "data-v-101a522a"]]), yt = { class: "account-wrap" }, ht = { class: "video-wrap" }, Ct = /* @__PURE__ */ W({
749
749
  __name: "index",
750
750
  props: {
751
751
  systemKey: { default: "" },
@@ -753,54 +753,54 @@ const We = () => ({ initUrlInfo: () => ({
753
753
  isClickLogin: { type: Boolean, default: !1 }
754
754
  },
755
755
  emits: ["handleLoginFormChange"],
756
- setup(y, { emit: w }) {
757
- const m = y, p = w;
758
- le(W);
759
- const { initVerify: C } = Ie(), e = b(null), v = b(null);
756
+ setup(y, { emit: T }) {
757
+ const m = y, p = T;
758
+ ne(Q);
759
+ const { initVerify: C } = De(), e = _(null), v = _(null);
760
760
  let k = !1, f = null;
761
- const V = async (l) => {
762
- if (!l)
761
+ const U = async (n) => {
762
+ if (!n)
763
763
  return;
764
- const r = await C(l), { data: d } = r || {}, { account: L, password: T } = (d == null ? void 0 : d.data) || {}, c = d == null ? void 0 : d.msg;
765
- if (!L) {
766
- re.warning(c || "识别失败,请重新识别!");
764
+ const r = await C(n), { data: u } = r || {}, { account: A, password: h } = (u == null ? void 0 : u.data) || {}, d = u == null ? void 0 : u.msg;
765
+ if (!A) {
766
+ ce.warning(d || "识别失败,请重新识别!");
767
767
  return;
768
768
  }
769
769
  p("handleLoginFormChange", !0, {
770
- account: L,
771
- password: T
770
+ account: A,
771
+ password: h
772
772
  });
773
- }, U = () => {
773
+ }, V = () => {
774
774
  if (!v.value || !e.value)
775
775
  return;
776
- const l = v.value, r = l.getContext("2d"), d = e.value;
777
- l.width = 200, l.height = 200;
778
- const L = d.videoWidth || 640, T = d.videoHeight || 480, c = Math.min(200 / L, 200 / T), R = L * c, D = T * c, u = (200 - R) / 2, F = (200 - D) / 2;
779
- r == null || r.drawImage(d, 0, 0, L, T, u, F, R, D), l.toBlob((I) => {
780
- if (I) {
781
- const N = new File([I], "face.png", { type: "image/png" });
782
- V(N);
776
+ const n = v.value, r = n.getContext("2d"), u = e.value;
777
+ n.width = 200, n.height = 200;
778
+ const A = u.videoWidth || 640, h = u.videoHeight || 480, d = Math.min(200 / A, 200 / h), x = A * d, R = h * d, M = (200 - x) / 2, c = (200 - R) / 2;
779
+ r == null || r.drawImage(u, 0, 0, A, h, M, c, x, R), n.toBlob(($) => {
780
+ if ($) {
781
+ const N = new File([$], "face.png", { type: "image/png" });
782
+ U(N);
783
783
  }
784
784
  }, "image/png");
785
- }, h = async () => {
785
+ }, w = async () => {
786
786
  if (!e.value || k)
787
787
  return;
788
- const l = e.value;
788
+ const n = e.value;
789
789
  try {
790
790
  if (f = await navigator.mediaDevices.getUserMedia({
791
791
  video: { facingMode: "user" },
792
792
  // 前置;后置用 'environment'
793
793
  audio: !1
794
- }), l) {
795
- const r = l;
794
+ }), n) {
795
+ const r = n;
796
796
  r.srcObject = f, k = !0;
797
797
  }
798
798
  } catch {
799
- re.warning("摄像头启动失败");
799
+ ce.warning("摄像头启动失败");
800
800
  }
801
801
  };
802
- function i(l) {
803
- if (l && (l.getTracks().forEach((r) => r.stop()), e.value)) {
802
+ function i(n) {
803
+ if (n && (n.getTracks().forEach((r) => r.stop()), e.value)) {
804
804
  const r = e.value;
805
805
  r.srcObject = null;
806
806
  }
@@ -808,20 +808,20 @@ const We = () => ({ initUrlInfo: () => ({
808
808
  const o = () => {
809
809
  i(f), k = !1;
810
810
  };
811
- return ae(() => m.activeTabName, (l) => {
812
- if (l !== Y.FACE) {
811
+ return ee(() => m.activeTabName, (n) => {
812
+ if (n !== Z.FACE) {
813
813
  o();
814
814
  return;
815
815
  }
816
- if (l === Y.FACE && !k) {
817
- h();
816
+ if (n === Z.FACE && !k) {
817
+ w();
818
818
  return;
819
819
  }
820
- }), we(() => {
820
+ }), Te(() => {
821
821
  o();
822
- }), (l, r) => ($(), x("div", bt, [
823
- n("div", yt, [
824
- n("video", {
822
+ }), (n, r) => (L(), F("div", yt, [
823
+ s("div", ht, [
824
+ s("video", {
825
825
  class: "face-video",
826
826
  ref_key: "videoRef",
827
827
  ref: e,
@@ -830,34 +830,43 @@ const We = () => ({ initUrlInfo: () => ({
830
830
  playsinline: ""
831
831
  }, null, 512)
832
832
  ]),
833
- M(l.$slots, "default", {}, () => [
834
- n("button", {
833
+ E(n.$slots, "default", {}, () => [
834
+ s("button", {
835
835
  class: "face-screenshot",
836
- onClick: U
836
+ onClick: V
837
837
  }, "人脸识别")
838
838
  ], !0),
839
- n("canvas", {
839
+ s("canvas", {
840
840
  ref_key: "canvasRef",
841
841
  ref: v,
842
842
  id: "canvas"
843
843
  }, null, 512)
844
844
  ]));
845
845
  }
846
- }), Ct = /* @__PURE__ */ H(ht, [["__scopeId", "data-v-b64bc91c"]]), Tt = { class: "login-wrap" }, wt = { class: "login-body" }, kt = { class: "login-body-item left" }, Vt = { class: "title" }, Ut = { class: "first-level" }, $t = {
846
+ }), wt = /* @__PURE__ */ H(Ct, [["__scopeId", "data-v-b64bc91c"]]), Tt = { class: "login-wrap" }, kt = { class: "login-body" }, Ut = { class: "login-body-item left" }, Vt = { class: "title" }, Lt = { class: "first-level" }, $t = {
847
847
  key: 0,
848
848
  class: "logo"
849
- }, Lt = ["src"], qt = { class: "english-name" }, At = { class: "login-body-item right" }, It = /* @__PURE__ */ X({
849
+ }, qt = ["src"], At = { class: "english-name" }, It = { class: "login-body-item right" }, Dt = /* @__PURE__ */ W({
850
850
  __name: "index",
851
851
  props: {
852
852
  oldSystemKey: {},
853
853
  loginContent: {}
854
854
  },
855
855
  emits: ["change", "projectLogin", "updateApiUrl", "systemContent"],
856
- setup(y, { emit: w }) {
857
- const m = y, p = xe(), C = w, e = ke(W), v = Ve(W), { refreshLogin: k } = se(v), f = le(W), { systemInfo: V, loginUserInfo: U } = se(f), h = Q(() => {
858
- var u;
859
- return ((u = V.value) == null ? void 0 : u.logo) || Ue;
860
- }), i = b({
856
+ setup(y, { emit: T }) {
857
+ const m = y, p = Fe(), C = T, e = ke(Q), v = Ue(Q), { refreshLogin: k } = se(v), f = ne(Q), { systemInfo: U, loginUserInfo: V } = se(f), w = async (c) => {
858
+ const $ = await Le({
859
+ url: c
860
+ });
861
+ return URL.createObjectURL($ == null ? void 0 : $.data);
862
+ }, i = _("");
863
+ ee(() => {
864
+ var c;
865
+ return (c = U.value) == null ? void 0 : c.logo;
866
+ }, async (c) => {
867
+ c ? i.value = await w(c) : i.value = Ve;
868
+ }, { immediate: !0 });
869
+ const o = _({
861
870
  // sysCTitle: 'INSOFWORKS',
862
871
  sysCTitle: "",
863
872
  sysETitle: "",
@@ -880,104 +889,104 @@ const We = () => ({ initUrlInfo: () => ({
880
889
  tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
881
890
  }
882
891
  ]
883
- }), o = b("account"), l = b(!1), r = b(!1), d = () => {
884
- l.value = !0;
885
- }, L = (u, F) => {
886
- l.value = !1, u && c(F);
887
- }, T = async () => (sessionStorage.setItem("loginToken", "111"), !0);
892
+ }), n = _("account"), r = _(!1), u = _(!1), A = () => {
893
+ r.value = !0;
894
+ }, h = (c, $) => {
895
+ r.value = !1, c && x($);
896
+ }, d = async () => (sessionStorage.setItem("loginToken", "111"), !0);
888
897
  me(async () => {
889
- await T();
898
+ await d();
890
899
  });
891
- const c = async (u) => {
892
- var I, N, S, Z;
893
- if (r.value = !0, await De(u)) {
894
- C("projectLogin", u);
895
- let K = await $e();
896
- C("systemContent", K == null ? void 0 : K.allMenuContents), p.push("/"), f.setLogRecordAsync({
900
+ const x = async (c) => {
901
+ var N, I, te, X;
902
+ if (u.value = !0, await xe(c)) {
903
+ C("projectLogin", c);
904
+ let j = await $e();
905
+ C("systemContent", j == null ? void 0 : j.allMenuContents), p.push("/"), f.setLogRecordAsync({
897
906
  type: "登录",
898
907
  data: {
899
- account: ((I = U.value) == null ? void 0 : I.account) ?? ((N = U.value) == null ? void 0 : N.账号),
900
- userName: ((S = U.value) == null ? void 0 : S.姓名) || ((Z = U.value) == null ? void 0 : Z.userName) || "未知"
908
+ account: ((N = V.value) == null ? void 0 : N.account) ?? ((I = V.value) == null ? void 0 : I.账号),
909
+ userName: ((te = V.value) == null ? void 0 : te.姓名) || ((X = V.value) == null ? void 0 : X.userName) || "未知"
901
910
  }
902
911
  }, "/login", "login"), e.setHasClickEditComp(!1);
903
912
  } else
904
- r.value = !1;
905
- r.value = !1;
913
+ u.value = !1;
914
+ u.value = !1;
906
915
  };
907
- ae(
916
+ ee(
908
917
  () => m == null ? void 0 : m.loginContent,
909
918
  () => {
910
- let u = m == null ? void 0 : m.loginContent;
911
- u != null && u.account && (u != null && u.password) && !k.value && c(u);
919
+ let c = m == null ? void 0 : m.loginContent;
920
+ c != null && c.account && (c != null && c.password) && !k.value && x(c);
912
921
  },
913
922
  { deep: !0, immediate: !0 }
914
923
  );
915
- const R = (u) => {
916
- o.value = u, l.value = !1, r.value = !1;
917
- }, D = (u) => {
918
- C("updateApiUrl", u);
924
+ const R = (c) => {
925
+ n.value = c, r.value = !1, u.value = !1;
926
+ }, M = (c) => {
927
+ C("updateApiUrl", c);
919
928
  };
920
- return (u, F) => ($(), x("div", Tt, [
921
- n("div", wt, [
922
- n("div", kt, [
923
- t(Ee, { class: "login-left-bg" }, {
929
+ return (c, $) => (L(), F("div", Tt, [
930
+ s("div", kt, [
931
+ s("div", Ut, [
932
+ t(Me, { class: "login-left-bg" }, {
924
933
  img: a(() => {
925
- var I, N;
934
+ var N, I;
926
935
  return [
927
- n("div", Vt, [
928
- n("div", Ut, [
929
- h.value ? ($(), x("div", $t, [
930
- n("img", {
931
- src: h.value,
936
+ s("div", Vt, [
937
+ s("div", Lt, [
938
+ i.value ? (L(), F("div", $t, [
939
+ s("img", {
940
+ src: i.value,
932
941
  alt: ""
933
- }, null, 8, Lt)
934
- ])) : te("", !0),
935
- n("div", qt, E(((I = P(V)) == null ? void 0 : I.EnglishName) || "Insofworks"), 1)
942
+ }, null, 8, qt)
943
+ ])) : ae("", !0),
944
+ s("div", At, S(((N = P(U)) == null ? void 0 : N.EnglishName) || "Insofworks"), 1)
936
945
  ]),
937
- n("div", null, E(((N = P(V)) == null ? void 0 : N.chineseName) || "工业软件建模与开发系统"), 1)
946
+ s("div", null, S(((I = P(U)) == null ? void 0 : I.chineseName) || "工业软件建模与开发系统"), 1)
938
947
  ]),
939
- F[0] || (F[0] = n("div", { class: "divide-line" }, null, -1))
948
+ $[0] || ($[0] = s("div", { class: "divide-line" }, null, -1))
940
949
  ];
941
950
  }),
942
951
  _: 1
943
952
  })
944
953
  ]),
945
- n("div", At, [
946
- t(je, {
947
- loading: r.value,
948
- onClickLogin: d,
954
+ s("div", It, [
955
+ t(ze, {
956
+ loading: u.value,
957
+ onClickLogin: A,
949
958
  onHandleTabChange: R
950
959
  }, {
951
960
  title: a(() => [
952
- O(E(i.value.loginTitle), 1)
961
+ O(S(o.value.loginTitle), 1)
953
962
  ]),
954
963
  tabLabel1: a(() => [
955
- O(E(i.value.tabs[0].name), 1)
964
+ O(S(o.value.tabs[0].name), 1)
956
965
  ]),
957
966
  tabContent1: a(() => [
958
- t(_t, {
959
- activeTabName: o.value,
960
- isClickLogin: l.value,
961
- onHandleLoginFormChange: L,
962
- onUpdateApiUrl: D
967
+ t(bt, {
968
+ activeTabName: n.value,
969
+ isClickLogin: r.value,
970
+ onHandleLoginFormChange: h,
971
+ onUpdateApiUrl: M
963
972
  }, null, 8, ["activeTabName", "isClickLogin"])
964
973
  ]),
965
974
  tabButton1: a(() => [
966
- O(E(i.value.tabs[0].btnLabel), 1)
975
+ O(S(o.value.tabs[0].btnLabel), 1)
967
976
  ]),
968
977
  tabLabel2: a(() => [
969
- O(E(i.value.tabs[1].name), 1)
978
+ O(S(o.value.tabs[1].name), 1)
970
979
  ]),
971
980
  tabContent2: a(() => [
972
- t(Ct, {
973
- systemKey: u.oldSystemKey,
974
- activeTabName: o.value,
975
- isClickLogin: l.value,
976
- onHandleLoginFormChange: L
981
+ t(wt, {
982
+ systemKey: c.oldSystemKey,
983
+ activeTabName: n.value,
984
+ isClickLogin: r.value,
985
+ onHandleLoginFormChange: h
977
986
  }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
978
987
  ]),
979
988
  tabButton2: a(() => [
980
- O(E(i.value.tabs[1].btnLabel), 1)
989
+ O(S(o.value.tabs[1].btnLabel), 1)
981
990
  ]),
982
991
  _: 1
983
992
  }, 8, ["loading"])
@@ -985,7 +994,7 @@ const We = () => ({ initUrlInfo: () => ({
985
994
  ])
986
995
  ]));
987
996
  }
988
- }), Ot = /* @__PURE__ */ H(It, [["__scopeId", "data-v-a1b7ffea"]]);
997
+ }), Pt = /* @__PURE__ */ H(Dt, [["__scopeId", "data-v-43bcd58d"]]);
989
998
  export {
990
- Ot as default
999
+ Pt as default
991
1000
  };