liyu-pc-base 1.0.82 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SearchRender-fe931b37.js → SearchRender-c5095766.js} +14 -1
- package/dist/{SearchRender-fe931b37.js.map → SearchRender-c5095766.js.map} +1 -1
- package/dist/components/index.js +2131 -1180
- package/dist/components/index.js.map +1 -1
- package/dist/components/remotePages/index.js +2 -0
- package/dist/components/remotePages/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { B as
|
|
4
|
-
import { message as
|
|
5
|
-
import { get_operator_type_map as
|
|
6
|
-
import { CloseOutlined as
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { m as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "
|
|
1
|
+
import { defineComponent as fe, ref as le, resolveComponent as k, openBlock as o, createBlock as p, withCtx as m, createVNode as V, createElementBlock as U, Fragment as N, renderList as Y, createElementVNode as L, toDisplayString as I, reactive as se, computed as Ee, watch as ee, onMounted as Fe, onUnmounted as Je, createTextVNode as Z, createCommentVNode as M, withDirectives as Ce, vShow as $e, pushScopeId as Xe, popScopeId as Ze, createSlots as Ue, renderSlot as xe, normalizeStyle as R, resolveDynamicComponent as pe, onActivated as el, withModifiers as ce } from "vue";
|
|
2
|
+
import { _ as me, h as We, F as ll, I as al, i as ol, U as tl, j as il, k as nl, l as dl, m as sl, A as rl, a as ul, c as fl, d as ml, R as pl, b as hl, n as _l, o as yl, J as vl, e as cl, f as bl, p as gl, M as wl, q as kl, C as Cl, T as $l } from "../SearchRender-c5095766.js";
|
|
3
|
+
import { B as Io, S as Ko, r as Vo } from "../SearchRender-c5095766.js";
|
|
4
|
+
import { message as te, Modal as qe } from "ant-design-vue";
|
|
5
|
+
import { get_operator_type_map as ke, isNotEmpty as x, isEmpty as oe, copyValue as Ml } from "../utils/function.js";
|
|
6
|
+
import { CloseOutlined as Sl, LeftOutlined as El, RightOutlined as Ol, CloseCircleOutlined as Ul, PlusOutlined as Qe, CaretRightOutlined as Fl, SettingOutlined as Al, ExclamationCircleOutlined as De } from "@ant-design/icons-vue";
|
|
7
|
+
import { useI18n as Ae } from "vue-i18n";
|
|
8
|
+
import z from "moment";
|
|
9
|
+
import { isArray as Re, debounce as Il, isEqual as Kl } from "lodash-es";
|
|
10
|
+
import { m as Me } from "../modal-tools-006921b1.js";
|
|
11
|
+
import { m as ye, n as Vl, o as Bl, p as jl, q as Tl, t as Ne, v as ze } from "../init-plugin-d4e1c8e9.js";
|
|
12
|
+
import { getApiData as ql } from "../api/api-model.js";
|
|
13
|
+
import { getViewSettingsAndPageConfig as Dl, getPageConfig as Oe } from "./remotePages/index.js";
|
|
14
14
|
import "../utils/hooks/useFetchData.js";
|
|
15
15
|
import "scroll-into-view-if-needed";
|
|
16
16
|
import "../utils/hooks/useTableColumn.js";
|
|
@@ -22,7 +22,7 @@ import "../lodash-18e68795.js";
|
|
|
22
22
|
import "dayjs";
|
|
23
23
|
import "emmet";
|
|
24
24
|
import "./remotePages/utils.js";
|
|
25
|
-
const
|
|
25
|
+
const Rl = fe({
|
|
26
26
|
name: "AddConditionModal",
|
|
27
27
|
props: {
|
|
28
28
|
open: {
|
|
@@ -43,57 +43,57 @@ const xe = X({
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
emits: ["ok", "cancel"],
|
|
46
|
-
setup(e, { emit:
|
|
47
|
-
const
|
|
48
|
-
e.default_search_condition_config_list.forEach((
|
|
49
|
-
const
|
|
46
|
+
setup(e, { emit: l }) {
|
|
47
|
+
const G = le("condition_tab_0"), P = le([]);
|
|
48
|
+
e.default_search_condition_config_list.forEach((r, D) => {
|
|
49
|
+
const q = JSON.parse(
|
|
50
50
|
JSON.stringify(e.base_search_condition_config_list)
|
|
51
51
|
);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
q && q.forEach((F) => {
|
|
53
|
+
F.group.forEach((n) => {
|
|
54
|
+
r.forEach((c) => {
|
|
55
|
+
n.field_name == c.field_name && (n.operator = c.operator, n.checked = !0);
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
|
-
}),
|
|
59
|
-
tab_name: `条件组${
|
|
60
|
-
key: `condition_tab_${
|
|
61
|
-
base_search_list:
|
|
58
|
+
}), P.value.push({
|
|
59
|
+
tab_name: `条件组${D + 1}`,
|
|
60
|
+
key: `condition_tab_${D}`,
|
|
61
|
+
base_search_list: q
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (
|
|
72
|
-
if (!
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
const [
|
|
76
|
-
|
|
64
|
+
const H = (r) => {
|
|
65
|
+
r.preventDefault();
|
|
66
|
+
const D = [];
|
|
67
|
+
P.value.forEach((q) => {
|
|
68
|
+
const F = [];
|
|
69
|
+
q.base_search_list.forEach((n) => {
|
|
70
|
+
n.group.forEach((c) => {
|
|
71
|
+
if (c.checked) {
|
|
72
|
+
if (!c.operator) {
|
|
73
|
+
const y = B(c);
|
|
74
|
+
if (y.length > 0) {
|
|
75
|
+
const [t] = y;
|
|
76
|
+
c.operator = t;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
F.push(c);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
}),
|
|
83
|
-
}),
|
|
84
|
-
},
|
|
82
|
+
}), D.push(F);
|
|
83
|
+
}), l("ok", { new_list: D });
|
|
84
|
+
}, B = (r) => r.operator_list_selected ? r.operator_list_selected : r.operator_list ? r.operator_list : [];
|
|
85
85
|
return {
|
|
86
86
|
props: e,
|
|
87
|
-
activeKey:
|
|
88
|
-
tab_list:
|
|
89
|
-
handleSubmit:
|
|
87
|
+
activeKey: G,
|
|
88
|
+
tab_list: P,
|
|
89
|
+
handleSubmit: H
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const
|
|
94
|
-
function
|
|
95
|
-
const
|
|
96
|
-
return
|
|
93
|
+
const Nl = { style: { "font-size": "14px" } }, zl = { style: { color: "#7d8089" } };
|
|
94
|
+
function Gl(e, l, G, P, H, B) {
|
|
95
|
+
const r = k("a-checkbox"), D = k("a-space"), q = k("a-tab-pane"), F = k("a-tabs"), n = k("a-modal");
|
|
96
|
+
return o(), p(n, {
|
|
97
97
|
title: "添加过滤条件",
|
|
98
98
|
width: "800px",
|
|
99
99
|
open: e.open,
|
|
@@ -103,40 +103,40 @@ function al(e, u, K, D, V, q) {
|
|
|
103
103
|
confirmLoading: e.loading,
|
|
104
104
|
centered: "",
|
|
105
105
|
onOk: e.handleSubmit,
|
|
106
|
-
onCancel:
|
|
106
|
+
onCancel: l[1] || (l[1] = () => {
|
|
107
107
|
e.$emit("cancel");
|
|
108
108
|
})
|
|
109
109
|
}, {
|
|
110
|
-
default:
|
|
111
|
-
|
|
110
|
+
default: m(() => [
|
|
111
|
+
V(F, {
|
|
112
112
|
activeKey: e.activeKey,
|
|
113
|
-
"onUpdate:activeKey":
|
|
113
|
+
"onUpdate:activeKey": l[0] || (l[0] = (c) => e.activeKey = c)
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
(
|
|
115
|
+
default: m(() => [
|
|
116
|
+
(o(!0), U(N, null, Y(e.tab_list, (c) => (o(), p(q, {
|
|
117
117
|
class: "my-card",
|
|
118
|
-
key:
|
|
119
|
-
tab:
|
|
118
|
+
key: c.key,
|
|
119
|
+
tab: c.tab_name
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
(
|
|
123
|
-
key:
|
|
121
|
+
default: m(() => [
|
|
122
|
+
(o(!0), U(N, null, Y(c.base_search_list, (y) => (o(), U("div", {
|
|
123
|
+
key: y.name
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
L("div", Nl, I(y.name), 1),
|
|
126
|
+
V(D, {
|
|
127
127
|
wrap: "",
|
|
128
128
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
129
129
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
(
|
|
132
|
-
key:
|
|
130
|
+
default: m(() => [
|
|
131
|
+
(o(!0), U(N, null, Y(y.group, (t) => (o(), U("div", {
|
|
132
|
+
key: t.field_name
|
|
133
133
|
}, [
|
|
134
|
-
|
|
135
|
-
checked:
|
|
136
|
-
"onUpdate:checked": (
|
|
134
|
+
V(r, {
|
|
135
|
+
checked: t.checked,
|
|
136
|
+
"onUpdate:checked": (E) => t.checked = E
|
|
137
137
|
}, {
|
|
138
|
-
default:
|
|
139
|
-
|
|
138
|
+
default: m(() => [
|
|
139
|
+
L("span", zl, I(t.label), 1)
|
|
140
140
|
]),
|
|
141
141
|
_: 2
|
|
142
142
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -155,7 +155,7 @@ function al(e, u, K, D, V, q) {
|
|
|
155
155
|
_: 1
|
|
156
156
|
}, 8, ["open", "confirmLoading", "onOk"]);
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const Hl = /* @__PURE__ */ me(Rl, [["render", Gl], ["__scopeId", "data-v-25d1dc13"]]), Ll = fe({
|
|
159
159
|
name: "AddConditionGroupModal",
|
|
160
160
|
props: {
|
|
161
161
|
open: {
|
|
@@ -176,68 +176,68 @@ const tl = /* @__PURE__ */ Z(xe, [["render", al], ["__scopeId", "data-v-25d1dc13
|
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
emits: ["ok", "cancel"],
|
|
179
|
-
setup(e, { emit:
|
|
180
|
-
var
|
|
181
|
-
const
|
|
182
|
-
(
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
179
|
+
setup(e, { emit: l }) {
|
|
180
|
+
var q, F;
|
|
181
|
+
const G = le([]), P = (n) => n.operator_list_selected ? n.operator_list_selected : n.operator_list ? n.operator_list : [];
|
|
182
|
+
(q = e.default_search_condition_config_list) == null || q.forEach((n, c) => {
|
|
183
|
+
const y = JSON.parse(JSON.stringify(e.base_search_condition_config_list));
|
|
184
|
+
y && y.forEach((t) => {
|
|
185
|
+
t.group.forEach((E) => {
|
|
186
|
+
n.forEach((S) => {
|
|
187
|
+
E.field_name == S.field_name && (E.checked = !0);
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
|
-
}),
|
|
191
|
-
tab_name: `条件组${
|
|
192
|
-
key: `condition_tab_${
|
|
193
|
-
base_search_list:
|
|
190
|
+
}), G.value.push({
|
|
191
|
+
tab_name: `条件组${c + 1}`,
|
|
192
|
+
key: `condition_tab_${c}`,
|
|
193
|
+
base_search_list: y
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
|
-
const
|
|
197
|
-
e.base_search_condition_config_list.forEach((
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
const [
|
|
203
|
-
|
|
196
|
+
const H = ((F = e.default_search_condition_config_list) == null ? void 0 : F.length) || 0, B = [];
|
|
197
|
+
e.base_search_condition_config_list.forEach((n) => {
|
|
198
|
+
const c = [];
|
|
199
|
+
n.group.forEach((y) => {
|
|
200
|
+
const t = P(y);
|
|
201
|
+
if (y.default_operator && (y.operator = y.default_operator), t.includes(y.operator) || (y.operator = null), !y.operator && t.length > 0) {
|
|
202
|
+
const [S] = t;
|
|
203
|
+
y.operator = S;
|
|
204
204
|
}
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
}),
|
|
208
|
-
name:
|
|
209
|
-
group:
|
|
205
|
+
const E = { ...y, checked: !1 };
|
|
206
|
+
c.push(E);
|
|
207
|
+
}), B.push({
|
|
208
|
+
name: n.name,
|
|
209
|
+
group: c
|
|
210
210
|
});
|
|
211
|
-
}),
|
|
212
|
-
tab_name: `条件组${
|
|
213
|
-
key: `condition_tab_${
|
|
214
|
-
base_search_list:
|
|
211
|
+
}), G.value.push({
|
|
212
|
+
tab_name: `条件组${H + 1}`,
|
|
213
|
+
key: `condition_tab_${H}`,
|
|
214
|
+
base_search_list: B
|
|
215
215
|
});
|
|
216
|
-
const
|
|
216
|
+
const r = le(`condition_tab_${H}`);
|
|
217
217
|
return {
|
|
218
218
|
props: e,
|
|
219
|
-
activeKey:
|
|
220
|
-
tab_list:
|
|
221
|
-
handleSubmit: (
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
219
|
+
activeKey: r,
|
|
220
|
+
tab_list: G,
|
|
221
|
+
handleSubmit: (n) => {
|
|
222
|
+
n.preventDefault();
|
|
223
|
+
const c = [];
|
|
224
|
+
G.value.forEach((y) => {
|
|
225
|
+
const t = [];
|
|
226
|
+
y.base_search_list.forEach((E) => {
|
|
227
|
+
E.group.forEach((S) => {
|
|
228
|
+
S.checked && t.push(S);
|
|
229
229
|
});
|
|
230
|
-
}),
|
|
231
|
-
}),
|
|
230
|
+
}), t.length > 0 && c.push(t);
|
|
231
|
+
}), c.length == 0 ? (te.error("新增条件组未增加新的字段,自动取消"), l("cancel")) : l("ok", { new_list: c });
|
|
232
232
|
},
|
|
233
|
-
get_operator_list_selected:
|
|
233
|
+
get_operator_list_selected: P
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
const
|
|
238
|
-
function
|
|
239
|
-
const
|
|
240
|
-
return
|
|
237
|
+
const Pl = { style: { "font-size": "14px" } }, Yl = { style: { color: "#7d8089" } }, Jl = { style: { "font-size": "14px" } }, Wl = { style: { color: "#7d8089" } };
|
|
238
|
+
function Ql(e, l, G, P, H, B) {
|
|
239
|
+
const r = k("a-checkbox"), D = k("a-space"), q = k("a-tab-pane"), F = k("a-tabs"), n = k("a-modal");
|
|
240
|
+
return o(), p(n, {
|
|
241
241
|
title: "添加过滤条件组",
|
|
242
242
|
width: "800px",
|
|
243
243
|
open: e.open,
|
|
@@ -247,32 +247,32 @@ function ul(e, u, K, D, V, q) {
|
|
|
247
247
|
confirmLoading: e.loading,
|
|
248
248
|
centered: "",
|
|
249
249
|
onOk: e.handleSubmit,
|
|
250
|
-
onCancel:
|
|
250
|
+
onCancel: l[1] || (l[1] = () => {
|
|
251
251
|
e.$emit("cancel");
|
|
252
252
|
})
|
|
253
253
|
}, {
|
|
254
|
-
default:
|
|
255
|
-
(
|
|
254
|
+
default: m(() => [
|
|
255
|
+
(o(!0), U(N, null, Y(e.tab_list, (c) => (o(), p(q, {
|
|
256
256
|
class: "my-card",
|
|
257
|
-
key:
|
|
258
|
-
tab:
|
|
257
|
+
key: c.key,
|
|
258
|
+
tab: c.tab_name
|
|
259
259
|
}, {
|
|
260
|
-
default:
|
|
261
|
-
(
|
|
262
|
-
key:
|
|
260
|
+
default: m(() => [
|
|
261
|
+
(o(!0), U(N, null, Y(c.base_search_list, (y) => (o(), U("div", {
|
|
262
|
+
key: y.name
|
|
263
263
|
}, [
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
default:
|
|
267
|
-
(
|
|
268
|
-
key:
|
|
264
|
+
L("div", Pl, I(y.name), 1),
|
|
265
|
+
V(D, { wrap: "" }, {
|
|
266
|
+
default: m(() => [
|
|
267
|
+
(o(!0), U(N, null, Y(y.group, (t) => (o(), U("div", {
|
|
268
|
+
key: t.field_name
|
|
269
269
|
}, [
|
|
270
|
-
|
|
271
|
-
checked:
|
|
272
|
-
"onUpdate:checked": (
|
|
270
|
+
V(r, {
|
|
271
|
+
checked: t.checked,
|
|
272
|
+
"onUpdate:checked": (E) => t.checked = E
|
|
273
273
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
|
|
274
|
+
default: m(() => [
|
|
275
|
+
L("span", Yl, I(t.label), 1)
|
|
276
276
|
]),
|
|
277
277
|
_: 2
|
|
278
278
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -284,35 +284,35 @@ function ul(e, u, K, D, V, q) {
|
|
|
284
284
|
]),
|
|
285
285
|
_: 2
|
|
286
286
|
}, 1032, ["tab"]))), 128)),
|
|
287
|
-
|
|
287
|
+
V(F, {
|
|
288
288
|
activeKey: e.activeKey,
|
|
289
|
-
"onUpdate:activeKey":
|
|
289
|
+
"onUpdate:activeKey": l[0] || (l[0] = (c) => e.activeKey = c)
|
|
290
290
|
}, {
|
|
291
|
-
default:
|
|
292
|
-
(
|
|
291
|
+
default: m(() => [
|
|
292
|
+
(o(!0), U(N, null, Y(e.tab_list, (c) => (o(), p(q, {
|
|
293
293
|
class: "my-card",
|
|
294
|
-
key:
|
|
295
|
-
tab:
|
|
294
|
+
key: c.key,
|
|
295
|
+
tab: c.tab_name
|
|
296
296
|
}, {
|
|
297
|
-
default:
|
|
298
|
-
(
|
|
299
|
-
key:
|
|
297
|
+
default: m(() => [
|
|
298
|
+
(o(!0), U(N, null, Y(c.base_search_list, (y) => (o(), U("div", {
|
|
299
|
+
key: y.name
|
|
300
300
|
}, [
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
L("div", Jl, I(y.name), 1),
|
|
302
|
+
V(D, {
|
|
303
303
|
wrap: "",
|
|
304
304
|
style: { "padding-left": "10px", "margin-bottom": "0" }
|
|
305
305
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
(
|
|
308
|
-
key:
|
|
306
|
+
default: m(() => [
|
|
307
|
+
(o(!0), U(N, null, Y(y.group, (t) => (o(), U("div", {
|
|
308
|
+
key: t.field_name
|
|
309
309
|
}, [
|
|
310
|
-
|
|
311
|
-
checked:
|
|
312
|
-
"onUpdate:checked": (
|
|
310
|
+
V(r, {
|
|
311
|
+
checked: t.checked,
|
|
312
|
+
"onUpdate:checked": (E) => t.checked = E
|
|
313
313
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
|
|
314
|
+
default: m(() => [
|
|
315
|
+
L("span", Wl, I(t.label), 1)
|
|
316
316
|
]),
|
|
317
317
|
_: 2
|
|
318
318
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -331,7 +331,7 @@ function ul(e, u, K, D, V, q) {
|
|
|
331
331
|
_: 1
|
|
332
332
|
}, 8, ["open", "confirmLoading", "onOk"]);
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const Xl = /* @__PURE__ */ me(Ll, [["render", Ql], ["__scopeId", "data-v-52b515e0"]]), Zl = (e) => ({
|
|
335
335
|
options_eq: [
|
|
336
336
|
{ value: "上月", label: "上月" },
|
|
337
337
|
{ value: "本月", label: "本月" },
|
|
@@ -339,7 +339,7 @@ const dl = /* @__PURE__ */ Z(nl, [["render", ul], ["__scopeId", "data-v-52b515e0
|
|
|
339
339
|
{ value: "昨日", label: "昨日" },
|
|
340
340
|
{ value: "期初", label: "期初" }
|
|
341
341
|
]
|
|
342
|
-
}),
|
|
342
|
+
}), xl = fe({
|
|
343
343
|
name: "GeneralFilter",
|
|
344
344
|
props: {
|
|
345
345
|
base_search_condition_config_list: {
|
|
@@ -370,14 +370,14 @@ const dl = /* @__PURE__ */ Z(nl, [["render", ul], ["__scopeId", "data-v-52b515e0
|
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
components: {
|
|
373
|
-
FieldRender2:
|
|
374
|
-
CloseOutlined:
|
|
375
|
-
LeftOutlined:
|
|
376
|
-
RightOutlined:
|
|
377
|
-
FieldRender:
|
|
378
|
-
AddConditionGroupModal:
|
|
379
|
-
AddConditionModal:
|
|
380
|
-
CloseCircleOutlined:
|
|
373
|
+
FieldRender2: We,
|
|
374
|
+
CloseOutlined: Sl,
|
|
375
|
+
LeftOutlined: El,
|
|
376
|
+
RightOutlined: Ol,
|
|
377
|
+
FieldRender: ll,
|
|
378
|
+
AddConditionGroupModal: Xl,
|
|
379
|
+
AddConditionModal: Hl,
|
|
380
|
+
CloseCircleOutlined: Ul
|
|
381
381
|
},
|
|
382
382
|
emits: [
|
|
383
383
|
"search",
|
|
@@ -388,15 +388,15 @@ const dl = /* @__PURE__ */ Z(nl, [["render", ul], ["__scopeId", "data-v-52b515e0
|
|
|
388
388
|
"onChangeValue",
|
|
389
389
|
"update:is_clear_model"
|
|
390
390
|
],
|
|
391
|
-
setup(e, { emit:
|
|
392
|
-
const
|
|
393
|
-
{ value: "yes", label:
|
|
394
|
-
{ value: "no", label:
|
|
391
|
+
setup(e, { emit: l }) {
|
|
392
|
+
const G = le(e.is_massage_default), P = le({}), { t: H } = Ae(), { options_eq: B } = Zl(), r = le([]), D = {}, q = le(null), F = le([
|
|
393
|
+
{ value: "yes", label: H("is_or_not_blank_or_null.yes") },
|
|
394
|
+
{ value: "no", label: H("is_or_not_blank_or_null.no") }
|
|
395
395
|
]);
|
|
396
|
-
|
|
396
|
+
q.value || (q.value = JSON.parse(
|
|
397
397
|
JSON.stringify(e.default_search_condition_config_list)
|
|
398
398
|
));
|
|
399
|
-
const
|
|
399
|
+
const n = {
|
|
400
400
|
between: 2,
|
|
401
401
|
gt: 1,
|
|
402
402
|
lt: 1,
|
|
@@ -417,588 +417,588 @@ const dl = /* @__PURE__ */ Z(nl, [["render", ul], ["__scopeId", "data-v-52b515e0
|
|
|
417
417
|
json_list_is_blank_is_null: 1,
|
|
418
418
|
is_or_not_blank_or_null: 1,
|
|
419
419
|
is_or_not_null: 1
|
|
420
|
-
},
|
|
421
|
-
const [
|
|
422
|
-
return Array.isArray(
|
|
420
|
+
}, c = (d) => {
|
|
421
|
+
const [s] = [d];
|
|
422
|
+
return Array.isArray(s) && d.every((w) => Array.isArray(w));
|
|
423
423
|
};
|
|
424
|
-
let
|
|
425
|
-
const
|
|
426
|
-
const
|
|
427
|
-
if (
|
|
428
|
-
if (
|
|
429
|
-
|
|
424
|
+
let y = null;
|
|
425
|
+
const t = (d, s, w) => {
|
|
426
|
+
const h = r.value[s][w.field_name];
|
|
427
|
+
if (v(w).includes("_eq")) {
|
|
428
|
+
if (d == "_eq") {
|
|
429
|
+
r.value[s][w.field_name] = null, y = d, l("onChangeValue", { model: r.value });
|
|
430
430
|
return;
|
|
431
|
-
} else if (
|
|
432
|
-
|
|
431
|
+
} else if (y == "_eq") {
|
|
432
|
+
r.value[s][w.field_name] = null, y = d, l("onChangeValue", { model: r.value });
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
437
|
-
if (
|
|
438
|
-
|
|
436
|
+
if (v(w).includes("not_blank_not_null")) {
|
|
437
|
+
if (d == "not_blank_not_null") {
|
|
438
|
+
r.value[s][w.field_name] = "是", y = d, l("onChangeValue", { model: r.value });
|
|
439
439
|
return;
|
|
440
|
-
} else if (
|
|
441
|
-
|
|
440
|
+
} else if (y == "not_blank_not_null") {
|
|
441
|
+
r.value[s][w.field_name] = null, y = d, l("onChangeValue", { model: r.value });
|
|
442
442
|
return;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
if (
|
|
446
|
-
if (
|
|
447
|
-
|
|
445
|
+
if (v(w).includes("is_or_not_blank_or_null") || v(w).includes("is_or_not_null")) {
|
|
446
|
+
if (d == "is_or_not_blank_or_null" || d == "is_or_not_null") {
|
|
447
|
+
r.value[s][w.field_name] = null, y = d, l("onChangeValue", { model: r.value });
|
|
448
448
|
return;
|
|
449
|
-
} else if (
|
|
450
|
-
|
|
449
|
+
} else if (y == "is_or_not_blank_or_null" || y == "is_or_not_null") {
|
|
450
|
+
r.value[s][w.field_name] = null, y = d, l("onChangeValue", { model: r.value });
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
|
|
456
|
-
else if (
|
|
457
|
-
if (
|
|
458
|
-
const [
|
|
459
|
-
|
|
454
|
+
if (h instanceof Array && c(h))
|
|
455
|
+
r.value[s][w.field_name] = null;
|
|
456
|
+
else if (n[d] == 1) {
|
|
457
|
+
if (h instanceof Array) {
|
|
458
|
+
const [b] = r.value[s][w.field_name];
|
|
459
|
+
x(b) ? r.value[s][w.field_name] = b : r.value[s][w.field_name] = null;
|
|
460
460
|
} else
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
(
|
|
464
|
-
) && (
|
|
465
|
-
} else if (
|
|
466
|
-
if (
|
|
467
|
-
const [
|
|
468
|
-
|
|
469
|
-
} else if (
|
|
470
|
-
const
|
|
471
|
-
|
|
461
|
+
r.value[s][w.field_name] = h || null;
|
|
462
|
+
B.some(
|
|
463
|
+
(b) => b.value === r.value[s][w.field_name]
|
|
464
|
+
) && (r.value[s][w.field_name] = null);
|
|
465
|
+
} else if (n[d] == 2) {
|
|
466
|
+
if (r.value[s][w.field_name] instanceof Array) {
|
|
467
|
+
const [b, T] = r.value[s][w.field_name];
|
|
468
|
+
r.value[s][w.field_name] = [b, T];
|
|
469
|
+
} else if (r.value[s][w.field_name]) {
|
|
470
|
+
const b = r.value[s][w.field_name];
|
|
471
|
+
r.value[s][w.field_name] = [b, null];
|
|
472
472
|
} else
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
(
|
|
476
|
-
) && (
|
|
473
|
+
r.value[s][w.field_name] = [null, null];
|
|
474
|
+
B.some(
|
|
475
|
+
(b) => b.value === r.value[s][w.field_name][0]
|
|
476
|
+
) && (r.value[s][w.field_name] = [null, null]);
|
|
477
477
|
}
|
|
478
|
-
|
|
479
|
-
},
|
|
478
|
+
y = d, l("onChangeValue", { model: r.value });
|
|
479
|
+
}, E = se({
|
|
480
480
|
open: !1
|
|
481
|
-
}),
|
|
482
|
-
|
|
483
|
-
},
|
|
484
|
-
e.default_search_condition_config_list.forEach((
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
481
|
+
}), S = () => {
|
|
482
|
+
E.open = !0;
|
|
483
|
+
}, O = (d) => {
|
|
484
|
+
e.default_search_condition_config_list.forEach((s, w) => {
|
|
485
|
+
d.new_list.forEach((h, u) => {
|
|
486
|
+
w == u && s.forEach((b) => {
|
|
487
|
+
h.forEach((T) => {
|
|
488
|
+
b.field_name == T.field_name && (T.value = b.value, T.operator = b.operator);
|
|
489
489
|
});
|
|
490
490
|
});
|
|
491
491
|
});
|
|
492
|
-
}),
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
},
|
|
492
|
+
}), l("update_default_search_condition_config_list", { new_list: d.new_list }), E.open = !1;
|
|
493
|
+
}, j = () => {
|
|
494
|
+
E.open = !1;
|
|
495
|
+
}, K = se({
|
|
496
496
|
open: !1
|
|
497
|
-
}),
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
e.default_search_condition_config_list.forEach((
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
497
|
+
}), J = () => {
|
|
498
|
+
K.open = !0;
|
|
499
|
+
}, ie = (d) => {
|
|
500
|
+
e.default_search_condition_config_list.forEach((s, w) => {
|
|
501
|
+
d.new_list.forEach((h, u) => {
|
|
502
|
+
w == u && s.forEach((b) => {
|
|
503
|
+
h.forEach((T) => {
|
|
504
|
+
b.field_name == T.field_name && (T.value = b.value, T.operator = b.operator);
|
|
505
505
|
});
|
|
506
506
|
});
|
|
507
507
|
});
|
|
508
|
-
}),
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
var
|
|
515
|
-
e.base_search_condition_config_list.length != 0 && ((
|
|
516
|
-
|
|
517
|
-
var
|
|
518
|
-
(
|
|
519
|
-
|
|
520
|
-
|
|
508
|
+
}), l("update_default_search_condition_config_list", { new_list: d.new_list }), K.open = !1;
|
|
509
|
+
}, $ = () => {
|
|
510
|
+
K.open = !1;
|
|
511
|
+
}, re = () => {
|
|
512
|
+
G.value = !1, console.log("condition_model_dict.value", r.value), l("search", { model: r.value });
|
|
513
|
+
}, C = (d = !1) => {
|
|
514
|
+
var s;
|
|
515
|
+
e.base_search_condition_config_list.length != 0 && ((s = e.default_search_condition_config_list) == null || s.forEach((w, h) => {
|
|
516
|
+
X[h] = {}, r.value[h] || (r.value[h] = {}), e.base_search_condition_config_list.forEach((u) => {
|
|
517
|
+
var b;
|
|
518
|
+
(b = u.group) == null || b.forEach((T) => {
|
|
519
|
+
w.forEach((A) => {
|
|
520
|
+
T.field_name == A.field_name && ((r.value[h][A.field_name] == null || d) && (n[A.operator] == 1 ? A.value !== void 0 ? r.value[h][A.field_name] = A.value : r.value[h][A.field_name] = null : n[A.operator] == 2 ? A.value !== void 0 ? r.value[h][A.field_name] = A.value : r.value[h][A.field_name] = [null, null] : n[A.operator] == 0 && (A.value !== void 0 ? r.value[h][A.field_name] = A.value : r.value[h][A.field_name] = [])), Object.assign(A, { ...T, operator: A.operator }), A.operator == "eq" && A.mode != "default" ? (T.mode = "default", Object.assign(A, { model: "default" })) : ["in", "notin"].includes(A.operator) && A.mode != "multiple" && (T.mode = "multiple", Object.assign(A, { model: "multiple" })));
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
523
|
});
|
|
524
524
|
}));
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
},
|
|
530
|
-
|
|
531
|
-
},
|
|
532
|
-
const
|
|
533
|
-
e.default_search_condition_config_list.forEach((
|
|
534
|
-
if (
|
|
535
|
-
|
|
525
|
+
}, a = () => {
|
|
526
|
+
C(!0);
|
|
527
|
+
}, X = se({}), _ = (d, s) => {
|
|
528
|
+
X[d][s.field_name] = !0;
|
|
529
|
+
}, ae = (d, s) => {
|
|
530
|
+
X[d][s.field_name] = !1;
|
|
531
|
+
}, ue = (d, s) => {
|
|
532
|
+
const w = [];
|
|
533
|
+
e.default_search_condition_config_list.forEach((h, u) => {
|
|
534
|
+
if (u !== d)
|
|
535
|
+
w.push(h);
|
|
536
536
|
else {
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}),
|
|
537
|
+
const b = [];
|
|
538
|
+
h.forEach((T) => {
|
|
539
|
+
T.field_name !== s.field_name && b.push(T);
|
|
540
|
+
}), b.length > 0 && w.push(b);
|
|
541
541
|
}
|
|
542
|
-
}),
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
if (e.base_search_condition_config_list.forEach((
|
|
550
|
-
|
|
551
|
-
if (
|
|
552
|
-
if (
|
|
553
|
-
|
|
554
|
-
else if (
|
|
555
|
-
const [
|
|
556
|
-
|
|
542
|
+
}), l("update_default_search_condition_config_list", { new_list: w });
|
|
543
|
+
}, ne = (d, s) => {
|
|
544
|
+
r.value[d][s] instanceof Array ? r.value[d][s].length = 0 : r.value[d][s] = null, l("onChangeValue", { model: r.value }), l("delSearch", { model: JSON.parse(JSON.stringify(r.value)) });
|
|
545
|
+
}, be = (d, s, w, h) => {
|
|
546
|
+
if (d instanceof Array && d.length > 0) {
|
|
547
|
+
const u = d[d.length - 1];
|
|
548
|
+
let b = null;
|
|
549
|
+
if (e.base_search_condition_config_list.forEach((T) => {
|
|
550
|
+
T.group.forEach((A) => {
|
|
551
|
+
if (A.field_name === u) {
|
|
552
|
+
if (b = JSON.parse(JSON.stringify(A)), b.default_operator)
|
|
553
|
+
b.operator = b.default_operator;
|
|
554
|
+
else if (v(b).length > 0) {
|
|
555
|
+
const [de] = v(b);
|
|
556
|
+
b.operator = de;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
|
-
}),
|
|
561
|
-
const
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
560
|
+
}), b) {
|
|
561
|
+
const T = JSON.parse(JSON.stringify(e.default_search_condition_config_list));
|
|
562
|
+
T.forEach((A, de) => {
|
|
563
|
+
de === s && A.forEach((ge, we) => {
|
|
564
|
+
ge.field_name == w.field_name && we == h && (A.splice(we, 1, b), delete r.value[s][ge.field_name]);
|
|
565
565
|
});
|
|
566
|
-
}),
|
|
567
|
-
new_list:
|
|
566
|
+
}), l("update_default_search_condition_config_list", {
|
|
567
|
+
new_list: T
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
|
|
570
|
+
C();
|
|
571
571
|
}
|
|
572
|
-
},
|
|
573
|
-
const
|
|
574
|
-
return e.default_search_condition_config_list.forEach((
|
|
575
|
-
|
|
576
|
-
const
|
|
577
|
-
e.base_search_condition_config_list.forEach((
|
|
578
|
-
const
|
|
579
|
-
(
|
|
580
|
-
),
|
|
581
|
-
value:
|
|
582
|
-
label:
|
|
583
|
-
children:
|
|
584
|
-
value:
|
|
585
|
-
label:
|
|
572
|
+
}, _e = Ee(() => {
|
|
573
|
+
const d = {};
|
|
574
|
+
return e.default_search_condition_config_list.forEach((s, w) => {
|
|
575
|
+
d[w] = [];
|
|
576
|
+
const h = s.map((u) => u.field_name);
|
|
577
|
+
e.base_search_condition_config_list.forEach((u) => {
|
|
578
|
+
const b = u.group.filter(
|
|
579
|
+
(A) => !h.includes(A.field_name)
|
|
580
|
+
), T = {
|
|
581
|
+
value: u.name,
|
|
582
|
+
label: u.name,
|
|
583
|
+
children: b.map((A) => ({
|
|
584
|
+
value: A.field_name,
|
|
585
|
+
label: A.label
|
|
586
586
|
}))
|
|
587
587
|
};
|
|
588
|
-
|
|
588
|
+
d[w].push(T);
|
|
589
589
|
});
|
|
590
|
-
}),
|
|
591
|
-
}),
|
|
592
|
-
const
|
|
593
|
-
if (
|
|
594
|
-
const [
|
|
595
|
-
if (
|
|
590
|
+
}), d;
|
|
591
|
+
}), ve = (d, s) => {
|
|
592
|
+
const w = r.value[d][s.field_name];
|
|
593
|
+
if (w instanceof Array) {
|
|
594
|
+
const [h] = w;
|
|
595
|
+
if (x(h))
|
|
596
596
|
return !0;
|
|
597
|
-
} else if (
|
|
597
|
+
} else if (x(w))
|
|
598
598
|
return !0;
|
|
599
599
|
return !1;
|
|
600
|
-
},
|
|
601
|
-
const
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
if (["上月", "本月", "今日", "昨日", "期初"].includes(
|
|
606
|
-
return
|
|
600
|
+
}, f = (d, s) => {
|
|
601
|
+
const w = [], h = r.value[d][s.field_name];
|
|
602
|
+
if (s.operator === "is_or_not_blank_or_null" || s.operator === "is_or_not_null")
|
|
603
|
+
return H(h === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
604
|
+
if (s.operator === "_eq") {
|
|
605
|
+
if (["上月", "本月", "今日", "昨日", "期初"].includes(h))
|
|
606
|
+
return H(h);
|
|
607
607
|
} else {
|
|
608
|
-
if (
|
|
609
|
-
return `${
|
|
610
|
-
if (
|
|
611
|
-
let
|
|
612
|
-
return
|
|
608
|
+
if (P.value[s.field_name] != null)
|
|
609
|
+
return `${ke(s.format, s.operator)} ${P.value[s.field_name]}`;
|
|
610
|
+
if (h instanceof Array && s.field_name_list instanceof Array) {
|
|
611
|
+
let u;
|
|
612
|
+
return s.field_name_list && (h instanceof Array ? u = h.join(",") : u = h), `${ke(s.format, s.operator)} ${u}`;
|
|
613
613
|
} else {
|
|
614
|
-
if (
|
|
615
|
-
return
|
|
616
|
-
|
|
617
|
-
|
|
614
|
+
if (h instanceof Array && s.options instanceof Array)
|
|
615
|
+
return h.forEach((u) => {
|
|
616
|
+
s.options.forEach((b) => {
|
|
617
|
+
u == b.value && w.push(b.label);
|
|
618
618
|
});
|
|
619
|
-
}), `${
|
|
619
|
+
}), `${ke(s.format, s.operator)} ${w.join(
|
|
620
620
|
","
|
|
621
621
|
)}`;
|
|
622
622
|
{
|
|
623
|
-
let
|
|
624
|
-
if (
|
|
625
|
-
|
|
626
|
-
|
|
623
|
+
let u;
|
|
624
|
+
if (s.options)
|
|
625
|
+
s.options.forEach((b) => {
|
|
626
|
+
h == b.value && (u = b.label);
|
|
627
627
|
});
|
|
628
|
-
else if (
|
|
629
|
-
if (
|
|
630
|
-
const
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}),
|
|
628
|
+
else if (s.type == "monthpicker" && s.dateFormat)
|
|
629
|
+
if (h instanceof Array) {
|
|
630
|
+
const b = [];
|
|
631
|
+
h.forEach((T) => {
|
|
632
|
+
T ? b.push(z(T).format(s.dateFormat)) : b.push(T);
|
|
633
|
+
}), u = b.join(",");
|
|
634
634
|
} else
|
|
635
|
-
|
|
635
|
+
u = z(h).format(s.dateFormat);
|
|
636
636
|
else
|
|
637
|
-
|
|
638
|
-
return `${
|
|
637
|
+
u = h;
|
|
638
|
+
return `${ke(s.format, s.operator)} ${u}`;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
},
|
|
643
|
-
|
|
644
|
-
},
|
|
645
|
-
return
|
|
646
|
-
() =>
|
|
642
|
+
}, g = () => {
|
|
643
|
+
l("onShowSearchRender");
|
|
644
|
+
}, v = (d) => d.operator_list_selected ? d.operator_list_selected : d.operator_list ? d.operator_list : [];
|
|
645
|
+
return ee(
|
|
646
|
+
() => r.value,
|
|
647
647
|
() => {
|
|
648
|
-
|
|
648
|
+
l("onChangeValue", { model: r.value });
|
|
649
649
|
},
|
|
650
650
|
{ deep: !0 }
|
|
651
|
-
),
|
|
651
|
+
), ee(
|
|
652
652
|
() => e.default_search_condition_config_list,
|
|
653
653
|
() => {
|
|
654
|
-
var
|
|
655
|
-
if (((
|
|
656
|
-
|
|
657
|
-
new_list:
|
|
654
|
+
var d;
|
|
655
|
+
if (((d = e.default_search_condition_config_list) == null ? void 0 : d.length) == 0) {
|
|
656
|
+
l("update_default_search_condition_config_list", {
|
|
657
|
+
new_list: q.value
|
|
658
658
|
});
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
C();
|
|
662
662
|
},
|
|
663
663
|
{ deep: !0 }
|
|
664
|
-
),
|
|
664
|
+
), ee(
|
|
665
665
|
() => e.base_search_condition_config_list,
|
|
666
666
|
() => {
|
|
667
|
-
|
|
667
|
+
C();
|
|
668
668
|
},
|
|
669
669
|
{ deep: !0 }
|
|
670
|
-
),
|
|
670
|
+
), ee(
|
|
671
671
|
() => e.is_clear_model,
|
|
672
672
|
() => {
|
|
673
|
-
e.is_clear_model && (
|
|
673
|
+
e.is_clear_model && (r.value = {}, C(), l("update:is_clear_model", !1));
|
|
674
674
|
}
|
|
675
675
|
), Fe(() => {
|
|
676
|
-
|
|
677
|
-
}),
|
|
678
|
-
e.eventBus && e.eventBus.off("filterChange",
|
|
676
|
+
C(), e.eventBus && e.eventBus.on("filterChange", a);
|
|
677
|
+
}), Je(() => {
|
|
678
|
+
e.eventBus && e.eventBus.off("filterChange", a);
|
|
679
679
|
}), {
|
|
680
680
|
props: e,
|
|
681
|
-
t:
|
|
682
|
-
isShowForm:
|
|
683
|
-
labelModel:
|
|
684
|
-
get_operator_type_map:
|
|
685
|
-
condition_model_dict:
|
|
686
|
-
addConditionModal:
|
|
687
|
-
handleAddConditions:
|
|
688
|
-
handleAddConditionOk:
|
|
689
|
-
handleAddConditionCancel:
|
|
690
|
-
onChangeOperator:
|
|
691
|
-
handleAddGroupCondition:
|
|
692
|
-
handleSearch:
|
|
693
|
-
addConditionGroupModal:
|
|
694
|
-
handleAddGroupConditionOK:
|
|
695
|
-
handleAddGroupConditionCancel:
|
|
696
|
-
validateInfos:
|
|
697
|
-
deleteBtnDict:
|
|
698
|
-
handleMouseEnter:
|
|
699
|
-
handleMouseLeave:
|
|
700
|
-
handleDeleteFormItem:
|
|
701
|
-
handleDelSearch:
|
|
702
|
-
searchItemOptionsDict:
|
|
703
|
-
onChangeSearchItem:
|
|
704
|
-
transferValueFunc:
|
|
705
|
-
isShowSearchTag:
|
|
706
|
-
handleShowSearchRender:
|
|
707
|
-
options_eq:
|
|
708
|
-
get_operator_list_selected:
|
|
709
|
-
is_or_not_blank_or_null_options:
|
|
681
|
+
t: H,
|
|
682
|
+
isShowForm: G,
|
|
683
|
+
labelModel: P,
|
|
684
|
+
get_operator_type_map: ke,
|
|
685
|
+
condition_model_dict: r,
|
|
686
|
+
addConditionModal: E,
|
|
687
|
+
handleAddConditions: S,
|
|
688
|
+
handleAddConditionOk: O,
|
|
689
|
+
handleAddConditionCancel: j,
|
|
690
|
+
onChangeOperator: t,
|
|
691
|
+
handleAddGroupCondition: J,
|
|
692
|
+
handleSearch: re,
|
|
693
|
+
addConditionGroupModal: K,
|
|
694
|
+
handleAddGroupConditionOK: ie,
|
|
695
|
+
handleAddGroupConditionCancel: $,
|
|
696
|
+
validateInfos: D,
|
|
697
|
+
deleteBtnDict: X,
|
|
698
|
+
handleMouseEnter: _,
|
|
699
|
+
handleMouseLeave: ae,
|
|
700
|
+
handleDeleteFormItem: ue,
|
|
701
|
+
handleDelSearch: ne,
|
|
702
|
+
searchItemOptionsDict: _e,
|
|
703
|
+
onChangeSearchItem: be,
|
|
704
|
+
transferValueFunc: f,
|
|
705
|
+
isShowSearchTag: ve,
|
|
706
|
+
handleShowSearchRender: g,
|
|
707
|
+
options_eq: B,
|
|
708
|
+
get_operator_list_selected: v,
|
|
709
|
+
is_or_not_blank_or_null_options: F
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
|
-
const
|
|
713
|
+
const ea = (e) => (Xe("data-v-793f4096"), e = e(), Ze(), e), la = { class: "expand-btn" }, aa = { class: "card" }, oa = {
|
|
714
714
|
key: 0,
|
|
715
715
|
class: "condition-group"
|
|
716
|
-
},
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
return
|
|
720
|
-
e.is_massage_default ?
|
|
721
|
-
default:
|
|
722
|
-
e.is_show_normal_search ? (
|
|
716
|
+
}, ta = { style: { width: "315px", height: "40px" } }, ia = /* @__PURE__ */ ea(() => /* @__PURE__ */ L("div", { class: "range" }, "~", -1)), na = { class: "close-icon" }, da = { class: "search-bar" };
|
|
717
|
+
function sa(e, l, G, P, H, B) {
|
|
718
|
+
const r = k("a-button"), D = k("a-space"), q = k("a-tag"), F = k("close-outlined"), n = k("a-cascader"), c = k("a-tooltip"), y = k("a-select-option"), t = k("a-select"), E = k("field-render-2"), S = k("a-flex"), O = k("close-circle-outlined"), j = k("a-input-group"), K = k("a-space-compact"), J = k("a-divider"), ie = k("add-condition-modal"), $ = k("add-condition-group-modal");
|
|
719
|
+
return o(), U(N, null, [
|
|
720
|
+
e.is_massage_default ? M("", !0) : (o(), p(D, { key: 0 }, {
|
|
721
|
+
default: m(() => [
|
|
722
|
+
e.is_show_normal_search ? (o(), p(r, {
|
|
723
723
|
key: 0,
|
|
724
724
|
type: "link",
|
|
725
725
|
onClick: e.handleShowSearchRender
|
|
726
726
|
}, {
|
|
727
|
-
default:
|
|
728
|
-
|
|
727
|
+
default: m(() => [
|
|
728
|
+
Z(I(e.$t("普通")), 1)
|
|
729
729
|
]),
|
|
730
730
|
_: 1
|
|
731
|
-
}, 8, ["onClick"])) :
|
|
732
|
-
e.isShowForm ? (
|
|
731
|
+
}, 8, ["onClick"])) : M("", !0),
|
|
732
|
+
e.isShowForm ? (o(), p(r, {
|
|
733
733
|
key: 2,
|
|
734
734
|
type: "link",
|
|
735
|
-
onClick:
|
|
735
|
+
onClick: l[1] || (l[1] = () => {
|
|
736
736
|
e.isShowForm = !1, e.$emit("resize");
|
|
737
737
|
})
|
|
738
738
|
}, {
|
|
739
|
-
default:
|
|
740
|
-
|
|
739
|
+
default: m(() => [
|
|
740
|
+
Z(I(e.$t("隐藏")), 1)
|
|
741
741
|
]),
|
|
742
742
|
_: 1
|
|
743
|
-
})) : (
|
|
743
|
+
})) : (o(), p(r, {
|
|
744
744
|
key: 1,
|
|
745
745
|
type: "link",
|
|
746
|
-
onClick:
|
|
746
|
+
onClick: l[0] || (l[0] = () => {
|
|
747
747
|
e.isShowForm = !0, e.$emit("resize");
|
|
748
748
|
})
|
|
749
749
|
}, {
|
|
750
|
-
default:
|
|
751
|
-
|
|
750
|
+
default: m(() => [
|
|
751
|
+
L("span", la, I(e.$t("展开")), 1)
|
|
752
752
|
]),
|
|
753
753
|
_: 1
|
|
754
754
|
}))
|
|
755
755
|
]),
|
|
756
756
|
_: 1
|
|
757
757
|
})),
|
|
758
|
-
|
|
759
|
-
(
|
|
760
|
-
|
|
761
|
-
default:
|
|
762
|
-
|
|
758
|
+
Ce(L("span", null, [
|
|
759
|
+
(o(!0), U(N, null, Y(e.default_search_condition_config_list, (re, C) => (o(), U("span", { key: C }, [
|
|
760
|
+
V(q, null, {
|
|
761
|
+
default: m(() => [
|
|
762
|
+
Z(I(e.$t("条件组")) + I(C + 1) + ":", 1)
|
|
763
763
|
]),
|
|
764
764
|
_: 2
|
|
765
765
|
}, 1024),
|
|
766
|
-
(
|
|
767
|
-
key:
|
|
766
|
+
(o(!0), U(N, null, Y(re, (a) => (o(), U("span", {
|
|
767
|
+
key: a.field_name
|
|
768
768
|
}, [
|
|
769
|
-
|
|
770
|
-
default:
|
|
771
|
-
|
|
772
|
-
|
|
769
|
+
Ce(V(q, { color: "green" }, {
|
|
770
|
+
default: m(() => [
|
|
771
|
+
Z(I(a.label) + ": " + I(e.transferValueFunc(C, a)) + " ", 1),
|
|
772
|
+
V(F, {
|
|
773
773
|
style: { cursor: "pointer", "margin-left": "5px" },
|
|
774
|
-
onClick: (
|
|
774
|
+
onClick: (X) => e.handleDelSearch(C, a.field_name)
|
|
775
775
|
}, null, 8, ["onClick"])
|
|
776
776
|
]),
|
|
777
777
|
_: 2
|
|
778
778
|
}, 1536), [
|
|
779
|
-
[
|
|
779
|
+
[$e, e.isShowSearchTag(C, a)]
|
|
780
780
|
])
|
|
781
781
|
]))), 128))
|
|
782
782
|
]))), 128))
|
|
783
783
|
], 512), [
|
|
784
|
-
[
|
|
784
|
+
[$e, !e.isShowForm]
|
|
785
785
|
]),
|
|
786
|
-
|
|
787
|
-
(
|
|
788
|
-
e.default_search_condition_config_list.length > 1 ? (
|
|
789
|
-
|
|
786
|
+
Ce(L("div", aa, [
|
|
787
|
+
(o(!0), U(N, null, Y(e.default_search_condition_config_list, (re, C) => (o(), U("div", { key: C }, [
|
|
788
|
+
e.default_search_condition_config_list.length > 1 ? (o(), U("div", oa, I(e.$t("条件组")) + " " + I(C + 1), 1)) : M("", !0),
|
|
789
|
+
V(D, {
|
|
790
790
|
wrap: !0,
|
|
791
791
|
align: "center",
|
|
792
792
|
size: 0
|
|
793
793
|
}, {
|
|
794
|
-
default:
|
|
795
|
-
(
|
|
794
|
+
default: m(() => [
|
|
795
|
+
(o(!0), U(N, null, Y(re, (a, X) => (o(), p(K, {
|
|
796
796
|
block: "",
|
|
797
|
-
key:
|
|
797
|
+
key: a.field_name,
|
|
798
798
|
size: "middle",
|
|
799
|
-
onMouseenter: (
|
|
800
|
-
onMouseleave: (
|
|
799
|
+
onMouseenter: (_) => e.handleMouseEnter(C, a),
|
|
800
|
+
onMouseleave: (_) => e.handleMouseLeave(C, a)
|
|
801
801
|
}, {
|
|
802
|
-
default:
|
|
803
|
-
|
|
804
|
-
default:
|
|
805
|
-
|
|
806
|
-
title:
|
|
802
|
+
default: m(() => [
|
|
803
|
+
V(j, { compact: "" }, {
|
|
804
|
+
default: m(() => [
|
|
805
|
+
V(c, {
|
|
806
|
+
title: a.label
|
|
807
807
|
}, {
|
|
808
|
-
default:
|
|
809
|
-
|
|
810
|
-
value:
|
|
808
|
+
default: m(() => [
|
|
809
|
+
V(n, {
|
|
810
|
+
value: a.label,
|
|
811
811
|
style: { width: "125px" },
|
|
812
|
-
options: e.searchItemOptionsDict[
|
|
812
|
+
options: e.searchItemOptionsDict[C],
|
|
813
813
|
showSearch: "",
|
|
814
814
|
allowClear: !1,
|
|
815
815
|
placeholder: e.$t("请选择..."),
|
|
816
|
-
onChange: (
|
|
816
|
+
onChange: (_) => e.onChangeSearchItem(_, C, a, X)
|
|
817
817
|
}, null, 8, ["value", "options", "placeholder", "onChange"])
|
|
818
818
|
]),
|
|
819
819
|
_: 2
|
|
820
820
|
}, 1032, ["title"]),
|
|
821
|
-
|
|
822
|
-
title: e.get_operator_type_map(
|
|
821
|
+
V(c, {
|
|
822
|
+
title: e.get_operator_type_map(a.format, a.operator)
|
|
823
823
|
}, {
|
|
824
|
-
default:
|
|
825
|
-
e.get_operator_list_selected(
|
|
824
|
+
default: m(() => [
|
|
825
|
+
e.get_operator_list_selected(a).length > 0 ? (o(), p(t, {
|
|
826
826
|
key: 0,
|
|
827
827
|
dropdownMatchSelectWidth: !1,
|
|
828
|
-
value:
|
|
829
|
-
"onUpdate:value": (
|
|
830
|
-
onChange: (
|
|
828
|
+
value: a.operator,
|
|
829
|
+
"onUpdate:value": (_) => a.operator = _,
|
|
830
|
+
onChange: (_) => e.onChangeOperator(_, C, a),
|
|
831
831
|
style: { width: "100px" }
|
|
832
832
|
}, {
|
|
833
|
-
default:
|
|
834
|
-
(
|
|
835
|
-
value:
|
|
836
|
-
key:
|
|
833
|
+
default: m(() => [
|
|
834
|
+
(o(!0), U(N, null, Y(e.get_operator_list_selected(a), (_) => (o(), p(y, {
|
|
835
|
+
value: _,
|
|
836
|
+
key: _
|
|
837
837
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
|
|
838
|
+
default: m(() => [
|
|
839
|
+
Z(I(e.get_operator_type_map(a.format, _)), 1)
|
|
840
840
|
]),
|
|
841
841
|
_: 2
|
|
842
842
|
}, 1032, ["value"]))), 128))
|
|
843
843
|
]),
|
|
844
844
|
_: 2
|
|
845
|
-
}, 1032, ["value", "onUpdate:value", "onChange"])) :
|
|
845
|
+
}, 1032, ["value", "onUpdate:value", "onChange"])) : M("", !0)
|
|
846
846
|
]),
|
|
847
847
|
_: 2
|
|
848
848
|
}, 1032, ["title"]),
|
|
849
|
-
|
|
850
|
-
["is_or_not_blank_or_null", "is_or_not_null"].includes(
|
|
849
|
+
L("span", ta, [
|
|
850
|
+
["is_or_not_blank_or_null", "is_or_not_null"].includes(a.operator) ? (o(), p(E, {
|
|
851
851
|
key: 0,
|
|
852
852
|
is_show_label: !1,
|
|
853
|
-
label: e.labelModel[
|
|
854
|
-
"onUpdate:label": (
|
|
855
|
-
value: e.condition_model_dict[
|
|
856
|
-
"onUpdate:value": (
|
|
853
|
+
label: e.labelModel[a.field_name],
|
|
854
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
855
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
856
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
857
857
|
field: {
|
|
858
|
-
...
|
|
858
|
+
...a,
|
|
859
859
|
type: "select",
|
|
860
860
|
mode: "default",
|
|
861
861
|
format: "choices",
|
|
862
862
|
class_name: "str",
|
|
863
863
|
placeholder: ""
|
|
864
864
|
},
|
|
865
|
-
formModel: e.condition_model_dict[
|
|
865
|
+
formModel: e.condition_model_dict[C],
|
|
866
866
|
options: e.is_or_not_blank_or_null_options,
|
|
867
867
|
validateInfos: e.validateInfos
|
|
868
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : ["input"].includes(
|
|
869
|
-
|
|
870
|
-
|
|
868
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : ["input"].includes(a.format) ? (o(), U(N, { key: 1 }, [
|
|
869
|
+
a.operator === "between" || a.operator === "notbetween" ? (o(), U(N, { key: 0 }, [
|
|
870
|
+
a.type === "datepicker" ? (o(), p(E, {
|
|
871
871
|
key: 0,
|
|
872
872
|
is_show_label: !1,
|
|
873
|
-
label: e.labelModel[
|
|
874
|
-
"onUpdate:label": (
|
|
875
|
-
value: e.condition_model_dict[
|
|
876
|
-
"onUpdate:value": (
|
|
877
|
-
field: { ...
|
|
878
|
-
formModel: e.condition_model_dict[
|
|
879
|
-
options:
|
|
873
|
+
label: e.labelModel[a.field_name],
|
|
874
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
875
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
876
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
877
|
+
field: { ...a, type: "rangepicker", format: a.dateFormat },
|
|
878
|
+
formModel: e.condition_model_dict[C],
|
|
879
|
+
options: a.options,
|
|
880
880
|
validateInfos: e.validateInfos
|
|
881
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
881
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "monthpicker" ? (o(), p(E, {
|
|
882
882
|
key: 1,
|
|
883
883
|
is_show_label: !1,
|
|
884
|
-
label: e.labelModel[
|
|
885
|
-
"onUpdate:label": (
|
|
886
|
-
value: e.condition_model_dict[
|
|
887
|
-
"onUpdate:value": (
|
|
884
|
+
label: e.labelModel[a.field_name],
|
|
885
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
886
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
887
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
888
888
|
field: {
|
|
889
|
-
...
|
|
889
|
+
...a,
|
|
890
890
|
type: "monthrangepicker"
|
|
891
891
|
},
|
|
892
|
-
formModel: e.condition_model_dict[
|
|
893
|
-
options:
|
|
892
|
+
formModel: e.condition_model_dict[C],
|
|
893
|
+
options: a.options,
|
|
894
894
|
validateInfos: e.validateInfos
|
|
895
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (
|
|
896
|
-
default:
|
|
897
|
-
|
|
895
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(), p(S, { key: 2 }, {
|
|
896
|
+
default: m(() => [
|
|
897
|
+
V(E, {
|
|
898
898
|
is_show_label: !1,
|
|
899
|
-
label: e.labelModel[
|
|
900
|
-
"onUpdate:label": (
|
|
901
|
-
value: e.condition_model_dict[
|
|
902
|
-
"onUpdate:value": (
|
|
903
|
-
field:
|
|
904
|
-
formModel: e.condition_model_dict[
|
|
905
|
-
options:
|
|
899
|
+
label: e.labelModel[a.field_name],
|
|
900
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
901
|
+
value: e.condition_model_dict[C][a.field_name][0],
|
|
902
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name][0] = _,
|
|
903
|
+
field: a,
|
|
904
|
+
formModel: e.condition_model_dict[C],
|
|
905
|
+
options: a.options,
|
|
906
906
|
validateInfos: e.validateInfos
|
|
907
907
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]),
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
ia,
|
|
909
|
+
V(E, {
|
|
910
910
|
is_show_label: !1,
|
|
911
|
-
label: e.labelModel[
|
|
912
|
-
"onUpdate:label": (
|
|
913
|
-
value: e.condition_model_dict[
|
|
914
|
-
"onUpdate:value": (
|
|
915
|
-
field:
|
|
916
|
-
formModel: e.condition_model_dict[
|
|
917
|
-
options:
|
|
911
|
+
label: e.labelModel[a.field_name],
|
|
912
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
913
|
+
value: e.condition_model_dict[C][a.field_name][1],
|
|
914
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name][1] = _,
|
|
915
|
+
field: a,
|
|
916
|
+
formModel: e.condition_model_dict[C],
|
|
917
|
+
options: a.options,
|
|
918
918
|
validateInfos: e.validateInfos
|
|
919
919
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])
|
|
920
920
|
]),
|
|
921
921
|
_: 2
|
|
922
922
|
}, 1024))
|
|
923
|
-
], 64)) :
|
|
923
|
+
], 64)) : a.operator === "_eq" ? (o(), p(E, {
|
|
924
924
|
key: 1,
|
|
925
925
|
is_show_label: !1,
|
|
926
|
-
label: e.labelModel[
|
|
927
|
-
"onUpdate:label": (
|
|
928
|
-
value: e.condition_model_dict[
|
|
929
|
-
"onUpdate:value": (
|
|
926
|
+
label: e.labelModel[a.field_name],
|
|
927
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
928
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
929
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
930
930
|
field: {
|
|
931
|
-
...
|
|
931
|
+
...a,
|
|
932
932
|
type: "select",
|
|
933
933
|
mode: "default",
|
|
934
934
|
format: "choices",
|
|
935
935
|
class_name: "str",
|
|
936
936
|
placeholder: ""
|
|
937
937
|
},
|
|
938
|
-
formModel: e.condition_model_dict[
|
|
938
|
+
formModel: e.condition_model_dict[C],
|
|
939
939
|
options: e.options_eq,
|
|
940
940
|
validateInfos: e.validateInfos
|
|
941
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
941
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.type === "datepicker" || a.type === "monthpicker" ? (o(), p(E, {
|
|
942
942
|
key: 2,
|
|
943
943
|
is_show_label: !1,
|
|
944
|
-
label: e.labelModel[
|
|
945
|
-
"onUpdate:label": (
|
|
946
|
-
value: e.condition_model_dict[
|
|
947
|
-
"onUpdate:value": (
|
|
948
|
-
field: { ...
|
|
949
|
-
formModel: e.condition_model_dict[
|
|
950
|
-
options:
|
|
944
|
+
label: e.labelModel[a.field_name],
|
|
945
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
946
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
947
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
948
|
+
field: { ...a, format: a.dateFormat },
|
|
949
|
+
formModel: e.condition_model_dict[C],
|
|
950
|
+
options: a.options,
|
|
951
951
|
validateInfos: e.validateInfos
|
|
952
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (
|
|
952
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : (o(), p(E, {
|
|
953
953
|
key: 3,
|
|
954
954
|
is_show_label: !1,
|
|
955
|
-
label: e.labelModel[
|
|
956
|
-
"onUpdate:label": (
|
|
957
|
-
value: e.condition_model_dict[
|
|
958
|
-
"onUpdate:value": (
|
|
959
|
-
field:
|
|
960
|
-
formModel: e.condition_model_dict[
|
|
961
|
-
options:
|
|
955
|
+
label: e.labelModel[a.field_name],
|
|
956
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
957
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
958
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
959
|
+
field: a,
|
|
960
|
+
formModel: e.condition_model_dict[C],
|
|
961
|
+
options: a.options,
|
|
962
962
|
validateInfos: e.validateInfos
|
|
963
963
|
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"]))
|
|
964
|
-
], 64)) : ["choices", "remote"].includes(
|
|
965
|
-
|
|
964
|
+
], 64)) : ["choices", "remote"].includes(a.format) ? (o(), U(N, { key: 2 }, [
|
|
965
|
+
a.format === "choices" ? (o(), p(E, {
|
|
966
966
|
key: 0,
|
|
967
967
|
is_show_label: !1,
|
|
968
|
-
label: e.labelModel[
|
|
969
|
-
"onUpdate:label": (
|
|
970
|
-
value: e.condition_model_dict[
|
|
971
|
-
"onUpdate:value": (
|
|
972
|
-
field:
|
|
973
|
-
formModel: e.condition_model_dict[
|
|
974
|
-
options:
|
|
968
|
+
label: e.labelModel[a.field_name],
|
|
969
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
970
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
971
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
972
|
+
field: a,
|
|
973
|
+
formModel: e.condition_model_dict[C],
|
|
974
|
+
options: a.options,
|
|
975
975
|
validateInfos: e.validateInfos
|
|
976
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
976
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : a.format === "remote" ? (o(), p(E, {
|
|
977
977
|
key: 1,
|
|
978
978
|
is_show_label: !1,
|
|
979
|
-
label: e.labelModel[
|
|
980
|
-
"onUpdate:label": (
|
|
981
|
-
value: e.condition_model_dict[
|
|
982
|
-
"onUpdate:value": (
|
|
983
|
-
field: { ...
|
|
984
|
-
formModel: e.condition_model_dict[
|
|
985
|
-
options:
|
|
979
|
+
label: e.labelModel[a.field_name],
|
|
980
|
+
"onUpdate:label": (_) => e.labelModel[a.field_name] = _,
|
|
981
|
+
value: e.condition_model_dict[C][a.field_name],
|
|
982
|
+
"onUpdate:value": (_) => e.condition_model_dict[C][a.field_name] = _,
|
|
983
|
+
field: { ...a, name: a == null ? void 0 : a.field_name },
|
|
984
|
+
formModel: e.condition_model_dict[C],
|
|
985
|
+
options: a.options,
|
|
986
986
|
validateInfos: e.validateInfos
|
|
987
|
-
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) :
|
|
988
|
-
], 64)) :
|
|
987
|
+
}, null, 8, ["label", "onUpdate:label", "value", "onUpdate:value", "field", "formModel", "options", "validateInfos"])) : M("", !0)
|
|
988
|
+
], 64)) : M("", !0)
|
|
989
989
|
]),
|
|
990
|
-
|
|
991
|
-
e.deleteBtnDict[
|
|
990
|
+
L("span", na, [
|
|
991
|
+
e.deleteBtnDict[C][a.field_name] && (e.default_search_condition_config_list[0].length > 1 || e.default_search_condition_config_list.length > 1) && !e.is_massage_default ? (o(), p(c, {
|
|
992
992
|
key: 0,
|
|
993
993
|
title: "删除此条件"
|
|
994
994
|
}, {
|
|
995
|
-
default:
|
|
996
|
-
O
|
|
997
|
-
onClick: (
|
|
995
|
+
default: m(() => [
|
|
996
|
+
V(O, {
|
|
997
|
+
onClick: (_) => e.handleDeleteFormItem(C, a)
|
|
998
998
|
}, null, 8, ["onClick"])
|
|
999
999
|
]),
|
|
1000
1000
|
_: 2
|
|
1001
|
-
}, 1024)) :
|
|
1001
|
+
}, 1024)) : M("", !0)
|
|
1002
1002
|
])
|
|
1003
1003
|
]),
|
|
1004
1004
|
_: 2
|
|
@@ -1009,50 +1009,50 @@ function wl(e, u, K, D, V, q) {
|
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 2
|
|
1011
1011
|
}, 1024),
|
|
1012
|
-
e.default_search_condition_config_list.length > 1 &&
|
|
1012
|
+
e.default_search_condition_config_list.length > 1 && C != e.default_search_condition_config_list.length - 1 ? (o(), p(J, {
|
|
1013
1013
|
key: 1,
|
|
1014
1014
|
class: "divider",
|
|
1015
1015
|
style: { margin: "0" }
|
|
1016
1016
|
}, {
|
|
1017
|
-
default:
|
|
1018
|
-
|
|
1017
|
+
default: m(() => [
|
|
1018
|
+
Z(" 或 ")
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 1
|
|
1021
|
-
})) :
|
|
1021
|
+
})) : M("", !0)
|
|
1022
1022
|
]))), 128))
|
|
1023
1023
|
], 512), [
|
|
1024
|
-
[
|
|
1024
|
+
[$e, e.isShowForm]
|
|
1025
1025
|
]),
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
default:
|
|
1029
|
-
|
|
1026
|
+
Ce(L("div", da, [
|
|
1027
|
+
V(D, null, {
|
|
1028
|
+
default: m(() => [
|
|
1029
|
+
V(r, {
|
|
1030
1030
|
size: "small",
|
|
1031
1031
|
type: "primary",
|
|
1032
1032
|
onClick: e.handleAddConditions
|
|
1033
1033
|
}, {
|
|
1034
|
-
default:
|
|
1035
|
-
|
|
1034
|
+
default: m(() => [
|
|
1035
|
+
Z(I(e.$t("添加条件")), 1)
|
|
1036
1036
|
]),
|
|
1037
1037
|
_: 1
|
|
1038
1038
|
}, 8, ["onClick"]),
|
|
1039
|
-
|
|
1039
|
+
V(r, {
|
|
1040
1040
|
size: "small",
|
|
1041
1041
|
type: "primary",
|
|
1042
1042
|
onClick: e.handleAddGroupCondition
|
|
1043
1043
|
}, {
|
|
1044
|
-
default:
|
|
1045
|
-
|
|
1044
|
+
default: m(() => [
|
|
1045
|
+
Z(I(e.$t("添加条件组")), 1)
|
|
1046
1046
|
]),
|
|
1047
1047
|
_: 1
|
|
1048
1048
|
}, 8, ["onClick"]),
|
|
1049
|
-
|
|
1049
|
+
V(r, {
|
|
1050
1050
|
size: "small",
|
|
1051
1051
|
type: "primary",
|
|
1052
1052
|
onClick: e.handleSearch
|
|
1053
1053
|
}, {
|
|
1054
|
-
default:
|
|
1055
|
-
|
|
1054
|
+
default: m(() => [
|
|
1055
|
+
Z(I(e.$t("查询")), 1)
|
|
1056
1056
|
]),
|
|
1057
1057
|
_: 1
|
|
1058
1058
|
}, 8, ["onClick"])
|
|
@@ -1060,30 +1060,30 @@ function wl(e, u, K, D, V, q) {
|
|
|
1060
1060
|
_: 1
|
|
1061
1061
|
})
|
|
1062
1062
|
], 512), [
|
|
1063
|
-
[
|
|
1063
|
+
[$e, e.isShowForm && !e.is_massage_default]
|
|
1064
1064
|
]),
|
|
1065
|
-
e.addConditionModal.open ? (
|
|
1065
|
+
e.addConditionModal.open ? (o(), p(ie, {
|
|
1066
1066
|
key: 1,
|
|
1067
1067
|
open: e.addConditionModal.open,
|
|
1068
1068
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
1069
1069
|
base_search_condition_config_list: e.base_search_condition_config_list,
|
|
1070
1070
|
onOk: e.handleAddConditionOk,
|
|
1071
1071
|
onCancel: e.handleAddConditionCancel
|
|
1072
|
-
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) :
|
|
1073
|
-
e.addConditionGroupModal.open ? (
|
|
1072
|
+
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : M("", !0),
|
|
1073
|
+
e.addConditionGroupModal.open ? (o(), p($, {
|
|
1074
1074
|
key: 2,
|
|
1075
1075
|
open: e.addConditionGroupModal.open,
|
|
1076
1076
|
default_search_condition_config_list: e.default_search_condition_config_list,
|
|
1077
1077
|
base_search_condition_config_list: e.base_search_condition_config_list,
|
|
1078
1078
|
onOk: e.handleAddGroupConditionOK,
|
|
1079
1079
|
onCancel: e.handleAddGroupConditionCancel
|
|
1080
|
-
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) :
|
|
1080
|
+
}, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : M("", !0)
|
|
1081
1081
|
], 64);
|
|
1082
1082
|
}
|
|
1083
|
-
const
|
|
1083
|
+
const $o = /* @__PURE__ */ me(xl, [["render", sa], ["__scopeId", "data-v-793f4096"]]), ra = fe({
|
|
1084
1084
|
name: "FormRender3",
|
|
1085
1085
|
components: {
|
|
1086
|
-
FieldRender2:
|
|
1086
|
+
FieldRender2: We
|
|
1087
1087
|
},
|
|
1088
1088
|
props: {
|
|
1089
1089
|
model: {
|
|
@@ -1109,32 +1109,36 @@ const ba = /* @__PURE__ */ Z(fl, [["render", wl], ["__scopeId", "data-v-793f4096
|
|
|
1109
1109
|
type: Object,
|
|
1110
1110
|
default: () => {
|
|
1111
1111
|
}
|
|
1112
|
+
},
|
|
1113
|
+
alwaysShowGroup: {
|
|
1114
|
+
type: Boolean,
|
|
1115
|
+
default: !1
|
|
1112
1116
|
}
|
|
1113
1117
|
},
|
|
1114
1118
|
emits: ["update_model", "update_model"],
|
|
1115
|
-
setup(e, { emit:
|
|
1119
|
+
setup(e, { emit: l }) {
|
|
1116
1120
|
if (e.form.watch)
|
|
1117
|
-
for (let
|
|
1118
|
-
|
|
1119
|
-
() => e.model[
|
|
1121
|
+
for (let B in e.form.watch)
|
|
1122
|
+
ee(
|
|
1123
|
+
() => e.model[B],
|
|
1120
1124
|
() => {
|
|
1121
|
-
e.form.watch[
|
|
1125
|
+
e.form.watch[B](e.model, e.form);
|
|
1122
1126
|
}
|
|
1123
1127
|
);
|
|
1124
1128
|
return {
|
|
1125
1129
|
validate: () => e.form.validate(),
|
|
1126
|
-
onUpdateModel: (
|
|
1127
|
-
|
|
1130
|
+
onUpdateModel: (B) => {
|
|
1131
|
+
l("update_model", B);
|
|
1128
1132
|
},
|
|
1129
|
-
onUpdateName2: (
|
|
1130
|
-
|
|
1133
|
+
onUpdateName2: (B) => {
|
|
1134
|
+
l("update_model", B);
|
|
1131
1135
|
}
|
|
1132
1136
|
};
|
|
1133
1137
|
}
|
|
1134
1138
|
});
|
|
1135
|
-
function
|
|
1136
|
-
const
|
|
1137
|
-
return
|
|
1139
|
+
function ua(e, l, G, P, H, B) {
|
|
1140
|
+
const r = k("field-render-2"), D = k("a-col"), q = k("a-row"), F = k("a-card"), n = k("a-form");
|
|
1141
|
+
return o(), p(n, {
|
|
1138
1142
|
ref: "form",
|
|
1139
1143
|
autocomplete: "off",
|
|
1140
1144
|
model: e.model,
|
|
@@ -1144,37 +1148,37 @@ function Cl(e, u, K, D, V, q) {
|
|
|
1144
1148
|
class: "cards",
|
|
1145
1149
|
validateTrigger: !1
|
|
1146
1150
|
}, {
|
|
1147
|
-
default:
|
|
1148
|
-
(
|
|
1149
|
-
key:
|
|
1151
|
+
default: m(() => [
|
|
1152
|
+
(o(!0), U(N, null, Y(e.form.dynamicFieldList, (c, y) => (o(), p(F, {
|
|
1153
|
+
key: y,
|
|
1150
1154
|
"body-style": { padding: "10px 10px 0" },
|
|
1151
1155
|
style: { "margin-bottom": "5px" }
|
|
1152
|
-
},
|
|
1153
|
-
default:
|
|
1154
|
-
|
|
1156
|
+
}, Ue({
|
|
1157
|
+
default: m(() => [
|
|
1158
|
+
V(q, {
|
|
1155
1159
|
gutter: 5,
|
|
1156
1160
|
type: "flex"
|
|
1157
1161
|
}, {
|
|
1158
|
-
default:
|
|
1159
|
-
(
|
|
1160
|
-
key:
|
|
1161
|
-
span:
|
|
1162
|
-
offset:
|
|
1163
|
-
push:
|
|
1164
|
-
pull:
|
|
1162
|
+
default: m(() => [
|
|
1163
|
+
(o(!0), U(N, null, Y(c == null ? void 0 : c.children, (t, E) => (o(), p(D, {
|
|
1164
|
+
key: E,
|
|
1165
|
+
span: t.is_show_field ? t.span !== void 0 ? t.span : 24 : 0,
|
|
1166
|
+
offset: t.offset,
|
|
1167
|
+
push: t.push,
|
|
1168
|
+
pull: t.pull
|
|
1165
1169
|
}, {
|
|
1166
|
-
default:
|
|
1167
|
-
(
|
|
1168
|
-
value: e.model[
|
|
1169
|
-
"onUpdate:value": (
|
|
1170
|
-
is_show_field:
|
|
1171
|
-
"onUpdate:is_show_field": (
|
|
1172
|
-
field:
|
|
1170
|
+
default: m(() => [
|
|
1171
|
+
(o(), p(r, {
|
|
1172
|
+
value: e.model[t.name],
|
|
1173
|
+
"onUpdate:value": (S) => e.model[t.name] = S,
|
|
1174
|
+
is_show_field: t.is_show_field,
|
|
1175
|
+
"onUpdate:is_show_field": (S) => t.is_show_field = S,
|
|
1176
|
+
field: t,
|
|
1173
1177
|
formModel: e.model,
|
|
1174
1178
|
outModel: e.outModel,
|
|
1175
|
-
key:
|
|
1179
|
+
key: t.name,
|
|
1176
1180
|
validateInfos: e.validateInfos,
|
|
1177
|
-
options: e.options[
|
|
1181
|
+
options: e.options[t.datasource ? t.datasource : t.name],
|
|
1178
1182
|
onUpdate_model: e.onUpdateModel,
|
|
1179
1183
|
onUpdate_name2: e.onUpdateName2
|
|
1180
1184
|
}, null, 8, ["value", "onUpdate:value", "is_show_field", "onUpdate:is_show_field", "field", "formModel", "outModel", "validateInfos", "options", "onUpdate_model", "onUpdate_name2"]))
|
|
@@ -1187,10 +1191,10 @@ function Cl(e, u, K, D, V, q) {
|
|
|
1187
1191
|
]),
|
|
1188
1192
|
_: 2
|
|
1189
1193
|
}, [
|
|
1190
|
-
|
|
1194
|
+
c.group_name && (e.form.dynamicFieldList.length > 1 || e.alwaysShowGroup) ? {
|
|
1191
1195
|
name: "title",
|
|
1192
|
-
fn:
|
|
1193
|
-
|
|
1196
|
+
fn: m(() => [
|
|
1197
|
+
Z(I(c.group_name), 1)
|
|
1194
1198
|
]),
|
|
1195
1199
|
key: "0"
|
|
1196
1200
|
} : void 0
|
|
@@ -1199,7 +1203,7 @@ function Cl(e, u, K, D, V, q) {
|
|
|
1199
1203
|
_: 1
|
|
1200
1204
|
}, 8, ["model", "rules", "layout"]);
|
|
1201
1205
|
}
|
|
1202
|
-
const
|
|
1206
|
+
const Mo = /* @__PURE__ */ me(ra, [["render", ua], ["__scopeId", "data-v-bd5e5d2d"]]), fa = fe({
|
|
1203
1207
|
name: "FormRender",
|
|
1204
1208
|
components: {},
|
|
1205
1209
|
props: {
|
|
@@ -1223,11 +1227,11 @@ const wa = /* @__PURE__ */ Z(kl, [["render", Cl], ["__scopeId", "data-v-0abbe79b
|
|
|
1223
1227
|
},
|
|
1224
1228
|
setup(e) {
|
|
1225
1229
|
if (e.form.watch)
|
|
1226
|
-
for (const
|
|
1227
|
-
|
|
1228
|
-
() => e.model[
|
|
1230
|
+
for (const l in e.form.watch)
|
|
1231
|
+
ee(
|
|
1232
|
+
() => e.model[l],
|
|
1229
1233
|
() => {
|
|
1230
|
-
e.form.watch[
|
|
1234
|
+
e.form.watch[l](e.model, e.form);
|
|
1231
1235
|
}
|
|
1232
1236
|
);
|
|
1233
1237
|
},
|
|
@@ -1254,14 +1258,14 @@ const wa = /* @__PURE__ */ Z(kl, [["render", Cl], ["__scopeId", "data-v-0abbe79b
|
|
|
1254
1258
|
},
|
|
1255
1259
|
created() {
|
|
1256
1260
|
let e = 0;
|
|
1257
|
-
this.form.settings.col && this.form.settings.col.length > 0 && this.form.settings.col.forEach((
|
|
1258
|
-
e = e +
|
|
1261
|
+
this.form.settings.col && this.form.settings.col.length > 0 && this.form.settings.col.forEach((l, G) => {
|
|
1262
|
+
e = e + l, G === 0 ? this.fieldList.push([0, e]) : this.fieldList.push([e - l, e]);
|
|
1259
1263
|
});
|
|
1260
1264
|
}
|
|
1261
1265
|
});
|
|
1262
|
-
function
|
|
1263
|
-
const
|
|
1264
|
-
return
|
|
1266
|
+
function ma(e, l, G, P, H, B) {
|
|
1267
|
+
const r = k("field-render"), D = k("a-col"), q = k("a-row"), F = k("a-form");
|
|
1268
|
+
return o(), p(F, {
|
|
1265
1269
|
ref: "form",
|
|
1266
1270
|
autocomplete: "off",
|
|
1267
1271
|
model: e.model,
|
|
@@ -1273,33 +1277,33 @@ function Ol(e, u, K, D, V, q) {
|
|
|
1273
1277
|
labelAlign: e.form.settings.labelAlign,
|
|
1274
1278
|
scrollToFirstError: ""
|
|
1275
1279
|
}, {
|
|
1276
|
-
default:
|
|
1277
|
-
|
|
1280
|
+
default: m(() => [
|
|
1281
|
+
V(q, {
|
|
1278
1282
|
gutter: 20,
|
|
1279
1283
|
style: { margin: "0" }
|
|
1280
1284
|
}, {
|
|
1281
|
-
default:
|
|
1282
|
-
e.form.settings.col && e.form.settings.col.length > 0 ? (
|
|
1285
|
+
default: m(() => [
|
|
1286
|
+
e.form.settings.col && e.form.settings.col.length > 0 ? (o(!0), U(N, { key: 0 }, Y(e.fieldList, (n) => (o(), p(D, {
|
|
1283
1287
|
xl: 24 / e.fieldList.length,
|
|
1284
1288
|
lg: 24,
|
|
1285
1289
|
md: 24,
|
|
1286
1290
|
sm: 24,
|
|
1287
1291
|
xs: 24
|
|
1288
1292
|
}, {
|
|
1289
|
-
default:
|
|
1290
|
-
(
|
|
1291
|
-
value: e.model[
|
|
1292
|
-
"onUpdate:value": (
|
|
1293
|
-
field:
|
|
1293
|
+
default: m(() => [
|
|
1294
|
+
(o(!0), U(N, null, Y(e.form.fields.slice(n[0], n[1]), (c) => (o(), p(r, {
|
|
1295
|
+
value: e.model[c.name],
|
|
1296
|
+
"onUpdate:value": (y) => e.model[c.name] = y,
|
|
1297
|
+
field: c,
|
|
1294
1298
|
formModel: e.model,
|
|
1295
|
-
key:
|
|
1299
|
+
key: c.name,
|
|
1296
1300
|
validateInfos: e.validateInfos,
|
|
1297
|
-
options: e.options[
|
|
1301
|
+
options: e.options[c.datasource ? c.datasource : c.name]
|
|
1298
1302
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))), 128))
|
|
1299
1303
|
]),
|
|
1300
1304
|
_: 2
|
|
1301
|
-
}, 1032, ["xl"]))), 256)) :
|
|
1302
|
-
!e.form.settings.col || e.form.settings.col.length === 0 ? (
|
|
1305
|
+
}, 1032, ["xl"]))), 256)) : M("", !0),
|
|
1306
|
+
!e.form.settings.col || e.form.settings.col.length === 0 ? (o(), p(D, {
|
|
1303
1307
|
key: 1,
|
|
1304
1308
|
xl: 24,
|
|
1305
1309
|
lg: 24,
|
|
@@ -1307,31 +1311,31 @@ function Ol(e, u, K, D, V, q) {
|
|
|
1307
1311
|
sm: 24,
|
|
1308
1312
|
xs: 24
|
|
1309
1313
|
}, {
|
|
1310
|
-
default:
|
|
1311
|
-
(
|
|
1312
|
-
|
|
1313
|
-
value: e.model[
|
|
1314
|
-
"onUpdate:value": (
|
|
1315
|
-
label: e.model[
|
|
1316
|
-
"onUpdate:label": (
|
|
1317
|
-
field:
|
|
1314
|
+
default: m(() => [
|
|
1315
|
+
(o(!0), U(N, null, Y(e.form.fields, (n) => (o(), U(N, null, [
|
|
1316
|
+
n.name2 ? (o(), p(r, {
|
|
1317
|
+
value: e.model[n.name],
|
|
1318
|
+
"onUpdate:value": (c) => e.model[n.name] = c,
|
|
1319
|
+
label: e.model[n.name2],
|
|
1320
|
+
"onUpdate:label": (c) => e.model[n.name2] = c,
|
|
1321
|
+
field: n,
|
|
1318
1322
|
formModel: e.model,
|
|
1319
|
-
key:
|
|
1323
|
+
key: n.name,
|
|
1320
1324
|
validateInfos: e.validateInfos,
|
|
1321
|
-
options: e.options[
|
|
1322
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (
|
|
1323
|
-
value: e.model[
|
|
1324
|
-
"onUpdate:value": (
|
|
1325
|
-
field:
|
|
1325
|
+
options: e.options[n.datasource ? n.datasource : n.name]
|
|
1326
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (o(), p(r, {
|
|
1327
|
+
value: e.model[n.name],
|
|
1328
|
+
"onUpdate:value": (c) => e.model[n.name] = c,
|
|
1329
|
+
field: n,
|
|
1326
1330
|
formModel: e.model,
|
|
1327
|
-
key:
|
|
1331
|
+
key: n.name,
|
|
1328
1332
|
validateInfos: e.validateInfos,
|
|
1329
|
-
options: e.options[
|
|
1333
|
+
options: e.options[n.datasource ? n.datasource : n.name]
|
|
1330
1334
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))
|
|
1331
1335
|
], 64))), 256))
|
|
1332
1336
|
]),
|
|
1333
1337
|
_: 1
|
|
1334
|
-
})) :
|
|
1338
|
+
})) : M("", !0)
|
|
1335
1339
|
]),
|
|
1336
1340
|
_: 1
|
|
1337
1341
|
})
|
|
@@ -1339,7 +1343,7 @@ function Ol(e, u, K, D, V, q) {
|
|
|
1339
1343
|
_: 1
|
|
1340
1344
|
}, 8, ["model", "rules", "layout", "label-col", "wrapper-col", "labelAlign"]);
|
|
1341
1345
|
}
|
|
1342
|
-
const
|
|
1346
|
+
const So = /* @__PURE__ */ me(fa, [["render", ma]]), pa = fe({
|
|
1343
1347
|
name: "FormRender2",
|
|
1344
1348
|
components: {},
|
|
1345
1349
|
props: {
|
|
@@ -1363,11 +1367,11 @@ const ka = /* @__PURE__ */ Z($l, [["render", Ol]]), Sl = X({
|
|
|
1363
1367
|
},
|
|
1364
1368
|
setup(e) {
|
|
1365
1369
|
if (e.form.watch)
|
|
1366
|
-
for (const
|
|
1367
|
-
|
|
1368
|
-
() => e.model[
|
|
1370
|
+
for (const l in e.form.watch)
|
|
1371
|
+
ee(
|
|
1372
|
+
() => e.model[l],
|
|
1369
1373
|
() => {
|
|
1370
|
-
e.form.watch[
|
|
1374
|
+
e.form.watch[l](e.model, e.form);
|
|
1371
1375
|
}
|
|
1372
1376
|
);
|
|
1373
1377
|
},
|
|
@@ -1393,44 +1397,44 @@ const ka = /* @__PURE__ */ Z($l, [["render", Ol]]), Sl = X({
|
|
|
1393
1397
|
created() {
|
|
1394
1398
|
}
|
|
1395
1399
|
});
|
|
1396
|
-
function
|
|
1397
|
-
const
|
|
1398
|
-
return
|
|
1400
|
+
function ha(e, l, G, P, H, B) {
|
|
1401
|
+
const r = k("field-render"), D = k("a-col"), q = k("a-row"), F = k("a-form");
|
|
1402
|
+
return o(), p(F, {
|
|
1399
1403
|
ref: "form",
|
|
1400
1404
|
autocomplete: "off",
|
|
1401
1405
|
model: e.model,
|
|
1402
1406
|
rules: e.form.rules,
|
|
1403
1407
|
scrollToFirstError: ""
|
|
1404
1408
|
}, {
|
|
1405
|
-
default:
|
|
1406
|
-
(
|
|
1409
|
+
default: m(() => [
|
|
1410
|
+
(o(!0), U(N, null, Y(e.form.fieldList, (n) => (o(), p(q, {
|
|
1407
1411
|
gutter: "5",
|
|
1408
1412
|
type: "flex"
|
|
1409
1413
|
}, {
|
|
1410
|
-
default:
|
|
1411
|
-
(
|
|
1412
|
-
span:
|
|
1414
|
+
default: m(() => [
|
|
1415
|
+
(o(!0), U(N, null, Y(n, (c) => (o(), p(D, {
|
|
1416
|
+
span: c.span
|
|
1413
1417
|
}, {
|
|
1414
|
-
default:
|
|
1415
|
-
(
|
|
1416
|
-
|
|
1417
|
-
value: e.model[
|
|
1418
|
-
"onUpdate:value": (
|
|
1419
|
-
label: e.model[
|
|
1420
|
-
"onUpdate:label": (
|
|
1421
|
-
field:
|
|
1418
|
+
default: m(() => [
|
|
1419
|
+
(o(!0), U(N, null, Y(e.form.fields, (y) => (o(), U(N, null, [
|
|
1420
|
+
y.name2 ? (o(), p(r, {
|
|
1421
|
+
value: e.model[y.name],
|
|
1422
|
+
"onUpdate:value": (t) => e.model[y.name] = t,
|
|
1423
|
+
label: e.model[y.name2],
|
|
1424
|
+
"onUpdate:label": (t) => e.model[y.name2] = t,
|
|
1425
|
+
field: y,
|
|
1422
1426
|
formModel: e.model,
|
|
1423
|
-
key:
|
|
1427
|
+
key: y.name,
|
|
1424
1428
|
validateInfos: e.validateInfos,
|
|
1425
|
-
options: e.options[
|
|
1426
|
-
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (
|
|
1427
|
-
value: e.model[
|
|
1428
|
-
"onUpdate:value": (
|
|
1429
|
-
field:
|
|
1429
|
+
options: e.options[y.datasource ? y.datasource : y.name]
|
|
1430
|
+
}, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (o(), p(r, {
|
|
1431
|
+
value: e.model[y.name],
|
|
1432
|
+
"onUpdate:value": (t) => e.model[y.name] = t,
|
|
1433
|
+
field: y,
|
|
1430
1434
|
formModel: e.model,
|
|
1431
|
-
key:
|
|
1435
|
+
key: y.name,
|
|
1432
1436
|
validateInfos: e.validateInfos,
|
|
1433
|
-
options: e.options[
|
|
1437
|
+
options: e.options[y.datasource ? y.datasource : y.name]
|
|
1434
1438
|
}, null, 8, ["value", "onUpdate:value", "field", "formModel", "validateInfos", "options"]))
|
|
1435
1439
|
], 64))), 256))
|
|
1436
1440
|
]),
|
|
@@ -1443,40 +1447,986 @@ function El(e, u, K, D, V, q) {
|
|
|
1443
1447
|
_: 1
|
|
1444
1448
|
}, 8, ["model", "rules"]);
|
|
1445
1449
|
}
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1448
|
-
|
|
1450
|
+
const Eo = /* @__PURE__ */ me(pa, [["render", ha]]), he = (e, l = "YYYY-MM-DD") => z(e, l, !0).isValid(), Ge = (e, l = "YYYY-MM-DD HH:mm:ss") => z(e, l, !0).isValid(), He = (e, l = "HH:mm:ss") => z(e, l, !0).isValid(), _a = fe({
|
|
1451
|
+
name: "FieldRender2",
|
|
1452
|
+
methods: { isArray: Re },
|
|
1453
|
+
props: {
|
|
1454
|
+
field: {
|
|
1455
|
+
type: Object,
|
|
1456
|
+
required: !0
|
|
1457
|
+
},
|
|
1458
|
+
value: {
|
|
1459
|
+
required: !0
|
|
1460
|
+
},
|
|
1461
|
+
label: {
|
|
1462
|
+
required: !1
|
|
1463
|
+
},
|
|
1464
|
+
options: {
|
|
1465
|
+
type: Array,
|
|
1466
|
+
default: () => []
|
|
1467
|
+
},
|
|
1468
|
+
validateInfos: {
|
|
1469
|
+
type: Object,
|
|
1470
|
+
default: () => {
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
formModel: {
|
|
1474
|
+
type: Object,
|
|
1475
|
+
default: () => {
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
outModel: {
|
|
1479
|
+
type: Object,
|
|
1480
|
+
default: () => {
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
field_render_show: {
|
|
1484
|
+
type: Boolean,
|
|
1485
|
+
default: !0
|
|
1486
|
+
},
|
|
1487
|
+
is_show_label: {
|
|
1488
|
+
type: Boolean,
|
|
1489
|
+
default: !0
|
|
1490
|
+
},
|
|
1491
|
+
isUseConditions: {
|
|
1492
|
+
type: Boolean,
|
|
1493
|
+
default: !0
|
|
1494
|
+
},
|
|
1495
|
+
is_show_field: {
|
|
1496
|
+
type: Boolean,
|
|
1497
|
+
default: !0
|
|
1498
|
+
},
|
|
1499
|
+
is_edit: {
|
|
1500
|
+
type: Boolean,
|
|
1501
|
+
default: !0
|
|
1502
|
+
},
|
|
1503
|
+
conditionsVisibleNum: {
|
|
1504
|
+
type: Number,
|
|
1505
|
+
default: 0
|
|
1506
|
+
},
|
|
1507
|
+
is_form_design: {
|
|
1508
|
+
type: Boolean,
|
|
1509
|
+
default: !1
|
|
1510
|
+
},
|
|
1511
|
+
field_width: {
|
|
1512
|
+
type: Number,
|
|
1513
|
+
default: 150
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
emits: [
|
|
1517
|
+
"add",
|
|
1518
|
+
"update:value",
|
|
1519
|
+
"update:label",
|
|
1520
|
+
"update_model",
|
|
1521
|
+
"update:is_show_field",
|
|
1522
|
+
"update:is_edit",
|
|
1523
|
+
"update_name2"
|
|
1524
|
+
],
|
|
1525
|
+
setup(e, { emit: l }) {
|
|
1526
|
+
const G = le({ ...e.formModel }), P = (t) => typeof t == "string" && t.indexOf(",") >= 0 ? t.split(",") : t, H = (t, E) => {
|
|
1527
|
+
let S;
|
|
1528
|
+
return E == "int" ? x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1529
|
+
x(O) && typeof O == "string" ? S.push(Number(O)) : S.push(O);
|
|
1530
|
+
})) : x(t) && typeof t == "string" ? S = Number(t) : S = t : E == "str" ? x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1531
|
+
x(O) && typeof O == "number" ? S.push(O.toString()) : S.push(O);
|
|
1532
|
+
})) : x(t) && typeof t == "number" ? S = t.toString() : S = t : E == "date" ? x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1533
|
+
he(O) && typeof O == "string" ? S.push(z(O, "YYYY-MM-DD")) : S.push(O);
|
|
1534
|
+
})) : he(t) && typeof t == "string" ? S = t.toString() : S = t : E == "datetime" ? x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1535
|
+
Ge(O) && typeof O == "string" ? S.push(z(O, "YYYY-MM-DD HH:mm:ss")) : S.push(O);
|
|
1536
|
+
})) : Ge(t) && typeof t == "string" ? S = z(t, "YYYY-MM-DD HH:mm:ss") : S = t : E == "time" ? x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1537
|
+
He(O) && typeof O == "string" ? S.push(z(O, "HH:mm:ss")) : S.push(O);
|
|
1538
|
+
})) : He(t) && typeof t == "string" ? S = z(t, "HH:mm:ss") : S = t : E == "float" ? x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1539
|
+
x(O) && typeof O == "string" ? S.push(Number(O)) : S.push(O);
|
|
1540
|
+
})) : x(t) && typeof t == "string" ? S = Number(t) : S = t : E == "bool" && (x(t) && t instanceof Array ? (S = [], t.forEach((O) => {
|
|
1541
|
+
x(O) && typeof O == "string" ? S.push(!!O) : S.push(O);
|
|
1542
|
+
})) : x(t) && typeof t == "string" ? S = !!t : S = t), S;
|
|
1543
|
+
}, B = le(e.is_show_field), r = le(!1), D = () => {
|
|
1544
|
+
l("update:is_edit", r.value);
|
|
1545
|
+
}, q = () => {
|
|
1546
|
+
l("add");
|
|
1547
|
+
}, F = Il(() => {
|
|
1548
|
+
var j, K;
|
|
1549
|
+
const t = B.value, E = [];
|
|
1550
|
+
for (const J in (j = e.field) == null ? void 0 : j.conditions) {
|
|
1551
|
+
const ie = (K = e.field) == null ? void 0 : K.conditions[J], $ = [];
|
|
1552
|
+
for (const re in ie) {
|
|
1553
|
+
const C = ie[re], a = e.formModel[C.watchKey];
|
|
1554
|
+
let X;
|
|
1555
|
+
C.class_name ? X = H(C.value, C.class_name) : X = C.value;
|
|
1556
|
+
let _, ae;
|
|
1557
|
+
X instanceof Array && ([_, ae] = X), C.operator == "lt" ? typeof _ == "number" ? oe(a) ? $.push(!1) : a < _ ? $.push(!0) : $.push(!1) : he(_) && (oe(a) ? $.push(!1) : z(a).isBefore(z(_)) ? $.push(!0) : $.push(!1)) : C.operator == "lte" ? typeof _ == "number" ? oe(a) ? $.push(!1) : a <= _ ? $.push(!0) : $.push(!1) : he(_) && (oe(a) ? $.push(!1) : z(a).isBefore(z(_)) || z(a).isSame(z(_)) ? $.push(!0) : $.push(!1)) : C.operator == "gt" ? typeof _ == "number" ? oe(a) ? $.push(!1) : a > _ ? $.push(!0) : $.push(!1) : he(_) && (oe(a) ? $.push(!1) : z(a).isAfter(z(_)) ? $.push(!0) : $.push(!1)) : C.operator == "gte" ? typeof _ == "number" ? oe(a) ? $.push(!1) : a >= _ ? $.push(!0) : $.push(!1) : he(_) && (oe(a) ? $.push(!1) : z(a).isAfter(z(_)) || z(a).isSame(z(_)) ? $.push(!0) : $.push(!1)) : C.operator == "between" ? typeof _ == "number" && typeof ae == "number" && _ && ae ? oe(a) ? $.push(!1) : a >= _ && a <= ae ? $.push(!0) : $.push(!1) : he(_) && (oe(a) ? $.push(!1) : (z(a).isAfter(z(_)) || z(a).isSame(z(_))) && (z(a).isBefore(z(ae)) || z(a).isSame(z(ae))) ? $.push(!0) : $.push(!1)) : C.operator == "notbetween" ? typeof _ == "number" && typeof ae == "number" && _ && ae ? oe(a) ? $.push(!1) : a < _ || a > ae ? $.push(!0) : $.push(!1) : he(_) && (oe(a) ? $.push(!1) : z(a).isBefore(z(_)) || z(a).isAfter(z(ae)) ? $.push(!0) : $.push(!1)) : C.operator == "in" ? a instanceof Array ? X.filter((ne) => a.includes(ne)).length > 0 ? $.push(!0) : $.push(!1) : (typeof a == "string" || typeof a == "number" || oe(a)) && (X.find((ne) => a == ne) ? $.push(!0) : $.push(!1)) : C.operator == "eq" ? a === _ ? $.push(!0) : $.push(!1) : C.operator == "contains" ? a.toString().indexOf(_) > -1 ? $.push(!0) : $.push(!1) : C.operator == "startswith" ? a.toString().startsWith(_) ? $.push(!0) : $.push(!1) : C.operator == "notin" ? a instanceof Array ? X.filter((ne) => a.includes(ne)).length > 0 ? $.push(!0) : $.push(!1) : (typeof a == "string" || typeof a == "number" || oe(a)) && (X.find((ne) => a == ne) ? $.push(!1) : $.push(!0)) : C.operator == "notcontains" ? a.toString().indexOf(_) == -1 ? $.push(!0) : $.push(!1) : C.operator == "_eq" || (C.operator == "json_list_not_blank_not_null" ? a ? $.push(!0) : $.push(!1) : C.operator == "json_list_is_blank_is_null" || C.operator == "not_eq" ? a ? $.push(!1) : $.push(!0) : C.operator == "not_blank_not_null" && (a ? $.push(!0) : $.push(!1)));
|
|
1558
|
+
}
|
|
1559
|
+
E.push($);
|
|
1560
|
+
}
|
|
1561
|
+
const S = [];
|
|
1562
|
+
E.forEach((J) => {
|
|
1563
|
+
const ie = J.filter(($) => $ === !1);
|
|
1564
|
+
ie && ie.length > 0 ? S.push(!1) : S.push(!0);
|
|
1565
|
+
});
|
|
1566
|
+
const O = S.filter((J) => J === !0);
|
|
1567
|
+
O && O.length > 0 ? (B.value = !0, l("update:is_show_field", B.value)) : (B.value = !1, l("update:is_show_field", B.value)), B.value !== t && (B.value ? (G.value[e.field.name] = null, l("update_model", {
|
|
1568
|
+
add_key: e.field.name,
|
|
1569
|
+
value: null
|
|
1570
|
+
})) : (delete G.value[e.field.name], l("update_model", {
|
|
1571
|
+
remove_key: e.field.name
|
|
1572
|
+
})));
|
|
1573
|
+
}, 300), n = le(""), c = le(e.label);
|
|
1574
|
+
ee(
|
|
1575
|
+
() => n.value,
|
|
1576
|
+
(t, E) => {
|
|
1577
|
+
if (!Kl(t, E) && (l("update:value", t), e.field.name2)) {
|
|
1578
|
+
let S;
|
|
1579
|
+
if (e.field.type === "radio") {
|
|
1580
|
+
const O = e.options.find(
|
|
1581
|
+
(j) => j[e.field.valueKey ? e.field.valueKey : "value"] == t
|
|
1582
|
+
);
|
|
1583
|
+
S = O == null ? void 0 : O[e.field.labelKey ? e.field.labelKey : "label"];
|
|
1584
|
+
} else if (e.field.type === "checkbox" && t && t.length >= 0) {
|
|
1585
|
+
const O = [];
|
|
1586
|
+
e.options.forEach((j) => {
|
|
1587
|
+
t.forEach((K) => {
|
|
1588
|
+
K == (j == null ? void 0 : j[e.field.valueKey ? e.field.valueKey : "value"]) && O.push(j == null ? void 0 : j[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1589
|
+
});
|
|
1590
|
+
}), S = O.toString();
|
|
1591
|
+
} else if (e.field.type === "select")
|
|
1592
|
+
if (Re(t)) {
|
|
1593
|
+
const O = [];
|
|
1594
|
+
e.options.forEach((j) => {
|
|
1595
|
+
t.forEach((K) => {
|
|
1596
|
+
K == (j == null ? void 0 : j[e.field.valueKey ? e.field.valueKey : "value"]) && O.push(j == null ? void 0 : j[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1597
|
+
});
|
|
1598
|
+
}), S = O.toString();
|
|
1599
|
+
} else {
|
|
1600
|
+
const O = e.options.find(
|
|
1601
|
+
(j) => j[e.field.valueKey ? e.field.valueKey : "value"] == t
|
|
1602
|
+
);
|
|
1603
|
+
S = O == null ? void 0 : O[e.field.labelKey ? e.field.labelKey : "label"];
|
|
1604
|
+
}
|
|
1605
|
+
l("update_name2", {
|
|
1606
|
+
key: e.field.name2,
|
|
1607
|
+
value: S
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
{ deep: !0 }
|
|
1612
|
+
), ee(
|
|
1613
|
+
() => e.value,
|
|
1614
|
+
(t) => {
|
|
1615
|
+
let E = t;
|
|
1616
|
+
e.field.type === "rangepicker" && E ? E = P(E) : e.field.type === "input" && E && (E = E.toString().replace(/(^\s*)|(\s*$)/g, "")), B.value && (n.value = E);
|
|
1617
|
+
},
|
|
1618
|
+
{ immediate: !0 }
|
|
1619
|
+
), ee(
|
|
1620
|
+
() => c.value,
|
|
1621
|
+
(t) => {
|
|
1622
|
+
l("update:label", t), "name2" in e.field && l("update_name2", { key: e.field.name2, value: t.toString() });
|
|
1623
|
+
},
|
|
1624
|
+
{ deep: !0 }
|
|
1625
|
+
), ee(
|
|
1626
|
+
() => e.label,
|
|
1627
|
+
(t) => {
|
|
1628
|
+
c.value = t;
|
|
1629
|
+
}
|
|
1630
|
+
), ee(
|
|
1631
|
+
() => e.formModel,
|
|
1632
|
+
(t) => {
|
|
1633
|
+
G.value = { ...t };
|
|
1634
|
+
},
|
|
1635
|
+
{ deep: !0 }
|
|
1636
|
+
), ee(
|
|
1637
|
+
() => G.value,
|
|
1638
|
+
(t, E) => {
|
|
1639
|
+
var S, O;
|
|
1640
|
+
(S = e.field) != null && S.conditions && ((O = e.field) == null || O.conditions.forEach((j) => {
|
|
1641
|
+
j.forEach((K) => {
|
|
1642
|
+
E[K.watchKey] != t[K.watchKey] && F();
|
|
1643
|
+
});
|
|
1644
|
+
}));
|
|
1645
|
+
},
|
|
1646
|
+
{ deep: !0 }
|
|
1647
|
+
), ee(
|
|
1648
|
+
() => [e.conditionsVisibleNum, e.isUseConditions],
|
|
1649
|
+
() => {
|
|
1650
|
+
var t;
|
|
1651
|
+
(t = e.field) != null && t.conditions && e.isUseConditions ? F() : (B.value = !0, l("update:is_show_field", B.value));
|
|
1652
|
+
}
|
|
1653
|
+
), Fe(() => {
|
|
1654
|
+
var t, E;
|
|
1655
|
+
((t = e.field) == null ? void 0 : t.conditions) instanceof Array && ((E = e.field) == null ? void 0 : E.conditions.length) > 0 ? F() : (B.value = !0, l("update:is_show_field", B.value)), B.value || (delete G.value[e.field.name], l("update_model", {
|
|
1656
|
+
remove_key: e.field.name
|
|
1657
|
+
}));
|
|
1658
|
+
});
|
|
1659
|
+
const { t: y } = Ae();
|
|
1660
|
+
return {
|
|
1661
|
+
t: y,
|
|
1662
|
+
is_show_field: B,
|
|
1663
|
+
is_edit: r,
|
|
1664
|
+
handleToggleEdit: D,
|
|
1665
|
+
rangeDate: P,
|
|
1666
|
+
handleAdd: q,
|
|
1667
|
+
model: n,
|
|
1668
|
+
labelModel: c
|
|
1669
|
+
};
|
|
1670
|
+
},
|
|
1671
|
+
components: {
|
|
1672
|
+
IconSelect: al,
|
|
1673
|
+
RichTextEditor: ol,
|
|
1674
|
+
Upload: tl,
|
|
1675
|
+
RemoteCascaderPro: il,
|
|
1676
|
+
RemoteTreeSelectPro: nl,
|
|
1677
|
+
RemoteSelectPro: dl,
|
|
1678
|
+
RemoteComplete: sl,
|
|
1679
|
+
AttributeTable: rl,
|
|
1680
|
+
AttributeNomTable: ul,
|
|
1681
|
+
RemoteFilterSelect: fl,
|
|
1682
|
+
RemoteModal: ml,
|
|
1683
|
+
RemoteSelect: pl,
|
|
1684
|
+
RemoteCascader: hl,
|
|
1685
|
+
RemoteTreeSelect: _l,
|
|
1686
|
+
RemoteTable: yl,
|
|
1687
|
+
JsonStr: vl,
|
|
1688
|
+
JsonObj: cl,
|
|
1689
|
+
RemoteText: bl,
|
|
1690
|
+
RemoteTablePro: gl,
|
|
1691
|
+
PlusOutlined: Qe,
|
|
1692
|
+
MonthPicker: wl,
|
|
1693
|
+
MonthRangePicker: kl,
|
|
1694
|
+
CodeEditor: Cl,
|
|
1695
|
+
TinymceEditor: $l
|
|
1696
|
+
}
|
|
1697
|
+
});
|
|
1698
|
+
const ya = {
|
|
1699
|
+
key: 0,
|
|
1700
|
+
style: { height: "62px", width: "200px" }
|
|
1701
|
+
}, va = { key: 1 }, ca = { key: 0 }, ba = { key: 1 }, ga = {
|
|
1702
|
+
key: 3,
|
|
1703
|
+
style: { height: "30px", position: "relative" }
|
|
1704
|
+
}, wa = { style: { position: "absolute", bottom: "0", padding: "0", margin: "0", "font-weight": "bolder", "font-size": "17px" } }, ka = { key: 0 }, Ca = { key: 0 }, $a = { key: 0 }, Ma = { key: 0 }, Sa = { key: 0 }, Ea = { key: 0 }, Oa = { key: 0 }, Ua = { key: 0 };
|
|
1705
|
+
function Fa(e, l, G, P, H, B) {
|
|
1706
|
+
var d, s, w, h, u, b, T, A, de, ge, we, Ie, Ke, Ve, Be, je, Te;
|
|
1707
|
+
const r = k("a-tag"), D = k("a-rate"), q = k("a-input"), F = k("a-input-number"), n = k("a-select-option"), c = k("a-select"), y = k("a-cascader"), t = k("remote-cascader"), E = k("remote-cascader-pro"), S = k("month-picker"), O = k("a-date-picker"), j = k("a-range-picker"), K = k("month-range-picker"), J = k("a-time-picker"), ie = k("a-time-range-picker"), $ = k("a-radio"), re = k("a-radio-group"), C = k("a-checkbox"), a = k("a-checkbox-group"), X = k("a-tree-select"), _ = k("remote-filter-select"), ae = k("remote-select"), ue = k("remote-select-pro"), ne = k("remote-complete"), be = k("remote-tree-select"), _e = k("remote-tree-select-pro"), ve = k("remote-modal"), f = k("remote-table"), g = k("remote-text"), v = k("a-divider");
|
|
1708
|
+
return o(), U(N, null, [
|
|
1709
|
+
e.field.type !== "divider" && (((d = e.field) == null ? void 0 : d.is_search_show) !== !1 || e.field_render_show) ? (o(), U(N, { key: 0 }, [
|
|
1710
|
+
xe(e.$slots, "default", {}, void 0, !0),
|
|
1711
|
+
e.field.type === "kong" ? (o(), U("div", ya)) : M("", !0),
|
|
1712
|
+
e.field.type === "tag" ? (o(), U("div", va, [
|
|
1713
|
+
e.field.content && e.field.content(e.field, e.model) || e.model ? (o(), p(r, {
|
|
1714
|
+
key: 0,
|
|
1715
|
+
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1716
|
+
style: R(e.field.style),
|
|
1717
|
+
onClick: l[0] || (l[0] = (i) => e.field.cb ? e.field.cb(e.field, e.model) : "")
|
|
1718
|
+
}, {
|
|
1719
|
+
default: m(() => [
|
|
1720
|
+
e.field.content ? (o(), U("span", ca, I(e.field.content(e.field, e.model)), 1)) : (o(), U("span", ba, I(e.model), 1))
|
|
1721
|
+
]),
|
|
1722
|
+
_: 1
|
|
1723
|
+
}, 8, ["color", "style"])) : M("", !0)
|
|
1724
|
+
])) : M("", !0),
|
|
1725
|
+
e.field.type === "kong_title" ? (o(), U("div", {
|
|
1726
|
+
key: 2,
|
|
1727
|
+
style: R("height: " + e.field.height + "px")
|
|
1728
|
+
}, null, 4)) : M("", !0),
|
|
1729
|
+
e.field.type === "title" ? (o(), U("div", ga, [
|
|
1730
|
+
L("span", wa, I(e.field.name), 1)
|
|
1731
|
+
])) : M("", !0),
|
|
1732
|
+
e.field.type === "rate" ? (o(), p(D, {
|
|
1733
|
+
key: 4,
|
|
1734
|
+
value: e.model,
|
|
1735
|
+
"onUpdate:value": l[1] || (l[1] = (i) => e.model = i),
|
|
1736
|
+
disabled: e.field.disabled,
|
|
1737
|
+
"allow-half": "",
|
|
1738
|
+
style: R(`width: ${e.field_width}px`)
|
|
1739
|
+
}, null, 8, ["value", "disabled", "style"])) : M("", !0),
|
|
1740
|
+
e.field.type === "input" ? (o(), p(q, {
|
|
1741
|
+
key: 5,
|
|
1742
|
+
value: e.model,
|
|
1743
|
+
"onUpdate:value": l[2] || (l[2] = (i) => e.model = i),
|
|
1744
|
+
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
1745
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1746
|
+
"default-value": e.field.defaultValue,
|
|
1747
|
+
disabled: e.field.disabled,
|
|
1748
|
+
maxlength: e.field.maxlength,
|
|
1749
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请输入") + e.field.label,
|
|
1750
|
+
type: e.field.inputType ? e.field.inputType : "text",
|
|
1751
|
+
size: "small",
|
|
1752
|
+
style: R(`width: ${e.field_width}px`)
|
|
1753
|
+
}, Ue({ _: 2 }, [
|
|
1754
|
+
(s = e.field) != null && s.prefix || (w = e.field) != null && w.prefixIcon ? {
|
|
1755
|
+
name: "prefix",
|
|
1756
|
+
fn: m(() => {
|
|
1757
|
+
var i, W, Q;
|
|
1758
|
+
return [
|
|
1759
|
+
(i = e.field) != null && i.prefix ? (o(), U("span", ka, I(e.field.prefix), 1)) : M("", !0),
|
|
1760
|
+
(W = e.field) != null && W.prefixIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.prefixIcon), { key: 1 })) : M("", !0)
|
|
1761
|
+
];
|
|
1762
|
+
}),
|
|
1763
|
+
key: "0"
|
|
1764
|
+
} : void 0,
|
|
1765
|
+
(h = e.field) != null && h.suffix || (u = e.field) != null && u.suffixIcon ? {
|
|
1766
|
+
name: "suffix",
|
|
1767
|
+
fn: m(() => {
|
|
1768
|
+
var i, W, Q;
|
|
1769
|
+
return [
|
|
1770
|
+
(i = e.field) != null && i.suffix ? (o(), U("span", Ca, I(e.field.suffix), 1)) : M("", !0),
|
|
1771
|
+
(W = e.field) != null && W.suffixIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.suffixIcon), { key: 1 })) : M("", !0)
|
|
1772
|
+
];
|
|
1773
|
+
}),
|
|
1774
|
+
key: "1"
|
|
1775
|
+
} : void 0,
|
|
1776
|
+
(b = e.field) != null && b.addonBefore || (T = e.field) != null && T.addonBeforeIcon ? {
|
|
1777
|
+
name: "addonBefore",
|
|
1778
|
+
fn: m(() => {
|
|
1779
|
+
var i, W, Q;
|
|
1780
|
+
return [
|
|
1781
|
+
(i = e.field) != null && i.addonBefore ? (o(), U("span", $a, I(e.field.addonBefore), 1)) : M("", !0),
|
|
1782
|
+
(W = e.field) != null && W.addonBeforeIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.addonBeforeIcon), { key: 1 })) : M("", !0)
|
|
1783
|
+
];
|
|
1784
|
+
}),
|
|
1785
|
+
key: "2"
|
|
1786
|
+
} : void 0,
|
|
1787
|
+
(A = e.field) != null && A.addonAfter || (de = e.field) != null && de.addonAfterIcon ? {
|
|
1788
|
+
name: "addonAfter",
|
|
1789
|
+
fn: m(() => {
|
|
1790
|
+
var i, W, Q;
|
|
1791
|
+
return [
|
|
1792
|
+
(i = e.field) != null && i.addonAfter ? (o(), U("span", Ma, I(e.field.addonAfter), 1)) : M("", !0),
|
|
1793
|
+
(W = e.field) != null && W.addonAfterIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.addonAfterIcon), { key: 1 })) : M("", !0)
|
|
1794
|
+
];
|
|
1795
|
+
}),
|
|
1796
|
+
key: "3"
|
|
1797
|
+
} : void 0
|
|
1798
|
+
]), 1032, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "maxlength", "placeholder", "type", "style"])) : M("", !0),
|
|
1799
|
+
e.field.type === "money" ? (o(), p(F, {
|
|
1800
|
+
key: 6,
|
|
1801
|
+
size: "small",
|
|
1802
|
+
value: e.model,
|
|
1803
|
+
"onUpdate:value": l[3] || (l[3] = (i) => e.model = i),
|
|
1804
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1805
|
+
disabled: e.field.disabled,
|
|
1806
|
+
"default-value": e.field.defaultValue,
|
|
1807
|
+
min: e.field.min,
|
|
1808
|
+
max: e.field.max,
|
|
1809
|
+
formatter: (i) => `${i}`.replace(/\B(?=(\d{3})+(?!\d))/g, ","),
|
|
1810
|
+
precision: e.field.precision,
|
|
1811
|
+
step: e.field.step,
|
|
1812
|
+
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder : e.t(e.field.placeholder_i18n),
|
|
1813
|
+
style: R(`width: ${e.field_width}px`)
|
|
1814
|
+
}, null, 8, ["value", "autocomplete", "disabled", "default-value", "min", "max", "formatter", "precision", "step", "placeholder", "style"])) : M("", !0),
|
|
1815
|
+
e.field.type === "number" ? (o(), p(F, {
|
|
1816
|
+
key: 7,
|
|
1817
|
+
value: e.model,
|
|
1818
|
+
"onUpdate:value": l[4] || (l[4] = (i) => e.model = i),
|
|
1819
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1820
|
+
"default-value": e.field.defaultValue,
|
|
1821
|
+
disabled: e.field.disabled,
|
|
1822
|
+
formatter: e.field.formatter,
|
|
1823
|
+
max: e.field.max,
|
|
1824
|
+
min: e.field.min,
|
|
1825
|
+
placeholder: e.field.placeholder ? e.field.placeholder : "请输入" + e.field.label,
|
|
1826
|
+
precision: e.field.precision,
|
|
1827
|
+
step: e.field.step,
|
|
1828
|
+
size: "small",
|
|
1829
|
+
style: R(`width: ${e.field_width}px`)
|
|
1830
|
+
}, Ue({ _: 2 }, [
|
|
1831
|
+
(ge = e.field) != null && ge.prefix || (we = e.field) != null && we.prefixIcon ? {
|
|
1832
|
+
name: "prefix",
|
|
1833
|
+
fn: m(() => {
|
|
1834
|
+
var i, W, Q;
|
|
1835
|
+
return [
|
|
1836
|
+
(i = e.field) != null && i.prefix ? (o(), U("span", Sa, I(e.field.prefix), 1)) : M("", !0),
|
|
1837
|
+
(W = e.field) != null && W.prefixIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.prefixIcon), { key: 1 })) : M("", !0)
|
|
1838
|
+
];
|
|
1839
|
+
}),
|
|
1840
|
+
key: "0"
|
|
1841
|
+
} : void 0,
|
|
1842
|
+
(Ie = e.field) != null && Ie.suffix || (Ke = e.field) != null && Ke.suffixIcon ? {
|
|
1843
|
+
name: "suffix",
|
|
1844
|
+
fn: m(() => {
|
|
1845
|
+
var i, W, Q;
|
|
1846
|
+
return [
|
|
1847
|
+
(i = e.field) != null && i.suffix ? (o(), U("span", Ea, I(e.field.suffix), 1)) : M("", !0),
|
|
1848
|
+
(W = e.field) != null && W.suffixIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.suffixIcon), { key: 1 })) : M("", !0)
|
|
1849
|
+
];
|
|
1850
|
+
}),
|
|
1851
|
+
key: "1"
|
|
1852
|
+
} : void 0,
|
|
1853
|
+
(Ve = e.field) != null && Ve.addonBefore || (Be = e.field) != null && Be.addonBeforeIcon ? {
|
|
1854
|
+
name: "addonBefore",
|
|
1855
|
+
fn: m(() => {
|
|
1856
|
+
var i, W, Q;
|
|
1857
|
+
return [
|
|
1858
|
+
(i = e.field) != null && i.addonBefore ? (o(), U("span", Oa, I(e.field.addonBefore), 1)) : M("", !0),
|
|
1859
|
+
(W = e.field) != null && W.addonBeforeIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.addonBeforeIcon), { key: 1 })) : M("", !0)
|
|
1860
|
+
];
|
|
1861
|
+
}),
|
|
1862
|
+
key: "2"
|
|
1863
|
+
} : void 0,
|
|
1864
|
+
(je = e.field) != null && je.addonAfter || (Te = e.field) != null && Te.addonAfterIcon ? {
|
|
1865
|
+
name: "addonAfter",
|
|
1866
|
+
fn: m(() => {
|
|
1867
|
+
var i, W, Q;
|
|
1868
|
+
return [
|
|
1869
|
+
(i = e.field) != null && i.addonAfter ? (o(), U("span", Ua, I(e.field.addonAfter), 1)) : M("", !0),
|
|
1870
|
+
(W = e.field) != null && W.addonAfterIcon ? (o(), p(pe((Q = e.field) == null ? void 0 : Q.addonAfterIcon), { key: 1 })) : M("", !0)
|
|
1871
|
+
];
|
|
1872
|
+
}),
|
|
1873
|
+
key: "3"
|
|
1874
|
+
} : void 0
|
|
1875
|
+
]), 1032, ["value", "autocomplete", "default-value", "disabled", "formatter", "max", "min", "placeholder", "precision", "step", "style"])) : M("", !0),
|
|
1876
|
+
e.field.type === "select" ? (o(), U(N, { key: 8 }, [
|
|
1877
|
+
e.field.mode === "default" ? (o(), p(c, {
|
|
1878
|
+
key: 0,
|
|
1879
|
+
value: e.model,
|
|
1880
|
+
"onUpdate:value": l[5] || (l[5] = (i) => e.model = i),
|
|
1881
|
+
"allow-clear": e.field.allowClear,
|
|
1882
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1883
|
+
"default-value": e.field.defaultValue,
|
|
1884
|
+
disabled: e.field.disabled,
|
|
1885
|
+
dropdownMatchSelectWidth: !1,
|
|
1886
|
+
maxTagCount: e.field.maxTagCount ? e.field.maxTagCount : "responsive",
|
|
1887
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
1888
|
+
"show-search": !!e.field.show_search,
|
|
1889
|
+
size: "small",
|
|
1890
|
+
style: R(`width: ${e.field_width}px`)
|
|
1891
|
+
}, {
|
|
1892
|
+
default: m(() => [
|
|
1893
|
+
(o(!0), U(N, null, Y(e.options, (i) => (o(), p(n, {
|
|
1894
|
+
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1895
|
+
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1896
|
+
}, {
|
|
1897
|
+
default: m(() => [
|
|
1898
|
+
Z(I(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
1899
|
+
]),
|
|
1900
|
+
_: 2
|
|
1901
|
+
}, 1032, ["value"]))), 128))
|
|
1902
|
+
]),
|
|
1903
|
+
_: 1
|
|
1904
|
+
}, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "maxTagCount", "placeholder", "show-search", "style"])) : (o(), p(c, {
|
|
1905
|
+
key: 1,
|
|
1906
|
+
value: e.model,
|
|
1907
|
+
"onUpdate:value": l[6] || (l[6] = (i) => e.model = i),
|
|
1908
|
+
"allow-clear": e.field.allowClear,
|
|
1909
|
+
"default-value": e.field.defaultValue,
|
|
1910
|
+
disabled: e.field.disabled,
|
|
1911
|
+
dropdownMatchSelectWidth: !1,
|
|
1912
|
+
maxTagCount: e.field.maxTagCount ? e.field.maxTagCount : "responsive",
|
|
1913
|
+
mode: e.field.mode,
|
|
1914
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
1915
|
+
"show-search": !!e.field.show_search,
|
|
1916
|
+
size: "small",
|
|
1917
|
+
style: R(`width: ${e.field_width}px`)
|
|
1918
|
+
}, {
|
|
1919
|
+
default: m(() => [
|
|
1920
|
+
(o(!0), U(N, null, Y(e.options, (i, W) => (o(), p(n, {
|
|
1921
|
+
key: W,
|
|
1922
|
+
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1923
|
+
}, {
|
|
1924
|
+
default: m(() => [
|
|
1925
|
+
Z(I(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
1926
|
+
]),
|
|
1927
|
+
_: 2
|
|
1928
|
+
}, 1032, ["value"]))), 128))
|
|
1929
|
+
]),
|
|
1930
|
+
_: 1
|
|
1931
|
+
}, 8, ["value", "allow-clear", "default-value", "disabled", "maxTagCount", "mode", "placeholder", "show-search", "style"]))
|
|
1932
|
+
], 64)) : M("", !0),
|
|
1933
|
+
e.field.type === "groupselect" ? (o(), U(N, { key: 9 }, [
|
|
1934
|
+
e.field.mode === "default" ? (o(), p(c, {
|
|
1935
|
+
key: 0,
|
|
1936
|
+
value: e.model,
|
|
1937
|
+
"onUpdate:value": l[7] || (l[7] = (i) => e.model = i),
|
|
1938
|
+
"allow-clear": e.field.allowClear,
|
|
1939
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1940
|
+
"default-value": e.field.defaultValue,
|
|
1941
|
+
disabled: e.field.disabled,
|
|
1942
|
+
dropdownMatchSelectWidth: !1,
|
|
1943
|
+
getPopupContainer: e.field.getPopupContainer == null ? null : e.field.getPopupContainer,
|
|
1944
|
+
labelInValue: e.field.labelInValue === !0,
|
|
1945
|
+
maxTagCount: e.field.maxTagCount ? e.field.maxTagCount : "responsive",
|
|
1946
|
+
options: e.options,
|
|
1947
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
1948
|
+
"show-search": !!e.field.show_search,
|
|
1949
|
+
size: "small",
|
|
1950
|
+
style: R(`width: ${e.field_width}px`)
|
|
1951
|
+
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "getPopupContainer", "labelInValue", "maxTagCount", "options", "placeholder", "show-search", "style"])) : (o(), p(c, {
|
|
1952
|
+
key: 1,
|
|
1953
|
+
value: e.model,
|
|
1954
|
+
"onUpdate:value": l[8] || (l[8] = (i) => e.model = i),
|
|
1955
|
+
"allow-clear": e.field.allowClear,
|
|
1956
|
+
"default-value": e.field.defaultValue,
|
|
1957
|
+
disabled: e.field.disabled,
|
|
1958
|
+
dropdownMatchSelectWidth: !1,
|
|
1959
|
+
getPopupContainer: e.field.getPopupContainer == null ? null : e.field.getPopupContainer,
|
|
1960
|
+
labelInValue: e.field.labelInValue === !0,
|
|
1961
|
+
maxTagCount: e.field.maxTagCount ? e.field.maxTagCount : "responsive",
|
|
1962
|
+
mode: e.field.mode,
|
|
1963
|
+
options: e.options,
|
|
1964
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
1965
|
+
"show-search": !!e.field.show_search,
|
|
1966
|
+
size: "small",
|
|
1967
|
+
style: R(`width: ${e.field_width}px`)
|
|
1968
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "getPopupContainer", "labelInValue", "maxTagCount", "mode", "options", "placeholder", "show-search", "style"]))
|
|
1969
|
+
], 64)) : M("", !0),
|
|
1970
|
+
e.field.type === "cascader" ? (o(), p(y, {
|
|
1971
|
+
key: 10,
|
|
1972
|
+
value: e.model,
|
|
1973
|
+
"onUpdate:value": l[9] || (l[9] = (i) => e.model = i),
|
|
1974
|
+
"allow-clear": e.field.allowClear,
|
|
1975
|
+
"default-value": e.field.defaultValue,
|
|
1976
|
+
disabled: e.field.disabled,
|
|
1977
|
+
multiple: e.field.multiple,
|
|
1978
|
+
"show-search": e.field.show_search,
|
|
1979
|
+
changeOnSelect: e.field.changeOnSelect ? e.field.changeOnSelect : !1,
|
|
1980
|
+
options: e.field.getOptionsData ? e.field.getOptionsData(e.options, e.model) : e.options,
|
|
1981
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
1982
|
+
size: "small",
|
|
1983
|
+
style: R(`width: ${e.field_width}px`)
|
|
1984
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "multiple", "show-search", "changeOnSelect", "options", "placeholder", "style"])) : M("", !0),
|
|
1985
|
+
e.field.type === "remotecascader" ? (o(), p(t, {
|
|
1986
|
+
key: 11,
|
|
1987
|
+
value: e.model,
|
|
1988
|
+
"onUpdate:value": l[10] || (l[10] = (i) => e.model = i),
|
|
1989
|
+
label: e.labelModel,
|
|
1990
|
+
"onUpdate:label": l[11] || (l[11] = (i) => e.labelModel = i),
|
|
1991
|
+
field: e.field,
|
|
1992
|
+
formModel: e.formModel,
|
|
1993
|
+
"get-data": e.field.getData,
|
|
1994
|
+
"label-key": e.field.labelKey,
|
|
1995
|
+
"label-key-list": e.field.labelKeyList,
|
|
1996
|
+
"label-space": e.field.labelSpace,
|
|
1997
|
+
search_config: e.field.search_config,
|
|
1998
|
+
"value-key": e.field.valueKey,
|
|
1999
|
+
style: R(`width: ${e.field_width}px`)
|
|
2000
|
+
}, null, 8, ["value", "label", "field", "formModel", "get-data", "label-key", "label-key-list", "label-space", "search_config", "value-key", "style"])) : M("", !0),
|
|
2001
|
+
e.field.type === "remotecascaderpro" ? (o(), p(E, {
|
|
2002
|
+
key: 12,
|
|
2003
|
+
label: e.labelModel,
|
|
2004
|
+
"onUpdate:label": l[12] || (l[12] = (i) => e.labelModel = i),
|
|
2005
|
+
value: e.model,
|
|
2006
|
+
"onUpdate:value": l[13] || (l[13] = (i) => e.model = i),
|
|
2007
|
+
"allow-clear": e.field.allowClear,
|
|
2008
|
+
"default-value": e.field.defaultValue,
|
|
2009
|
+
disabled: e.field.disabled,
|
|
2010
|
+
field: e.field,
|
|
2011
|
+
formModel: e.formModel,
|
|
2012
|
+
outModel: e.outModel,
|
|
2013
|
+
"get-data": e.field.getData,
|
|
2014
|
+
multiple: e.field.multiple,
|
|
2015
|
+
maxTagCount: e.field.maxTagCount ? e.field.maxTagCount : "responsive",
|
|
2016
|
+
show_search: e.field.show_search,
|
|
2017
|
+
"label-key-type": e.field.labelKeyType,
|
|
2018
|
+
"label-key-list": e.field.labelKeyList,
|
|
2019
|
+
"label-space": e.field.labelSpace,
|
|
2020
|
+
"label-key": e.field.labelKey,
|
|
2021
|
+
"value-key": e.field.valueKey,
|
|
2022
|
+
init_model: e.field.init_model,
|
|
2023
|
+
init_watch: e.field.init_watch,
|
|
2024
|
+
is_form_design: e.is_form_design,
|
|
2025
|
+
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2026
|
+
style: R(`width: ${e.field_width}px`)
|
|
2027
|
+
}, null, 8, ["label", "value", "allow-clear", "default-value", "disabled", "field", "formModel", "outModel", "get-data", "multiple", "maxTagCount", "show_search", "label-key-type", "label-key-list", "label-space", "label-key", "value-key", "init_model", "init_watch", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2028
|
+
e.field.type === "monthpicker" ? (o(), p(S, {
|
|
2029
|
+
key: 13,
|
|
2030
|
+
value: e.model,
|
|
2031
|
+
"onUpdate:value": l[14] || (l[14] = (i) => e.model = i),
|
|
2032
|
+
"allow-clear": e.field.allowClear,
|
|
2033
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
2034
|
+
"default-value": e.field.defaultValue,
|
|
2035
|
+
disabled: e.field.disabled,
|
|
2036
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
2037
|
+
size: "small",
|
|
2038
|
+
is_range: e.field.is_range,
|
|
2039
|
+
value_has_time: e.field.value_has_time,
|
|
2040
|
+
start_offset_day: e.field.start_offset_day,
|
|
2041
|
+
end_offset_day: e.field.end_offset_day,
|
|
2042
|
+
fix_day: e.field.fix_day,
|
|
2043
|
+
style: R(`width: ${e.field_width}px`)
|
|
2044
|
+
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "placeholder", "is_range", "value_has_time", "start_offset_day", "end_offset_day", "fix_day", "style"])) : M("", !0),
|
|
2045
|
+
e.field.type === "datepicker" ? (o(), p(O, {
|
|
2046
|
+
key: 14,
|
|
2047
|
+
value: e.model,
|
|
2048
|
+
"onUpdate:value": l[15] || (l[15] = (i) => e.model = i),
|
|
2049
|
+
"allow-clear": e.field.allowClear,
|
|
2050
|
+
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
2051
|
+
"default-value": e.field.defaultValue,
|
|
2052
|
+
disabled: e.field.disabled,
|
|
2053
|
+
format: e.field.format,
|
|
2054
|
+
picker: e.field.picker,
|
|
2055
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
2056
|
+
"show-time": e.field.showTime,
|
|
2057
|
+
"value-format": e.field.valueFormat,
|
|
2058
|
+
size: "small",
|
|
2059
|
+
style: R(`width: ${e.field_width}px`)
|
|
2060
|
+
}, null, 8, ["value", "allow-clear", "autocomplete", "default-value", "disabled", "format", "picker", "placeholder", "show-time", "value-format", "style"])) : M("", !0),
|
|
2061
|
+
e.field.type === "rangepicker" ? (o(), p(j, {
|
|
2062
|
+
key: 15,
|
|
2063
|
+
value: e.model,
|
|
2064
|
+
"onUpdate:value": l[16] || (l[16] = (i) => e.model = i),
|
|
2065
|
+
"allow-clear": e.field.allowClear,
|
|
2066
|
+
"default-value": e.field.defaultValue || [],
|
|
2067
|
+
disabled: e.field.disabled,
|
|
2068
|
+
format: e.field.format,
|
|
2069
|
+
placeholder: e.field.placeholder && e.isArray(e.field.placeholder) && e.field.placeholder.length > 0 ? e.field.placeholder : [e.$t("开始时间"), e.$t("结束时间")],
|
|
2070
|
+
"show-time": e.field.showTime,
|
|
2071
|
+
"value-format": e.field.valueFormat,
|
|
2072
|
+
picker: e.field.picker ? e.field.picker : "date",
|
|
2073
|
+
size: "small",
|
|
2074
|
+
style: R(`width: ${e.field_width}px`)
|
|
2075
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "format", "placeholder", "show-time", "value-format", "picker", "style"])) : M("", !0),
|
|
2076
|
+
e.field.type === "monthrangepicker" ? (o(), p(K, {
|
|
2077
|
+
key: 16,
|
|
2078
|
+
value: e.model,
|
|
2079
|
+
"onUpdate:value": l[17] || (l[17] = (i) => e.model = i),
|
|
2080
|
+
"allow-clear": e.field.allowClear,
|
|
2081
|
+
"default-value": e.field.defaultValue || [],
|
|
2082
|
+
disabled: e.field.disabled,
|
|
2083
|
+
placeholder: e.field.placeholder,
|
|
2084
|
+
size: "small",
|
|
2085
|
+
is_range: e.field.is_range,
|
|
2086
|
+
value_has_time: e.field.value_has_time,
|
|
2087
|
+
start_offset_day: e.field.start_offset_day,
|
|
2088
|
+
end_offset_day: e.field.end_offset_day,
|
|
2089
|
+
fix_day: e.field.fix_day,
|
|
2090
|
+
style: R(`width: ${e.field_width}px`)
|
|
2091
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "placeholder", "is_range", "value_has_time", "start_offset_day", "end_offset_day", "fix_day", "style"])) : M("", !0),
|
|
2092
|
+
e.field.type === "timepicker" ? (o(), p(J, {
|
|
2093
|
+
key: 17,
|
|
2094
|
+
value: e.model,
|
|
2095
|
+
"onUpdate:value": l[18] || (l[18] = (i) => e.model = i),
|
|
2096
|
+
"allow-clear": e.field.allowClear,
|
|
2097
|
+
"default-value": e.field.defaultValue,
|
|
2098
|
+
disabled: e.field.disabled,
|
|
2099
|
+
format: e.field.format ? e.field.format : "HH:mm",
|
|
2100
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
2101
|
+
"value-format": e.field.valueFormat ? e.field.valueFormat : "HH:mm",
|
|
2102
|
+
size: "small",
|
|
2103
|
+
style: R(`width: ${e.field_width}px`)
|
|
2104
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "format", "placeholder", "value-format", "style"])) : M("", !0),
|
|
2105
|
+
e.field.type === "timerangepicker" ? (o(), p(ie, {
|
|
2106
|
+
key: 18,
|
|
2107
|
+
value: e.model,
|
|
2108
|
+
"onUpdate:value": l[19] || (l[19] = (i) => e.model = i),
|
|
2109
|
+
"allow-clear": e.field.allowClear,
|
|
2110
|
+
"default-value": e.field.defaultValue,
|
|
2111
|
+
disabled: e.field.disabled,
|
|
2112
|
+
format: e.field.format ? e.field.format : "HH:mm",
|
|
2113
|
+
placeholder: e.field.placeholder && e.isArray(e.field.placeholder) && e.field.placeholder.length > 0 ? e.field.placeholder : [e.$t("开始时间"), e.$t("结束时间")],
|
|
2114
|
+
"value-format": e.field.valueFormat ? e.field.valueFormat : "HH:mm",
|
|
2115
|
+
size: "small",
|
|
2116
|
+
style: R(`width: ${e.field_width}px`)
|
|
2117
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "format", "placeholder", "value-format", "style"])) : M("", !0),
|
|
2118
|
+
e.field.type === "radio" ? (o(), p(re, {
|
|
2119
|
+
key: 19,
|
|
2120
|
+
value: e.model,
|
|
2121
|
+
"onUpdate:value": l[20] || (l[20] = (i) => e.model = i),
|
|
2122
|
+
"default-value": e.field.defaultValue,
|
|
2123
|
+
disabled: e.field.disabled,
|
|
2124
|
+
size: "small",
|
|
2125
|
+
style: R(`width: ${e.field_width}px`)
|
|
2126
|
+
}, {
|
|
2127
|
+
default: m(() => [
|
|
2128
|
+
(o(!0), U(N, null, Y(e.options, (i) => (o(), p($, {
|
|
2129
|
+
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2130
|
+
disabled: i.disabled,
|
|
2131
|
+
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2132
|
+
}, {
|
|
2133
|
+
default: m(() => [
|
|
2134
|
+
Z(I(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
2135
|
+
]),
|
|
2136
|
+
_: 2
|
|
2137
|
+
}, 1032, ["disabled", "value"]))), 128))
|
|
2138
|
+
]),
|
|
2139
|
+
_: 1
|
|
2140
|
+
}, 8, ["value", "default-value", "disabled", "style"])) : M("", !0),
|
|
2141
|
+
e.field.type === "checkbox" ? (o(), p(a, {
|
|
2142
|
+
key: 20,
|
|
2143
|
+
value: e.model,
|
|
2144
|
+
"onUpdate:value": l[21] || (l[21] = (i) => e.model = i),
|
|
2145
|
+
"default-value": e.field.defaultValue,
|
|
2146
|
+
disabled: e.field.disabled,
|
|
2147
|
+
size: "small",
|
|
2148
|
+
style: R(`width: ${e.field_width}px`)
|
|
2149
|
+
}, {
|
|
2150
|
+
default: m(() => [
|
|
2151
|
+
(o(!0), U(N, null, Y(e.options, (i) => (o(), p(C, {
|
|
2152
|
+
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2153
|
+
disabled: i.disabled,
|
|
2154
|
+
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2155
|
+
}, {
|
|
2156
|
+
default: m(() => [
|
|
2157
|
+
Z(I(i[e.field.labelKey ? e.field.labelKey : "label"]), 1)
|
|
2158
|
+
]),
|
|
2159
|
+
_: 2
|
|
2160
|
+
}, 1032, ["disabled", "value"]))), 128))
|
|
2161
|
+
]),
|
|
2162
|
+
_: 1
|
|
2163
|
+
}, 8, ["value", "default-value", "disabled", "style"])) : M("", !0),
|
|
2164
|
+
e.field.type === "treeselect" ? (o(), p(X, {
|
|
2165
|
+
key: 21,
|
|
2166
|
+
value: e.model,
|
|
2167
|
+
"onUpdate:value": l[22] || (l[22] = (i) => e.model = i),
|
|
2168
|
+
"allow-clear": e.field.allowClear,
|
|
2169
|
+
"default-value": e.field.defaultValue,
|
|
2170
|
+
disabled: e.field.disabled,
|
|
2171
|
+
dropdownMatchSelectWidth: !1,
|
|
2172
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
2173
|
+
multiple: e.field.multiple,
|
|
2174
|
+
"tree-checkable": e.field.treeCheckable,
|
|
2175
|
+
"tree-data": e.options,
|
|
2176
|
+
"tree-label-prop": e.field.labelKey,
|
|
2177
|
+
"tree-node-filter-prop": e.field.valueKey,
|
|
2178
|
+
size: "small",
|
|
2179
|
+
style: R(`width: ${e.field_width}px`)
|
|
2180
|
+
}, null, 8, ["value", "allow-clear", "default-value", "disabled", "placeholder", "multiple", "tree-checkable", "tree-data", "tree-label-prop", "tree-node-filter-prop", "style"])) : M("", !0),
|
|
2181
|
+
e.field.type === "remotefilterselect" ? (o(), p(_, {
|
|
2182
|
+
key: 22,
|
|
2183
|
+
label: e.labelModel,
|
|
2184
|
+
"onUpdate:label": l[23] || (l[23] = (i) => e.labelModel = i),
|
|
2185
|
+
value: e.model,
|
|
2186
|
+
"onUpdate:value": l[24] || (l[24] = (i) => e.model = i),
|
|
2187
|
+
field: e.field,
|
|
2188
|
+
formModel: e.formModel,
|
|
2189
|
+
"get-data": e.field.getData,
|
|
2190
|
+
init_model: e.field.init_model,
|
|
2191
|
+
"label-key": e.field.labelKey,
|
|
2192
|
+
"label-key-list": e.field.labelKeyList,
|
|
2193
|
+
"label-space": e.field.labelSpace,
|
|
2194
|
+
search_config: e.field.search_config,
|
|
2195
|
+
"value-key": e.field.valueKey,
|
|
2196
|
+
style: R(`width: ${e.field_width}px`)
|
|
2197
|
+
}, null, 8, ["label", "value", "field", "formModel", "get-data", "init_model", "label-key", "label-key-list", "label-space", "search_config", "value-key", "style"])) : M("", !0),
|
|
2198
|
+
e.field.type === "remoteselect" ? (o(), p(ae, {
|
|
2199
|
+
key: 23,
|
|
2200
|
+
label: e.labelModel,
|
|
2201
|
+
"onUpdate:label": l[25] || (l[25] = (i) => e.labelModel = i),
|
|
2202
|
+
value: e.model,
|
|
2203
|
+
"onUpdate:value": l[26] || (l[26] = (i) => e.model = i),
|
|
2204
|
+
field: e.field,
|
|
2205
|
+
formModel: e.formModel,
|
|
2206
|
+
"get-data": e.field.getData,
|
|
2207
|
+
init_model: e.field.init_model,
|
|
2208
|
+
"label-key": e.field.labelKey,
|
|
2209
|
+
"label-key-list": e.field.labelKeyList,
|
|
2210
|
+
"label-space": e.field.labelSpace,
|
|
2211
|
+
search_config: e.field.search_config,
|
|
2212
|
+
"value-key": e.field.valueKey,
|
|
2213
|
+
style: R(`width: ${e.field_width}px`)
|
|
2214
|
+
}, null, 8, ["label", "value", "field", "formModel", "get-data", "init_model", "label-key", "label-key-list", "label-space", "search_config", "value-key", "style"])) : M("", !0),
|
|
2215
|
+
e.field.type === "remoteselectpro" ? (o(), p(ue, {
|
|
2216
|
+
key: 24,
|
|
2217
|
+
label: e.labelModel,
|
|
2218
|
+
"onUpdate:label": l[27] || (l[27] = (i) => e.labelModel = i),
|
|
2219
|
+
value: e.model,
|
|
2220
|
+
"onUpdate:value": l[28] || (l[28] = (i) => e.model = i),
|
|
2221
|
+
field: e.field,
|
|
2222
|
+
formModel: e.formModel,
|
|
2223
|
+
outModel: e.outModel,
|
|
2224
|
+
"get-data": e.field.getData,
|
|
2225
|
+
init_model: e.field.init_model,
|
|
2226
|
+
init_watch: e.field.init_watch,
|
|
2227
|
+
"label-key": e.field.labelKey,
|
|
2228
|
+
"label-key-type": e.field.labelKeyType,
|
|
2229
|
+
"label-key-list": e.field.labelKeyList,
|
|
2230
|
+
"label-space": e.field.labelSpace,
|
|
2231
|
+
search_config: e.field.search_config,
|
|
2232
|
+
"value-key": e.field.valueKey,
|
|
2233
|
+
is_input: e.field.is_input,
|
|
2234
|
+
is_form_design: e.is_form_design,
|
|
2235
|
+
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2236
|
+
style: R(`width: ${e.field_width}px`)
|
|
2237
|
+
}, null, 8, ["label", "value", "field", "formModel", "outModel", "get-data", "init_model", "init_watch", "label-key", "label-key-type", "label-key-list", "label-space", "search_config", "value-key", "is_input", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2238
|
+
e.field.type === "remotecomplete" ? (o(), p(ne, {
|
|
2239
|
+
key: 25,
|
|
2240
|
+
value: e.model,
|
|
2241
|
+
"onUpdate:value": l[29] || (l[29] = (i) => e.model = i),
|
|
2242
|
+
field: e.field,
|
|
2243
|
+
formModel: e.formModel,
|
|
2244
|
+
outModel: e.outModel,
|
|
2245
|
+
"get-data": e.field.getData,
|
|
2246
|
+
init_model: e.field.init_model,
|
|
2247
|
+
init_watch: e.field.init_watch,
|
|
2248
|
+
"label-key": e.field.labelKey,
|
|
2249
|
+
"label-key-type": e.field.labelKeyType,
|
|
2250
|
+
"label-key-list": e.field.labelKeyList,
|
|
2251
|
+
"label-space": e.field.labelSpace,
|
|
2252
|
+
search_config: e.field.search_config,
|
|
2253
|
+
"value-key": e.field.valueKey,
|
|
2254
|
+
maxlength: e.field.maxlength,
|
|
2255
|
+
is_input: e.field.is_input,
|
|
2256
|
+
is_form_design: e.is_form_design,
|
|
2257
|
+
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2258
|
+
style: R(`width: ${e.field_width}px`)
|
|
2259
|
+
}, null, 8, ["value", "field", "formModel", "outModel", "get-data", "init_model", "init_watch", "label-key", "label-key-type", "label-key-list", "label-space", "search_config", "value-key", "maxlength", "is_input", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2260
|
+
e.field.type === "remotetreeselect" ? (o(), p(be, {
|
|
2261
|
+
key: 26,
|
|
2262
|
+
label: e.labelModel,
|
|
2263
|
+
"onUpdate:label": l[30] || (l[30] = (i) => e.labelModel = i),
|
|
2264
|
+
value: e.model,
|
|
2265
|
+
"onUpdate:value": l[31] || (l[31] = (i) => e.model = i),
|
|
2266
|
+
"allow-clear": e.field.allowClear,
|
|
2267
|
+
"default-value": e.field.defaultValue,
|
|
2268
|
+
disabled: e.field.disabled,
|
|
2269
|
+
field: e.field,
|
|
2270
|
+
formModel: e.formModel,
|
|
2271
|
+
"get-data": e.field.getData,
|
|
2272
|
+
"label-key": e.field.labelKey,
|
|
2273
|
+
search_config: e.field.search_config,
|
|
2274
|
+
"value-key": e.field.valueKey,
|
|
2275
|
+
style: R(`width: ${e.field_width}px`)
|
|
2276
|
+
}, null, 8, ["label", "value", "allow-clear", "default-value", "disabled", "field", "formModel", "get-data", "label-key", "search_config", "value-key", "style"])) : M("", !0),
|
|
2277
|
+
e.field.type === "remotetreeselectpro" ? (o(), p(_e, {
|
|
2278
|
+
key: 27,
|
|
2279
|
+
label: e.labelModel,
|
|
2280
|
+
"onUpdate:label": l[32] || (l[32] = (i) => e.labelModel = i),
|
|
2281
|
+
value: e.model,
|
|
2282
|
+
"onUpdate:value": l[33] || (l[33] = (i) => e.model = i),
|
|
2283
|
+
"allow-clear": e.field.allowClear,
|
|
2284
|
+
"default-value": e.field.defaultValue,
|
|
2285
|
+
disabled: e.field.disabled,
|
|
2286
|
+
field: e.field,
|
|
2287
|
+
formModel: e.formModel,
|
|
2288
|
+
outModel: e.outModel,
|
|
2289
|
+
"get-data": e.field.getData,
|
|
2290
|
+
multiple: e.field.multiple,
|
|
2291
|
+
search_config: e.field.search_config,
|
|
2292
|
+
"label-key-type": e.field.labelKeyType,
|
|
2293
|
+
"label-key-list": e.field.labelKeyList,
|
|
2294
|
+
"label-space": e.field.labelSpace,
|
|
2295
|
+
"label-key": e.field.labelKey,
|
|
2296
|
+
"value-key": e.field.valueKey,
|
|
2297
|
+
init_model: e.field.init_model,
|
|
2298
|
+
init_watch: e.field.init_watch,
|
|
2299
|
+
is_form_design: e.is_form_design,
|
|
2300
|
+
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
2301
|
+
style: R(`width: ${e.field_width}px`)
|
|
2302
|
+
}, null, 8, ["label", "value", "allow-clear", "default-value", "disabled", "field", "formModel", "outModel", "get-data", "multiple", "search_config", "label-key-type", "label-key-list", "label-space", "label-key", "value-key", "init_model", "init_watch", "is_form_design", "placeholder", "style"])) : M("", !0),
|
|
2303
|
+
e.field.type === "remotemodal" ? (o(), p(ve, {
|
|
2304
|
+
key: 28,
|
|
2305
|
+
label: e.labelModel,
|
|
2306
|
+
"onUpdate:label": l[34] || (l[34] = (i) => e.labelModel = i),
|
|
2307
|
+
value: e.model,
|
|
2308
|
+
"onUpdate:value": l[35] || (l[35] = (i) => e.model = i),
|
|
2309
|
+
columns: e.field.columns,
|
|
2310
|
+
field: e.field,
|
|
2311
|
+
field_status: e.field.field_status,
|
|
2312
|
+
"get-data": e.field.getData,
|
|
2313
|
+
init_model: e.field.init_model,
|
|
2314
|
+
modalType: e.field.modalType,
|
|
2315
|
+
search_config: e.field.search_config,
|
|
2316
|
+
watch: e.field.watch,
|
|
2317
|
+
style: R(`width: ${e.field_width}px`)
|
|
2318
|
+
}, null, 8, ["label", "value", "columns", "field", "field_status", "get-data", "init_model", "modalType", "search_config", "watch", "style"])) : M("", !0),
|
|
2319
|
+
e.field.type === "remotetable" ? (o(), p(f, {
|
|
2320
|
+
key: 29,
|
|
2321
|
+
value: e.model,
|
|
2322
|
+
"onUpdate:value": l[36] || (l[36] = (i) => e.model = i),
|
|
2323
|
+
columns: e.field.columns,
|
|
2324
|
+
formModel: e.formModel,
|
|
2325
|
+
field: e.field,
|
|
2326
|
+
field_status: e.field.field_status,
|
|
2327
|
+
"get-data": e.field.getData,
|
|
2328
|
+
init_model: e.field.init_model,
|
|
2329
|
+
modalType: e.field.modalType,
|
|
2330
|
+
search_config: e.field.search_config,
|
|
2331
|
+
watch: e.field.watch,
|
|
2332
|
+
style: R(`width: ${e.field_width}px`)
|
|
2333
|
+
}, null, 8, ["value", "columns", "formModel", "field", "field_status", "get-data", "init_model", "modalType", "search_config", "watch", "style"])) : M("", !0),
|
|
2334
|
+
e.field.type === "remotetext" ? (o(), p(g, {
|
|
2335
|
+
key: 30,
|
|
2336
|
+
value: e.model,
|
|
2337
|
+
"onUpdate:value": l[37] || (l[37] = (i) => e.model = i),
|
|
2338
|
+
columns: e.field.columns,
|
|
2339
|
+
formModel: e.formModel,
|
|
2340
|
+
field: e.field,
|
|
2341
|
+
"get-data": e.field.getData,
|
|
2342
|
+
init_model: e.field.init_model,
|
|
2343
|
+
modalType: e.field.modalType,
|
|
2344
|
+
search_config: e.field.search_config,
|
|
2345
|
+
watch: e.field.watch
|
|
2346
|
+
}, null, 8, ["value", "columns", "formModel", "field", "get-data", "init_model", "modalType", "search_config", "watch"])) : M("", !0),
|
|
2347
|
+
e.field.type === "rate" ? (o(), p(D, {
|
|
2348
|
+
key: 31,
|
|
2349
|
+
value: e.model,
|
|
2350
|
+
"onUpdate:value": l[38] || (l[38] = (i) => e.model = i),
|
|
2351
|
+
count: e.field.count ? e.field.count : 5,
|
|
2352
|
+
"allow-half": e.field.allowHalf,
|
|
2353
|
+
style: R(`width: ${e.field_width}px`)
|
|
2354
|
+
}, null, 8, ["value", "count", "allow-half", "style"])) : M("", !0),
|
|
2355
|
+
e.field.type === "radio-color" ? (o(), p(re, {
|
|
2356
|
+
key: 32,
|
|
2357
|
+
value: e.model,
|
|
2358
|
+
"onUpdate:value": l[39] || (l[39] = (i) => e.model = i),
|
|
2359
|
+
"default-value": e.field.defaultValue,
|
|
2360
|
+
disabled: e.field.disabled,
|
|
2361
|
+
size: "small",
|
|
2362
|
+
style: R(`width: ${e.field_width}px`)
|
|
2363
|
+
}, {
|
|
2364
|
+
default: m(() => [
|
|
2365
|
+
(o(!0), U(N, null, Y(e.options, (i) => (o(), p($, {
|
|
2366
|
+
key: i[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2367
|
+
disabled: i.disabled,
|
|
2368
|
+
value: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2369
|
+
}, {
|
|
2370
|
+
default: m(() => [
|
|
2371
|
+
L("div", {
|
|
2372
|
+
style: R({
|
|
2373
|
+
width: "20px",
|
|
2374
|
+
height: "20px",
|
|
2375
|
+
backgroundColor: i[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2376
|
+
})
|
|
2377
|
+
}, null, 4)
|
|
2378
|
+
]),
|
|
2379
|
+
_: 2
|
|
2380
|
+
}, 1032, ["disabled", "value"]))), 128))
|
|
2381
|
+
]),
|
|
2382
|
+
_: 1
|
|
2383
|
+
}, 8, ["value", "default-value", "disabled", "style"])) : M("", !0)
|
|
2384
|
+
], 64)) : M("", !0),
|
|
2385
|
+
e.field.type === "divider" ? (o(), p(v, {
|
|
2386
|
+
key: 1,
|
|
2387
|
+
orientation: e.field.orientation
|
|
2388
|
+
}, {
|
|
2389
|
+
default: m(() => [
|
|
2390
|
+
Z(I(e.field.label), 1)
|
|
2391
|
+
]),
|
|
2392
|
+
_: 1
|
|
2393
|
+
}, 8, ["orientation"])) : M("", !0)
|
|
2394
|
+
], 64);
|
|
2395
|
+
}
|
|
2396
|
+
const Oo = /* @__PURE__ */ me(_a, [["render", Fa], ["__scopeId", "data-v-168ff853"]]);
|
|
2397
|
+
async function Aa(e) {
|
|
2398
|
+
return ye().post("/view/create_view_settings", e);
|
|
1449
2399
|
}
|
|
1450
|
-
async function
|
|
1451
|
-
return
|
|
2400
|
+
async function Le(e) {
|
|
2401
|
+
return ye().post("/view/update_view_settings", e);
|
|
1452
2402
|
}
|
|
1453
|
-
async function
|
|
1454
|
-
return
|
|
2403
|
+
async function Se(e) {
|
|
2404
|
+
return ye().post("/view/refresh_view_settings_cache", e);
|
|
1455
2405
|
}
|
|
1456
|
-
async function
|
|
1457
|
-
return
|
|
2406
|
+
async function Pe(e) {
|
|
2407
|
+
return ye().post("/view/set_view_settings_default", e);
|
|
1458
2408
|
}
|
|
1459
|
-
async function
|
|
1460
|
-
return
|
|
2409
|
+
async function Ia(e) {
|
|
2410
|
+
return ye().post("/view/delete_view_settings", e);
|
|
1461
2411
|
}
|
|
1462
|
-
async function
|
|
1463
|
-
return
|
|
2412
|
+
async function Ka(e) {
|
|
2413
|
+
return ye().post("/view/change_view_settings_sort", e);
|
|
1464
2414
|
}
|
|
1465
|
-
async function
|
|
1466
|
-
return
|
|
2415
|
+
async function Va(e) {
|
|
2416
|
+
return ye().post("/view/query_view_settings_list", e);
|
|
1467
2417
|
}
|
|
1468
|
-
const
|
|
2418
|
+
const Ye = "customviewdatauser", Ba = "view_system_edit", ja = [
|
|
1469
2419
|
{
|
|
1470
2420
|
title: "",
|
|
1471
2421
|
dataIndex: "name",
|
|
1472
2422
|
key: "name"
|
|
1473
2423
|
}
|
|
1474
|
-
],
|
|
2424
|
+
], Ta = fe({
|
|
1475
2425
|
name: "ViewManage",
|
|
1476
2426
|
components: {
|
|
1477
|
-
CaretRightOutlined:
|
|
1478
|
-
PlusOutlined:
|
|
1479
|
-
SettingOutlined:
|
|
2427
|
+
CaretRightOutlined: Fl,
|
|
2428
|
+
PlusOutlined: Qe,
|
|
2429
|
+
SettingOutlined: Al
|
|
1480
2430
|
},
|
|
1481
2431
|
props: {
|
|
1482
2432
|
currentViewObj: {
|
|
@@ -1519,103 +2469,103 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1519
2469
|
}
|
|
1520
2470
|
},
|
|
1521
2471
|
emits: ["change"],
|
|
1522
|
-
setup(e, { emit:
|
|
1523
|
-
const
|
|
1524
|
-
let
|
|
1525
|
-
const
|
|
1526
|
-
const
|
|
1527
|
-
return
|
|
1528
|
-
}),
|
|
1529
|
-
const
|
|
1530
|
-
return
|
|
1531
|
-
}),
|
|
1532
|
-
id:
|
|
1533
|
-
search_model:
|
|
1534
|
-
filter_map:
|
|
1535
|
-
sort_fields:
|
|
1536
|
-
group_condition:
|
|
1537
|
-
conditions:
|
|
1538
|
-
isShowGeneralFilter:
|
|
1539
|
-
}) => new Promise((
|
|
1540
|
-
!e.countData && !(
|
|
1541
|
-
const
|
|
1542
|
-
org_id:
|
|
1543
|
-
...
|
|
1544
|
-
...
|
|
1545
|
-
sort_fields:
|
|
2472
|
+
setup(e, { emit: l }) {
|
|
2473
|
+
const G = Vl(), P = Bl(), H = jl(), B = Tl(), r = H.currentOrg, D = H.userid, q = le(H.CHECK_AUTH(Ba)), F = le([]), { t: n } = Ae();
|
|
2474
|
+
let c, y;
|
|
2475
|
+
const t = Ee(() => {
|
|
2476
|
+
const f = F.value.filter((v) => !!v.user_id && v.is_system).map((v) => v).sort((v, d) => v.sort == d.sort ? v.id - d.id : v.sort - d.sort), g = F.value.filter((v) => !!v.user_id && !v.is_system).map((v) => v).sort((v, d) => v.sort == d.sort ? v.id - d.id : v.sort - d.sort);
|
|
2477
|
+
return f.concat(g);
|
|
2478
|
+
}), E = Ee(() => {
|
|
2479
|
+
const f = F.value.filter((v) => !v.user_id && v.is_system).map((v) => v).sort((v, d) => v.sort == d.sort ? v.id - d.id : v.sort - d.sort), g = F.value.filter((v) => !v.user_id && !v.is_system).map((v) => v).sort((v, d) => v.sort == d.sort ? v.id - d.id : v.sort - d.sort);
|
|
2480
|
+
return f.concat(g);
|
|
2481
|
+
}), S = Ee(() => F.value.map((f) => f.name)), O = async ({
|
|
2482
|
+
id: f,
|
|
2483
|
+
search_model: g,
|
|
2484
|
+
filter_map: v,
|
|
2485
|
+
sort_fields: d,
|
|
2486
|
+
group_condition: s,
|
|
2487
|
+
conditions: w,
|
|
2488
|
+
isShowGeneralFilter: h
|
|
2489
|
+
}) => new Promise((u) => {
|
|
2490
|
+
!e.countData && !(c != null && c.countData) && (console.error("无count接口"), u(null));
|
|
2491
|
+
const b = {
|
|
2492
|
+
org_id: r.id,
|
|
2493
|
+
...g,
|
|
2494
|
+
...v,
|
|
2495
|
+
sort_fields: d
|
|
1546
2496
|
};
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}),
|
|
1551
|
-
}).catch((
|
|
1552
|
-
console.log("error",
|
|
2497
|
+
h && (b.group_condition = s, b.conditions = w), b.required_condition = be(), ql(b, c != null && c.countData ? c.countData : e.countData).then((T) => {
|
|
2498
|
+
F.value.forEach((A) => {
|
|
2499
|
+
A.id == f && (A.num = T);
|
|
2500
|
+
}), u(null);
|
|
2501
|
+
}).catch((T) => {
|
|
2502
|
+
console.log("error", T), te.error(n("获取数据失败, 请刷新页面"));
|
|
1553
2503
|
});
|
|
1554
|
-
}),
|
|
1555
|
-
for (const
|
|
2504
|
+
}), j = async (f) => {
|
|
2505
|
+
for (const g of f)
|
|
1556
2506
|
try {
|
|
1557
|
-
await
|
|
1558
|
-
} catch (
|
|
1559
|
-
console.log("error",
|
|
2507
|
+
await O(g);
|
|
2508
|
+
} catch (v) {
|
|
2509
|
+
console.log("error", v), te.error(n("获取数据失败, 请刷新页面"));
|
|
1560
2510
|
}
|
|
1561
|
-
},
|
|
1562
|
-
|
|
1563
|
-
org_id:
|
|
1564
|
-
user_id:
|
|
2511
|
+
}, K = () => {
|
|
2512
|
+
Dl({
|
|
2513
|
+
org_id: r.id,
|
|
2514
|
+
user_id: D,
|
|
1565
2515
|
app_flag: e.app_flag,
|
|
1566
2516
|
modalType: e.modalType,
|
|
1567
2517
|
sort_fields: ["sort", "create_time"],
|
|
1568
2518
|
is_cache: !1
|
|
1569
|
-
}).then((
|
|
1570
|
-
if (
|
|
2519
|
+
}).then((f) => {
|
|
2520
|
+
if (c = Oe(
|
|
1571
2521
|
e.app_flag,
|
|
1572
2522
|
e.modalType,
|
|
1573
|
-
|
|
1574
|
-
|
|
2523
|
+
f.defaultAndServerConfig,
|
|
2524
|
+
n,
|
|
1575
2525
|
{
|
|
1576
2526
|
use_store: !0,
|
|
1577
2527
|
to_i18n: !0,
|
|
1578
2528
|
enable_btn: !1
|
|
1579
2529
|
}
|
|
1580
|
-
),
|
|
1581
|
-
window.location.hash = "",
|
|
2530
|
+
), y = f.defaultAndServerConfig, (c == null ? void 0 : c.isView) === !1) {
|
|
2531
|
+
window.location.hash = "", l("change", y, {}, !0, !0);
|
|
1582
2532
|
return;
|
|
1583
2533
|
}
|
|
1584
|
-
|
|
2534
|
+
P.set_required_condition(
|
|
1585
2535
|
e.modalType,
|
|
1586
|
-
|
|
1587
|
-
),
|
|
1588
|
-
let
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1591
|
-
let
|
|
1592
|
-
|
|
1593
|
-
...
|
|
1594
|
-
search_model:
|
|
1595
|
-
filter_map:
|
|
1596
|
-
sort_fields:
|
|
1597
|
-
group_condition:
|
|
1598
|
-
conditions:
|
|
1599
|
-
}),
|
|
1600
|
-
id:
|
|
1601
|
-
isShowGeneralFilter:
|
|
1602
|
-
search_model:
|
|
1603
|
-
filter_map:
|
|
1604
|
-
sort_fields:
|
|
1605
|
-
group_condition:
|
|
1606
|
-
conditions:
|
|
2536
|
+
c.required_condition
|
|
2537
|
+
), F.value.length = 0;
|
|
2538
|
+
let g = [];
|
|
2539
|
+
const v = [];
|
|
2540
|
+
f && f.system_user_datas && f.system_user_datas.length > 0 && (g = g.concat(f.system_user_datas)), f && f.system_public_datas && f.system_public_datas.length > 0 && (g = g.concat(f.system_public_datas)), f && f.public_datas && f.public_datas.length > 0 && (g = g.concat(f.public_datas)), f && f.user_datas && f.user_datas.length > 0 && (g = g.concat(f.user_datas)), g.forEach((d) => {
|
|
2541
|
+
let s = null, w = null, h = null, u = null;
|
|
2542
|
+
d.data.isShowGeneralFilter ? (s = {}, w = {}, h = d.data.group_condition, u = d.data.conditions) : (s = d.data.search_model, w = d.data.filter_map, h = {}, u = []), F.value.push({
|
|
2543
|
+
...d,
|
|
2544
|
+
search_model: s,
|
|
2545
|
+
filter_map: w,
|
|
2546
|
+
sort_fields: d.data.sort_fields,
|
|
2547
|
+
group_condition: h,
|
|
2548
|
+
conditions: u
|
|
2549
|
+
}), v.push({
|
|
2550
|
+
id: d.id,
|
|
2551
|
+
isShowGeneralFilter: d.data.isShowGeneralFilter,
|
|
2552
|
+
search_model: s,
|
|
2553
|
+
filter_map: w,
|
|
2554
|
+
sort_fields: d.data.sort_fields,
|
|
2555
|
+
group_condition: h,
|
|
2556
|
+
conditions: u
|
|
1607
2557
|
});
|
|
1608
|
-
}),
|
|
1609
|
-
}).catch((
|
|
1610
|
-
console.log("err",
|
|
2558
|
+
}), v.length > 0 && j(v), J(null);
|
|
2559
|
+
}).catch((f) => {
|
|
2560
|
+
console.log("err", f), te.error(n("获取视图失败, 请刷新页面"));
|
|
1611
2561
|
});
|
|
1612
|
-
},
|
|
1613
|
-
var
|
|
1614
|
-
let
|
|
1615
|
-
if (
|
|
1616
|
-
const
|
|
1617
|
-
|
|
1618
|
-
org_id:
|
|
2562
|
+
}, J = (f) => {
|
|
2563
|
+
var v;
|
|
2564
|
+
let g = null;
|
|
2565
|
+
if (f ? g = f : window.location.hash && (g = window.location.hash.substring(1)), g) {
|
|
2566
|
+
const d = F.value.filter((s) => s.uid == g);
|
|
2567
|
+
d && d.length > 0 ? l("change", y, { ...d[0], ...d[0].data }, !0, !0) : Va({
|
|
2568
|
+
org_id: r.id,
|
|
1619
2569
|
conditions: [
|
|
1620
2570
|
[
|
|
1621
2571
|
{
|
|
@@ -1635,37 +2585,37 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1635
2585
|
{
|
|
1636
2586
|
field_name: "uid",
|
|
1637
2587
|
operator: "eq",
|
|
1638
|
-
value: [
|
|
2588
|
+
value: [g],
|
|
1639
2589
|
format: "input",
|
|
1640
2590
|
class_name: "str"
|
|
1641
2591
|
}
|
|
1642
2592
|
]
|
|
1643
2593
|
]
|
|
1644
|
-
}).then((
|
|
1645
|
-
if (
|
|
1646
|
-
|
|
2594
|
+
}).then((s) => {
|
|
2595
|
+
if (s && s.data && s.data.length > 0)
|
|
2596
|
+
l(
|
|
1647
2597
|
"change",
|
|
1648
|
-
|
|
2598
|
+
y,
|
|
1649
2599
|
{
|
|
1650
|
-
...
|
|
1651
|
-
...
|
|
2600
|
+
...s.data[0],
|
|
2601
|
+
...s.data[0].data
|
|
1652
2602
|
},
|
|
1653
2603
|
!0,
|
|
1654
2604
|
!1
|
|
1655
2605
|
);
|
|
1656
2606
|
else {
|
|
1657
|
-
const
|
|
1658
|
-
if (
|
|
1659
|
-
window.location.hash =
|
|
2607
|
+
const w = F.value.filter((u) => !u.user_id && u.is_default);
|
|
2608
|
+
if (w && w.length > 0) {
|
|
2609
|
+
window.location.hash = w[0].uid, l("change", y, { ...w[0], ...w[0].data }, !0, !0);
|
|
1660
2610
|
return;
|
|
1661
2611
|
}
|
|
1662
|
-
let
|
|
1663
|
-
if (
|
|
1664
|
-
window.location.hash =
|
|
1665
|
-
else if (
|
|
1666
|
-
window.location.hash =
|
|
2612
|
+
let h = F.value.sort((u, b) => u.sort == b.sort ? u.id - b.id : u.sort - b.sort).find((u) => !u.user_id);
|
|
2613
|
+
if (h && h.uid)
|
|
2614
|
+
window.location.hash = h.uid, l("change", y, { ...h, ...h.data }, !0, !0);
|
|
2615
|
+
else if (h = F.value.sort((u, b) => u.sort == b.sort ? u.id - b.id : u.sort - b.sort).find((u) => u.user_id), h && h.uid)
|
|
2616
|
+
window.location.hash = h.uid, l("change", y, { ...h, ...h.data }, !0, !0);
|
|
1667
2617
|
else {
|
|
1668
|
-
const
|
|
2618
|
+
const u = {
|
|
1669
2619
|
uid: null,
|
|
1670
2620
|
view_menu__flag: e.menu_flag,
|
|
1671
2621
|
column: {},
|
|
@@ -1675,43 +2625,43 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1675
2625
|
filtered_value: {},
|
|
1676
2626
|
sort_orders: []
|
|
1677
2627
|
};
|
|
1678
|
-
|
|
2628
|
+
l("change", y, u, !0, !1), window.location.hash = "";
|
|
1679
2629
|
}
|
|
1680
2630
|
}
|
|
1681
2631
|
});
|
|
1682
2632
|
} else {
|
|
1683
|
-
let
|
|
1684
|
-
if (
|
|
1685
|
-
window.location.hash =
|
|
2633
|
+
let d = "";
|
|
2634
|
+
if (ze().get(Ye) && (d = (v = ze().get(Ye)) == null ? void 0 : v[e.menu_flag]), d)
|
|
2635
|
+
window.location.hash = d, J(d);
|
|
1686
2636
|
else {
|
|
1687
|
-
const
|
|
1688
|
-
(
|
|
2637
|
+
const s = F.value.filter(
|
|
2638
|
+
(u) => !u.user_id && u.is_default && !u.is_system
|
|
1689
2639
|
);
|
|
1690
|
-
if (
|
|
1691
|
-
window.location.hash =
|
|
2640
|
+
if (s && s.length > 0) {
|
|
2641
|
+
window.location.hash = s[0].uid, l("change", y, { ...s[0], ...s[0].data }, !0, !0);
|
|
1692
2642
|
return;
|
|
1693
2643
|
}
|
|
1694
|
-
const
|
|
1695
|
-
(
|
|
2644
|
+
const w = F.value.filter(
|
|
2645
|
+
(u) => !u.user_id && u.is_default && u.is_system
|
|
1696
2646
|
);
|
|
1697
|
-
if (
|
|
1698
|
-
window.location.hash =
|
|
2647
|
+
if (w && w.length > 0) {
|
|
2648
|
+
window.location.hash = w[0].uid, l(
|
|
1699
2649
|
"change",
|
|
1700
|
-
|
|
1701
|
-
{ ...
|
|
2650
|
+
y,
|
|
2651
|
+
{ ...w[0], ...w[0].data },
|
|
1702
2652
|
!0,
|
|
1703
2653
|
!0
|
|
1704
2654
|
);
|
|
1705
2655
|
return;
|
|
1706
2656
|
}
|
|
1707
|
-
let
|
|
1708
|
-
if (
|
|
1709
|
-
window.location.hash =
|
|
1710
|
-
else if (
|
|
1711
|
-
window.location.hash =
|
|
2657
|
+
let h = F.value.sort((u, b) => u.sort == b.sort ? u.id - b.id : u.sort - b.sort).find((u) => !u.user_id);
|
|
2658
|
+
if (h && h.uid)
|
|
2659
|
+
window.location.hash = h.uid, l("change", y, { ...h, ...h.data }, !0, !0);
|
|
2660
|
+
else if (h = F.value.sort((u, b) => u.sort == b.sort ? u.id - b.id : u.sort - b.sort).find((u) => u.user_id), h && h.uid)
|
|
2661
|
+
window.location.hash = h.uid, l("change", y, { ...h, ...h.data }, !0, !0);
|
|
1712
2662
|
else {
|
|
1713
2663
|
window.location.hash = "";
|
|
1714
|
-
const
|
|
2664
|
+
const u = {
|
|
1715
2665
|
uid: null,
|
|
1716
2666
|
view_menu__flag: e.menu_flag,
|
|
1717
2667
|
column: {},
|
|
@@ -1721,25 +2671,25 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1721
2671
|
filtered_value: {},
|
|
1722
2672
|
sort_orders: []
|
|
1723
2673
|
};
|
|
1724
|
-
|
|
2674
|
+
l("change", y, u, !0, !1);
|
|
1725
2675
|
}
|
|
1726
2676
|
}
|
|
1727
2677
|
}
|
|
1728
2678
|
};
|
|
1729
|
-
|
|
1730
|
-
const
|
|
1731
|
-
window.location.hash =
|
|
1732
|
-
},
|
|
1733
|
-
var
|
|
1734
|
-
if (
|
|
1735
|
-
|
|
2679
|
+
K();
|
|
2680
|
+
const ie = le(["1", "2"]), $ = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", re = (f) => e.currentViewObj && f && f.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, C = (f) => {
|
|
2681
|
+
window.location.hash = f.uid, J(f.uid), _e([f]);
|
|
2682
|
+
}, a = ({ updateView: f, record: g }) => {
|
|
2683
|
+
var v, d, s, w;
|
|
2684
|
+
if (g.name != f.name && S.value.includes(f.name)) {
|
|
2685
|
+
te.error(n("视图名称已存在"));
|
|
1736
2686
|
return;
|
|
1737
2687
|
}
|
|
1738
|
-
if (
|
|
1739
|
-
const
|
|
1740
|
-
if ((
|
|
1741
|
-
const
|
|
1742
|
-
...
|
|
2688
|
+
if (g != null && g.id) {
|
|
2689
|
+
const h = F.value.filter((u) => (g == null ? void 0 : g.id) == u.id);
|
|
2690
|
+
if ((v = f.is_submit) != null && v[0]) {
|
|
2691
|
+
const u = {
|
|
2692
|
+
...h[0].data,
|
|
1743
2693
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
1744
2694
|
filter_map: e.currentViewObj.filter_map,
|
|
1745
2695
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -1752,71 +2702,71 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1752
2702
|
group_record: e.currentViewObj.group_record,
|
|
1753
2703
|
default_search_condition_config_list: e.currentViewObj.default_search_condition_config_list
|
|
1754
2704
|
};
|
|
1755
|
-
delete
|
|
1756
|
-
org_id:
|
|
1757
|
-
view_settings_id:
|
|
1758
|
-
is_system: (
|
|
1759
|
-
name:
|
|
1760
|
-
data: JSON.stringify(
|
|
1761
|
-
}).then((
|
|
1762
|
-
var
|
|
1763
|
-
(
|
|
1764
|
-
org_id:
|
|
1765
|
-
view_settings_id:
|
|
2705
|
+
delete u.is_system, Le({
|
|
2706
|
+
org_id: r.id,
|
|
2707
|
+
view_settings_id: g == null ? void 0 : g.id,
|
|
2708
|
+
is_system: (d = f.is_system) == null ? void 0 : d[0],
|
|
2709
|
+
name: f.name,
|
|
2710
|
+
data: JSON.stringify(u)
|
|
2711
|
+
}).then((b) => {
|
|
2712
|
+
var T;
|
|
2713
|
+
(T = f.is_default) != null && T[0] ? Pe({
|
|
2714
|
+
org_id: r.id,
|
|
2715
|
+
view_settings_id: g == null ? void 0 : g.id
|
|
1766
2716
|
}).then(() => {
|
|
1767
|
-
|
|
1768
|
-
org_id:
|
|
1769
|
-
view_settings_id:
|
|
2717
|
+
Se({
|
|
2718
|
+
org_id: r.id,
|
|
2719
|
+
view_settings_id: g == null ? void 0 : g.id
|
|
1770
2720
|
}).then(() => {
|
|
1771
|
-
var
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
}),
|
|
2721
|
+
var A;
|
|
2722
|
+
te.success(n("保存成功")), b.id == ((A = e.currentViewObj) == null ? void 0 : A.id) ? l("change", y, { ...b, ...b.data }, !1, !0) : F.value.forEach((de) => {
|
|
2723
|
+
de.id == b.id && Object.assign(de, { ...b, ...b.data });
|
|
2724
|
+
}), K();
|
|
1775
2725
|
});
|
|
1776
|
-
}) :
|
|
1777
|
-
org_id:
|
|
1778
|
-
view_settings_id:
|
|
2726
|
+
}) : Se({
|
|
2727
|
+
org_id: r.id,
|
|
2728
|
+
view_settings_id: g == null ? void 0 : g.id
|
|
1779
2729
|
}).then(() => {
|
|
1780
|
-
var
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
}),
|
|
2730
|
+
var A;
|
|
2731
|
+
te.success(n("保存成功")), b.id == ((A = e.currentViewObj) == null ? void 0 : A.id) ? l("change", y, { ...b, ...b.data }, !1, !0) : F.value.forEach((de) => {
|
|
2732
|
+
de.id == b.id && Object.assign(de, { ...b, ...b.data });
|
|
2733
|
+
}), K();
|
|
1784
2734
|
});
|
|
1785
2735
|
});
|
|
1786
2736
|
} else
|
|
1787
|
-
|
|
1788
|
-
org_id:
|
|
1789
|
-
view_settings_id:
|
|
1790
|
-
is_system: (
|
|
1791
|
-
name:
|
|
1792
|
-
}).then((
|
|
1793
|
-
var
|
|
1794
|
-
(
|
|
1795
|
-
org_id:
|
|
1796
|
-
view_settings_id:
|
|
2737
|
+
Le({
|
|
2738
|
+
org_id: r.id,
|
|
2739
|
+
view_settings_id: g == null ? void 0 : g.id,
|
|
2740
|
+
is_system: (s = f.is_system) == null ? void 0 : s[0],
|
|
2741
|
+
name: f.name
|
|
2742
|
+
}).then((u) => {
|
|
2743
|
+
var b;
|
|
2744
|
+
(b = f.is_default) != null && b[0] ? Pe({
|
|
2745
|
+
org_id: r.id,
|
|
2746
|
+
view_settings_id: g == null ? void 0 : g.id
|
|
1797
2747
|
}).then(() => {
|
|
1798
|
-
|
|
1799
|
-
org_id:
|
|
1800
|
-
view_settings_id:
|
|
2748
|
+
Se({
|
|
2749
|
+
org_id: r.id,
|
|
2750
|
+
view_settings_id: g == null ? void 0 : g.id
|
|
1801
2751
|
}).then(() => {
|
|
1802
|
-
var
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}),
|
|
2752
|
+
var T;
|
|
2753
|
+
te.success(n("保存成功")), u.id == ((T = e.currentViewObj) == null ? void 0 : T.id) ? l("change", y, { ...u, ...u.data }, !1, !0) : F.value.forEach((A) => {
|
|
2754
|
+
A.id == u.id && Object.assign(A, { ...u, ...u.data });
|
|
2755
|
+
}), K();
|
|
1806
2756
|
});
|
|
1807
|
-
}) :
|
|
1808
|
-
org_id:
|
|
1809
|
-
view_settings_id:
|
|
2757
|
+
}) : Se({
|
|
2758
|
+
org_id: r.id,
|
|
2759
|
+
view_settings_id: g == null ? void 0 : g.id
|
|
1810
2760
|
}).then(() => {
|
|
1811
|
-
var
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
}),
|
|
2761
|
+
var T;
|
|
2762
|
+
te.success(n("保存成功")), u.id == ((T = e.currentViewObj) == null ? void 0 : T.id) ? l("change", y, { ...u, ...u.data }, !1, !0) : F.value.forEach((A) => {
|
|
2763
|
+
A.id == u.id && Object.assign(A, { ...u, ...u.data });
|
|
2764
|
+
}), K();
|
|
1815
2765
|
});
|
|
1816
2766
|
});
|
|
1817
2767
|
} else {
|
|
1818
|
-
let
|
|
1819
|
-
(
|
|
2768
|
+
let h = {};
|
|
2769
|
+
(w = f.is_submit) != null && w[0] ? (h = {
|
|
1820
2770
|
search_model: { ...e.currentViewObj.search_model, current: 1 },
|
|
1821
2771
|
filter_map: e.currentViewObj.filter_map,
|
|
1822
2772
|
sort_fields: e.currentViewObj.sort_fields,
|
|
@@ -1828,7 +2778,7 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1828
2778
|
group_condition: e.currentViewObj.group_condition,
|
|
1829
2779
|
group_record: e.currentViewObj.group_record,
|
|
1830
2780
|
default_search_condition_config_list: e.currentViewObj.default_search_condition_config_list
|
|
1831
|
-
}, delete
|
|
2781
|
+
}, delete h.is_system) : h = {
|
|
1832
2782
|
column: {},
|
|
1833
2783
|
search_model: {},
|
|
1834
2784
|
filter_map: {},
|
|
@@ -1839,40 +2789,40 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1839
2789
|
conditions: [],
|
|
1840
2790
|
group_condition: {},
|
|
1841
2791
|
group_record: {}
|
|
1842
|
-
},
|
|
1843
|
-
org_id:
|
|
1844
|
-
user_id:
|
|
1845
|
-
name:
|
|
1846
|
-
view_project__flag:
|
|
2792
|
+
}, Aa({
|
|
2793
|
+
org_id: r.id,
|
|
2794
|
+
user_id: f.view_type == "personal" ? D : null,
|
|
2795
|
+
name: f.name,
|
|
2796
|
+
view_project__flag: G.VITE_APP_VIEW_PROJECT_FLAG,
|
|
1847
2797
|
view_menu__flag: e.menu_flag,
|
|
1848
2798
|
view_menu__name: e.menu_name,
|
|
1849
2799
|
is_system: !1,
|
|
1850
|
-
data: JSON.stringify(
|
|
1851
|
-
}).then((
|
|
1852
|
-
|
|
2800
|
+
data: JSON.stringify(h)
|
|
2801
|
+
}).then((u) => {
|
|
2802
|
+
l("change", y, { ...u, ...u.data }, !0, !0), u.id && (F.value = F.value.concat([
|
|
1853
2803
|
{
|
|
1854
|
-
...
|
|
2804
|
+
...u
|
|
1855
2805
|
}
|
|
1856
|
-
]),
|
|
2806
|
+
]), j([
|
|
1857
2807
|
{
|
|
1858
|
-
id:
|
|
1859
|
-
search_model:
|
|
1860
|
-
filter_map:
|
|
1861
|
-
sort_fields:
|
|
1862
|
-
group_condition:
|
|
1863
|
-
conditions:
|
|
1864
|
-
isShowGeneralFilter:
|
|
2808
|
+
id: u.id,
|
|
2809
|
+
search_model: h.search_model,
|
|
2810
|
+
filter_map: h.filter_map,
|
|
2811
|
+
sort_fields: h.sort_fields,
|
|
2812
|
+
group_condition: h.group_condition,
|
|
2813
|
+
conditions: h.conditions,
|
|
2814
|
+
isShowGeneralFilter: h.isShowGeneralFilter
|
|
1865
2815
|
}
|
|
1866
|
-
]), window.location.hash =
|
|
2816
|
+
]), window.location.hash = u.uid, J(u.uid));
|
|
1867
2817
|
});
|
|
1868
2818
|
}
|
|
1869
|
-
},
|
|
1870
|
-
let
|
|
1871
|
-
e.currentViewObj.id ==
|
|
1872
|
-
const
|
|
2819
|
+
}, X = (f, g) => {
|
|
2820
|
+
let v = [!1];
|
|
2821
|
+
e.currentViewObj.id == f.id && (v = [!0]);
|
|
2822
|
+
const d = se({
|
|
1873
2823
|
open: !0,
|
|
1874
2824
|
loading: !1,
|
|
1875
|
-
title:
|
|
2825
|
+
title: n("编辑视图"),
|
|
1876
2826
|
form: {
|
|
1877
2827
|
settings: {
|
|
1878
2828
|
labelAlign: "right",
|
|
@@ -1883,12 +2833,12 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1883
2833
|
{
|
|
1884
2834
|
type: "input",
|
|
1885
2835
|
name: "name",
|
|
1886
|
-
label:
|
|
2836
|
+
label: n("视图名称"),
|
|
1887
2837
|
disabled: !1,
|
|
1888
2838
|
allowClear: !0,
|
|
1889
2839
|
inputType: "text",
|
|
1890
2840
|
defaultValue: "",
|
|
1891
|
-
placeholder:
|
|
2841
|
+
placeholder: n("请输入视图名称")
|
|
1892
2842
|
},
|
|
1893
2843
|
{
|
|
1894
2844
|
type: "checkbox",
|
|
@@ -1902,46 +2852,46 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1902
2852
|
placeholder: ""
|
|
1903
2853
|
}
|
|
1904
2854
|
],
|
|
1905
|
-
rules:
|
|
2855
|
+
rules: se({
|
|
1906
2856
|
name: [
|
|
1907
2857
|
{
|
|
1908
2858
|
required: !0,
|
|
1909
|
-
message:
|
|
2859
|
+
message: n("请输入视图名称")
|
|
1910
2860
|
}
|
|
1911
2861
|
]
|
|
1912
2862
|
}),
|
|
1913
|
-
model:
|
|
1914
|
-
name:
|
|
1915
|
-
is_submit:
|
|
1916
|
-
is_default: [
|
|
1917
|
-
is_system: [
|
|
2863
|
+
model: se({
|
|
2864
|
+
name: f.name,
|
|
2865
|
+
is_submit: v,
|
|
2866
|
+
is_default: [f != null && f.is_default ? f == null ? void 0 : f.is_default : !1],
|
|
2867
|
+
is_system: [f != null && f.is_system ? f == null ? void 0 : f.is_system : !1]
|
|
1918
2868
|
})
|
|
1919
2869
|
},
|
|
1920
2870
|
options: {
|
|
1921
2871
|
is_submit: [
|
|
1922
2872
|
{
|
|
1923
|
-
name:
|
|
2873
|
+
name: n("将当前过滤条件、排序、显示属性、视图和分组等设置更新到该视图中"),
|
|
1924
2874
|
value: !0
|
|
1925
2875
|
}
|
|
1926
2876
|
],
|
|
1927
2877
|
is_default: [
|
|
1928
2878
|
{
|
|
1929
|
-
name:
|
|
2879
|
+
name: n("设为默认视图"),
|
|
1930
2880
|
value: !0
|
|
1931
2881
|
}
|
|
1932
2882
|
],
|
|
1933
2883
|
is_system: [
|
|
1934
2884
|
{
|
|
1935
|
-
name:
|
|
2885
|
+
name: n("设为系统视图"),
|
|
1936
2886
|
value: !0
|
|
1937
2887
|
}
|
|
1938
2888
|
]
|
|
1939
2889
|
},
|
|
1940
|
-
ok: (
|
|
1941
|
-
|
|
2890
|
+
ok: (s) => new Promise(function(w) {
|
|
2891
|
+
a({ updateView: s, record: f }), w(null);
|
|
1942
2892
|
})
|
|
1943
2893
|
});
|
|
1944
|
-
|
|
2894
|
+
g == "public" && (d.form.fields.push({
|
|
1945
2895
|
type: "checkbox",
|
|
1946
2896
|
name: "is_default",
|
|
1947
2897
|
label: "",
|
|
@@ -1951,7 +2901,7 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1951
2901
|
valueKey: "value",
|
|
1952
2902
|
defaultValue: [!1],
|
|
1953
2903
|
placeholder: ""
|
|
1954
|
-
}),
|
|
2904
|
+
}), q.value && d.form.fields.push({
|
|
1955
2905
|
type: "checkbox",
|
|
1956
2906
|
name: "is_system",
|
|
1957
2907
|
label: "",
|
|
@@ -1961,12 +2911,12 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1961
2911
|
valueKey: "value",
|
|
1962
2912
|
defaultValue: [!1],
|
|
1963
2913
|
placeholder: ""
|
|
1964
|
-
})),
|
|
1965
|
-
},
|
|
1966
|
-
const
|
|
2914
|
+
})), Me(d);
|
|
2915
|
+
}, _ = (f) => {
|
|
2916
|
+
const g = se({
|
|
1967
2917
|
open: !0,
|
|
1968
2918
|
loading: !1,
|
|
1969
|
-
title:
|
|
2919
|
+
title: n("新建视图"),
|
|
1970
2920
|
form: {
|
|
1971
2921
|
settings: {
|
|
1972
2922
|
labelAlign: "right",
|
|
@@ -1977,17 +2927,17 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
1977
2927
|
{
|
|
1978
2928
|
type: "input",
|
|
1979
2929
|
name: "name",
|
|
1980
|
-
label:
|
|
2930
|
+
label: n("视图名称"),
|
|
1981
2931
|
disabled: !1,
|
|
1982
2932
|
allowClear: !0,
|
|
1983
2933
|
inputType: "text",
|
|
1984
2934
|
defaultValue: "",
|
|
1985
|
-
placeholder:
|
|
2935
|
+
placeholder: n("请输入视图名称")
|
|
1986
2936
|
},
|
|
1987
2937
|
{
|
|
1988
2938
|
type: "radio",
|
|
1989
2939
|
name: "view_type",
|
|
1990
|
-
label:
|
|
2940
|
+
label: n("视图可见范围"),
|
|
1991
2941
|
disabled: !1,
|
|
1992
2942
|
allowClear: !0,
|
|
1993
2943
|
labelKey: "name",
|
|
@@ -2007,81 +2957,81 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
2007
2957
|
placeholder: ""
|
|
2008
2958
|
}
|
|
2009
2959
|
],
|
|
2010
|
-
rules:
|
|
2960
|
+
rules: se({
|
|
2011
2961
|
name: [
|
|
2012
2962
|
{
|
|
2013
2963
|
required: !0,
|
|
2014
|
-
message:
|
|
2964
|
+
message: n("请输入视图名称")
|
|
2015
2965
|
}
|
|
2016
2966
|
]
|
|
2017
2967
|
}),
|
|
2018
|
-
model:
|
|
2968
|
+
model: se({
|
|
2019
2969
|
name: null,
|
|
2020
|
-
view_type:
|
|
2970
|
+
view_type: f,
|
|
2021
2971
|
is_submit: [!0]
|
|
2022
2972
|
})
|
|
2023
2973
|
},
|
|
2024
2974
|
options: {
|
|
2025
2975
|
view_type: [
|
|
2026
|
-
{ name:
|
|
2027
|
-
{ name:
|
|
2976
|
+
{ name: n("个人视图(仅自己可见)"), value: "personal" },
|
|
2977
|
+
{ name: n("公共视图(项目成员均可见)"), value: "public" }
|
|
2028
2978
|
],
|
|
2029
2979
|
is_submit: [
|
|
2030
2980
|
{
|
|
2031
|
-
name:
|
|
2981
|
+
name: n("将当前过滤条件、排序、显示属性、视图和分组等设置更新到该视图中"),
|
|
2032
2982
|
value: !0
|
|
2033
2983
|
}
|
|
2034
2984
|
]
|
|
2035
2985
|
},
|
|
2036
|
-
ok: (
|
|
2037
|
-
if (
|
|
2038
|
-
|
|
2986
|
+
ok: (v) => new Promise(function(d) {
|
|
2987
|
+
if (S.value.includes(v.name)) {
|
|
2988
|
+
te.error(n("视图名称已存在"));
|
|
2039
2989
|
return;
|
|
2040
2990
|
}
|
|
2041
|
-
|
|
2991
|
+
a({ updateView: v, record: v }), d(null);
|
|
2042
2992
|
})
|
|
2043
2993
|
});
|
|
2044
|
-
|
|
2045
|
-
},
|
|
2046
|
-
const
|
|
2994
|
+
Me(g);
|
|
2995
|
+
}, ae = (f) => {
|
|
2996
|
+
const g = se({
|
|
2047
2997
|
open: !0,
|
|
2048
2998
|
component: "ViewEditModal",
|
|
2049
2999
|
compObj: {
|
|
2050
|
-
title:
|
|
2051
|
-
data:
|
|
3000
|
+
title: f == "personal" ? n("个人视图管理") : n("公共视图管理"),
|
|
3001
|
+
data: f == "personal" ? t.value : E.value
|
|
2052
3002
|
},
|
|
2053
|
-
ok: (
|
|
2054
|
-
|
|
2055
|
-
org_id:
|
|
2056
|
-
view_settings_ids:
|
|
3003
|
+
ok: (v) => {
|
|
3004
|
+
v && v.length > 0 ? Ka({
|
|
3005
|
+
org_id: r.id,
|
|
3006
|
+
view_settings_ids: v
|
|
2057
3007
|
}).then(() => {
|
|
2058
|
-
|
|
2059
|
-
}) : (
|
|
3008
|
+
te.success(n("保存成功")), K();
|
|
3009
|
+
}) : (te.success(n("保存成功")), K());
|
|
2060
3010
|
},
|
|
2061
|
-
cancel: (
|
|
2062
|
-
|
|
3011
|
+
cancel: (v) => {
|
|
3012
|
+
v && K();
|
|
2063
3013
|
}
|
|
2064
3014
|
});
|
|
2065
|
-
|
|
2066
|
-
},
|
|
2067
|
-
let
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
},
|
|
2071
|
-
|
|
2072
|
-
title: () => `${
|
|
2073
|
-
content:
|
|
2074
|
-
icon: () =>
|
|
2075
|
-
okText:
|
|
3015
|
+
Me(g);
|
|
3016
|
+
}, ue = (f) => {
|
|
3017
|
+
let g = "";
|
|
3018
|
+
const v = window.location.href.indexOf("#");
|
|
3019
|
+
v !== -1 ? g = window.location.href.substring(0, v) + "#" + f.uid : g = window.location.href + "#" + f.uid, Ml({ val: g, message: n("复制成功") });
|
|
3020
|
+
}, ne = (f) => {
|
|
3021
|
+
qe.confirm({
|
|
3022
|
+
title: () => `${n("确认删除此")}【${f.name}】${f != null && f.user_id ? n("个人视图") : n("公共视图")}?`,
|
|
3023
|
+
content: n("视图删除后不可恢复,视图下工作项不受影响,是否确认删除?"),
|
|
3024
|
+
icon: () => V(De),
|
|
3025
|
+
okText: n("确定"),
|
|
2076
3026
|
onOk() {
|
|
2077
|
-
return new Promise((
|
|
2078
|
-
|
|
2079
|
-
org_id:
|
|
2080
|
-
view_settings_id:
|
|
3027
|
+
return new Promise((g) => {
|
|
3028
|
+
Ia({
|
|
3029
|
+
org_id: r.id,
|
|
3030
|
+
view_settings_id: f == null ? void 0 : f.id
|
|
2081
3031
|
}).then(() => {
|
|
2082
|
-
|
|
3032
|
+
F.value = F.value.filter((v) => v.id != f.id), J(null), te.success(n("删除成功"));
|
|
2083
3033
|
}).finally(() => {
|
|
2084
|
-
|
|
3034
|
+
g(null);
|
|
2085
3035
|
});
|
|
2086
3036
|
}).catch(() => console.log("Oops errors!"));
|
|
2087
3037
|
},
|
|
@@ -2089,50 +3039,50 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
2089
3039
|
onCancel() {
|
|
2090
3040
|
}
|
|
2091
3041
|
});
|
|
2092
|
-
},
|
|
2093
|
-
const
|
|
3042
|
+
}, be = () => {
|
|
3043
|
+
const g = Oe(e.app_flag, e.modalType, null, n, {
|
|
2094
3044
|
use_store: !0,
|
|
2095
3045
|
to_i18n: !0,
|
|
2096
3046
|
enable_btn: !1
|
|
2097
|
-
}).required_condition,
|
|
2098
|
-
return
|
|
2099
|
-
const
|
|
2100
|
-
|
|
2101
|
-
}),
|
|
2102
|
-
},
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2105
|
-
let
|
|
2106
|
-
|
|
2107
|
-
id:
|
|
2108
|
-
search_model:
|
|
2109
|
-
filter_map:
|
|
2110
|
-
sort_fields:
|
|
2111
|
-
group_condition:
|
|
2112
|
-
conditions:
|
|
2113
|
-
isShowGeneralFilter:
|
|
3047
|
+
}).required_condition, v = {};
|
|
3048
|
+
return g && g.forEach((d) => {
|
|
3049
|
+
const s = P.value_map[d.key];
|
|
3050
|
+
s != null && (v[d.field_name] = s);
|
|
3051
|
+
}), v;
|
|
3052
|
+
}, _e = (f) => {
|
|
3053
|
+
const g = [];
|
|
3054
|
+
f.forEach((v) => {
|
|
3055
|
+
let d = null, s = null, w = null, h = null;
|
|
3056
|
+
v.data.isShowGeneralFilter ? (d = {}, s = {}, w = v.data.group_condition, h = v.data.conditions) : (d = v.data.search_model, s = v.data.filter_map, w = {}, h = []), g.push({
|
|
3057
|
+
id: v.id,
|
|
3058
|
+
search_model: d,
|
|
3059
|
+
filter_map: s,
|
|
3060
|
+
sort_fields: v.data.sort_fields,
|
|
3061
|
+
group_condition: w,
|
|
3062
|
+
conditions: h,
|
|
3063
|
+
isShowGeneralFilter: v.data.isShowGeneralFilter
|
|
2114
3064
|
});
|
|
2115
|
-
}),
|
|
3065
|
+
}), j(g);
|
|
2116
3066
|
};
|
|
2117
|
-
|
|
3067
|
+
ee(
|
|
2118
3068
|
() => e.current_num,
|
|
2119
3069
|
// 监听保存当前视图
|
|
2120
3070
|
() => {
|
|
2121
|
-
|
|
2122
|
-
title: () =>
|
|
2123
|
-
content:
|
|
2124
|
-
icon: () =>
|
|
2125
|
-
okText:
|
|
3071
|
+
qe.confirm({
|
|
3072
|
+
title: () => n("确定覆盖视图吗?"),
|
|
3073
|
+
content: n("当前视图原有的数据会被覆盖"),
|
|
3074
|
+
icon: () => V(De),
|
|
3075
|
+
okText: n("确定"),
|
|
2126
3076
|
onOk() {
|
|
2127
|
-
return new Promise((
|
|
2128
|
-
|
|
3077
|
+
return new Promise((f) => {
|
|
3078
|
+
a({
|
|
2129
3079
|
updateView: {
|
|
2130
3080
|
is_submit: [!0],
|
|
2131
3081
|
is_system: [e.currentViewObj.is_system],
|
|
2132
3082
|
name: e.currentViewObj.name
|
|
2133
3083
|
},
|
|
2134
3084
|
record: e.currentViewObj
|
|
2135
|
-
}),
|
|
3085
|
+
}), f(null);
|
|
2136
3086
|
}).catch(() => console.log("Oops errors!"));
|
|
2137
3087
|
},
|
|
2138
3088
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -2140,14 +3090,14 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
2140
3090
|
}
|
|
2141
3091
|
});
|
|
2142
3092
|
}
|
|
2143
|
-
),
|
|
3093
|
+
), ee(
|
|
2144
3094
|
() => e.create_num,
|
|
2145
3095
|
// 监听另存为
|
|
2146
3096
|
() => {
|
|
2147
|
-
const
|
|
3097
|
+
const f = se({
|
|
2148
3098
|
open: !0,
|
|
2149
3099
|
loading: !1,
|
|
2150
|
-
title:
|
|
3100
|
+
title: n("新建视图"),
|
|
2151
3101
|
form: {
|
|
2152
3102
|
settings: {
|
|
2153
3103
|
labelAlign: "right",
|
|
@@ -2158,17 +3108,17 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
2158
3108
|
{
|
|
2159
3109
|
type: "input",
|
|
2160
3110
|
name: "name",
|
|
2161
|
-
label:
|
|
3111
|
+
label: n("视图名称"),
|
|
2162
3112
|
disabled: !1,
|
|
2163
3113
|
allowClear: !0,
|
|
2164
3114
|
inputType: "text",
|
|
2165
3115
|
defaultValue: "",
|
|
2166
|
-
placeholder:
|
|
3116
|
+
placeholder: n("请输入视图名称")
|
|
2167
3117
|
},
|
|
2168
3118
|
{
|
|
2169
3119
|
type: "radio",
|
|
2170
3120
|
name: "view_type",
|
|
2171
|
-
label:
|
|
3121
|
+
label: n("视图可见范围"),
|
|
2172
3122
|
disabled: !1,
|
|
2173
3123
|
allowClear: !0,
|
|
2174
3124
|
labelKey: "name",
|
|
@@ -2177,15 +3127,15 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
2177
3127
|
placeholder: ""
|
|
2178
3128
|
}
|
|
2179
3129
|
],
|
|
2180
|
-
rules:
|
|
3130
|
+
rules: se({
|
|
2181
3131
|
name: [
|
|
2182
3132
|
{
|
|
2183
3133
|
required: !0,
|
|
2184
|
-
message:
|
|
3134
|
+
message: n("请输入视图名称")
|
|
2185
3135
|
}
|
|
2186
3136
|
]
|
|
2187
3137
|
}),
|
|
2188
|
-
model:
|
|
3138
|
+
model: se({
|
|
2189
3139
|
name: null,
|
|
2190
3140
|
view_type: "personal",
|
|
2191
3141
|
is_submit: [!0]
|
|
@@ -2193,120 +3143,120 @@ const Ue = "customviewdatauser", Al = "view_system_edit", Il = [
|
|
|
2193
3143
|
},
|
|
2194
3144
|
options: {
|
|
2195
3145
|
view_type: [
|
|
2196
|
-
{ name:
|
|
2197
|
-
{ name:
|
|
3146
|
+
{ name: n("个人视图(仅自己可见)"), value: "personal" },
|
|
3147
|
+
{ name: n("公共视图(项目成员均可见)"), value: "public" }
|
|
2198
3148
|
],
|
|
2199
3149
|
is_submit: [
|
|
2200
3150
|
{
|
|
2201
|
-
name:
|
|
3151
|
+
name: n("将当前过滤条件、排序、显示属性、视图和分组等设置更新到该视图中"),
|
|
2202
3152
|
value: !0
|
|
2203
3153
|
}
|
|
2204
3154
|
]
|
|
2205
3155
|
},
|
|
2206
|
-
ok: (
|
|
2207
|
-
if (
|
|
2208
|
-
|
|
3156
|
+
ok: (g) => new Promise(function(v) {
|
|
3157
|
+
if (F.value.map((s) => s.name).includes(g.name)) {
|
|
3158
|
+
te.error(n("视图名称已存在"));
|
|
2209
3159
|
return;
|
|
2210
3160
|
}
|
|
2211
|
-
|
|
3161
|
+
a({ updateView: g, record: g }), v(null);
|
|
2212
3162
|
})
|
|
2213
3163
|
});
|
|
2214
|
-
|
|
3164
|
+
Me(f);
|
|
2215
3165
|
}
|
|
2216
|
-
),
|
|
3166
|
+
), ee(
|
|
2217
3167
|
() => e.count_num,
|
|
2218
3168
|
// 监听刷新当前视图count
|
|
2219
3169
|
() => {
|
|
2220
|
-
|
|
3170
|
+
_e(F.value);
|
|
2221
3171
|
}
|
|
2222
3172
|
);
|
|
2223
|
-
const
|
|
2224
|
-
const
|
|
3173
|
+
const ve = (f) => {
|
|
3174
|
+
const g = Oe(e.currentViewObj.app_flag, e.modalType, null, n, {
|
|
2225
3175
|
use_store: !0,
|
|
2226
3176
|
to_i18n: !0,
|
|
2227
3177
|
enable_btn: !1
|
|
2228
3178
|
});
|
|
2229
|
-
|
|
3179
|
+
g.required_condition && g.required_condition.find((d) => d.key === f) && K();
|
|
2230
3180
|
};
|
|
2231
3181
|
return Fe(() => {
|
|
2232
|
-
|
|
2233
|
-
}),
|
|
2234
|
-
|
|
2235
|
-
}),
|
|
2236
|
-
|
|
3182
|
+
Ne().on("change", ve);
|
|
3183
|
+
}), Je(() => {
|
|
3184
|
+
Ne().off("change", ve);
|
|
3185
|
+
}), el(() => {
|
|
3186
|
+
_e(F.value);
|
|
2237
3187
|
}), {
|
|
2238
3188
|
props: e,
|
|
2239
|
-
viewKey:
|
|
2240
|
-
customStyle:
|
|
2241
|
-
columns:
|
|
2242
|
-
personData:
|
|
2243
|
-
publicData:
|
|
2244
|
-
is_auth:
|
|
2245
|
-
addView:
|
|
2246
|
-
editView:
|
|
2247
|
-
customRow:
|
|
2248
|
-
changeView:
|
|
2249
|
-
handleSubmit:
|
|
2250
|
-
handleShare:
|
|
2251
|
-
handleDelet:
|
|
2252
|
-
appStore:
|
|
3189
|
+
viewKey: ie,
|
|
3190
|
+
customStyle: $,
|
|
3191
|
+
columns: ja,
|
|
3192
|
+
personData: t,
|
|
3193
|
+
publicData: E,
|
|
3194
|
+
is_auth: q,
|
|
3195
|
+
addView: _,
|
|
3196
|
+
editView: ae,
|
|
3197
|
+
customRow: re,
|
|
3198
|
+
changeView: C,
|
|
3199
|
+
handleSubmit: X,
|
|
3200
|
+
handleShare: ue,
|
|
3201
|
+
handleDelet: ne,
|
|
3202
|
+
appStore: B
|
|
2253
3203
|
};
|
|
2254
3204
|
}
|
|
2255
3205
|
});
|
|
2256
|
-
const
|
|
2257
|
-
function
|
|
2258
|
-
const
|
|
2259
|
-
return
|
|
3206
|
+
const qa = { style: { "font-weight": "700" } }, Da = ["onClick"], Ra = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Na = ["onClick"], za = ["onClick"], Ga = ["onClick"], Ha = { style: { "font-weight": "700" } }, La = ["onClick"], Pa = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Ya = ["onClick"], Ja = ["onClick"], Wa = ["onClick"];
|
|
3207
|
+
function Qa(e, l, G, P, H, B) {
|
|
3208
|
+
const r = k("caret-right-outlined"), D = k("setting-outlined"), q = k("a-tooltip"), F = k("plus-outlined"), n = k("a-menu-item"), c = k("a-menu"), y = k("a-dropdown"), t = k("a-table"), E = k("a-collapse-panel"), S = k("a-collapse"), O = k("a-card");
|
|
3209
|
+
return o(), p(O, {
|
|
2260
3210
|
"body-style": { padding: 0, height: e.height + 96 + "px", overflowY: "auto" }
|
|
2261
3211
|
}, {
|
|
2262
|
-
default:
|
|
2263
|
-
|
|
3212
|
+
default: m(() => [
|
|
3213
|
+
V(S, {
|
|
2264
3214
|
activeKey: e.viewKey,
|
|
2265
|
-
"onUpdate:activeKey":
|
|
3215
|
+
"onUpdate:activeKey": l[6] || (l[6] = (j) => e.viewKey = j),
|
|
2266
3216
|
bordered: !1,
|
|
2267
3217
|
class: "collapses",
|
|
2268
3218
|
style: { background: "rgb(255, 255, 255)" }
|
|
2269
3219
|
}, {
|
|
2270
|
-
expandIcon:
|
|
2271
|
-
|
|
2272
|
-
rotate:
|
|
3220
|
+
expandIcon: m(({ isActive: j }) => [
|
|
3221
|
+
V(r, {
|
|
3222
|
+
rotate: j ? 90 : 0
|
|
2273
3223
|
}, null, 8, ["rotate"])
|
|
2274
3224
|
]),
|
|
2275
|
-
default:
|
|
2276
|
-
(
|
|
3225
|
+
default: m(() => [
|
|
3226
|
+
(o(), p(E, {
|
|
2277
3227
|
key: "1",
|
|
2278
|
-
style:
|
|
3228
|
+
style: R(e.customStyle)
|
|
2279
3229
|
}, {
|
|
2280
|
-
header:
|
|
2281
|
-
|
|
3230
|
+
header: m(() => [
|
|
3231
|
+
L("span", qa, I(e.$t("个人视图")), 1)
|
|
2282
3232
|
]),
|
|
2283
|
-
extra:
|
|
2284
|
-
|
|
2285
|
-
title:
|
|
2286
|
-
|
|
3233
|
+
extra: m(() => [
|
|
3234
|
+
V(q, null, {
|
|
3235
|
+
title: m(() => [
|
|
3236
|
+
Z(I(e.$t("个人视图管理")), 1)
|
|
2287
3237
|
]),
|
|
2288
|
-
default:
|
|
2289
|
-
|
|
3238
|
+
default: m(() => [
|
|
3239
|
+
V(D, {
|
|
2290
3240
|
style: { "margin-right": "10px" },
|
|
2291
|
-
onClick:
|
|
3241
|
+
onClick: l[0] || (l[0] = ce((j) => e.editView("personal"), ["stop"]))
|
|
2292
3242
|
})
|
|
2293
3243
|
]),
|
|
2294
3244
|
_: 1
|
|
2295
3245
|
}),
|
|
2296
|
-
|
|
2297
|
-
title:
|
|
2298
|
-
|
|
3246
|
+
V(q, null, {
|
|
3247
|
+
title: m(() => [
|
|
3248
|
+
Z(I(e.$t("新建个人视图")), 1)
|
|
2299
3249
|
]),
|
|
2300
|
-
default:
|
|
2301
|
-
|
|
2302
|
-
onClick:
|
|
3250
|
+
default: m(() => [
|
|
3251
|
+
V(F, {
|
|
3252
|
+
onClick: l[1] || (l[1] = ce((j) => e.addView("personal"), ["stop"]))
|
|
2303
3253
|
})
|
|
2304
3254
|
]),
|
|
2305
3255
|
_: 1
|
|
2306
3256
|
})
|
|
2307
3257
|
]),
|
|
2308
|
-
default:
|
|
2309
|
-
e.personData.length > 0 ? (
|
|
3258
|
+
default: m(() => [
|
|
3259
|
+
e.personData.length > 0 ? (o(), p(t, {
|
|
2310
3260
|
key: 0,
|
|
2311
3261
|
columns: e.columns,
|
|
2312
3262
|
customRow: e.customRow,
|
|
@@ -2315,117 +3265,117 @@ function Wl(e, u, K, D, V, q) {
|
|
|
2315
3265
|
showHeader: !1,
|
|
2316
3266
|
size: "small"
|
|
2317
3267
|
}, {
|
|
2318
|
-
bodyCell:
|
|
2319
|
-
|
|
3268
|
+
bodyCell: m(({ column: j, record: K }) => [
|
|
3269
|
+
j.dataIndex === "name" ? (o(), U("div", {
|
|
2320
3270
|
key: 0,
|
|
2321
3271
|
class: "table",
|
|
2322
3272
|
style: { width: "100%", cursor: "pointer" },
|
|
2323
|
-
onClick: (
|
|
3273
|
+
onClick: (J) => e.changeView(K)
|
|
2324
3274
|
}, [
|
|
2325
|
-
|
|
2326
|
-
title:
|
|
3275
|
+
V(q, {
|
|
3276
|
+
title: K.name,
|
|
2327
3277
|
color: e.appStore.primaryColor,
|
|
2328
3278
|
placement: "left",
|
|
2329
3279
|
destroyTooltipOnHide: !0,
|
|
2330
3280
|
overlayStyle: { maxWidth: "200px" }
|
|
2331
3281
|
}, {
|
|
2332
|
-
default:
|
|
2333
|
-
|
|
3282
|
+
default: m(() => [
|
|
3283
|
+
L("div", Ra, I(K.name), 1)
|
|
2334
3284
|
]),
|
|
2335
3285
|
_: 2
|
|
2336
3286
|
}, 1032, ["title", "color"]),
|
|
2337
|
-
|
|
3287
|
+
L("span", {
|
|
2338
3288
|
class: "num",
|
|
2339
|
-
style:
|
|
3289
|
+
style: R([
|
|
2340
3290
|
{ float: "right" },
|
|
2341
|
-
e.currentViewObj.id ===
|
|
3291
|
+
e.currentViewObj.id === K.id ? { color: "#1890ff", fontWeight: "bold" } : {}
|
|
2342
3292
|
])
|
|
2343
|
-
},
|
|
2344
|
-
|
|
2345
|
-
overlay:
|
|
2346
|
-
|
|
2347
|
-
default:
|
|
2348
|
-
!
|
|
2349
|
-
default:
|
|
2350
|
-
|
|
3293
|
+
}, I(K.num), 5),
|
|
3294
|
+
V(y, { class: "dropdown" }, {
|
|
3295
|
+
overlay: m(() => [
|
|
3296
|
+
V(c, null, {
|
|
3297
|
+
default: m(() => [
|
|
3298
|
+
!K.is_system || e.is_auth ? (o(), p(n, { key: 0 }, {
|
|
3299
|
+
default: m(() => [
|
|
3300
|
+
L("a", {
|
|
2351
3301
|
href: "javascript:;",
|
|
2352
|
-
onClick: (
|
|
2353
|
-
},
|
|
3302
|
+
onClick: (J) => e.handleSubmit(K, "personal")
|
|
3303
|
+
}, I(e.$t("编辑")), 9, Na)
|
|
2354
3304
|
]),
|
|
2355
3305
|
_: 2
|
|
2356
|
-
}, 1024)) :
|
|
2357
|
-
|
|
2358
|
-
default:
|
|
2359
|
-
|
|
3306
|
+
}, 1024)) : M("", !0),
|
|
3307
|
+
V(n, null, {
|
|
3308
|
+
default: m(() => [
|
|
3309
|
+
L("a", {
|
|
2360
3310
|
href: "javascript:;",
|
|
2361
|
-
onClick: (
|
|
2362
|
-
},
|
|
3311
|
+
onClick: (J) => e.handleShare(K)
|
|
3312
|
+
}, I(e.$t("分享视图")), 9, za)
|
|
2363
3313
|
]),
|
|
2364
3314
|
_: 2
|
|
2365
3315
|
}, 1024),
|
|
2366
|
-
!
|
|
2367
|
-
default:
|
|
2368
|
-
|
|
3316
|
+
!K.is_system || e.is_auth ? (o(), p(n, { key: 1 }, {
|
|
3317
|
+
default: m(() => [
|
|
3318
|
+
L("a", {
|
|
2369
3319
|
href: "javascript:;",
|
|
2370
|
-
onClick: (
|
|
2371
|
-
},
|
|
3320
|
+
onClick: (J) => e.handleDelet(K)
|
|
3321
|
+
}, I(e.$t("删除")), 9, Ga)
|
|
2372
3322
|
]),
|
|
2373
3323
|
_: 2
|
|
2374
|
-
}, 1024)) :
|
|
3324
|
+
}, 1024)) : M("", !0)
|
|
2375
3325
|
]),
|
|
2376
3326
|
_: 2
|
|
2377
3327
|
}, 1024)
|
|
2378
3328
|
]),
|
|
2379
|
-
default:
|
|
2380
|
-
|
|
3329
|
+
default: m(() => [
|
|
3330
|
+
L("span", {
|
|
2381
3331
|
style: { float: "right", "font-weight": "800" },
|
|
2382
|
-
onClick:
|
|
3332
|
+
onClick: l[2] || (l[2] = ce(() => {
|
|
2383
3333
|
}, ["stop"]))
|
|
2384
3334
|
}, " · · · ")
|
|
2385
3335
|
]),
|
|
2386
3336
|
_: 2
|
|
2387
3337
|
}, 1024)
|
|
2388
|
-
], 8,
|
|
3338
|
+
], 8, Da)) : M("", !0)
|
|
2389
3339
|
]),
|
|
2390
3340
|
_: 1
|
|
2391
|
-
}, 8, ["columns", "customRow", "dataSource"])) :
|
|
3341
|
+
}, 8, ["columns", "customRow", "dataSource"])) : M("", !0)
|
|
2392
3342
|
]),
|
|
2393
3343
|
_: 1
|
|
2394
3344
|
}, 8, ["style"])),
|
|
2395
|
-
(
|
|
3345
|
+
(o(), p(E, {
|
|
2396
3346
|
key: "2",
|
|
2397
|
-
style:
|
|
3347
|
+
style: R(e.customStyle)
|
|
2398
3348
|
}, {
|
|
2399
|
-
header:
|
|
2400
|
-
|
|
3349
|
+
header: m(() => [
|
|
3350
|
+
L("span", Ha, I(e.$t("公共视图")), 1)
|
|
2401
3351
|
]),
|
|
2402
|
-
extra:
|
|
2403
|
-
|
|
2404
|
-
title:
|
|
2405
|
-
|
|
3352
|
+
extra: m(() => [
|
|
3353
|
+
V(q, null, {
|
|
3354
|
+
title: m(() => [
|
|
3355
|
+
Z(I(e.$t("公共视图管理")), 1)
|
|
2406
3356
|
]),
|
|
2407
|
-
default:
|
|
2408
|
-
|
|
3357
|
+
default: m(() => [
|
|
3358
|
+
V(D, {
|
|
2409
3359
|
style: { "margin-right": "10px" },
|
|
2410
|
-
onClick:
|
|
3360
|
+
onClick: l[3] || (l[3] = ce((j) => e.editView("public"), ["stop"]))
|
|
2411
3361
|
})
|
|
2412
3362
|
]),
|
|
2413
3363
|
_: 1
|
|
2414
3364
|
}),
|
|
2415
|
-
|
|
2416
|
-
title:
|
|
2417
|
-
|
|
3365
|
+
V(q, null, {
|
|
3366
|
+
title: m(() => [
|
|
3367
|
+
Z(I(e.$t("新建公共视图")), 1)
|
|
2418
3368
|
]),
|
|
2419
|
-
default:
|
|
2420
|
-
|
|
2421
|
-
onClick:
|
|
3369
|
+
default: m(() => [
|
|
3370
|
+
V(F, {
|
|
3371
|
+
onClick: l[4] || (l[4] = ce((j) => e.addView("public"), ["stop"]))
|
|
2422
3372
|
})
|
|
2423
3373
|
]),
|
|
2424
3374
|
_: 1
|
|
2425
3375
|
})
|
|
2426
3376
|
]),
|
|
2427
|
-
default:
|
|
2428
|
-
e.publicData.length > 0 ? (
|
|
3377
|
+
default: m(() => [
|
|
3378
|
+
e.publicData.length > 0 ? (o(), p(t, {
|
|
2429
3379
|
key: 0,
|
|
2430
3380
|
columns: e.columns,
|
|
2431
3381
|
customRow: e.customRow,
|
|
@@ -2434,80 +3384,80 @@ function Wl(e, u, K, D, V, q) {
|
|
|
2434
3384
|
showHeader: !1,
|
|
2435
3385
|
size: "small"
|
|
2436
3386
|
}, {
|
|
2437
|
-
bodyCell:
|
|
2438
|
-
|
|
3387
|
+
bodyCell: m(({ column: j, record: K }) => [
|
|
3388
|
+
j.dataIndex === "name" ? (o(), U("div", {
|
|
2439
3389
|
key: 0,
|
|
2440
3390
|
class: "table",
|
|
2441
3391
|
style: { width: "100%", cursor: "pointer" },
|
|
2442
|
-
onClick: (
|
|
3392
|
+
onClick: (J) => e.changeView(K)
|
|
2443
3393
|
}, [
|
|
2444
|
-
|
|
2445
|
-
title:
|
|
3394
|
+
V(q, {
|
|
3395
|
+
title: K.name,
|
|
2446
3396
|
color: e.appStore.primaryColor,
|
|
2447
3397
|
placement: "left",
|
|
2448
3398
|
destroyTooltipOnHide: !0,
|
|
2449
3399
|
overlayStyle: { maxWidth: "200px" }
|
|
2450
3400
|
}, {
|
|
2451
|
-
default:
|
|
2452
|
-
|
|
3401
|
+
default: m(() => [
|
|
3402
|
+
L("div", Pa, I(K.name), 1)
|
|
2453
3403
|
]),
|
|
2454
3404
|
_: 2
|
|
2455
3405
|
}, 1032, ["title", "color"]),
|
|
2456
|
-
|
|
3406
|
+
L("span", {
|
|
2457
3407
|
class: "num",
|
|
2458
|
-
style:
|
|
3408
|
+
style: R([
|
|
2459
3409
|
{ float: "right" },
|
|
2460
|
-
e.currentViewObj.id ===
|
|
3410
|
+
e.currentViewObj.id === K.id ? { color: "#1890ff", fontWeight: "bold" } : {}
|
|
2461
3411
|
])
|
|
2462
|
-
},
|
|
2463
|
-
|
|
2464
|
-
overlay:
|
|
2465
|
-
|
|
2466
|
-
default:
|
|
2467
|
-
!
|
|
2468
|
-
default:
|
|
2469
|
-
|
|
3412
|
+
}, I(K.num), 5),
|
|
3413
|
+
V(y, { class: "dropdown" }, {
|
|
3414
|
+
overlay: m(() => [
|
|
3415
|
+
V(c, null, {
|
|
3416
|
+
default: m(() => [
|
|
3417
|
+
!K.is_system || e.is_auth ? (o(), p(n, { key: 0 }, {
|
|
3418
|
+
default: m(() => [
|
|
3419
|
+
L("a", {
|
|
2470
3420
|
href: "javascript:;",
|
|
2471
|
-
onClick: (
|
|
2472
|
-
},
|
|
3421
|
+
onClick: (J) => e.handleSubmit(K, "public")
|
|
3422
|
+
}, I(e.$t("编辑")), 9, Ya)
|
|
2473
3423
|
]),
|
|
2474
3424
|
_: 2
|
|
2475
|
-
}, 1024)) :
|
|
2476
|
-
|
|
2477
|
-
default:
|
|
2478
|
-
|
|
3425
|
+
}, 1024)) : M("", !0),
|
|
3426
|
+
V(n, null, {
|
|
3427
|
+
default: m(() => [
|
|
3428
|
+
L("a", {
|
|
2479
3429
|
href: "javascript:;",
|
|
2480
|
-
onClick: (
|
|
2481
|
-
},
|
|
3430
|
+
onClick: (J) => e.handleShare(K)
|
|
3431
|
+
}, I(e.$t("分享视图")), 9, Ja)
|
|
2482
3432
|
]),
|
|
2483
3433
|
_: 2
|
|
2484
3434
|
}, 1024),
|
|
2485
|
-
!
|
|
2486
|
-
default:
|
|
2487
|
-
|
|
3435
|
+
!K.is_system || e.is_auth ? (o(), p(n, { key: 1 }, {
|
|
3436
|
+
default: m(() => [
|
|
3437
|
+
L("a", {
|
|
2488
3438
|
href: "javascript:;",
|
|
2489
|
-
onClick: (
|
|
2490
|
-
},
|
|
3439
|
+
onClick: (J) => e.handleDelet(K)
|
|
3440
|
+
}, I(e.$t("删除")), 9, Wa)
|
|
2491
3441
|
]),
|
|
2492
3442
|
_: 2
|
|
2493
|
-
}, 1024)) :
|
|
3443
|
+
}, 1024)) : M("", !0)
|
|
2494
3444
|
]),
|
|
2495
3445
|
_: 2
|
|
2496
3446
|
}, 1024)
|
|
2497
3447
|
]),
|
|
2498
|
-
default:
|
|
2499
|
-
|
|
3448
|
+
default: m(() => [
|
|
3449
|
+
L("span", {
|
|
2500
3450
|
style: { float: "right", "font-weight": "800" },
|
|
2501
|
-
onClick:
|
|
3451
|
+
onClick: l[5] || (l[5] = ce(() => {
|
|
2502
3452
|
}, ["stop"]))
|
|
2503
3453
|
}, " · · · ")
|
|
2504
3454
|
]),
|
|
2505
3455
|
_: 2
|
|
2506
3456
|
}, 1024)
|
|
2507
|
-
], 8,
|
|
3457
|
+
], 8, La)) : M("", !0)
|
|
2508
3458
|
]),
|
|
2509
3459
|
_: 1
|
|
2510
|
-
}, 8, ["columns", "customRow", "dataSource"])) :
|
|
3460
|
+
}, 8, ["columns", "customRow", "dataSource"])) : M("", !0)
|
|
2511
3461
|
]),
|
|
2512
3462
|
_: 1
|
|
2513
3463
|
}, 8, ["style"]))
|
|
@@ -2518,10 +3468,10 @@ function Wl(e, u, K, D, V, q) {
|
|
|
2518
3468
|
_: 1
|
|
2519
3469
|
}, 8, ["body-style"]);
|
|
2520
3470
|
}
|
|
2521
|
-
const
|
|
3471
|
+
const Xa = /* @__PURE__ */ me(Ta, [["render", Qa]]), Za = fe({
|
|
2522
3472
|
name: "SideSearchRender",
|
|
2523
3473
|
components: {
|
|
2524
|
-
ViewManage:
|
|
3474
|
+
ViewManage: Xa
|
|
2525
3475
|
},
|
|
2526
3476
|
props: {
|
|
2527
3477
|
selectObj: {
|
|
@@ -2530,22 +3480,22 @@ const Hl = /* @__PURE__ */ Z(Vl, [["render", Wl]]), Yl = X({
|
|
|
2530
3480
|
}
|
|
2531
3481
|
},
|
|
2532
3482
|
emits: ["change"],
|
|
2533
|
-
setup(e, { emit:
|
|
3483
|
+
setup(e, { emit: l }) {
|
|
2534
3484
|
return {
|
|
2535
3485
|
props: e,
|
|
2536
|
-
change: (
|
|
2537
|
-
|
|
3486
|
+
change: (P, H, B) => {
|
|
3487
|
+
l("change", P, H, B);
|
|
2538
3488
|
}
|
|
2539
3489
|
};
|
|
2540
3490
|
}
|
|
2541
3491
|
});
|
|
2542
|
-
function
|
|
2543
|
-
const
|
|
2544
|
-
return
|
|
3492
|
+
function xa(e, l, G, P, H, B) {
|
|
3493
|
+
const r = k("view-manage"), D = k("a-card");
|
|
3494
|
+
return o(), p(D, {
|
|
2545
3495
|
"body-style": { padding: 0, height: e.selectObj.height + 96 + "px", overflowY: "auto" }
|
|
2546
3496
|
}, {
|
|
2547
|
-
default:
|
|
2548
|
-
|
|
3497
|
+
default: m(() => [
|
|
3498
|
+
V(r, {
|
|
2549
3499
|
"select-obj": e.selectObj,
|
|
2550
3500
|
onChange: e.change
|
|
2551
3501
|
}, null, 8, ["select-obj", "onChange"])
|
|
@@ -2553,20 +3503,21 @@ function Ql(e, u, K, D, V, q) {
|
|
|
2553
3503
|
_: 1
|
|
2554
3504
|
}, 8, ["body-style"]);
|
|
2555
3505
|
}
|
|
2556
|
-
const
|
|
3506
|
+
const Uo = /* @__PURE__ */ me(Za, [["render", xa]]);
|
|
2557
3507
|
export {
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
3508
|
+
Xl as AddConditionGroupModal,
|
|
3509
|
+
Io as BoldMatcher,
|
|
3510
|
+
Cl as CodeEditor,
|
|
3511
|
+
ll as FieldRender,
|
|
3512
|
+
We as FieldRender2,
|
|
3513
|
+
So as FormRender,
|
|
3514
|
+
Eo as FormRender2,
|
|
3515
|
+
Mo as FormRender3,
|
|
3516
|
+
$o as GeneralFilter,
|
|
3517
|
+
cl as JsonObj,
|
|
3518
|
+
Ko as SearchRender,
|
|
3519
|
+
Uo as SideSearchRender,
|
|
3520
|
+
Oo as SmallTableSerarchField,
|
|
3521
|
+
Xa as ViewManage,
|
|
3522
|
+
Vo as getFormConfig
|
|
2572
3523
|
};
|