@okiss/oms 0.0.47 → 0.0.48
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/index.es.js +126 -124
- package/dist/index.es.js.map +1 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $t = Object.defineProperty;
|
|
2
2
|
var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var D = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
-
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as m, createVNode as p, computed as M, createTextVNode as
|
|
4
|
+
import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as m, createVNode as p, computed as M, createTextVNode as k, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as E, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as $, toRefs as Bt, ref as L, normalizeStyle as Ot, createElementVNode as _, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as w, withDirectives as ie, vModelText as he, resolveDirective as Pt, onMounted as Rt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
|
|
5
5
|
import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as be, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as $e, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
|
|
6
6
|
import _e from "mockjs";
|
|
7
7
|
import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
|
|
@@ -866,9 +866,11 @@ const Fl = {
|
|
|
866
866
|
url: "/user/info",
|
|
867
867
|
method: "GET"
|
|
868
868
|
}).then((o) => {
|
|
869
|
-
var
|
|
870
|
-
const a = ((
|
|
871
|
-
e("updateState", { key: "name", value: (
|
|
869
|
+
var u, c, d, f, b, g;
|
|
870
|
+
const a = ((u = o.data) == null ? void 0 : u.role_ids) || [];
|
|
871
|
+
e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (d = o.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (f = o.data) == null ? void 0 : f.env });
|
|
872
|
+
const s = ((b = o.data) == null ? void 0 : b.website) || {};
|
|
873
|
+
e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = o.data) == null ? void 0 : g.name), l(!0);
|
|
872
874
|
}).catch((o) => {
|
|
873
875
|
n(o);
|
|
874
876
|
}) : n("http client not init");
|
|
@@ -1082,7 +1084,7 @@ const nn = /* @__PURE__ */ q({
|
|
|
1082
1084
|
class: "dashboard-container"
|
|
1083
1085
|
}, [p("div", {
|
|
1084
1086
|
class: "dashboard-text"
|
|
1085
|
-
}, [
|
|
1087
|
+
}, [k("Hi "), l.value, k(" 😄")])]);
|
|
1086
1088
|
}
|
|
1087
1089
|
});
|
|
1088
1090
|
const I = (e, t) => {
|
|
@@ -2093,7 +2095,7 @@ const Bn = {
|
|
|
2093
2095
|
}
|
|
2094
2096
|
};
|
|
2095
2097
|
function An(e, t, l, n, o, a) {
|
|
2096
|
-
const s = v("v-form"), u = nt, c = pe, d = v("JsonView"), f = v("VButton"),
|
|
2098
|
+
const s = v("v-form"), u = nt, c = pe, d = v("JsonView"), f = v("VButton"), b = Te, g = Be, x = ot, J = at, U = v("dev-layout");
|
|
2097
2099
|
return i(), m(U, null, {
|
|
2098
2100
|
main: r(() => [
|
|
2099
2101
|
o.builderSchema.formItems ? (i(), m(s, F({
|
|
@@ -2107,11 +2109,11 @@ function An(e, t, l, n, o, a) {
|
|
|
2107
2109
|
onClick: a.saveSchema
|
|
2108
2110
|
}, {
|
|
2109
2111
|
default: r(() => [
|
|
2110
|
-
|
|
2112
|
+
k("保存页面配置")
|
|
2111
2113
|
]),
|
|
2112
2114
|
_: 1
|
|
2113
2115
|
}, 8, ["onClick"]),
|
|
2114
|
-
|
|
2116
|
+
k(" "),
|
|
2115
2117
|
p(f, {
|
|
2116
2118
|
text: "PageSchema",
|
|
2117
2119
|
type: "modal"
|
|
@@ -2127,12 +2129,12 @@ function An(e, t, l, n, o, a) {
|
|
|
2127
2129
|
default: r(() => [
|
|
2128
2130
|
p(x, { label: "控件类型" }, {
|
|
2129
2131
|
default: r(() => [
|
|
2130
|
-
p(
|
|
2132
|
+
p(g, {
|
|
2131
2133
|
modelValue: o.currentCtrlType,
|
|
2132
2134
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
|
|
2133
2135
|
}, {
|
|
2134
2136
|
default: r(() => [
|
|
2135
|
-
(i(!0), h(E, null, O(o.types, (T, Z) => (i(), m(
|
|
2137
|
+
(i(!0), h(E, null, O(o.types, (T, Z) => (i(), m(b, {
|
|
2136
2138
|
key: Z,
|
|
2137
2139
|
label: T.label,
|
|
2138
2140
|
value: T.value
|
|
@@ -3039,7 +3041,7 @@ const Xn = {
|
|
|
3039
3041
|
}
|
|
3040
3042
|
};
|
|
3041
3043
|
function Yn(e, t, l, n, o, a) {
|
|
3042
|
-
const s = de, u = pe, c = ae, d = v("v-table"), f = nt,
|
|
3044
|
+
const s = de, u = pe, c = ae, d = v("v-table"), f = nt, b = pe, g = v("JsonView"), x = v("VButton"), J = Te, U = Be, T = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
|
|
3043
3045
|
return i(), m(Et, null, {
|
|
3044
3046
|
"left-aside": r(() => [
|
|
3045
3047
|
p(c, { style: { width: "200px" } }, {
|
|
@@ -3051,7 +3053,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3051
3053
|
"data-id": 22222
|
|
3052
3054
|
}, {
|
|
3053
3055
|
default: r(() => [
|
|
3054
|
-
|
|
3056
|
+
k("添加搜索条件")
|
|
3055
3057
|
]),
|
|
3056
3058
|
_: 1
|
|
3057
3059
|
}),
|
|
@@ -3062,7 +3064,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3062
3064
|
onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
|
|
3063
3065
|
}, {
|
|
3064
3066
|
default: r(() => [
|
|
3065
|
-
|
|
3067
|
+
k("文本框")
|
|
3066
3068
|
]),
|
|
3067
3069
|
_: 1
|
|
3068
3070
|
})
|
|
@@ -3076,7 +3078,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3076
3078
|
onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
|
|
3077
3079
|
}, {
|
|
3078
3080
|
default: r(() => [
|
|
3079
|
-
|
|
3081
|
+
k("下拉框")
|
|
3080
3082
|
]),
|
|
3081
3083
|
_: 1
|
|
3082
3084
|
})
|
|
@@ -3090,7 +3092,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3090
3092
|
onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
|
|
3091
3093
|
}, {
|
|
3092
3094
|
default: r(() => [
|
|
3093
|
-
|
|
3095
|
+
k("日期")
|
|
3094
3096
|
]),
|
|
3095
3097
|
_: 1
|
|
3096
3098
|
})
|
|
@@ -3104,7 +3106,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3104
3106
|
default: r(() => [
|
|
3105
3107
|
p(s, { class: "title" }, {
|
|
3106
3108
|
default: r(() => [
|
|
3107
|
-
|
|
3109
|
+
k("添加列表项")
|
|
3108
3110
|
]),
|
|
3109
3111
|
_: 1
|
|
3110
3112
|
}),
|
|
@@ -3118,7 +3120,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3118
3120
|
onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
|
|
3119
3121
|
}, {
|
|
3120
3122
|
default: r(() => [
|
|
3121
|
-
|
|
3123
|
+
k(B(o.ctrlMap.headers[C].name), 1)
|
|
3122
3124
|
]),
|
|
3123
3125
|
_: 2
|
|
3124
3126
|
}, 1032, ["onClick"])
|
|
@@ -3132,7 +3134,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3132
3134
|
default: r(() => [
|
|
3133
3135
|
p(s, { class: "title" }, {
|
|
3134
3136
|
default: r(() => [
|
|
3135
|
-
|
|
3137
|
+
k("添加行按钮")
|
|
3136
3138
|
]),
|
|
3137
3139
|
_: 1
|
|
3138
3140
|
}),
|
|
@@ -3146,7 +3148,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3146
3148
|
onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
|
|
3147
3149
|
}, {
|
|
3148
3150
|
default: r(() => [
|
|
3149
|
-
|
|
3151
|
+
k(B(o.ctrlMap.buttons[C].name), 1)
|
|
3150
3152
|
]),
|
|
3151
3153
|
_: 2
|
|
3152
3154
|
}, 1032, ["onClick"])
|
|
@@ -3160,7 +3162,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3160
3162
|
default: r(() => [
|
|
3161
3163
|
p(s, { class: "title" }, {
|
|
3162
3164
|
default: r(() => [
|
|
3163
|
-
|
|
3165
|
+
k("添加常规按钮")
|
|
3164
3166
|
]),
|
|
3165
3167
|
_: 1
|
|
3166
3168
|
}),
|
|
@@ -3174,7 +3176,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3174
3176
|
onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
|
|
3175
3177
|
}, {
|
|
3176
3178
|
default: r(() => [
|
|
3177
|
-
|
|
3179
|
+
k(B(o.ctrlMap.buttons[C].name), 1)
|
|
3178
3180
|
]),
|
|
3179
3181
|
_: 2
|
|
3180
3182
|
}, 1032, ["onClick"])
|
|
@@ -3185,7 +3187,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3185
3187
|
default: r(() => [
|
|
3186
3188
|
p(u, { class: "ctrl-btn" }, {
|
|
3187
3189
|
default: r(() => [
|
|
3188
|
-
|
|
3190
|
+
k("按钮组")
|
|
3189
3191
|
]),
|
|
3190
3192
|
_: 1
|
|
3191
3193
|
})
|
|
@@ -3199,7 +3201,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3199
3201
|
default: r(() => [
|
|
3200
3202
|
p(s, { class: "title" }, {
|
|
3201
3203
|
default: r(() => [
|
|
3202
|
-
|
|
3204
|
+
k("添加批量按钮")
|
|
3203
3205
|
]),
|
|
3204
3206
|
_: 1
|
|
3205
3207
|
}),
|
|
@@ -3213,7 +3215,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3213
3215
|
onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
|
|
3214
3216
|
}, {
|
|
3215
3217
|
default: r(() => [
|
|
3216
|
-
|
|
3218
|
+
k(B(o.ctrlMap.buttons[C].name), 1)
|
|
3217
3219
|
]),
|
|
3218
3220
|
_: 2
|
|
3219
3221
|
}, 1032, ["onClick"])
|
|
@@ -3224,7 +3226,7 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3224
3226
|
default: r(() => [
|
|
3225
3227
|
p(u, { class: "ctrl-btn" }, {
|
|
3226
3228
|
default: r(() => [
|
|
3227
|
-
|
|
3229
|
+
k("按钮组")
|
|
3228
3230
|
]),
|
|
3229
3231
|
_: 1
|
|
3230
3232
|
})
|
|
@@ -3245,22 +3247,22 @@ function Yn(e, t, l, n, o, a) {
|
|
|
3245
3247
|
dev: !0
|
|
3246
3248
|
}, o.builderSchema), null, 16)),
|
|
3247
3249
|
p(f),
|
|
3248
|
-
p(
|
|
3250
|
+
p(b, {
|
|
3249
3251
|
type: "primary",
|
|
3250
3252
|
onClick: a.saveSchema
|
|
3251
3253
|
}, {
|
|
3252
3254
|
default: r(() => [
|
|
3253
|
-
|
|
3255
|
+
k("保存页面配置")
|
|
3254
3256
|
]),
|
|
3255
3257
|
_: 1
|
|
3256
3258
|
}, 8, ["onClick"]),
|
|
3257
|
-
|
|
3259
|
+
k(" "),
|
|
3258
3260
|
p(x, {
|
|
3259
3261
|
text: "PageSchema",
|
|
3260
3262
|
type: "modal"
|
|
3261
3263
|
}, {
|
|
3262
3264
|
default: r(() => [
|
|
3263
|
-
p(
|
|
3265
|
+
p(g, { data: a.getSaveSchema }, null, 8, ["data"])
|
|
3264
3266
|
]),
|
|
3265
3267
|
_: 1
|
|
3266
3268
|
})
|
|
@@ -3426,7 +3428,7 @@ const oo = {
|
|
|
3426
3428
|
style: { padding: "0" }
|
|
3427
3429
|
}, co = { class: "user-info" }, po = ["src"], uo = { class: "user-name" };
|
|
3428
3430
|
function mo(e, t, l, n, o, a) {
|
|
3429
|
-
const s = v("hamburger"), u = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"),
|
|
3431
|
+
const s = v("hamburger"), u = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"), b = v("v-button"), g = ml, x = fl, J = hl, U = st, T = ae;
|
|
3430
3432
|
return i(), m(T, {
|
|
3431
3433
|
ref: "header",
|
|
3432
3434
|
class: "navbar",
|
|
@@ -3446,8 +3448,8 @@ function mo(e, t, l, n, o, a) {
|
|
|
3446
3448
|
}),
|
|
3447
3449
|
p(c, { span: 8 }, {
|
|
3448
3450
|
default: r(() => [
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
+
_("div", ao, [
|
|
3452
|
+
_("div", so, [
|
|
3451
3453
|
p(d, {
|
|
3452
3454
|
name: "ra-code",
|
|
3453
3455
|
onClick: a.gotoMenuEdit
|
|
@@ -3456,8 +3458,8 @@ function mo(e, t, l, n, o, a) {
|
|
|
3456
3458
|
a.showPageJsonSchemaIcon ? (i(), h("div", io, [
|
|
3457
3459
|
p(f)
|
|
3458
3460
|
])) : $("", !0),
|
|
3459
|
-
|
|
3460
|
-
p(
|
|
3461
|
+
_("div", ro, [
|
|
3462
|
+
p(b, { buttons: e.nav }, null, 8, ["buttons"])
|
|
3461
3463
|
]),
|
|
3462
3464
|
p(J, {
|
|
3463
3465
|
class: "right-item",
|
|
@@ -3466,22 +3468,22 @@ function mo(e, t, l, n, o, a) {
|
|
|
3466
3468
|
dropdown: r(() => [
|
|
3467
3469
|
p(x, { class: "user-dropdown" }, {
|
|
3468
3470
|
default: r(() => [
|
|
3469
|
-
p(
|
|
3471
|
+
p(g, {
|
|
3470
3472
|
icon: "oms-icon-index",
|
|
3471
3473
|
onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
|
|
3472
3474
|
}, {
|
|
3473
3475
|
default: r(() => [
|
|
3474
|
-
|
|
3476
|
+
k("首页")
|
|
3475
3477
|
]),
|
|
3476
3478
|
_: 1
|
|
3477
3479
|
}),
|
|
3478
|
-
p(
|
|
3480
|
+
p(g, {
|
|
3479
3481
|
divided: "",
|
|
3480
3482
|
icon: "el-icon-switch-button",
|
|
3481
3483
|
onClick: a.logout
|
|
3482
3484
|
}, {
|
|
3483
3485
|
default: r(() => [
|
|
3484
|
-
|
|
3486
|
+
k("退出登录")
|
|
3485
3487
|
]),
|
|
3486
3488
|
_: 1
|
|
3487
3489
|
}, 8, ["onClick"])
|
|
@@ -3490,14 +3492,14 @@ function mo(e, t, l, n, o, a) {
|
|
|
3490
3492
|
})
|
|
3491
3493
|
]),
|
|
3492
3494
|
default: r(() => [
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
+
_("div", co, [
|
|
3496
|
+
_("img", {
|
|
3495
3497
|
src: e.avatar ? e.avatar : o.defaultAvatar,
|
|
3496
3498
|
class: "user-avatar",
|
|
3497
3499
|
alt: "头像"
|
|
3498
3500
|
}, null, 8, po),
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
+
k(),
|
|
3502
|
+
_("span", uo, B(e.nickname || e.name), 1)
|
|
3501
3503
|
])
|
|
3502
3504
|
]),
|
|
3503
3505
|
_: 1
|
|
@@ -3535,7 +3537,7 @@ const ho = {
|
|
|
3535
3537
|
}, bo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), _o = ["src"], yo = {
|
|
3536
3538
|
key: 1,
|
|
3537
3539
|
class: "sidebar-title"
|
|
3538
|
-
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */
|
|
3540
|
+
}, vo = /* @__PURE__ */ bo(() => /* @__PURE__ */ _("div", null, "系统", -1)), go = ["src"], ko = { class: "sidebar-title" };
|
|
3539
3541
|
function wo(e, t, l, n, o, a) {
|
|
3540
3542
|
const s = v("router-link");
|
|
3541
3543
|
return i(), h("div", {
|
|
@@ -3568,7 +3570,7 @@ function wo(e, t, l, n, o, a) {
|
|
|
3568
3570
|
src: a.logo,
|
|
3569
3571
|
class: "sidebar-logo"
|
|
3570
3572
|
}, null, 8, go)) : $("", !0),
|
|
3571
|
-
|
|
3573
|
+
_("h1", ko, B(a.title), 1)
|
|
3572
3574
|
]),
|
|
3573
3575
|
_: 1
|
|
3574
3576
|
}))
|
|
@@ -3657,7 +3659,7 @@ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
|
|
|
3657
3659
|
p(n, {
|
|
3658
3660
|
name: e.meta.icon || "ra-all"
|
|
3659
3661
|
}, null, 8, ["name"]),
|
|
3660
|
-
|
|
3662
|
+
_("span", Co, B(e.meta.title), 1)
|
|
3661
3663
|
], 64);
|
|
3662
3664
|
};
|
|
3663
3665
|
}
|
|
@@ -3743,11 +3745,11 @@ function Ao(e, t, l, n, o, a) {
|
|
|
3743
3745
|
}, null, 8, ["meta"]))
|
|
3744
3746
|
]),
|
|
3745
3747
|
default: r(() => [
|
|
3746
|
-
(i(!0), h(E, null, O(l.item.children, (
|
|
3747
|
-
key:
|
|
3748
|
+
(i(!0), h(E, null, O(l.item.children, (b) => (i(), m(d, {
|
|
3749
|
+
key: b.path,
|
|
3748
3750
|
"is-nest": !0,
|
|
3749
|
-
item:
|
|
3750
|
-
to: a.getTo(
|
|
3751
|
+
item: b,
|
|
3752
|
+
to: a.getTo(b),
|
|
3751
3753
|
class: "nest-menu"
|
|
3752
3754
|
}, null, 8, ["item", "to"]))), 128))
|
|
3753
3755
|
]),
|
|
@@ -3814,12 +3816,12 @@ function Lo(e, t, l, n, o, a) {
|
|
|
3814
3816
|
label: d.meta.title
|
|
3815
3817
|
}, {
|
|
3816
3818
|
default: r(() => [
|
|
3817
|
-
(i(!0), h(E, null, O(d.children, (f,
|
|
3819
|
+
(i(!0), h(E, null, O(d.children, (f, b) => (i(), h(E, {
|
|
3818
3820
|
key: f.path
|
|
3819
3821
|
}, [
|
|
3820
3822
|
d.meta.menuType !== 0 ? (i(), m(s, {
|
|
3821
3823
|
key: 0,
|
|
3822
|
-
label: (
|
|
3824
|
+
label: (b === d.children.length - 1 ? "└─" : "├─") + f.meta.title,
|
|
3823
3825
|
value: a.getJumpPath(f)
|
|
3824
3826
|
}, null, 8, ["label", "value"])) : $("", !0)
|
|
3825
3827
|
], 64))), 128))
|
|
@@ -3912,10 +3914,10 @@ function jo(e, t, l, n, o, a) {
|
|
|
3912
3914
|
mode: "vertical"
|
|
3913
3915
|
}, {
|
|
3914
3916
|
default: r(() => [
|
|
3915
|
-
(i(!0), h(E, null, O(e.routes, (
|
|
3916
|
-
key:
|
|
3917
|
+
(i(!0), h(E, null, O(e.routes, (b, g) => (i(), h(E, {
|
|
3918
|
+
key: g + "-module"
|
|
3917
3919
|
}, [
|
|
3918
|
-
(i(!0), h(E, null, O(e.filterRoute(
|
|
3920
|
+
(i(!0), h(E, null, O(e.filterRoute(b.routes), (x) => (i(), m(c, {
|
|
3919
3921
|
key: x.path,
|
|
3920
3922
|
item: x,
|
|
3921
3923
|
to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
|
|
@@ -3966,7 +3968,7 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3966
3968
|
t.dispatch("app/toggleDevice", f ? "mobile" : "desktop"), f && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
|
|
3967
3969
|
}
|
|
3968
3970
|
};
|
|
3969
|
-
return (f,
|
|
3971
|
+
return (f, b) => (i(), h("div", {
|
|
3970
3972
|
class: H([w(s), "app-wrapper"])
|
|
3971
3973
|
}, [
|
|
3972
3974
|
w(o) === "mobile" && w(n).opened ? (i(), h("div", {
|
|
@@ -3975,8 +3977,8 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
|
|
|
3975
3977
|
onClick: c
|
|
3976
3978
|
})) : $("", !0),
|
|
3977
3979
|
p(w(No), { class: "sidebar-container" }),
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
+
_("div", Ho, [
|
|
3981
|
+
_("div", {
|
|
3980
3982
|
class: H({ "fixed-header": w(a) })
|
|
3981
3983
|
}, [
|
|
3982
3984
|
p(w(fo))
|
|
@@ -4050,7 +4052,7 @@ function Zo(e) {
|
|
|
4050
4052
|
if (n !== void 0)
|
|
4051
4053
|
return n(e);
|
|
4052
4054
|
}
|
|
4053
|
-
const Qo = { id: "login" }, Xo = /* @__PURE__ */
|
|
4055
|
+
const Qo = { id: "login" }, Xo = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
|
|
4054
4056
|
__name: "login",
|
|
4055
4057
|
setup(e) {
|
|
4056
4058
|
const t = ol(), l = ue(), n = M(() => S.state.settings.loginTips), o = M(() => (console.log(S.state.app), S.state.app.baseURL)), a = L(0), s = () => a.value++, u = M(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
|
|
@@ -4064,55 +4066,55 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4064
4066
|
return;
|
|
4065
4067
|
}
|
|
4066
4068
|
c.value.sing = Ol(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), S.dispatch("user/login", c.value).then((f) => {
|
|
4067
|
-
var
|
|
4068
|
-
t.push({ path: ((
|
|
4069
|
+
var b;
|
|
4070
|
+
t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
|
|
4069
4071
|
});
|
|
4070
4072
|
};
|
|
4071
|
-
return L(), (f,
|
|
4073
|
+
return L(), (f, b) => (i(), h("div", Qo, [
|
|
4072
4074
|
Xo,
|
|
4073
|
-
|
|
4074
|
-
ie(
|
|
4075
|
-
"onUpdate:modelValue":
|
|
4075
|
+
_("form", Yo, [
|
|
4076
|
+
ie(_("input", {
|
|
4077
|
+
"onUpdate:modelValue": b[0] || (b[0] = (g) => w(c).username = g),
|
|
4076
4078
|
type: "text",
|
|
4077
4079
|
placeholder: "用户名",
|
|
4078
4080
|
class: "input"
|
|
4079
4081
|
}, null, 512), [
|
|
4080
4082
|
[he, w(c).username]
|
|
4081
4083
|
]),
|
|
4082
|
-
ie(
|
|
4083
|
-
"onUpdate:modelValue":
|
|
4084
|
+
ie(_("input", {
|
|
4085
|
+
"onUpdate:modelValue": b[1] || (b[1] = (g) => w(c).password = g),
|
|
4084
4086
|
type: "password",
|
|
4085
4087
|
placeholder: "密码",
|
|
4086
4088
|
class: "input"
|
|
4087
4089
|
}, null, 512), [
|
|
4088
4090
|
[he, w(c).password]
|
|
4089
4091
|
]),
|
|
4090
|
-
|
|
4091
|
-
ie(
|
|
4092
|
-
"onUpdate:modelValue":
|
|
4092
|
+
_("div", ea, [
|
|
4093
|
+
ie(_("input", {
|
|
4094
|
+
"onUpdate:modelValue": b[2] || (b[2] = (g) => w(c).captcha = g),
|
|
4093
4095
|
type: "text",
|
|
4094
4096
|
placeholder: "验证码",
|
|
4095
4097
|
class: "input-captcha"
|
|
4096
4098
|
}, null, 512), [
|
|
4097
4099
|
[he, w(c).captcha]
|
|
4098
4100
|
]),
|
|
4099
|
-
|
|
4101
|
+
_("img", {
|
|
4100
4102
|
class: "captcha-img",
|
|
4101
4103
|
src: o.value + "/user/captcha?ts=" + w(a),
|
|
4102
4104
|
title: "点击刷新",
|
|
4103
4105
|
onClick: s
|
|
4104
4106
|
}, null, 8, ta)
|
|
4105
4107
|
]),
|
|
4106
|
-
|
|
4108
|
+
_("div", {
|
|
4107
4109
|
class: H({ input: !0, button: !0, "no-ready": !u.value }),
|
|
4108
4110
|
onClick: d
|
|
4109
4111
|
}, "登录", 2),
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
+
_("div", la, [
|
|
4113
|
+
_("div", null, B(n.value), 1)
|
|
4112
4114
|
]),
|
|
4113
|
-
|
|
4115
|
+
_("div", na, [
|
|
4114
4116
|
oa,
|
|
4115
|
-
(i(!0), h(E, null, O(Object.keys([]), (
|
|
4117
|
+
(i(!0), h(E, null, O(Object.keys([]), (g) => (i(), h("div", { key: g }, B(g), 1))), 128))
|
|
4116
4118
|
])
|
|
4117
4119
|
])
|
|
4118
4120
|
]));
|
|
@@ -4120,7 +4122,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
|
|
|
4120
4122
|
});
|
|
4121
4123
|
const sa = {
|
|
4122
4124
|
name: "NotFoundPage"
|
|
4123
|
-
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */
|
|
4125
|
+
}, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ _("svg", {
|
|
4124
4126
|
width: "380px",
|
|
4125
4127
|
height: "500px",
|
|
4126
4128
|
viewBox: "0 0 837 1045",
|
|
@@ -4129,7 +4131,7 @@ const sa = {
|
|
|
4129
4131
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
4130
4132
|
"xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
|
|
4131
4133
|
}, [
|
|
4132
|
-
/* @__PURE__ */
|
|
4134
|
+
/* @__PURE__ */ _("g", {
|
|
4133
4135
|
id: "Page-1",
|
|
4134
4136
|
stroke: "none",
|
|
4135
4137
|
"stroke-width": "1",
|
|
@@ -4137,35 +4139,35 @@ const sa = {
|
|
|
4137
4139
|
"fill-rule": "evenodd",
|
|
4138
4140
|
"sketch:type": "MSPage"
|
|
4139
4141
|
}, [
|
|
4140
|
-
/* @__PURE__ */
|
|
4142
|
+
/* @__PURE__ */ _("path", {
|
|
4141
4143
|
id: "Polygon-1",
|
|
4142
4144
|
d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
|
|
4143
4145
|
stroke: "#007FB2",
|
|
4144
4146
|
"stroke-width": "6",
|
|
4145
4147
|
"sketch:type": "MSShapeGroup"
|
|
4146
4148
|
}),
|
|
4147
|
-
/* @__PURE__ */
|
|
4149
|
+
/* @__PURE__ */ _("path", {
|
|
4148
4150
|
id: "Polygon-2",
|
|
4149
4151
|
d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
|
|
4150
4152
|
stroke: "#EF4A5B",
|
|
4151
4153
|
"stroke-width": "6",
|
|
4152
4154
|
"sketch:type": "MSShapeGroup"
|
|
4153
4155
|
}),
|
|
4154
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ _("path", {
|
|
4155
4157
|
id: "Polygon-3",
|
|
4156
4158
|
d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
|
|
4157
4159
|
stroke: "#795D9C",
|
|
4158
4160
|
"stroke-width": "6",
|
|
4159
4161
|
"sketch:type": "MSShapeGroup"
|
|
4160
4162
|
}),
|
|
4161
|
-
/* @__PURE__ */
|
|
4163
|
+
/* @__PURE__ */ _("path", {
|
|
4162
4164
|
id: "Polygon-4",
|
|
4163
4165
|
d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
|
|
4164
4166
|
stroke: "#F2773F",
|
|
4165
4167
|
"stroke-width": "6",
|
|
4166
4168
|
"sketch:type": "MSShapeGroup"
|
|
4167
4169
|
}),
|
|
4168
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ _("path", {
|
|
4169
4171
|
id: "Polygon-5",
|
|
4170
4172
|
d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
|
|
4171
4173
|
stroke: "#36B455",
|
|
@@ -4173,12 +4175,12 @@ const sa = {
|
|
|
4173
4175
|
"sketch:type": "MSShapeGroup"
|
|
4174
4176
|
})
|
|
4175
4177
|
])
|
|
4176
|
-
], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */
|
|
4177
|
-
/* @__PURE__ */
|
|
4178
|
-
/* @__PURE__ */
|
|
4179
|
-
/* @__PURE__ */
|
|
4180
|
-
/* @__PURE__ */
|
|
4181
|
-
/* @__PURE__ */
|
|
4178
|
+
], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
|
|
4179
|
+
/* @__PURE__ */ _("h1", null, "404"),
|
|
4180
|
+
/* @__PURE__ */ _("p", null, "Page not found"),
|
|
4181
|
+
/* @__PURE__ */ _("div", { class: "buttons-con" }, [
|
|
4182
|
+
/* @__PURE__ */ _("div", { class: "action-link-wrap" }, [
|
|
4183
|
+
/* @__PURE__ */ _("a", {
|
|
4182
4184
|
href: "",
|
|
4183
4185
|
class: "link-button"
|
|
4184
4186
|
}, "Go to Home Page")
|
|
@@ -4269,7 +4271,7 @@ function _a(e) {
|
|
|
4269
4271
|
s.jumpToLoginPage(n, `/login?redirect=${a}`);
|
|
4270
4272
|
});
|
|
4271
4273
|
}
|
|
4272
|
-
const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */
|
|
4274
|
+
const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), ka = [
|
|
4273
4275
|
ga
|
|
4274
4276
|
];
|
|
4275
4277
|
function wa(e, t) {
|
|
@@ -4569,13 +4571,13 @@ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
|
|
|
4569
4571
|
}
|
|
4570
4572
|
}
|
|
4571
4573
|
});
|
|
4572
|
-
const Ta = { class: "card-header" }, Ba = /* @__PURE__ */
|
|
4574
|
+
const Ta = { class: "card-header" }, Ba = /* @__PURE__ */ _("span", null, "列表", -1), Oa = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
|
|
4573
4575
|
key: 1,
|
|
4574
4576
|
style: { color: "#E6A23C" }
|
|
4575
4577
|
}, Ra = { class: "card-header" };
|
|
4576
4578
|
function La(e, t, l, n, o, a) {
|
|
4577
|
-
const s = pe, u = Sl, c = Ae, d = de, f = v("v-form"),
|
|
4578
|
-
return i(), m(
|
|
4579
|
+
const s = pe, u = Sl, c = Ae, d = de, f = v("v-form"), b = ae;
|
|
4580
|
+
return i(), m(b, {
|
|
4579
4581
|
class: "tree-box",
|
|
4580
4582
|
gutter: 20
|
|
4581
4583
|
}, {
|
|
@@ -4587,14 +4589,14 @@ function La(e, t, l, n, o, a) {
|
|
|
4587
4589
|
default: r(() => [
|
|
4588
4590
|
p(c, { shadow: "never" }, {
|
|
4589
4591
|
header: r(() => [
|
|
4590
|
-
|
|
4592
|
+
_("div", Ta, [
|
|
4591
4593
|
Ba,
|
|
4592
4594
|
p(s, {
|
|
4593
4595
|
type: "text",
|
|
4594
4596
|
onClick: t[0] || (t[0] = () => e.appendNew())
|
|
4595
4597
|
}, {
|
|
4596
4598
|
default: r(() => [
|
|
4597
|
-
|
|
4599
|
+
k("添加")
|
|
4598
4600
|
]),
|
|
4599
4601
|
_: 1
|
|
4600
4602
|
})
|
|
@@ -4612,10 +4614,10 @@ function La(e, t, l, n, o, a) {
|
|
|
4612
4614
|
"allow-drop": e.allowDrop,
|
|
4613
4615
|
onNodeDragEnd: e.handleDragEnd
|
|
4614
4616
|
}), {
|
|
4615
|
-
default: r(({ node:
|
|
4616
|
-
|
|
4617
|
+
default: r(({ node: g, data: x }) => [
|
|
4618
|
+
_("span", Oa, [
|
|
4617
4619
|
x[e.localTreeProps.props.label] ? (i(), h("span", Aa, B(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
|
|
4618
|
-
|
|
4620
|
+
_("span", null, [
|
|
4619
4621
|
x[e.localTreeProps.props.label] ? (i(), m(s, {
|
|
4620
4622
|
key: 0,
|
|
4621
4623
|
class: "button",
|
|
@@ -4623,18 +4625,18 @@ function La(e, t, l, n, o, a) {
|
|
|
4623
4625
|
onClick: () => e.onclick(x)
|
|
4624
4626
|
}, {
|
|
4625
4627
|
default: r(() => [
|
|
4626
|
-
|
|
4628
|
+
k("编辑")
|
|
4627
4629
|
]),
|
|
4628
4630
|
_: 2
|
|
4629
4631
|
}, 1032, ["onClick"])) : $("", !0),
|
|
4630
|
-
e.canAppend(x,
|
|
4632
|
+
e.canAppend(x, g) ? (i(), m(s, {
|
|
4631
4633
|
key: 1,
|
|
4632
4634
|
class: "button",
|
|
4633
4635
|
type: "text",
|
|
4634
|
-
onClick: () => e.append(x,
|
|
4636
|
+
onClick: () => e.append(x, g)
|
|
4635
4637
|
}, {
|
|
4636
4638
|
default: r(() => [
|
|
4637
|
-
|
|
4639
|
+
k("添加")
|
|
4638
4640
|
]),
|
|
4639
4641
|
_: 2
|
|
4640
4642
|
}, 1032, ["onClick"])) : $("", !0),
|
|
@@ -4645,7 +4647,7 @@ function La(e, t, l, n, o, a) {
|
|
|
4645
4647
|
onClick: () => e.remove(x)
|
|
4646
4648
|
}, {
|
|
4647
4649
|
default: r(() => [
|
|
4648
|
-
|
|
4650
|
+
k("删除")
|
|
4649
4651
|
]),
|
|
4650
4652
|
_: 2
|
|
4651
4653
|
}, 1032, ["onClick"])) : $("", !0)
|
|
@@ -4670,15 +4672,15 @@ function La(e, t, l, n, o, a) {
|
|
|
4670
4672
|
shadow: "never"
|
|
4671
4673
|
}, {
|
|
4672
4674
|
header: r(() => [
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
+
_("div", Ra, [
|
|
4676
|
+
_("span", null, B(e.formType), 1)
|
|
4675
4677
|
])
|
|
4676
4678
|
]),
|
|
4677
4679
|
default: r(() => [
|
|
4678
4680
|
(i(), m(f, F({
|
|
4679
4681
|
key: e.formkey,
|
|
4680
4682
|
modelValue: e.formData,
|
|
4681
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4683
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.formData = g)
|
|
4682
4684
|
}, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
4683
4685
|
]),
|
|
4684
4686
|
_: 1
|
|
@@ -4755,12 +4757,12 @@ function ja(e, t, l) {
|
|
|
4755
4757
|
let s = a[0], u = a.filter((d, f) => f > 0), c = t;
|
|
4756
4758
|
if (t.indexOf(":") > -1) {
|
|
4757
4759
|
const d = t.split(":"), f = d[1].split(",");
|
|
4758
|
-
c = d[0], s = f[0], u = f.filter((
|
|
4760
|
+
c = d[0], s = f[0], u = f.filter((b, g) => g > 0);
|
|
4759
4761
|
}
|
|
4760
4762
|
u.forEach((d) => {
|
|
4761
4763
|
const f = [];
|
|
4762
|
-
l.forEach((
|
|
4763
|
-
f.push(
|
|
4764
|
+
l.forEach((b) => {
|
|
4765
|
+
f.push(b[d]);
|
|
4764
4766
|
}), n.series.push({
|
|
4765
4767
|
name: d,
|
|
4766
4768
|
type: c,
|
|
@@ -4787,13 +4789,13 @@ const Na = q({
|
|
|
4787
4789
|
}), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
|
|
4788
4790
|
function Ha(e, t, l, n, o, a) {
|
|
4789
4791
|
return i(!0), h(E, null, O(e.dataList, (s, u) => (i(), h("span", { key: u }, [
|
|
4790
|
-
|
|
4792
|
+
_("div", Va, [
|
|
4791
4793
|
(i(!0), h(E, null, O(Object.keys(s), (c, d) => (i(), h("div", {
|
|
4792
4794
|
key: d,
|
|
4793
4795
|
class: "title-inner"
|
|
4794
4796
|
}, [
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
+
_("p", qa, B(s[c]), 1),
|
|
4798
|
+
_("p", Ua, B(c), 1)
|
|
4797
4799
|
]))), 128))
|
|
4798
4800
|
])
|
|
4799
4801
|
]))), 128);
|
|
@@ -4882,8 +4884,8 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4882
4884
|
const n = L({});
|
|
4883
4885
|
ze(() => {
|
|
4884
4886
|
var f;
|
|
4885
|
-
(f = t.filter) == null || f.forEach((
|
|
4886
|
-
|
|
4887
|
+
(f = t.filter) == null || f.forEach((b) => {
|
|
4888
|
+
b.default !== null && (n.value[b.field] = b.default);
|
|
4887
4889
|
});
|
|
4888
4890
|
});
|
|
4889
4891
|
const o = {
|
|
@@ -4899,17 +4901,17 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4899
4901
|
}, a = L(1), s = L(t.filter), u = L(t.dataPart), c = M(() => {
|
|
4900
4902
|
let f = l.params.id;
|
|
4901
4903
|
if (!f) {
|
|
4902
|
-
const
|
|
4903
|
-
f =
|
|
4904
|
+
const b = l.path.split("/");
|
|
4905
|
+
f = b[b.length - 1];
|
|
4904
4906
|
}
|
|
4905
4907
|
return "/focusbi_report/view/" + f;
|
|
4906
4908
|
}), d = (f) => {
|
|
4907
|
-
ms.get(c.value, { params: f }).then(({ data:
|
|
4908
|
-
s.value =
|
|
4909
|
+
ms.get(c.value, { params: f }).then(({ data: b }) => {
|
|
4910
|
+
s.value = b.filter, u.value = b.dataPart, a.value++;
|
|
4909
4911
|
});
|
|
4910
4912
|
};
|
|
4911
|
-
return (f,
|
|
4912
|
-
const
|
|
4913
|
+
return (f, b) => {
|
|
4914
|
+
const g = Ae, x = de, J = Oe, U = ae;
|
|
4913
4915
|
return i(), m(U, null, {
|
|
4914
4916
|
default: r(() => [
|
|
4915
4917
|
w(s).length > 0 ? (i(), m(x, {
|
|
@@ -4917,14 +4919,14 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4917
4919
|
span: 24
|
|
4918
4920
|
}, {
|
|
4919
4921
|
default: r(() => [
|
|
4920
|
-
p(
|
|
4922
|
+
p(g, {
|
|
4921
4923
|
shadow: "never",
|
|
4922
4924
|
class: "part-filter"
|
|
4923
4925
|
}, {
|
|
4924
4926
|
default: r(() => [
|
|
4925
4927
|
p(w(z), {
|
|
4926
4928
|
modelValue: w(n),
|
|
4927
|
-
"onUpdate:modelValue":
|
|
4929
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => Lt(n) ? n.value = T : null),
|
|
4928
4930
|
"form-items": w(s),
|
|
4929
4931
|
options: o,
|
|
4930
4932
|
onSubmit: d
|
|
@@ -4950,7 +4952,7 @@ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
|
|
|
4950
4952
|
type: "error"
|
|
4951
4953
|
}, {
|
|
4952
4954
|
default: r(() => [
|
|
4953
|
-
|
|
4955
|
+
k(B(T.errMsg), 1)
|
|
4954
4956
|
]),
|
|
4955
4957
|
_: 2
|
|
4956
4958
|
}, 1032, ["title"])) : (i(), m(za, {
|
|
@@ -5289,8 +5291,8 @@ const ps = {
|
|
|
5289
5291
|
confirmButtonText: "重新登录",
|
|
5290
5292
|
showCancelButton: !0,
|
|
5291
5293
|
cancelButtonText: "取消",
|
|
5292
|
-
callback: (
|
|
5293
|
-
|
|
5294
|
+
callback: (b) => {
|
|
5295
|
+
b === "confirm" && (pt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
|
|
5294
5296
|
}
|
|
5295
5297
|
});
|
|
5296
5298
|
return;
|