@yxhl/specter-pui-vtk 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/specter-pui.es.js +50 -48
- package/dist/specter-pui.es.js.map +1 -1
- package/dist/specter-pui.umd.js +1 -1
- package/dist/specter-pui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +8 -1
package/dist/specter-pui.es.js
CHANGED
|
@@ -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
|
|
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 X, inject as Ie, computed as W, withCtx as o, createTextVNode as y, toDisplayString as O, watch as le, useAttrs as Ve, mergeProps as ne, createElementVNode as V, Fragment as ce, renderList as me, nextTick as Ne, createSlots as Tt, renderSlot as ae, onBeforeUnmount as Ue, 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;
|
|
@@ -270,7 +270,7 @@ const Z = (e, t) => {
|
|
|
270
270
|
items: u.area4,
|
|
271
271
|
"item-title": "areaName",
|
|
272
272
|
"item-value": "areaCode",
|
|
273
|
-
class:
|
|
273
|
+
class: X(["d-inline-block sel_box", e.maxArea > 4 && "mr-3"]),
|
|
274
274
|
"hide-details": "",
|
|
275
275
|
density: "compact",
|
|
276
276
|
variant: "outlined",
|
|
@@ -291,7 +291,7 @@ const Z = (e, t) => {
|
|
|
291
291
|
items: u.area6,
|
|
292
292
|
"item-title": "areaName",
|
|
293
293
|
"item-value": "areaCode",
|
|
294
|
-
class:
|
|
294
|
+
class: X(["d-inline-block sel_box", e.maxArea > 6 && "mr-3"]),
|
|
295
295
|
"hide-details": "",
|
|
296
296
|
density: "compact",
|
|
297
297
|
variant: "outlined",
|
|
@@ -312,7 +312,7 @@ const Z = (e, t) => {
|
|
|
312
312
|
items: u.area9,
|
|
313
313
|
"item-title": "areaName",
|
|
314
314
|
"item-value": "areaCode",
|
|
315
|
-
class:
|
|
315
|
+
class: X(["d-inline-block sel_box", e.maxArea > 9 && "mr-3"]),
|
|
316
316
|
"hide-details": "",
|
|
317
317
|
density: "compact",
|
|
318
318
|
variant: "outlined",
|
|
@@ -420,7 +420,7 @@ const Z = (e, t) => {
|
|
|
420
420
|
title: $.title,
|
|
421
421
|
to: $.to,
|
|
422
422
|
disabled: $.disabled,
|
|
423
|
-
class:
|
|
423
|
+
class: X({ "text-primary": !$.disabled })
|
|
424
424
|
}, {
|
|
425
425
|
default: o(() => [
|
|
426
426
|
y(O($.title), 1)
|
|
@@ -527,7 +527,7 @@ const Z = (e, t) => {
|
|
|
527
527
|
return h(), E(b, ne(w.value, { "model-value": g.value }), {
|
|
528
528
|
default: o(() => [
|
|
529
529
|
V("div", {
|
|
530
|
-
class:
|
|
530
|
+
class: X(["checkGroup", e.inline ? "d-flex flex-wrap align-top" : "d-inline-block"])
|
|
531
531
|
}, [
|
|
532
532
|
(h(!0), I(ce, null, me(v.value, (p) => (h(), E(A, ne({
|
|
533
533
|
"hide-details": "",
|
|
@@ -678,7 +678,7 @@ const Z = (e, t) => {
|
|
|
678
678
|
}), t({
|
|
679
679
|
startAnimation: A
|
|
680
680
|
}), (p, f) => (h(), I("div", {
|
|
681
|
-
class:
|
|
681
|
+
class: X(["vtk-count", e.containerClass])
|
|
682
682
|
}, [
|
|
683
683
|
V("div", {
|
|
684
684
|
class: "count-display",
|
|
@@ -688,7 +688,7 @@ const Z = (e, t) => {
|
|
|
688
688
|
V("div", Rt, [
|
|
689
689
|
(h(!0), I(ce, null, me(r.value, (x, P) => (h(), I("div", {
|
|
690
690
|
key: `digit-${P}-${C.value}`,
|
|
691
|
-
class:
|
|
691
|
+
class: X(["digit-wrapper", { "digit-separator": isNaN(x) }])
|
|
692
692
|
}, [
|
|
693
693
|
isNaN(x) ? (h(), I("div", Et, O(x), 1)) : (h(), I("div", Lt, [
|
|
694
694
|
(h(), I(ce, null, me(10, (N) => V("div", {
|
|
@@ -1000,7 +1000,7 @@ const Z = (e, t) => {
|
|
|
1000
1000
|
]), 1032, ["headline", "title", "text", "image", "icon", "rounded", "elevation"]);
|
|
1001
1001
|
};
|
|
1002
1002
|
}
|
|
1003
|
-
}), Ee = /* @__PURE__ */ Z(Qt, [["__scopeId", "data-v-288c63a3"]]),
|
|
1003
|
+
}), Ee = /* @__PURE__ */ Z(Qt, [["__scopeId", "data-v-288c63a3"]]), Gt = /* @__PURE__ */ Object.assign({
|
|
1004
1004
|
name: "VtkFab",
|
|
1005
1005
|
inheritAttrs: !1
|
|
1006
1006
|
}, {
|
|
@@ -1024,7 +1024,7 @@ const Z = (e, t) => {
|
|
|
1024
1024
|
default: o(() => [
|
|
1025
1025
|
t.value ? (h(), E(C, {
|
|
1026
1026
|
key: 0,
|
|
1027
|
-
class:
|
|
1027
|
+
class: X(n.value),
|
|
1028
1028
|
color: "primary",
|
|
1029
1029
|
icon: "mdi-arrow-up",
|
|
1030
1030
|
onClick: i
|
|
@@ -1034,7 +1034,7 @@ const Z = (e, t) => {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
|
-
}), Ye = /* @__PURE__ */ Z(
|
|
1037
|
+
}), Ye = /* @__PURE__ */ Z(Gt, [["__scopeId", "data-v-e07d12b9"]]), Xt = {
|
|
1038
1038
|
key: 0,
|
|
1039
1039
|
class: "pb-2 text-left"
|
|
1040
1040
|
}, Kt = {
|
|
@@ -1094,19 +1094,19 @@ const Z = (e, t) => {
|
|
|
1094
1094
|
return t.top && t.maxWidth && (i.maxWidth = n.value), i;
|
|
1095
1095
|
});
|
|
1096
1096
|
return (i, u) => (h(), I("div", {
|
|
1097
|
-
class:
|
|
1097
|
+
class: X(["box", {
|
|
1098
1098
|
"form-item--vertical": e.top,
|
|
1099
1099
|
"form-item--horizontal": !e.top
|
|
1100
1100
|
}]),
|
|
1101
1101
|
style: { position: "relative" }
|
|
1102
1102
|
}, [
|
|
1103
|
-
e.label && e.top ? (h(), I("div",
|
|
1103
|
+
e.label && e.top ? (h(), I("div", Xt, [
|
|
1104
1104
|
e.must ? (h(), I("span", Kt, "*")) : z("", !0),
|
|
1105
1105
|
V("span", null, O(e.label), 1)
|
|
1106
1106
|
])) : z("", !0),
|
|
1107
1107
|
e.label && !e.top ? (h(), I("div", {
|
|
1108
1108
|
key: 1,
|
|
1109
|
-
class:
|
|
1109
|
+
class: X([e.left ? "" : "vtk-width-2", "d-inline-block text-right"]),
|
|
1110
1110
|
style: te([e.Tstyle, { "min-width": "120px !important", "vertical-align": "top", "padding-top": "11px" }])
|
|
1111
1111
|
}, [
|
|
1112
1112
|
e.must ? (h(), I("span", Zt, "*")) : z("", !0),
|
|
@@ -1249,7 +1249,7 @@ const Z = (e, t) => {
|
|
|
1249
1249
|
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");
|
|
1250
1250
|
return h(), I("div", oa, [
|
|
1251
1251
|
a(N, {
|
|
1252
|
-
class:
|
|
1252
|
+
class: X(["vtk-img-card", { "vtk-img-card--preview": e.preview }]),
|
|
1253
1253
|
onClick: v
|
|
1254
1254
|
}, {
|
|
1255
1255
|
default: o(() => [
|
|
@@ -1625,7 +1625,7 @@ const Z = (e, t) => {
|
|
|
1625
1625
|
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"), de = c("VDialog");
|
|
1626
1626
|
return h(), I("div", ya, [
|
|
1627
1627
|
a(N, {
|
|
1628
|
-
class:
|
|
1628
|
+
class: X(["vtk-pdf-card", { "vtk-pdf-card--preview": e.preview }]),
|
|
1629
1629
|
onClick: g
|
|
1630
1630
|
}, {
|
|
1631
1631
|
default: o(() => [
|
|
@@ -2251,7 +2251,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2251
2251
|
a(Te, {
|
|
2252
2252
|
"onUpdate:modelValue": [
|
|
2253
2253
|
J,
|
|
2254
|
-
s[2] || (s[2] = (
|
|
2254
|
+
s[2] || (s[2] = (G) => M.value = G)
|
|
2255
2255
|
],
|
|
2256
2256
|
modelValue: M.value,
|
|
2257
2257
|
class: "mt-n1",
|
|
@@ -2277,12 +2277,12 @@ const $a = { key: 0 }, Ca = {
|
|
|
2277
2277
|
_: 1
|
|
2278
2278
|
}),
|
|
2279
2279
|
((_ = N.value) == null ? void 0 : _.length) > 0 ? (h(), I("p", Ca, [
|
|
2280
|
-
(h(!0), I(ce, null, me(N.value, (
|
|
2280
|
+
(h(!0), I(ce, null, me(N.value, (G, je) => (h(), E(Te, {
|
|
2281
2281
|
key: je,
|
|
2282
2282
|
modelValue: P.value,
|
|
2283
2283
|
"onUpdate:modelValue": s[3] || (s[3] = (Ct) => P.value = Ct),
|
|
2284
|
-
label:
|
|
2285
|
-
value: { name:
|
|
2284
|
+
label: G.label,
|
|
2285
|
+
value: { name: G.name, valu: `${G.label}${G.valu && G.valu.includes("/") && G.valu.includes(":") ? `(${G.valu})` : ""}` },
|
|
2286
2286
|
class: "mt-2",
|
|
2287
2287
|
multiple: "",
|
|
2288
2288
|
"hide-details": ""
|
|
@@ -2305,7 +2305,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2305
2305
|
])) : (h(), I("div", Pa, [
|
|
2306
2306
|
s[39] || (s[39] = V("p", { class: "mb-3 pt-3 font-weight-bold" }, "导出提示", -1)),
|
|
2307
2307
|
V("p", {
|
|
2308
|
-
class:
|
|
2308
|
+
class: X([B(g).servState == "1" ? "text-green" : "text-red", "mb-3 text-body-2"])
|
|
2309
2309
|
}, [
|
|
2310
2310
|
a(ee, {
|
|
2311
2311
|
size: "20",
|
|
@@ -2319,7 +2319,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2319
2319
|
s[37] || (s[37] = y(" 导出数据仅限已服务信息 ", -1))
|
|
2320
2320
|
], 2),
|
|
2321
2321
|
V("p", {
|
|
2322
|
-
class:
|
|
2322
|
+
class: X(["mb-2 text-body-2", U.value ? "text-green" : "text-red"])
|
|
2323
2323
|
}, [
|
|
2324
2324
|
a(ee, {
|
|
2325
2325
|
size: "20",
|
|
@@ -2420,7 +2420,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2420
2420
|
activator: o(({ props: _ }) => [
|
|
2421
2421
|
a($e, ne({
|
|
2422
2422
|
modelValue: B(g).servFtime0,
|
|
2423
|
-
"onUpdate:modelValue": s[8] || (s[8] = (
|
|
2423
|
+
"onUpdate:modelValue": s[8] || (s[8] = (G) => B(g).servFtime0 = G),
|
|
2424
2424
|
placeholder: "开始时间",
|
|
2425
2425
|
"persistent-hint": "",
|
|
2426
2426
|
"append-icon": "mdi-calendar",
|
|
@@ -2458,7 +2458,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2458
2458
|
activator: o(({ props: _ }) => [
|
|
2459
2459
|
a($e, ne({
|
|
2460
2460
|
modelValue: B(g).servFtime1,
|
|
2461
|
-
"onUpdate:modelValue": s[12] || (s[12] = (
|
|
2461
|
+
"onUpdate:modelValue": s[12] || (s[12] = (G) => B(g).servFtime1 = G),
|
|
2462
2462
|
placeholder: "结束时间",
|
|
2463
2463
|
"persistent-hint": "",
|
|
2464
2464
|
"append-icon": "mdi-calendar",
|
|
@@ -2517,13 +2517,13 @@ const $a = { key: 0 }, Ca = {
|
|
|
2517
2517
|
"item.objsName": o(({ item: _ }) => [
|
|
2518
2518
|
V("div", {
|
|
2519
2519
|
class: "py-3",
|
|
2520
|
-
onClick: (
|
|
2520
|
+
onClick: (G) => ie(_)
|
|
2521
2521
|
}, [
|
|
2522
2522
|
V("p", ja, [
|
|
2523
2523
|
y(O(_.objsName), 1),
|
|
2524
2524
|
V("span", Ia, O(rt(_.objsCode)), 1),
|
|
2525
2525
|
a(ye, {
|
|
2526
|
-
class:
|
|
2526
|
+
class: X(["ml-2", dt(_.servState)]),
|
|
2527
2527
|
size: "small",
|
|
2528
2528
|
label: ""
|
|
2529
2529
|
}, {
|
|
@@ -2533,7 +2533,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2533
2533
|
_: 2
|
|
2534
2534
|
}, 1032, ["class"]),
|
|
2535
2535
|
a(ye, {
|
|
2536
|
-
class:
|
|
2536
|
+
class: X(["ml-2", ct(_.rateState)]),
|
|
2537
2537
|
size: "small",
|
|
2538
2538
|
label: ""
|
|
2539
2539
|
}, {
|
|
@@ -2603,9 +2603,9 @@ const $a = { key: 0 }, Ca = {
|
|
|
2603
2603
|
], 8, Da)
|
|
2604
2604
|
]),
|
|
2605
2605
|
"item.actions": o(({ item: _ }) => {
|
|
2606
|
-
var
|
|
2606
|
+
var G;
|
|
2607
2607
|
return [
|
|
2608
|
-
_.state != 0 && ((
|
|
2608
|
+
_.state != 0 && ((G = v.value.areacode) == null ? void 0 : G.length) == 6 && _.servState == "1" ? (h(), I("a", {
|
|
2609
2609
|
key: 0,
|
|
2610
2610
|
onClick: (je) => ot(_),
|
|
2611
2611
|
class: "text-error",
|
|
@@ -2700,7 +2700,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2700
2700
|
});
|
|
2701
2701
|
};
|
|
2702
2702
|
}
|
|
2703
|
-
}), Qe = /* @__PURE__ */ Z(Ra, [["__scopeId", "data-v-cd48b42b"]]),
|
|
2703
|
+
}), Qe = /* @__PURE__ */ Z(Ra, [["__scopeId", "data-v-cd48b42b"]]), Ge = /* @__PURE__ */ Object.assign({
|
|
2704
2704
|
name: "VtkRadio",
|
|
2705
2705
|
inheritAttrs: !1
|
|
2706
2706
|
}, {
|
|
@@ -2914,7 +2914,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
2914
2914
|
]);
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
|
-
}),
|
|
2917
|
+
}), Xe = /* @__PURE__ */ Z(Ea, [["__scopeId", "data-v-e98d464e"]]), Ke = /* @__PURE__ */ Object.assign({
|
|
2918
2918
|
name: "VtkSelect",
|
|
2919
2919
|
inheritAttrs: !1
|
|
2920
2920
|
}, {
|
|
@@ -3008,7 +3008,7 @@ const $a = { key: 0 }, Ca = {
|
|
|
3008
3008
|
}, {
|
|
3009
3009
|
default: o(() => [
|
|
3010
3010
|
V("div", {
|
|
3011
|
-
class:
|
|
3011
|
+
class: X(["first-box1 last-box pl-10 py-5 stepItem", n.value > $ ? "selected" : ""]),
|
|
3012
3012
|
complete: n.value > $,
|
|
3013
3013
|
step: $ + 1
|
|
3014
3014
|
}, O(d), 11, Ya)
|
|
@@ -3083,7 +3083,7 @@ const Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3083
3083
|
analyType: Ja,
|
|
3084
3084
|
dict: Wa
|
|
3085
3085
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3086
|
-
function
|
|
3086
|
+
function Ga(e, t) {
|
|
3087
3087
|
if (!e || e == "无" || e == null)
|
|
3088
3088
|
return t = "无", t;
|
|
3089
3089
|
let n = new Date(e), l = {
|
|
@@ -3100,7 +3100,7 @@ function Xa(e, t) {
|
|
|
3100
3100
|
new RegExp("(" + i + ")").test(t) && (t = t.replace(RegExp.$1, RegExp.$1.length === 1 ? l[i] : ("00" + l[i]).substr(("" + l[i]).length)));
|
|
3101
3101
|
return t;
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3103
|
+
function Xa(e, t) {
|
|
3104
3104
|
if (isNaN(e) || e === "" || e === null)
|
|
3105
3105
|
return e;
|
|
3106
3106
|
var n = parseFloat(e), l = n < 0 ? "-" : "", i = Math.abs(n), u = 0;
|
|
@@ -3122,8 +3122,8 @@ const tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3122
3122
|
__proto__: null,
|
|
3123
3123
|
abs: el,
|
|
3124
3124
|
age: Ka,
|
|
3125
|
-
date:
|
|
3126
|
-
num:
|
|
3125
|
+
date: Ga,
|
|
3126
|
+
num: Xa,
|
|
3127
3127
|
txt: Za
|
|
3128
3128
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3129
3129
|
function al(e) {
|
|
@@ -3391,14 +3391,15 @@ function fl(e, t = {}) {
|
|
|
3391
3391
|
VtkPage: Je,
|
|
3392
3392
|
VtkPdf: He,
|
|
3393
3393
|
VtkProj: Qe,
|
|
3394
|
-
VtkRadio:
|
|
3395
|
-
VtkSearch:
|
|
3394
|
+
VtkRadio: Ge,
|
|
3395
|
+
VtkSearch: Xe,
|
|
3396
3396
|
VtkSelect: Ke,
|
|
3397
3397
|
VtkStepper: Ze
|
|
3398
3398
|
};
|
|
3399
|
-
|
|
3400
|
-
e.component(
|
|
3401
|
-
})
|
|
3399
|
+
Object.keys(n).forEach((i) => {
|
|
3400
|
+
e.component(i, n[i]);
|
|
3401
|
+
});
|
|
3402
|
+
const l = {
|
|
3402
3403
|
message: K,
|
|
3403
3404
|
request: Y,
|
|
3404
3405
|
storage: se,
|
|
@@ -3413,7 +3414,8 @@ function fl(e, t = {}) {
|
|
|
3413
3414
|
// 格式化方法: date, num, age, txt, abs
|
|
3414
3415
|
},
|
|
3415
3416
|
...t
|
|
3416
|
-
}
|
|
3417
|
+
};
|
|
3418
|
+
return e.config.globalProperties.$vtk = l, typeof window < "u" && (window.$vtk = l), e;
|
|
3417
3419
|
}
|
|
3418
3420
|
const yl = {
|
|
3419
3421
|
install: fl,
|
|
@@ -3430,8 +3432,8 @@ const yl = {
|
|
|
3430
3432
|
VtkPage: Je,
|
|
3431
3433
|
VtkPdf: He,
|
|
3432
3434
|
VtkProj: Qe,
|
|
3433
|
-
VtkRadio:
|
|
3434
|
-
VtkSearch:
|
|
3435
|
+
VtkRadio: Ge,
|
|
3436
|
+
VtkSearch: Xe,
|
|
3435
3437
|
VtkSelect: Ke,
|
|
3436
3438
|
VtkStepper: Ze,
|
|
3437
3439
|
// 工具函数
|
|
@@ -3453,20 +3455,20 @@ export {
|
|
|
3453
3455
|
Je as VtkPage,
|
|
3454
3456
|
He as VtkPdf,
|
|
3455
3457
|
Qe as VtkProj,
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
+
Ge as VtkRadio,
|
|
3459
|
+
Xe as VtkSearch,
|
|
3458
3460
|
Ke as VtkSelect,
|
|
3459
3461
|
Ze as VtkStepper,
|
|
3460
3462
|
el as abs,
|
|
3461
3463
|
Ka as age,
|
|
3462
3464
|
Ha as analyLevel,
|
|
3463
3465
|
Ja as analyType,
|
|
3464
|
-
|
|
3466
|
+
Ga as date,
|
|
3465
3467
|
yl as default,
|
|
3466
3468
|
Wa as dict,
|
|
3467
3469
|
ll as idcard,
|
|
3468
3470
|
al as mobile,
|
|
3469
|
-
|
|
3471
|
+
Xa as num,
|
|
3470
3472
|
Y as request,
|
|
3471
3473
|
se as storage,
|
|
3472
3474
|
et as themes,
|