@yxhl/specter-pui-vtk 1.0.19 → 1.0.20

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,4 +1,4 @@
1
- import { reactive as pe, ref as S, onMounted as re, resolveComponent as c, createElementBlock as I, openBlock as h, createVNode as a, createBlock as E, createCommentVNode as z, normalizeStyle as te, normalizeClass as G, inject as Ie, computed as W, withCtx as o, createTextVNode as y, toDisplayString as U, watch as le, useAttrs as Ve, mergeProps as ne, createElementVNode as V, Fragment as de, renderList as ce, nextTick as Ne, createSlots as Tt, renderSlot as ae, onBeforeUnmount as Oe, Transition as Pt, useCssVars as At, withKeys as Fe, onActivated as Dt, unref as B, isRef as jt } from "vue";
1
+ import { reactive as pe, ref as S, onMounted as re, resolveComponent as c, createElementBlock as I, openBlock as h, createVNode as a, createBlock as E, createCommentVNode as z, normalizeStyle as te, normalizeClass as K, inject as Ie, computed as W, withCtx as o, createTextVNode as y, toDisplayString as U, watch as le, useAttrs as Ve, mergeProps as ne, createElementVNode as V, Fragment as de, renderList as ce, nextTick as Ne, createSlots as Tt, renderSlot as ae, onBeforeUnmount as Oe, Transition as Pt, useCssVars as At, withKeys as Fe, onActivated as Dt, unref as B, isRef as jt } from "vue";
2
2
  import It from "axios";
3
3
  import { defineStore as Nt } from "pinia";
4
4
  const se = {}, he = (e = "local") => e == "local" ? window.localStorage : window.sessionStorage;
@@ -86,7 +86,7 @@ const me = Nt("message", {
86
86
  });
87
87
  }
88
88
  }
