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