@skyfox2000/webui 1.0.2 → 1.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/components/common/button/index.vue.d.ts +0 -1
- package/lib/components/common/icon/appicon.vue.d.ts +0 -1
- package/lib/components/common/icon/fullscreen.vue.d.ts +0 -1
- package/lib/components/common/icon/helper.vue.d.ts +0 -1
- package/lib/components/common/icon/index.vue.d.ts +0 -1
- package/lib/components/common/icon/layoutIcon.vue.d.ts +0 -1
- package/lib/components/common/icon/projectIcon.vue.d.ts +0 -1
- package/lib/components/common/icon/toolIcon.vue.d.ts +0 -1
- package/lib/components/common/index.d.ts +0 -1
- package/lib/components/common/tooltip/index.vue.d.ts +0 -1
- package/lib/components/content/dialog/index.vue.d.ts +0 -1
- package/lib/components/content/drawer/index.vue.d.ts +0 -1
- package/lib/components/content/form/formItem.vue.d.ts +0 -1
- package/lib/components/content/form/index.vue.d.ts +0 -1
- package/lib/components/content/index.d.ts +0 -1
- package/lib/components/content/search/index.vue.d.ts +0 -1
- package/lib/components/content/search/searchItem.vue.d.ts +0 -1
- package/lib/components/content/table/index.vue.d.ts +0 -1
- package/lib/components/content/table/tableOperate.vue.d.ts +0 -1
- package/lib/components/content/toolbar/icontool.vue.d.ts +0 -1
- package/lib/components/content/toolbar/index.vue.d.ts +0 -1
- package/lib/components/content/tree/index.vue.d.ts +0 -1
- package/lib/components/form/aceEditor/aceConfig.d.ts +0 -1
- package/lib/components/form/autoComplete/index.vue.d.ts +0 -1
- package/lib/components/form/cascader/index.vue.d.ts +0 -1
- package/lib/components/form/checkbox/index.vue.d.ts +0 -1
- package/lib/components/form/datePicker/index.vue.d.ts +0 -1
- package/lib/components/form/index.d.ts +0 -1
- package/lib/components/form/input/index.vue.d.ts +0 -1
- package/lib/components/form/input/inputIcon.vue.d.ts +0 -1
- package/lib/components/form/input/inputNumber.vue.d.ts +0 -1
- package/lib/components/form/input/inputPassword.vue.d.ts +0 -1
- package/lib/components/form/propEditor/index.vue.d.ts +0 -1
- package/lib/components/form/radio/index.vue.d.ts +0 -1
- package/lib/components/form/radio/radioStatus.vue.d.ts +0 -1
- package/lib/components/form/rangePicker/index.vue.d.ts +0 -1
- package/lib/components/form/select/index.vue.d.ts +0 -1
- package/lib/components/form/switch/index.vue.d.ts +0 -1
- package/lib/components/form/textarea/index.vue.d.ts +0 -1
- package/lib/components/form/transfer/index.vue.d.ts +0 -1
- package/lib/components/form/transfer/transferTable.vue.d.ts +0 -1
- package/lib/components/form/treeSelect/index.vue.d.ts +0 -1
- package/lib/components/form/upload/uploadList.vue.d.ts +0 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/layout/breadcrumb/index.vue.d.ts +0 -1
- package/lib/components/layout/content/index.vue.d.ts +0 -1
- package/lib/components/layout/datetime/index.vue.d.ts +0 -1
- package/lib/components/layout/header/headerExits.vue.d.ts +0 -1
- package/lib/components/layout/header/index.vue.d.ts +0 -1
- package/lib/components/layout/header/user.vue.d.ts +0 -1
- package/lib/components/layout/index.d.ts +0 -1
- package/lib/components/layout/menu/index.vue.d.ts +0 -1
- package/lib/components/layout/menu/menuTabs.vue.d.ts +0 -1
- package/lib/webui.es.js +655 -645
- package/package.json +3 -3
- package/src/components/content/form/formItem.vue +39 -4
- package/src/components/content/search/index.vue +8 -0
- package/tsconfig.json +1 -1
- package/lib/components/common/button/index.vue.d.ts.map +0 -1
- package/lib/components/common/icon/appicon.vue.d.ts.map +0 -1
- package/lib/components/common/icon/fullscreen.vue.d.ts.map +0 -1
- package/lib/components/common/icon/helper.vue.d.ts.map +0 -1
- package/lib/components/common/icon/index.vue.d.ts.map +0 -1
- package/lib/components/common/icon/layoutIcon.vue.d.ts.map +0 -1
- package/lib/components/common/icon/projectIcon.vue.d.ts.map +0 -1
- package/lib/components/common/icon/toolIcon.vue.d.ts.map +0 -1
- package/lib/components/common/index.d.ts.map +0 -1
- package/lib/components/common/tooltip/index.vue.d.ts.map +0 -1
- package/lib/components/content/dialog/index.vue.d.ts.map +0 -1
- package/lib/components/content/drawer/index.vue.d.ts.map +0 -1
- package/lib/components/content/form/formItem.vue.d.ts.map +0 -1
- package/lib/components/content/form/index.vue.d.ts.map +0 -1
- package/lib/components/content/index.d.ts.map +0 -1
- package/lib/components/content/search/index.vue.d.ts.map +0 -1
- package/lib/components/content/search/searchItem.vue.d.ts.map +0 -1
- package/lib/components/content/table/index.vue.d.ts.map +0 -1
- package/lib/components/content/table/tableOperate.vue.d.ts.map +0 -1
- package/lib/components/content/toolbar/icontool.vue.d.ts.map +0 -1
- package/lib/components/content/toolbar/index.vue.d.ts.map +0 -1
- package/lib/components/content/tree/index.vue.d.ts.map +0 -1
- package/lib/components/form/aceEditor/aceConfig.d.ts.map +0 -1
- package/lib/components/form/autoComplete/index.vue.d.ts.map +0 -1
- package/lib/components/form/cascader/index.vue.d.ts.map +0 -1
- package/lib/components/form/checkbox/index.vue.d.ts.map +0 -1
- package/lib/components/form/datePicker/index.vue.d.ts.map +0 -1
- package/lib/components/form/index.d.ts.map +0 -1
- package/lib/components/form/input/index.vue.d.ts.map +0 -1
- package/lib/components/form/input/inputIcon.vue.d.ts.map +0 -1
- package/lib/components/form/input/inputNumber.vue.d.ts.map +0 -1
- package/lib/components/form/input/inputPassword.vue.d.ts.map +0 -1
- package/lib/components/form/propEditor/index.vue.d.ts.map +0 -1
- package/lib/components/form/radio/index.vue.d.ts.map +0 -1
- package/lib/components/form/radio/radioStatus.vue.d.ts.map +0 -1
- package/lib/components/form/rangePicker/index.vue.d.ts.map +0 -1
- package/lib/components/form/select/index.vue.d.ts.map +0 -1
- package/lib/components/form/switch/index.vue.d.ts.map +0 -1
- package/lib/components/form/textarea/index.vue.d.ts.map +0 -1
- package/lib/components/form/transfer/index.vue.d.ts.map +0 -1
- package/lib/components/form/transfer/transferTable.vue.d.ts.map +0 -1
- package/lib/components/form/treeSelect/index.vue.d.ts.map +0 -1
- package/lib/components/form/upload/uploadList.vue.d.ts.map +0 -1
- package/lib/components/index.d.ts.map +0 -1
- package/lib/components/layout/breadcrumb/index.vue.d.ts.map +0 -1
- package/lib/components/layout/content/index.vue.d.ts.map +0 -1
- package/lib/components/layout/datetime/index.vue.d.ts.map +0 -1
- package/lib/components/layout/header/headerExits.vue.d.ts.map +0 -1
- package/lib/components/layout/header/index.vue.d.ts.map +0 -1
- package/lib/components/layout/header/user.vue.d.ts.map +0 -1
- package/lib/components/layout/index.d.ts.map +0 -1
- package/lib/components/layout/menu/index.vue.d.ts.map +0 -1
- package/lib/components/layout/menu/menuTabs.vue.d.ts.map +0 -1
package/lib/webui.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as Ra } from "./assets/modules/index-D47Ci-T3.js";
|
|
2
|
+
import { _ as z } from "./assets/modules/index-BoKIa2sr.js";
|
|
3
3
|
import { _ as Y } from "./assets/modules/index-BEWJ_qAH.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { defineComponent as
|
|
8
|
-
import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as
|
|
9
|
-
import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, FormItem as Pe, ConfigProvider as me, Popconfirm as
|
|
10
|
-
import { SERVER_HOST as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import
|
|
13
|
-
import { _ as _t, a as ht, b as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
4
|
+
import { a as Qa } from "./assets/modules/index-BEWJ_qAH.js";
|
|
5
|
+
import { _ as j } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
6
|
+
import { a as Va, c as ja, d as Ha, e as Wa, I as Ja, f as Ga, g as Xa, b as Za } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
7
|
+
import { defineComponent as k, createBlock as _, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as g, createElementVNode as T, createVNode as b, mergeProps as F, renderSlot as B, normalizeStyle as ne, toDisplayString as I, createCommentVNode as C, ref as h, provide as _e, watch as $, onMounted as K, createTextVNode as P, inject as ue, resolveDirective as q, withDirectives as V, computed as re, createElementBlock as w, normalizeClass as N, createSlots as he, useSlots as ze, Fragment as M, renderList as L, resolveDynamicComponent as Ke, onUnmounted as xe, onActivated as Oe, withKeys as fe } from "vue";
|
|
8
|
+
import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as Ce, getToolGroup as ke, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as Q, useToolFactory as Ue, getToolByKey as Z, filterColumns as we, onColumnVisibleChanged as Qe, AppRouter as qe, openNewForm as Ve, useInputFactory as O, loadOption as $e, unloadOption as Se, formValidate as U, gridQueryFind as ve, gridQueryList as je, gridStatusUpdate as He, OPTIONS as Te, queryTree as De, OptionCommProps as We, circleLoading as Je, doQuery as Ie } from "@skyfox2000/webbase";
|
|
9
|
+
import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, message as Ze, FormItem as Pe, ConfigProvider as me, Popconfirm as et, Button as Me, DropdownButton as tt, Menu as ie, MenuItem as de, Dropdown as oe, Checkbox as at, Switch as lt, Table as Ne, Tree as rt, Cascader as ot, DatePicker as st, Input as se, InputPassword as nt, InputNumber as ut, RangePicker as it, Textarea as dt, Transfer as ct, TreeSelect as pt, LayoutContent as ft } from "ant-design-vue";
|
|
10
|
+
import { SERVER_HOST as vt, fieldMapping as ee } from "@skyfox2000/fapi";
|
|
11
|
+
import { VueDraggableNext as mt } from "vue-draggable-next";
|
|
12
|
+
import gt from "vue-m-message";
|
|
13
|
+
import { _ as _t, a as ht, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
|
|
14
|
+
import ge from "dayjs";
|
|
15
|
+
import { _ as tl } from "./assets/modules/uploadList-Dzlg47V0.js";
|
|
16
|
+
const ga = /* @__PURE__ */ k({
|
|
17
17
|
__name: "fullscreen",
|
|
18
18
|
setup(v) {
|
|
19
|
-
const
|
|
20
|
-
return (
|
|
19
|
+
const r = ye();
|
|
20
|
+
return (t, a) => (f(), _(Y, {
|
|
21
21
|
onClick: J(e(Ae), ["stop"]),
|
|
22
|
-
icon: e(
|
|
22
|
+
icon: e(r).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
23
23
|
class: "w-[17px] h-[17px]"
|
|
24
24
|
}, null, 8, ["onClick", "icon"]));
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), bt = { class: "ml-2" }, Ct = /* @__PURE__ */ k({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "helper",
|
|
29
29
|
props: {
|
|
@@ -31,28 +31,28 @@ const ma = /* @__PURE__ */ C({
|
|
|
31
31
|
maxWidth: {}
|
|
32
32
|
},
|
|
33
33
|
setup(v) {
|
|
34
|
-
const
|
|
35
|
-
return (
|
|
36
|
-
content:
|
|
37
|
-
|
|
34
|
+
const r = W();
|
|
35
|
+
return (t, a) => (f(), _(e(Ge), { placement: "topRight" }, {
|
|
36
|
+
content: g(() => [
|
|
37
|
+
B(t.$slots, "default", {}, () => [
|
|
38
38
|
T("div", {
|
|
39
39
|
class: "text-[14px]",
|
|
40
|
-
style:
|
|
41
|
-
},
|
|
40
|
+
style: ne({ maxWidth: t.maxWidth })
|
|
41
|
+
}, I(t.text), 5)
|
|
42
42
|
])
|
|
43
43
|
]),
|
|
44
|
-
default:
|
|
45
|
-
T("span",
|
|
46
|
-
b(Y,
|
|
44
|
+
default: g(() => [
|
|
45
|
+
T("span", bt, [
|
|
46
|
+
b(Y, F({
|
|
47
47
|
icon: "icon-question-circle",
|
|
48
48
|
class: "text-[#888] w-4 h-4"
|
|
49
|
-
}, e(
|
|
49
|
+
}, e(r)), null, 16)
|
|
50
50
|
])
|
|
51
51
|
]),
|
|
52
52
|
_: 3
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
|
-
}), _a = /* @__PURE__ */
|
|
55
|
+
}), _a = /* @__PURE__ */ k({
|
|
56
56
|
__name: "layoutIcon",
|
|
57
57
|
props: {
|
|
58
58
|
icon: {
|
|
@@ -63,20 +63,20 @@ const ma = /* @__PURE__ */ C({
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(v) {
|
|
66
|
-
const
|
|
67
|
-
iconUrl: `${
|
|
66
|
+
const r = v, a = Ee({
|
|
67
|
+
iconUrl: `${vt.MICROLAYOUT_ICONS}`,
|
|
68
68
|
monoColor: !0,
|
|
69
|
-
icon:
|
|
70
|
-
icons:
|
|
69
|
+
icon: r.icon,
|
|
70
|
+
icons: r.icons
|
|
71
71
|
});
|
|
72
|
-
return (
|
|
72
|
+
return (o, n) => v.icon || v.icons ? (f(), _(e(a), F({
|
|
73
73
|
key: 0,
|
|
74
74
|
icon: v.icon,
|
|
75
75
|
icons: v.icons,
|
|
76
76
|
class: ["align-middle"]
|
|
77
|
-
},
|
|
77
|
+
}, o.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
|
|
78
78
|
}
|
|
79
|
-
}), kt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ha = /* @__PURE__ */
|
|
79
|
+
}), kt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ha = /* @__PURE__ */ k({
|
|
80
80
|
__name: "index",
|
|
81
81
|
props: {
|
|
82
82
|
saveText: {},
|
|
@@ -85,27 +85,27 @@ const ma = /* @__PURE__ */ C({
|
|
|
85
85
|
editorCtrl: {}
|
|
86
86
|
},
|
|
87
87
|
setup(v) {
|
|
88
|
-
const { useToken:
|
|
89
|
-
|
|
88
|
+
const { useToken: r } = Be, { token: t } = r(), a = h(!1), n = v.editorCtrl;
|
|
89
|
+
_e(X.EditorControl, n), $(
|
|
90
90
|
() => n.visible.value,
|
|
91
91
|
(d) => {
|
|
92
|
-
|
|
92
|
+
a.value = d ?? !1;
|
|
93
93
|
}
|
|
94
|
-
),
|
|
95
|
-
|
|
94
|
+
), K(() => {
|
|
95
|
+
a.value = n.visible.value ?? !1;
|
|
96
96
|
});
|
|
97
|
-
const
|
|
97
|
+
const p = () => {
|
|
98
98
|
ae(n);
|
|
99
99
|
};
|
|
100
|
-
return (d,
|
|
101
|
-
open:
|
|
102
|
-
"onUpdate:open":
|
|
100
|
+
return (d, c) => (f(), _(e(Xe), {
|
|
101
|
+
open: a.value,
|
|
102
|
+
"onUpdate:open": c[4] || (c[4] = (s) => a.value = s),
|
|
103
103
|
"get-container": !1,
|
|
104
104
|
closable: !1,
|
|
105
105
|
"header-style": {
|
|
106
106
|
height: "40px",
|
|
107
107
|
padding: "10px 6px 10px 16px",
|
|
108
|
-
backgroundColor: e(
|
|
108
|
+
backgroundColor: e(t).colorBgLayout
|
|
109
109
|
},
|
|
110
110
|
"body-style": {
|
|
111
111
|
padding: "10px 16px"
|
|
@@ -118,9 +118,9 @@ const ma = /* @__PURE__ */ C({
|
|
|
118
118
|
boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
|
|
119
119
|
},
|
|
120
120
|
width: "420px",
|
|
121
|
-
onClose:
|
|
121
|
+
onClose: p
|
|
122
122
|
}, {
|
|
123
|
-
extra:
|
|
123
|
+
extra: g(() => [
|
|
124
124
|
T("div", kt, [
|
|
125
125
|
b(e(Y), {
|
|
126
126
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
@@ -130,47 +130,47 @@ const ma = /* @__PURE__ */ C({
|
|
|
130
130
|
clickable: "",
|
|
131
131
|
color: "#666",
|
|
132
132
|
position: [0, 0],
|
|
133
|
-
onClick:
|
|
133
|
+
onClick: c[0] || (c[0] = () => e(ae)(e(n)))
|
|
134
134
|
})
|
|
135
135
|
])
|
|
136
136
|
]),
|
|
137
|
-
default:
|
|
138
|
-
|
|
137
|
+
default: g(() => [
|
|
138
|
+
B(d.$slots, "default")
|
|
139
139
|
]),
|
|
140
|
-
footer:
|
|
140
|
+
footer: g(() => [
|
|
141
141
|
b(e(G), null, {
|
|
142
|
-
default:
|
|
143
|
-
d.cancelText !== "" ? (
|
|
142
|
+
default: g(() => [
|
|
143
|
+
d.cancelText !== "" ? (f(), _(e(z), {
|
|
144
144
|
key: 0,
|
|
145
|
-
onClick:
|
|
145
|
+
onClick: c[1] || (c[1] = () => e(ae)(e(n)))
|
|
146
146
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
P(
|
|
147
|
+
default: g(() => [
|
|
148
|
+
P(I(d.cancelText ?? "取消"), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
|
-
})) :
|
|
152
|
-
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (
|
|
151
|
+
})) : C("", !0),
|
|
152
|
+
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), _(e(z), {
|
|
153
153
|
key: 1,
|
|
154
|
-
onClick:
|
|
154
|
+
onClick: c[2] || (c[2] = () => e(Ye)(e(n))),
|
|
155
155
|
type: "primary",
|
|
156
156
|
loading: e(n).isFormSaving.value
|
|
157
157
|
}, {
|
|
158
|
-
default:
|
|
159
|
-
P(
|
|
158
|
+
default: g(() => [
|
|
159
|
+
P(I(d.saveAsText ?? "另存为"), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
|
-
}, 8, ["loading"])) :
|
|
163
|
-
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (
|
|
162
|
+
}, 8, ["loading"])) : C("", !0),
|
|
163
|
+
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), _(e(z), {
|
|
164
164
|
key: 2,
|
|
165
|
-
onClick:
|
|
165
|
+
onClick: c[3] || (c[3] = () => e(be)(e(n))),
|
|
166
166
|
type: "primary",
|
|
167
167
|
loading: e(n).isFormSaving.value
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
P(
|
|
169
|
+
default: g(() => [
|
|
170
|
+
P(I(d.saveText ?? "保存"), 1)
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
173
|
-
}, 8, ["loading"])) :
|
|
173
|
+
}, 8, ["loading"])) : C("", !0)
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
})
|
|
@@ -178,7 +178,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
178
178
|
_: 3
|
|
179
179
|
}, 8, ["open", "header-style"]));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), xa = /* @__PURE__ */ k({
|
|
182
182
|
__name: "index",
|
|
183
183
|
props: {
|
|
184
184
|
labelWidth: {},
|
|
@@ -186,37 +186,37 @@ const ma = /* @__PURE__ */ C({
|
|
|
186
186
|
editorCtrl: {}
|
|
187
187
|
},
|
|
188
188
|
setup(v) {
|
|
189
|
-
const
|
|
190
|
-
return (
|
|
189
|
+
const r = v, t = r.editorCtrl ?? ue(X.EditorControl, void 0);
|
|
190
|
+
return (a, o) => {
|
|
191
191
|
const n = q("submit");
|
|
192
|
-
return
|
|
193
|
-
"label-col": { flex:
|
|
192
|
+
return V((f(), _(e(Fe), {
|
|
193
|
+
"label-col": { flex: r.labelWidth ?? "85px" },
|
|
194
194
|
"wrapper-col": {
|
|
195
|
-
flex:
|
|
195
|
+
flex: r.wrapperWidth ?? "1"
|
|
196
196
|
},
|
|
197
197
|
style: {
|
|
198
198
|
display: "flex",
|
|
199
199
|
flexWrap: "wrap"
|
|
200
200
|
}
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
|
|
202
|
+
default: g(() => [
|
|
203
|
+
B(a.$slots, "default")
|
|
204
204
|
]),
|
|
205
205
|
_: 3
|
|
206
206
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
207
207
|
[
|
|
208
208
|
n,
|
|
209
209
|
() => {
|
|
210
|
-
e(
|
|
210
|
+
e(t) && e(be)(e(t));
|
|
211
211
|
}
|
|
212
212
|
]
|
|
213
213
|
]);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), wt = { class: "w-full flex items-center" }, $t = { class: "flex-grow" }, St = { class: "w-8 mt-[-2px]" }, Tt = {
|
|
217
217
|
key: 1,
|
|
218
218
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
219
|
-
},
|
|
219
|
+
}, ya = /* @__PURE__ */ k({
|
|
220
220
|
inheritAttrs: !1,
|
|
221
221
|
__name: "formItem",
|
|
222
222
|
props: {
|
|
@@ -226,51 +226,61 @@ const ma = /* @__PURE__ */ C({
|
|
|
226
226
|
width: {}
|
|
227
227
|
},
|
|
228
228
|
setup(v) {
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const r = v, t = W(), a = ue(X.EditorControl, void 0), o = Ce(r, a), n = h(!1);
|
|
230
|
+
setTimeout(() => {
|
|
231
231
|
n.value = !0;
|
|
232
|
-
}, 30)
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
232
|
+
}, 30);
|
|
233
|
+
const p = (c, s) => {
|
|
234
|
+
if (!s)
|
|
235
|
+
return;
|
|
236
|
+
const [u, ...l] = c;
|
|
237
|
+
return c.length === 1 ? s[u] : p(l, s[u].fields);
|
|
238
|
+
}, d = re(() => {
|
|
239
|
+
var s;
|
|
240
|
+
if (!r.rule)
|
|
241
|
+
return !1;
|
|
242
|
+
const c = p(r.rule.split("."), (s = a == null ? void 0 : a.formRules) == null ? void 0 : s.value);
|
|
243
|
+
return c ? c.required ?? !0 : (Ze.error(`"${r.label}" 的验证规则 \`${r.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${r.rule}\` 不存在,请检查代码!`, !0);
|
|
244
|
+
});
|
|
245
|
+
return (c, s) => (f(), w("div", {
|
|
246
|
+
class: N(["w-full relative mb-1", c.width])
|
|
247
|
+
}, [
|
|
248
|
+
n.value ? (f(), _(e(Pe), F({
|
|
249
|
+
key: 0,
|
|
250
|
+
required: d.value,
|
|
251
|
+
class: "!w-[95%] relative"
|
|
252
|
+
}, e(t), {
|
|
253
|
+
class: [c.rule ? "" : "mb-3"]
|
|
254
|
+
}), {
|
|
255
|
+
label: g(() => [
|
|
256
|
+
T("span", {
|
|
257
|
+
class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
258
|
+
}, I(c.label), 3)
|
|
259
|
+
]),
|
|
260
|
+
default: g(() => [
|
|
261
|
+
T("div", wt, [
|
|
262
|
+
T("div", $t, [
|
|
263
|
+
B(c.$slots, "default")
|
|
264
|
+
]),
|
|
265
|
+
T("div", St, [
|
|
266
|
+
B(c.$slots, "helper", {}, () => [
|
|
267
|
+
c.helper ? (f(), _(e(Ct), {
|
|
268
|
+
key: 0,
|
|
269
|
+
text: c.helper
|
|
270
|
+
}, null, 8, ["text"])) : C("", !0)
|
|
261
271
|
])
|
|
262
272
|
])
|
|
263
|
-
])
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
273
|
+
])
|
|
274
|
+
]),
|
|
275
|
+
_: 3
|
|
276
|
+
}, 16, ["required", "class"])) : C("", !0),
|
|
277
|
+
e(o).errClass ? (f(), w("span", Tt, I(e(o).msg), 1)) : C("", !0)
|
|
278
|
+
], 2));
|
|
269
279
|
}
|
|
270
|
-
}),
|
|
280
|
+
}), Dt = { class: "w-1/3 relative mb-1" }, It = { class: "flex items-center" }, Bt = { class: "flex-grow pl-1" }, Ft = {
|
|
271
281
|
key: 0,
|
|
272
282
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
273
|
-
}, le = /* @__PURE__ */
|
|
283
|
+
}, le = /* @__PURE__ */ k({
|
|
274
284
|
inheritAttrs: !1,
|
|
275
285
|
__name: "searchItem",
|
|
276
286
|
props: {
|
|
@@ -279,19 +289,19 @@ const ma = /* @__PURE__ */ C({
|
|
|
279
289
|
rule: {}
|
|
280
290
|
},
|
|
281
291
|
setup(v) {
|
|
282
|
-
const
|
|
283
|
-
return (n,
|
|
284
|
-
b(e(Pe),
|
|
292
|
+
const r = v, t = W(), a = ue(X.EditorControl, void 0), o = Ce(r, a);
|
|
293
|
+
return (n, p) => (f(), w("div", Dt, [
|
|
294
|
+
b(e(Pe), F({
|
|
285
295
|
required: n.rule !== void 0,
|
|
286
296
|
class: "w-[90%] relative"
|
|
287
|
-
}, e(
|
|
297
|
+
}, e(t), {
|
|
288
298
|
class: [n.rule ? "" : "mb-3", n.width],
|
|
289
299
|
labelCol: { span: 6 }
|
|
290
|
-
}),
|
|
291
|
-
default:
|
|
292
|
-
T("div",
|
|
293
|
-
T("div",
|
|
294
|
-
|
|
300
|
+
}), he({
|
|
301
|
+
default: g(() => [
|
|
302
|
+
T("div", It, [
|
|
303
|
+
T("div", Bt, [
|
|
304
|
+
B(n.$slots, "default")
|
|
295
305
|
])
|
|
296
306
|
])
|
|
297
307
|
]),
|
|
@@ -299,18 +309,18 @@ const ma = /* @__PURE__ */ C({
|
|
|
299
309
|
}, [
|
|
300
310
|
n.label ? {
|
|
301
311
|
name: "label",
|
|
302
|
-
fn:
|
|
312
|
+
fn: g(() => [
|
|
303
313
|
T("span", {
|
|
304
|
-
class: N([e(
|
|
305
|
-
},
|
|
314
|
+
class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
315
|
+
}, I(n.label), 3)
|
|
306
316
|
]),
|
|
307
317
|
key: "0"
|
|
308
318
|
} : void 0
|
|
309
319
|
]), 1040, ["required", "class"]),
|
|
310
|
-
e(
|
|
320
|
+
e(o).msg ? (f(), w("span", Ft, I(e(o).msg), 1)) : C("", !0)
|
|
311
321
|
]));
|
|
312
322
|
}
|
|
313
|
-
}),
|
|
323
|
+
}), ba = /* @__PURE__ */ k({
|
|
314
324
|
__name: "index",
|
|
315
325
|
props: {
|
|
316
326
|
search: {},
|
|
@@ -318,56 +328,56 @@ const ma = /* @__PURE__ */ C({
|
|
|
318
328
|
likeFields: {}
|
|
319
329
|
},
|
|
320
330
|
emits: ["update:search"],
|
|
321
|
-
setup(v, { emit:
|
|
322
|
-
const
|
|
331
|
+
setup(v, { emit: r }) {
|
|
332
|
+
const t = v, a = r, o = h(0), n = h(0), p = h(0), d = (m) => {
|
|
323
333
|
let x = 0;
|
|
324
334
|
for (let S = 0; S < m.length; S++)
|
|
325
335
|
typeof m[S].type == "object" && x++;
|
|
326
336
|
return x;
|
|
327
|
-
},
|
|
328
|
-
n.value = 0,
|
|
337
|
+
}, c = ze(), s = () => {
|
|
338
|
+
n.value = 0, p.value = 0, c.default && (n.value = d(c.default({}))), t.gridCtrl.searchBar && c.control && (p.value = d(c.control({}))), o.value = 2 - (n.value + p.value) % 3;
|
|
329
339
|
};
|
|
330
340
|
$(
|
|
331
|
-
() =>
|
|
341
|
+
() => t.gridCtrl.searchBar,
|
|
332
342
|
() => {
|
|
333
343
|
s();
|
|
334
344
|
}
|
|
335
345
|
);
|
|
336
|
-
const u = JSON.parse(JSON.stringify(
|
|
337
|
-
|
|
346
|
+
const u = JSON.parse(JSON.stringify(t.search));
|
|
347
|
+
K(() => {
|
|
338
348
|
var x;
|
|
339
349
|
s();
|
|
340
|
-
let m = { ...
|
|
341
|
-
|
|
342
|
-
...
|
|
350
|
+
let m = { ...t.search };
|
|
351
|
+
t.gridCtrl.gridQuery = {
|
|
352
|
+
...t.gridCtrl.gridQuery,
|
|
343
353
|
Query: {
|
|
344
|
-
...(x =
|
|
354
|
+
...(x = t.gridCtrl.gridQuery) == null ? void 0 : x.Query,
|
|
345
355
|
...m
|
|
346
356
|
}
|
|
347
357
|
};
|
|
348
358
|
});
|
|
349
359
|
const l = () => {
|
|
350
|
-
var x;
|
|
351
|
-
let m = { ...
|
|
352
|
-
if (
|
|
353
|
-
for (const
|
|
354
|
-
m[
|
|
355
|
-
|
|
356
|
-
...
|
|
360
|
+
var x, S;
|
|
361
|
+
let m = { ...t.search };
|
|
362
|
+
if (t.likeFields)
|
|
363
|
+
for (const D of t.likeFields)
|
|
364
|
+
m[D] && (m[D] = { $like: "%" + m[D] + "%" });
|
|
365
|
+
t.gridCtrl.gridQuery = {
|
|
366
|
+
...t.gridCtrl.gridQuery,
|
|
357
367
|
Query: {
|
|
358
|
-
...(x =
|
|
368
|
+
...(x = t.gridCtrl.gridQuery) == null ? void 0 : x.Query,
|
|
359
369
|
...m
|
|
360
370
|
}
|
|
361
|
-
},
|
|
371
|
+
}, (S = t.gridCtrl.gridQuery.Query) != null && S.$limit && (t.gridCtrl.pageNo.value = 1, t.gridCtrl.gridQuery.Query.$limit = [0, t.gridCtrl.pageSize.value]), t.gridCtrl.reload.value = !0;
|
|
362
372
|
}, i = () => {
|
|
363
373
|
const m = JSON.parse(JSON.stringify(u));
|
|
364
|
-
for (const x in
|
|
374
|
+
for (const x in t.search)
|
|
365
375
|
m[x] === void 0 && (m[x] = void 0);
|
|
366
|
-
|
|
376
|
+
a("update:search", m);
|
|
367
377
|
};
|
|
368
378
|
return (m, x) => {
|
|
369
379
|
const S = q("submit");
|
|
370
|
-
return n.value +
|
|
380
|
+
return n.value + p.value > 0 ? V((f(), _(e(Fe), {
|
|
371
381
|
key: 0,
|
|
372
382
|
"label-col": { flex: "60px" },
|
|
373
383
|
style: {
|
|
@@ -376,41 +386,41 @@ const ma = /* @__PURE__ */ C({
|
|
|
376
386
|
},
|
|
377
387
|
class: "flex mb-[10px]"
|
|
378
388
|
}, {
|
|
379
|
-
default:
|
|
380
|
-
|
|
381
|
-
m.gridCtrl.searchBar ?
|
|
382
|
-
|
|
389
|
+
default: g(() => [
|
|
390
|
+
B(m.$slots, "default"),
|
|
391
|
+
m.gridCtrl.searchBar ? B(m.$slots, "control", { key: 0 }) : C("", !0),
|
|
392
|
+
o.value >= 1 ? (f(), _(le, {
|
|
383
393
|
key: 1,
|
|
384
394
|
class: "w-1/3"
|
|
385
|
-
})) :
|
|
386
|
-
|
|
395
|
+
})) : C("", !0),
|
|
396
|
+
o.value >= 2 ? (f(), _(le, {
|
|
387
397
|
key: 2,
|
|
388
398
|
class: "w-1/3"
|
|
389
|
-
})) :
|
|
390
|
-
n.value || m.gridCtrl.searchBar ? (
|
|
399
|
+
})) : C("", !0),
|
|
400
|
+
n.value || m.gridCtrl.searchBar ? (f(), _(le, {
|
|
391
401
|
key: 3,
|
|
392
402
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
393
403
|
"wrapper-col": { flex: "auto" }
|
|
394
404
|
}, {
|
|
395
|
-
default:
|
|
405
|
+
default: g(() => [
|
|
396
406
|
b(e(G), null, {
|
|
397
|
-
default:
|
|
398
|
-
b(e(
|
|
407
|
+
default: g(() => [
|
|
408
|
+
b(e(z), {
|
|
399
409
|
type: "primary",
|
|
400
410
|
onClick: l,
|
|
401
411
|
icon: "icon-search"
|
|
402
412
|
}, {
|
|
403
|
-
default:
|
|
413
|
+
default: g(() => x[0] || (x[0] = [
|
|
404
414
|
P("搜索")
|
|
405
415
|
])),
|
|
406
416
|
_: 1,
|
|
407
417
|
__: [0]
|
|
408
418
|
}),
|
|
409
|
-
b(e(
|
|
419
|
+
b(e(z), {
|
|
410
420
|
onClick: i,
|
|
411
421
|
icon: "icon-reset"
|
|
412
422
|
}, {
|
|
413
|
-
default:
|
|
423
|
+
default: g(() => x[1] || (x[1] = [
|
|
414
424
|
P("重置")
|
|
415
425
|
])),
|
|
416
426
|
_: 1,
|
|
@@ -421,29 +431,29 @@ const ma = /* @__PURE__ */ C({
|
|
|
421
431
|
})
|
|
422
432
|
]),
|
|
423
433
|
_: 1
|
|
424
|
-
})) :
|
|
434
|
+
})) : C("", !0)
|
|
425
435
|
]),
|
|
426
436
|
_: 3
|
|
427
437
|
})), [
|
|
428
438
|
[S, l]
|
|
429
|
-
]) :
|
|
439
|
+
]) : C("", !0);
|
|
430
440
|
};
|
|
431
441
|
}
|
|
432
|
-
}),
|
|
442
|
+
}), Pt = /* @__PURE__ */ k({
|
|
433
443
|
__name: "tableOperate",
|
|
434
444
|
props: {
|
|
435
445
|
record: {},
|
|
436
446
|
gridCtrl: {}
|
|
437
447
|
},
|
|
438
448
|
setup(v) {
|
|
439
|
-
const
|
|
449
|
+
const r = v, t = r.gridCtrl, a = [
|
|
440
450
|
{
|
|
441
451
|
key: "Edit",
|
|
442
452
|
label: "编辑",
|
|
443
453
|
type: "primary",
|
|
444
454
|
visible: !0,
|
|
445
455
|
permit: ":edit",
|
|
446
|
-
click: () => Le(
|
|
456
|
+
click: () => Le(t, r.record)
|
|
447
457
|
},
|
|
448
458
|
{
|
|
449
459
|
key: "Delete",
|
|
@@ -454,111 +464,111 @@ const ma = /* @__PURE__ */ C({
|
|
|
454
464
|
permit: ":delete",
|
|
455
465
|
confirm: !0,
|
|
456
466
|
confirmText: "是否删除此记录?",
|
|
457
|
-
click: () => Re(
|
|
467
|
+
click: () => Re(t, r.record)
|
|
458
468
|
}
|
|
459
|
-
], { buttons:
|
|
469
|
+
], { buttons: o, menus: n } = ke(a, 0, t.operates), p = (d) => {
|
|
460
470
|
if (typeof d.disabled == "boolean")
|
|
461
471
|
return d.disabled;
|
|
462
472
|
if (typeof d.disabled == "function")
|
|
463
|
-
return
|
|
464
|
-
if (
|
|
473
|
+
return Q(d, r.record) ?? !1;
|
|
474
|
+
if (r.record.hasOwnProperty("Enabled"))
|
|
465
475
|
switch (d.key) {
|
|
466
476
|
case "Edit":
|
|
467
|
-
return !
|
|
477
|
+
return !r.record.Enabled;
|
|
468
478
|
case "Delete":
|
|
469
|
-
return !!
|
|
479
|
+
return !!r.record.Enabled;
|
|
470
480
|
}
|
|
471
481
|
return !1;
|
|
472
482
|
};
|
|
473
|
-
return (d,
|
|
483
|
+
return (d, c) => {
|
|
474
484
|
const s = q("role"), u = q("permit");
|
|
475
|
-
return
|
|
485
|
+
return f(), _(e(me), { theme: {
|
|
476
486
|
token: {
|
|
477
487
|
fontSize: 13
|
|
478
488
|
}
|
|
479
489
|
} }, {
|
|
480
|
-
default:
|
|
490
|
+
default: g(() => [
|
|
481
491
|
b(e(G), null, {
|
|
482
|
-
default:
|
|
483
|
-
(
|
|
492
|
+
default: g(() => [
|
|
493
|
+
(f(!0), w(M, null, L(e(o), (l) => (f(), w(M, {
|
|
484
494
|
key: l.key
|
|
485
495
|
}, [
|
|
486
|
-
e(H)(l,
|
|
496
|
+
e(H)(l, r.record) ? (f(), _(e(et), {
|
|
487
497
|
key: 0,
|
|
488
|
-
disabled:
|
|
498
|
+
disabled: p(l) || !l.confirm,
|
|
489
499
|
cancelText: "否",
|
|
490
500
|
okText: "是",
|
|
491
501
|
title: l.confirmText,
|
|
492
502
|
okButtonProps: { size: "small" },
|
|
493
503
|
cancelButtonProps: { size: "small" },
|
|
494
|
-
onConfirm: (i) => e(R)(l, e(
|
|
504
|
+
onConfirm: (i) => e(R)(l, e(t).page, e(t), r.record, !0)
|
|
495
505
|
}, {
|
|
496
|
-
default:
|
|
497
|
-
e(H)(l,
|
|
506
|
+
default: g(() => [
|
|
507
|
+
e(H)(l, r.record) ? V((f(), _(e(Me), {
|
|
498
508
|
key: l.key,
|
|
499
509
|
type: l.type ?? "text",
|
|
500
510
|
danger: l.danger,
|
|
501
|
-
disabled:
|
|
502
|
-
onClick: (i) => e(R)(l, e(
|
|
511
|
+
disabled: p(l),
|
|
512
|
+
onClick: (i) => e(R)(l, e(t).page, e(t), r.record),
|
|
503
513
|
size: "small",
|
|
504
|
-
style:
|
|
514
|
+
style: ne({
|
|
505
515
|
padding: l.type ?? "0px 4px"
|
|
506
516
|
})
|
|
507
517
|
}, {
|
|
508
|
-
default:
|
|
509
|
-
P(
|
|
518
|
+
default: g(() => [
|
|
519
|
+
P(I(l.label), 1)
|
|
510
520
|
]),
|
|
511
521
|
_: 2
|
|
512
522
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
513
523
|
[s, l.role],
|
|
514
524
|
[u, l.permit]
|
|
515
|
-
]) :
|
|
525
|
+
]) : C("", !0)
|
|
516
526
|
]),
|
|
517
527
|
_: 2
|
|
518
|
-
}, 1032, ["disabled", "title", "onConfirm"])) :
|
|
528
|
+
}, 1032, ["disabled", "title", "onConfirm"])) : C("", !0)
|
|
519
529
|
], 64))), 128)),
|
|
520
|
-
d.record.Enabled == 1 ? (
|
|
530
|
+
d.record.Enabled == 1 ? (f(), _(e(me), {
|
|
521
531
|
key: 0,
|
|
522
532
|
autoInsertSpaceInButton: !1
|
|
523
533
|
}, {
|
|
524
|
-
default:
|
|
525
|
-
e(n).length > 0 ? (
|
|
534
|
+
default: g(() => [
|
|
535
|
+
e(n).length > 0 ? (f(), _(e(tt), {
|
|
526
536
|
key: 0,
|
|
527
537
|
size: "small"
|
|
528
538
|
}, {
|
|
529
|
-
overlay:
|
|
530
|
-
b(e(
|
|
531
|
-
default:
|
|
532
|
-
(
|
|
539
|
+
overlay: g(() => [
|
|
540
|
+
b(e(ie), null, {
|
|
541
|
+
default: g(() => [
|
|
542
|
+
(f(!0), w(M, null, L(e(n), (l) => (f(), w(M, {
|
|
533
543
|
key: l.key
|
|
534
544
|
}, [
|
|
535
|
-
e(H)(l,
|
|
545
|
+
e(H)(l, r.record) ? V((f(), _(e(de), {
|
|
536
546
|
key: 0,
|
|
537
|
-
disabled:
|
|
538
|
-
onClick: (i) => e(R)(l, e(
|
|
547
|
+
disabled: p(l),
|
|
548
|
+
onClick: (i) => e(R)(l, e(t).page, e(t), r.record)
|
|
539
549
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
P(
|
|
550
|
+
default: g(() => [
|
|
551
|
+
P(I(l.label), 1)
|
|
542
552
|
]),
|
|
543
553
|
_: 2
|
|
544
554
|
}, 1032, ["disabled", "onClick"])), [
|
|
545
555
|
[s, l.role],
|
|
546
556
|
[u, l.permit]
|
|
547
|
-
]) :
|
|
557
|
+
]) : C("", !0)
|
|
548
558
|
], 64))), 128))
|
|
549
559
|
]),
|
|
550
560
|
_: 1
|
|
551
561
|
})
|
|
552
562
|
]),
|
|
553
|
-
default:
|
|
554
|
-
|
|
563
|
+
default: g(() => [
|
|
564
|
+
c[0] || (c[0] = P(" 更多 "))
|
|
555
565
|
]),
|
|
556
566
|
_: 1,
|
|
557
567
|
__: [0]
|
|
558
|
-
})) :
|
|
568
|
+
})) : C("", !0)
|
|
559
569
|
]),
|
|
560
570
|
_: 1
|
|
561
|
-
})) :
|
|
571
|
+
})) : C("", !0)
|
|
562
572
|
]),
|
|
563
573
|
_: 1
|
|
564
574
|
})
|
|
@@ -567,92 +577,92 @@ const ma = /* @__PURE__ */ C({
|
|
|
567
577
|
});
|
|
568
578
|
};
|
|
569
579
|
}
|
|
570
|
-
}),
|
|
580
|
+
}), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Nt = /* @__PURE__ */ k({
|
|
571
581
|
__name: "icontool",
|
|
572
582
|
props: {
|
|
573
583
|
gridCtrl: {}
|
|
574
584
|
},
|
|
575
585
|
setup(v) {
|
|
576
|
-
const
|
|
586
|
+
const r = v, t = r.gridCtrl, { tools: a } = Ue(r.gridCtrl), o = ye();
|
|
577
587
|
$(
|
|
578
|
-
() =>
|
|
588
|
+
() => t.selectable.value,
|
|
579
589
|
(d) => {
|
|
580
|
-
Z(
|
|
590
|
+
Z(a, "tool.export.excel.selected") && (Z(a, "tool.export.excel.selected").disabled = !d), Z(a, "tool.export.pdf.selected") && (Z(a, "tool.export.pdf.selected").disabled = !d);
|
|
581
591
|
}
|
|
582
592
|
);
|
|
583
|
-
const n =
|
|
593
|
+
const n = h([]);
|
|
584
594
|
$(
|
|
585
|
-
() =>
|
|
595
|
+
() => t.columns.value,
|
|
586
596
|
(d) => {
|
|
587
597
|
n.value = we(d, !0);
|
|
588
598
|
},
|
|
589
599
|
{ deep: !0, immediate: !0 }
|
|
590
600
|
);
|
|
591
|
-
const
|
|
592
|
-
|
|
601
|
+
const p = () => {
|
|
602
|
+
t.columns.value.splice(0, t.columns.value.length, ...n.value), o.setTableColumns(qe.currentRoute.value.path, t.columns.value);
|
|
593
603
|
};
|
|
594
|
-
return (d,
|
|
595
|
-
(
|
|
604
|
+
return (d, c) => (f(), w("div", Mt, [
|
|
605
|
+
(f(!0), w(M, null, L(e(a), (s, u) => (f(), w(M, {
|
|
596
606
|
key: s.key
|
|
597
607
|
}, [
|
|
598
|
-
e(H)(s) && s.dropdown ? (
|
|
608
|
+
e(H)(s) && s.dropdown ? (f(), _(e(oe), {
|
|
599
609
|
key: 0,
|
|
600
610
|
placement: "bottomRight",
|
|
601
611
|
class: "p-0 rounded-none"
|
|
602
612
|
}, {
|
|
603
|
-
overlay:
|
|
613
|
+
overlay: g(() => [
|
|
604
614
|
T("div", {
|
|
605
615
|
class: N(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
|
|
606
616
|
}, [
|
|
607
|
-
s.dropdown === "headset" ? (
|
|
617
|
+
s.dropdown === "headset" ? (f(), _(e(mt), {
|
|
608
618
|
key: 0,
|
|
609
619
|
modelValue: n.value,
|
|
610
|
-
"onUpdate:modelValue":
|
|
620
|
+
"onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
|
|
611
621
|
"item-key": "dataIndex",
|
|
612
|
-
onEnd:
|
|
622
|
+
onEnd: p,
|
|
613
623
|
handle: ".drag-handle"
|
|
614
624
|
}, {
|
|
615
|
-
default:
|
|
616
|
-
(
|
|
625
|
+
default: g(() => [
|
|
626
|
+
(f(!0), w(M, null, L(n.value, (l) => (f(), w("div", {
|
|
617
627
|
key: l.name,
|
|
618
|
-
onClick:
|
|
628
|
+
onClick: c[0] || (c[0] = J(() => {
|
|
619
629
|
}, ["stop"])),
|
|
620
630
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
621
631
|
}, [
|
|
622
|
-
|
|
623
|
-
b(e(
|
|
632
|
+
c[2] || (c[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
633
|
+
b(e(at), {
|
|
624
634
|
checked: l.visible !== !1,
|
|
625
635
|
onChange: J(
|
|
626
636
|
(i) => {
|
|
627
|
-
e(
|
|
637
|
+
e(Qe)(l, i.target.checked);
|
|
628
638
|
},
|
|
629
639
|
["stop", "prevent"]
|
|
630
640
|
),
|
|
631
641
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
632
642
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
P(
|
|
643
|
+
default: g(() => [
|
|
644
|
+
P(I(l.title), 1)
|
|
635
645
|
]),
|
|
636
646
|
_: 2
|
|
637
647
|
}, 1032, ["checked", "onChange"])
|
|
638
648
|
]))), 128))
|
|
639
649
|
]),
|
|
640
650
|
_: 1
|
|
641
|
-
}, 8, ["modelValue"])) :
|
|
651
|
+
}, 8, ["modelValue"])) : C("", !0)
|
|
642
652
|
], 2)
|
|
643
653
|
]),
|
|
644
|
-
default:
|
|
645
|
-
b(e(
|
|
654
|
+
default: g(() => [
|
|
655
|
+
b(e(z), {
|
|
646
656
|
class: N([
|
|
647
657
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
648
658
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
649
|
-
u === e(
|
|
659
|
+
u === e(a).length - 1 ? "rounded-r-[5px]" : ""
|
|
650
660
|
]),
|
|
651
|
-
disabled: e(
|
|
661
|
+
disabled: e(Q)(s),
|
|
652
662
|
tiptext: s.label,
|
|
653
|
-
onClick: (l) => e(R)(s, e(
|
|
663
|
+
onClick: (l) => e(R)(s, e(t).page, e(t))
|
|
654
664
|
}, {
|
|
655
|
-
default:
|
|
665
|
+
default: g(() => [
|
|
656
666
|
b(e(Y), {
|
|
657
667
|
icon: s.icon,
|
|
658
668
|
class: "w-[18px] h-[18.5px]",
|
|
@@ -663,18 +673,18 @@ const ma = /* @__PURE__ */ C({
|
|
|
663
673
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
664
674
|
]),
|
|
665
675
|
_: 2
|
|
666
|
-
}, 1024)) : !s.children && e(H)(s) ? (
|
|
676
|
+
}, 1024)) : !s.children && e(H)(s) ? (f(), _(e(z), {
|
|
667
677
|
key: 1,
|
|
668
678
|
class: N([
|
|
669
679
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
670
680
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
671
|
-
u === e(
|
|
681
|
+
u === e(a).length - 1 ? "rounded-r-[5px]" : ""
|
|
672
682
|
]),
|
|
673
|
-
disabled: e(
|
|
683
|
+
disabled: e(Q)(s),
|
|
674
684
|
tiptext: s.label,
|
|
675
|
-
onClick: (l) => e(R)(s, e(
|
|
685
|
+
onClick: (l) => e(R)(s, e(t).page, e(t))
|
|
676
686
|
}, {
|
|
677
|
-
default:
|
|
687
|
+
default: g(() => [
|
|
678
688
|
b(e(Y), {
|
|
679
689
|
icon: s.icon,
|
|
680
690
|
class: "w-[18px] h-[18.5px]",
|
|
@@ -682,20 +692,20 @@ const ma = /* @__PURE__ */ C({
|
|
|
682
692
|
}, null, 8, ["icon"])
|
|
683
693
|
]),
|
|
684
694
|
_: 2
|
|
685
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (
|
|
695
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(), _(e(oe), {
|
|
686
696
|
key: 2,
|
|
687
697
|
placement: "bottomRight",
|
|
688
698
|
class: "p-0 rounded-none"
|
|
689
699
|
}, {
|
|
690
|
-
overlay:
|
|
691
|
-
b(e(
|
|
692
|
-
default:
|
|
693
|
-
(
|
|
700
|
+
overlay: g(() => [
|
|
701
|
+
b(e(ie), null, {
|
|
702
|
+
default: g(() => [
|
|
703
|
+
(f(!0), w(M, null, L(s.children, (l) => (f(), _(e(de), {
|
|
694
704
|
key: l.key,
|
|
695
|
-
disabled: e(
|
|
705
|
+
disabled: e(Q)(l)
|
|
696
706
|
}, {
|
|
697
|
-
default:
|
|
698
|
-
P(
|
|
707
|
+
default: g(() => [
|
|
708
|
+
P(I(l.label), 1)
|
|
699
709
|
]),
|
|
700
710
|
_: 2
|
|
701
711
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -703,19 +713,19 @@ const ma = /* @__PURE__ */ C({
|
|
|
703
713
|
_: 2
|
|
704
714
|
}, 1024)
|
|
705
715
|
]),
|
|
706
|
-
default:
|
|
707
|
-
b(e(
|
|
716
|
+
default: g(() => [
|
|
717
|
+
b(e(z), {
|
|
708
718
|
class: N([
|
|
709
719
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
710
720
|
u === 0 ? "rounded-l-[5px]" : ""
|
|
711
721
|
]),
|
|
712
|
-
disabled: e(
|
|
722
|
+
disabled: e(Q)(s),
|
|
713
723
|
tiptext: s.label,
|
|
714
724
|
icon: s.icon,
|
|
715
725
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
716
|
-
onClick: (l) => e(R)(s, e(
|
|
726
|
+
onClick: (l) => e(R)(s, e(t).page, e(t))
|
|
717
727
|
}, {
|
|
718
|
-
default:
|
|
728
|
+
default: g(() => [
|
|
719
729
|
b(e(Y), {
|
|
720
730
|
icon: "icon-down-arrow",
|
|
721
731
|
class: "w-[12px] h-[12px]"
|
|
@@ -725,18 +735,18 @@ const ma = /* @__PURE__ */ C({
|
|
|
725
735
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
726
736
|
]),
|
|
727
737
|
_: 2
|
|
728
|
-
}, 1024)) :
|
|
738
|
+
}, 1024)) : C("", !0)
|
|
729
739
|
], 64))), 128))
|
|
730
740
|
]));
|
|
731
741
|
}
|
|
732
|
-
}),
|
|
742
|
+
}), zt = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, At = /* @__PURE__ */ k({
|
|
733
743
|
__name: "index",
|
|
734
744
|
props: {
|
|
735
745
|
gridCtrl: {},
|
|
736
746
|
editorCtrl: {}
|
|
737
747
|
},
|
|
738
748
|
setup(v) {
|
|
739
|
-
const
|
|
749
|
+
const r = v, t = r.gridCtrl, a = t.page, o = r.editorCtrl, n = [
|
|
740
750
|
{
|
|
741
751
|
key: "New",
|
|
742
752
|
label: "新增",
|
|
@@ -745,59 +755,59 @@ const ma = /* @__PURE__ */ C({
|
|
|
745
755
|
danger: !0,
|
|
746
756
|
permit: ":new",
|
|
747
757
|
// 默认仅受权限码控制
|
|
748
|
-
click: () =>
|
|
758
|
+
click: () => Ve(o)
|
|
749
759
|
}
|
|
750
|
-
],
|
|
760
|
+
], p = h([]), d = h([]);
|
|
751
761
|
return $(
|
|
752
762
|
() => {
|
|
753
|
-
var
|
|
754
|
-
return (
|
|
763
|
+
var c;
|
|
764
|
+
return (c = t.buttons) == null ? void 0 : c.value;
|
|
755
765
|
},
|
|
756
766
|
() => {
|
|
757
767
|
var u;
|
|
758
|
-
const { buttons:
|
|
768
|
+
const { buttons: c, menus: s } = ke(
|
|
759
769
|
n,
|
|
760
|
-
|
|
761
|
-
(u =
|
|
770
|
+
t.flat !== void 0 ? t.flat : Ot,
|
|
771
|
+
(u = t.buttons) == null ? void 0 : u.value
|
|
762
772
|
);
|
|
763
|
-
|
|
773
|
+
p.value.splice(0, p.value.length, ...c), d.value.splice(0, d.value.length, ...s);
|
|
764
774
|
},
|
|
765
775
|
{
|
|
766
776
|
deep: !0,
|
|
767
777
|
immediate: !0
|
|
768
778
|
}
|
|
769
|
-
), (
|
|
779
|
+
), (c, s) => {
|
|
770
780
|
const u = q("role"), l = q("permit");
|
|
771
|
-
return
|
|
781
|
+
return f(), w("div", zt, [
|
|
772
782
|
b(e(G), null, {
|
|
773
|
-
default:
|
|
774
|
-
(
|
|
783
|
+
default: g(() => [
|
|
784
|
+
(f(!0), w(M, null, L(p.value, (i) => V((f(), _(e(z), {
|
|
775
785
|
key: i.key,
|
|
776
786
|
type: i.type,
|
|
777
787
|
danger: i.danger,
|
|
778
|
-
disabled: e(
|
|
788
|
+
disabled: e(Q)(i),
|
|
779
789
|
icon: i.icon,
|
|
780
|
-
onClick: (m) => e(R)(i, e(
|
|
790
|
+
onClick: (m) => e(R)(i, e(a), e(t))
|
|
781
791
|
}, {
|
|
782
|
-
default:
|
|
783
|
-
P(
|
|
792
|
+
default: g(() => [
|
|
793
|
+
P(I(i.label), 1)
|
|
784
794
|
]),
|
|
785
795
|
_: 2
|
|
786
796
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
787
797
|
[u, i.role],
|
|
788
798
|
[l, i.permit]
|
|
789
799
|
])), 128)),
|
|
790
|
-
d.value.length > 0 ? (
|
|
791
|
-
overlay:
|
|
792
|
-
b(e(
|
|
793
|
-
default:
|
|
794
|
-
(
|
|
800
|
+
d.value.length > 0 ? (f(), _(e(oe), { key: 0 }, {
|
|
801
|
+
overlay: g(() => [
|
|
802
|
+
b(e(ie), null, {
|
|
803
|
+
default: g(() => [
|
|
804
|
+
(f(!0), w(M, null, L(d.value, (i) => V((f(), _(e(de), {
|
|
795
805
|
key: i.key,
|
|
796
|
-
disabled: e(
|
|
797
|
-
onClick: (m) => e(R)(i, e(
|
|
806
|
+
disabled: e(Q)(i),
|
|
807
|
+
onClick: (m) => e(R)(i, e(a), e(t))
|
|
798
808
|
}, {
|
|
799
|
-
default:
|
|
800
|
-
P(
|
|
809
|
+
default: g(() => [
|
|
810
|
+
P(I(i.label), 1)
|
|
801
811
|
]),
|
|
802
812
|
_: 2
|
|
803
813
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -808,9 +818,9 @@ const ma = /* @__PURE__ */ C({
|
|
|
808
818
|
_: 1
|
|
809
819
|
})
|
|
810
820
|
]),
|
|
811
|
-
default:
|
|
812
|
-
b(e(
|
|
813
|
-
default:
|
|
821
|
+
default: g(() => [
|
|
822
|
+
b(e(z), null, {
|
|
823
|
+
default: g(() => s[0] || (s[0] = [
|
|
814
824
|
P(" 更多操作 ")
|
|
815
825
|
])),
|
|
816
826
|
_: 1,
|
|
@@ -818,21 +828,21 @@ const ma = /* @__PURE__ */ C({
|
|
|
818
828
|
})
|
|
819
829
|
]),
|
|
820
830
|
_: 1
|
|
821
|
-
})) :
|
|
822
|
-
|
|
831
|
+
})) : C("", !0),
|
|
832
|
+
p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Kt)) : C("", !0)
|
|
823
833
|
]),
|
|
824
834
|
_: 1
|
|
825
835
|
}),
|
|
826
836
|
b(e(G), { class: "mr-1" }, {
|
|
827
|
-
default:
|
|
828
|
-
(
|
|
837
|
+
default: g(() => [
|
|
838
|
+
(f(), _(Ke(Nt), { "grid-ctrl": e(t) }, null, 8, ["grid-ctrl"]))
|
|
829
839
|
]),
|
|
830
840
|
_: 1
|
|
831
841
|
})
|
|
832
842
|
]);
|
|
833
843
|
};
|
|
834
844
|
}
|
|
835
|
-
}),
|
|
845
|
+
}), Et = /* @__PURE__ */ k({
|
|
836
846
|
__name: "index",
|
|
837
847
|
props: {
|
|
838
848
|
/**
|
|
@@ -844,32 +854,32 @@ const ma = /* @__PURE__ */ C({
|
|
|
844
854
|
}
|
|
845
855
|
},
|
|
846
856
|
emits: ["change"],
|
|
847
|
-
setup(v, { emit:
|
|
848
|
-
const
|
|
849
|
-
|
|
857
|
+
setup(v, { emit: r }) {
|
|
858
|
+
const t = v, a = h([]), o = r, { editorCtrl: n, errInfo: p } = O(), d = (c) => {
|
|
859
|
+
p != null && p.value.errClass && n && U(n), o("change", c);
|
|
850
860
|
};
|
|
851
|
-
return
|
|
852
|
-
if (!
|
|
853
|
-
console.error("Switch组件: ",
|
|
861
|
+
return K(() => {
|
|
862
|
+
if (!t.data || t.data.length != 2) {
|
|
863
|
+
console.error("Switch组件: ", t.data), gt.error("Switch组件必须有且只有两个选项");
|
|
854
864
|
return;
|
|
855
865
|
}
|
|
856
|
-
$e(!1,
|
|
866
|
+
$e(!1, t, a);
|
|
857
867
|
}), xe(() => {
|
|
858
|
-
Se(
|
|
859
|
-
}), (
|
|
868
|
+
Se(t);
|
|
869
|
+
}), (c, s) => {
|
|
860
870
|
var u;
|
|
861
|
-
return
|
|
871
|
+
return a.value.length === 2 ? (f(), _(e(lt), F({
|
|
862
872
|
key: 0,
|
|
863
|
-
class: [((u = e(
|
|
864
|
-
checkedChildren:
|
|
865
|
-
checkedValue:
|
|
866
|
-
unCheckedChildren:
|
|
867
|
-
unCheckedValue:
|
|
873
|
+
class: [((u = e(p)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "", "bg-blue-300", "w-[58px]"],
|
|
874
|
+
checkedChildren: a.value[0].label,
|
|
875
|
+
checkedValue: a.value[0].value,
|
|
876
|
+
unCheckedChildren: a.value[1].label,
|
|
877
|
+
unCheckedValue: a.value[1].value,
|
|
868
878
|
onChange: d
|
|
869
|
-
},
|
|
879
|
+
}, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : C("", !0);
|
|
870
880
|
};
|
|
871
881
|
}
|
|
872
|
-
}),
|
|
882
|
+
}), Ca = /* @__PURE__ */ k({
|
|
873
883
|
inheritAttrs: !1,
|
|
874
884
|
__name: "index",
|
|
875
885
|
props: {
|
|
@@ -882,97 +892,97 @@ const ma = /* @__PURE__ */ C({
|
|
|
882
892
|
statusDisabled: { type: Function }
|
|
883
893
|
},
|
|
884
894
|
setup(v) {
|
|
885
|
-
const
|
|
886
|
-
|
|
887
|
-
const
|
|
895
|
+
const r = v, t = W(), a = r.gridCtrl;
|
|
896
|
+
a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
|
|
897
|
+
const o = h(a.pageSize.value), n = h(a.pageNo.value), p = h([]), d = h({
|
|
888
898
|
total: 0,
|
|
889
899
|
current: 1,
|
|
890
|
-
pageSize:
|
|
900
|
+
pageSize: o.value,
|
|
891
901
|
showTotal: (i) => `共 ${i} 条记录`,
|
|
892
902
|
onChange: (i, m) => {
|
|
893
|
-
d.value.current = i, d.value.pageSize = m,
|
|
903
|
+
d.value.current = i, d.value.pageSize = m, o.value = m, n.value = i, a && (a.pageNo.value = i, a.pageSize.value = m, a.remotePage && ve(a));
|
|
894
904
|
},
|
|
895
|
-
...
|
|
905
|
+
...r.pagination
|
|
896
906
|
});
|
|
897
907
|
$(
|
|
898
|
-
() =>
|
|
908
|
+
() => a.tableData.value,
|
|
899
909
|
(i) => {
|
|
900
|
-
i && (
|
|
910
|
+
i && (p.value = i, d.value.total = a.total.value ?? 0);
|
|
901
911
|
},
|
|
902
912
|
{ immediate: !0 }
|
|
903
913
|
), $(
|
|
904
|
-
() =>
|
|
914
|
+
() => r.tableData,
|
|
905
915
|
(i) => {
|
|
906
|
-
i && (
|
|
916
|
+
i && (p.value = i, d.value.total = i.length);
|
|
907
917
|
},
|
|
908
918
|
{ immediate: !0 }
|
|
909
919
|
);
|
|
910
|
-
const
|
|
920
|
+
const c = h(a.columns.value), s = {
|
|
911
921
|
onChange: (i, m) => {
|
|
912
|
-
|
|
922
|
+
a && (a.selectKeys.value = i, a.selectRows.value = m);
|
|
913
923
|
},
|
|
914
924
|
columnWidth: "30px",
|
|
915
925
|
getCheckboxProps: (i) => ({
|
|
916
926
|
disabled: i.Enabled === 0
|
|
917
927
|
}),
|
|
918
|
-
...
|
|
919
|
-
}, u =
|
|
928
|
+
...r.rowSelection
|
|
929
|
+
}, u = h(s);
|
|
920
930
|
$(
|
|
921
|
-
() =>
|
|
931
|
+
() => a.selectable.value,
|
|
922
932
|
(i) => {
|
|
923
|
-
|
|
933
|
+
a && (u.value = i ? s : void 0);
|
|
924
934
|
},
|
|
925
935
|
{ immediate: !0 }
|
|
926
936
|
), $(
|
|
927
|
-
() =>
|
|
937
|
+
() => a.columns.value,
|
|
928
938
|
() => {
|
|
929
|
-
|
|
939
|
+
c.value = we(a.columns.value);
|
|
930
940
|
},
|
|
931
941
|
{ deep: !0, immediate: !0 }
|
|
932
942
|
);
|
|
933
|
-
const l =
|
|
934
|
-
return
|
|
935
|
-
l.value &&
|
|
936
|
-
}),
|
|
937
|
-
|
|
943
|
+
const l = h(!1);
|
|
944
|
+
return Oe(() => {
|
|
945
|
+
l.value && a && (a.reload.value = !0);
|
|
946
|
+
}), K(async () => {
|
|
947
|
+
_e(X.GridControl, a), a.tableData.value ? (p.value = a.tableData.value, a.total.value = p.value.length, d.value.total = a.total.value ?? 0) : a.autoload !== !1 && (a.remotePage ? p.value = (await ve(a)).rows : p.value = await je(a)), setTimeout(() => {
|
|
938
948
|
l.value = !0;
|
|
939
949
|
}, 50);
|
|
940
950
|
}), (i, m) => {
|
|
941
|
-
var S,
|
|
951
|
+
var S, D;
|
|
942
952
|
const x = q("permit");
|
|
943
|
-
return
|
|
944
|
-
(S = e(
|
|
953
|
+
return f(), w(M, null, [
|
|
954
|
+
(S = e(a).buttons) != null && S.value.length || (D = e(a).tools) != null && D.length ? (f(), _(At, {
|
|
945
955
|
key: 0,
|
|
946
|
-
"grid-ctrl": e(
|
|
947
|
-
"editor-ctrl": e(
|
|
948
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
949
|
-
l.value ? (
|
|
956
|
+
"grid-ctrl": e(a),
|
|
957
|
+
"editor-ctrl": e(a).editor
|
|
958
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
|
|
959
|
+
l.value ? (f(), _(e(Ne), F({
|
|
950
960
|
key: 1,
|
|
951
961
|
class: "w-full",
|
|
952
|
-
"row-key":
|
|
953
|
-
"data-source":
|
|
954
|
-
loading: e(
|
|
955
|
-
columns:
|
|
962
|
+
"row-key": r.primaryKey ?? e(a).primaryKey ?? "Id",
|
|
963
|
+
"data-source": p.value,
|
|
964
|
+
loading: e(a).isGridLoading.value,
|
|
965
|
+
columns: c.value,
|
|
956
966
|
pagination: d.value,
|
|
957
967
|
"row-selection": u.value,
|
|
958
|
-
scroll:
|
|
959
|
-
size: e(
|
|
968
|
+
scroll: r.scroll || { x: 700, y: 1e3 },
|
|
969
|
+
size: e(a).tableSize.value,
|
|
960
970
|
bordered: ""
|
|
961
|
-
}, e(
|
|
962
|
-
bodyCell:
|
|
971
|
+
}, e(t)), {
|
|
972
|
+
bodyCell: g((y) => {
|
|
963
973
|
var A, E;
|
|
964
974
|
return [
|
|
965
|
-
|
|
975
|
+
B(i.$slots, "bodyCell", {
|
|
966
976
|
column: y == null ? void 0 : y.column,
|
|
967
977
|
record: y == null ? void 0 : y.record
|
|
968
978
|
}),
|
|
969
|
-
e(
|
|
979
|
+
e(a) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? V((f(), _(Et, {
|
|
970
980
|
key: 0,
|
|
971
981
|
checked: y.record.Enabled,
|
|
972
|
-
"onUpdate:checked": (
|
|
982
|
+
"onUpdate:checked": (pe) => y.record.Enabled = pe,
|
|
973
983
|
disabled: i.statusDisabled ? i.statusDisabled(y.record) : !1,
|
|
974
984
|
data: e(Te).EnableDisable,
|
|
975
|
-
onClick: (
|
|
985
|
+
onClick: (pe) => e(He)(e(a), y.record),
|
|
976
986
|
class: N([
|
|
977
987
|
"w-[58px]",
|
|
978
988
|
i.statusDisabled && i.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
|
|
@@ -980,24 +990,24 @@ const ma = /* @__PURE__ */ C({
|
|
|
980
990
|
loading: y == null ? void 0 : y.record.isLoading
|
|
981
991
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
982
992
|
[x, ":enabled", "disable"]
|
|
983
|
-
]) :
|
|
984
|
-
e(
|
|
993
|
+
]) : C("", !0),
|
|
994
|
+
e(a) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "operation" ? B(i.$slots, "operate", {
|
|
985
995
|
key: 1,
|
|
986
996
|
record: y == null ? void 0 : y.record
|
|
987
997
|
}, () => [
|
|
988
|
-
b(
|
|
998
|
+
b(Pt, {
|
|
989
999
|
record: y == null ? void 0 : y.record,
|
|
990
|
-
"grid-ctrl": e(
|
|
1000
|
+
"grid-ctrl": e(a)
|
|
991
1001
|
}, null, 8, ["record", "grid-ctrl"])
|
|
992
|
-
]) :
|
|
1002
|
+
]) : C("", !0)
|
|
993
1003
|
];
|
|
994
1004
|
}),
|
|
995
1005
|
_: 3
|
|
996
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
1006
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
|
|
997
1007
|
], 64);
|
|
998
1008
|
};
|
|
999
1009
|
}
|
|
1000
|
-
}),
|
|
1010
|
+
}), Yt = { class: "flex items-center gap-1" }, Lt = { class: "text-nowrap" }, ka = /* @__PURE__ */ k({
|
|
1001
1011
|
__name: "index",
|
|
1002
1012
|
props: {
|
|
1003
1013
|
treeCtrl: {},
|
|
@@ -1005,92 +1015,92 @@ const ma = /* @__PURE__ */ C({
|
|
|
1005
1015
|
expandedKeys: {}
|
|
1006
1016
|
},
|
|
1007
1017
|
emits: ["select", "update:selectedKeys"],
|
|
1008
|
-
setup(v, { emit:
|
|
1009
|
-
const
|
|
1018
|
+
setup(v, { emit: r }) {
|
|
1019
|
+
const t = v, a = W(), o = t.treeCtrl, n = h([]);
|
|
1010
1020
|
$(
|
|
1011
|
-
() =>
|
|
1021
|
+
() => o.data.value,
|
|
1012
1022
|
(u) => {
|
|
1013
|
-
u && (n.value =
|
|
1023
|
+
u && (n.value = o.fieldMap ? ee(o.fieldMap, u) : u, s(t.selectedKeys ?? []));
|
|
1014
1024
|
}
|
|
1015
1025
|
);
|
|
1016
|
-
const
|
|
1026
|
+
const p = r, d = h([]);
|
|
1017
1027
|
$(
|
|
1018
|
-
() =>
|
|
1028
|
+
() => t.selectedKeys,
|
|
1019
1029
|
(u) => {
|
|
1020
1030
|
u && (d.value = u);
|
|
1021
1031
|
},
|
|
1022
1032
|
{ immediate: !0 }
|
|
1023
1033
|
);
|
|
1024
|
-
const
|
|
1034
|
+
const c = h(["-"]);
|
|
1025
1035
|
$(
|
|
1026
|
-
() =>
|
|
1036
|
+
() => t.expandedKeys,
|
|
1027
1037
|
(u) => {
|
|
1028
|
-
u && (
|
|
1038
|
+
u && (c.value = u);
|
|
1029
1039
|
},
|
|
1030
1040
|
{ immediate: !0 }
|
|
1031
1041
|
);
|
|
1032
1042
|
const s = (u, l) => {
|
|
1033
|
-
u.length === 0 && u.push(...d.value), u.length > 0 && (
|
|
1043
|
+
u.length === 0 && u.push(...d.value), u.length > 0 && (o.node.value = l == null ? void 0 : l.node.dataRef), d.value = u, p("update:selectedKeys", u), p("select", u, l);
|
|
1034
1044
|
};
|
|
1035
|
-
return
|
|
1036
|
-
|
|
1045
|
+
return K(() => {
|
|
1046
|
+
o.fieldMap || (o.fieldMap = {
|
|
1037
1047
|
label: "Name",
|
|
1038
1048
|
key: "Id",
|
|
1039
1049
|
value: "Id",
|
|
1040
1050
|
icon: "Icon"
|
|
1041
|
-
}),
|
|
1042
|
-
}), (u, l) => (
|
|
1051
|
+
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && De(o);
|
|
1052
|
+
}), (u, l) => (f(), _(e(rt), F({
|
|
1043
1053
|
class: "w-full",
|
|
1044
1054
|
"show-line": !0,
|
|
1045
1055
|
"tree-data": n.value,
|
|
1046
|
-
"expanded-keys":
|
|
1047
|
-
"onUpdate:expandedKeys": l[0] || (l[0] = (i) =>
|
|
1056
|
+
"expanded-keys": c.value,
|
|
1057
|
+
"onUpdate:expandedKeys": l[0] || (l[0] = (i) => c.value = i),
|
|
1048
1058
|
"selected-keys": d.value,
|
|
1049
|
-
loading: e(
|
|
1059
|
+
loading: e(o).isTreeLoading,
|
|
1050
1060
|
onSelect: s
|
|
1051
|
-
}, e(
|
|
1052
|
-
title:
|
|
1053
|
-
|
|
1061
|
+
}, e(a)), {
|
|
1062
|
+
title: g(({ key: i, label: m, icon: x }) => [
|
|
1063
|
+
B(u.$slots, "title", {
|
|
1054
1064
|
label: m,
|
|
1055
1065
|
key: i,
|
|
1056
1066
|
icon: x
|
|
1057
1067
|
}, () => [
|
|
1058
|
-
T("div",
|
|
1068
|
+
T("div", Yt, [
|
|
1059
1069
|
b(e(Y), { icon: x }, null, 8, ["icon"]),
|
|
1060
|
-
T("span",
|
|
1070
|
+
T("span", Lt, I(m), 1)
|
|
1061
1071
|
])
|
|
1062
1072
|
])
|
|
1063
1073
|
]),
|
|
1064
1074
|
_: 3
|
|
1065
1075
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1066
1076
|
}
|
|
1067
|
-
}),
|
|
1077
|
+
}), wa = /* @__PURE__ */ j(_t, [["__scopeId", "data-v-1e39ad49"]]), Rt = {
|
|
1068
1078
|
key: 0,
|
|
1069
1079
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1070
|
-
},
|
|
1080
|
+
}, Ut = /* @__PURE__ */ k({
|
|
1071
1081
|
inheritAttrs: !1,
|
|
1072
1082
|
__name: "index",
|
|
1073
1083
|
props: We,
|
|
1074
1084
|
emits: ["change", "update:labels", "update:value"],
|
|
1075
|
-
setup(v, { emit:
|
|
1085
|
+
setup(v, { emit: r }) {
|
|
1076
1086
|
var m, x, S;
|
|
1077
|
-
const
|
|
1078
|
-
...
|
|
1079
|
-
url: ((m =
|
|
1080
|
-
fieldMap:
|
|
1081
|
-
params:
|
|
1087
|
+
const t = v, a = W(), o = h({
|
|
1088
|
+
...t.url,
|
|
1089
|
+
url: ((m = t.url) == null ? void 0 : m.url) || "",
|
|
1090
|
+
fieldMap: t.fieldMap || ((x = t.url) == null ? void 0 : x.fieldMap),
|
|
1091
|
+
params: t.params || ((S = t.url) == null ? void 0 : S.params),
|
|
1082
1092
|
loadingText: !1
|
|
1083
|
-
}), n =
|
|
1093
|
+
}), n = O(), { editorCtrl: p, errInfo: d, labelText: c } = n, s = h(a.placeholder);
|
|
1084
1094
|
$(
|
|
1085
|
-
() =>
|
|
1086
|
-
(
|
|
1087
|
-
|
|
1095
|
+
() => o.value.loading,
|
|
1096
|
+
(D) => {
|
|
1097
|
+
D ? s.value = "" : s.value || (s.value = "请选择" + c.value);
|
|
1088
1098
|
},
|
|
1089
1099
|
{ immediate: !0 }
|
|
1090
1100
|
);
|
|
1091
|
-
const u =
|
|
1101
|
+
const u = r;
|
|
1092
1102
|
n.inputEmit = u;
|
|
1093
|
-
const l =
|
|
1103
|
+
const l = h([]), i = (D, y) => {
|
|
1094
1104
|
if (!y || y.length === 0) {
|
|
1095
1105
|
u("update:labels", []), u("update:value", []);
|
|
1096
1106
|
return;
|
|
@@ -1099,45 +1109,45 @@ const ma = /* @__PURE__ */ C({
|
|
|
1099
1109
|
u("update:labels", A), u(
|
|
1100
1110
|
"update:value",
|
|
1101
1111
|
y.map((E) => E.value)
|
|
1102
|
-
), d != null && d.value.errClass &&
|
|
1112
|
+
), d != null && d.value.errClass && p && U(p);
|
|
1103
1113
|
};
|
|
1104
|
-
return
|
|
1105
|
-
|
|
1114
|
+
return K(() => {
|
|
1115
|
+
o.value && !o.value.fieldMap && (o.value.fieldMap = {
|
|
1106
1116
|
title: "Name",
|
|
1107
1117
|
label: "Name",
|
|
1108
1118
|
value: "Id",
|
|
1109
1119
|
key: "Id"
|
|
1110
|
-
}), $e(
|
|
1120
|
+
}), $e(t.autoload, t, l, n, o.value, o.value.params);
|
|
1111
1121
|
}), xe(() => {
|
|
1112
|
-
Se(
|
|
1113
|
-
}), (
|
|
1122
|
+
Se(t, n);
|
|
1123
|
+
}), (D, y) => {
|
|
1114
1124
|
var A;
|
|
1115
|
-
return
|
|
1116
|
-
l.value.length ?
|
|
1125
|
+
return f(), w("div", null, [
|
|
1126
|
+
l.value.length ? C("", !0) : (f(), w("div", Rt, [
|
|
1117
1127
|
b(e(Je), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1118
1128
|
y[0] || (y[0] = T("span", null, "数据加载中...", -1))
|
|
1119
1129
|
])),
|
|
1120
|
-
b(e(
|
|
1130
|
+
b(e(ot), F({
|
|
1121
1131
|
options: l.value,
|
|
1122
1132
|
class: [(A = e(d)) == null ? void 0 : A.errClass],
|
|
1123
1133
|
"allow-clear": !0,
|
|
1124
|
-
placeholder: l.value.length > 0 ? "请选择" + e(
|
|
1134
|
+
placeholder: l.value.length > 0 ? "请选择" + e(c) : "",
|
|
1125
1135
|
onChange: i
|
|
1126
|
-
}, e(
|
|
1136
|
+
}, e(a)), null, 16, ["options", "class", "placeholder"])
|
|
1127
1137
|
]);
|
|
1128
1138
|
};
|
|
1129
1139
|
}
|
|
1130
|
-
}),
|
|
1140
|
+
}), $a = /* @__PURE__ */ j(Ut, [["__scopeId", "data-v-05e57a52"]]), Sa = /* @__PURE__ */ j(ht, [["__scopeId", "data-v-dc59fe7f"]]);
|
|
1131
1141
|
function te() {
|
|
1132
1142
|
return te = Object.assign ? Object.assign.bind() : function(v) {
|
|
1133
|
-
for (var
|
|
1134
|
-
var
|
|
1135
|
-
for (var
|
|
1143
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1144
|
+
var t = arguments[r];
|
|
1145
|
+
for (var a in t) ({}).hasOwnProperty.call(t, a) && (v[a] = t[a]);
|
|
1136
1146
|
}
|
|
1137
1147
|
return v;
|
|
1138
1148
|
}, te.apply(null, arguments);
|
|
1139
1149
|
}
|
|
1140
|
-
const
|
|
1150
|
+
const Qt = {
|
|
1141
1151
|
locale: "zh_CN",
|
|
1142
1152
|
today: "今天",
|
|
1143
1153
|
now: "此刻",
|
|
@@ -1164,10 +1174,10 @@ const Ut = {
|
|
|
1164
1174
|
nextDecade: "下一年代",
|
|
1165
1175
|
previousCentury: "上一世纪",
|
|
1166
1176
|
nextCentury: "下一世纪"
|
|
1167
|
-
},
|
|
1177
|
+
}, qt = {
|
|
1168
1178
|
placeholder: "请选择时间",
|
|
1169
1179
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1170
|
-
},
|
|
1180
|
+
}, ce = {
|
|
1171
1181
|
lang: te({
|
|
1172
1182
|
placeholder: "请选择日期",
|
|
1173
1183
|
yearPlaceholder: "请选择年份",
|
|
@@ -1179,51 +1189,51 @@ const Ut = {
|
|
|
1179
1189
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1180
1190
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1181
1191
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1182
|
-
},
|
|
1183
|
-
timePickerLocale: te({},
|
|
1192
|
+
}, Qt),
|
|
1193
|
+
timePickerLocale: te({}, qt)
|
|
1184
1194
|
};
|
|
1185
|
-
|
|
1186
|
-
const
|
|
1195
|
+
ce.lang.ok = "确定";
|
|
1196
|
+
const Ta = /* @__PURE__ */ k({
|
|
1187
1197
|
__name: "index",
|
|
1188
1198
|
props: {
|
|
1189
1199
|
valueFormat: {}
|
|
1190
1200
|
},
|
|
1191
1201
|
setup(v) {
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1194
|
-
},
|
|
1195
|
-
return (d,
|
|
1202
|
+
const r = v, { editorCtrl: t, labelText: a, errInfo: o } = O(), n = () => {
|
|
1203
|
+
o != null && o.value.errClass && t && U(t);
|
|
1204
|
+
}, p = h(r.valueFormat ?? "YYYY-MM-DD");
|
|
1205
|
+
return (d, c) => {
|
|
1196
1206
|
var s;
|
|
1197
|
-
return
|
|
1198
|
-
class: N([[((s = e(
|
|
1199
|
-
placeholder: "请选择" + e(
|
|
1200
|
-
locale: e(
|
|
1201
|
-
valueFormat:
|
|
1207
|
+
return f(), _(e(st), {
|
|
1208
|
+
class: N([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
|
|
1209
|
+
placeholder: "请选择" + e(a),
|
|
1210
|
+
locale: e(ce),
|
|
1211
|
+
valueFormat: p.value,
|
|
1202
1212
|
onBlur: n
|
|
1203
1213
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1204
1214
|
};
|
|
1205
1215
|
}
|
|
1206
|
-
}),
|
|
1216
|
+
}), Vt = /* @__PURE__ */ k({
|
|
1207
1217
|
__name: "index",
|
|
1208
1218
|
props: {
|
|
1209
1219
|
value: {}
|
|
1210
1220
|
},
|
|
1211
1221
|
emits: ["update:value"],
|
|
1212
|
-
setup(v, { emit:
|
|
1213
|
-
const { editorCtrl:
|
|
1214
|
-
|
|
1215
|
-
},
|
|
1222
|
+
setup(v, { emit: r }) {
|
|
1223
|
+
const { editorCtrl: t, labelText: a, errInfo: o } = O(), n = () => {
|
|
1224
|
+
o != null && o.value.errClass && t && U(t);
|
|
1225
|
+
}, p = v, d = r, c = h(p.value);
|
|
1216
1226
|
$(
|
|
1217
|
-
() =>
|
|
1227
|
+
() => p.value,
|
|
1218
1228
|
(u) => {
|
|
1219
|
-
|
|
1229
|
+
c.value = u;
|
|
1220
1230
|
},
|
|
1221
1231
|
{ immediate: !0 }
|
|
1222
1232
|
// 立即同步初始值
|
|
1223
1233
|
), $(
|
|
1224
|
-
() =>
|
|
1234
|
+
() => c.value,
|
|
1225
1235
|
(u) => {
|
|
1226
|
-
if (
|
|
1236
|
+
if (c.value === "") {
|
|
1227
1237
|
d("update:value", void 0);
|
|
1228
1238
|
return;
|
|
1229
1239
|
}
|
|
@@ -1231,107 +1241,107 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1231
1241
|
}
|
|
1232
1242
|
);
|
|
1233
1243
|
const s = () => {
|
|
1234
|
-
|
|
1244
|
+
c.value === "" && (c.value = void 0);
|
|
1235
1245
|
};
|
|
1236
1246
|
return (u, l) => {
|
|
1237
1247
|
var i, m;
|
|
1238
|
-
return
|
|
1248
|
+
return f(), _(e(se), F({
|
|
1239
1249
|
class: [
|
|
1240
|
-
(i = e(
|
|
1241
|
-
((m = e(
|
|
1250
|
+
(i = e(o)) == null ? void 0 : i.errClass,
|
|
1251
|
+
((m = e(o)) == null ? void 0 : m.errClass) === "error" && !u.$slots.addonBefore && !u.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1242
1252
|
],
|
|
1243
|
-
value:
|
|
1244
|
-
"onUpdate:value": l[0] || (l[0] = (x) =>
|
|
1253
|
+
value: c.value,
|
|
1254
|
+
"onUpdate:value": l[0] || (l[0] = (x) => c.value = x),
|
|
1245
1255
|
autocomplete: "new-password",
|
|
1246
1256
|
"allow-clear": !0,
|
|
1247
|
-
placeholder: "请输入" + e(
|
|
1257
|
+
placeholder: "请输入" + e(a),
|
|
1248
1258
|
onBlur: n,
|
|
1249
1259
|
onChange: s
|
|
1250
|
-
}, u.$attrs),
|
|
1260
|
+
}, u.$attrs), he({ _: 2 }, [
|
|
1251
1261
|
u.$slots.addonBefore ? {
|
|
1252
1262
|
name: "addonBefore",
|
|
1253
|
-
fn:
|
|
1254
|
-
|
|
1263
|
+
fn: g(() => [
|
|
1264
|
+
B(u.$slots, "addonBefore")
|
|
1255
1265
|
]),
|
|
1256
1266
|
key: "0"
|
|
1257
1267
|
} : void 0,
|
|
1258
1268
|
u.$slots.addonAfter ? {
|
|
1259
1269
|
name: "addonAfter",
|
|
1260
|
-
fn:
|
|
1261
|
-
|
|
1270
|
+
fn: g(() => [
|
|
1271
|
+
B(u.$slots, "addonAfter")
|
|
1262
1272
|
]),
|
|
1263
1273
|
key: "1"
|
|
1264
1274
|
} : void 0
|
|
1265
1275
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1266
1276
|
};
|
|
1267
1277
|
}
|
|
1268
|
-
}),
|
|
1278
|
+
}), jt = /* @__PURE__ */ k({
|
|
1269
1279
|
__name: "inputIcon",
|
|
1270
1280
|
props: {
|
|
1271
1281
|
value: {}
|
|
1272
1282
|
},
|
|
1273
1283
|
emits: ["update:value"],
|
|
1274
|
-
setup(v, { emit:
|
|
1275
|
-
const
|
|
1284
|
+
setup(v, { emit: r }) {
|
|
1285
|
+
const t = v, a = r, o = h(void 0);
|
|
1276
1286
|
return $(
|
|
1277
|
-
() =>
|
|
1287
|
+
() => t.value,
|
|
1278
1288
|
(n) => {
|
|
1279
|
-
|
|
1289
|
+
o.value = n ?? void 0;
|
|
1280
1290
|
},
|
|
1281
1291
|
{ immediate: !0 }
|
|
1282
1292
|
), $(
|
|
1283
|
-
() =>
|
|
1293
|
+
() => o.value,
|
|
1284
1294
|
(n) => {
|
|
1285
|
-
|
|
1295
|
+
a("update:value", n);
|
|
1286
1296
|
}
|
|
1287
|
-
), (n,
|
|
1297
|
+
), (n, p) => (f(), _(Vt, F({
|
|
1288
1298
|
class: ["w-[80%]"],
|
|
1289
|
-
value:
|
|
1290
|
-
"onUpdate:value":
|
|
1299
|
+
value: o.value,
|
|
1300
|
+
"onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
|
|
1291
1301
|
}, n.$attrs), {
|
|
1292
|
-
addonBefore:
|
|
1302
|
+
addonBefore: g(() => [
|
|
1293
1303
|
b(e(Y), {
|
|
1294
1304
|
class: "!w-4 !h-4",
|
|
1295
|
-
icon:
|
|
1305
|
+
icon: o.value
|
|
1296
1306
|
}, null, 8, ["icon"])
|
|
1297
1307
|
]),
|
|
1298
1308
|
_: 1
|
|
1299
1309
|
}, 16, ["value"]));
|
|
1300
1310
|
}
|
|
1301
|
-
}),
|
|
1311
|
+
}), Da = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-f7b3ed74"]]), Ia = /* @__PURE__ */ k({
|
|
1302
1312
|
__name: "inputPassword",
|
|
1303
1313
|
setup(v) {
|
|
1304
|
-
const { editorCtrl:
|
|
1305
|
-
|
|
1314
|
+
const { editorCtrl: r, labelText: t, errInfo: a } = O(), o = () => {
|
|
1315
|
+
a != null && a.value.errClass && r && U(r);
|
|
1306
1316
|
};
|
|
1307
|
-
return (n,
|
|
1317
|
+
return (n, p) => {
|
|
1308
1318
|
var d;
|
|
1309
|
-
return
|
|
1310
|
-
class: ((d = e(
|
|
1319
|
+
return f(), _(e(nt), F({
|
|
1320
|
+
class: ((d = e(a)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1311
1321
|
"allow-clear": !0,
|
|
1312
1322
|
autocomplete: "new-password",
|
|
1313
|
-
placeholder: "请输入" + e(
|
|
1314
|
-
onBlur:
|
|
1323
|
+
placeholder: "请输入" + e(t),
|
|
1324
|
+
onBlur: o
|
|
1315
1325
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1316
1326
|
};
|
|
1317
1327
|
}
|
|
1318
|
-
}),
|
|
1328
|
+
}), Ba = /* @__PURE__ */ k({
|
|
1319
1329
|
__name: "inputNumber",
|
|
1320
1330
|
setup(v) {
|
|
1321
|
-
const { editorCtrl:
|
|
1322
|
-
|
|
1331
|
+
const { editorCtrl: r, labelText: t, errInfo: a } = O(), o = () => {
|
|
1332
|
+
a != null && a.value.errClass && r && U(r);
|
|
1323
1333
|
};
|
|
1324
|
-
return (n,
|
|
1334
|
+
return (n, p) => {
|
|
1325
1335
|
var d;
|
|
1326
|
-
return
|
|
1327
|
-
class: [[((d = e(
|
|
1328
|
-
onBlur:
|
|
1336
|
+
return f(), _(e(ut), F({
|
|
1337
|
+
class: [[((d = e(a)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1338
|
+
onBlur: o,
|
|
1329
1339
|
"allow-clear": !1,
|
|
1330
|
-
placeholder: "请输入" + e(
|
|
1340
|
+
placeholder: "请输入" + e(t)
|
|
1331
1341
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1332
1342
|
};
|
|
1333
1343
|
}
|
|
1334
|
-
}),
|
|
1344
|
+
}), Ht = { class: "flex flex-col gap-2" }, Wt = { class: "w-[33%]" }, Jt = { class: "w-[64%]" }, Fa = /* @__PURE__ */ k({
|
|
1335
1345
|
__name: "index",
|
|
1336
1346
|
props: {
|
|
1337
1347
|
value: {},
|
|
@@ -1339,24 +1349,24 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1339
1349
|
valueHolder: {}
|
|
1340
1350
|
},
|
|
1341
1351
|
emits: ["update:value"],
|
|
1342
|
-
setup(v, { emit:
|
|
1343
|
-
const
|
|
1352
|
+
setup(v, { emit: r }) {
|
|
1353
|
+
const t = v, a = r, o = h([]);
|
|
1344
1354
|
let n = !1;
|
|
1345
|
-
const
|
|
1346
|
-
|
|
1355
|
+
const p = () => {
|
|
1356
|
+
o.value = Object.entries(t.value).map(([u, l]) => ({
|
|
1347
1357
|
id: Date.now() + Math.random(),
|
|
1348
1358
|
field: u,
|
|
1349
1359
|
value: l
|
|
1350
1360
|
}));
|
|
1351
1361
|
};
|
|
1352
|
-
$(() =>
|
|
1353
|
-
n ||
|
|
1362
|
+
$(() => t.value, () => {
|
|
1363
|
+
n || p(), n = !1;
|
|
1354
1364
|
}, { immediate: !0 });
|
|
1355
1365
|
const d = () => {
|
|
1356
|
-
const u =
|
|
1357
|
-
n = !0,
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1366
|
+
const u = o.value.reduce((l, i) => (i.field && (l[i.field] = i.value), l), {});
|
|
1367
|
+
n = !0, a("update:value", u);
|
|
1368
|
+
}, c = () => {
|
|
1369
|
+
o.value.push({
|
|
1360
1370
|
id: Date.now() + Math.random(),
|
|
1361
1371
|
field: "",
|
|
1362
1372
|
value: ""
|
|
@@ -1364,13 +1374,13 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1364
1374
|
}, s = () => {
|
|
1365
1375
|
d();
|
|
1366
1376
|
};
|
|
1367
|
-
return (u, l) => (
|
|
1368
|
-
(
|
|
1377
|
+
return (u, l) => (f(), w("div", Ht, [
|
|
1378
|
+
(f(!0), w(M, null, L(o.value, (i) => (f(), w("div", {
|
|
1369
1379
|
key: i.id,
|
|
1370
1380
|
class: "flex items-center gap-2"
|
|
1371
1381
|
}, [
|
|
1372
|
-
T("div",
|
|
1373
|
-
b(e(
|
|
1382
|
+
T("div", Wt, [
|
|
1383
|
+
b(e(se), {
|
|
1374
1384
|
value: i.field,
|
|
1375
1385
|
"onUpdate:value": (m) => i.field = m,
|
|
1376
1386
|
title: i.field,
|
|
@@ -1380,8 +1390,8 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1380
1390
|
}, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
|
|
1381
1391
|
]),
|
|
1382
1392
|
l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
|
|
1383
|
-
T("div",
|
|
1384
|
-
b(e(
|
|
1393
|
+
T("div", Jt, [
|
|
1394
|
+
b(e(se), {
|
|
1385
1395
|
value: i.value,
|
|
1386
1396
|
"onUpdate:value": (m) => i.value = m,
|
|
1387
1397
|
placeholder: u.valueHolder,
|
|
@@ -1391,11 +1401,11 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1391
1401
|
])
|
|
1392
1402
|
]))), 128)),
|
|
1393
1403
|
b(e(Me), {
|
|
1394
|
-
onClick:
|
|
1404
|
+
onClick: c,
|
|
1395
1405
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1396
1406
|
size: "small"
|
|
1397
1407
|
}, {
|
|
1398
|
-
default:
|
|
1408
|
+
default: g(() => l[1] || (l[1] = [
|
|
1399
1409
|
P(" 新增配置行 ")
|
|
1400
1410
|
])),
|
|
1401
1411
|
_: 1,
|
|
@@ -1403,7 +1413,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1403
1413
|
})
|
|
1404
1414
|
]));
|
|
1405
1415
|
}
|
|
1406
|
-
}),
|
|
1416
|
+
}), Gt = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */ k({
|
|
1407
1417
|
__name: "radioStatus",
|
|
1408
1418
|
props: {
|
|
1409
1419
|
/**
|
|
@@ -1431,13 +1441,13 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1431
1441
|
}
|
|
1432
1442
|
},
|
|
1433
1443
|
setup(v) {
|
|
1434
|
-
const
|
|
1435
|
-
return
|
|
1444
|
+
const r = v, t = h(JSON.parse(JSON.stringify(Te.getOptions(r.dataKey))));
|
|
1445
|
+
return r.all === !0 && t.value.unshift({
|
|
1436
1446
|
label: "全部",
|
|
1437
|
-
value:
|
|
1438
|
-
}), (
|
|
1447
|
+
value: r.allValue || [0, 1]
|
|
1448
|
+
}), (a, o) => (f(), _(Gt, { data: t.value }, null, 8, ["data"]));
|
|
1439
1449
|
}
|
|
1440
|
-
}),
|
|
1450
|
+
}), Ma = /* @__PURE__ */ k({
|
|
1441
1451
|
__name: "index",
|
|
1442
1452
|
props: {
|
|
1443
1453
|
startDate: {},
|
|
@@ -1445,55 +1455,55 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1445
1455
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
1446
1456
|
},
|
|
1447
1457
|
emits: ["update:startDate", "update:endDate"],
|
|
1448
|
-
setup(v, { emit:
|
|
1449
|
-
const
|
|
1450
|
-
const s =
|
|
1458
|
+
setup(v, { emit: r }) {
|
|
1459
|
+
const t = v, a = r, o = O(), { errInfo: n } = o, p = re(() => t.valueFormat), d = re(() => {
|
|
1460
|
+
const s = t.startDate, u = t.endDate;
|
|
1451
1461
|
if (!(!s || !u))
|
|
1452
1462
|
try {
|
|
1453
|
-
const l =
|
|
1463
|
+
const l = ge(s), i = ge(u);
|
|
1454
1464
|
return !l.isValid() || !i.isValid() ? void 0 : [l, i];
|
|
1455
1465
|
} catch {
|
|
1456
1466
|
return;
|
|
1457
1467
|
}
|
|
1458
|
-
}),
|
|
1468
|
+
}), c = (s, u) => {
|
|
1459
1469
|
if (!s || !u || u.length !== 2) {
|
|
1460
|
-
|
|
1470
|
+
a("update:startDate", null), a("update:endDate", null);
|
|
1461
1471
|
return;
|
|
1462
1472
|
}
|
|
1463
|
-
|
|
1473
|
+
a("update:startDate", u[0] || null), a("update:endDate", u[1] || null);
|
|
1464
1474
|
};
|
|
1465
1475
|
return (s, u) => {
|
|
1466
1476
|
var l;
|
|
1467
|
-
return
|
|
1477
|
+
return f(), _(e(it), {
|
|
1468
1478
|
class: N([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1469
|
-
locale: e(
|
|
1470
|
-
"value-format":
|
|
1479
|
+
locale: e(ce),
|
|
1480
|
+
"value-format": p.value,
|
|
1471
1481
|
value: d.value,
|
|
1472
|
-
onChange:
|
|
1482
|
+
onChange: c
|
|
1473
1483
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1474
1484
|
};
|
|
1475
1485
|
}
|
|
1476
|
-
}),
|
|
1486
|
+
}), Na = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-bf782acb"]]), za = /* @__PURE__ */ k({
|
|
1477
1487
|
__name: "index",
|
|
1478
1488
|
setup(v) {
|
|
1479
|
-
const { editorCtrl:
|
|
1480
|
-
|
|
1489
|
+
const { editorCtrl: r, labelText: t, errInfo: a } = O(), o = () => {
|
|
1490
|
+
a != null && a.value.errClass && r && U(r);
|
|
1481
1491
|
};
|
|
1482
|
-
return (n,
|
|
1492
|
+
return (n, p) => {
|
|
1483
1493
|
var d;
|
|
1484
|
-
return
|
|
1485
|
-
class: ((d = e(
|
|
1494
|
+
return f(), _(e(dt), F({
|
|
1495
|
+
class: ((d = e(a)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1486
1496
|
"allow-clear": !0,
|
|
1487
|
-
placeholder: "请输入" + e(
|
|
1488
|
-
onBlur:
|
|
1489
|
-
onKeyup:
|
|
1497
|
+
placeholder: "请输入" + e(t),
|
|
1498
|
+
onBlur: o,
|
|
1499
|
+
onKeyup: p[0] || (p[0] = fe(J(() => {
|
|
1490
1500
|
}, ["stop"]), ["enter", "native"])),
|
|
1491
|
-
onKeydown:
|
|
1501
|
+
onKeydown: p[1] || (p[1] = fe(J(() => {
|
|
1492
1502
|
}, ["stop"]), ["enter", "native"]))
|
|
1493
1503
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1494
1504
|
};
|
|
1495
1505
|
}
|
|
1496
|
-
}),
|
|
1506
|
+
}), Xt = /* @__PURE__ */ k({
|
|
1497
1507
|
__name: "index",
|
|
1498
1508
|
props: {
|
|
1499
1509
|
autoload: { type: Boolean },
|
|
@@ -1502,45 +1512,45 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1502
1512
|
value: {}
|
|
1503
1513
|
},
|
|
1504
1514
|
emits: ["change", "update:value"],
|
|
1505
|
-
setup(v, { emit:
|
|
1506
|
-
const
|
|
1507
|
-
|
|
1515
|
+
setup(v, { emit: r }) {
|
|
1516
|
+
const t = v, a = h({ ...t.url }), { editorCtrl: o, labelText: n, errInfo: p } = O(), d = r, c = h([]), s = h([]);
|
|
1517
|
+
t.value && t.value.every((l) => {
|
|
1508
1518
|
s.value.push(l.toString());
|
|
1509
1519
|
}), $(
|
|
1510
|
-
() =>
|
|
1520
|
+
() => t.value,
|
|
1511
1521
|
(l) => {
|
|
1512
1522
|
l && (s.value = l);
|
|
1513
1523
|
}
|
|
1514
1524
|
);
|
|
1515
1525
|
const u = (l) => {
|
|
1516
|
-
d("update:value", l), d("change", l), s.value = l,
|
|
1526
|
+
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o && U(o);
|
|
1517
1527
|
};
|
|
1518
|
-
return
|
|
1519
|
-
if (
|
|
1520
|
-
const l =
|
|
1521
|
-
if (
|
|
1522
|
-
const i = await Ie(
|
|
1528
|
+
return K(async () => {
|
|
1529
|
+
if (a.value) {
|
|
1530
|
+
const l = o == null ? void 0 : o.page;
|
|
1531
|
+
if (a.value.api || (a.value.api = l == null ? void 0 : l.api), a.value.authorize === void 0 && (a.value.authorize = l == null ? void 0 : l.authorize), t.autoload) {
|
|
1532
|
+
const i = await Ie(o, {
|
|
1523
1533
|
urlKey: "list",
|
|
1524
|
-
url: { ...
|
|
1534
|
+
url: { ...a.value, url: a.value.url },
|
|
1525
1535
|
loadingText: !1,
|
|
1526
|
-
params:
|
|
1536
|
+
params: t.params
|
|
1527
1537
|
});
|
|
1528
|
-
|
|
1538
|
+
c.value = (i == null ? void 0 : i.data) ?? [];
|
|
1529
1539
|
}
|
|
1530
1540
|
}
|
|
1531
1541
|
}), (l, i) => {
|
|
1532
1542
|
var m;
|
|
1533
|
-
return
|
|
1534
|
-
class: ((m = e(
|
|
1543
|
+
return f(), _(e(ct), F({
|
|
1544
|
+
class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1535
1545
|
placeholder: "请输入" + e(n),
|
|
1536
1546
|
targetKeys: s.value,
|
|
1537
1547
|
onChange: u
|
|
1538
1548
|
}, l.$attrs), {
|
|
1539
|
-
children:
|
|
1540
|
-
|
|
1549
|
+
children: g(({ direction: x, disabled: S, filteredItems: D, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
|
|
1550
|
+
B(l.$slots, "children", {
|
|
1541
1551
|
direction: x,
|
|
1542
1552
|
disabled: S,
|
|
1543
|
-
filteredItems:
|
|
1553
|
+
filteredItems: D,
|
|
1544
1554
|
onItemSelectAll: y,
|
|
1545
1555
|
onItemSelect: A,
|
|
1546
1556
|
selectedKeys: E
|
|
@@ -1550,7 +1560,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1550
1560
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1551
1561
|
};
|
|
1552
1562
|
}
|
|
1553
|
-
}),
|
|
1563
|
+
}), Ka = /* @__PURE__ */ k({
|
|
1554
1564
|
__name: "transferTable",
|
|
1555
1565
|
props: {
|
|
1556
1566
|
/**
|
|
@@ -1576,46 +1586,46 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1576
1586
|
}
|
|
1577
1587
|
},
|
|
1578
1588
|
emits: ["update:value"],
|
|
1579
|
-
setup(v, { emit:
|
|
1580
|
-
const
|
|
1589
|
+
setup(v, { emit: r }) {
|
|
1590
|
+
const t = v, a = r, o = h(t.autoload), n = h(t.value), p = h(t.gridCtrl.primaryKey);
|
|
1581
1591
|
$(
|
|
1582
1592
|
() => n.value,
|
|
1583
1593
|
(s) => {
|
|
1584
|
-
|
|
1594
|
+
a("update:value", s);
|
|
1585
1595
|
}
|
|
1586
1596
|
), $(
|
|
1587
|
-
() =>
|
|
1597
|
+
() => t.value,
|
|
1588
1598
|
(s) => {
|
|
1589
1599
|
s && (n.value = s);
|
|
1590
1600
|
}
|
|
1591
|
-
),
|
|
1601
|
+
), t.gridCtrl.autoload = !1, t.gridCtrl.remotePage = !1, t.gridCtrl.selectable = h(!0), t.gridCtrl.buttons = h([]), t.gridCtrl.tools = [];
|
|
1592
1602
|
const d = ({ disabled: s, selectedKeys: u, onItemSelectAll: l, onItemSelect: i }) => ({
|
|
1593
1603
|
getCheckboxProps: (m) => ({
|
|
1594
1604
|
// 控制是否禁止
|
|
1595
1605
|
disabled: s || m.disabled
|
|
1596
1606
|
}),
|
|
1597
1607
|
onSelectAll(m, x) {
|
|
1598
|
-
const S = x.filter((
|
|
1608
|
+
const S = x.filter((D) => !D.disabled).map(({ [p.value]: D }) => D);
|
|
1599
1609
|
l(S, m);
|
|
1600
1610
|
},
|
|
1601
|
-
onSelect({ [
|
|
1611
|
+
onSelect({ [p.value]: m }, x) {
|
|
1602
1612
|
i(m, x);
|
|
1603
1613
|
},
|
|
1604
1614
|
selectedRowKeys: u
|
|
1605
|
-
}),
|
|
1606
|
-
return
|
|
1607
|
-
if (
|
|
1608
|
-
const s = await Ie(
|
|
1615
|
+
}), c = h([]);
|
|
1616
|
+
return K(async () => {
|
|
1617
|
+
if (o.value) {
|
|
1618
|
+
const s = await Ie(t.gridCtrl, {
|
|
1609
1619
|
urlKey: "list",
|
|
1610
|
-
url: { ...
|
|
1611
|
-
params:
|
|
1620
|
+
url: { ...t.gridCtrl.gridUrl, url: t.gridCtrl.gridUrl.url },
|
|
1621
|
+
params: t.gridCtrl.gridQuery,
|
|
1612
1622
|
loadingText: !1
|
|
1613
1623
|
});
|
|
1614
|
-
|
|
1624
|
+
c.value = (s == null ? void 0 : s.data) ?? [];
|
|
1615
1625
|
}
|
|
1616
|
-
}), (s, u) => (
|
|
1617
|
-
"data-source":
|
|
1618
|
-
"row-key": (l) => l[
|
|
1626
|
+
}), (s, u) => (f(), _(Xt, F({
|
|
1627
|
+
"data-source": c.value,
|
|
1628
|
+
"row-key": (l) => l[p.value],
|
|
1619
1629
|
value: n.value,
|
|
1620
1630
|
"onUpdate:value": u[0] || (u[0] = (l) => n.value = l),
|
|
1621
1631
|
"list-style": {
|
|
@@ -1625,16 +1635,16 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1625
1635
|
"show-select-all": !1,
|
|
1626
1636
|
"show-search": !0,
|
|
1627
1637
|
"filter-option": (l, i) => {
|
|
1628
|
-
for (const m of
|
|
1638
|
+
for (const m of t.gridCtrl.columns.value)
|
|
1629
1639
|
if (i[m.dataIndex].toString().indexOf(l) !== -1)
|
|
1630
1640
|
return !0;
|
|
1631
1641
|
return !1;
|
|
1632
1642
|
}
|
|
1633
1643
|
}, s.$attrs), {
|
|
1634
|
-
children:
|
|
1644
|
+
children: g(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
|
|
1635
1645
|
b(e(Ne), {
|
|
1636
1646
|
columns: v.gridCtrl.columns.value,
|
|
1637
|
-
"row-key":
|
|
1647
|
+
"row-key": p.value,
|
|
1638
1648
|
"row-selection": d({
|
|
1639
1649
|
disabled: !1,
|
|
1640
1650
|
selectedKeys: x,
|
|
@@ -1647,8 +1657,8 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1647
1657
|
scroll: { x: 300 },
|
|
1648
1658
|
"custom-row": (S) => ({
|
|
1649
1659
|
onClick: () => {
|
|
1650
|
-
const
|
|
1651
|
-
m(
|
|
1660
|
+
const D = S[p.value];
|
|
1661
|
+
m(D, !x.includes(D));
|
|
1652
1662
|
}
|
|
1653
1663
|
})
|
|
1654
1664
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -1656,7 +1666,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1656
1666
|
_: 1
|
|
1657
1667
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
1658
1668
|
}
|
|
1659
|
-
}),
|
|
1669
|
+
}), Zt = /* @__PURE__ */ k({
|
|
1660
1670
|
__name: "index",
|
|
1661
1671
|
props: {
|
|
1662
1672
|
multiple: {
|
|
@@ -1673,72 +1683,72 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1673
1683
|
}
|
|
1674
1684
|
},
|
|
1675
1685
|
emits: ["change", "update:value"],
|
|
1676
|
-
setup(v, { emit:
|
|
1677
|
-
const
|
|
1678
|
-
|
|
1679
|
-
const
|
|
1686
|
+
setup(v, { emit: r }) {
|
|
1687
|
+
const t = v, a = t.treeCtrl, o = O(), { errInfo: n, labelText: p } = o, d = r;
|
|
1688
|
+
o.inputEmit = d;
|
|
1689
|
+
const c = h([]), s = h();
|
|
1680
1690
|
$(
|
|
1681
|
-
() =>
|
|
1691
|
+
() => t.value,
|
|
1682
1692
|
(l) => {
|
|
1683
1693
|
s.value = l ?? null;
|
|
1684
1694
|
},
|
|
1685
1695
|
{ immediate: !0 }
|
|
1686
1696
|
), $(
|
|
1687
|
-
() =>
|
|
1697
|
+
() => a.data.value,
|
|
1688
1698
|
(l) => {
|
|
1689
|
-
l && (
|
|
1699
|
+
l && (c.value = a.fieldMap ? ee(a.fieldMap, l) : l);
|
|
1690
1700
|
},
|
|
1691
1701
|
{ immediate: !0 }
|
|
1692
1702
|
);
|
|
1693
1703
|
const u = (l) => {
|
|
1694
|
-
|
|
1704
|
+
t.multiple ? s.value = l ?? [] : s.value = l ?? "", d("change", s.value), d("update:value", s.value);
|
|
1695
1705
|
};
|
|
1696
|
-
return
|
|
1697
|
-
|
|
1706
|
+
return K(() => {
|
|
1707
|
+
a.fieldMap || (a.fieldMap = {
|
|
1698
1708
|
label: "Name",
|
|
1699
1709
|
key: "Id",
|
|
1700
1710
|
value: "Id"
|
|
1701
|
-
}),
|
|
1711
|
+
}), a.data.value ? c.value = a.fieldMap ? ee(a.fieldMap, a.data.value) : a.data.value : t.treeCtrl.autoload && De(t.treeCtrl);
|
|
1702
1712
|
}), (l, i) => {
|
|
1703
1713
|
var m;
|
|
1704
|
-
return
|
|
1714
|
+
return f(), _(e(pt), F({
|
|
1705
1715
|
class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
|
|
1706
1716
|
"tree-line": "",
|
|
1707
1717
|
multiple: v.multiple,
|
|
1708
1718
|
"tree-default-expanded-keys": ["-"],
|
|
1709
1719
|
value: s.value,
|
|
1710
1720
|
"onUpdate:value": i[0] || (i[0] = (x) => s.value = x),
|
|
1711
|
-
"tree-data":
|
|
1712
|
-
placeholder: "请选择" + e(
|
|
1721
|
+
"tree-data": c.value,
|
|
1722
|
+
placeholder: "请选择" + e(p),
|
|
1713
1723
|
"allow-clear": !0,
|
|
1714
1724
|
onChange: u
|
|
1715
1725
|
}, l.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
1716
1726
|
};
|
|
1717
1727
|
}
|
|
1718
|
-
}),
|
|
1728
|
+
}), Oa = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-64be74cc"]]), ea = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ta = { class: "flex w-full h-full min-h-full" }, aa = {
|
|
1719
1729
|
key: 0,
|
|
1720
1730
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
1721
|
-
},
|
|
1731
|
+
}, la = { class: "flex-1 h-full overflow-y-auto" }, Aa = /* @__PURE__ */ k({
|
|
1722
1732
|
__name: "index",
|
|
1723
1733
|
props: {
|
|
1724
1734
|
left: { type: Boolean }
|
|
1725
1735
|
},
|
|
1726
1736
|
setup(v) {
|
|
1727
|
-
const { useToken:
|
|
1728
|
-
return (
|
|
1729
|
-
b(e(
|
|
1737
|
+
const { useToken: r } = Be, { token: t } = r();
|
|
1738
|
+
return (a, o) => (f(), w("div", ea, [
|
|
1739
|
+
b(e(ft), {
|
|
1730
1740
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
1731
|
-
style:
|
|
1732
|
-
backgroundColor: e(
|
|
1741
|
+
style: ne({
|
|
1742
|
+
backgroundColor: e(t).colorBgContainer
|
|
1733
1743
|
})
|
|
1734
1744
|
}, {
|
|
1735
|
-
default:
|
|
1736
|
-
T("div",
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
])) :
|
|
1740
|
-
T("div",
|
|
1741
|
-
|
|
1745
|
+
default: g(() => [
|
|
1746
|
+
T("div", ta, [
|
|
1747
|
+
a.left ? (f(), w("div", aa, [
|
|
1748
|
+
B(a.$slots, "left")
|
|
1749
|
+
])) : C("", !0),
|
|
1750
|
+
T("div", la, [
|
|
1751
|
+
B(a.$slots, "default")
|
|
1742
1752
|
])
|
|
1743
1753
|
])
|
|
1744
1754
|
]),
|
|
@@ -1746,63 +1756,63 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1746
1756
|
}, 8, ["style"])
|
|
1747
1757
|
]));
|
|
1748
1758
|
}
|
|
1749
|
-
}),
|
|
1759
|
+
}), ra = { class: "font-['Courier'] text-[#666]" }, Ea = /* @__PURE__ */ k({
|
|
1750
1760
|
__name: "index",
|
|
1751
1761
|
setup(v) {
|
|
1752
|
-
const
|
|
1753
|
-
return
|
|
1762
|
+
const r = h("");
|
|
1763
|
+
return K(() => {
|
|
1754
1764
|
setInterval(() => {
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1765
|
+
const t = /* @__PURE__ */ new Date(), a = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = t.toLocaleString(void 0, a).replace(/\//g, "-").replace(",", "");
|
|
1766
|
+
r.value = t.getFullYear() + "-" + o;
|
|
1757
1767
|
}, 1e3);
|
|
1758
|
-
}), (
|
|
1768
|
+
}), (t, a) => (f(), w("div", ra, I(r.value), 1));
|
|
1759
1769
|
}
|
|
1760
1770
|
});
|
|
1761
1771
|
export {
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
+
Va as AppIcon,
|
|
1773
|
+
wa as AutoComplete,
|
|
1774
|
+
ja as Breadcrumb,
|
|
1775
|
+
z as Button,
|
|
1776
|
+
$a as Cascader,
|
|
1777
|
+
Sa as Checkbox,
|
|
1778
|
+
Aa as Content,
|
|
1779
|
+
Ta as DatePicker,
|
|
1780
|
+
Ea as Datetime,
|
|
1781
|
+
Ra as Dialog,
|
|
1772
1782
|
ha as Drawer,
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1783
|
+
xa as Form,
|
|
1784
|
+
ya as FormItem,
|
|
1785
|
+
ga as Fullscreen,
|
|
1786
|
+
Ha as Header,
|
|
1787
|
+
Wa as HeaderExits,
|
|
1788
|
+
Ct as Helper,
|
|
1789
|
+
Ja as Icon,
|
|
1790
|
+
Nt as Icontool,
|
|
1791
|
+
Vt as Input,
|
|
1792
|
+
Da as InputIcon,
|
|
1793
|
+
Ba as InputNumber,
|
|
1794
|
+
Ia as InputPassword,
|
|
1785
1795
|
_a as LayoutIcon,
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1796
|
+
Ga as Menu,
|
|
1797
|
+
Xa as MenuTabs,
|
|
1798
|
+
Za as ProjectIcon,
|
|
1799
|
+
Fa as PropEditor,
|
|
1800
|
+
Gt as Radio,
|
|
1801
|
+
Pa as RadioStatus,
|
|
1802
|
+
Ma as RangePicker,
|
|
1803
|
+
ba as Search,
|
|
1794
1804
|
le as SearchItem,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1805
|
+
Na as Select,
|
|
1806
|
+
Et as Switch,
|
|
1807
|
+
Ca as Table,
|
|
1808
|
+
Pt as TableOperate,
|
|
1809
|
+
za as Textarea,
|
|
1800
1810
|
Y as ToolIcon,
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1811
|
+
At as Toolbar,
|
|
1812
|
+
Qa as Tooltip,
|
|
1813
|
+
Xt as Transfer,
|
|
1814
|
+
Ka as TransferTable,
|
|
1805
1815
|
ka as Tree,
|
|
1806
|
-
|
|
1807
|
-
|
|
1816
|
+
Oa as TreeSelect,
|
|
1817
|
+
tl as UploadList
|
|
1808
1818
|
};
|