keli-ui 0.3.15 → 0.3.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/{ApprovalRecord-CAUi65p8.js → ApprovalRecord-BCXgcNAT.js} +2 -2
- package/dist/{ApprovalRecord-CAUi65p8.js.map → ApprovalRecord-BCXgcNAT.js.map} +1 -1
- package/dist/{api-DPWBxyJL.js → api-DFkXg4kc.js} +3 -3
- package/dist/{api-DPWBxyJL.js.map → api-DFkXg4kc.js.map} +1 -1
- package/dist/components/AppComponent/hooks/useTable.hook.d.ts +2 -1
- package/dist/components/FormComponent/{FormImageUpload/FormImageUpload.vue.d.ts → FormFileUpload/FormFileUpload.vue.d.ts} +14 -0
- package/dist/components/FormComponent/FormFileUpload/index.d.ts +3 -0
- package/dist/components/FormComponent/index.d.ts +1 -1
- package/dist/components/TableComponent/TableRender/TableRender.vue.d.ts +2 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{java-CanB8gLZ.js → java-BnvYNxWj.js} +2 -2
- package/dist/{java-CanB8gLZ.js.map → java-BnvYNxWj.js.map} +1 -1
- package/dist/keli-ui.css +1 -1
- package/dist/keli-ui.js +152 -130
- package/dist/keli-ui.js.map +1 -1
- package/dist/keli-ui.umd.cjs +7 -7
- package/dist/keli-ui.umd.cjs.map +1 -1
- package/dist/{mysql-BfiDepTc.js → mysql-CYFQ0eY_.js} +2 -2
- package/dist/{mysql-BfiDepTc.js.map → mysql-CYFQ0eY_.js.map} +1 -1
- package/dist/{postgresql-63S_TxNE.js → postgresql-36U-UjOH.js} +2 -2
- package/dist/{postgresql-63S_TxNE.js.map → postgresql-36U-UjOH.js.map} +1 -1
- package/dist/types/button.d.ts +2 -0
- package/dist/types/formFrame.d.ts +0 -4
- package/dist/types/global-components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/FormComponent/FormImageUpload/index.d.ts +0 -3
package/dist/keli-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as ee, U as b, V as x, W as S, X as C, Y as te, Z as ne, _ as re, a as w, b as ie, c as ae, d as oe, et as se, f as ce, g as le, h as ue, it as de, j as fe, k as pe, l as me, m as he, n as ge, nt as _e, o as ve, p as ye, q as be, r as xe, rt as Se, s as Ce, tt as we, u as Te, v as Ee, w as De, x as Oe, y as ke, z as Ae } from "./api-
|
|
2
|
-
import { a as je, i as Me, n as Ne, t as Pe } from "./java-
|
|
3
|
-
import { t as Fe } from "./mysql-
|
|
4
|
-
import { i as Ie, n as Le, t as Re } from "./postgresql-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as ee, U as b, V as x, W as S, X as C, Y as te, Z as ne, _ as re, a as w, b as ie, c as ae, d as oe, et as se, f as ce, g as le, h as ue, it as de, j as fe, k as pe, l as me, m as he, n as ge, nt as _e, o as ve, p as ye, q as be, r as xe, rt as Se, s as Ce, tt as we, u as Te, v as Ee, w as De, x as Oe, y as ke, z as Ae } from "./api-DFkXg4kc.js";
|
|
2
|
+
import { a as je, i as Me, n as Ne, t as Pe } from "./java-BnvYNxWj.js";
|
|
3
|
+
import { t as Fe } from "./mysql-CYFQ0eY_.js";
|
|
4
|
+
import { i as Ie, n as Le, t as Re } from "./postgresql-36U-UjOH.js";
|
|
5
5
|
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createSlots as ze, createTextVNode as j, createVNode as M, defineAsyncComponent as Be, defineComponent as N, guardReactiveProps as Ve, h as He, inject as Ue, markRaw as We, mergeModels as P, mergeProps as F, nextTick as Ge, normalizeClass as Ke, normalizeProps as qe, normalizeStyle as Je, onBeforeUnmount as Ye, onMounted as I, onUnmounted as L, openBlock as R, provide as Xe, reactive as z, ref as B, render as Ze, renderList as V, renderSlot as Qe, resolveComponent as H, resolveDirective as $e, resolveDynamicComponent as U, shallowRef as et, toDisplayString as W, toHandlers as tt, unref as G, useAttrs as nt, useModel as K, useTemplateRef as rt, vShow as it, watch as at, watchEffect as ot, withCtx as q, withDirectives as st, withModifiers as ct } from "vue";
|
|
6
6
|
import { Icon as lt } from "@iconify/vue";
|
|
7
7
|
import { ElButton as ut, ElMessage as dt, ElMessageBox as ft, ElNotification as pt, dayjs as mt } from "element-plus";
|
|
@@ -1280,7 +1280,8 @@ var Cn = (e) => {
|
|
|
1280
1280
|
"queryClick",
|
|
1281
1281
|
"valueChange",
|
|
1282
1282
|
"treeLazyLoad",
|
|
1283
|
-
"onSelection"
|
|
1283
|
+
"onSelection",
|
|
1284
|
+
"buttonClick"
|
|
1284
1285
|
], ["update:tablePagination"]),
|
|
1285
1286
|
setup(e, { emit: t }) {
|
|
1286
1287
|
let n = H("VxeGrid"), r = e, i = t, a = B(), o = K(e, "tablePagination"), s = (e, t, n) => {
|
|
@@ -1305,10 +1306,10 @@ var Cn = (e) => {
|
|
|
1305
1306
|
let t = e[0];
|
|
1306
1307
|
t && (m.value = t.contentRect.height);
|
|
1307
1308
|
}, 200));
|
|
1308
|
-
let h = {}, g = (e
|
|
1309
|
-
$i(e, t, n);
|
|
1310
|
-
}, _ = (e) => {
|
|
1309
|
+
let h = {}, g = (e) => {
|
|
1311
1310
|
h = e, i("queryClick", h);
|
|
1311
|
+
}, _ = (e, t, n) => {
|
|
1312
|
+
i("buttonClick", e, t, n);
|
|
1312
1313
|
}, v = () => {
|
|
1313
1314
|
i("queryClick", h);
|
|
1314
1315
|
};
|
|
@@ -1319,7 +1320,7 @@ var Cn = (e) => {
|
|
|
1319
1320
|
key: 0,
|
|
1320
1321
|
frame: e.queryConfig,
|
|
1321
1322
|
class: "ke-query-bar-client",
|
|
1322
|
-
onQueryClick:
|
|
1323
|
+
onQueryClick: g
|
|
1323
1324
|
}, null, 8, ["frame"])) : O("", !0),
|
|
1324
1325
|
e.tableToolButtons && e.tableToolButtons.length > 0 ? (R(), k("div", Tn, [M(G(ra), { "tool-buttons": e.tableToolButtons }, {
|
|
1325
1326
|
"custom-button": q(() => [
|
|
@@ -1388,7 +1389,7 @@ var Cn = (e) => {
|
|
|
1388
1389
|
icon: e.icon,
|
|
1389
1390
|
type: e.type,
|
|
1390
1391
|
size: "small",
|
|
1391
|
-
onClick: ct((r) =>
|
|
1392
|
+
onClick: ct((r) => _(t, e, n), ["stop"])
|
|
1392
1393
|
}, null, 8, [
|
|
1393
1394
|
"class",
|
|
1394
1395
|
"style",
|
|
@@ -3030,13 +3031,15 @@ kr.name = "FormIconPicker", kr.install = (e) => {
|
|
|
3030
3031
|
e.component("FormIconPicker", kr);
|
|
3031
3032
|
};
|
|
3032
3033
|
//#endregion
|
|
3033
|
-
//#region src/components/FormComponent/
|
|
3034
|
-
var Ar = { class: "form-
|
|
3035
|
-
__name: "
|
|
3034
|
+
//#region src/components/FormComponent/FormFileUpload/FormFileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
3035
|
+
var Ar = { class: "form-file-upload" }, jr = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
3036
|
+
__name: "FormFileUpload",
|
|
3036
3037
|
props: /* @__PURE__ */ P({
|
|
3037
3038
|
value: { default: () => [] },
|
|
3038
3039
|
detail: {},
|
|
3039
|
-
mittId: { default: () => null }
|
|
3040
|
+
mittId: { default: () => null },
|
|
3041
|
+
dataId: {},
|
|
3042
|
+
pageId: {}
|
|
3040
3043
|
}, {
|
|
3041
3044
|
value: { default: () => [] },
|
|
3042
3045
|
valueModifiers: {}
|
|
@@ -3047,86 +3050,93 @@ var Ar = { class: "form-image-upload" }, jr = /* @__PURE__ */ Y(/* @__PURE__ */
|
|
|
3047
3050
|
"valueChange",
|
|
3048
3051
|
"setShow"
|
|
3049
3052
|
], ["update:value"]),
|
|
3050
|
-
setup(e, { emit:
|
|
3051
|
-
let
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
},
|
|
3062
|
-
|
|
3053
|
+
setup(e, { emit: n }) {
|
|
3054
|
+
let r = e, { registerMitt: i, offMitt: a } = $(r.detail.field, r.mittId), o = K(e, "value"), s = B([]), c = B(!1), l = B(0), u = E(() => r.detail?.disabled ?? !1), d = E(() => `${t.value}/${r.pageId}/${r.dataId}/${r.detail.field}`), f = E(() => r.detail?.fileType && r.detail.fileType.length > 0 ? r.detail.fileType.join(",") : ""), p = E(() => s.value.map((e) => e.url || "").filter((e) => e.length > 0)), m = (e) => e.filter((e) => !!e).map((e, t) => {
|
|
3055
|
+
let n = e.split("/").pop() || `file-${t}`;
|
|
3056
|
+
return {
|
|
3057
|
+
name: decodeURIComponent(n),
|
|
3058
|
+
url: e,
|
|
3059
|
+
uid: Date.now() + t,
|
|
3060
|
+
status: "success"
|
|
3061
|
+
};
|
|
3062
|
+
}), h = () => {
|
|
3063
|
+
o.value && o.value.length > 0 && (s.value = m(o.value));
|
|
3064
|
+
}, g = () => {
|
|
3065
|
+
let e = s.value.filter((e) => e.status === "success" || e.status === void 0).map((e) => e.url || "").filter((e) => e.length > 0);
|
|
3066
|
+
e.length !== (o.value?.length ?? 0) && (o.value = e);
|
|
3067
|
+
}, _ = (e) => {
|
|
3068
|
+
if (r.detail?.fileType && r.detail.fileType.length > 0 && !r.detail.fileType.some((t) => {
|
|
3063
3069
|
let n = t.toLowerCase().replace(".", ""), r = e.name.toLowerCase(), i = e.type.toLowerCase();
|
|
3064
|
-
return r.endsWith(`.${n}`) || i === t || i ===
|
|
3070
|
+
return r.endsWith(`.${n}`) || i === t || i === `${n}`;
|
|
3065
3071
|
})) {
|
|
3066
|
-
let e =
|
|
3072
|
+
let e = r.detail.fileType.join("、");
|
|
3067
3073
|
return Q.tips({
|
|
3068
3074
|
msg: `只能上传 ${e} 格式的文件`,
|
|
3069
3075
|
type: "warning"
|
|
3070
3076
|
}), !1;
|
|
3071
3077
|
}
|
|
3072
|
-
if (
|
|
3073
|
-
let t =
|
|
3078
|
+
if (r.detail?.componentParams?.maxSize) {
|
|
3079
|
+
let t = r.detail.componentParams.maxSize * 1024;
|
|
3074
3080
|
if (e.size > t) return Q.tips({
|
|
3075
|
-
msg: `文件大小不能超过 ${
|
|
3081
|
+
msg: `文件大小不能超过 ${r.detail.componentParams.maxSize}KB`,
|
|
3076
3082
|
type: "warning"
|
|
3077
3083
|
}), !1;
|
|
3078
3084
|
}
|
|
3079
3085
|
return !0;
|
|
3080
|
-
},
|
|
3086
|
+
}, v = () => {
|
|
3081
3087
|
Q.tips({
|
|
3082
|
-
msg: `最多只能上传 ${
|
|
3088
|
+
msg: `最多只能上传 ${r.detail.maxNumber} 个文件`,
|
|
3083
3089
|
type: "warning"
|
|
3084
3090
|
});
|
|
3085
|
-
},
|
|
3086
|
-
|
|
3087
|
-
}, v = () => {
|
|
3088
|
-
m();
|
|
3089
|
-
}, y = (e, t) => {
|
|
3090
|
-
let n = "";
|
|
3091
|
-
typeof e == "string" ? n = e : e?.data ? n = typeof e.data == "string" ? e.data : e.data.url || "" : e?.url && (n = e.url), n && (t.url = n), m();
|
|
3091
|
+
}, y = () => {
|
|
3092
|
+
g();
|
|
3092
3093
|
}, ee = () => {
|
|
3094
|
+
g();
|
|
3095
|
+
}, b = (e, t) => {
|
|
3096
|
+
let n = "";
|
|
3097
|
+
if (e?.code === 0 && e?.data) {
|
|
3098
|
+
let r = e.data;
|
|
3099
|
+
r.id && r.fileOriginalName ? (n = `${pe.value}/${r.id}/${r.fileOriginalName}`, t.name = r.fileOriginalName) : typeof r == "string" ? n = r : r.url && (n = r.url);
|
|
3100
|
+
} else typeof e == "string" ? n = e : e?.url && (n = e.url);
|
|
3101
|
+
n && (t.url = n), g();
|
|
3102
|
+
}, x = () => {
|
|
3093
3103
|
Q.tips({
|
|
3094
|
-
msg: "
|
|
3104
|
+
msg: "文件上传失败",
|
|
3095
3105
|
type: "error"
|
|
3096
|
-
}),
|
|
3097
|
-
}, b = (e) => {
|
|
3098
|
-
let t = o.value.findIndex((t) => t.uid === e.uid);
|
|
3099
|
-
c.value = t >= 0 ? t : 0, s.value = !0;
|
|
3100
|
-
}, x = (e) => {
|
|
3101
|
-
a.value = e, o.value = f(e);
|
|
3106
|
+
}), g();
|
|
3102
3107
|
}, S = (e) => {
|
|
3103
|
-
|
|
3108
|
+
let t = s.value.findIndex((t) => t.uid === e.uid);
|
|
3109
|
+
l.value = t >= 0 ? t : 0, c.value = !0;
|
|
3110
|
+
}, C = (e) => {
|
|
3111
|
+
o.value = e, s.value = m(e);
|
|
3112
|
+
}, te = (e) => {
|
|
3113
|
+
r.detail.noticeReceive && r.detail.noticeReceive(e, C);
|
|
3104
3114
|
};
|
|
3105
|
-
return at(() =>
|
|
3106
|
-
(!e || e.length === 0) && (
|
|
3115
|
+
return at(() => o.value, (e) => {
|
|
3116
|
+
(!e || e.length === 0) && (s.value = []);
|
|
3107
3117
|
}), I(() => {
|
|
3108
|
-
|
|
3118
|
+
i(te), h();
|
|
3109
3119
|
}), L(() => {
|
|
3110
|
-
|
|
3120
|
+
a();
|
|
3111
3121
|
}), (e, t) => {
|
|
3112
|
-
let
|
|
3122
|
+
let n = H("el-icon"), i = H("el-upload"), a = H("el-image-viewer");
|
|
3113
3123
|
return R(), k("div", Ar, [M(i, F({
|
|
3114
|
-
"file-list":
|
|
3115
|
-
"onUpdate:fileList": t[0] ||= (e) =>
|
|
3116
|
-
action:
|
|
3117
|
-
accept:
|
|
3124
|
+
"file-list": s.value,
|
|
3125
|
+
"onUpdate:fileList": t[0] ||= (e) => s.value = e,
|
|
3126
|
+
action: d.value,
|
|
3127
|
+
accept: f.value,
|
|
3118
3128
|
"list-type": "picture-card",
|
|
3119
|
-
limit:
|
|
3120
|
-
disabled:
|
|
3121
|
-
"before-upload":
|
|
3122
|
-
"on-exceed":
|
|
3123
|
-
"on-change":
|
|
3124
|
-
"on-remove":
|
|
3125
|
-
"on-success":
|
|
3126
|
-
"on-error":
|
|
3127
|
-
"on-preview":
|
|
3128
|
-
},
|
|
3129
|
-
default: q(() => [M(
|
|
3129
|
+
limit: r.detail.maxNumber,
|
|
3130
|
+
disabled: u.value,
|
|
3131
|
+
"before-upload": _,
|
|
3132
|
+
"on-exceed": v,
|
|
3133
|
+
"on-change": y,
|
|
3134
|
+
"on-remove": ee,
|
|
3135
|
+
"on-success": b,
|
|
3136
|
+
"on-error": x,
|
|
3137
|
+
"on-preview": S
|
|
3138
|
+
}, r.detail?.componentParams ? r.detail.componentParams : {}), {
|
|
3139
|
+
default: q(() => [M(n, null, {
|
|
3130
3140
|
default: q(() => [M(G(se))]),
|
|
3131
3141
|
_: 1
|
|
3132
3142
|
})]),
|
|
@@ -3137,17 +3147,17 @@ var Ar = { class: "form-image-upload" }, jr = /* @__PURE__ */ Y(/* @__PURE__ */
|
|
|
3137
3147
|
"accept",
|
|
3138
3148
|
"limit",
|
|
3139
3149
|
"disabled"
|
|
3140
|
-
]),
|
|
3150
|
+
]), c.value ? (R(), D(a, {
|
|
3141
3151
|
key: 0,
|
|
3142
|
-
"initial-index":
|
|
3143
|
-
"url-list":
|
|
3144
|
-
onClose: t[1] ||= (e) =>
|
|
3152
|
+
"initial-index": l.value,
|
|
3153
|
+
"url-list": p.value,
|
|
3154
|
+
onClose: t[1] ||= (e) => c.value = !1
|
|
3145
3155
|
}, null, 8, ["initial-index", "url-list"])) : O("", !0)]);
|
|
3146
3156
|
};
|
|
3147
3157
|
}
|
|
3148
|
-
}), [["__scopeId", "data-v-
|
|
3149
|
-
jr.name = "
|
|
3150
|
-
e.component("
|
|
3158
|
+
}), [["__scopeId", "data-v-eedff488"]]);
|
|
3159
|
+
jr.name = "FormFileUpload", jr.install = (e) => {
|
|
3160
|
+
e.component("FormFileUpload", jr);
|
|
3151
3161
|
};
|
|
3152
3162
|
//#endregion
|
|
3153
3163
|
//#region src/components/FormComponent/FormCodeEditor/volar/setup.ts
|
|
@@ -5230,7 +5240,7 @@ var Rr = { class: "container" }, zr = { class: "code-preview" }, Br = {
|
|
|
5230
5240
|
try {
|
|
5231
5241
|
switch (e) {
|
|
5232
5242
|
case "java":
|
|
5233
|
-
if (n = await import("./java-
|
|
5243
|
+
if (n = await import("./java-BnvYNxWj.js").then((e) => e.r), n.defineJavaThemes?.(), n.registerJavaCompletion?.(), t) return;
|
|
5234
5244
|
break;
|
|
5235
5245
|
case "json":
|
|
5236
5246
|
if (t) return;
|
|
@@ -5238,10 +5248,10 @@ var Rr = { class: "container" }, zr = { class: "code-preview" }, Br = {
|
|
|
5238
5248
|
break;
|
|
5239
5249
|
case "mysql":
|
|
5240
5250
|
if (t) return;
|
|
5241
|
-
n = await import("./mysql-
|
|
5251
|
+
n = await import("./mysql-CYFQ0eY_.js").then((e) => e.n);
|
|
5242
5252
|
break;
|
|
5243
5253
|
case "postgresql":
|
|
5244
|
-
if (n = await import("./postgresql-
|
|
5254
|
+
if (n = await import("./postgresql-36U-UjOH.js").then((e) => e.r), n.definePgsqlThemes?.(), n.registerPgsqlCompletion?.(), t) return;
|
|
5245
5255
|
break;
|
|
5246
5256
|
default: return;
|
|
5247
5257
|
}
|
|
@@ -6167,6 +6177,8 @@ var $r = { class: "label-question" }, ei = ["src"], ti = /* @__PURE__ */ Y(/* @_
|
|
|
6167
6177
|
"field-name": t.field,
|
|
6168
6178
|
"field-title": t.title,
|
|
6169
6179
|
"mitt-id": c,
|
|
6180
|
+
"page-id": e.pageId,
|
|
6181
|
+
"data-id": a.value[e.config.rowKey],
|
|
6170
6182
|
style: { width: "100%" },
|
|
6171
6183
|
onGetComponentValue: G(b),
|
|
6172
6184
|
onSetShow: G(y)
|
|
@@ -6177,6 +6189,8 @@ var $r = { class: "label-question" }, ei = ["src"], ti = /* @__PURE__ */ Y(/* @_
|
|
|
6177
6189
|
"disabled",
|
|
6178
6190
|
"field-name",
|
|
6179
6191
|
"field-title",
|
|
6192
|
+
"page-id",
|
|
6193
|
+
"data-id",
|
|
6180
6194
|
"onGetComponentValue",
|
|
6181
6195
|
"onSetShow"
|
|
6182
6196
|
]))]),
|
|
@@ -6211,7 +6225,7 @@ var $r = { class: "label-question" }, ei = ["src"], ti = /* @__PURE__ */ Y(/* @_
|
|
|
6211
6225
|
])), [[f, e.isLoading]])], 512);
|
|
6212
6226
|
};
|
|
6213
6227
|
}
|
|
6214
|
-
}), [["__scopeId", "data-v-
|
|
6228
|
+
}), [["__scopeId", "data-v-b0022169"]]);
|
|
6215
6229
|
si.name = "FormRender", si.install = (e) => {
|
|
6216
6230
|
e.component("FormRender", si);
|
|
6217
6231
|
};
|
|
@@ -6392,6 +6406,9 @@ function yi(e) {
|
|
|
6392
6406
|
de.push(e, t);
|
|
6393
6407
|
}
|
|
6394
6408
|
},
|
|
6409
|
+
buttonClick: async (e, t, n) => {
|
|
6410
|
+
t.params.pagePath = a || [], await $i(e, t, n);
|
|
6411
|
+
},
|
|
6395
6412
|
tableConfig: s,
|
|
6396
6413
|
pageId: o
|
|
6397
6414
|
};
|
|
@@ -6483,22 +6500,22 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
6483
6500
|
currentPage: 1,
|
|
6484
6501
|
pageSize: 0,
|
|
6485
6502
|
total: 0
|
|
6486
|
-
}), { tableData: p, syncTableData: m, btnClickFunc: g,
|
|
6503
|
+
}), { tableData: p, syncTableData: m, btnClickFunc: g, buttonClick: _, tableConfig: v } = yi({
|
|
6487
6504
|
pageId: n,
|
|
6488
6505
|
queryTreeFilter: a,
|
|
6489
6506
|
pagination: f,
|
|
6490
6507
|
appFormWindowRef: o,
|
|
6491
6508
|
embeddedId: t.embeddedId,
|
|
6492
6509
|
pagePath: t.pagePath
|
|
6493
|
-
}),
|
|
6510
|
+
}), y = async (e) => {
|
|
6494
6511
|
if (e < 0 || !e) {
|
|
6495
6512
|
await m();
|
|
6496
6513
|
return;
|
|
6497
6514
|
}
|
|
6498
6515
|
r.value = !0;
|
|
6499
6516
|
let n = p.value[e], i = {};
|
|
6500
|
-
i[
|
|
6501
|
-
val: n[
|
|
6517
|
+
i[v.value.rowKey] = {
|
|
6518
|
+
val: n[v.value.rowKey],
|
|
6502
6519
|
queryType: "equals"
|
|
6503
6520
|
};
|
|
6504
6521
|
let a = await he({
|
|
@@ -6508,10 +6525,10 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
6508
6525
|
queryData: i
|
|
6509
6526
|
});
|
|
6510
6527
|
a.code === 0 && a.data.tableData.length > 0 && (p.value[e] = a.data.tableData[0]), r.value = !1;
|
|
6511
|
-
},
|
|
6528
|
+
}, ee = async (e, n, i) => {
|
|
6512
6529
|
r.value = !0, (await le({
|
|
6513
6530
|
pagePaths: t.pagePath,
|
|
6514
|
-
tablePageId:
|
|
6531
|
+
tablePageId: v.value.pageId,
|
|
6515
6532
|
fieldName: e,
|
|
6516
6533
|
newValue: n,
|
|
6517
6534
|
rowId: i
|
|
@@ -6519,38 +6536,39 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
6519
6536
|
type: "success",
|
|
6520
6537
|
msg: "修改成功!"
|
|
6521
6538
|
}), r.value = !1;
|
|
6522
|
-
},
|
|
6539
|
+
}, b = async () => {
|
|
6523
6540
|
r.value = !0;
|
|
6524
6541
|
let e = await ue(t.embeddedId, t.pagePath);
|
|
6525
6542
|
if (e.code === 0) {
|
|
6526
6543
|
n.value = e.data.tableConfig.pageId;
|
|
6527
6544
|
let { tableButtons: t } = await import(`${h.value}/app/js/table/${e.data.tableConfig.pageId}?time=${Ft(3)}`), r = vi(e.data, e.data.tableConfig.pageId, g, t);
|
|
6528
|
-
|
|
6545
|
+
v.value = e.data.tableConfig, l.value = e.data.queryFrameList, r.gridOptions.columns && (c.value = r.gridOptions.columns), i.value = r.gridOptions, i.value.columns = [], u.value = r.tableToolButtons, d.value = r.tableRowButtons, await m();
|
|
6529
6546
|
}
|
|
6530
6547
|
r.value = !1;
|
|
6531
6548
|
};
|
|
6532
6549
|
return I(() => {
|
|
6533
|
-
i.value = { ...s.gridOptions },
|
|
6550
|
+
i.value = { ...s.gridOptions }, b();
|
|
6534
6551
|
}), (t, n) => {
|
|
6535
6552
|
let s = $e("loading");
|
|
6536
6553
|
return st((R(), k("div", Ci, [
|
|
6537
|
-
G(
|
|
6554
|
+
G(v).pageId && G(v).hasQueryTreeFilter ? (R(), k("div", wi, [M(G(un), {
|
|
6538
6555
|
ref_key: "queryTreeFilter",
|
|
6539
6556
|
ref: a,
|
|
6540
|
-
"page-id": G(
|
|
6557
|
+
"page-id": G(v).pageId
|
|
6541
6558
|
}, null, 8, ["page-id"])])) : O("", !0),
|
|
6542
|
-
G(
|
|
6559
|
+
G(v).pageId ? (R(), k("div", Ti, [(R(), D(U(G(v).showType), {
|
|
6543
6560
|
columns: c.value,
|
|
6544
6561
|
"query-config": l.value,
|
|
6545
|
-
"table-config": G(
|
|
6562
|
+
"table-config": G(v),
|
|
6546
6563
|
"table-data": G(p),
|
|
6547
|
-
"table-id": G(
|
|
6564
|
+
"table-id": G(v).pageId,
|
|
6548
6565
|
"table-pagination": f.value,
|
|
6549
6566
|
"table-row-buttons": d.value,
|
|
6550
6567
|
"table-tool-buttons": u.value,
|
|
6551
6568
|
"vxe-grid-options": i.value,
|
|
6552
6569
|
onQueryClick: G(m),
|
|
6553
|
-
onValueChange:
|
|
6570
|
+
onValueChange: ee,
|
|
6571
|
+
onButtonClick: G(_)
|
|
6554
6572
|
}, null, 40, [
|
|
6555
6573
|
"columns",
|
|
6556
6574
|
"query-config",
|
|
@@ -6561,16 +6579,17 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
6561
6579
|
"table-row-buttons",
|
|
6562
6580
|
"table-tool-buttons",
|
|
6563
6581
|
"vxe-grid-options",
|
|
6564
|
-
"onQueryClick"
|
|
6582
|
+
"onQueryClick",
|
|
6583
|
+
"onButtonClick"
|
|
6565
6584
|
]))])) : O("", !0),
|
|
6566
|
-
G(
|
|
6585
|
+
G(v).pageId ? (R(), D(Si, {
|
|
6567
6586
|
key: 2,
|
|
6568
6587
|
ref_key: "appFormWindowRef",
|
|
6569
6588
|
ref: o,
|
|
6570
6589
|
"embedded-id": e.embeddedId,
|
|
6571
|
-
"page-id": G(
|
|
6590
|
+
"page-id": G(v).pageId,
|
|
6572
6591
|
"page-path": e.pagePath,
|
|
6573
|
-
onDataChange:
|
|
6592
|
+
onDataChange: y
|
|
6574
6593
|
}, null, 8, [
|
|
6575
6594
|
"embedded-id",
|
|
6576
6595
|
"page-id",
|
|
@@ -6579,7 +6598,7 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
6579
6598
|
])), [[s, r.value]]);
|
|
6580
6599
|
};
|
|
6581
6600
|
}
|
|
6582
|
-
}), [["__scopeId", "data-v-
|
|
6601
|
+
}), [["__scopeId", "data-v-e5f57153"]]), Di = { class: "upload-container" }, Oi = { class: "right-button" }, ki = { class: "mt-2" }, Ai = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
6583
6602
|
__name: "FileIsland",
|
|
6584
6603
|
props: {
|
|
6585
6604
|
dataId: {},
|
|
@@ -6899,7 +6918,7 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
6899
6918
|
"dataChange"
|
|
6900
6919
|
], ["update:dataId"]),
|
|
6901
6920
|
setup(e, { expose: t, emit: n }) {
|
|
6902
|
-
let o = e, s = n, c = Be(() => import("./ApprovalRecord-
|
|
6921
|
+
let o = e, s = n, c = Be(() => import("./ApprovalRecord-BCXgcNAT.js")), l = B(), u = B(), d = B({}), f = B([]), p = K(e, "dataId"), m = B({}), g = B({}), _ = B([]), v = B({}), y = B(null), b = B([]), x = !1, S = E(() => Array.isArray(o.pagePath) ? [...o.pagePath, {
|
|
6903
6922
|
pageId: o.pageId,
|
|
6904
6923
|
dataId: o.dataId,
|
|
6905
6924
|
formData: m.value
|
|
@@ -7030,7 +7049,8 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
7030
7049
|
}, me = async (e) => {
|
|
7031
7050
|
w.formLoading ||= (w.formLoading = !0, e.params = {
|
|
7032
7051
|
pageId: o.pageId,
|
|
7033
|
-
dataId: o.dataId
|
|
7052
|
+
dataId: o.dataId,
|
|
7053
|
+
pagePath: o.pagePath
|
|
7034
7054
|
}, await $i(m.value, e), !1);
|
|
7035
7055
|
}, he = (e) => {
|
|
7036
7056
|
x = e, oe();
|
|
@@ -7210,7 +7230,7 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
7210
7230
|
])), [[p, w.formLoading]]);
|
|
7211
7231
|
};
|
|
7212
7232
|
}
|
|
7213
|
-
}), [["__scopeId", "data-v-
|
|
7233
|
+
}), [["__scopeId", "data-v-2eef05f2"]]), Bi = { class: "chart-container" }, Vi = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
7214
7234
|
__name: "ChartRender",
|
|
7215
7235
|
props: { chart: {
|
|
7216
7236
|
type: Object,
|
|
@@ -7430,43 +7450,43 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
7430
7450
|
currentPage: 1,
|
|
7431
7451
|
pageSize: 10,
|
|
7432
7452
|
total: 0
|
|
7433
|
-
}), f = rt("queryTreeFilter"), { tableData: p, syncTableData: m, btnClickFunc: g,
|
|
7453
|
+
}), f = rt("queryTreeFilter"), { tableData: p, syncTableData: m, btnClickFunc: g, buttonClick: _, tableConfig: v } = yi({
|
|
7434
7454
|
pageId: r,
|
|
7435
7455
|
queryTreeFilter: f,
|
|
7436
7456
|
pagination: d,
|
|
7437
7457
|
appFormWindowRef: i
|
|
7438
|
-
}), { runAsync:
|
|
7458
|
+
}), { runAsync: y, loading: ee } = xt(() => oe(r.value), {
|
|
7439
7459
|
manual: !0,
|
|
7440
7460
|
cacheKey: `table-render-${r.value}`,
|
|
7441
7461
|
onSuccess: async (e) => {
|
|
7442
7462
|
if (e.code === 0) {
|
|
7443
|
-
let { tableButtons: t } = await import(`${h.value}/app/js/table/${r.value}?time=${Ft(3)}`), n = vi(e.data, r.value, g, t,
|
|
7444
|
-
|
|
7463
|
+
let { tableButtons: t } = await import(`${h.value}/app/js/table/${r.value}?time=${Ft(3)}`), n = vi(e.data, r.value, g, t, S);
|
|
7464
|
+
v.value = e.data.tableConfig, v.value.pageId = r.value, c.value = e.data.queryFrameList, s.value = n.gridOptions.columns, o.value = n.gridOptions, o.value.columns = [], l.value = n.tableToolButtons, u.value = n.tableRowButtons;
|
|
7445
7465
|
}
|
|
7446
7466
|
m();
|
|
7447
7467
|
}
|
|
7448
|
-
}),
|
|
7468
|
+
}), b = rt("chartList"), x = (e) => {
|
|
7449
7469
|
if (e < 0 || !e) {
|
|
7450
7470
|
m();
|
|
7451
7471
|
return;
|
|
7452
7472
|
}
|
|
7453
7473
|
bi({
|
|
7454
7474
|
rowIndex: e,
|
|
7455
|
-
tableConfig:
|
|
7475
|
+
tableConfig: v,
|
|
7456
7476
|
tableData: p
|
|
7457
7477
|
});
|
|
7458
|
-
},
|
|
7478
|
+
}, S = async (e, t, n) => {
|
|
7459
7479
|
await m(n, t, e);
|
|
7460
|
-
},
|
|
7461
|
-
|
|
7480
|
+
}, C = (e, t, n) => {}, te = { open: () => {
|
|
7481
|
+
b.value && b.value.openDialog(r.value);
|
|
7462
7482
|
} };
|
|
7463
7483
|
return I(async () => {
|
|
7464
|
-
|
|
7484
|
+
v.value.pageId = r.value, await y();
|
|
7465
7485
|
}), (t, h) => {
|
|
7466
|
-
let g = H("el-splitter-panel"),
|
|
7486
|
+
let g = H("el-splitter-panel"), y = H("el-button"), b = H("el-splitter"), S = $e("loading");
|
|
7467
7487
|
return st((R(), k("div", qi, [
|
|
7468
|
-
M(
|
|
7469
|
-
default: q(() => [r.value && G(
|
|
7488
|
+
M(b, null, {
|
|
7489
|
+
default: q(() => [r.value && G(v).hasQueryTreeFilter ? (R(), D(g, {
|
|
7470
7490
|
key: 0,
|
|
7471
7491
|
collapsible: "",
|
|
7472
7492
|
size: "240"
|
|
@@ -7477,13 +7497,13 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
7477
7497
|
"page-id": r.value
|
|
7478
7498
|
}, null, 8, ["page-id"])]),
|
|
7479
7499
|
_: 1
|
|
7480
|
-
})) : O("", !0), G(
|
|
7481
|
-
default: q(() => [(R(), D(U(n[G(
|
|
7500
|
+
})) : O("", !0), G(v).rowKey ? (R(), D(g, { key: 1 }, {
|
|
7501
|
+
default: q(() => [(R(), D(U(n[G(v).showType]), {
|
|
7482
7502
|
ref_key: "tableRef",
|
|
7483
7503
|
ref: a,
|
|
7484
7504
|
columns: s.value,
|
|
7485
7505
|
"query-config": c.value,
|
|
7486
|
-
"table-config": G(
|
|
7506
|
+
"table-config": G(v),
|
|
7487
7507
|
"table-data": G(p),
|
|
7488
7508
|
"table-id": r.value,
|
|
7489
7509
|
"table-pagination": d.value,
|
|
@@ -7491,11 +7511,12 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
7491
7511
|
"table-tool-buttons": l.value,
|
|
7492
7512
|
"vxe-grid-options": o.value,
|
|
7493
7513
|
onQueryClick: G(m),
|
|
7494
|
-
onValueChange:
|
|
7514
|
+
onValueChange: C,
|
|
7515
|
+
onButtonClick: G(_)
|
|
7495
7516
|
}, {
|
|
7496
|
-
"tool-bar": q(() => [M(
|
|
7517
|
+
"tool-bar": q(() => [M(y, {
|
|
7497
7518
|
icon: G(e),
|
|
7498
|
-
onClick:
|
|
7519
|
+
onClick: te.open
|
|
7499
7520
|
}, null, 8, ["icon", "onClick"])]),
|
|
7500
7521
|
_: 1
|
|
7501
7522
|
}, 40, [
|
|
@@ -7508,28 +7529,29 @@ var xi = { class: "dia-container" }, Si = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
|
7508
7529
|
"table-row-buttons",
|
|
7509
7530
|
"table-tool-buttons",
|
|
7510
7531
|
"vxe-grid-options",
|
|
7511
|
-
"onQueryClick"
|
|
7532
|
+
"onQueryClick",
|
|
7533
|
+
"onButtonClick"
|
|
7512
7534
|
]))]),
|
|
7513
7535
|
_: 1
|
|
7514
7536
|
})) : O("", !0)]),
|
|
7515
7537
|
_: 1
|
|
7516
7538
|
}),
|
|
7517
|
-
A("div", Ji, [!G(
|
|
7539
|
+
A("div", Ji, [!G(v).formWindow || G(v).formWindow === "DrawerForm" ? (R(), D(Ki, {
|
|
7518
7540
|
key: 0,
|
|
7519
7541
|
ref_key: "appFormWindowRef",
|
|
7520
7542
|
ref: i,
|
|
7521
|
-
onDataChange:
|
|
7543
|
+
onDataChange: x
|
|
7522
7544
|
}, null, 512)) : (R(), D(Gi, {
|
|
7523
7545
|
key: 1,
|
|
7524
7546
|
ref_key: "appFormWindowRef",
|
|
7525
7547
|
ref: i,
|
|
7526
|
-
onDataChange:
|
|
7548
|
+
onDataChange: x
|
|
7527
7549
|
}, null, 512))]),
|
|
7528
7550
|
M(G(Ui), { ref: "chartList" }, null, 512)
|
|
7529
|
-
])), [[
|
|
7551
|
+
])), [[S, G(ee)]]);
|
|
7530
7552
|
};
|
|
7531
7553
|
}
|
|
7532
|
-
}), [["__scopeId", "data-v-
|
|
7554
|
+
}), [["__scopeId", "data-v-8e658686"]]), Xi = /* @__PURE__ */ Y(/* @__PURE__ */ N({
|
|
7533
7555
|
__name: "DynamicDialogHost",
|
|
7534
7556
|
props: {
|
|
7535
7557
|
componentName: {},
|
|
@@ -7668,7 +7690,7 @@ async function ta(e, t) {
|
|
|
7668
7690
|
console.error(t);
|
|
7669
7691
|
let n = null;
|
|
7670
7692
|
typeof t.params.pageId == "number" ? n = t.params.pageId : t.params.getPageId && Z(t.params.getPageId()) ? n = t.params.getPageId() : e.pageId?.value && (n = e.pageId.value);
|
|
7671
|
-
let r = t.params.dataId || null, i = await ie(n, r, t.id);
|
|
7693
|
+
let r = t.params.dataId || null, i = await ie(n, r, t.id, e);
|
|
7672
7694
|
i.code === 0 && Array.isArray(i.data) && i.data.length > 0 && i.data.forEach((e) => Q.tips({
|
|
7673
7695
|
msg: e,
|
|
7674
7696
|
type: "info",
|
|
@@ -8072,6 +8094,6 @@ var da = { install(e, t = {}) {
|
|
|
8072
8094
|
function ha() {}
|
|
8073
8095
|
var ga = { install: ma };
|
|
8074
8096
|
//#endregion
|
|
8075
|
-
export { zi as AppFormRender, Yi as AppTableRender, h as BASE_URL, Ki as DrawerForm, Xi as DynamicDialogHost, Qr as DynamicMapTable, St as ElButtonPlus, wt as ElColPlus, Tt as ElRowPlus, pe as FILE_URL, rr as FormCascaderAsync, Gn as FormCheckBox, qn as FormCheckBoxAsync, Gr as FormCodeEditor, Qn as FormDatePicker, nr as FormDateTimePicker, xr as FormDictSelector, qr as FormDivider, Zr as FormDynamicTable, Xr as FormFieldset,
|
|
8097
|
+
export { zi as AppFormRender, Yi as AppTableRender, h as BASE_URL, Ki as DrawerForm, Xi as DynamicDialogHost, Qr as DynamicMapTable, St as ElButtonPlus, wt as ElColPlus, Tt as ElRowPlus, pe as FILE_URL, rr as FormCascaderAsync, Gn as FormCheckBox, qn as FormCheckBoxAsync, Gr as FormCodeEditor, Qn as FormDatePicker, nr as FormDateTimePicker, xr as FormDictSelector, qr as FormDivider, Zr as FormDynamicTable, Xr as FormFieldset, jr as FormFileUpload, kr as FormIconPicker, In as FormInput, Ln as FormInputNumber, Wn as FormRadio, si as FormRender, Bn as FormSelect, Hn as FormSelectAsync, Un as FormSelectRemote, Jn as FormSwitch, ir as FormTableSelect, ar as FormTableSelectAsync, zn as FormText, Rn as FormTextArea, nn as QueryBar, rn as QueryDateTime, an as QueryInput, on as QueryInputLike, sn as QuerySelect, un as QueryTreeFilter, Fn as TableCardRender, Sn as TableCheckBoxAsync, dn as TableInput, pn as TableInputNumber, _n as TableListSelect, yn as TableListSelectAsync, Dn as TableRender, mn as TableSelect, hn as TableSelectAsync, gn as TableSwitch, ra as ToolBar, t as UPLOAD_FILE_URL, de as appRouter, Jt as calculateTimeDifference, Kr as codeLanguages, ii as convertAreaToFieldset, Zi as createDynamicContentDialog, Rt as cryptographicStrength, Gt as customFormatter, Wt as dataFormatter, ga as default, s as defaultPageTableConfig, d as defaultPagination, Xt as emitter, Zt as formCheck, Qt as formValidates, Ut as formatterData, fe as getAppApiCallbacks, p as getAppEmbeddedApiCallbacks, m as getAppInstance, g as getAppTableApiCallbacks, It as getAssetUrl, o as getDatasetApiCallbacks, l as getFileApiCallbacks, f as getFileUrl, v as getFlowRecordApiCallbacks, Ae as getIconifyApiCallbacks, n as getKeliUiConfig, kt as getLabelFromArrayByValue, qt as getLunar, Ft as getRandomString, x as getRegisterComponent, c as getRouterCallback, Yt as getShowFormatDateTime, Kt as getTimeStampAfterNDay, b as getUploadFileUrl, ha as initVxeTableEl, X as isEmpty, zt as isImage, Et as isInArray, Bt as isMail, Z as isNotEmpty, jt as mergeArraysByKey, Q as msgTips, At as omitFieldsFromObjects, Ot as removeValueFromArray, S as setKeliUiConfig, Qi as sleep, Ht as stringList, Vt as timestamp, be as useModuleCache, Dt as valueArrayInArray };
|
|
8076
8098
|
|
|
8077
8099
|
//# sourceMappingURL=keli-ui.js.map
|