act-plus 1.0.3 → 1.1.2
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 +9 -9
- package/lib/{configBtns-8f8a2510.js → configBtns-930e1f41.js} +2 -2
- package/lib/{configFileds-1fdc39d4.js → configFileds-cb40d54d.js} +2 -2
- package/lib/{configTable-f5bdd5fc.js → configTable-dab2bbe5.js} +68 -65
- package/lib/{dialogAddField-b0a162f5.js → dialogAddField-2763fb68.js} +37 -42
- package/lib/{dialogConfigBtn-7f410c08.js → dialogConfigBtn-37e737c3.js} +1 -1
- package/lib/{index-1c08d835.js → index-fe5fbd14.js} +292 -291
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as U, reactive as M, ref as g, provide as D, watch as T, resolveComponent as m, openBlock as W, createBlock as A, withCtx as s, createVNode as b, unref as i, isRef as F, createTextVNode as I, toDisplayString as O, pushScopeId as j, popScopeId as z, createElementVNode as x } from "vue";
|
|
2
|
-
import { _ as E, g as P, a as H } from "./index-
|
|
2
|
+
import { _ as E, g as P, a as H } from "./index-fe5fbd14.js";
|
|
3
3
|
import { useRoute as K } from "vue-router";
|
|
4
4
|
const $ = (r) => (j("data-v-148598b5"), r = r(), z(), r), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
|
|
5
5
|
/* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
|
|
@@ -10,7 +10,7 @@ const $ = (r) => (j("data-v-148598b5"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:modelValue"],
|
|
12
12
|
setup(r, { expose: V, emit: Q }) {
|
|
13
|
-
const h = K(), L = U(() => import("./dialogConfigBtn-
|
|
13
|
+
const h = K(), L = U(() => import("./dialogConfigBtn-37e737c3.js")), d = r, w = () => ({
|
|
14
14
|
sort: 0,
|
|
15
15
|
permissionCode: null,
|
|
16
16
|
requestUrl: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as o, createElementVNode as C, createVNode as d, createTextVNode as i, unref as r, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
|
|
2
2
|
import { a as J } from "./enum-99519ce0.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-fe5fbd14.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
const Q = (u) => (Y("data-v-4087a081"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
|
|
6
6
|
__name: "configFileds",
|
|
@@ -9,7 +9,7 @@ const Q = (u) => (Y("data-v-4087a081"), u = u(), G(), u), X = { class: "card-hea
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue"],
|
|
11
11
|
setup(u, { emit: v }) {
|
|
12
|
-
const F = I(() => import("./dialogAddField-
|
|
12
|
+
const F = I(() => import("./dialogAddField-2763fb68.js")), g = v, h = u, V = H("configData")();
|
|
13
13
|
let l = U((() => ({
|
|
14
14
|
tableLoading: !1,
|
|
15
15
|
showAddFieldDialog: !1,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { S as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { inject as L, ref as v, watch as W, resolveComponent as s, openBlock as m, createBlock as c, withCtx as l, createVNode as e, unref as o, createTextVNode as I, createElementBlock as g, Fragment as U, renderList as P, createCommentVNode as F } from "vue";
|
|
2
|
+
import { S as M } from "./enum-99519ce0.js";
|
|
3
|
+
import { _ as Q } from "./index-fe5fbd14.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
const
|
|
5
|
+
const A = {
|
|
6
6
|
__name: "configTable",
|
|
7
7
|
props: {
|
|
8
8
|
modelValue: { type: Object, default: () => ({}) }
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue"],
|
|
11
|
-
setup(
|
|
12
|
-
const x =
|
|
11
|
+
setup(S, { expose: R, emit: D }) {
|
|
12
|
+
const x = S, O = () => ({
|
|
13
13
|
dataUrl: void 0,
|
|
14
14
|
defaultParams: [],
|
|
15
15
|
isCheckRow: !1,
|
|
@@ -18,17 +18,17 @@ const Q = {
|
|
|
18
18
|
isSort: !0,
|
|
19
19
|
tableOperateCellWidth: 120,
|
|
20
20
|
pageSize: 10
|
|
21
|
-
}), N =
|
|
22
|
-
let
|
|
23
|
-
|
|
21
|
+
}), N = L("conditionList")();
|
|
22
|
+
let h = v(null), a = v(O());
|
|
23
|
+
W(
|
|
24
24
|
() => x.modelValue,
|
|
25
|
-
(
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
25
|
+
(i, d) => {
|
|
26
|
+
if (i) {
|
|
27
|
+
const p = { ...i, defaultParams: [...i.defaultParams || []] };
|
|
28
|
+
if (!p.dataUrl)
|
|
29
29
|
return;
|
|
30
30
|
Object.keys(a.value).forEach((u) => {
|
|
31
|
-
["defaultParams"].includes(u) ? a.value[u] = [...
|
|
31
|
+
["defaultParams"].includes(u) ? a.value[u] = [...p[u] || []] : a.value[u] = p[u];
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -36,28 +36,30 @@ const Q = {
|
|
|
36
36
|
);
|
|
37
37
|
const q = () => {
|
|
38
38
|
a.value.defaultParams.push({ submitFieldName: "", defaultValue: "", matchValue: "", submitFieldType: "" });
|
|
39
|
-
}, z = (
|
|
40
|
-
a.value.defaultParams.splice(
|
|
39
|
+
}, z = (i) => {
|
|
40
|
+
a.value.defaultParams.splice(i, 1);
|
|
41
|
+
}, B = (i) => {
|
|
42
|
+
i || (a.value.pageSize = 10);
|
|
41
43
|
};
|
|
42
|
-
return
|
|
43
|
-
const
|
|
44
|
-
return m(),
|
|
44
|
+
return R({ formRef: h, form: a }), (i, d) => {
|
|
45
|
+
const p = s("el-input"), u = s("el-form-item"), r = s("el-col"), _ = s("el-row"), y = s("el-button"), w = s("el-divider"), k = s("el-option"), C = s("el-select"), b = s("el-switch"), T = s("el-input-number"), j = s("el-form"), E = s("el-card");
|
|
46
|
+
return m(), c(E, {
|
|
45
47
|
class: "form-card",
|
|
46
48
|
shadow: "hover",
|
|
47
49
|
header: "表格配置"
|
|
48
50
|
}, {
|
|
49
51
|
default: l(() => [
|
|
50
|
-
e(
|
|
52
|
+
e(j, {
|
|
51
53
|
ref_key: "formRef",
|
|
52
|
-
ref:
|
|
54
|
+
ref: h,
|
|
53
55
|
model: o(a),
|
|
54
56
|
"label-suffix": ":",
|
|
55
57
|
"label-width": "110px"
|
|
56
58
|
}, {
|
|
57
59
|
default: l(() => [
|
|
58
|
-
e(
|
|
60
|
+
e(_, null, {
|
|
59
61
|
default: l(() => [
|
|
60
|
-
e(
|
|
62
|
+
e(r, { span: 24 }, {
|
|
61
63
|
default: l(() => [
|
|
62
64
|
e(u, {
|
|
63
65
|
label: "表格数据url",
|
|
@@ -65,9 +67,9 @@ const Q = {
|
|
|
65
67
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }]
|
|
66
68
|
}, {
|
|
67
69
|
default: l(() => [
|
|
68
|
-
e(
|
|
70
|
+
e(p, {
|
|
69
71
|
modelValue: o(a).dataUrl,
|
|
70
|
-
"onUpdate:modelValue":
|
|
72
|
+
"onUpdate:modelValue": d[0] || (d[0] = (t) => o(a).dataUrl = t),
|
|
71
73
|
placeholder: "请输入",
|
|
72
74
|
clearable: ""
|
|
73
75
|
}, null, 8, ["modelValue"])
|
|
@@ -82,8 +84,8 @@ const Q = {
|
|
|
82
84
|
}),
|
|
83
85
|
e(w, { "content-position": "left" }, {
|
|
84
86
|
default: l(() => [
|
|
85
|
-
|
|
86
|
-
e(
|
|
87
|
+
I(" 表格默认参数配置 "),
|
|
88
|
+
e(y, {
|
|
87
89
|
class: "add-icon-btn",
|
|
88
90
|
type: "primary",
|
|
89
91
|
icon: "Plus",
|
|
@@ -93,12 +95,12 @@ const Q = {
|
|
|
93
95
|
]),
|
|
94
96
|
_: 1
|
|
95
97
|
}),
|
|
96
|
-
(m(!0), g(U, null,
|
|
98
|
+
(m(!0), g(U, null, P(o(a).defaultParams, (t, f) => (m(), c(_, {
|
|
97
99
|
class: "table-post-params",
|
|
98
100
|
key: f
|
|
99
101
|
}, {
|
|
100
102
|
default: l(() => [
|
|
101
|
-
e(
|
|
103
|
+
e(r, { span: 12 }, {
|
|
102
104
|
default: l(() => [
|
|
103
105
|
e(u, {
|
|
104
106
|
label: "字段",
|
|
@@ -106,9 +108,9 @@ const Q = {
|
|
|
106
108
|
prop: "defaultParams." + f + ".submitFieldName"
|
|
107
109
|
}, {
|
|
108
110
|
default: l(() => [
|
|
109
|
-
e(
|
|
111
|
+
e(p, {
|
|
110
112
|
modelValue: t.submitFieldName,
|
|
111
|
-
"onUpdate:modelValue": (
|
|
113
|
+
"onUpdate:modelValue": (n) => t.submitFieldName = n,
|
|
112
114
|
placeholder: "请输入",
|
|
113
115
|
clearable: ""
|
|
114
116
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -118,7 +120,7 @@ const Q = {
|
|
|
118
120
|
]),
|
|
119
121
|
_: 2
|
|
120
122
|
}, 1024),
|
|
121
|
-
e(
|
|
123
|
+
e(r, { span: 12 }, {
|
|
122
124
|
default: l(() => [
|
|
123
125
|
e(u, {
|
|
124
126
|
label: "匹配条件",
|
|
@@ -128,16 +130,16 @@ const Q = {
|
|
|
128
130
|
default: l(() => [
|
|
129
131
|
e(C, {
|
|
130
132
|
modelValue: t.matchValue,
|
|
131
|
-
"onUpdate:modelValue": (
|
|
133
|
+
"onUpdate:modelValue": (n) => t.matchValue = n,
|
|
132
134
|
placeholder: "请选择",
|
|
133
135
|
filterable: "",
|
|
134
136
|
clearable: ""
|
|
135
137
|
}, {
|
|
136
138
|
default: l(() => [
|
|
137
|
-
(m(!0), g(U, null,
|
|
139
|
+
(m(!0), g(U, null, P(o(N), (n, V) => (m(), c(k, {
|
|
138
140
|
key: V,
|
|
139
|
-
label:
|
|
140
|
-
value:
|
|
141
|
+
label: n.key,
|
|
142
|
+
value: n.value
|
|
141
143
|
}, null, 8, ["label", "value"]))), 128))
|
|
142
144
|
]),
|
|
143
145
|
_: 2
|
|
@@ -148,7 +150,7 @@ const Q = {
|
|
|
148
150
|
]),
|
|
149
151
|
_: 2
|
|
150
152
|
}, 1024),
|
|
151
|
-
e(
|
|
153
|
+
e(r, { span: 12 }, {
|
|
152
154
|
default: l(() => [
|
|
153
155
|
e(u, {
|
|
154
156
|
label: "默认值",
|
|
@@ -156,9 +158,9 @@ const Q = {
|
|
|
156
158
|
prop: "defaultParams." + f + ".defaultValue"
|
|
157
159
|
}, {
|
|
158
160
|
default: l(() => [
|
|
159
|
-
e(
|
|
161
|
+
e(p, {
|
|
160
162
|
modelValue: t.defaultValue,
|
|
161
|
-
"onUpdate:modelValue": (
|
|
163
|
+
"onUpdate:modelValue": (n) => t.defaultValue = n,
|
|
162
164
|
placeholder: "请输入",
|
|
163
165
|
clearable: ""
|
|
164
166
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -168,7 +170,7 @@ const Q = {
|
|
|
168
170
|
]),
|
|
169
171
|
_: 2
|
|
170
172
|
}, 1024),
|
|
171
|
-
e(
|
|
173
|
+
e(r, { span: 12 }, {
|
|
172
174
|
default: l(() => [
|
|
173
175
|
e(u, {
|
|
174
176
|
label: "提交类型",
|
|
@@ -178,16 +180,16 @@ const Q = {
|
|
|
178
180
|
default: l(() => [
|
|
179
181
|
e(C, {
|
|
180
182
|
modelValue: t.submitFieldType,
|
|
181
|
-
"onUpdate:modelValue": (
|
|
183
|
+
"onUpdate:modelValue": (n) => t.submitFieldType = n,
|
|
182
184
|
placeholder: "请选择",
|
|
183
185
|
filterable: "",
|
|
184
186
|
clearable: ""
|
|
185
187
|
}, {
|
|
186
188
|
default: l(() => [
|
|
187
|
-
(m(!0), g(U, null,
|
|
189
|
+
(m(!0), g(U, null, P(o(M), (n, V) => (m(), c(k, {
|
|
188
190
|
key: V,
|
|
189
|
-
label:
|
|
190
|
-
value:
|
|
191
|
+
label: n.key,
|
|
192
|
+
value: n.value
|
|
191
193
|
}, null, 8, ["label", "value"]))), 128))
|
|
192
194
|
]),
|
|
193
195
|
_: 2
|
|
@@ -199,17 +201,17 @@ const Q = {
|
|
|
199
201
|
_: 2
|
|
200
202
|
}, 1024),
|
|
201
203
|
e(w, { "content-position": "left" }),
|
|
202
|
-
e(
|
|
204
|
+
e(r, {
|
|
203
205
|
class: "submit-operate",
|
|
204
206
|
span: 2
|
|
205
207
|
}, {
|
|
206
208
|
default: l(() => [
|
|
207
|
-
e(
|
|
209
|
+
e(y, {
|
|
208
210
|
class: "match-opreate",
|
|
209
211
|
type: "danger",
|
|
210
212
|
icon: "Minus",
|
|
211
213
|
circle: "",
|
|
212
|
-
onClick: (
|
|
214
|
+
onClick: (n) => z(f)
|
|
213
215
|
}, null, 8, ["onClick"])
|
|
214
216
|
]),
|
|
215
217
|
_: 2
|
|
@@ -217,15 +219,15 @@ const Q = {
|
|
|
217
219
|
]),
|
|
218
220
|
_: 2
|
|
219
221
|
}, 1024))), 128)),
|
|
220
|
-
e(
|
|
222
|
+
e(_, null, {
|
|
221
223
|
default: l(() => [
|
|
222
|
-
e(
|
|
224
|
+
e(r, { span: 4 }, {
|
|
223
225
|
default: l(() => [
|
|
224
226
|
e(u, { label: "多选列" }, {
|
|
225
227
|
default: l(() => [
|
|
226
228
|
e(b, {
|
|
227
229
|
modelValue: o(a).isCheckRow,
|
|
228
|
-
"onUpdate:modelValue":
|
|
230
|
+
"onUpdate:modelValue": d[1] || (d[1] = (t) => o(a).isCheckRow = t)
|
|
229
231
|
}, null, 8, ["modelValue"])
|
|
230
232
|
]),
|
|
231
233
|
_: 1
|
|
@@ -233,13 +235,13 @@ const Q = {
|
|
|
233
235
|
]),
|
|
234
236
|
_: 1
|
|
235
237
|
}),
|
|
236
|
-
e(
|
|
238
|
+
e(r, { span: 4 }, {
|
|
237
239
|
default: l(() => [
|
|
238
240
|
e(u, { label: "操作列" }, {
|
|
239
241
|
default: l(() => [
|
|
240
242
|
e(b, {
|
|
241
243
|
modelValue: o(a).isOperateRow,
|
|
242
|
-
"onUpdate:modelValue":
|
|
244
|
+
"onUpdate:modelValue": d[2] || (d[2] = (t) => o(a).isOperateRow = t)
|
|
243
245
|
}, null, 8, ["modelValue"])
|
|
244
246
|
]),
|
|
245
247
|
_: 1
|
|
@@ -247,13 +249,14 @@ const Q = {
|
|
|
247
249
|
]),
|
|
248
250
|
_: 1
|
|
249
251
|
}),
|
|
250
|
-
e(
|
|
252
|
+
e(r, { span: 4 }, {
|
|
251
253
|
default: l(() => [
|
|
252
254
|
e(u, { label: "分页" }, {
|
|
253
255
|
default: l(() => [
|
|
254
256
|
e(b, {
|
|
255
257
|
modelValue: o(a).isPagination,
|
|
256
|
-
"onUpdate:modelValue":
|
|
258
|
+
"onUpdate:modelValue": d[3] || (d[3] = (t) => o(a).isPagination = t),
|
|
259
|
+
onChange: B
|
|
257
260
|
}, null, 8, ["modelValue"])
|
|
258
261
|
]),
|
|
259
262
|
_: 1
|
|
@@ -261,13 +264,13 @@ const Q = {
|
|
|
261
264
|
]),
|
|
262
265
|
_: 1
|
|
263
266
|
}),
|
|
264
|
-
e(
|
|
267
|
+
e(r, { span: 4 }, {
|
|
265
268
|
default: l(() => [
|
|
266
269
|
e(u, { label: "排序" }, {
|
|
267
270
|
default: l(() => [
|
|
268
271
|
e(b, {
|
|
269
272
|
modelValue: o(a).isSort,
|
|
270
|
-
"onUpdate:modelValue":
|
|
273
|
+
"onUpdate:modelValue": d[4] || (d[4] = (t) => o(a).isSort = t)
|
|
271
274
|
}, null, 8, ["modelValue"])
|
|
272
275
|
]),
|
|
273
276
|
_: 1
|
|
@@ -278,9 +281,9 @@ const Q = {
|
|
|
278
281
|
]),
|
|
279
282
|
_: 1
|
|
280
283
|
}),
|
|
281
|
-
e(
|
|
284
|
+
e(_, null, {
|
|
282
285
|
default: l(() => [
|
|
283
|
-
o(a).isOperateRow ? (m(),
|
|
286
|
+
o(a).isOperateRow ? (m(), c(r, {
|
|
284
287
|
key: 0,
|
|
285
288
|
span: 8
|
|
286
289
|
}, {
|
|
@@ -289,7 +292,7 @@ const Q = {
|
|
|
289
292
|
default: l(() => [
|
|
290
293
|
e(T, {
|
|
291
294
|
modelValue: o(a).tableOperateCellWidth,
|
|
292
|
-
"onUpdate:modelValue":
|
|
295
|
+
"onUpdate:modelValue": d[5] || (d[5] = (t) => o(a).tableOperateCellWidth = t),
|
|
293
296
|
min: 120
|
|
294
297
|
}, null, 8, ["modelValue"])
|
|
295
298
|
]),
|
|
@@ -297,8 +300,8 @@ const Q = {
|
|
|
297
300
|
})
|
|
298
301
|
]),
|
|
299
302
|
_: 1
|
|
300
|
-
})) :
|
|
301
|
-
o(a).isPagination ? (m(),
|
|
303
|
+
})) : F("", !0),
|
|
304
|
+
o(a).isPagination ? (m(), c(r, {
|
|
302
305
|
key: 1,
|
|
303
306
|
span: 8
|
|
304
307
|
}, {
|
|
@@ -311,7 +314,7 @@ const Q = {
|
|
|
311
314
|
default: l(() => [
|
|
312
315
|
e(T, {
|
|
313
316
|
modelValue: o(a).pageSize,
|
|
314
|
-
"onUpdate:modelValue":
|
|
317
|
+
"onUpdate:modelValue": d[6] || (d[6] = (t) => o(a).pageSize = t),
|
|
315
318
|
min: 10
|
|
316
319
|
}, null, 8, ["modelValue"])
|
|
317
320
|
]),
|
|
@@ -319,7 +322,7 @@ const Q = {
|
|
|
319
322
|
})
|
|
320
323
|
]),
|
|
321
324
|
_: 1
|
|
322
|
-
})) :
|
|
325
|
+
})) : F("", !0)
|
|
323
326
|
]),
|
|
324
327
|
_: 1
|
|
325
328
|
})
|
|
@@ -331,7 +334,7 @@ const Q = {
|
|
|
331
334
|
});
|
|
332
335
|
};
|
|
333
336
|
}
|
|
334
|
-
},
|
|
337
|
+
}, J = /* @__PURE__ */ Q(A, [["__scopeId", "data-v-d076a8dc"]]);
|
|
335
338
|
export {
|
|
336
|
-
|
|
339
|
+
J as default
|
|
337
340
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { inject as E, reactive as ne, ref as D, watch as re, resolveComponent as V, openBlock as n, createBlock as i, withCtx as a, createElementVNode as H, createVNode as l, unref as o, createTextVNode as U, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as
|
|
2
|
-
import { a as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { inject as E, reactive as ne, ref as D, watch as re, resolveComponent as V, openBlock as n, createBlock as i, withCtx as a, createElementVNode as H, createVNode as l, unref as o, createTextVNode as U, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as se } from "vue";
|
|
2
|
+
import { a as ie, j as me, P as pe, k as A, T as fe, A as be, C as ce, U as _e } from "./enum-99519ce0.js";
|
|
3
|
+
import { _ as Ve } from "./index-fe5fbd14.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
const
|
|
5
|
+
const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
|
|
6
6
|
__name: "dialogAddField",
|
|
7
7
|
props: {
|
|
8
8
|
visible: { type: Boolean, default: !1 },
|
|
@@ -10,8 +10,8 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
10
10
|
data: { type: Object, default: () => ({}) }
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:visible", "refresh"],
|
|
13
|
-
setup(
|
|
14
|
-
const x =
|
|
13
|
+
setup(L, { emit: K }) {
|
|
14
|
+
const x = K, k = L, M = E("configData")();
|
|
15
15
|
let F = ne((() => ({
|
|
16
16
|
btnLoading: !1
|
|
17
17
|
}))());
|
|
@@ -42,14 +42,14 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
42
42
|
isTableCellOverflowTooltip: !0,
|
|
43
43
|
isTableCellSort: !0
|
|
44
44
|
});
|
|
45
|
-
let
|
|
46
|
-
const
|
|
45
|
+
let N = _e, h = D(null), t = D(O());
|
|
46
|
+
const R = E("pageKey")(), W = E("conditionList")(), I = () => ["select", "multipleSelect", "treeSelect", "provinceCascade", "switch"].includes(t.value.fieldType), Q = () => t.value.useScenes.includes("tableSearch") && t.value.fieldType !== "time", Y = () => t.value.useScenes.includes("tableShow"), $ = () => !t.value.fieldKey.includes("&"), B = () => t.value.useScenes.includes("tableCustomHeader"), j = () => t.value.useScenes.filter((b) => !["tableSearch", "tableShow"].includes(b)).length;
|
|
47
47
|
re(
|
|
48
48
|
() => k.visible,
|
|
49
49
|
async (b, u) => {
|
|
50
50
|
if (b) {
|
|
51
|
-
const p = (
|
|
52
|
-
|
|
51
|
+
const p = (M.value.buttons || []).filter((d) => d.permissionCode != 1001).map((d) => ({ key: d.btnName, value: d.permissionCode }));
|
|
52
|
+
N.some((d) => {
|
|
53
53
|
if (d.label === "表单配置")
|
|
54
54
|
return d.options = p, !0;
|
|
55
55
|
});
|
|
@@ -62,7 +62,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
62
62
|
return {
|
|
63
63
|
btnName: f.key,
|
|
64
64
|
permissionCode: f.value,
|
|
65
|
-
pageKey:
|
|
65
|
+
pageKey: R.value,
|
|
66
66
|
customComponentName: void 0,
|
|
67
67
|
customComponentUrl: void 0,
|
|
68
68
|
isFiledCustom: !1,
|
|
@@ -80,11 +80,11 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
80
80
|
}, z = (b) => {
|
|
81
81
|
t.value.postRequestParams = [];
|
|
82
82
|
}, X = (b) => {
|
|
83
|
-
const u =
|
|
83
|
+
const u = N.find((p) => p.label === "表单配置").options;
|
|
84
84
|
t.value.formCustomComponentes = u.filter((p) => b.includes(p.value)).map((p) => ({
|
|
85
85
|
btnName: p.key,
|
|
86
86
|
permissionCode: p.value,
|
|
87
|
-
pageKey:
|
|
87
|
+
pageKey: R,
|
|
88
88
|
customComponentName: void 0,
|
|
89
89
|
customComponentUrl: void 0,
|
|
90
90
|
isFiledCustom: !1
|
|
@@ -103,7 +103,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
return (b, u) => {
|
|
106
|
-
const p = V("el-input"), r = V("el-form-item"), d = V("el-col"), f = V("el-option"), C = V("el-select"), y = V("el-row"),
|
|
106
|
+
const p = V("el-input"), r = V("el-form-item"), d = V("el-col"), f = V("el-option"), C = V("el-select"), y = V("el-row"), q = V("el-button"), v = V("el-divider"), ae = V("el-option-group"), S = V("el-switch"), te = V("el-input-number"), oe = V("el-form"), ue = V("el-scrollbar"), de = V("el-dialog");
|
|
107
107
|
return n(), i(de, {
|
|
108
108
|
"model-value": k.visible,
|
|
109
109
|
title: k.title,
|
|
@@ -115,8 +115,8 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
115
115
|
"before-close": ee
|
|
116
116
|
}, {
|
|
117
117
|
footer: a(() => [
|
|
118
|
-
H("span",
|
|
119
|
-
l(
|
|
118
|
+
H("span", Ce, [
|
|
119
|
+
l(q, {
|
|
120
120
|
onClick: w,
|
|
121
121
|
loading: o(F).btnLoading
|
|
122
122
|
}, {
|
|
@@ -125,7 +125,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
127
|
}, 8, ["loading"]),
|
|
128
|
-
l(
|
|
128
|
+
l(q, {
|
|
129
129
|
type: "primary",
|
|
130
130
|
loading: o(F).btnLoading,
|
|
131
131
|
onClick: u[22] || (u[22] = (e) => le(o(h)))
|
|
@@ -217,7 +217,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
217
217
|
style: { width: "200px" }
|
|
218
218
|
}, {
|
|
219
219
|
default: a(() => [
|
|
220
|
-
(n(!0), c(_, null, g(o(
|
|
220
|
+
(n(!0), c(_, null, g(o(ie), (e) => (n(), i(f, {
|
|
221
221
|
key: e.value,
|
|
222
222
|
label: e.key,
|
|
223
223
|
value: e.value
|
|
@@ -237,7 +237,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
237
237
|
]),
|
|
238
238
|
_: 1
|
|
239
239
|
}),
|
|
240
|
-
|
|
240
|
+
I() ? (n(), i(y, { key: 0 }, {
|
|
241
241
|
default: a(() => [
|
|
242
242
|
l(d, { span: 24 }, {
|
|
243
243
|
default: a(() => [
|
|
@@ -261,7 +261,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
261
261
|
onChange: z
|
|
262
262
|
}, {
|
|
263
263
|
default: a(() => [
|
|
264
|
-
(n(!0), c(_, null, g(o(
|
|
264
|
+
(n(!0), c(_, null, g(o(me), (e) => (n(), i(f, {
|
|
265
265
|
key: e.value,
|
|
266
266
|
label: e.key,
|
|
267
267
|
value: e.value
|
|
@@ -285,7 +285,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
285
285
|
l(v, { "content-position": "left" }, {
|
|
286
286
|
default: a(() => [
|
|
287
287
|
U(" POST参数配置 "),
|
|
288
|
-
l(
|
|
288
|
+
l(q, {
|
|
289
289
|
class: "add-icon-btn",
|
|
290
290
|
type: "primary",
|
|
291
291
|
icon: "Plus",
|
|
@@ -339,7 +339,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
339
339
|
style: { width: "120px" }
|
|
340
340
|
}, {
|
|
341
341
|
default: a(() => [
|
|
342
|
-
(n(!0), c(_, null, g(o(
|
|
342
|
+
(n(!0), c(_, null, g(o(pe), (m, P) => (n(), i(f, {
|
|
343
343
|
key: P,
|
|
344
344
|
label: m.key,
|
|
345
345
|
value: m.value
|
|
@@ -372,7 +372,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
372
372
|
clearable: ""
|
|
373
373
|
}, {
|
|
374
374
|
default: a(() => [
|
|
375
|
-
(n(!0), c(_, null, g(o(
|
|
375
|
+
(n(!0), c(_, null, g(o(A), (m, P) => (n(), i(f, {
|
|
376
376
|
key: P,
|
|
377
377
|
label: m.key,
|
|
378
378
|
value: m.value
|
|
@@ -391,7 +391,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
391
391
|
span: 2
|
|
392
392
|
}, {
|
|
393
393
|
default: a(() => [
|
|
394
|
-
l(
|
|
394
|
+
l(q, {
|
|
395
395
|
class: "match-opreate",
|
|
396
396
|
type: "danger",
|
|
397
397
|
icon: "Minus",
|
|
@@ -425,7 +425,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
425
425
|
onChange: X
|
|
426
426
|
}, {
|
|
427
427
|
default: a(() => [
|
|
428
|
-
(n(!0), c(_, null, g(o(
|
|
428
|
+
(n(!0), c(_, null, g(o(N), (e) => (n(), i(ae, {
|
|
429
429
|
key: e.label,
|
|
430
430
|
label: e.label
|
|
431
431
|
}, {
|
|
@@ -450,7 +450,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
450
450
|
]),
|
|
451
451
|
_: 1
|
|
452
452
|
}),
|
|
453
|
-
|
|
453
|
+
Q() ? (n(), i(y, { key: 2 }, {
|
|
454
454
|
default: a(() => [
|
|
455
455
|
l(v, { "content-position": "left" }, {
|
|
456
456
|
default: a(() => [
|
|
@@ -474,7 +474,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
474
474
|
filterable: ""
|
|
475
475
|
}, {
|
|
476
476
|
default: a(() => [
|
|
477
|
-
(n(!0), c(_, null, g(o(
|
|
477
|
+
(n(!0), c(_, null, g(o(W), (e, s) => (n(), i(f, {
|
|
478
478
|
key: s,
|
|
479
479
|
label: e.key,
|
|
480
480
|
value: e.value
|
|
@@ -491,7 +491,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
491
491
|
]),
|
|
492
492
|
_: 1
|
|
493
493
|
})) : T("", !0),
|
|
494
|
-
|
|
494
|
+
Y() ? (n(), i(y, { key: 3 }, {
|
|
495
495
|
default: a(() => [
|
|
496
496
|
l(v, { "content-position": "left" }, {
|
|
497
497
|
default: a(() => [
|
|
@@ -520,7 +520,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
520
520
|
style: { width: "100px" }
|
|
521
521
|
}, {
|
|
522
522
|
default: a(() => [
|
|
523
|
-
(n(!0), c(_, null, g(o(
|
|
523
|
+
(n(!0), c(_, null, g(o(fe), (e, s) => (n(), i(f, {
|
|
524
524
|
key: s,
|
|
525
525
|
label: e.key,
|
|
526
526
|
value: e.value
|
|
@@ -553,7 +553,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
553
553
|
filterable: ""
|
|
554
554
|
}, {
|
|
555
555
|
default: a(() => [
|
|
556
|
-
(n(!0), c(_, null, g(o(
|
|
556
|
+
(n(!0), c(_, null, g(o(be), (e, s) => (n(), i(f, {
|
|
557
557
|
key: s,
|
|
558
558
|
label: e.key,
|
|
559
559
|
value: e.value
|
|
@@ -583,7 +583,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
583
583
|
filterable: ""
|
|
584
584
|
}, {
|
|
585
585
|
default: a(() => [
|
|
586
|
-
(n(!0), c(_, null, g(o(
|
|
586
|
+
(n(!0), c(_, null, g(o(ce), (e, s) => (n(), i(f, {
|
|
587
587
|
key: s,
|
|
588
588
|
label: e.key,
|
|
589
589
|
value: e.value
|
|
@@ -649,12 +649,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
649
649
|
"onUpdate:modelValue": u[14] || (u[14] = (e) => o(t).customTableHeaderName = e),
|
|
650
650
|
placeholder: "请输入组件名",
|
|
651
651
|
clearable: ""
|
|
652
|
-
},
|
|
653
|
-
prepend: a(() => [
|
|
654
|
-
U(A(o(q)), 1)
|
|
655
|
-
]),
|
|
656
|
-
_: 1
|
|
657
|
-
}, 8, ["modelValue"])
|
|
652
|
+
}, null, 8, ["modelValue"])
|
|
658
653
|
]),
|
|
659
654
|
_: 1
|
|
660
655
|
})
|
|
@@ -762,7 +757,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
762
757
|
clearable: ""
|
|
763
758
|
}, {
|
|
764
759
|
default: a(() => [
|
|
765
|
-
(n(!0), c(_, null, g(o(
|
|
760
|
+
(n(!0), c(_, null, g(o(A), (e, s) => (n(), i(f, {
|
|
766
761
|
key: s,
|
|
767
762
|
label: e.key,
|
|
768
763
|
value: e.value
|
|
@@ -863,8 +858,8 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
863
858
|
clearable: ""
|
|
864
859
|
}, {
|
|
865
860
|
default: a(() => [
|
|
866
|
-
H("template",
|
|
867
|
-
U(
|
|
861
|
+
H("template", ge, [
|
|
862
|
+
U(se(o(R)), 1)
|
|
868
863
|
])
|
|
869
864
|
]),
|
|
870
865
|
_: 2
|
|
@@ -913,7 +908,7 @@ const Ve = { slot: "prepend" }, ge = { class: "dialog-footer" }, Ce = {
|
|
|
913
908
|
}, 8, ["model-value", "title"]);
|
|
914
909
|
};
|
|
915
910
|
}
|
|
916
|
-
},
|
|
911
|
+
}, Fe = /* @__PURE__ */ Ve(ye, [["__scopeId", "data-v-b6d31fba"]]);
|
|
917
912
|
export {
|
|
918
|
-
|
|
913
|
+
Fe as default
|
|
919
914
|
};
|