liyu-pc-base 1.0.82 → 1.0.86

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