89
- }), K = {
89
+ }), G = {
90
90
  // 显示 alert
91
91
  alert(e) {
92
92
  me().show("alert", e);
@@ -130,14 +130,14 @@ const me = Nt("message", {
130
130
  });
131
131
  ke.interceptors.request.use(
132
132
  (e) => (se.get("token") && (e.headers["X-Token"] = "1b0679be72ad976ad5d491ad57a5eec0", e.headers.Authorization = "Bearer " + se.get("token")), e),
133
- (e) => (K.toast(e.message || "请求错误"), Promise.reject(e))
133
+ (e) => (G.toast(e.message || "请求错误"), Promise.reject(e))
134
134
  );
135
135
  ke.interceptors.response.use(
136
136
  (e) => {
137
137
  let t = e.data, n = e.headers["content-disposition"];
138
- return n != null && n.split(";")[0] == "attachment" && (t = e), e.status !== 200 ? (K.toast(t.message || "请求失败"), Promise.reject(new Error(t.message || "请求失败"))) : Promise.resolve(t);
138
+ return n != null && n.split(";")[0] == "attachment" && (t = e), e.status !== 200 ? (G.toast(t.message || "请求失败"), Promise.reject(new Error(t.message || "请求失败"))) : (!(t.meta && !t.meta.success && t.meta.message == "specter_authorize_exception") || G.confirm("对不起,您的登录信息过期!", () => window.open("about:blank", "_self").close()), Promise.resolve(t));
139
139
  },
140
- (e) => (console.log("err" + e), K.toast(e.message || "网络错误"), Promise.reject(e))
140
+ (e) => (console.log("err" + e), G.toast(e.message || "网络错误"), Promise.reject(e))
141
141
  );
142
142
  const Y = {};
143
143
  Y.http = (e, t = {}, n = "GET", l = { "content-type": "application/x-www-form-urlencoded" }, i = null) => l["content-type"] === "application/x-www-form-urlencoded" ? ke({ url: e, params: t, method: n, headers: l, responseType: i }) : ke({ url: e, data: t, method: n, headers: l, responseType: i });
@@ -263,7 +263,7 @@ const Z = (e, t) => {
263
263
  items: d.area4,
264
264
  "item-title": "areaName",
265
265
  "item-value": "areaCode",
266
- class: G(["d-inline-block sel_box", e.maxArea > 4 && "mr-3"]),
266
+ class: K(["d-inline-block sel_box", e.maxArea > 4 && "mr-3"]),
267
267
  "hide-details": "",
268
268
  density: "compact",
269
269
  variant: "outlined",
@@ -284,7 +284,7 @@ const Z = (e, t) => {
284
284
  items: d.area6,
285
285
  "item-title": "areaName",
286
286
  "item-value": "areaCode",
287
- class: G(["d-inline-block sel_box", e.maxArea > 6 && "mr-3"]),
287
+ class: K(["d-inline-block sel_box", e.maxArea > 6 && "mr-3"]),
288
288
  "hide-details": "",
289
289
  density: "compact",
290
290
  variant: "outlined",
@@ -305,7 +305,7 @@ const Z = (e, t) => {
305
305
  items: d.area9,
306
306
  "item-title": "areaName",
307
307
  "item-value": "areaCode",
308
- class: G(["d-inline-block sel_box", e.maxArea > 9 && "mr-3"]),
308
+ class: K(["d-inline-block sel_box", e.maxArea > 9 && "mr-3"]),
309
309
  "hide-details": "",
310
310
  density: "compact",
311
311
  variant: "outlined",
@@ -413,7 +413,7 @@ const Z = (e, t) => {
413
413
  title: $.title,
414
414
  to: $.to,
415
415
  disabled: $.disabled,
416
- class: G({ "text-primary": !$.disabled })
416
+ class: K({ "text-primary": !$.disabled })
417
417
  }, {
418
418
  default: o(() => [
419
419
  y(U($.title), 1)
@@ -521,7 +521,7 @@ const Z = (e, t) => {
521
521
  return h(), E(b, ne(w.value, { "model-value": g.value }), {
522
522
  default: o(() => [
523
523
  V("div", {
524
- class: G(["checkGroup", e.inline ? "d-flex flex-wrap align-top" : "d-inline-block"])
524
+ class: K(["checkGroup", e.inline ? "d-flex flex-wrap align-top" : "d-inline-block"])
525
525
  }, [
526
526
  (h(!0), I(de, null, ce(v.value, (p) => (h(), E(A, ne({
527
527
  "hide-details": "",
@@ -672,7 +672,7 @@ const Z = (e, t) => {
672
672
  }), t({
673
673
  startAnimation: A
674
674
  }), (p, f) => (h(), I("div", {
675
- class: G(["vtk-count", e.containerClass])
675
+ class: K(["vtk-count", e.containerClass])
676
676
  }, [
677
677
  V("div", {
678
678
  class: "count-display",
@@ -682,7 +682,7 @@ const Z = (e, t) => {
682
682
  V("div", Rt, [
683
683
  (h(!0), I(de, null, ce(r.value, (x, P) => (h(), I("div", {
684
684
  key: `digit-${P}-${C.value}`,
685
- class: G(["digit-wrapper", { "digit-separator": isNaN(x) }])
685
+ class: K(["digit-wrapper", { "digit-separator": isNaN(x) }])
686
686
  }, [
687
687
  isNaN(x) ? (h(), I("div", Et, U(x), 1)) : (h(), I("div", Lt, [
688
688
  (h(), I(de, null, ce(10, (N) => V("div", {
@@ -1018,7 +1018,7 @@ const Z = (e, t) => {
1018
1018
  default: o(() => [
1019
1019
  t.value ? (h(), E(C, {
1020
1020
  key: 0,
1021
- class: G(n.value),
1021
+ class: K(n.value),
1022
1022
  color: "primary",
1023
1023
  icon: "mdi-arrow-up",
1024
1024
  onClick: i
@@ -1088,7 +1088,7 @@ const Z = (e, t) => {
1088
1088
  return t.top && t.maxWidth && (i.maxWidth = n.value), i;
1089
1089
  });
1090
1090
  return (i, d) => (h(), I("div", {
1091
- class: G(["box", {
1091
+ class: K(["box", {
1092
1092
  "form-item--vertical": e.top,
1093
1093
  "form-item--horizontal": !e.top
1094
1094
  }]),
@@ -1100,7 +1100,7 @@ const Z = (e, t) => {
1100
1100
  ])) : z("", !0),
1101
1101
  e.label && !e.top ? (h(), I("div", {
1102
1102
  key: 1,
1103
- class: G([e.left ? "" : "vtk-width-2", "d-inline-block text-right"]),
1103
+ class: K([e.left ? "" : "vtk-width-2", "d-inline-block text-right"]),
1104
1104
  style: te([e.Tstyle, { "min-width": "120px !important", "vertical-align": "top", "padding-top": "11px" }])
1105
1105
  }, [
1106
1106
  e.must ? (h(), I("span", Zt, "*")) : z("", !0),
@@ -1243,7 +1243,7 @@ const Z = (e, t) => {
1243
1243
  const p = c("v-progress-circular"), f = c("v-img"), x = c("VCardTitle"), P = c("v-card-subtitle"), N = c("VCard"), M = c("VIcon"), j = c("VBtn"), D = c("v-toolbar-title"), R = c("VSpacer"), L = c("v-toolbar-items"), F = c("v-toolbar"), J = c("VDialog");
1244
1244
  return h(), I("div", oa, [
1245
1245
  a(N, {
1246
- class: G(["vtk-img-card", { "vtk-img-card--preview": e.preview }]),
1246
+ class: K(["vtk-img-card", { "vtk-img-card--preview": e.preview }]),
1247
1247
  onClick: v
1248
1248
  }, {
1249
1249
  default: o(() => [
@@ -1617,7 +1617,7 @@ const Z = (e, t) => {
1617
1617
  const f = c("VIcon"), x = c("VCardTitle"), P = c("v-card-subtitle"), N = c("VCard"), M = c("VBtn"), j = c("v-toolbar-title"), D = c("VSpacer"), R = c("v-toolbar-items"), L = c("v-toolbar"), F = c("VCol"), J = c("VSlider"), q = c("VRow"), H = c("v-progress-circular"), ue = c("VDialog");
1618
1618
  return h(), I("div", ya, [
1619
1619
  a(N, {
1620
- class: G(["vtk-pdf-card", { "vtk-pdf-card--preview": e.preview }]),
1620
+ class: K(["vtk-pdf-card", { "vtk-pdf-card--preview": e.preview }]),
1621
1621
  onClick: g
1622
1622
  }, {
1623
1623
  default: o(() => [
@@ -1830,7 +1830,7 @@ function Sa(e = {}) {
1830
1830
  }, u = () => {
1831
1831
  var R, L;
1832
1832
  if (!v.list) {
1833
- K.toast("请先设置url.list属性", { color: "warning" });
1833
+ G.toast("请先设置url.list属性", { color: "warning" });
1834
1834
  return;
1835
1835
  }
1836
1836
  const D = r();
@@ -1866,32 +1866,32 @@ function Sa(e = {}) {
1866
1866
  },
1867
1867
  deleteItem: (D, R) => {
1868
1868
  if (!v.delete) {
1869
- K.toast("请设置url.delete属性!", { color: "warning" });
1869
+ G.toast("请设置url.delete属性!", { color: "warning" });
1870
1870
  return;
1871
1871
  }
1872
- K.confirm(
1872
+ G.confirm(
1873
1873
  { title: "确认删除", text: R || "是否删除?" },
1874
1874
  (L) => {
1875
1875
  L && Y.getForm(v.delete, { id: D }).then((F) => {
1876
- F.meta.success ? (K.toast("删除成功", { color: "success" }), u()) : K.toast("删除失败", { color: "warning" });
1876
+ F.meta.success ? (G.toast("删除成功", { color: "success" }), u()) : G.toast("删除失败", { color: "warning" });
1877
1877
  }).catch((F) => {
1878
- console.error("删除失败:", F), K.toast("删除失败", { color: "warning" });
1878
+ console.error("删除失败:", F), G.toast("删除失败", { color: "warning" });
1879
1879
  });
1880
1880
  }
1881
1881
  );
1882
1882
  },
1883
1883
  copyItem: (D, R) => {
1884
1884
  if (!v.copy) {
1885
- K.toast("请设置url.copy!", { color: "warning" });
1885
+ G.toast("请设置url.copy!", { color: "warning" });
1886
1886
  return;
1887
1887
  }
1888
- K.confirm(
1888
+ G.confirm(
1889
1889
  { title: "拷贝", text: R || "是否确认拷贝当前数据?" },
1890
1890
  (L) => {
1891
1891
  L && Y.getForm(v.copy, { id: D }).then((F) => {
1892
- F.meta.success ? (K.toast("拷贝成功", { color: "success" }), u()) : K.toast("拷贝失败", { color: "warning" });
1892
+ F.meta.success ? (G.toast("拷贝成功", { color: "success" }), u()) : G.toast("拷贝失败", { color: "warning" });
1893
1893
  }).catch((F) => {
1894
- console.error("拷贝失败:", F), K.toast("拷贝失败", { color: "warning" });
1894
+ console.error("拷贝失败:", F), G.toast("拷贝失败", { color: "warning" });
1895
1895
  });
1896
1896
  }
1897
1897
  );
@@ -2297,7 +2297,7 @@ const $a = { key: 0 }, Ca = {
2297
2297
  ])) : (h(), I("div", Pa, [
2298
2298
  s[39] || (s[39] = V("p", { class: "mb-3 pt-3 font-weight-bold" }, "导出提示", -1)),
2299
2299
  V("p", {
2300
- class: G([B(g).servState == "1" ? "text-green" : "text-red", "mb-3 text-body-2"])
2300
+ class: K([B(g).servState == "1" ? "text-green" : "text-red", "mb-3 text-body-2"])
2301
2301
  }, [
2302
2302
  a(ee, {
2303
2303
  size: "20",
@@ -2311,7 +2311,7 @@ const $a = { key: 0 }, Ca = {
2311
2311
  s[37] || (s[37] = y(" 导出数据仅限已服务信息 ", -1))
2312
2312
  ], 2),
2313
2313
  V("p", {
2314
- class: G(["mb-2 text-body-2", O.value ? "text-green" : "text-red"])
2314
+ class: K(["mb-2 text-body-2", O.value ? "text-green" : "text-red"])
2315
2315
  }, [
2316
2316
  a(ee, {
2317
2317
  size: "20",
@@ -2515,7 +2515,7 @@ const $a = { key: 0 }, Ca = {
2515
2515
  y(U(_.objsName), 1),
2516
2516
  V("span", Ia, U(rt(_.objsCode)), 1),
2517
2517
  a(ye, {
2518
- class: G(["ml-2", ut(_.servState)]),
2518
+ class: K(["ml-2", ut(_.servState)]),
2519
2519
  size: "small",
2520
2520
  label: ""
2521
2521
  }, {
@@ -2525,7 +2525,7 @@ const $a = { key: 0 }, Ca = {
2525
2525
  _: 2
2526
2526
  }, 1032, ["class"]),
2527
2527
  a(ye, {
2528
- class: G(["ml-2", ct(_.rateState)]),
2528
+ class: K(["ml-2", ct(_.rateState)]),
2529
2529
  size: "small",
2530
2530
  label: ""
2531
2531
  }, {
@@ -3000,7 +3000,7 @@ const $a = { key: 0 }, Ca = {
3000
3000
  }, {
3001
3001
  default: o(() => [
3002
3002
  V("div", {
3003
- class: G(["first-box1 last-box pl-10 py-5 stepItem", n.value > $ ? "selected" : ""]),
3003
+ class: K(["first-box1 last-box pl-10 py-5 stepItem", n.value > $ ? "selected" : ""]),
3004
3004
  complete: n.value > $,
3005
3005
  step: $ + 1
3006
3006
  }, U(u), 11, Ya)
@@ -3391,7 +3391,7 @@ function fl(e, t = {}) {
3391
3391
  return Object.keys(n).forEach((l) => {
3392
3392
  e.component(l, n[l]);
3393
3393
  }), e.config.globalProperties.$vtk = {
3394
- message: K,
3394
+ message: G,
3395
3395
  request: Y,
3396
3396
  storage: se,
3397
3397
  themes: et,
@@ -3430,7 +3430,7 @@ const yl = {
3430
3430
  request: Y,
3431
3431
  storage: se,
3432
3432
  themes: et,
3433
- vtkMessage: K
3433
+ vtkMessage: G
3434
3434
  };
3435
3435
  export {
3436
3436
  Me as VtkArea,
@@ -3464,6 +3464,6 @@ export {
3464
3464
  et as themes,
3465
3465
  Za as txt,
3466
3466
  Sa as useMixins,
3467
- K as vtkMessage
3467
+ G as vtkMessage
3468
3468
  };
3469
3469
  //# sourceMappingURL=specter-pui.es.js.map