act-plus 1.1.34 → 1.1.35
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 +58 -58
- package/lib/{configBtns-5904b50e.js → configBtns-b466947f.js} +45 -42
- package/lib/{configFileds-e6a87785.js → configFileds-f0231b08.js} +2 -2
- package/lib/{configTable-2d2e447b.js → configTable-3ed8b3cd.js} +1 -1
- package/lib/{dialogAddField-956517f7.js → dialogAddField-17e1aa96.js} +2 -2
- package/lib/{dialogConfigBtn-a674c036.js → dialogConfigBtn-666a5a33.js} +2 -2
- package/lib/{dialogSiteComponentsParams-5b882068.js → dialogSiteComponentsParams-9831d8a6.js} +1 -1
- package/lib/{index-b9e046e9.js → index-49f864eb.js} +1 -1
- package/lib/{index-4567bcd5.js → index-71efc775.js} +1 -1
- package/lib/{index-daace5c5.js → index-75b07771.js} +58 -58
- package/lib/{index-cb3083b6.js → index-adf3ff12.js} +12396 -12393
- package/lib/{index-7abb8f31.js → index-b0157be1.js} +1 -1
- package/lib/{index-85d03e1a.js → index-b7ef2e32.js} +76 -76
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as
|
|
1
|
+
import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as D, watch as j, resolveComponent as m, openBlock as F, createBlock as z, withCtx as d, createVNode as f, unref as l, isRef as E, createTextVNode as x, toDisplayString as P, pushScopeId as H, popScopeId as K, createElementVNode as L } from "vue";
|
|
2
2
|
import { useRoute as $ } from "vue-router";
|
|
3
|
-
import { _ as G } from "./index-
|
|
3
|
+
import { _ as G } from "./index-adf3ff12.js";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
6
6
|
import "monaco-editor";
|
|
7
|
-
const J = (u) => (H("data-v-
|
|
7
|
+
const J = (u) => (H("data-v-862782ff"), u = u(), K(), u), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ L("div", { class: "card-header" }, [
|
|
8
8
|
/* @__PURE__ */ L("div", { class: "card-header-title" }, "按钮配置")
|
|
9
9
|
], -1)), X = {
|
|
10
10
|
__name: "configBtns",
|
|
@@ -13,7 +13,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
15
|
setup(u, { expose: V, emit: Y }) {
|
|
16
|
-
const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-
|
|
16
|
+
const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-666a5a33.js")), p = u, w = () => ({
|
|
17
17
|
sort: 0,
|
|
18
18
|
permissionCode: null,
|
|
19
19
|
requestUrl: "",
|
|
@@ -38,7 +38,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
38
38
|
tableLoading: !1,
|
|
39
39
|
showConfigBtnDialog: !1,
|
|
40
40
|
dialogData: {}
|
|
41
|
-
}))()), v = g(null), y = 0, B = [],
|
|
41
|
+
}))()), v = g(null), y = 0, B = [], s = g([]), M = [
|
|
42
42
|
{ prop: "checkbox", width: 60 },
|
|
43
43
|
{ prop: "serialNumber", width: 80 },
|
|
44
44
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -48,39 +48,42 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
48
48
|
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
49
49
|
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
50
50
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
51
|
-
],
|
|
52
|
-
const N = (e) => C({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), S = (e) => C({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), k = (e,
|
|
53
|
-
|
|
51
|
+
], b = g([]);
|
|
52
|
+
const N = (e) => C({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), S = (e) => C({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), k = (e, a) => {
|
|
53
|
+
s.value.includes(e.permissionCode) || s.value.push(e.permissionCode), Object.assign(b.value[y], e), a(!0);
|
|
54
54
|
}, R = async (e) => {
|
|
55
55
|
try {
|
|
56
56
|
n.tableLoading = !0;
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
let _ = w(),
|
|
60
|
-
return { ..._, ...
|
|
61
|
-
}).sort((
|
|
62
|
-
} catch (
|
|
63
|
-
n.tableLoading = !1, console.error(
|
|
57
|
+
const a = p.id ? p.id : h.params.id, { data: i } = await S({ id: a });
|
|
58
|
+
s.value = (i || []).filter((o) => (e || []).some((r) => r.permissionCode == o.unique)).map((o) => o.unique), b.value = (i || []).map((o, r) => {
|
|
59
|
+
let _ = w(), c = (e || []).find((t) => t.permissionCode == o.unique) || {};
|
|
60
|
+
return { ..._, btnIcon: o.icon || "", ...c, btnName: o.name, permissionCode: o.unique, sort: c.sort ? c.sort : (r + 1) * 10 };
|
|
61
|
+
}).sort((o, r) => o.sort - r.sort), n.tableLoading = !1;
|
|
62
|
+
} catch (a) {
|
|
63
|
+
n.tableLoading = !1, console.error(a);
|
|
64
64
|
}
|
|
65
65
|
}, A = () => v.value.getSelectionRows() || [];
|
|
66
|
-
|
|
67
|
-
() =>
|
|
68
|
-
async (e,
|
|
66
|
+
D("associationMenuList", B), D("createDefaultButtonItem", w), j(
|
|
67
|
+
() => p.modelValue,
|
|
68
|
+
async (e, a) => {
|
|
69
69
|
try {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
if (e.length) {
|
|
71
|
+
const i = p.id ? p.id : h.params.id;
|
|
72
|
+
B = (await N({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await R(e);
|
|
73
|
+
} else
|
|
74
|
+
s.value = [], b.value = [];
|
|
75
|
+
} catch (i) {
|
|
76
|
+
n.tableLoading = !1, console.error(i);
|
|
74
77
|
}
|
|
75
78
|
},
|
|
76
|
-
{ deep: !0
|
|
79
|
+
{ deep: !0 }
|
|
77
80
|
);
|
|
78
81
|
const U = (e) => {
|
|
79
82
|
n.dialogData = e.row, y = e.$index, n.showConfigBtnDialog = !0;
|
|
80
83
|
};
|
|
81
|
-
return V({ getTableSelectionRows: A }), (e,
|
|
82
|
-
const
|
|
83
|
-
return F(), z(
|
|
84
|
+
return V({ getTableSelectionRows: A }), (e, a) => {
|
|
85
|
+
const i = m("el-tag"), o = m("el-input-number"), r = m("el-button"), _ = m("a-table"), c = m("el-card");
|
|
86
|
+
return F(), z(c, {
|
|
84
87
|
class: "form-card",
|
|
85
88
|
shadow: "hover"
|
|
86
89
|
}, {
|
|
@@ -88,19 +91,19 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
88
91
|
Q
|
|
89
92
|
]),
|
|
90
93
|
default: d(() => [
|
|
91
|
-
|
|
94
|
+
f(_, {
|
|
92
95
|
ref_key: "tableRef",
|
|
93
96
|
ref: v,
|
|
94
|
-
loading:
|
|
97
|
+
loading: l(n).tableLoading,
|
|
95
98
|
rowKey: "permissionCode",
|
|
96
|
-
selection:
|
|
97
|
-
"onUpdate:selection":
|
|
98
|
-
headers:
|
|
99
|
-
data:
|
|
99
|
+
selection: l(s),
|
|
100
|
+
"onUpdate:selection": a[0] || (a[0] = (t) => E(s) ? s.value = t : s = t),
|
|
101
|
+
headers: l(M),
|
|
102
|
+
data: l(b),
|
|
100
103
|
showPagination: !1
|
|
101
104
|
}, {
|
|
102
105
|
isCustomBtn: d(({ scope: t }) => [
|
|
103
|
-
|
|
106
|
+
f(i, {
|
|
104
107
|
type: "primary",
|
|
105
108
|
effect: "dark",
|
|
106
109
|
size: "small"
|
|
@@ -112,19 +115,19 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
112
115
|
}, 1024)
|
|
113
116
|
]),
|
|
114
117
|
sort: d(({ scope: t }) => [
|
|
115
|
-
|
|
118
|
+
f(o, {
|
|
116
119
|
modelValue: t.row.sort,
|
|
117
|
-
"onUpdate:modelValue": (
|
|
120
|
+
"onUpdate:modelValue": (I) => t.row.sort = I,
|
|
118
121
|
min: 0
|
|
119
122
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
120
123
|
]),
|
|
121
124
|
operate: d(({ scope: t }) => [
|
|
122
|
-
|
|
125
|
+
f(r, {
|
|
123
126
|
type: "primary",
|
|
124
127
|
text: "",
|
|
125
128
|
size: "small",
|
|
126
129
|
icon: "Aim",
|
|
127
|
-
onClick: (
|
|
130
|
+
onClick: (I) => U(t)
|
|
128
131
|
}, {
|
|
129
132
|
default: d(() => [
|
|
130
133
|
x(" 配置 ")
|
|
@@ -134,11 +137,11 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
134
137
|
]),
|
|
135
138
|
_: 1
|
|
136
139
|
}, 8, ["loading", "selection", "headers", "data"]),
|
|
137
|
-
|
|
138
|
-
visible:
|
|
139
|
-
"onUpdate:visible":
|
|
140
|
+
f(l(q), {
|
|
141
|
+
visible: l(n).showConfigBtnDialog,
|
|
142
|
+
"onUpdate:visible": a[1] || (a[1] = (t) => l(n).showConfigBtnDialog = t),
|
|
140
143
|
title: "配置按钮",
|
|
141
|
-
data:
|
|
144
|
+
data: l(n).dialogData,
|
|
142
145
|
onRefresh: k
|
|
143
146
|
}, null, 8, ["visible", "data"])
|
|
144
147
|
]),
|
|
@@ -146,7 +149,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
146
149
|
});
|
|
147
150
|
};
|
|
148
151
|
}
|
|
149
|
-
}, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-
|
|
152
|
+
}, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-862782ff"]]);
|
|
150
153
|
export {
|
|
151
154
|
ie as default
|
|
152
155
|
};
|
|
@@ -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 a, 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-95788c42.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-adf3ff12.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "element-plus";
|
|
@@ -12,7 +12,7 @@ const Q = (u) => (Y("data-v-3440b427"), u = u(), G(), u), X = { class: "card-hea
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
14
|
setup(u, { emit: v }) {
|
|
15
|
-
const F = I(() => import("./dialogAddField-
|
|
15
|
+
const F = I(() => import("./dialogAddField-17e1aa96.js")), g = v, b = u, V = H("configData")();
|
|
16
16
|
let l = U((() => ({
|
|
17
17
|
tableLoading: !1,
|
|
18
18
|
showAddFieldDialog: !1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject as z, ref as T, watch as j, resolveComponent as i, openBlock as s, createBlock as b, withCtx as l, createVNode as e, unref as u, createTextVNode as B, createElementBlock as y, Fragment as U, renderList as w, createCommentVNode as x } from "vue";
|
|
2
2
|
import { S as I } from "./enum-95788c42.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-adf3ff12.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "element-plus";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as de, inject as E, reactive as se, ref as A, watch as ie, resolveComponent as g, openBlock as n, createBlock as m, withCtx as a, createElementVNode as H, createVNode as l, unref as o, createTextVNode as S, createElementBlock as b, Fragment as c, renderList as C, createCommentVNode as V, toDisplayString as me } from "vue";
|
|
2
2
|
import { a as pe, j as fe, P as be, k as L, T as ce, A as _e, C as ge, U as Ce } from "./enum-95788c42.js";
|
|
3
|
-
import { _ as ye } from "./index-
|
|
3
|
+
import { _ as ye } from "./index-adf3ff12.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "element-plus";
|
|
@@ -14,7 +14,7 @@ const Ve = { slot: "prepend" }, Te = { class: "dialog-footer" }, Se = {
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:visible", "refresh"],
|
|
16
16
|
setup(K, { emit: M }) {
|
|
17
|
-
const I = de(() => import("./dialogSiteComponentsParams-
|
|
17
|
+
const I = de(() => import("./dialogSiteComponentsParams-9831d8a6.js")), D = M, F = K, N = E("pageKey")(), x = E("conditionList")(), W = E("configData")();
|
|
18
18
|
let U = se((() => ({
|
|
19
19
|
btnLoading: !1,
|
|
20
20
|
showSiteComponentsParamsDialog: !1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as N, computed as oe, reactive as ue, ref as B, watch as ne, resolveComponent as y, openBlock as n, createBlock as m, withCtx as l, createElementVNode as de, createVNode as e, unref as o, createTextVNode as U, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
|
|
2
2
|
import { B as re, b as se, c as ie, d as me, e as pe, f as ce, g as be, h as fe, i as _e } from "./enum-95788c42.js";
|
|
3
3
|
import { useRoute as ge } from "vue-router";
|
|
4
|
-
import { _ as Ve } from "./index-
|
|
4
|
+
import { _ as Ve } from "./index-adf3ff12.js";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import "monaco-editor";
|
|
@@ -14,7 +14,7 @@ const ye = { class: "dialog-footer" }, he = {
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:visible", "refresh"],
|
|
16
16
|
setup(x, { emit: P }) {
|
|
17
|
-
const E = O(() => import("./index-
|
|
17
|
+
const E = O(() => import("./index-b0157be1.js")), D = O(() => import("./index-adf3ff12.js").then((p) => p.i)), W = ge(), R = N("request"), I = P, T = x, Y = oe(() => W.params.key);
|
|
18
18
|
let k = ue((() => ({
|
|
19
19
|
btnLoading: !1
|
|
20
20
|
}))());
|
package/lib/{dialogSiteComponentsParams-5b882068.js → dialogSiteComponentsParams-9831d8a6.js}
RENAMED
|
@@ -8,7 +8,7 @@ const S = { class: "dialog-footer" }, N = {
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:visible", "refresh", "update:modelValue"],
|
|
10
10
|
setup(m, { emit: f }) {
|
|
11
|
-
const v = g(() => import("./index-
|
|
11
|
+
const v = g(() => import("./index-adf3ff12.js").then((t) => t.i)), n = f, o = m;
|
|
12
12
|
let e = y();
|
|
13
13
|
C(
|
|
14
14
|
() => o.visible,
|
|
@@ -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-adf3ff12.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 R, inject as l, watch as j, resolveComponent as C, openBlock as r, createElementBlock as f, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
|
|
2
|
-
import { _ as H, u as M } from "./index-
|
|
2
|
+
import { _ as H, u as M } from "./index-adf3ff12.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, inject as
|
|
2
|
-
import { _ as Ce, u as De, P as Te, a as Ke } from "./index-
|
|
3
|
-
import { ElNotification as
|
|
1
|
+
import { defineAsyncComponent as K, inject as g, reactive as ye, ref as R, watch as be, resolveComponent as m, resolveDirective as _e, openBlock as d, createBlock as i, withCtx as h, createElementVNode as W, createVNode as x, unref as l, createTextVNode as A, toDisplayString as N, withDirectives as he, createElementBlock as D, Fragment as U, renderList as M, mergeProps as b, createCommentVNode as G, resolveDynamicComponent as Ve, isRef as ge, toRaw as Fe } from "vue";
|
|
2
|
+
import { _ as Ce, u as De, P as Te, a as Ke } from "./index-adf3ff12.js";
|
|
3
|
+
import { ElNotification as Ne } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "monaco-editor";
|
|
7
|
-
const
|
|
7
|
+
const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
10
10
|
visible: { type: Boolean, default: !1 },
|
|
@@ -13,11 +13,11 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
15
|
setup(T, { emit: J }) {
|
|
16
|
-
const Q = K(() => import("./index-
|
|
17
|
-
let
|
|
16
|
+
const Q = K(() => import("./index-adf3ff12.js").then((o) => o.f)), X = K(() => import("./index-b0157be1.js")), Z = K(() => import("./index-adf3ff12.js").then((o) => o.e)), I = K(() => import("./index-adf3ff12.js").then((o) => o.d)), { t: c } = De(), E = g("request"), ee = g("loadComponents"), O = g("formatDataType"), q = g("globalProps"), le = g("stringToBoolean"), y = g("getFieldUiProps"), Y = J, f = T;
|
|
17
|
+
let F = ye((() => ({
|
|
18
18
|
btnLoading: !1
|
|
19
|
-
}))()),
|
|
20
|
-
const
|
|
19
|
+
}))()), w = R([]), t = R({}), k = R(null), oe = {};
|
|
20
|
+
const ae = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, te = (o) => {
|
|
21
21
|
if (["input", "textarea"].includes(o.fieldType))
|
|
22
22
|
return "blur";
|
|
23
23
|
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
@@ -32,65 +32,65 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
32
32
|
return Number(o);
|
|
33
33
|
if (["array"].includes(u))
|
|
34
34
|
return o;
|
|
35
|
-
},
|
|
35
|
+
}, se = (o) => {
|
|
36
36
|
if (["multipleSelect"].includes(o.fieldType))
|
|
37
37
|
return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
|
|
38
38
|
if (["dateRange"].includes(o.fieldType)) {
|
|
39
|
-
const
|
|
40
|
-
return f.data.rowData[o.fieldKey] =
|
|
39
|
+
const s = o.fieldKey.split("&");
|
|
40
|
+
return f.data.rowData[o.fieldKey] = s.map((_) => f.data.rowData[_]), f.data.rowData[o.fieldKey];
|
|
41
41
|
}
|
|
42
42
|
const u = f.data.rowData[o.fieldKey];
|
|
43
43
|
return u === "true" || u === "false" ? le(u) : u;
|
|
44
|
-
},
|
|
44
|
+
}, ne = (o) => E({ url: f.data.dataItem.requestUrl, method: "post", data: o });
|
|
45
45
|
be(
|
|
46
46
|
() => f.visible,
|
|
47
47
|
async (o, u) => {
|
|
48
|
-
o && (f.data.formList.sort((
|
|
49
|
-
oe[
|
|
50
|
-
const { isFiledCustom: _, customComponentName: p, customComponentUrl:
|
|
51
|
-
if (_ && !
|
|
52
|
-
const V = await ee(
|
|
53
|
-
|
|
48
|
+
o && (f.data.formList.sort((s, _) => s.sort - _.sort).forEach(async (s) => {
|
|
49
|
+
oe[s.fieldKey] = { submitFieldType: s.fieldSubmitType, isFormSetValue: s.isFormSetValue }, t.value[s.fieldKey] = Object.keys(f.data.rowData).length && s.isFormSetValue ? se(s) : de(s.fieldType);
|
|
50
|
+
const { isFiledCustom: _, customComponentName: p, customComponentUrl: C } = s.customFiledsComponentes;
|
|
51
|
+
if (_ && !s.customFiledsComponentes[p]) {
|
|
52
|
+
const V = await ee(C, p);
|
|
53
|
+
s.customFiledsComponentes[p] = V;
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), w.value = f.data.formList || []);
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
58
|
const ie = (o) => {
|
|
59
59
|
v(), o();
|
|
60
60
|
}, v = () => {
|
|
61
|
-
|
|
61
|
+
w.value = [], k.value.resetFields(), Y("update:visible", !1);
|
|
62
62
|
}, ce = (o) => {
|
|
63
63
|
o && o.validate((u) => {
|
|
64
64
|
if (u) {
|
|
65
|
-
|
|
66
|
-
const { dataItem:
|
|
65
|
+
F.btnLoading = !0;
|
|
66
|
+
const { dataItem: s, rowData: _ } = f.data;
|
|
67
67
|
let p = { ...Fe(t.value) };
|
|
68
68
|
Object.keys(p).forEach((r) => {
|
|
69
69
|
r.includes("&") ? p[r].split("&").forEach((P, S) => {
|
|
70
70
|
p[P] = p[r][S];
|
|
71
71
|
}) : Array.isArray(p[r]) && (p[r] = re(p[r], "string"));
|
|
72
72
|
});
|
|
73
|
-
const
|
|
74
|
-
|
|
73
|
+
const C = s.submitFields.filter((r) => r.matchType == "default").reduce((r, n) => (n.submitFieldType === "string" && (r[n.submitFieldName] = n.matchFieldName.toString()), r), {}), V = s.submitFields.filter((r) => r.matchType == "match").reduce((r, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(q.matchData, n.submitFieldMatchOrigin) && (r[n.submitFieldName] = O(n.submitFieldType, q.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : r[n.submitFieldName] = O(n.submitFieldType, _[n.matchFieldName]), r), {});
|
|
74
|
+
ne({
|
|
75
75
|
...p,
|
|
76
|
-
...
|
|
76
|
+
...C,
|
|
77
77
|
...V
|
|
78
78
|
}).then((r) => {
|
|
79
79
|
try {
|
|
80
|
-
|
|
81
|
-
} catch (
|
|
82
|
-
console.error(
|
|
80
|
+
Ne({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), v(), Y("refresh");
|
|
81
|
+
} catch (n) {
|
|
82
|
+
console.error(n);
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
F.btnLoading = !1;
|
|
85
85
|
}).catch((r) => {
|
|
86
|
-
console.error(r),
|
|
86
|
+
console.error(r), F.btnLoading = !1;
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
91
|
return (o, u) => {
|
|
92
92
|
var j;
|
|
93
|
-
const
|
|
93
|
+
const s = m("el-input"), _ = m("el-option"), p = m("el-select"), C = m("el-select-v2"), V = m("el-date-picker"), r = m("el-cascader"), n = m("el-switch"), P = m("el-form-item"), S = m("el-col"), ue = m("el-row"), fe = m("el-form"), B = m("el-button"), pe = m("el-dialog"), me = _e("debounce");
|
|
94
94
|
return d(), i(pe, {
|
|
95
95
|
"model-value": f.visible,
|
|
96
96
|
title: f.title,
|
|
@@ -104,23 +104,23 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
104
104
|
"before-close": ie
|
|
105
105
|
}, {
|
|
106
106
|
footer: h(() => [
|
|
107
|
-
W("span",
|
|
107
|
+
W("span", we, [
|
|
108
108
|
x(B, {
|
|
109
|
-
loading: l(
|
|
109
|
+
loading: l(F).btnLoading,
|
|
110
110
|
onClick: v
|
|
111
111
|
}, {
|
|
112
112
|
default: h(() => [
|
|
113
|
-
A(
|
|
113
|
+
A(N(l(c)("act.cancel")), 1)
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
116
|
}, 8, ["loading"]),
|
|
117
117
|
he((d(), i(B, {
|
|
118
118
|
type: "primary",
|
|
119
|
-
loading: l(
|
|
119
|
+
loading: l(F).btnLoading,
|
|
120
120
|
onClick: u[1] || (u[1] = (L) => ce(l(k)))
|
|
121
121
|
}, {
|
|
122
122
|
default: h(() => [
|
|
123
|
-
A(
|
|
123
|
+
A(N(l(c)("act.save")), 1)
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
126
126
|
}, 8, ["loading"])), [
|
|
@@ -142,12 +142,12 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
142
142
|
default: h(() => [
|
|
143
143
|
x(ue, { gutter: 40 }, {
|
|
144
144
|
default: h(() => [
|
|
145
|
-
(d(!0), D(
|
|
145
|
+
(d(!0), D(U, null, M(l(w), (e, z) => (d(), i(S, {
|
|
146
146
|
span: ae(e),
|
|
147
147
|
key: z
|
|
148
148
|
}, {
|
|
149
149
|
default: h(() => [
|
|
150
|
-
e.customFiledsComponentes.isFiledCustom ? (d(), D(
|
|
150
|
+
e.customFiledsComponentes.isFiledCustom ? (d(), D(U, { key: 1 }, [
|
|
151
151
|
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Ve(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
152
152
|
key: 0,
|
|
153
153
|
fieldCofnigItem: e,
|
|
@@ -158,8 +158,8 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
158
158
|
class: "no-config",
|
|
159
159
|
key: z
|
|
160
160
|
}, [
|
|
161
|
-
W("span",
|
|
162
|
-
A(
|
|
161
|
+
W("span", Ue, "【" + N(e.fieldName) + "】", 1),
|
|
162
|
+
A(N(l(c)("act.fieldCustom")), 1)
|
|
163
163
|
]))
|
|
164
164
|
], 64)) : (d(), i(P, {
|
|
165
165
|
key: 0,
|
|
@@ -168,14 +168,14 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
168
168
|
rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: te(e) }]
|
|
169
169
|
}, {
|
|
170
170
|
default: h(() => [
|
|
171
|
-
e.fieldType === "input" ? (d(), i(
|
|
171
|
+
e.fieldType === "input" ? (d(), i(s, b({
|
|
172
172
|
key: 0,
|
|
173
173
|
modelValue: l(t)[e.fieldKey],
|
|
174
174
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
175
175
|
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
176
176
|
clearable: "",
|
|
177
177
|
ref_for: !0
|
|
178
|
-
}, y(e), {
|
|
178
|
+
}, l(y)(e), {
|
|
179
179
|
disabled: e.isFormDisabled
|
|
180
180
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : G("", !0),
|
|
181
181
|
e.fieldType === "inputNumber" ? (d(), i(l(Q), b({
|
|
@@ -185,16 +185,16 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
185
185
|
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
186
186
|
clearable: "",
|
|
187
187
|
ref_for: !0
|
|
188
|
-
}, y(e), {
|
|
188
|
+
}, l(y)(e), {
|
|
189
189
|
disabled: e.isFormDisabled
|
|
190
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(
|
|
190
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(s, b({
|
|
191
191
|
key: 2,
|
|
192
192
|
modelValue: l(t)[e.fieldKey],
|
|
193
193
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
194
194
|
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
195
195
|
rows: 4,
|
|
196
196
|
ref_for: !0
|
|
197
|
-
}, y(e), {
|
|
197
|
+
}, l(y)(e), {
|
|
198
198
|
type: "textarea",
|
|
199
199
|
disabled: e.isFormDisabled
|
|
200
200
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(X), b({
|
|
@@ -204,11 +204,11 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
204
204
|
icons: e.dataList,
|
|
205
205
|
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
206
206
|
ref_for: !0
|
|
207
|
-
}, y(e), {
|
|
207
|
+
}, l(y)(e), {
|
|
208
208
|
disabled: e.isFormDisabled
|
|
209
209
|
}), {
|
|
210
210
|
default: h(() => [
|
|
211
|
-
(d(!0), D(
|
|
211
|
+
(d(!0), D(U, null, M(e.dataList, (a, $) => (d(), i(_, {
|
|
212
212
|
key: $,
|
|
213
213
|
label: a.key,
|
|
214
214
|
value: a.value
|
|
@@ -223,19 +223,19 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
223
223
|
clearable: "",
|
|
224
224
|
filterable: "",
|
|
225
225
|
ref_for: !0
|
|
226
|
-
}, y(e), {
|
|
226
|
+
}, l(y)(e), {
|
|
227
227
|
multiple: e.fieldType === "multipleSelect",
|
|
228
228
|
disabled: e.isFormDisabled
|
|
229
229
|
}), {
|
|
230
230
|
default: h(() => [
|
|
231
|
-
(d(!0), D(
|
|
231
|
+
(d(!0), D(U, null, M(e.dataList, (a, $) => (d(), i(_, {
|
|
232
232
|
key: $,
|
|
233
233
|
label: a.key,
|
|
234
234
|
value: a.value
|
|
235
235
|
}, null, 8, ["label", "value"]))), 128))
|
|
236
236
|
]),
|
|
237
237
|
_: 2
|
|
238
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), i(
|
|
238
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), i(C, b({
|
|
239
239
|
key: 5,
|
|
240
240
|
modelValue: l(t)[e.fieldKey],
|
|
241
241
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
@@ -245,7 +245,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
245
245
|
clearable: "",
|
|
246
246
|
filterable: "",
|
|
247
247
|
ref_for: !0
|
|
248
|
-
}, y(e), {
|
|
248
|
+
}, l(y)(e), {
|
|
249
249
|
disabled: e.isFormDisabled,
|
|
250
250
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
251
251
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), i(V, b({
|
|
@@ -256,7 +256,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
256
256
|
placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
|
|
257
257
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
258
258
|
ref_for: !0
|
|
259
|
-
}, y(e), {
|
|
259
|
+
}, l(y)(e), {
|
|
260
260
|
disabled: e.isFormDisabled
|
|
261
261
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), i(V, b({
|
|
262
262
|
key: 7,
|
|
@@ -267,7 +267,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
267
267
|
"end-placeholder": l(c)("act.endTime"),
|
|
268
268
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
269
269
|
ref_for: !0
|
|
270
|
-
}, y(e), {
|
|
270
|
+
}, l(y)(e), {
|
|
271
271
|
disabled: e.isFormDisabled
|
|
272
272
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(r, b({
|
|
273
273
|
key: 8,
|
|
@@ -279,9 +279,9 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
279
279
|
filterable: "",
|
|
280
280
|
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
281
281
|
ref_for: !0
|
|
282
|
-
}, y(e), {
|
|
282
|
+
}, l(y)(e), {
|
|
283
283
|
disabled: e.isFormDisabled
|
|
284
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(
|
|
284
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(n, {
|
|
285
285
|
key: 9,
|
|
286
286
|
modelValue: l(t)[e.fieldKey],
|
|
287
287
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
@@ -294,14 +294,14 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
294
294
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
295
295
|
request: l(E),
|
|
296
296
|
ref_for: !0
|
|
297
|
-
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(I), b({
|
|
297
|
+
}, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(I), b({
|
|
298
298
|
key: 11,
|
|
299
299
|
modelValue: l(t)[e.fieldKey],
|
|
300
300
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
301
301
|
disabled: e.isFormDisabled,
|
|
302
302
|
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
303
303
|
ref_for: !0
|
|
304
|
-
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : G("", !0)
|
|
304
|
+
}, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : G("", !0)
|
|
305
305
|
]),
|
|
306
306
|
_: 2
|
|
307
307
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -320,7 +320,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
320
320
|
}, 8, ["model-value", "title", "width"]);
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
-
}, Ae = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-
|
|
323
|
+
}, Ae = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-112876c8"]]);
|
|
324
324
|
export {
|
|
325
325
|
Ae as default
|
|
326
326
|
};
|