act-plus 1.1.37 → 1.1.39
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/act-plus.js +1 -1
- package/act-plus.umd.cjs +66 -66
- package/lib/{configBtns-091826d5.js → configBtns-728ef16d.js} +2 -2
- package/lib/{configFileds-fd5ea537.js → configFileds-9e744154.js} +2 -2
- package/lib/{configTable-2b7df811.js → configTable-416757c9.js} +1 -1
- package/lib/{dialogAddField-996920a1.js → dialogAddField-15d985a0.js} +2 -2
- package/lib/{dialogConfigBtn-f0ec7e97.js → dialogConfigBtn-2dff5fd1.js} +2 -2
- package/lib/{dialogInitConfig-fa84565d.js → dialogInitConfig-51ed8f7d.js} +1 -1
- package/lib/{dialogSiteComponentsParams-5dfa4493.js → dialogSiteComponentsParams-9c74c09e.js} +1 -1
- package/lib/index-049908aa.js +254 -0
- package/lib/index-12816422.js +376 -0
- package/lib/{index-e39ab51b.js → index-2a3f9431.js} +1 -1
- package/lib/{index-42b5a2b1.js → index-695e54dd.js} +21565 -21534
- package/lib/{index-32ede4ba.js → index-9532f747.js} +1 -1
- package/lib/{index-585f3f09.js → index-fced38e4.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-17a12636.js +0 -214
- package/lib/index-e31f5bfc.js +0 -341
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive as m, watch as b, resolveComponent as s, openBlock as v, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
|
|
2
|
-
import { _ as k, u as w } from "./index-
|
|
2
|
+
import { _ as k, u as w } from "./index-695e54dd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as d, watch as y, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
-
import { _ as P } from "./index-
|
|
2
|
+
import { _ as P } from "./index-695e54dd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.
|
|
1
|
+
@charset "UTF-8";.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-fcf1be94] .el-empty__image{width:100%}.table-link[data-v-fcf1be94]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-fcf1be94]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-fcf1be94]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-fcf1be94]{padding:0;margin:0;border:none}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3f4bfffb]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-e8e4dcb3] .el-form-item{margin-bottom:8px}.search-module-container[data-v-e8e4dcb3] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-e8e4dcb3]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-e8e4dcb3]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-e8e4dcb3]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-a1482076]{display:flex;align-items:center}.card-header-operate[data-v-a1482076]{margin-left:auto}.no-config[data-v-a1482076]{line-height:32px;font-weight:700}.no-config-field[data-v-a1482076]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-bc91dc45]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-bc91dc45]{display:flex;justify-content:center}.condition-box[data-v-bc91dc45] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-bc91dc45]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-bc91dc45]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{cursor:pointer;width:20px;height:20px}
|
package/lib/index-17a12636.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as j, inject as G, ref as g, watch as J, resolveComponent as s, resolveDirective as X, unref as l, openBlock as a, createElementBlock as h, createVNode as Z, normalizeStyle as ee, withCtx as m, Fragment as v, renderList as C, withDirectives as U, createBlock as u, mergeProps as y, withKeys as x, withModifiers as N, createCommentVNode as _, vShow as le, createTextVNode as P, toDisplayString as E } from "vue";
|
|
2
|
-
import { _ as te, u as oe, P as ae, a as re } from "./index-42b5a2b1.js";
|
|
3
|
-
import "vue-router";
|
|
4
|
-
import "js-base64";
|
|
5
|
-
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
|
-
const ne = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "search-module-container"
|
|
10
|
-
}, ue = {
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: {
|
|
13
|
-
data: { type: Object, default: () => ({}) }
|
|
14
|
-
},
|
|
15
|
-
emits: ["reset", "search"],
|
|
16
|
-
setup(D, { emit: M }) {
|
|
17
|
-
const Q = j(() => import("./index-42b5a2b1.js").then((r) => r.f)), { t: d } = oe(), c = G("getFieldUiProps"), k = M, i = D;
|
|
18
|
-
let p = g([]), q = g([]), V = g(!0);
|
|
19
|
-
const A = (r) => i.data.tableConfig.isExpandQuery && V.value ? i.data.tableConfig.tableQueryRowWidth > r + 1 : !0, R = (r) => {
|
|
20
|
-
p.value = (r || []).filter((o) => o.useScenes.includes("tableSearch"));
|
|
21
|
-
}, Y = (r) => {
|
|
22
|
-
const o = (r || []).filter((n) => n.permissionCode === 1001).map((n) => ({ ...n, loading: !1 }));
|
|
23
|
-
q.value = [...o, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
|
|
24
|
-
};
|
|
25
|
-
J(
|
|
26
|
-
() => i.data,
|
|
27
|
-
(r, o) => {
|
|
28
|
-
R(r.fields), Y(r.buttons);
|
|
29
|
-
},
|
|
30
|
-
{ immediate: !0 }
|
|
31
|
-
);
|
|
32
|
-
const f = (r) => {
|
|
33
|
-
switch (r.loading = !0, r.permissionCode) {
|
|
34
|
-
case "9999":
|
|
35
|
-
p.value.forEach((n) => {
|
|
36
|
-
n.fieldType.includes("&") ? n.queryValue = [] : n.queryValue = void 0;
|
|
37
|
-
}), k("reset", [], () => {
|
|
38
|
-
r.loading = !1;
|
|
39
|
-
});
|
|
40
|
-
break;
|
|
41
|
-
default:
|
|
42
|
-
const o = p.value.filter((n) => Array.isArray(n.queryValue) ? n.queryValue.length : !!n.queryValue);
|
|
43
|
-
k("search", o, () => {
|
|
44
|
-
r.loading = !1;
|
|
45
|
-
});
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
}, z = () => {
|
|
49
|
-
V.value = !V.value;
|
|
50
|
-
};
|
|
51
|
-
return (r, o) => {
|
|
52
|
-
var S;
|
|
53
|
-
const n = s("el-input"), F = s("el-option"), I = s("el-select"), L = s("el-select-v2"), O = s("el-cascader"), T = s("el-date-picker"), w = s("el-form-item"), B = s("a-svg-icon"), $ = s("el-button"), H = s("el-form"), W = X("debounce");
|
|
54
|
-
return l(p) && l(p).length ? (a(), h("div", ne, [
|
|
55
|
-
Z(H, {
|
|
56
|
-
style: ee({ "--table-query-row": i.data.tableConfig.tableQueryRowWidth }),
|
|
57
|
-
class: "form-content",
|
|
58
|
-
ref: "elForm",
|
|
59
|
-
"label-suffix": ":",
|
|
60
|
-
"label-position": "right"
|
|
61
|
-
}, {
|
|
62
|
-
default: m(() => [
|
|
63
|
-
(a(!0), h(v, null, C(l(p), (e, b) => U((a(), u(w, {
|
|
64
|
-
key: b,
|
|
65
|
-
class: "search-form-item",
|
|
66
|
-
"label-width": i.data.tableConfig.tableQueryLabelWidth,
|
|
67
|
-
label: e.fieldName
|
|
68
|
-
}, {
|
|
69
|
-
default: m(() => [
|
|
70
|
-
e.fieldType === "input" || e.fieldType === "editor" ? (a(), u(n, y({
|
|
71
|
-
key: 0,
|
|
72
|
-
modelValue: e.queryValue,
|
|
73
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
74
|
-
placeholder: `${l(d)("act.inputPlaceholder")}${e.fieldName}`,
|
|
75
|
-
clearable: "",
|
|
76
|
-
ref_for: !0
|
|
77
|
-
}, l(c)(e), {
|
|
78
|
-
onKeyup: o[0] || (o[0] = x(N((t) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
79
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
|
|
80
|
-
e.fieldType === "inputNumber" ? (a(), u(l(Q), y({
|
|
81
|
-
key: 1,
|
|
82
|
-
modelValue: e.queryValue,
|
|
83
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
84
|
-
placeholder: `${l(d)("act.inputPlaceholder")}${e.fieldName}`,
|
|
85
|
-
clearable: "",
|
|
86
|
-
onKeyup: o[1] || (o[1] = x(N((t) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
87
|
-
ref_for: !0
|
|
88
|
-
}, l(c)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), u(I, y({
|
|
89
|
-
key: 2,
|
|
90
|
-
modelValue: e.queryValue,
|
|
91
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
92
|
-
placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
93
|
-
clearable: "",
|
|
94
|
-
filterable: "",
|
|
95
|
-
ref_for: !0
|
|
96
|
-
}, l(c)(e), {
|
|
97
|
-
multiple: e.fieldType === "multipleSelect",
|
|
98
|
-
"collapse-tags": e.fieldType === "multipleSelect",
|
|
99
|
-
"collapse-tags-tooltip": e.fieldType === "multipleSelect",
|
|
100
|
-
onChange: o[2] || (o[2] = (t) => f({ permissionCode: 1001 }))
|
|
101
|
-
}), {
|
|
102
|
-
default: m(() => [
|
|
103
|
-
(a(!0), h(v, null, C(e.dataList, (t, K) => (a(), u(F, {
|
|
104
|
-
key: K,
|
|
105
|
-
label: t.key,
|
|
106
|
-
value: t.value
|
|
107
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
108
|
-
]),
|
|
109
|
-
_: 2
|
|
110
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), u(L, y({
|
|
111
|
-
key: 3,
|
|
112
|
-
modelValue: e.queryValue,
|
|
113
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
114
|
-
options: e.dataList,
|
|
115
|
-
props: { ...l(ae) },
|
|
116
|
-
placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
117
|
-
clearable: "",
|
|
118
|
-
filterable: "",
|
|
119
|
-
ref_for: !0
|
|
120
|
-
}, l(c)(e), {
|
|
121
|
-
"collapse-tags": e.fieldType === "virtualizedMultipleSelect",
|
|
122
|
-
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
123
|
-
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
124
|
-
onChange: o[3] || (o[3] = (t) => f({ permissionCode: 1001 }))
|
|
125
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), u(O, y({
|
|
126
|
-
key: 4,
|
|
127
|
-
modelValue: e.queryValue,
|
|
128
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
129
|
-
options: e.dataList,
|
|
130
|
-
props: { ...l(re), [e.fieldUiType]: !0 },
|
|
131
|
-
clearable: "",
|
|
132
|
-
filterable: "",
|
|
133
|
-
placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
134
|
-
ref_for: !0
|
|
135
|
-
}, l(c)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), u(T, y({
|
|
136
|
-
key: 5,
|
|
137
|
-
modelValue: e.queryValue,
|
|
138
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
139
|
-
type: "date",
|
|
140
|
-
placeholder: `${l(d)("act.selectPlaceholder")}${l(d)("act.time")}`,
|
|
141
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
142
|
-
ref_for: !0
|
|
143
|
-
}, l(c)(e), {
|
|
144
|
-
onChange: o[4] || (o[4] = (t) => f({ permissionCode: 1001 }))
|
|
145
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), u(T, y({
|
|
146
|
-
key: 6,
|
|
147
|
-
modelValue: e.queryValue,
|
|
148
|
-
"onUpdate:modelValue": (t) => e.queryValue = t,
|
|
149
|
-
type: "daterange",
|
|
150
|
-
"start-placeholder": l(d)("act.startTime"),
|
|
151
|
-
"end-placeholder": l(d)("act.endTime"),
|
|
152
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
153
|
-
ref_for: !0
|
|
154
|
-
}, l(c)(e), {
|
|
155
|
-
onChange: o[5] || (o[5] = (t) => f({ permissionCode: 1001 }))
|
|
156
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : _("", !0)
|
|
157
|
-
]),
|
|
158
|
-
_: 2
|
|
159
|
-
}, 1032, ["label-width", "label"])), [
|
|
160
|
-
[le, A(b)]
|
|
161
|
-
])), 128)),
|
|
162
|
-
l(p).length ? (a(), u(w, {
|
|
163
|
-
key: 0,
|
|
164
|
-
class: "search-form-btn",
|
|
165
|
-
"label-width": "0"
|
|
166
|
-
}, {
|
|
167
|
-
default: m(() => [
|
|
168
|
-
(a(!0), h(v, null, C(l(q), (e, b) => U((a(), u($, {
|
|
169
|
-
key: b,
|
|
170
|
-
type: e.btnColor,
|
|
171
|
-
loading: e.loading,
|
|
172
|
-
onClick: (t) => f(e)
|
|
173
|
-
}, {
|
|
174
|
-
default: m(() => [
|
|
175
|
-
e.btnIcon ? (a(), u(B, {
|
|
176
|
-
key: 0,
|
|
177
|
-
class: "mr6",
|
|
178
|
-
name: e.btnIcon,
|
|
179
|
-
width: "12",
|
|
180
|
-
height: "12",
|
|
181
|
-
color: "#fff"
|
|
182
|
-
}, null, 8, ["name"])) : _("", !0),
|
|
183
|
-
P(" " + E(e.btnName), 1)
|
|
184
|
-
]),
|
|
185
|
-
_: 2
|
|
186
|
-
}, 1032, ["type", "loading", "onClick"])), [
|
|
187
|
-
[W]
|
|
188
|
-
])), 128))
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
})) : _("", !0)
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}, 8, ["style"]),
|
|
195
|
-
i.data.tableConfig.isExpandQuery && ((S = l(p)) == null ? void 0 : S.length) > i.data.tableConfig.tableQueryRowWidth ? (a(), u($, {
|
|
196
|
-
key: 0,
|
|
197
|
-
class: "expand",
|
|
198
|
-
text: "",
|
|
199
|
-
size: "small",
|
|
200
|
-
icon: l(V) ? "ArrowDown" : "ArrowUp",
|
|
201
|
-
onClick: z
|
|
202
|
-
}, {
|
|
203
|
-
default: m(() => [
|
|
204
|
-
P(E(l(V) ? l(d)("act.expand") : l(d)("act.retract")), 1)
|
|
205
|
-
]),
|
|
206
|
-
_: 1
|
|
207
|
-
}, 8, ["icon"])) : _("", !0)
|
|
208
|
-
])) : _("", !0);
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}, ye = /* @__PURE__ */ te(ue, [["__scopeId", "data-v-39165fde"]]);
|
|
212
|
-
export {
|
|
213
|
-
ye as default
|
|
214
|
-
};
|
package/lib/index-e31f5bfc.js
DELETED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, inject as F, reactive as ge, ref as $, watch as Ve, resolveComponent as y, resolveDirective as H, openBlock as d, createBlock as n, withCtx as h, createElementVNode as W, createVNode as G, unref as l, createTextVNode as x, toDisplayString as N, withDirectives as J, createElementBlock as D, Fragment as w, renderList as A, mergeProps as _, createCommentVNode as Q, resolveDynamicComponent as Fe, isRef as Ce, toRaw as De } from "vue";
|
|
2
|
-
import { _ as Te, u as Ke, P as Ne, a as we } from "./index-42b5a2b1.js";
|
|
3
|
-
import { ElNotification as Ue } from "element-plus";
|
|
4
|
-
import "vue-router";
|
|
5
|
-
import "js-base64";
|
|
6
|
-
import "monaco-editor";
|
|
7
|
-
const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: {
|
|
10
|
-
visible: { type: Boolean, default: !1 },
|
|
11
|
-
title: { type: String, default: "" },
|
|
12
|
-
data: { type: Object, default: () => ({}) }
|
|
13
|
-
},
|
|
14
|
-
emits: ["update:visible", "refresh"],
|
|
15
|
-
setup(T, { emit: X }) {
|
|
16
|
-
const Z = K(() => import("./index-42b5a2b1.js").then((o) => o.f)), I = K(() => import("./index-585f3f09.js")), ee = K(() => import("./index-42b5a2b1.js").then((o) => o.e)), le = K(() => import("./index-42b5a2b1.js").then((o) => o.d)), { t: u } = Ke(), M = F("request"), oe = F("loadComponents"), q = F("formatDataType"), E = F("globalProps"), ae = F("stringToBoolean"), b = F("getFieldUiProps"), te = F("disposeRequestData"), O = X, f = T;
|
|
17
|
-
let g = ge((() => ({
|
|
18
|
-
dialogLoading: !1,
|
|
19
|
-
btnLoading: !1
|
|
20
|
-
}))()), U = $([]), t = $({}), k = $(null), de = {};
|
|
21
|
-
const se = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, re = (o) => {
|
|
22
|
-
if (["input", "textarea"].includes(o.fieldType))
|
|
23
|
-
return "blur";
|
|
24
|
-
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
25
|
-
return "change";
|
|
26
|
-
}, ie = (o) => {
|
|
27
|
-
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
28
|
-
return [];
|
|
29
|
-
}, ne = (o, c) => {
|
|
30
|
-
if (["string"].includes(c))
|
|
31
|
-
return o.join(";");
|
|
32
|
-
if (["number"].includes(c))
|
|
33
|
-
return Number(o);
|
|
34
|
-
if (["array"].includes(c))
|
|
35
|
-
return o;
|
|
36
|
-
}, ce = (o) => {
|
|
37
|
-
if (["multipleSelect"].includes(o.fieldType))
|
|
38
|
-
return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
|
|
39
|
-
if (["dateRange"].includes(o.fieldType)) {
|
|
40
|
-
const m = o.fieldKey.split("&");
|
|
41
|
-
return f.data.rowData[o.fieldKey] = m.map((i) => f.data.rowData[i]), f.data.rowData[o.fieldKey];
|
|
42
|
-
}
|
|
43
|
-
let c = f.data.rowData[o.fieldKey];
|
|
44
|
-
if (["select", "virtualizedSelect"].includes(o.fieldType)) {
|
|
45
|
-
const m = b(o);
|
|
46
|
-
o.dataList && typeof o.dataList[0][m["value-key"] ? m["value-key"] : "value"] == "string" && (c = c.toString());
|
|
47
|
-
}
|
|
48
|
-
return (c === "true" || c === "false") && (c = ae(c)), c;
|
|
49
|
-
}, ue = (o) => M({ url: f.data.dataItem.requestUrl, method: "post", data: o });
|
|
50
|
-
Ve(
|
|
51
|
-
() => f.visible,
|
|
52
|
-
async (o, c) => {
|
|
53
|
-
if (o)
|
|
54
|
-
try {
|
|
55
|
-
g.dialogLoading = !0;
|
|
56
|
-
const m = await te(f.data.formList, f.data.rowData, !1, !0);
|
|
57
|
-
f.data.formList.sort((i, p) => i.sort - p.sort).forEach(async (i) => {
|
|
58
|
-
const p = m.find((r) => i.fieldName == r.fieldName && i.fieldKey == r.fieldKey);
|
|
59
|
-
p && (i.dataList = (p == null ? void 0 : p.dataList) ?? []), de[i.fieldKey] = { submitFieldType: i.fieldSubmitType, isFormSetValue: i.isFormSetValue }, t.value[i.fieldKey] = Object.keys(f.data.rowData).length && i.isFormSetValue ? ce(i) : ie(i.fieldType);
|
|
60
|
-
const { isFiledCustom: C, customComponentName: V, customComponentUrl: s } = i.customFiledsComponentes;
|
|
61
|
-
if (C && !i.customFiledsComponentes[V]) {
|
|
62
|
-
const r = await oe(s, V);
|
|
63
|
-
i.customFiledsComponentes[V] = r;
|
|
64
|
-
}
|
|
65
|
-
}), console.log(f.data.formList), U.value = f.data.formList || [], g.dialogLoading = !1;
|
|
66
|
-
} catch {
|
|
67
|
-
g.dialogLoading = !1, ƒ;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
const fe = (o) => {
|
|
72
|
-
L(), o();
|
|
73
|
-
}, L = () => {
|
|
74
|
-
U.value = [], k.value.resetFields(), O("update:visible", !1);
|
|
75
|
-
}, pe = (o) => {
|
|
76
|
-
o && o.validate((c) => {
|
|
77
|
-
if (c) {
|
|
78
|
-
g.btnLoading = !0;
|
|
79
|
-
const { dataItem: m, rowData: i } = f.data;
|
|
80
|
-
let p = { ...De(t.value) };
|
|
81
|
-
Object.keys(p).forEach((s) => {
|
|
82
|
-
s.includes("&") ? s.split("&").forEach((v, P) => {
|
|
83
|
-
p[v] = p[s][P];
|
|
84
|
-
}) : Array.isArray(p[s]) && (p[s] = ne(p[s], "string"));
|
|
85
|
-
});
|
|
86
|
-
const C = m.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), V = m.submitFields.filter((s) => s.matchType == "match").reduce((s, r) => (Reflect.has(r, "submitFieldMatchOrigin") && r.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, r.submitFieldMatchOrigin) && (s[r.submitFieldName] = q(r.submitFieldType, E.matchData[r.submitFieldMatchOrigin][r.matchFieldName])) : s[r.submitFieldName] = q(r.submitFieldType, i[r.matchFieldName]), s), {});
|
|
87
|
-
ue({
|
|
88
|
-
...p,
|
|
89
|
-
...C,
|
|
90
|
-
...V
|
|
91
|
-
}).then((s) => {
|
|
92
|
-
try {
|
|
93
|
-
Ue({ title: u("act.tip"), message: u("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
|
|
94
|
-
} catch (r) {
|
|
95
|
-
console.error(r);
|
|
96
|
-
}
|
|
97
|
-
g.btnLoading = !1;
|
|
98
|
-
}).catch((s) => {
|
|
99
|
-
console.error(s), g.btnLoading = !1;
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
return (o, c) => {
|
|
105
|
-
var B;
|
|
106
|
-
const m = y("el-input"), i = y("el-option"), p = y("el-select"), C = y("el-select-v2"), V = y("el-date-picker"), s = y("el-cascader"), r = y("el-switch"), v = y("el-form-item"), P = y("el-col"), me = y("el-row"), ye = y("el-form"), Y = y("el-button"), be = y("el-dialog"), _e = H("loading"), he = H("debounce");
|
|
107
|
-
return d(), n(be, {
|
|
108
|
-
"model-value": f.visible,
|
|
109
|
-
title: f.title,
|
|
110
|
-
top: "5vh",
|
|
111
|
-
width: (B = T.data.formConfig) == null ? void 0 : B.dialogWidth,
|
|
112
|
-
draggable: "",
|
|
113
|
-
overflow: "",
|
|
114
|
-
"append-to-body": "",
|
|
115
|
-
"destroy-on-close": "",
|
|
116
|
-
"close-on-click-modal": !1,
|
|
117
|
-
"before-close": fe
|
|
118
|
-
}, {
|
|
119
|
-
footer: h(() => [
|
|
120
|
-
W("span", Le, [
|
|
121
|
-
G(Y, {
|
|
122
|
-
loading: l(g).btnLoading,
|
|
123
|
-
onClick: L
|
|
124
|
-
}, {
|
|
125
|
-
default: h(() => [
|
|
126
|
-
x(N(l(u)("act.cancel")), 1)
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 8, ["loading"]),
|
|
130
|
-
J((d(), n(Y, {
|
|
131
|
-
type: "primary",
|
|
132
|
-
loading: l(g).btnLoading,
|
|
133
|
-
onClick: c[1] || (c[1] = (S) => pe(l(k)))
|
|
134
|
-
}, {
|
|
135
|
-
default: h(() => [
|
|
136
|
-
x(N(l(u)("act.save")), 1)
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["loading"])), [
|
|
140
|
-
[he]
|
|
141
|
-
])
|
|
142
|
-
])
|
|
143
|
-
]),
|
|
144
|
-
default: h(() => {
|
|
145
|
-
var S, j;
|
|
146
|
-
return [
|
|
147
|
-
J((d(), n(ye, {
|
|
148
|
-
ref_key: "formRef",
|
|
149
|
-
ref: k,
|
|
150
|
-
model: l(t),
|
|
151
|
-
"label-suffix": ":",
|
|
152
|
-
"label-width": (S = T.data.formConfig) == null ? void 0 : S.formLabelWidth,
|
|
153
|
-
"label-position": (j = T.data.formConfig) == null ? void 0 : j.formLabelPosition
|
|
154
|
-
}, {
|
|
155
|
-
default: h(() => [
|
|
156
|
-
G(me, { gutter: 40 }, {
|
|
157
|
-
default: h(() => [
|
|
158
|
-
(d(!0), D(w, null, A(l(U), (e, z) => (d(), n(P, {
|
|
159
|
-
span: se(e),
|
|
160
|
-
key: z
|
|
161
|
-
}, {
|
|
162
|
-
default: h(() => [
|
|
163
|
-
e.customFiledsComponentes.isFiledCustom ? (d(), D(w, { key: 1 }, [
|
|
164
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), n(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
165
|
-
key: 0,
|
|
166
|
-
fieldCofnigItem: e,
|
|
167
|
-
rowData: f.data.rowData,
|
|
168
|
-
form: l(t),
|
|
169
|
-
"onUpdate:form": c[0] || (c[0] = (a) => Ce(t) ? t.value = a : t = a)
|
|
170
|
-
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
|
|
171
|
-
class: "no-config",
|
|
172
|
-
key: z
|
|
173
|
-
}, [
|
|
174
|
-
W("span", ke, "【" + N(e.fieldName) + "】", 1),
|
|
175
|
-
x(N(l(u)("act.fieldCustom")), 1)
|
|
176
|
-
]))
|
|
177
|
-
], 64)) : (d(), n(v, {
|
|
178
|
-
key: 0,
|
|
179
|
-
label: e.fieldName,
|
|
180
|
-
prop: e.fieldKey,
|
|
181
|
-
rules: [{ required: e.isFormFieldRequired, message: l(u)("act.requiredMessage"), trigger: re(e) }]
|
|
182
|
-
}, {
|
|
183
|
-
default: h(() => [
|
|
184
|
-
e.fieldType === "input" ? (d(), n(m, _({
|
|
185
|
-
key: 0,
|
|
186
|
-
modelValue: l(t)[e.fieldKey],
|
|
187
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
188
|
-
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
189
|
-
clearable: "",
|
|
190
|
-
ref_for: !0
|
|
191
|
-
}, l(b)(e), {
|
|
192
|
-
disabled: e.isFormDisabled
|
|
193
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : Q("", !0),
|
|
194
|
-
e.fieldType === "inputNumber" ? (d(), n(l(Z), _({
|
|
195
|
-
key: 1,
|
|
196
|
-
modelValue: l(t)[e.fieldKey],
|
|
197
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
198
|
-
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
199
|
-
clearable: "",
|
|
200
|
-
ref_for: !0
|
|
201
|
-
}, l(b)(e), {
|
|
202
|
-
disabled: e.isFormDisabled
|
|
203
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), n(m, _({
|
|
204
|
-
key: 2,
|
|
205
|
-
modelValue: l(t)[e.fieldKey],
|
|
206
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
207
|
-
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
208
|
-
rows: 4,
|
|
209
|
-
ref_for: !0
|
|
210
|
-
}, l(b)(e), {
|
|
211
|
-
type: "textarea",
|
|
212
|
-
disabled: e.isFormDisabled
|
|
213
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), n(l(I), _({
|
|
214
|
-
key: 3,
|
|
215
|
-
modelValue: l(t)[e.fieldKey],
|
|
216
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
217
|
-
icons: e.dataList,
|
|
218
|
-
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
219
|
-
ref_for: !0
|
|
220
|
-
}, l(b)(e), {
|
|
221
|
-
disabled: e.isFormDisabled
|
|
222
|
-
}), {
|
|
223
|
-
default: h(() => [
|
|
224
|
-
(d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
|
|
225
|
-
key: R,
|
|
226
|
-
label: a.key,
|
|
227
|
-
value: a.value
|
|
228
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
229
|
-
]),
|
|
230
|
-
_: 2
|
|
231
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), n(p, _({
|
|
232
|
-
key: 4,
|
|
233
|
-
modelValue: l(t)[e.fieldKey],
|
|
234
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
235
|
-
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
236
|
-
clearable: "",
|
|
237
|
-
filterable: "",
|
|
238
|
-
ref_for: !0
|
|
239
|
-
}, l(b)(e), {
|
|
240
|
-
multiple: e.fieldType === "multipleSelect",
|
|
241
|
-
disabled: e.isFormDisabled
|
|
242
|
-
}), {
|
|
243
|
-
default: h(() => [
|
|
244
|
-
(d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
|
|
245
|
-
key: R,
|
|
246
|
-
label: a.key,
|
|
247
|
-
value: a.value
|
|
248
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
249
|
-
]),
|
|
250
|
-
_: 2
|
|
251
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), n(C, _({
|
|
252
|
-
key: 5,
|
|
253
|
-
modelValue: l(t)[e.fieldKey],
|
|
254
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
255
|
-
options: e.dataList,
|
|
256
|
-
props: { ...l(Ne) },
|
|
257
|
-
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
258
|
-
clearable: "",
|
|
259
|
-
filterable: "",
|
|
260
|
-
ref_for: !0
|
|
261
|
-
}, l(b)(e), {
|
|
262
|
-
disabled: e.isFormDisabled,
|
|
263
|
-
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
264
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), n(V, _({
|
|
265
|
-
key: 6,
|
|
266
|
-
modelValue: l(t)[e.fieldKey],
|
|
267
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
268
|
-
type: "date",
|
|
269
|
-
placeholder: `${l(u)("act.selectPlaceholder")}${l(u)("act.time")}`,
|
|
270
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
271
|
-
ref_for: !0
|
|
272
|
-
}, l(b)(e), {
|
|
273
|
-
disabled: e.isFormDisabled
|
|
274
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), n(V, _({
|
|
275
|
-
key: 7,
|
|
276
|
-
modelValue: l(t)[e.fieldKey],
|
|
277
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
278
|
-
type: "daterange",
|
|
279
|
-
"start-placeholder": l(u)("act.startTime"),
|
|
280
|
-
"end-placeholder": l(u)("act.endTime"),
|
|
281
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
282
|
-
ref_for: !0
|
|
283
|
-
}, l(b)(e), {
|
|
284
|
-
disabled: e.isFormDisabled
|
|
285
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), n(s, _({
|
|
286
|
-
key: 8,
|
|
287
|
-
modelValue: l(t)[e.fieldKey],
|
|
288
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
289
|
-
options: e.dataList,
|
|
290
|
-
props: l(we),
|
|
291
|
-
clearable: "",
|
|
292
|
-
filterable: "",
|
|
293
|
-
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
294
|
-
ref_for: !0
|
|
295
|
-
}, l(b)(e), {
|
|
296
|
-
disabled: e.isFormDisabled
|
|
297
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), n(r, {
|
|
298
|
-
key: 9,
|
|
299
|
-
modelValue: l(t)[e.fieldKey],
|
|
300
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
301
|
-
"active-value": !0,
|
|
302
|
-
"inactive-value": !1
|
|
303
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), n(l(ee), _({
|
|
304
|
-
key: 10,
|
|
305
|
-
class: "form-upload",
|
|
306
|
-
modelValue: l(t)[e.fieldKey],
|
|
307
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
308
|
-
request: l(M),
|
|
309
|
-
ref_for: !0
|
|
310
|
-
}, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), n(l(le), _({
|
|
311
|
-
key: 11,
|
|
312
|
-
modelValue: l(t)[e.fieldKey],
|
|
313
|
-
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
314
|
-
disabled: e.isFormDisabled,
|
|
315
|
-
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
316
|
-
ref_for: !0
|
|
317
|
-
}, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
|
|
318
|
-
]),
|
|
319
|
-
_: 2
|
|
320
|
-
}, 1032, ["label", "prop", "rules"]))
|
|
321
|
-
]),
|
|
322
|
-
_: 2
|
|
323
|
-
}, 1032, ["span"]))), 128))
|
|
324
|
-
]),
|
|
325
|
-
_: 1
|
|
326
|
-
})
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}, 8, ["model", "label-width", "label-position"])), [
|
|
330
|
-
[_e, l(g).dialogLoading]
|
|
331
|
-
])
|
|
332
|
-
];
|
|
333
|
-
}),
|
|
334
|
-
_: 1
|
|
335
|
-
}, 8, ["model-value", "title", "width"]);
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
}, qe = /* @__PURE__ */ Te(ve, [["__scopeId", "data-v-898d1774"]]);
|
|
339
|
-
export {
|
|
340
|
-
qe as default
|
|
341
|
-
};
|