@partex/one-core 3.0.4 → 3.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.
- package/lib/one-core.js +154 -149
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -2290,7 +2290,7 @@ const ar = /* @__PURE__ */ L(er, [["render", tr]]), nr = X({
|
|
|
2290
2290
|
}
|
|
2291
2291
|
});
|
|
2292
2292
|
function lr(e, o, a, s, n, d) {
|
|
2293
|
-
const i = u("NDivider"), c = u("NInput"), m = u("NInputNumber"), f = u("NDatePicker"), g = u("NSelect"),
|
|
2293
|
+
const i = u("NDivider"), c = u("NInput"), m = u("NInputNumber"), f = u("NDatePicker"), g = u("NSelect"), v = u("NCascader"), y = u("NColorPicker"), C = u("NCheckbox"), I = u("NFlex"), T = u("NCheckboxGroup"), $ = u("NTimePicker"), B = u("NSwitch"), j = u("IconMailInboxAdd"), O = u("NIcon"), V = u("NUploadDragger"), F = u("NUpload");
|
|
2294
2294
|
return p(), z(ie, null, [
|
|
2295
2295
|
e.item.input === "divider" ? (p(), P(i, {
|
|
2296
2296
|
key: 0,
|
|
@@ -2332,8 +2332,8 @@ function lr(e, o, a, s, n, d) {
|
|
|
2332
2332
|
showButton: e.item.showButton,
|
|
2333
2333
|
"update-value-on-input": !1,
|
|
2334
2334
|
parse: (S) => {
|
|
2335
|
-
const
|
|
2336
|
-
return
|
|
2335
|
+
const b = e.item;
|
|
2336
|
+
return b.precision && b.precision > -1 ? Number(Number(S).toFixed(b.precision)) : Number(S);
|
|
2337
2337
|
},
|
|
2338
2338
|
"on-update:value": (S) => {
|
|
2339
2339
|
e.formValue[e.item.key] = S, e.updateValue(e.item, S);
|
|
@@ -2349,11 +2349,11 @@ function lr(e, o, a, s, n, d) {
|
|
|
2349
2349
|
"input-readonly": e.edit && e.item.edit ? e.item.edit.readonly : e.item.readonly,
|
|
2350
2350
|
clearable: e.item.clearable,
|
|
2351
2351
|
"time-picker-props": e.item.timePickerProps,
|
|
2352
|
-
"is-date-disabled": (S,
|
|
2352
|
+
"is-date-disabled": (S, b) => {
|
|
2353
2353
|
const t = e.item;
|
|
2354
2354
|
return t.isDateDisabled ? t.isDateDisabled(
|
|
2355
2355
|
S,
|
|
2356
|
-
|
|
2356
|
+
b
|
|
2357
2357
|
) : !1;
|
|
2358
2358
|
},
|
|
2359
2359
|
"close-on-select": "",
|
|
@@ -2372,11 +2372,11 @@ function lr(e, o, a, s, n, d) {
|
|
|
2372
2372
|
clearable: e.item.clearable,
|
|
2373
2373
|
format: e.item.format,
|
|
2374
2374
|
"time-picker-props": e.item.timePickerProps,
|
|
2375
|
-
"is-date-disabled": (S,
|
|
2375
|
+
"is-date-disabled": (S, b) => {
|
|
2376
2376
|
const t = e.item;
|
|
2377
2377
|
return t.isDateDisabled ? t.isDateDisabled(
|
|
2378
2378
|
S,
|
|
2379
|
-
|
|
2379
|
+
b
|
|
2380
2380
|
) : !1;
|
|
2381
2381
|
},
|
|
2382
2382
|
"close-on-select": "",
|
|
@@ -2402,16 +2402,16 @@ function lr(e, o, a, s, n, d) {
|
|
|
2402
2402
|
"render-option": e.item.renderOption,
|
|
2403
2403
|
"render-tag": e.item.renderTag,
|
|
2404
2404
|
"on-update:value": (S) => {
|
|
2405
|
-
const
|
|
2405
|
+
const b = e.item;
|
|
2406
2406
|
let t = S, D = S;
|
|
2407
|
-
if (
|
|
2407
|
+
if (b.multiple) {
|
|
2408
2408
|
let G = S.filter((ae) => ae);
|
|
2409
2409
|
G.length === 0 ? (t = [""], D = []) : (t = G, D = G);
|
|
2410
2410
|
}
|
|
2411
2411
|
e.formValue[e.item.key] = t, e.updateValue(e.item, D);
|
|
2412
2412
|
}
|
|
2413
2413
|
}, null, 8, ["value", "placeholder", "options", "disabled", "readonly", "clearable", "filterable", "tag", "multiple", "fallback-option", "maxTagCount", "render-label", "render-option", "render-tag", "on-update:value"])) : A("", !0),
|
|
2414
|
-
e.item.input === "cascader" ? (p(), P(
|
|
2414
|
+
e.item.input === "cascader" ? (p(), P(v, {
|
|
2415
2415
|
key: 6,
|
|
2416
2416
|
value: e.formValue[e.item.key],
|
|
2417
2417
|
"onUpdate:value": o[5] || (o[5] = (S) => e.formValue[e.item.key] = S),
|
|
@@ -2426,9 +2426,9 @@ function lr(e, o, a, s, n, d) {
|
|
|
2426
2426
|
multiple: e.item.multiple,
|
|
2427
2427
|
maxTagCount: e.item.maxTagCount,
|
|
2428
2428
|
"on-update:value": (S) => {
|
|
2429
|
-
const
|
|
2429
|
+
const b = e.item;
|
|
2430
2430
|
let t = S, D = S;
|
|
2431
|
-
if (
|
|
2431
|
+
if (b.multiple) {
|
|
2432
2432
|
let G = S.filter((ae) => ae);
|
|
2433
2433
|
G.length === 0 ? (t = [""], D = []) : (t = G, D = G);
|
|
2434
2434
|
}
|
|
@@ -2598,22 +2598,22 @@ const rr = /* @__PURE__ */ L(nr, [["render", lr]]), sr = X({
|
|
|
2598
2598
|
setup(e, { expose: o, emit: a }) {
|
|
2599
2599
|
const s = k(), n = k({}), d = k([]), i = (g) => !((g == null ? void 0 : g.show) === !1 || e.edit && g.edit && !g.edit.show), c = () => {
|
|
2600
2600
|
const g = de(e.items);
|
|
2601
|
-
g.forEach((
|
|
2602
|
-
if (typeof
|
|
2603
|
-
const y =
|
|
2604
|
-
|
|
2601
|
+
g.forEach((v) => {
|
|
2602
|
+
if (typeof v.show > "u" && (v.show = !0), v.input !== "divider" && v.rule && v.rule.validator && typeof v.rule.validator == "string") {
|
|
2603
|
+
const y = v.rule.validator, C = new Function("rule", "value", y);
|
|
2604
|
+
v.rule.validator = (I, T) => C(I, T);
|
|
2605
2605
|
}
|
|
2606
|
-
if (
|
|
2607
|
-
const y =
|
|
2608
|
-
|
|
2606
|
+
if (v.input === "date" && v.isDateDisabled && typeof v.isDateDisabled == "string") {
|
|
2607
|
+
const y = v.isDateDisabled, C = new Function("ts", "detail", y);
|
|
2608
|
+
v.isDateDisabled = (I, T) => C(I, T);
|
|
2609
2609
|
}
|
|
2610
|
-
|
|
2610
|
+
v.input === "select" && v.fallbackOption && v.multiple && (!n.value[v.key] || n.value[v.key].length === 0) && (n.value[v.key] = [""]);
|
|
2611
2611
|
}), d.value = g;
|
|
2612
|
-
}, m = () => new Promise((g,
|
|
2612
|
+
}, m = () => new Promise((g, v) => {
|
|
2613
2613
|
var y;
|
|
2614
2614
|
(y = s.value) == null || y.validate((C) => {
|
|
2615
2615
|
if (C)
|
|
2616
|
-
|
|
2616
|
+
v();
|
|
2617
2617
|
else {
|
|
2618
2618
|
const I = de(n.value), T = JSON.stringify(
|
|
2619
2619
|
I,
|
|
@@ -2667,13 +2667,13 @@ function ur(e, o, a, s, n, d) {
|
|
|
2667
2667
|
default: l(() => [
|
|
2668
2668
|
h("div", ir, [
|
|
2669
2669
|
(p(!0), z(ie, null, Ke(e.formItems, (f, g) => {
|
|
2670
|
-
var
|
|
2670
|
+
var v;
|
|
2671
2671
|
return p(), z(ie, { key: g }, [
|
|
2672
2672
|
f.show ? (p(), P(c, {
|
|
2673
2673
|
key: 0,
|
|
2674
2674
|
label: f.input !== "divider" ? typeof f.label == "function" ? f.label() : f.label : "",
|
|
2675
2675
|
path: f.key,
|
|
2676
|
-
rule: (
|
|
2676
|
+
rule: (v = f.rule) != null && v.required ? f.rule : void 0,
|
|
2677
2677
|
class: "oc-form-grid-item",
|
|
2678
2678
|
style: lo(`grid-column: span ${f.span || 6} / span ${f.span || 6};`),
|
|
2679
2679
|
"show-feedback": f.input !== "divider"
|
|
@@ -3077,7 +3077,7 @@ const $r = X({
|
|
|
3077
3077
|
a.success({
|
|
3078
3078
|
content: () => e("Notice.success"),
|
|
3079
3079
|
duration: 3e3
|
|
3080
|
-
}),
|
|
3080
|
+
}), v();
|
|
3081
3081
|
}).catch(() => {
|
|
3082
3082
|
a.error({
|
|
3083
3083
|
content: () => e("Notice.error"),
|
|
@@ -3094,7 +3094,7 @@ const $r = X({
|
|
|
3094
3094
|
a.success({
|
|
3095
3095
|
content: () => e("Notice.success"),
|
|
3096
3096
|
duration: 3e3
|
|
3097
|
-
}),
|
|
3097
|
+
}), v();
|
|
3098
3098
|
}).catch(() => {
|
|
3099
3099
|
a.error({
|
|
3100
3100
|
content: () => e("Notice.error"),
|
|
@@ -3118,12 +3118,12 @@ const $r = X({
|
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
3120
|
]), m = (C) => {
|
|
3121
|
-
i.value.page = C,
|
|
3121
|
+
i.value.page = C, v();
|
|
3122
3122
|
}, f = (C) => {
|
|
3123
|
-
i.value.pageSize = C, i.value.page = 1,
|
|
3123
|
+
i.value.pageSize = C, i.value.page = 1, v();
|
|
3124
3124
|
}, g = () => {
|
|
3125
|
-
i.value.page = 1,
|
|
3126
|
-
},
|
|
3125
|
+
i.value.page = 1, v();
|
|
3126
|
+
}, v = () => {
|
|
3127
3127
|
d.value || (d.value = !0, Rt({
|
|
3128
3128
|
jobType: "EXPORT",
|
|
3129
3129
|
jobName: n.value,
|
|
@@ -3136,10 +3136,10 @@ const $r = X({
|
|
|
3136
3136
|
}, y = (C) => {
|
|
3137
3137
|
Lo(C), o.value = C;
|
|
3138
3138
|
};
|
|
3139
|
-
return
|
|
3139
|
+
return v(), we(
|
|
3140
3140
|
() => q.download,
|
|
3141
3141
|
(C) => {
|
|
3142
|
-
o.value = C, C &&
|
|
3142
|
+
o.value = C, C && v();
|
|
3143
3143
|
}
|
|
3144
3144
|
), {
|
|
3145
3145
|
jobName: n,
|
|
@@ -3148,7 +3148,7 @@ const $r = X({
|
|
|
3148
3148
|
coldata: s,
|
|
3149
3149
|
query: i,
|
|
3150
3150
|
popDownload: o,
|
|
3151
|
-
init:
|
|
3151
|
+
init: v,
|
|
3152
3152
|
pageChange: m,
|
|
3153
3153
|
pageSizeChange: f,
|
|
3154
3154
|
doSearch: g,
|
|
@@ -3157,7 +3157,7 @@ const $r = X({
|
|
|
3157
3157
|
}
|
|
3158
3158
|
}), Tr = { class: "oc-header-download" };
|
|
3159
3159
|
function Or(e, o, a, s, n, d) {
|
|
3160
|
-
const i = u("IconArrowSquareDown"), c = u("NIcon"), m = u("NButton"), f = u("NInput"), g = u("IconSearch"),
|
|
3160
|
+
const i = u("IconArrowSquareDown"), c = u("NIcon"), m = u("NButton"), f = u("NInput"), g = u("IconSearch"), v = u("NTooltip"), y = u("IconArrowClockwise"), C = u("NFlex"), I = u("NDataTable"), T = u("NPopover");
|
|
3161
3161
|
return p(), P(T, {
|
|
3162
3162
|
trigger: "click",
|
|
3163
3163
|
placement: "bottom-end",
|
|
@@ -3198,7 +3198,7 @@ function Or(e, o, a, s, n, d) {
|
|
|
3198
3198
|
style: { width: "200px" },
|
|
3199
3199
|
placeholder: e.$t("Common.importer.fileName")
|
|
3200
3200
|
}, null, 8, ["value", "placeholder"]),
|
|
3201
|
-
r(
|
|
3201
|
+
r(v, { trigger: "hover" }, {
|
|
3202
3202
|
trigger: l(() => [
|
|
3203
3203
|
r(m, {
|
|
3204
3204
|
loading: e.loading,
|
|
@@ -3221,7 +3221,7 @@ function Or(e, o, a, s, n, d) {
|
|
|
3221
3221
|
]),
|
|
3222
3222
|
_: 1
|
|
3223
3223
|
}),
|
|
3224
|
-
r(
|
|
3224
|
+
r(v, { trigger: "hover" }, {
|
|
3225
3225
|
trigger: l(() => [
|
|
3226
3226
|
r(m, { onClick: e.init }, {
|
|
3227
3227
|
icon: l(() => [
|
|
@@ -3350,7 +3350,7 @@ const Pr = /* @__PURE__ */ L($r, [["render", Or]]), Ir = X({
|
|
|
3350
3350
|
});
|
|
3351
3351
|
}, g = (C) => {
|
|
3352
3352
|
i.value.page = C, y();
|
|
3353
|
-
},
|
|
3353
|
+
}, v = (C) => {
|
|
3354
3354
|
i.value.pageSize = C, i.value.page = 1, y();
|
|
3355
3355
|
}, y = () => {
|
|
3356
3356
|
d.value || (d.value = !0, Cr({
|
|
@@ -3372,14 +3372,14 @@ const Pr = /* @__PURE__ */ L($r, [["render", Or]]), Ir = X({
|
|
|
3372
3372
|
query: i,
|
|
3373
3373
|
clearAll: f,
|
|
3374
3374
|
pageChange: g,
|
|
3375
|
-
pageSizeChange:
|
|
3375
|
+
pageSizeChange: v,
|
|
3376
3376
|
init: y,
|
|
3377
3377
|
radiosChecked: m
|
|
3378
3378
|
};
|
|
3379
3379
|
}
|
|
3380
3380
|
}), Dr = { class: "com-title" };
|
|
3381
3381
|
function zr(e, o, a, s, n, d) {
|
|
3382
|
-
const i = u("IconAlert"), c = u("NIcon"), m = u("NButton"), f = u("NBadge"), g = u("NRadioButton"),
|
|
3382
|
+
const i = u("IconAlert"), c = u("NIcon"), m = u("NButton"), f = u("NBadge"), g = u("NRadioButton"), v = u("NRadioGroup"), y = u("IconClear"), C = u("NTooltip"), I = u("IconArrowClockwise"), T = u("NFlex"), $ = u("NDataTable"), B = u("NPopover");
|
|
3383
3383
|
return p(), P(B, {
|
|
3384
3384
|
trigger: "click",
|
|
3385
3385
|
placement: "bottom-end",
|
|
@@ -3415,7 +3415,7 @@ function zr(e, o, a, s, n, d) {
|
|
|
3415
3415
|
r(T, { justify: "space-between" }, {
|
|
3416
3416
|
default: l(() => [
|
|
3417
3417
|
h("div", Dr, R(e.$t("Common.message.title")), 1),
|
|
3418
|
-
r(
|
|
3418
|
+
r(v, {
|
|
3419
3419
|
value: e.radios,
|
|
3420
3420
|
"onUpdate:value": o[0] || (o[0] = (j) => e.radios = j),
|
|
3421
3421
|
name: "radios",
|
|
@@ -3547,49 +3547,54 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3547
3547
|
setup(e) {
|
|
3548
3548
|
const { t: o } = Se(), a = io(), s = je(), n = De(), d = k(q.platformUrl), i = k(!1);
|
|
3549
3549
|
k(void 0), k(10);
|
|
3550
|
-
const c = k(q.platformMenu), m = (
|
|
3551
|
-
fo(
|
|
3552
|
-
}, f = (
|
|
3553
|
-
|
|
3554
|
-
}, g = (
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3550
|
+
const c = k(q.platformMenu), m = (b) => {
|
|
3551
|
+
fo(b), ye("theme", b, 0);
|
|
3552
|
+
}, f = (b) => {
|
|
3553
|
+
b.indexOf("/iot/home") > -1 && (b = "/iot/home/all"), b.indexOf("/iot/timeline") > -1 && (b = "/iot/timeline/all"), d.value = b, yo();
|
|
3554
|
+
}, g = (b) => {
|
|
3555
|
+
var t;
|
|
3556
|
+
if (!b.disabled) {
|
|
3557
|
+
if (b.children && (t = b.children[0]) != null && t.disabled)
|
|
3558
|
+
return;
|
|
3559
|
+
f(b.key), s.push(b.key);
|
|
3560
|
+
}
|
|
3561
|
+
}, v = (b) => {
|
|
3562
|
+
if (!b.disabled) {
|
|
3563
|
+
if (b.children)
|
|
3559
3564
|
return;
|
|
3560
|
-
f(
|
|
3565
|
+
f(b.key), s.push(b.key), i.value = !1;
|
|
3561
3566
|
}
|
|
3562
|
-
}, y = (
|
|
3567
|
+
}, y = (b) => H(
|
|
3563
3568
|
"div",
|
|
3564
3569
|
{
|
|
3565
|
-
onClick: () => g(
|
|
3570
|
+
onClick: () => g(b)
|
|
3566
3571
|
},
|
|
3567
3572
|
{
|
|
3568
|
-
default: () => typeof
|
|
3573
|
+
default: () => typeof b.label == "function" ? b.label() : b.label
|
|
3569
3574
|
}
|
|
3570
|
-
), C = (
|
|
3575
|
+
), C = (b) => H(
|
|
3571
3576
|
"div",
|
|
3572
3577
|
{
|
|
3573
|
-
onClick: () => b
|
|
3578
|
+
onClick: () => v(b)
|
|
3574
3579
|
},
|
|
3575
3580
|
{
|
|
3576
|
-
default: () => typeof
|
|
3581
|
+
default: () => typeof b.label == "function" ? b.label() : b.label
|
|
3577
3582
|
}
|
|
3578
|
-
), I = (
|
|
3583
|
+
), I = (b) => b.icon ? H(
|
|
3579
3584
|
fe,
|
|
3580
3585
|
{
|
|
3581
3586
|
size: 24,
|
|
3582
|
-
onClick: () => g(
|
|
3587
|
+
onClick: () => g(b)
|
|
3583
3588
|
},
|
|
3584
3589
|
{
|
|
3585
|
-
default: () =>
|
|
3590
|
+
default: () => b.icon && b.icon()
|
|
3586
3591
|
}
|
|
3587
|
-
) : !1, T = (
|
|
3588
|
-
s.replace(
|
|
3592
|
+
) : !1, T = (b) => {
|
|
3593
|
+
s.replace(b);
|
|
3589
3594
|
}, $ = () => {
|
|
3590
3595
|
i.value = !1;
|
|
3591
3596
|
}, B = () => {
|
|
3592
|
-
const
|
|
3597
|
+
const b = [
|
|
3593
3598
|
{
|
|
3594
3599
|
label: N.tenantName,
|
|
3595
3600
|
key: "tenantName"
|
|
@@ -3599,10 +3604,10 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3599
3604
|
key: "theme"
|
|
3600
3605
|
}
|
|
3601
3606
|
];
|
|
3602
|
-
return q.language &&
|
|
3607
|
+
return q.language && b.push({
|
|
3603
3608
|
label: `${o("Common.dropdownMenu.language")} ${q.lang === "zh-CN" ? "EN" : "中文"}`,
|
|
3604
3609
|
key: "language"
|
|
3605
|
-
}),
|
|
3610
|
+
}), b.push({
|
|
3606
3611
|
label: o("Common.dropdownMenu.software"),
|
|
3607
3612
|
key: "app",
|
|
3608
3613
|
children: [
|
|
@@ -3631,10 +3636,10 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3631
3636
|
key: "dashboard_Prt"
|
|
3632
3637
|
}
|
|
3633
3638
|
]
|
|
3634
|
-
}), e.report &&
|
|
3639
|
+
}), e.report && b.push({
|
|
3635
3640
|
label: o("Common.dropdownMenu.report"),
|
|
3636
3641
|
key: "report"
|
|
3637
|
-
}),
|
|
3642
|
+
}), b.push(
|
|
3638
3643
|
{
|
|
3639
3644
|
label: o("Common.dropdownMenu.info"),
|
|
3640
3645
|
key: "info"
|
|
@@ -3643,15 +3648,15 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3643
3648
|
label: o("Common.dropdownMenu.logout"),
|
|
3644
3649
|
key: "logout"
|
|
3645
3650
|
}
|
|
3646
|
-
),
|
|
3647
|
-
}, j = async (
|
|
3648
|
-
|
|
3651
|
+
), b;
|
|
3652
|
+
}, j = async (b) => {
|
|
3653
|
+
b === "logout" && _t(), b === "theme" && m(!q.theme), b === "language" && Xe(), b === "info" && s.push("/custom/my"), b === "report" && s.push("/custom/report"), b === "android" && window.open("http://miiot.partexiot.cn/dk7u"), b === "ios" && window.open("https://apps.apple.com/cn/app/id1587313547"), b === "chrome" && window.open(
|
|
3649
3654
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"
|
|
3650
|
-
),
|
|
3655
|
+
), b === "edge" && window.open(
|
|
3651
3656
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"
|
|
3652
|
-
),
|
|
3657
|
+
), b === "dashboard_IoT" && window.open(
|
|
3653
3658
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"
|
|
3654
|
-
),
|
|
3659
|
+
), b === "dashboard_Prt" && window.open(
|
|
3655
3660
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip"
|
|
3656
3661
|
);
|
|
3657
3662
|
}, O = () => {
|
|
@@ -3668,8 +3673,8 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3668
3673
|
});
|
|
3669
3674
|
}, V = () => {
|
|
3670
3675
|
if (N.tenantStatus === 0 && N.renewalStatus === 0) {
|
|
3671
|
-
const
|
|
3672
|
-
|
|
3676
|
+
const b = document.getElementById("app");
|
|
3677
|
+
b && b.classList.add("outrange"), n.info({
|
|
3673
3678
|
action: () => H(
|
|
3674
3679
|
be,
|
|
3675
3680
|
{
|
|
@@ -3698,7 +3703,7 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3698
3703
|
});
|
|
3699
3704
|
}
|
|
3700
3705
|
if (N.tenantStatus === 2 && N.renewalStatus === 0) {
|
|
3701
|
-
let
|
|
3706
|
+
let b = `您的订阅即将于${ze(
|
|
3702
3707
|
N.endTime
|
|
3703
3708
|
)}到期,请联系管理员进行续订`, t = [
|
|
3704
3709
|
H(
|
|
@@ -3714,7 +3719,7 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3714
3719
|
}
|
|
3715
3720
|
)
|
|
3716
3721
|
];
|
|
3717
|
-
N.kind === 99 && (
|
|
3722
|
+
N.kind === 99 && (b = `您的订阅即将于${ze(
|
|
3718
3723
|
N.endTime
|
|
3719
3724
|
)}到期,为保证持续有效的提供服务请立即续订`, t = [
|
|
3720
3725
|
H(
|
|
@@ -3752,7 +3757,7 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3752
3757
|
}
|
|
3753
3758
|
),
|
|
3754
3759
|
closable: !1,
|
|
3755
|
-
content:
|
|
3760
|
+
content: b,
|
|
3756
3761
|
title: "温馨提示"
|
|
3757
3762
|
});
|
|
3758
3763
|
}
|
|
@@ -3762,16 +3767,16 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3762
3767
|
"backdropFilter" in document.documentElement.style || "WebkitBackdropFilter" in document.documentElement.style || document.body.classList.add("not-support-backdrop");
|
|
3763
3768
|
const S = () => {
|
|
3764
3769
|
if (N.tenantStatus === 0) {
|
|
3765
|
-
const
|
|
3766
|
-
|
|
3770
|
+
const b = document.body;
|
|
3771
|
+
b && b.classList.add("outrange");
|
|
3767
3772
|
}
|
|
3768
3773
|
};
|
|
3769
3774
|
return Pe(() => {
|
|
3770
3775
|
V(), f(a.path), S();
|
|
3771
3776
|
}), we(
|
|
3772
3777
|
() => a.path,
|
|
3773
|
-
(
|
|
3774
|
-
f(
|
|
3778
|
+
(b) => {
|
|
3779
|
+
f(b), S();
|
|
3775
3780
|
}
|
|
3776
3781
|
), {
|
|
3777
3782
|
userStore: N,
|
|
@@ -3793,7 +3798,7 @@ const Ar = /* @__PURE__ */ L(Ir, [["render", zr]]), Mr = X({
|
|
|
3793
3798
|
}
|
|
3794
3799
|
}), Br = { class: "oc-header" }, Vr = { class: "menu" };
|
|
3795
3800
|
function Fr(e, o, a, s, n, d) {
|
|
3796
|
-
const i = u("IconGridDots"), c = u("NIcon"), m = u("NButton"), f = u("NDropdown"), g = u("IconNavigation"),
|
|
3801
|
+
const i = u("IconGridDots"), c = u("NIcon"), m = u("NButton"), f = u("NDropdown"), g = u("IconNavigation"), v = u("NMenu"), y = u("Pop"), C = u("Message"), I = u("IconWeatherMoon"), T = u("IconWeatherSunny"), $ = u("IconUser"), B = u("NDrawerContent"), j = u("NDrawer");
|
|
3797
3802
|
return p(), z("header", Br, [
|
|
3798
3803
|
e.platformOption.length > 1 && e.platformShow ? (p(), P(f, {
|
|
3799
3804
|
key: 0,
|
|
@@ -3843,7 +3848,7 @@ function Fr(e, o, a, s, n, d) {
|
|
|
3843
3848
|
})
|
|
3844
3849
|
]),
|
|
3845
3850
|
_: 1
|
|
3846
|
-
})) : (p(), P(
|
|
3851
|
+
})) : (p(), P(v, {
|
|
3847
3852
|
key: 1,
|
|
3848
3853
|
value: e.activeMenu,
|
|
3849
3854
|
mode: "horizontal",
|
|
@@ -3936,7 +3941,7 @@ function Fr(e, o, a, s, n, d) {
|
|
|
3936
3941
|
closable: ""
|
|
3937
3942
|
}, {
|
|
3938
3943
|
default: l(() => [
|
|
3939
|
-
r(
|
|
3944
|
+
r(v, {
|
|
3940
3945
|
value: e.activeMenu,
|
|
3941
3946
|
"default-expand-all": !0,
|
|
3942
3947
|
options: e.menuOptions,
|
|
@@ -4062,7 +4067,7 @@ const Rr = /* @__PURE__ */ L(Mr, [["render", Fr]]), Lr = X({
|
|
|
4062
4067
|
o("update:show", !1);
|
|
4063
4068
|
}, g = (T) => {
|
|
4064
4069
|
i.value.page = T, C();
|
|
4065
|
-
},
|
|
4070
|
+
}, v = (T) => {
|
|
4066
4071
|
i.value.pageSize = T, i.value.page = 1, C();
|
|
4067
4072
|
}, y = (T) => new Promise(($, B) => {
|
|
4068
4073
|
T.file.file && Ft({
|
|
@@ -4114,14 +4119,14 @@ const Rr = /* @__PURE__ */ L(Mr, [["render", Fr]]), Lr = X({
|
|
|
4114
4119
|
init: C,
|
|
4115
4120
|
closeModel: f,
|
|
4116
4121
|
pageChange: g,
|
|
4117
|
-
pageSizeChange:
|
|
4122
|
+
pageSizeChange: v,
|
|
4118
4123
|
beforeUpload: y,
|
|
4119
4124
|
downloadFile: I
|
|
4120
4125
|
};
|
|
4121
4126
|
}
|
|
4122
4127
|
}), Ur = { class: "oc-header-download" };
|
|
4123
4128
|
function qr(e, o, a, s, n, d) {
|
|
4124
|
-
const i = u("IconMailInboxAdd"), c = u("NIcon"), m = u("NButton"), f = u("NUpload"), g = u("IconCloudArrowDown"),
|
|
4129
|
+
const i = u("IconMailInboxAdd"), c = u("NIcon"), m = u("NButton"), f = u("NUpload"), g = u("IconCloudArrowDown"), v = u("IconArrowClockwise"), y = u("NTooltip"), C = u("IconDismiss"), I = u("NFlex"), T = u("NDataTable"), $ = u("NCard"), B = u("NModal");
|
|
4125
4130
|
return p(), P(B, {
|
|
4126
4131
|
show: e.modal,
|
|
4127
4132
|
"onUpdate:show": o[0] || (o[0] = (j) => e.modal = j),
|
|
@@ -4186,7 +4191,7 @@ function qr(e, o, a, s, n, d) {
|
|
|
4186
4191
|
icon: l(() => [
|
|
4187
4192
|
r(c, null, {
|
|
4188
4193
|
default: l(() => [
|
|
4189
|
-
r(
|
|
4194
|
+
r(v)
|
|
4190
4195
|
]),
|
|
4191
4196
|
_: 1
|
|
4192
4197
|
})
|
|
@@ -4273,7 +4278,7 @@ const Et = /* @__PURE__ */ L(Lr, [["render", qr]]), _r = X({
|
|
|
4273
4278
|
}
|
|
4274
4279
|
},
|
|
4275
4280
|
setup() {
|
|
4276
|
-
const { t: e } = Se(), o = De(), a = je(), s = k(pe("loginTab", "1")), n = k(), d = k(), i = k(), c = k(), m = k(!1), f = k(!1), g = k(!1),
|
|
4281
|
+
const { t: e } = Se(), o = De(), a = je(), s = k(pe("loginTab", "1")), n = k(), d = k(), i = k(), c = k(), m = k(!1), f = k(!1), g = k(!1), v = k(!1), y = k({
|
|
4277
4282
|
phone: "",
|
|
4278
4283
|
name: "",
|
|
4279
4284
|
password: ""
|
|
@@ -4359,15 +4364,15 @@ const Et = /* @__PURE__ */ L(Lr, [["render", qr]]), _r = X({
|
|
|
4359
4364
|
const U = T.value.filter(
|
|
4360
4365
|
(J) => J.label.indexOf(_) > -1
|
|
4361
4366
|
);
|
|
4362
|
-
I.value = U, U.length === 0 ?
|
|
4363
|
-
},
|
|
4364
|
-
y.value.name = _,
|
|
4367
|
+
I.value = U, U.length === 0 ? v.value = !1 : v.value = !0;
|
|
4368
|
+
}, b = (_) => {
|
|
4369
|
+
y.value.name = _, v.value = !1, i.value.focus(), setTimeout(() => {
|
|
4365
4370
|
var U;
|
|
4366
4371
|
(U = d.value) == null || U.restoreValidation();
|
|
4367
4372
|
}, 80);
|
|
4368
4373
|
}, t = (_) => {
|
|
4369
4374
|
var U;
|
|
4370
|
-
I.value.length === 0 ?
|
|
4375
|
+
I.value.length === 0 ? v.value = !1 : v.value = _, (U = d.value) == null || U.restoreValidation();
|
|
4371
4376
|
}, D = (_) => {
|
|
4372
4377
|
y.value.phone = _;
|
|
4373
4378
|
const U = B.value.filter(
|
|
@@ -4474,7 +4479,7 @@ const Et = /* @__PURE__ */ L(Lr, [["render", qr]]), _r = X({
|
|
|
4474
4479
|
formValue: y,
|
|
4475
4480
|
formRules: C,
|
|
4476
4481
|
showPhoneDropdown: g,
|
|
4477
|
-
showNameDropdown:
|
|
4482
|
+
showNameDropdown: v,
|
|
4478
4483
|
optionsName: I,
|
|
4479
4484
|
optionsPhone: $,
|
|
4480
4485
|
loading: f,
|
|
@@ -4485,7 +4490,7 @@ const Et = /* @__PURE__ */ L(Lr, [["render", qr]]), _r = X({
|
|
|
4485
4490
|
phoneChange: D,
|
|
4486
4491
|
changeTheme: M,
|
|
4487
4492
|
fnSetLang: Xe,
|
|
4488
|
-
dropNameSelect:
|
|
4493
|
+
dropNameSelect: b,
|
|
4489
4494
|
dropPhoneSelect: G,
|
|
4490
4495
|
showDropdownNameChange: t,
|
|
4491
4496
|
showDropdownPhoneChange: ae,
|
|
@@ -4495,7 +4500,7 @@ const Et = /* @__PURE__ */ L(Lr, [["render", qr]]), _r = X({
|
|
|
4495
4500
|
}
|
|
4496
4501
|
}), Er = { class: "oc-login" }, jr = { class: "oc-login-right" }, Hr = { class: "oc-login-language" }, Gr = { class: "oc-login-platform" }, Jr = { class: "oc-login-form" }, Wr = { class: "oc-login-submit" }, Kr = ["href"], Qr = { class: "oc-login-footer" };
|
|
4497
4502
|
function Xr(e, o, a, s, n, d) {
|
|
4498
|
-
const i = u("IconWeatherMoon"), c = u("NIcon"), m = u("IconWeatherSunny"), f = u("NButton"), g = u("NInput"),
|
|
4503
|
+
const i = u("IconWeatherMoon"), c = u("NIcon"), m = u("IconWeatherSunny"), f = u("NButton"), g = u("NInput"), v = u("NDropdown"), y = u("NFormItem"), C = u("NForm"), I = u("NTabPane"), T = u("NTabs"), $ = u("NPopover"), B = u("NGi"), j = u("NGrid");
|
|
4499
4504
|
return p(), z("div", Er, [
|
|
4500
4505
|
h("div", {
|
|
4501
4506
|
class: "oc-login-left",
|
|
@@ -4573,7 +4578,7 @@ function Xr(e, o, a, s, n, d) {
|
|
|
4573
4578
|
path: "phone"
|
|
4574
4579
|
}, {
|
|
4575
4580
|
default: l(() => [
|
|
4576
|
-
r(
|
|
4581
|
+
r(v, {
|
|
4577
4582
|
show: e.showPhoneDropdown,
|
|
4578
4583
|
options: e.optionsPhone,
|
|
4579
4584
|
"render-label": e.renderDropdownPhoneLabel,
|
|
@@ -4641,7 +4646,7 @@ function Xr(e, o, a, s, n, d) {
|
|
|
4641
4646
|
path: "name"
|
|
4642
4647
|
}, {
|
|
4643
4648
|
default: l(() => [
|
|
4644
|
-
r(
|
|
4649
|
+
r(v, {
|
|
4645
4650
|
show: e.showNameDropdown,
|
|
4646
4651
|
options: e.optionsName,
|
|
4647
4652
|
"render-label": e.renderDropdownNameLabel,
|
|
@@ -4802,14 +4807,14 @@ const Yr = /* @__PURE__ */ L(_r, [["render", Xr]]), Zr = X({
|
|
|
4802
4807
|
const o = k(!1), a = k(0), s = (c) => 1 - Math.pow(1 - c, 5), n = (c) => e.format ? e.format(c) : c;
|
|
4803
4808
|
function d(c, m, f = e.duration) {
|
|
4804
4809
|
const g = () => {
|
|
4805
|
-
const y = performance.now(), C = Math.min(y -
|
|
4810
|
+
const y = performance.now(), C = Math.min(y - v, f), I = c + (m - c) * s(C / f);
|
|
4806
4811
|
if (C === f) {
|
|
4807
4812
|
a.value = n(Number(e.value)), o.value = !1;
|
|
4808
4813
|
return;
|
|
4809
4814
|
}
|
|
4810
4815
|
const T = Number(I.toFixed(e.precision));
|
|
4811
4816
|
a.value = n(T), requestAnimationFrame(g);
|
|
4812
|
-
},
|
|
4817
|
+
}, v = performance.now();
|
|
4813
4818
|
g();
|
|
4814
4819
|
}
|
|
4815
4820
|
const i = (c = 0, m = e.value) => {
|
|
@@ -5037,7 +5042,7 @@ const ss = /* @__PURE__ */ L(ls, [["render", rs]]), is = (e) => {
|
|
|
5037
5042
|
email: {
|
|
5038
5043
|
required: !1,
|
|
5039
5044
|
trigger: "blur",
|
|
5040
|
-
validator: (
|
|
5045
|
+
validator: (v, y) => y ? /^[0-9a-zA-Z_.-]+[@][0-9a-zA-Z_.-]+([.][a-zA-Z]+){1,2}$/.test(
|
|
5041
5046
|
y
|
|
5042
5047
|
) : !0,
|
|
5043
5048
|
message: () => e("Common.my.emailMessage")
|
|
@@ -5045,7 +5050,7 @@ const ss = /* @__PURE__ */ L(ls, [["render", rs]]), is = (e) => {
|
|
|
5045
5050
|
phone: {
|
|
5046
5051
|
required: !1,
|
|
5047
5052
|
trigger: "blur",
|
|
5048
|
-
validator: (
|
|
5053
|
+
validator: (v, y) => y ? /^[1][3,4,5,7,8,9][0-9]{9}$/.test(y) : !0,
|
|
5049
5054
|
message: () => e("Common.my.phoneMessage")
|
|
5050
5055
|
}
|
|
5051
5056
|
});
|
|
@@ -5058,8 +5063,8 @@ const ss = /* @__PURE__ */ L(ls, [["render", rs]]), is = (e) => {
|
|
|
5058
5063
|
formRules: m,
|
|
5059
5064
|
loading: n,
|
|
5060
5065
|
pwdSubmit: () => {
|
|
5061
|
-
var
|
|
5062
|
-
n.value || (n.value = !0, (
|
|
5066
|
+
var v;
|
|
5067
|
+
n.value || (n.value = !0, (v = a.value) == null || v.validate((y) => {
|
|
5063
5068
|
y ? n.value = !1 : is(d.value).then(() => {
|
|
5064
5069
|
var C;
|
|
5065
5070
|
d.value = {
|
|
@@ -5078,8 +5083,8 @@ const ss = /* @__PURE__ */ L(ls, [["render", rs]]), is = (e) => {
|
|
|
5078
5083
|
}));
|
|
5079
5084
|
},
|
|
5080
5085
|
formSubmit: () => {
|
|
5081
|
-
var
|
|
5082
|
-
n.value || (n.value = !0, (
|
|
5086
|
+
var v;
|
|
5087
|
+
n.value || (n.value = !0, (v = s.value) == null || v.validate((y) => {
|
|
5083
5088
|
y ? n.value = !1 : us(c.value).then(() => {
|
|
5084
5089
|
o.success({
|
|
5085
5090
|
content: () => e("Notice.success"),
|
|
@@ -5094,8 +5099,8 @@ const ss = /* @__PURE__ */ L(ls, [["render", rs]]), is = (e) => {
|
|
|
5094
5099
|
}
|
|
5095
5100
|
}), cs = { class: "com-card" }, ps = { class: "com-title" }, fs = { class: "text-right" }, ms = { class: "com-card" }, hs = { class: "com-title" }, gs = { class: "text-right" };
|
|
5096
5101
|
function ys(e, o, a, s, n, d) {
|
|
5097
|
-
const i = u("NInput"), c = u("NFormItem"), m = u("NForm"), f = u("NButton"), g = u("NGi"),
|
|
5098
|
-
return p(), P(
|
|
5102
|
+
const i = u("NInput"), c = u("NFormItem"), m = u("NForm"), f = u("NButton"), g = u("NGi"), v = u("NGrid");
|
|
5103
|
+
return p(), P(v, {
|
|
5099
5104
|
"x-gap": "15",
|
|
5100
5105
|
"y-gap": "15",
|
|
5101
5106
|
cols: 2
|
|
@@ -5407,7 +5412,7 @@ function Cs(e, o, a, s, n, d) {
|
|
|
5407
5412
|
}),
|
|
5408
5413
|
r(c, {
|
|
5409
5414
|
value: e.range,
|
|
5410
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
5415
|
+
"onUpdate:value": o[0] || (o[0] = (v) => e.range = v),
|
|
5411
5416
|
type: "daterange",
|
|
5412
5417
|
"is-date-disabled": e.isRangeDateDisabled,
|
|
5413
5418
|
style: { width: "300px" }
|
|
@@ -5467,22 +5472,22 @@ function Di(e, o) {
|
|
|
5467
5472
|
}];
|
|
5468
5473
|
}
|
|
5469
5474
|
function zi(e, o, a) {
|
|
5470
|
-
const s = `useQuery-${e}`, n = k(), d = k(), i = k(), c = k(!1), m = k("idle"), f = k(), g = k(0),
|
|
5475
|
+
const s = `useQuery-${e}`, n = k(), d = k(), i = k(), c = k(!1), m = k("idle"), f = k(), g = k(0), v = k(0), y = async () => {
|
|
5471
5476
|
if (!c.value) {
|
|
5472
5477
|
T(!0, "loading");
|
|
5473
5478
|
try {
|
|
5474
5479
|
let V;
|
|
5475
5480
|
if (Array.isArray(o))
|
|
5476
|
-
V = await new Promise((S,
|
|
5477
|
-
n.value =
|
|
5481
|
+
V = await new Promise((S, b) => {
|
|
5482
|
+
n.value = b, Promise.all(o.map((t) => t.call(null))).then((t) => {
|
|
5478
5483
|
S(t);
|
|
5479
5484
|
}).catch((t) => {
|
|
5480
|
-
|
|
5485
|
+
b(t);
|
|
5481
5486
|
});
|
|
5482
5487
|
});
|
|
5483
5488
|
else {
|
|
5484
|
-
const F = new Promise((S,
|
|
5485
|
-
n.value =
|
|
5489
|
+
const F = new Promise((S, b) => {
|
|
5490
|
+
n.value = b;
|
|
5486
5491
|
});
|
|
5487
5492
|
V = await Promise.race([F, o()]);
|
|
5488
5493
|
}
|
|
@@ -5490,7 +5495,7 @@ function zi(e, o, a) {
|
|
|
5490
5495
|
} catch (V) {
|
|
5491
5496
|
$(V), T(!1, "error"), g.value > 0 && (g.value = g.value - 1, setTimeout(() => {
|
|
5492
5497
|
y();
|
|
5493
|
-
},
|
|
5498
|
+
}, v.value));
|
|
5494
5499
|
}
|
|
5495
5500
|
}
|
|
5496
5501
|
}, { run: C } = Ht(
|
|
@@ -5512,7 +5517,7 @@ function zi(e, o, a) {
|
|
|
5512
5517
|
}, O = () => {
|
|
5513
5518
|
clearInterval(i.value);
|
|
5514
5519
|
};
|
|
5515
|
-
if (a != null && a.retry && a.pollingInterval === void 0 && (g.value = a.retry.retryCount || 3,
|
|
5520
|
+
if (a != null && a.retry && a.pollingInterval === void 0 && (g.value = a.retry.retryCount || 3, v.value = a.retry.retryInterval || 1e3 * 2 ** 3), a != null && a.initialData && I(a.initialData()), a === void 0 || a.initialData === void 0 || a.cache === void 0 || a.cache === !0)
|
|
5516
5521
|
try {
|
|
5517
5522
|
const V = pe(s, !1);
|
|
5518
5523
|
V && I(V);
|
|
@@ -5550,7 +5555,7 @@ const Ss = X({
|
|
|
5550
5555
|
setup(e, { emit: o }) {
|
|
5551
5556
|
const a = k(), s = k(), n = k(!1), d = k(!1), i = De(), c = 1280, m = 720;
|
|
5552
5557
|
let f = null, g = null;
|
|
5553
|
-
const
|
|
5558
|
+
const v = (F, S) => {
|
|
5554
5559
|
f.beginPath(), f.moveTo(F.x, F.y), f.lineTo(S.x, S.y), f.lineWidth = 2, f.strokeStyle = "green", f.stroke();
|
|
5555
5560
|
}, y = () => {
|
|
5556
5561
|
d.value && requestAnimationFrame(C);
|
|
@@ -5561,8 +5566,8 @@ const Ss = X({
|
|
|
5561
5566
|
try {
|
|
5562
5567
|
const S = Fa(F.data, c, m);
|
|
5563
5568
|
if (S) {
|
|
5564
|
-
const { location:
|
|
5565
|
-
b
|
|
5569
|
+
const { location: b, data: t } = S;
|
|
5570
|
+
v(b.topLeftCorner, b.topRightCorner), v(b.topRightCorner, b.bottomRightCorner), v(b.bottomRightCorner, b.bottomLeftCorner), v(b.bottomLeftCorner, b.topLeftCorner), o("on-update:value", t), I();
|
|
5566
5571
|
}
|
|
5567
5572
|
} catch {
|
|
5568
5573
|
d.value = !1, i.error({
|
|
@@ -5620,7 +5625,7 @@ const Ss = X({
|
|
|
5620
5625
|
class: "oc-scan-input"
|
|
5621
5626
|
};
|
|
5622
5627
|
function Ps(e, o, a, s, n, d) {
|
|
5623
|
-
const i = u("NButton"), c = u("IconDismiss"), m = u("NIcon"), f = u("NFlex"), g = u("NCard"),
|
|
5628
|
+
const i = u("NButton"), c = u("IconDismiss"), m = u("NIcon"), f = u("NFlex"), g = u("NCard"), v = u("NModal");
|
|
5624
5629
|
return p(), z(ie, null, [
|
|
5625
5630
|
r(i, {
|
|
5626
5631
|
type: "primary",
|
|
@@ -5632,7 +5637,7 @@ function Ps(e, o, a, s, n, d) {
|
|
|
5632
5637
|
]),
|
|
5633
5638
|
_: 1
|
|
5634
5639
|
}, 8, ["loading", "onClick"]),
|
|
5635
|
-
r(
|
|
5640
|
+
r(v, {
|
|
5636
5641
|
show: e.modal,
|
|
5637
5642
|
"onUpdate:show": o[0] || (o[0] = (y) => e.modal = y),
|
|
5638
5643
|
"on-mask-click": e.closeAll
|
|
@@ -5786,7 +5791,7 @@ const As = /* @__PURE__ */ L(Ds, [["render", zs]]), Ms = X({
|
|
|
5786
5791
|
}
|
|
5787
5792
|
},
|
|
5788
5793
|
setup(e, { expose: o, slots: a }) {
|
|
5789
|
-
const { t: s } = Se(), n = k(!!a.header), d = k({}), i = k(!0), c = k(!1), m = k(0), f = k({}), g = k({}),
|
|
5794
|
+
const { t: s } = Se(), n = k(!!a.header), d = k({}), i = k(!0), c = k(!1), m = k(0), f = k({}), g = k({}), v = k([
|
|
5790
5795
|
{
|
|
5791
5796
|
key: "label"
|
|
5792
5797
|
}
|
|
@@ -5799,7 +5804,7 @@ const As = /* @__PURE__ */ L(Ds, [["render", zs]]), Ms = X({
|
|
|
5799
5804
|
value: "匹配失败"
|
|
5800
5805
|
}) : O.fallbackOption : !1, C = (O, V, F) => {
|
|
5801
5806
|
const S = F.options.filter(
|
|
5802
|
-
(
|
|
5807
|
+
(b) => String(b.label).toLocaleLowerCase().indexOf(String(V).toLocaleLowerCase()) > -1
|
|
5803
5808
|
) || [];
|
|
5804
5809
|
f.value[O].options = S, S.length === 0 ? f.value[O].display = !1 : f.value[O].display = !0;
|
|
5805
5810
|
}, I = (O) => {
|
|
@@ -5817,8 +5822,8 @@ const As = /* @__PURE__ */ L(Ds, [["render", zs]]), Ms = X({
|
|
|
5817
5822
|
if (Object.keys(O).length > 0)
|
|
5818
5823
|
for (let D = 0; D <= F; D++)
|
|
5819
5824
|
(t = O[S[D]]) != null && t.show && (V = V + 1);
|
|
5820
|
-
let
|
|
5821
|
-
n.value && (
|
|
5825
|
+
let b = F - V >= 0 ? F - V - 1 : -1;
|
|
5826
|
+
n.value && (b = b - 1, V = V + 1), m.value = b, V > F ? c.value = !0 : c.value = !1, e.small && (i.value = !1, c.value = !1), d.value = O;
|
|
5822
5827
|
}, T = (O) => {
|
|
5823
5828
|
f.value[O].options.length === 0 ? f.value[O].display = !1 : f.value[O].display = !0;
|
|
5824
5829
|
}, $ = () => {
|
|
@@ -5839,7 +5844,7 @@ const As = /* @__PURE__ */ L(Ds, [["render", zs]]), Ms = X({
|
|
|
5839
5844
|
collapsed: i,
|
|
5840
5845
|
searchData: g,
|
|
5841
5846
|
dropDisplay: f,
|
|
5842
|
-
columnsPopover:
|
|
5847
|
+
columnsPopover: v,
|
|
5843
5848
|
isSlotHeader: n,
|
|
5844
5849
|
showMore: $,
|
|
5845
5850
|
setValues: j,
|
|
@@ -5854,7 +5859,7 @@ const As = /* @__PURE__ */ L(Ds, [["render", zs]]), Ms = X({
|
|
|
5854
5859
|
class: "oc-search-action-more"
|
|
5855
5860
|
};
|
|
5856
5861
|
function Rs(e, o, a, s, n, d) {
|
|
5857
|
-
const i = u("NGridItem"), c = u("NInputGroupLabel"), m = u("NInput"), f = u("NInputNumber"), g = u("NSelect"),
|
|
5862
|
+
const i = u("NGridItem"), c = u("NInputGroupLabel"), m = u("NInput"), f = u("NInputNumber"), g = u("NSelect"), v = u("NDataTable"), y = u("NPopover"), C = u("NCascader"), I = u("NTreeSelect"), T = u("OcTimePickRange"), $ = u("NDatePicker"), B = u("NInputGroup"), j = u("NGrid"), O = u("IconArrowDown"), V = u("NIcon"), F = u("IconArrowUp"), S = u("NButton"), b = u("NTooltip");
|
|
5858
5863
|
return p(), z("div", Bs, [
|
|
5859
5864
|
r(j, {
|
|
5860
5865
|
"x-gap": "15",
|
|
@@ -5994,7 +5999,7 @@ function Rs(e, o, a, s, n, d) {
|
|
|
5994
5999
|
default: l(() => {
|
|
5995
6000
|
var M;
|
|
5996
6001
|
return [
|
|
5997
|
-
r(
|
|
6002
|
+
r(v, {
|
|
5998
6003
|
columns: e.columnsPopover,
|
|
5999
6004
|
data: ((M = e.dropDisplay[D]) == null ? void 0 : M.options) || [],
|
|
6000
6005
|
"max-height": 300,
|
|
@@ -6237,7 +6242,7 @@ function Rs(e, o, a, s, n, d) {
|
|
|
6237
6242
|
_: 3
|
|
6238
6243
|
}, 8, ["cols", "collapsed"]),
|
|
6239
6244
|
e.more ? (p(), z("div", Fs, [
|
|
6240
|
-
r(
|
|
6245
|
+
r(b, { trigger: "hover" }, {
|
|
6241
6246
|
trigger: l(() => [
|
|
6242
6247
|
r(S, { onClick: e.showMore }, {
|
|
6243
6248
|
icon: l(() => [
|
|
@@ -6358,7 +6363,7 @@ const Gs = /* @__PURE__ */ L(Us, [["render", Hs]]), Js = X({
|
|
|
6358
6363
|
},
|
|
6359
6364
|
emits: ["update:loading", "on-update:value"],
|
|
6360
6365
|
setup(e, { emit: o, slots: a, expose: s }) {
|
|
6361
|
-
const n = io(), d = je(), i = k(), c = k({}), m = k(!1), f = k(!!a.header), g = k(!!a.action),
|
|
6366
|
+
const n = io(), d = je(), i = k(), c = k({}), m = k(!1), f = k(!!a.header), g = k(!!a.action), v = (T = !1) => {
|
|
6362
6367
|
if (!e.loading && i.value) {
|
|
6363
6368
|
const $ = i.value.getValues();
|
|
6364
6369
|
if (!T && $.query && ($.query.page = 1), o("update:loading", !0), o("on-update:value", $), e.cache) {
|
|
@@ -6367,7 +6372,7 @@ const Gs = /* @__PURE__ */ L(Us, [["render", Hs]]), Js = X({
|
|
|
6367
6372
|
}
|
|
6368
6373
|
}
|
|
6369
6374
|
}, y = () => {
|
|
6370
|
-
e.loading || (C(JSON.parse(JSON.stringify(e.defaultValue))),
|
|
6375
|
+
e.loading || (C(JSON.parse(JSON.stringify(e.defaultValue))), v());
|
|
6371
6376
|
}, C = (T, $ = !1) => {
|
|
6372
6377
|
if (i.value && i.value.setValues(JSON.parse(JSON.stringify(T))), I(e.data), $)
|
|
6373
6378
|
d.replace(n.path);
|
|
@@ -6388,7 +6393,7 @@ const Gs = /* @__PURE__ */ L(Us, [["render", Hs]]), Js = X({
|
|
|
6388
6393
|
O === j && (T = V);
|
|
6389
6394
|
}
|
|
6390
6395
|
}
|
|
6391
|
-
i.value && (i.value.setValues(JSON.parse(JSON.stringify(T))), i.value.dataFactory(e.data)), e.autoSubmit &&
|
|
6396
|
+
i.value && (i.value.setValues(JSON.parse(JSON.stringify(T))), i.value.dataFactory(e.data)), e.autoSubmit && v(!0);
|
|
6392
6397
|
}, 100);
|
|
6393
6398
|
}), {
|
|
6394
6399
|
itemRef: i,
|
|
@@ -6397,7 +6402,7 @@ const Gs = /* @__PURE__ */ L(Us, [["render", Hs]]), Js = X({
|
|
|
6397
6402
|
isSlotAction: g,
|
|
6398
6403
|
commonStore: q,
|
|
6399
6404
|
itemData: c,
|
|
6400
|
-
doSearch:
|
|
6405
|
+
doSearch: v,
|
|
6401
6406
|
clearAll: y
|
|
6402
6407
|
};
|
|
6403
6408
|
}
|
|
@@ -6406,7 +6411,7 @@ const Gs = /* @__PURE__ */ L(Us, [["render", Hs]]), Js = X({
|
|
|
6406
6411
|
class: "oc-search-bar-popover"
|
|
6407
6412
|
}, Ks = { key: 0 }, Qs = { class: "oc-search-bar-center" };
|
|
6408
6413
|
function Xs(e, o, a, s, n, d) {
|
|
6409
|
-
const i = u("OcSearchBarItem"), c = u("IconArrowDown"), m = u("NIcon"), f = u("NButton"), g = u("IconReset"),
|
|
6414
|
+
const i = u("OcSearchBarItem"), c = u("IconArrowDown"), m = u("NIcon"), f = u("NButton"), g = u("IconReset"), v = u("IconSearch"), y = u("NFlex"), C = u("OcSearchBarPop"), I = u("IconFilter"), T = u("NTooltip");
|
|
6410
6415
|
return p(), z("div", {
|
|
6411
6416
|
class: at(["oc-search-bar", {
|
|
6412
6417
|
small: !e.isSlotHeader && (e.small || e.commonStore.isMobile)
|
|
@@ -6471,7 +6476,7 @@ function Xs(e, o, a, s, n, d) {
|
|
|
6471
6476
|
icon: l(() => [
|
|
6472
6477
|
r(m, null, {
|
|
6473
6478
|
default: l(() => [
|
|
6474
|
-
r(
|
|
6479
|
+
r(v)
|
|
6475
6480
|
]),
|
|
6476
6481
|
_: 1
|
|
6477
6482
|
})
|
|
@@ -6550,7 +6555,7 @@ function Xs(e, o, a, s, n, d) {
|
|
|
6550
6555
|
icon: l(() => [
|
|
6551
6556
|
r(m, null, {
|
|
6552
6557
|
default: l(() => [
|
|
6553
|
-
r(
|
|
6558
|
+
r(v)
|
|
6554
6559
|
]),
|
|
6555
6560
|
_: 1
|
|
6556
6561
|
})
|
|
@@ -6640,7 +6645,7 @@ function xs(e, o, a, s, n, d) {
|
|
|
6640
6645
|
(p(!0), z(ie, null, Ke(e.num, (f, g) => (p(), z(ie, {
|
|
6641
6646
|
key: `skeleton_${g}`
|
|
6642
6647
|
}, [
|
|
6643
|
-
(p(!0), z(ie, null, Ke(e.num[g][0], (
|
|
6648
|
+
(p(!0), z(ie, null, Ke(e.num[g][0], (v, y) => (p(), P(c, {
|
|
6644
6649
|
key: `skeleton_${g}_${y}`,
|
|
6645
6650
|
span: `${e.cols / 2} m:2 l:${e.num[g][1]}`
|
|
6646
6651
|
}, {
|
|
@@ -6768,7 +6773,7 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6768
6773
|
},
|
|
6769
6774
|
emits: ["update:loading", "on-update:value", "on-update:filter"],
|
|
6770
6775
|
setup(e, { emit: o, expose: a, slots: s }) {
|
|
6771
|
-
const n = k(!!s.header), d = k(), { t: i } = Se(), c = io(), m = je(), f = De(), g = k(!1),
|
|
6776
|
+
const n = k(!!s.header), d = k(), { t: i } = Se(), c = io(), m = je(), f = De(), g = k(!1), v = k(!1), y = k(!1), C = k([]), I = k([]), T = k([]), $ = k({
|
|
6772
6777
|
query: {
|
|
6773
6778
|
page: 1
|
|
6774
6779
|
}
|
|
@@ -6784,7 +6789,7 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6784
6789
|
}).catch(() => {
|
|
6785
6790
|
g.value = !1, o("update:loading", !1);
|
|
6786
6791
|
});
|
|
6787
|
-
},
|
|
6792
|
+
}, b = (w) => {
|
|
6788
6793
|
$.value.query.page = w, yo(), S();
|
|
6789
6794
|
}, t = (w) => {
|
|
6790
6795
|
$.value.query.pageSize = w, $.value.query.page = 1, yo(), S();
|
|
@@ -6806,7 +6811,7 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6806
6811
|
}
|
|
6807
6812
|
S();
|
|
6808
6813
|
}, Ce = () => {
|
|
6809
|
-
|
|
6814
|
+
v.value = !0, Lt({
|
|
6810
6815
|
...e.exporter,
|
|
6811
6816
|
jobParams: JSON.stringify($.value)
|
|
6812
6817
|
}).then(() => {
|
|
@@ -6814,10 +6819,10 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6814
6819
|
content: () => i("Notice.success"),
|
|
6815
6820
|
duration: 3e3
|
|
6816
6821
|
}), setTimeout(() => {
|
|
6817
|
-
|
|
6822
|
+
v.value = !1;
|
|
6818
6823
|
}, 2e3);
|
|
6819
6824
|
}).catch(() => {
|
|
6820
|
-
|
|
6825
|
+
v.value = !1;
|
|
6821
6826
|
});
|
|
6822
6827
|
}, he = (w) => {
|
|
6823
6828
|
const x = de(e.columns), le = [], Y = /* @__PURE__ */ new Set(), se = {};
|
|
@@ -6958,7 +6963,7 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6958
6963
|
minH: O,
|
|
6959
6964
|
maxH: V,
|
|
6960
6965
|
searchRef: d,
|
|
6961
|
-
exportLoading:
|
|
6966
|
+
exportLoading: v,
|
|
6962
6967
|
tableColumns: C,
|
|
6963
6968
|
tableData: T,
|
|
6964
6969
|
tableQuery: $,
|
|
@@ -6967,7 +6972,7 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6967
6972
|
baseColumns: I,
|
|
6968
6973
|
showImporter: y,
|
|
6969
6974
|
isSlotHeader: n,
|
|
6970
|
-
pageChange:
|
|
6975
|
+
pageChange: b,
|
|
6971
6976
|
pageSizeChange: t,
|
|
6972
6977
|
pageSorter: D,
|
|
6973
6978
|
pinChange: G,
|
|
@@ -6980,7 +6985,7 @@ const ei = /* @__PURE__ */ L(Ys, [["render", xs]]), oi = X({
|
|
|
6980
6985
|
}
|
|
6981
6986
|
}), ti = { class: "com-card" };
|
|
6982
6987
|
function ai(e, o, a, s, n, d) {
|
|
6983
|
-
const i = u("IconAdd"), c = u("NIcon"), m = u("NButton"), f = u("NTooltip"), g = u("IconMailInboxAdd"),
|
|
6988
|
+
const i = u("IconAdd"), c = u("NIcon"), m = u("NButton"), f = u("NTooltip"), g = u("IconMailInboxAdd"), v = u("IconCloudArrowDown"), y = u("NPopconfirm"), C = u("IconFilter"), I = u("IconNavigation"), T = u("IconPin"), $ = u("IconPinOff"), B = u("IconEye"), j = u("IconEyeOff"), O = u("Draggable"), V = u("NPopover"), F = u("OcSearchBar"), S = u("NDataTable"), b = u("OcImporter");
|
|
6984
6989
|
return p(), z(ie, null, [
|
|
6985
6990
|
r(F, {
|
|
6986
6991
|
ref: "searchRef",
|
|
@@ -7055,7 +7060,7 @@ function ai(e, o, a, s, n, d) {
|
|
|
7055
7060
|
icon: l(() => [
|
|
7056
7061
|
r(c, null, {
|
|
7057
7062
|
default: l(() => [
|
|
7058
|
-
r(
|
|
7063
|
+
r(v)
|
|
7059
7064
|
]),
|
|
7060
7065
|
_: 1
|
|
7061
7066
|
})
|
|
@@ -7210,7 +7215,7 @@ function ai(e, o, a, s, n, d) {
|
|
|
7210
7215
|
remote: ""
|
|
7211
7216
|
}, null, 8, ["columns", "data", "pagination", "loading", "default-checked-row-keys", "scroll-x", "flex-height", "min-height", "max-height", "on-update:page", "on-update:page-size", "on-update:sorter"])
|
|
7212
7217
|
]),
|
|
7213
|
-
e.importer ? (p(), P(
|
|
7218
|
+
e.importer ? (p(), P(b, {
|
|
7214
7219
|
key: 0,
|
|
7215
7220
|
show: e.showImporter,
|
|
7216
7221
|
"onUpdate:show": o[2] || (o[2] = (t) => e.showImporter = t),
|
|
@@ -7310,7 +7315,7 @@ function Mi() {
|
|
|
7310
7315
|
Eo = 3840, jo = 2160, window.removeEventListener("resize", e);
|
|
7311
7316
|
};
|
|
7312
7317
|
}
|
|
7313
|
-
const Bi = (e) => !!(N.kind === -1 || N.kind === 99 || N.iot_menu_authorization.includes(e)), Vi = (e) => N.platform_tdm ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.tdm_menu_authorization.includes(e) : !1, Fi = (e) => N.platform_qms ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.qms_menu_authorization.includes(e) : !1, Ri = (e) => N.platform_twin ? (N.kind === -1 || N.kind === 99 || e === "home", !0) : !1, Li = (e) => !!(N.kind === -1 || N.kind === 99 || N.maintain_menu_authorization.includes(e)), Ui = (e) => !!(N.kind === -1 || N.kind === 99 || N.order_menu_authorization.includes(e)), si = "3.0.
|
|
7318
|
+
const Bi = (e) => !!(N.kind === -1 || N.kind === 99 || N.iot_menu_authorization.includes(e)), Vi = (e) => N.platform_tdm ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.tdm_menu_authorization.includes(e) : !1, Fi = (e) => N.platform_qms ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.qms_menu_authorization.includes(e) : !1, Ri = (e) => N.platform_twin ? (N.kind === -1 || N.kind === 99 || e === "home", !0) : !1, Li = (e) => !!(N.kind === -1 || N.kind === 99 || N.maintain_menu_authorization.includes(e)), Ui = (e) => !!(N.kind === -1 || N.kind === 99 || N.order_menu_authorization.includes(e)), si = "3.0.5";
|
|
7314
7319
|
function ii({ components: e = [] } = {}) {
|
|
7315
7320
|
const o = [];
|
|
7316
7321
|
function a(n, d, i) {
|
package/package.json
CHANGED