liyu-pc-base 1.0.415 → 1.0.419
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FieldRender-B_bleF9R.js → FieldRender-CGvnFWnN.js} +1 -1
- package/dist/{FieldRender-B_bleF9R.js.map → FieldRender-CGvnFWnN.js.map} +1 -1
- package/dist/FieldRender-zd1ezbGv.js +2 -0
- package/dist/{FieldRender2-DyioRqtF.js → FieldRender2-BNuXXOId.js} +2 -2
- package/dist/{FieldRender2-DyioRqtF.js.map → FieldRender2-BNuXXOId.js.map} +1 -1
- package/dist/{FormRender3-DLSNuRB8.js → FormRender3-CJzFSlmM.js} +1 -1
- package/dist/{FormRender3-DLSNuRB8.js.map → FormRender3-CJzFSlmM.js.map} +1 -1
- package/dist/FormRender3-H-vUDC6W.js +2 -0
- package/dist/{RemoteSelectPro-DJG_-Ant.js → RemoteSelectPro-awKx6KYC.js} +1 -1
- package/dist/{RemoteSelectPro-DJG_-Ant.js.map → RemoteSelectPro-awKx6KYC.js.map} +1 -1
- package/dist/SearchRender-BYEJcNHR.js +2 -0
- package/dist/{SearchRender-C-2F42TF.js → SearchRender-BgqvX7jk.js} +1 -1
- package/dist/{SearchRender-C-2F42TF.js.map → SearchRender-BgqvX7jk.js.map} +1 -1
- package/dist/components/index.js +6 -6
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-CbenuZp5.js → tableModal-BV0nCGp_.js} +1 -1
- package/dist/{tableModal-CbenuZp5.js.map → tableModal-BV0nCGp_.js.map} +1 -1
- package/dist/{tablePro-CIGaVrpO.js → tablePro-DzzczfVG.js} +790 -777
- package/dist/{tablePro-CIGaVrpO.js.map → tablePro-DzzczfVG.js.map} +1 -1
- package/dist/tablePro-f2g2n_0h.js +2 -0
- package/package.json +1 -1
- package/dist/FieldRender-BpRv5Ovx.js +0 -2
- package/dist/FormRender3-CEtenBff.js +0 -2
- package/dist/SearchRender-CgXnaJHm.js +0 -2
- package/dist/tablePro-C_Fkq-JI.js +0 -2
|
@@ -7,29 +7,29 @@ import { getApiData as c } from "./api/api-model.js";
|
|
|
7
7
|
import { F as l, M as u, N as d, b as f, c as p, r as m, t as h, x as g } from "./function-H7GI-Ydw.js";
|
|
8
8
|
import { ConditionOperatorMap as _ } from "./api/typing.js";
|
|
9
9
|
import { t as v } from "./RemoteModal-DYWn6fNv.js";
|
|
10
|
-
import { n as y, r as b, t as x } from "./RemoteSelectPro-
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { a as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { Modal as
|
|
21
|
-
import { debounce as
|
|
10
|
+
import { n as y, r as b, t as x } from "./RemoteSelectPro-awKx6KYC.js";
|
|
11
|
+
import { t as ee } from "./RemoteFilterSelect-CapzhUOg.js";
|
|
12
|
+
import { t as S } from "./AttributeNomTable-BV3zeA9I.js";
|
|
13
|
+
import { t as te } from "./AttributeTable-Dztznjrx.js";
|
|
14
|
+
import { t as ne } from "./JsonStr-DE1QSIsP.js";
|
|
15
|
+
import { t as re } from "./JsonObj-Bq62nHPb.js";
|
|
16
|
+
import { t as ie } from "./RemoteText-BCKZJK52.js";
|
|
17
|
+
import { t as C } from "./modal-tools-9zfwQHxQ.js";
|
|
18
|
+
import { a as ae, c as oe, f as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me, u as he } from "./TinymceEditor-Z6uOTa2S.js";
|
|
19
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as ge, createTextVNode as A, createVNode as j, defineComponent as M, h as N, inject as _e, normalizeClass as ve, normalizeStyle as P, onActivated as ye, onDeactivated as be, onMounted as xe, onUnmounted as Se, openBlock as F, provide as Ce, reactive as I, ref as L, renderList as R, renderSlot as we, resolveComponent as z, resolveDynamicComponent as B, toDisplayString as V, unref as H, watch as U, withCtx as W } from "vue";
|
|
20
|
+
import { Modal as Te, message as G } from "ant-design-vue";
|
|
21
|
+
import { debounce as K, isArray as Ee, isEqual as De } from "lodash-es";
|
|
22
22
|
import q from "moment";
|
|
23
23
|
import Oe from "dayjs";
|
|
24
|
-
import { AlignLeftOutlined as ke, ColumnHeightOutlined as Ae, CopyOutlined as
|
|
25
|
-
import { useRoute as
|
|
26
|
-
import { useI18n as
|
|
24
|
+
import { AlignLeftOutlined as ke, ColumnHeightOutlined as Ae, CopyOutlined as J, DeleteOutlined as je, DownloadOutlined as Me, EditOutlined as Y, ExclamationCircleOutlined as Ne, FilterFilled as Pe, FullscreenExitOutlined as Fe, FullscreenOutlined as Ie, LeftOutlined as Le, LoadingOutlined as Re, PlusOutlined as ze, ReloadOutlined as Be, RightOutlined as Ve, SaveOutlined as He, SettingOutlined as Ue, StarFilled as We, StarOutlined as Ge } from "@ant-design/icons-vue";
|
|
25
|
+
import { useRoute as Ke, useRouter as qe } from "vue-router";
|
|
26
|
+
import { useI18n as Je } from "vue-i18n";
|
|
27
27
|
import Ye from "mitt";
|
|
28
28
|
import { useResizeObserver as Xe } from "@vueuse/core";
|
|
29
29
|
import X from "screenfull";
|
|
30
30
|
import Ze from "handlebars";
|
|
31
31
|
//#region src/components/FormRender/SmallTableSerarchField.vue?vue&type=script&lang.ts
|
|
32
|
-
var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "YYYY-MM-DD HH:mm:ss") => q(e, t, !0).isValid(), et = (e, t = "HH:mm:ss") => q(e, t, !0).isValid(), tt =
|
|
32
|
+
var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "YYYY-MM-DD HH:mm:ss") => q(e, t, !0).isValid(), et = (e, t = "HH:mm:ss") => q(e, t, !0).isValid(), tt = M({
|
|
33
33
|
name: "FieldRender2",
|
|
34
34
|
methods: { isArray: Ee },
|
|
35
35
|
props: {
|
|
@@ -98,7 +98,7 @@ var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "
|
|
|
98
98
|
"update_name2"
|
|
99
99
|
],
|
|
100
100
|
setup(e, { emit: t }) {
|
|
101
|
-
let n =
|
|
101
|
+
let n = L({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, i = (e, t) => {
|
|
102
102
|
let n;
|
|
103
103
|
return t == "int" ? d(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
104
104
|
d(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
@@ -115,11 +115,11 @@ var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "
|
|
|
115
115
|
})) : n = d(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (d(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
116
116
|
d(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
117
117
|
})) : n = d(e) && typeof e == "string" ? !!e : e), n;
|
|
118
|
-
}, a =
|
|
118
|
+
}, a = L(e.is_show_field), o = L(!1), s = () => {
|
|
119
119
|
t("update:is_edit", o.value);
|
|
120
120
|
}, c = () => {
|
|
121
121
|
t("add");
|
|
122
|
-
}, l =
|
|
122
|
+
}, l = K(() => {
|
|
123
123
|
let r = a.value, o = [];
|
|
124
124
|
for (let t in e.field?.conditions) {
|
|
125
125
|
let n = e.field?.conditions[t], r = [];
|
|
@@ -141,8 +141,8 @@ var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "
|
|
|
141
141
|
add_key: e.field.name,
|
|
142
142
|
value: null
|
|
143
143
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
144
|
-
}, 300), f =
|
|
145
|
-
|
|
144
|
+
}, 300), f = L(""), p = L(e.label);
|
|
145
|
+
U(() => f.value, (n, r) => {
|
|
146
146
|
if (!De(n, r) && (t("update:value", n), e.field.name2)) {
|
|
147
147
|
let r;
|
|
148
148
|
if (e.field.type === "radio") r = e.options.find((t) => t[e.field.valueKey ? e.field.valueKey : "value"] == n)?.[e.field.labelKey ? e.field.labelKey : "label"];
|
|
@@ -166,30 +166,30 @@ var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "
|
|
|
166
166
|
value: r
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
}, { deep: !0 }),
|
|
169
|
+
}, { deep: !0 }), U(() => e.value, (t) => {
|
|
170
170
|
let n = t;
|
|
171
171
|
e.field.type === "rangepicker" && n ? n = r(n) : e.field.type === "input" && n && (n = n.toString().replace(/(^\s*)|(\s*$)/g, "")), a.value && (f.value = n);
|
|
172
|
-
}, { immediate: !0 }),
|
|
172
|
+
}, { immediate: !0 }), U(() => p.value, (n) => {
|
|
173
173
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
174
174
|
key: e.field.name2,
|
|
175
175
|
value: n.toString()
|
|
176
176
|
});
|
|
177
|
-
}, { deep: !0 }),
|
|
177
|
+
}, { deep: !0 }), U(() => e.label, (e) => {
|
|
178
178
|
p.value = e;
|
|
179
|
-
}),
|
|
179
|
+
}), U(() => e.formModel, (e) => {
|
|
180
180
|
n.value = { ...e };
|
|
181
|
-
}, { deep: !0 }),
|
|
181
|
+
}, { deep: !0 }), U(() => n.value, (t, n) => {
|
|
182
182
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
183
183
|
e.forEach((e) => {
|
|
184
184
|
n[e.watchKey] != t[e.watchKey] && l();
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
}, { deep: !0 }),
|
|
187
|
+
}, { deep: !0 }), U(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
188
188
|
e.field?.conditions && e.isUseConditions ? l() : (a.value = !0, t("update:is_show_field", a.value));
|
|
189
|
-
}),
|
|
189
|
+
}), xe(() => {
|
|
190
190
|
e.field?.conditions instanceof Array && e.field?.conditions.length > 0 ? l() : (a.value = !0, t("update:is_show_field", a.value)), a.value || (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name }));
|
|
191
191
|
});
|
|
192
|
-
let { t: m } =
|
|
192
|
+
let { t: m } = Je();
|
|
193
193
|
return {
|
|
194
194
|
t: m,
|
|
195
195
|
is_show_field: a,
|
|
@@ -202,30 +202,30 @@ var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "
|
|
|
202
202
|
};
|
|
203
203
|
},
|
|
204
204
|
components: {
|
|
205
|
-
IconSelect:
|
|
206
|
-
RichTextEditor:
|
|
207
|
-
Upload:
|
|
208
|
-
RemoteCascaderPro:
|
|
209
|
-
RemoteTreeSelectPro:
|
|
205
|
+
IconSelect: ce,
|
|
206
|
+
RichTextEditor: ae,
|
|
207
|
+
Upload: de,
|
|
208
|
+
RemoteCascaderPro: pe,
|
|
209
|
+
RemoteTreeSelectPro: oe,
|
|
210
210
|
RemoteSelectPro: x,
|
|
211
|
-
RemoteComplete:
|
|
212
|
-
AttributeTable:
|
|
213
|
-
AttributeNomTable:
|
|
214
|
-
RemoteFilterSelect:
|
|
211
|
+
RemoteComplete: le,
|
|
212
|
+
AttributeTable: te,
|
|
213
|
+
AttributeNomTable: S,
|
|
214
|
+
RemoteFilterSelect: ee,
|
|
215
215
|
RemoteModal: v,
|
|
216
216
|
RemoteSelect: i,
|
|
217
217
|
RemoteCascader: o,
|
|
218
218
|
RemoteTreeSelect: b,
|
|
219
219
|
RemoteTable: y,
|
|
220
|
-
JsonStr:
|
|
221
|
-
JsonObj:
|
|
222
|
-
RemoteText:
|
|
223
|
-
RemoteTablePro:
|
|
224
|
-
PlusOutlined:
|
|
225
|
-
MonthPicker:
|
|
226
|
-
MonthRangePicker:
|
|
227
|
-
CodeEditor:
|
|
228
|
-
TinymceEditor:
|
|
220
|
+
JsonStr: ne,
|
|
221
|
+
JsonObj: re,
|
|
222
|
+
RemoteText: ie,
|
|
223
|
+
RemoteTablePro: he,
|
|
224
|
+
PlusOutlined: ze,
|
|
225
|
+
MonthPicker: fe,
|
|
226
|
+
MonthRangePicker: ue,
|
|
227
|
+
CodeEditor: se,
|
|
228
|
+
TinymceEditor: me
|
|
229
229
|
}
|
|
230
230
|
}), nt = {
|
|
231
231
|
key: 0,
|
|
@@ -246,39 +246,39 @@ var Z = s(), Qe = (e, t = "YYYY-MM-DD") => q(e, t, !0).isValid(), $e = (e, t = "
|
|
|
246
246
|
margin: "0",
|
|
247
247
|
"font-weight": "bolder",
|
|
248
248
|
"font-size": "17px"
|
|
249
|
-
} },
|
|
249
|
+
} }, ct = { key: 0 }, lt = { key: 0 }, Q = { key: 0 }, ut = { key: 0 }, dt = { key: 0 }, ft = { key: 0 }, pt = { key: 0 }, mt = { key: 0 };
|
|
250
250
|
function ht(e, t, n, r, i, a) {
|
|
251
|
-
let o =
|
|
252
|
-
return
|
|
253
|
-
|
|
254
|
-
e.field.type === "kong" ? (
|
|
255
|
-
e.field.type === "tag" ? (
|
|
251
|
+
let o = z("a-tag"), s = z("a-rate"), c = z("a-input"), l = z("a-input-number"), u = z("a-select-option"), d = z("a-select"), f = z("a-cascader"), p = z("remote-cascader"), m = z("remote-cascader-pro"), h = z("month-picker"), g = z("a-date-picker"), _ = z("a-range-picker"), v = z("month-range-picker"), y = z("a-time-picker"), b = z("a-time-range-picker"), x = z("a-radio"), ee = z("a-radio-group"), S = z("a-checkbox"), te = z("a-checkbox-group"), ne = z("a-tree-select"), re = z("remote-filter-select"), ie = z("remote-select"), C = z("remote-select-pro"), ae = z("remote-complete"), oe = z("remote-tree-select"), se = z("remote-tree-select-pro"), ce = z("remote-modal"), le = z("remote-table"), ue = z("remote-text"), de = z("a-divider");
|
|
252
|
+
return F(), O(w, null, [e.field.type !== "divider" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (F(), O(w, { key: 0 }, [
|
|
253
|
+
we(e.$slots, "default", {}, void 0, !0),
|
|
254
|
+
e.field.type === "kong" ? (F(), O("div", nt)) : D("", !0),
|
|
255
|
+
e.field.type === "tag" ? (F(), O("div", rt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (F(), E(o, {
|
|
256
256
|
key: 0,
|
|
257
257
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
258
|
-
style:
|
|
258
|
+
style: P(e.field.style),
|
|
259
259
|
onClick: t[0] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
260
260
|
}, {
|
|
261
|
-
default:
|
|
261
|
+
default: W(() => [e.field.content ? (F(), O("span", it, V(e.field.content(e.field, e.model)), 1)) : (F(), O("span", at, V(e.model), 1))]),
|
|
262
262
|
_: 1
|
|
263
|
-
}, 8, ["color", "style"])) :
|
|
264
|
-
e.field.type === "kong_title" ? (
|
|
263
|
+
}, 8, ["color", "style"])) : D("", !0)])) : D("", !0),
|
|
264
|
+
e.field.type === "kong_title" ? (F(), O("div", {
|
|
265
265
|
key: 2,
|
|
266
|
-
style:
|
|
267
|
-
}, null, 4)) :
|
|
268
|
-
e.field.type === "title" ? (
|
|
269
|
-
e.field.type === "rate" ? (
|
|
266
|
+
style: P("height: " + e.field.height + "px")
|
|
267
|
+
}, null, 4)) : D("", !0),
|
|
268
|
+
e.field.type === "title" ? (F(), O("div", ot, [k("span", st, V(e.field.name), 1)])) : D("", !0),
|
|
269
|
+
e.field.type === "rate" ? (F(), E(s, {
|
|
270
270
|
key: 4,
|
|
271
271
|
value: e.model,
|
|
272
272
|
"onUpdate:value": t[1] ||= (t) => e.model = t,
|
|
273
273
|
disabled: e.field.disabled,
|
|
274
274
|
"allow-half": "",
|
|
275
|
-
style:
|
|
275
|
+
style: P(`width: ${e.field_width}px`)
|
|
276
276
|
}, null, 8, [
|
|
277
277
|
"value",
|
|
278
278
|
"disabled",
|
|
279
279
|
"style"
|
|
280
|
-
])) :
|
|
281
|
-
e.field.type === "input" ? (
|
|
280
|
+
])) : D("", !0),
|
|
281
|
+
e.field.type === "input" ? (F(), E(c, {
|
|
282
282
|
key: 5,
|
|
283
283
|
value: e.model,
|
|
284
284
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
@@ -290,26 +290,26 @@ function ht(e, t, n, r, i, a) {
|
|
|
290
290
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请输入") + e.field.label,
|
|
291
291
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
292
292
|
size: "small",
|
|
293
|
-
style:
|
|
294
|
-
},
|
|
293
|
+
style: P(`width: ${e.field_width}px`)
|
|
294
|
+
}, ge({ _: 2 }, [
|
|
295
295
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
296
296
|
name: "prefix",
|
|
297
|
-
fn:
|
|
297
|
+
fn: W(() => [e.field?.prefix ? (F(), O("span", ct, V(e.field.prefix), 1)) : D("", !0), e.field?.prefixIcon ? (F(), E(B(e.field?.prefixIcon), { key: 1 })) : D("", !0)]),
|
|
298
298
|
key: "0"
|
|
299
299
|
} : void 0,
|
|
300
300
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
301
301
|
name: "suffix",
|
|
302
|
-
fn:
|
|
302
|
+
fn: W(() => [e.field?.suffix ? (F(), O("span", lt, V(e.field.suffix), 1)) : D("", !0), e.field?.suffixIcon ? (F(), E(B(e.field?.suffixIcon), { key: 1 })) : D("", !0)]),
|
|
303
303
|
key: "1"
|
|
304
304
|
} : void 0,
|
|
305
305
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
306
306
|
name: "addonBefore",
|
|
307
|
-
fn:
|
|
307
|
+
fn: W(() => [e.field?.addonBefore ? (F(), O("span", Q, V(e.field.addonBefore), 1)) : D("", !0), e.field?.addonBeforeIcon ? (F(), E(B(e.field?.addonBeforeIcon), { key: 1 })) : D("", !0)]),
|
|
308
308
|
key: "2"
|
|
309
309
|
} : void 0,
|
|
310
310
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
311
311
|
name: "addonAfter",
|
|
312
|
-
fn:
|
|
312
|
+
fn: W(() => [e.field?.addonAfter ? (F(), O("span", ut, V(e.field.addonAfter), 1)) : D("", !0), e.field?.addonAfterIcon ? (F(), E(B(e.field?.addonAfterIcon), { key: 1 })) : D("", !0)]),
|
|
313
313
|
key: "3"
|
|
314
314
|
} : void 0
|
|
315
315
|
]), 1032, [
|
|
@@ -322,8 +322,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
322
322
|
"placeholder",
|
|
323
323
|
"type",
|
|
324
324
|
"style"
|
|
325
|
-
])) :
|
|
326
|
-
e.field.type === "money" ? (
|
|
325
|
+
])) : D("", !0),
|
|
326
|
+
e.field.type === "money" ? (F(), E(l, {
|
|
327
327
|
key: 6,
|
|
328
328
|
size: "small",
|
|
329
329
|
value: e.model,
|
|
@@ -337,7 +337,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
337
337
|
precision: e.field.precision,
|
|
338
338
|
step: e.field.step,
|
|
339
339
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder : e.t(e.field.placeholder_i18n),
|
|
340
|
-
style:
|
|
340
|
+
style: P(`width: ${e.field_width}px`)
|
|
341
341
|
}, null, 8, [
|
|
342
342
|
"value",
|
|
343
343
|
"autocomplete",
|
|
@@ -350,8 +350,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
350
350
|
"step",
|
|
351
351
|
"placeholder",
|
|
352
352
|
"style"
|
|
353
|
-
])) :
|
|
354
|
-
e.field.type === "number" ? (
|
|
353
|
+
])) : D("", !0),
|
|
354
|
+
e.field.type === "number" ? (F(), E(l, {
|
|
355
355
|
key: 7,
|
|
356
356
|
value: e.model,
|
|
357
357
|
"onUpdate:value": t[4] ||= (t) => e.model = t,
|
|
@@ -365,26 +365,26 @@ function ht(e, t, n, r, i, a) {
|
|
|
365
365
|
precision: e.field.precision,
|
|
366
366
|
step: e.field.step,
|
|
367
367
|
size: "small",
|
|
368
|
-
style:
|
|
369
|
-
},
|
|
368
|
+
style: P(`width: ${e.field_width}px`)
|
|
369
|
+
}, ge({ _: 2 }, [
|
|
370
370
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
371
371
|
name: "prefix",
|
|
372
|
-
fn:
|
|
372
|
+
fn: W(() => [e.field?.prefix ? (F(), O("span", dt, V(e.field.prefix), 1)) : D("", !0), e.field?.prefixIcon ? (F(), E(B(e.field?.prefixIcon), { key: 1 })) : D("", !0)]),
|
|
373
373
|
key: "0"
|
|
374
374
|
} : void 0,
|
|
375
375
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
376
376
|
name: "suffix",
|
|
377
|
-
fn:
|
|
377
|
+
fn: W(() => [e.field?.suffix ? (F(), O("span", ft, V(e.field.suffix), 1)) : D("", !0), e.field?.suffixIcon ? (F(), E(B(e.field?.suffixIcon), { key: 1 })) : D("", !0)]),
|
|
378
378
|
key: "1"
|
|
379
379
|
} : void 0,
|
|
380
380
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
381
381
|
name: "addonBefore",
|
|
382
|
-
fn:
|
|
382
|
+
fn: W(() => [e.field?.addonBefore ? (F(), O("span", pt, V(e.field.addonBefore), 1)) : D("", !0), e.field?.addonBeforeIcon ? (F(), E(B(e.field?.addonBeforeIcon), { key: 1 })) : D("", !0)]),
|
|
383
383
|
key: "2"
|
|
384
384
|
} : void 0,
|
|
385
385
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
386
386
|
name: "addonAfter",
|
|
387
|
-
fn:
|
|
387
|
+
fn: W(() => [e.field?.addonAfter ? (F(), O("span", mt, V(e.field.addonAfter), 1)) : D("", !0), e.field?.addonAfterIcon ? (F(), E(B(e.field?.addonAfterIcon), { key: 1 })) : D("", !0)]),
|
|
388
388
|
key: "3"
|
|
389
389
|
} : void 0
|
|
390
390
|
]), 1032, [
|
|
@@ -399,8 +399,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
399
399
|
"precision",
|
|
400
400
|
"step",
|
|
401
401
|
"style"
|
|
402
|
-
])) :
|
|
403
|
-
e.field.type === "select" ? (
|
|
402
|
+
])) : D("", !0),
|
|
403
|
+
e.field.type === "select" ? (F(), O(w, { key: 8 }, [e.field.mode === "default" ? (F(), E(d, {
|
|
404
404
|
key: 0,
|
|
405
405
|
value: e.model,
|
|
406
406
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -413,13 +413,13 @@ function ht(e, t, n, r, i, a) {
|
|
|
413
413
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
414
414
|
"show-search": !!e.field.show_search,
|
|
415
415
|
size: "small",
|
|
416
|
-
style:
|
|
416
|
+
style: P(`width: ${e.field_width}px`)
|
|
417
417
|
}, {
|
|
418
|
-
default:
|
|
418
|
+
default: W(() => [(F(!0), O(w, null, R(e.options, (t) => (F(), E(u, {
|
|
419
419
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
420
420
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
421
421
|
}, {
|
|
422
|
-
default:
|
|
422
|
+
default: W(() => [A(V(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
423
423
|
_: 2
|
|
424
424
|
}, 1032, ["value"]))), 128))]),
|
|
425
425
|
_: 1
|
|
@@ -433,7 +433,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
433
433
|
"placeholder",
|
|
434
434
|
"show-search",
|
|
435
435
|
"style"
|
|
436
|
-
])) : (
|
|
436
|
+
])) : (F(), E(d, {
|
|
437
437
|
key: 1,
|
|
438
438
|
value: e.model,
|
|
439
439
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -446,13 +446,13 @@ function ht(e, t, n, r, i, a) {
|
|
|
446
446
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
447
447
|
"show-search": !!e.field.show_search,
|
|
448
448
|
size: "small",
|
|
449
|
-
style:
|
|
449
|
+
style: P(`width: ${e.field_width}px`)
|
|
450
450
|
}, {
|
|
451
|
-
default:
|
|
451
|
+
default: W(() => [(F(!0), O(w, null, R(e.options, (t, n) => (F(), E(u, {
|
|
452
452
|
key: n,
|
|
453
453
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
454
454
|
}, {
|
|
455
|
-
default:
|
|
455
|
+
default: W(() => [A(V(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
456
456
|
_: 2
|
|
457
457
|
}, 1032, ["value"]))), 128))]),
|
|
458
458
|
_: 1
|
|
@@ -466,8 +466,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
466
466
|
"placeholder",
|
|
467
467
|
"show-search",
|
|
468
468
|
"style"
|
|
469
|
-
]))], 64)) :
|
|
470
|
-
e.field.type === "groupselect" ? (
|
|
469
|
+
]))], 64)) : D("", !0),
|
|
470
|
+
e.field.type === "groupselect" ? (F(), O(w, { key: 9 }, [e.field.mode === "default" ? (F(), E(d, {
|
|
471
471
|
key: 0,
|
|
472
472
|
value: e.model,
|
|
473
473
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -483,7 +483,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
483
483
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
484
484
|
"show-search": !!e.field.show_search,
|
|
485
485
|
size: "small",
|
|
486
|
-
style:
|
|
486
|
+
style: P(`width: ${e.field_width}px`)
|
|
487
487
|
}, null, 8, [
|
|
488
488
|
"value",
|
|
489
489
|
"allow-clear",
|
|
@@ -497,7 +497,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
497
497
|
"placeholder",
|
|
498
498
|
"show-search",
|
|
499
499
|
"style"
|
|
500
|
-
])) : (
|
|
500
|
+
])) : (F(), E(d, {
|
|
501
501
|
key: 1,
|
|
502
502
|
value: e.model,
|
|
503
503
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -513,7 +513,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
513
513
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
514
514
|
"show-search": !!e.field.show_search,
|
|
515
515
|
size: "small",
|
|
516
|
-
style:
|
|
516
|
+
style: P(`width: ${e.field_width}px`)
|
|
517
517
|
}, null, 8, [
|
|
518
518
|
"value",
|
|
519
519
|
"allow-clear",
|
|
@@ -527,8 +527,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
527
527
|
"placeholder",
|
|
528
528
|
"show-search",
|
|
529
529
|
"style"
|
|
530
|
-
]))], 64)) :
|
|
531
|
-
e.field.type === "cascader" ? (
|
|
530
|
+
]))], 64)) : D("", !0),
|
|
531
|
+
e.field.type === "cascader" ? (F(), E(f, {
|
|
532
532
|
key: 10,
|
|
533
533
|
value: e.model,
|
|
534
534
|
"onUpdate:value": t[9] ||= (t) => e.model = t,
|
|
@@ -541,7 +541,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
541
541
|
options: e.field.getOptionsData ? e.field.getOptionsData(e.options, e.model) : e.options,
|
|
542
542
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
543
543
|
size: "small",
|
|
544
|
-
style:
|
|
544
|
+
style: P(`width: ${e.field_width}px`)
|
|
545
545
|
}, null, 8, [
|
|
546
546
|
"value",
|
|
547
547
|
"allow-clear",
|
|
@@ -553,8 +553,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
553
553
|
"options",
|
|
554
554
|
"placeholder",
|
|
555
555
|
"style"
|
|
556
|
-
])) :
|
|
557
|
-
e.field.type === "remotecascader" ? (
|
|
556
|
+
])) : D("", !0),
|
|
557
|
+
e.field.type === "remotecascader" ? (F(), E(p, {
|
|
558
558
|
key: 11,
|
|
559
559
|
value: e.model,
|
|
560
560
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -568,7 +568,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
568
568
|
"label-space": e.field.labelSpace,
|
|
569
569
|
search_config: e.field.search_config,
|
|
570
570
|
"value-key": e.field.valueKey,
|
|
571
|
-
style:
|
|
571
|
+
style: P(`width: ${e.field_width}px`)
|
|
572
572
|
}, null, 8, [
|
|
573
573
|
"value",
|
|
574
574
|
"label",
|
|
@@ -581,8 +581,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
581
581
|
"search_config",
|
|
582
582
|
"value-key",
|
|
583
583
|
"style"
|
|
584
|
-
])) :
|
|
585
|
-
e.field.type === "remotecascaderpro" ? (
|
|
584
|
+
])) : D("", !0),
|
|
585
|
+
e.field.type === "remotecascaderpro" ? (F(), E(m, {
|
|
586
586
|
key: 12,
|
|
587
587
|
label: e.labelModel,
|
|
588
588
|
"onUpdate:label": t[12] ||= (t) => e.labelModel = t,
|
|
@@ -607,7 +607,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
607
607
|
init_watch: e.field.init_watch,
|
|
608
608
|
is_form_design: e.is_form_design,
|
|
609
609
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
610
|
-
style:
|
|
610
|
+
style: P(`width: ${e.field_width}px`)
|
|
611
611
|
}, null, 8, [
|
|
612
612
|
"label",
|
|
613
613
|
"value",
|
|
@@ -631,8 +631,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
631
631
|
"is_form_design",
|
|
632
632
|
"placeholder",
|
|
633
633
|
"style"
|
|
634
|
-
])) :
|
|
635
|
-
e.field.type === "monthpicker" ? (
|
|
634
|
+
])) : D("", !0),
|
|
635
|
+
e.field.type === "monthpicker" ? (F(), E(h, {
|
|
636
636
|
key: 13,
|
|
637
637
|
value: e.model,
|
|
638
638
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -647,7 +647,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
647
647
|
start_offset_day: e.field.start_offset_day,
|
|
648
648
|
end_offset_day: e.field.end_offset_day,
|
|
649
649
|
fix_day: e.field.fix_day,
|
|
650
|
-
style:
|
|
650
|
+
style: P(`width: ${e.field_width}px`)
|
|
651
651
|
}, null, 8, [
|
|
652
652
|
"value",
|
|
653
653
|
"allow-clear",
|
|
@@ -661,8 +661,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
661
661
|
"end_offset_day",
|
|
662
662
|
"fix_day",
|
|
663
663
|
"style"
|
|
664
|
-
])) :
|
|
665
|
-
e.field.type === "datepicker" ? (
|
|
664
|
+
])) : D("", !0),
|
|
665
|
+
e.field.type === "datepicker" ? (F(), E(g, {
|
|
666
666
|
key: 14,
|
|
667
667
|
value: e.model,
|
|
668
668
|
"onUpdate:value": t[15] ||= (t) => e.model = t,
|
|
@@ -676,7 +676,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
676
676
|
"show-time": e.field.showTime,
|
|
677
677
|
"value-format": e.field.valueFormat,
|
|
678
678
|
size: "small",
|
|
679
|
-
style:
|
|
679
|
+
style: P(`width: ${e.field_width}px`)
|
|
680
680
|
}, null, 8, [
|
|
681
681
|
"value",
|
|
682
682
|
"allow-clear",
|
|
@@ -689,8 +689,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
689
689
|
"show-time",
|
|
690
690
|
"value-format",
|
|
691
691
|
"style"
|
|
692
|
-
])) :
|
|
693
|
-
e.field.type === "rangepicker" ? (
|
|
692
|
+
])) : D("", !0),
|
|
693
|
+
e.field.type === "rangepicker" ? (F(), E(_, {
|
|
694
694
|
key: 15,
|
|
695
695
|
value: e.model,
|
|
696
696
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -703,7 +703,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
703
703
|
"value-format": e.field.valueFormat,
|
|
704
704
|
picker: e.field.picker ? e.field.picker : "date",
|
|
705
705
|
size: "small",
|
|
706
|
-
style:
|
|
706
|
+
style: P(`width: ${e.field_width}px`)
|
|
707
707
|
}, null, 8, [
|
|
708
708
|
"value",
|
|
709
709
|
"allow-clear",
|
|
@@ -715,8 +715,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
715
715
|
"value-format",
|
|
716
716
|
"picker",
|
|
717
717
|
"style"
|
|
718
|
-
])) :
|
|
719
|
-
e.field.type === "monthrangepicker" ? (
|
|
718
|
+
])) : D("", !0),
|
|
719
|
+
e.field.type === "monthrangepicker" ? (F(), E(v, {
|
|
720
720
|
key: 16,
|
|
721
721
|
value: e.model,
|
|
722
722
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -730,7 +730,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
730
730
|
start_offset_day: e.field.start_offset_day,
|
|
731
731
|
end_offset_day: e.field.end_offset_day,
|
|
732
732
|
fix_day: e.field.fix_day,
|
|
733
|
-
style:
|
|
733
|
+
style: P(`width: ${e.field_width}px`)
|
|
734
734
|
}, null, 8, [
|
|
735
735
|
"value",
|
|
736
736
|
"allow-clear",
|
|
@@ -743,8 +743,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
743
743
|
"end_offset_day",
|
|
744
744
|
"fix_day",
|
|
745
745
|
"style"
|
|
746
|
-
])) :
|
|
747
|
-
e.field.type === "timepicker" ? (
|
|
746
|
+
])) : D("", !0),
|
|
747
|
+
e.field.type === "timepicker" ? (F(), E(y, {
|
|
748
748
|
key: 17,
|
|
749
749
|
value: e.model,
|
|
750
750
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -755,7 +755,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
755
755
|
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
756
756
|
"value-format": e.field.valueFormat ? e.field.valueFormat : "HH:mm",
|
|
757
757
|
size: "small",
|
|
758
|
-
style:
|
|
758
|
+
style: P(`width: ${e.field_width}px`)
|
|
759
759
|
}, null, 8, [
|
|
760
760
|
"value",
|
|
761
761
|
"allow-clear",
|
|
@@ -765,8 +765,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
765
765
|
"placeholder",
|
|
766
766
|
"value-format",
|
|
767
767
|
"style"
|
|
768
|
-
])) :
|
|
769
|
-
e.field.type === "timerangepicker" ? (
|
|
768
|
+
])) : D("", !0),
|
|
769
|
+
e.field.type === "timerangepicker" ? (F(), E(b, {
|
|
770
770
|
key: 18,
|
|
771
771
|
value: e.model,
|
|
772
772
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -777,7 +777,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
777
777
|
placeholder: e.field.placeholder && e.isArray(e.field.placeholder) && e.field.placeholder.length > 0 ? e.field.placeholder : [e.$t("开始时间"), e.$t("结束时间")],
|
|
778
778
|
"value-format": e.field.valueFormat ? e.field.valueFormat : "HH:mm",
|
|
779
779
|
size: "small",
|
|
780
|
-
style:
|
|
780
|
+
style: P(`width: ${e.field_width}px`)
|
|
781
781
|
}, null, 8, [
|
|
782
782
|
"value",
|
|
783
783
|
"allow-clear",
|
|
@@ -787,22 +787,22 @@ function ht(e, t, n, r, i, a) {
|
|
|
787
787
|
"placeholder",
|
|
788
788
|
"value-format",
|
|
789
789
|
"style"
|
|
790
|
-
])) :
|
|
791
|
-
e.field.type === "radio" ? (
|
|
790
|
+
])) : D("", !0),
|
|
791
|
+
e.field.type === "radio" ? (F(), E(ee, {
|
|
792
792
|
key: 19,
|
|
793
793
|
value: e.model,
|
|
794
794
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
795
795
|
"default-value": e.field.defaultValue,
|
|
796
796
|
disabled: e.field.disabled,
|
|
797
797
|
size: "small",
|
|
798
|
-
style:
|
|
798
|
+
style: P(`width: ${e.field_width}px`)
|
|
799
799
|
}, {
|
|
800
|
-
default:
|
|
800
|
+
default: W(() => [(F(!0), O(w, null, R(e.options, (t) => (F(), E(x, {
|
|
801
801
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
802
802
|
disabled: t.disabled,
|
|
803
803
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
804
804
|
}, {
|
|
805
|
-
default:
|
|
805
|
+
default: W(() => [A(V(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
806
806
|
_: 2
|
|
807
807
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
808
808
|
_: 1
|
|
@@ -811,22 +811,22 @@ function ht(e, t, n, r, i, a) {
|
|
|
811
811
|
"default-value",
|
|
812
812
|
"disabled",
|
|
813
813
|
"style"
|
|
814
|
-
])) :
|
|
815
|
-
e.field.type === "checkbox" ? (
|
|
814
|
+
])) : D("", !0),
|
|
815
|
+
e.field.type === "checkbox" ? (F(), E(te, {
|
|
816
816
|
key: 20,
|
|
817
817
|
value: e.model,
|
|
818
818
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
819
819
|
"default-value": e.field.defaultValue,
|
|
820
820
|
disabled: e.field.disabled,
|
|
821
821
|
size: "small",
|
|
822
|
-
style:
|
|
822
|
+
style: P(`width: ${e.field_width}px`)
|
|
823
823
|
}, {
|
|
824
|
-
default:
|
|
824
|
+
default: W(() => [(F(!0), O(w, null, R(e.options, (t) => (F(), E(S, {
|
|
825
825
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
826
826
|
disabled: t.disabled,
|
|
827
827
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
828
828
|
}, {
|
|
829
|
-
default:
|
|
829
|
+
default: W(() => [A(V(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
830
830
|
_: 2
|
|
831
831
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
832
832
|
_: 1
|
|
@@ -835,8 +835,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
835
835
|
"default-value",
|
|
836
836
|
"disabled",
|
|
837
837
|
"style"
|
|
838
|
-
])) :
|
|
839
|
-
e.field.type === "treeselect" ? (
|
|
838
|
+
])) : D("", !0),
|
|
839
|
+
e.field.type === "treeselect" ? (F(), E(ne, {
|
|
840
840
|
key: 21,
|
|
841
841
|
value: e.model,
|
|
842
842
|
"onUpdate:value": t[22] ||= (t) => e.model = t,
|
|
@@ -851,7 +851,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
851
851
|
"tree-label-prop": e.field.labelKey,
|
|
852
852
|
"tree-node-filter-prop": e.field.valueKey,
|
|
853
853
|
size: "small",
|
|
854
|
-
style:
|
|
854
|
+
style: P(`width: ${e.field_width}px`)
|
|
855
855
|
}, null, 8, [
|
|
856
856
|
"value",
|
|
857
857
|
"allow-clear",
|
|
@@ -864,8 +864,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
864
864
|
"tree-label-prop",
|
|
865
865
|
"tree-node-filter-prop",
|
|
866
866
|
"style"
|
|
867
|
-
])) :
|
|
868
|
-
e.field.type === "remotefilterselect" ? (
|
|
867
|
+
])) : D("", !0),
|
|
868
|
+
e.field.type === "remotefilterselect" ? (F(), E(re, {
|
|
869
869
|
key: 22,
|
|
870
870
|
label: e.labelModel,
|
|
871
871
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -880,7 +880,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
880
880
|
"label-space": e.field.labelSpace,
|
|
881
881
|
search_config: e.field.search_config,
|
|
882
882
|
"value-key": e.field.valueKey,
|
|
883
|
-
style:
|
|
883
|
+
style: P(`width: ${e.field_width}px`)
|
|
884
884
|
}, null, 8, [
|
|
885
885
|
"label",
|
|
886
886
|
"value",
|
|
@@ -894,8 +894,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
894
894
|
"search_config",
|
|
895
895
|
"value-key",
|
|
896
896
|
"style"
|
|
897
|
-
])) :
|
|
898
|
-
e.field.type === "remoteselect" ? (
|
|
897
|
+
])) : D("", !0),
|
|
898
|
+
e.field.type === "remoteselect" ? (F(), E(ie, {
|
|
899
899
|
key: 23,
|
|
900
900
|
label: e.labelModel,
|
|
901
901
|
"onUpdate:label": t[25] ||= (t) => e.labelModel = t,
|
|
@@ -910,7 +910,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
910
910
|
"label-space": e.field.labelSpace,
|
|
911
911
|
search_config: e.field.search_config,
|
|
912
912
|
"value-key": e.field.valueKey,
|
|
913
|
-
style:
|
|
913
|
+
style: P(`width: ${e.field_width}px`)
|
|
914
914
|
}, null, 8, [
|
|
915
915
|
"label",
|
|
916
916
|
"value",
|
|
@@ -924,8 +924,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
924
924
|
"search_config",
|
|
925
925
|
"value-key",
|
|
926
926
|
"style"
|
|
927
|
-
])) :
|
|
928
|
-
e.field.type === "remoteselectpro" ? (
|
|
927
|
+
])) : D("", !0),
|
|
928
|
+
e.field.type === "remoteselectpro" ? (F(), E(C, {
|
|
929
929
|
key: 24,
|
|
930
930
|
label: e.labelModel,
|
|
931
931
|
"onUpdate:label": t[27] ||= (t) => e.labelModel = t,
|
|
@@ -946,7 +946,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
946
946
|
is_input: e.field.is_input,
|
|
947
947
|
is_form_design: e.is_form_design,
|
|
948
948
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
949
|
-
style:
|
|
949
|
+
style: P(`width: ${e.field_width}px`)
|
|
950
950
|
}, null, 8, [
|
|
951
951
|
"label",
|
|
952
952
|
"value",
|
|
@@ -966,8 +966,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
966
966
|
"is_form_design",
|
|
967
967
|
"placeholder",
|
|
968
968
|
"style"
|
|
969
|
-
])) :
|
|
970
|
-
e.field.type === "remotecomplete" ? (
|
|
969
|
+
])) : D("", !0),
|
|
970
|
+
e.field.type === "remotecomplete" ? (F(), E(ae, {
|
|
971
971
|
key: 25,
|
|
972
972
|
value: e.model,
|
|
973
973
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -987,7 +987,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
987
987
|
is_input: e.field.is_input,
|
|
988
988
|
is_form_design: e.is_form_design,
|
|
989
989
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
990
|
-
style:
|
|
990
|
+
style: P(`width: ${e.field_width}px`)
|
|
991
991
|
}, null, 8, [
|
|
992
992
|
"value",
|
|
993
993
|
"field",
|
|
@@ -1007,8 +1007,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
1007
1007
|
"is_form_design",
|
|
1008
1008
|
"placeholder",
|
|
1009
1009
|
"style"
|
|
1010
|
-
])) :
|
|
1011
|
-
e.field.type === "remotetreeselect" ? (
|
|
1010
|
+
])) : D("", !0),
|
|
1011
|
+
e.field.type === "remotetreeselect" ? (F(), E(oe, {
|
|
1012
1012
|
key: 26,
|
|
1013
1013
|
label: e.labelModel,
|
|
1014
1014
|
"onUpdate:label": t[30] ||= (t) => e.labelModel = t,
|
|
@@ -1023,7 +1023,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
1023
1023
|
"label-key": e.field.labelKey,
|
|
1024
1024
|
search_config: e.field.search_config,
|
|
1025
1025
|
"value-key": e.field.valueKey,
|
|
1026
|
-
style:
|
|
1026
|
+
style: P(`width: ${e.field_width}px`)
|
|
1027
1027
|
}, null, 8, [
|
|
1028
1028
|
"label",
|
|
1029
1029
|
"value",
|
|
@@ -1037,8 +1037,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
1037
1037
|
"search_config",
|
|
1038
1038
|
"value-key",
|
|
1039
1039
|
"style"
|
|
1040
|
-
])) :
|
|
1041
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
1040
|
+
])) : D("", !0),
|
|
1041
|
+
e.field.type === "remotetreeselectpro" ? (F(), E(se, {
|
|
1042
1042
|
key: 27,
|
|
1043
1043
|
label: e.labelModel,
|
|
1044
1044
|
"onUpdate:label": t[32] ||= (t) => e.labelModel = t,
|
|
@@ -1062,7 +1062,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
1062
1062
|
init_watch: e.field.init_watch,
|
|
1063
1063
|
is_form_design: e.is_form_design,
|
|
1064
1064
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n),
|
|
1065
|
-
style:
|
|
1065
|
+
style: P(`width: ${e.field_width}px`)
|
|
1066
1066
|
}, null, 8, [
|
|
1067
1067
|
"label",
|
|
1068
1068
|
"value",
|
|
@@ -1085,8 +1085,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
1085
1085
|
"is_form_design",
|
|
1086
1086
|
"placeholder",
|
|
1087
1087
|
"style"
|
|
1088
|
-
])) :
|
|
1089
|
-
e.field.type === "remotemodal" ? (
|
|
1088
|
+
])) : D("", !0),
|
|
1089
|
+
e.field.type === "remotemodal" ? (F(), E(ce, {
|
|
1090
1090
|
key: 28,
|
|
1091
1091
|
label: e.labelModel,
|
|
1092
1092
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -1100,7 +1100,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
1100
1100
|
modalType: e.field.modalType,
|
|
1101
1101
|
search_config: e.field.search_config,
|
|
1102
1102
|
watch: e.field.watch,
|
|
1103
|
-
style:
|
|
1103
|
+
style: P(`width: ${e.field_width}px`)
|
|
1104
1104
|
}, null, 8, [
|
|
1105
1105
|
"label",
|
|
1106
1106
|
"value",
|
|
@@ -1113,8 +1113,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
1113
1113
|
"search_config",
|
|
1114
1114
|
"watch",
|
|
1115
1115
|
"style"
|
|
1116
|
-
])) :
|
|
1117
|
-
e.field.type === "remotetable" ? (
|
|
1116
|
+
])) : D("", !0),
|
|
1117
|
+
e.field.type === "remotetable" ? (F(), E(le, {
|
|
1118
1118
|
key: 29,
|
|
1119
1119
|
value: e.model,
|
|
1120
1120
|
"onUpdate:value": t[36] ||= (t) => e.model = t,
|
|
@@ -1127,7 +1127,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
1127
1127
|
modalType: e.field.modalType,
|
|
1128
1128
|
search_config: e.field.search_config,
|
|
1129
1129
|
watch: e.field.watch,
|
|
1130
|
-
style:
|
|
1130
|
+
style: P(`width: ${e.field_width}px`)
|
|
1131
1131
|
}, null, 8, [
|
|
1132
1132
|
"value",
|
|
1133
1133
|
"columns",
|
|
@@ -1140,8 +1140,8 @@ function ht(e, t, n, r, i, a) {
|
|
|
1140
1140
|
"search_config",
|
|
1141
1141
|
"watch",
|
|
1142
1142
|
"style"
|
|
1143
|
-
])) :
|
|
1144
|
-
e.field.type === "remotetext" ? (
|
|
1143
|
+
])) : D("", !0),
|
|
1144
|
+
e.field.type === "remotetext" ? (F(), E(ue, {
|
|
1145
1145
|
key: 30,
|
|
1146
1146
|
value: e.model,
|
|
1147
1147
|
"onUpdate:value": t[37] ||= (t) => e.model = t,
|
|
@@ -1163,35 +1163,35 @@ function ht(e, t, n, r, i, a) {
|
|
|
1163
1163
|
"modalType",
|
|
1164
1164
|
"search_config",
|
|
1165
1165
|
"watch"
|
|
1166
|
-
])) :
|
|
1167
|
-
e.field.type === "rate" ? (
|
|
1166
|
+
])) : D("", !0),
|
|
1167
|
+
e.field.type === "rate" ? (F(), E(s, {
|
|
1168
1168
|
key: 31,
|
|
1169
1169
|
value: e.model,
|
|
1170
1170
|
"onUpdate:value": t[38] ||= (t) => e.model = t,
|
|
1171
1171
|
count: e.field.count ? e.field.count : 5,
|
|
1172
1172
|
"allow-half": e.field.allowHalf,
|
|
1173
|
-
style:
|
|
1173
|
+
style: P(`width: ${e.field_width}px`)
|
|
1174
1174
|
}, null, 8, [
|
|
1175
1175
|
"value",
|
|
1176
1176
|
"count",
|
|
1177
1177
|
"allow-half",
|
|
1178
1178
|
"style"
|
|
1179
|
-
])) :
|
|
1180
|
-
e.field.type === "radio-color" ? (
|
|
1179
|
+
])) : D("", !0),
|
|
1180
|
+
e.field.type === "radio-color" ? (F(), E(ee, {
|
|
1181
1181
|
key: 32,
|
|
1182
1182
|
value: e.model,
|
|
1183
1183
|
"onUpdate:value": t[39] ||= (t) => e.model = t,
|
|
1184
1184
|
"default-value": e.field.defaultValue,
|
|
1185
1185
|
disabled: e.field.disabled,
|
|
1186
1186
|
size: "small",
|
|
1187
|
-
style:
|
|
1187
|
+
style: P(`width: ${e.field_width}px`)
|
|
1188
1188
|
}, {
|
|
1189
|
-
default:
|
|
1189
|
+
default: W(() => [(F(!0), O(w, null, R(e.options, (t) => (F(), E(x, {
|
|
1190
1190
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1191
1191
|
disabled: t.disabled,
|
|
1192
1192
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1193
1193
|
}, {
|
|
1194
|
-
default:
|
|
1194
|
+
default: W(() => [k("div", { style: P({
|
|
1195
1195
|
width: "20px",
|
|
1196
1196
|
height: "20px",
|
|
1197
1197
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -1204,14 +1204,14 @@ function ht(e, t, n, r, i, a) {
|
|
|
1204
1204
|
"default-value",
|
|
1205
1205
|
"disabled",
|
|
1206
1206
|
"style"
|
|
1207
|
-
])) :
|
|
1208
|
-
], 64)) :
|
|
1207
|
+
])) : D("", !0)
|
|
1208
|
+
], 64)) : D("", !0), e.field.type === "divider" ? (F(), E(de, {
|
|
1209
1209
|
key: 1,
|
|
1210
1210
|
orientation: e.field.orientation
|
|
1211
1211
|
}, {
|
|
1212
|
-
default:
|
|
1212
|
+
default: W(() => [A(V(e.field.label), 1)]),
|
|
1213
1213
|
_: 1
|
|
1214
|
-
}, 8, ["orientation"])) :
|
|
1214
|
+
}, 8, ["orientation"])) : D("", !0)], 64);
|
|
1215
1215
|
}
|
|
1216
1216
|
var $ = /* @__PURE__ */ a(tt, [["render", ht], ["__scopeId", "data-v-168ff853"]]);
|
|
1217
1217
|
//#endregion
|
|
@@ -1250,7 +1250,7 @@ function wt(e, t) {
|
|
|
1250
1250
|
//#endregion
|
|
1251
1251
|
//#region src/utils/hooks/useFullscreen.ts
|
|
1252
1252
|
var Tt = (e) => {
|
|
1253
|
-
let { onExitFull: t, onFull: n } = e || {}, r =
|
|
1253
|
+
let { onExitFull: t, onFull: n } = e || {}, r = L(null), i = L(t), a = L(n), o = L(!1), s = () => {
|
|
1254
1254
|
if (X.isEnabled) {
|
|
1255
1255
|
let { isFullscreen: e } = X;
|
|
1256
1256
|
e ? a.value && a.value() : (X.off("change", s), i.value && i.value()), o.value = e;
|
|
@@ -1261,7 +1261,7 @@ var Tt = (e) => {
|
|
|
1261
1261
|
}, l = () => {
|
|
1262
1262
|
o.value && X.isEnabled && X.exit();
|
|
1263
1263
|
};
|
|
1264
|
-
return
|
|
1264
|
+
return Se(() => {
|
|
1265
1265
|
X.isEnabled && X.off("change", s);
|
|
1266
1266
|
}), [
|
|
1267
1267
|
r,
|
|
@@ -1316,7 +1316,7 @@ var Tt = (e) => {
|
|
|
1316
1316
|
json_list_is_blank_is_null: 1,
|
|
1317
1317
|
is_or_not_blank_or_null: 1,
|
|
1318
1318
|
is_or_not_null: 1
|
|
1319
|
-
}, kt = (e, t) => Ot[e], At = Symbol("tableProState"), jt = () =>
|
|
1319
|
+
}, kt = (e, t) => Ot[e], At = Symbol("tableProState"), jt = () => _e(At), Mt = async (e) => {
|
|
1320
1320
|
let r = t().userid, i = await xt({
|
|
1321
1321
|
user_id: r,
|
|
1322
1322
|
view_project__flag: n().VITE_APP_VIEW_PROJECT_FLAG,
|
|
@@ -1334,7 +1334,7 @@ var Tt = (e) => {
|
|
|
1334
1334
|
data: t
|
|
1335
1335
|
};
|
|
1336
1336
|
});
|
|
1337
|
-
}, Nt =
|
|
1337
|
+
}, Nt = M({
|
|
1338
1338
|
name: "searchSummary",
|
|
1339
1339
|
props: {
|
|
1340
1340
|
searchConfig: {
|
|
@@ -1356,7 +1356,7 @@ var Tt = (e) => {
|
|
|
1356
1356
|
},
|
|
1357
1357
|
emits: ["update:searchConditions"],
|
|
1358
1358
|
setup(e, { emit: t }) {
|
|
1359
|
-
let { t: n } =
|
|
1359
|
+
let { t: n } = Je(), r = (t, r, i) => {
|
|
1360
1360
|
let a = [], o;
|
|
1361
1361
|
if (r === "is_or_not_blank_or_null" || r === "is_or_not_null") return n(i === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
|
|
1362
1362
|
if (r === "_eq") {
|
|
@@ -1386,7 +1386,7 @@ var Tt = (e) => {
|
|
|
1386
1386
|
else return i;
|
|
1387
1387
|
};
|
|
1388
1388
|
return {
|
|
1389
|
-
dataSource:
|
|
1389
|
+
dataSource: T(() => {
|
|
1390
1390
|
let t = {};
|
|
1391
1391
|
for (let n of e.searchConditions) t[n.field_name] = {
|
|
1392
1392
|
value: n.value,
|
|
@@ -1414,25 +1414,25 @@ var Tt = (e) => {
|
|
|
1414
1414
|
components: {}
|
|
1415
1415
|
}), Pt = { class: "search-summary" };
|
|
1416
1416
|
function Ft(e, t, n, r, i, a) {
|
|
1417
|
-
let o =
|
|
1418
|
-
return
|
|
1417
|
+
let o = z("a-tag"), s = z("RedoOutlined"), c = z("a-button");
|
|
1418
|
+
return F(), O("span", Pt, [(F(!0), O(w, null, R(e.dataSource, (t) => (F(), E(o, {
|
|
1419
1419
|
key: t.field_name,
|
|
1420
1420
|
color: "green",
|
|
1421
1421
|
closable: "",
|
|
1422
1422
|
onClose: (n) => e.handleClose(t.field_name)
|
|
1423
1423
|
}, {
|
|
1424
|
-
default:
|
|
1424
|
+
default: W(() => [A(V(t.summary), 1)]),
|
|
1425
1425
|
_: 2
|
|
1426
|
-
}, 1032, ["onClose"]))), 128)),
|
|
1426
|
+
}, 1032, ["onClose"]))), 128)), j(c, {
|
|
1427
1427
|
size: "small",
|
|
1428
1428
|
type: "text",
|
|
1429
1429
|
onClick: e.handleRefresh
|
|
1430
1430
|
}, {
|
|
1431
|
-
default:
|
|
1431
|
+
default: W(() => [j(s)]),
|
|
1432
1432
|
_: 1
|
|
1433
1433
|
}, 8, ["onClick"])]);
|
|
1434
1434
|
}
|
|
1435
|
-
var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]]), Lt = { class: "search-config-container" }, Rt = { class: "table-wrapper left-table" }, zt = { class: "table-title" }, Bt = { class: "middle-btns" }, Vt = { class: "table-wrapper right-table" }, Ht = { class: "table-title" }, Ut = /* @__PURE__ */ a(/* @__PURE__ */
|
|
1435
|
+
var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]]), Lt = { class: "search-config-container" }, Rt = { class: "table-wrapper left-table" }, zt = { class: "table-title" }, Bt = { class: "middle-btns" }, Vt = { class: "table-wrapper right-table" }, Ht = { class: "table-title" }, Ut = /* @__PURE__ */ a(/* @__PURE__ */ M({
|
|
1436
1436
|
__name: "searchConfig",
|
|
1437
1437
|
props: {
|
|
1438
1438
|
open: {
|
|
@@ -1450,13 +1450,13 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1450
1450
|
},
|
|
1451
1451
|
emits: ["update:open", "change"],
|
|
1452
1452
|
setup(e, { emit: t }) {
|
|
1453
|
-
let n = e, r = t, { t: i } =
|
|
1453
|
+
let n = e, r = t, { t: i } = Je(), a = L(!1), o = L(""), s = L(""), c = L([]), l = L([]), u = L([]), d = [{
|
|
1454
1454
|
title: i("字段名称"),
|
|
1455
1455
|
dataIndex: "label",
|
|
1456
1456
|
key: "label",
|
|
1457
1457
|
width: 250,
|
|
1458
1458
|
ellipsis: !0
|
|
1459
|
-
}], f =
|
|
1459
|
+
}], f = T(() => {
|
|
1460
1460
|
let e = [{
|
|
1461
1461
|
title: i("字段名称"),
|
|
1462
1462
|
dataIndex: "label",
|
|
@@ -1473,9 +1473,9 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1473
1473
|
ellipsis: !0
|
|
1474
1474
|
}), e;
|
|
1475
1475
|
});
|
|
1476
|
-
|
|
1476
|
+
U(() => n.open, (e) => {
|
|
1477
1477
|
a.value = e, e && (o.value = "", s.value = "", p());
|
|
1478
|
-
}),
|
|
1478
|
+
}), U(a, (e) => {
|
|
1479
1479
|
r("update:open", e);
|
|
1480
1480
|
});
|
|
1481
1481
|
let p = () => {
|
|
@@ -1496,7 +1496,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1496
1496
|
order: n + 1
|
|
1497
1497
|
});
|
|
1498
1498
|
}), u.value = (0, Z.cloneDeep)(t), c.value = [], l.value = [];
|
|
1499
|
-
}, m =
|
|
1499
|
+
}, m = T(() => {
|
|
1500
1500
|
let e = new Set(u.value.map((e) => e.field_name)), t = {}, r = [];
|
|
1501
1501
|
n.searchConfig.forEach((n) => {
|
|
1502
1502
|
let i = {
|
|
@@ -1514,7 +1514,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1514
1514
|
children: t[e]
|
|
1515
1515
|
});
|
|
1516
1516
|
}), [...i, ...r];
|
|
1517
|
-
}), h =
|
|
1517
|
+
}), h = T(() => {
|
|
1518
1518
|
if (!o.value) return m.value;
|
|
1519
1519
|
let e = o.value.toLowerCase(), t = (n) => n.reduce((n, r) => {
|
|
1520
1520
|
let i = r.label?.toLowerCase().includes(e) || r.field_name?.toLowerCase().includes(e);
|
|
@@ -1531,7 +1531,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1531
1531
|
return n;
|
|
1532
1532
|
}, []);
|
|
1533
1533
|
return t(m.value);
|
|
1534
|
-
}), g =
|
|
1534
|
+
}), g = T(() => {
|
|
1535
1535
|
if (!s.value) return u.value;
|
|
1536
1536
|
let e = s.value.toLowerCase();
|
|
1537
1537
|
return u.value.filter((t) => t.label?.toLowerCase().includes(e) || t.field_name?.toLowerCase().includes(e));
|
|
@@ -1552,7 +1552,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1552
1552
|
}, x = ({ oldIndex: e, newIndex: t }) => {
|
|
1553
1553
|
let n = u.value.splice(e, 1)[0];
|
|
1554
1554
|
u.value.splice(t, 0, n);
|
|
1555
|
-
},
|
|
1555
|
+
}, ee = () => {
|
|
1556
1556
|
let e = {};
|
|
1557
1557
|
n.searchConfig.forEach((t) => {
|
|
1558
1558
|
e[t.field_name] = {
|
|
@@ -1565,28 +1565,28 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1565
1565
|
order: n + 1
|
|
1566
1566
|
};
|
|
1567
1567
|
}), r("change", e), a.value = !1;
|
|
1568
|
-
},
|
|
1568
|
+
}, S = () => {
|
|
1569
1569
|
a.value = !1;
|
|
1570
1570
|
};
|
|
1571
1571
|
return (e, t) => {
|
|
1572
|
-
let n =
|
|
1573
|
-
return
|
|
1572
|
+
let n = z("a-input"), r = z("s-table"), i = z("a-button"), u = z("a-modal");
|
|
1573
|
+
return F(), E(u, {
|
|
1574
1574
|
title: e.$t("设置搜索字段"),
|
|
1575
1575
|
open: a.value,
|
|
1576
1576
|
"onUpdate:open": t[4] ||= (e) => a.value = e,
|
|
1577
1577
|
width: "1000px",
|
|
1578
|
-
onOk:
|
|
1579
|
-
onCancel:
|
|
1578
|
+
onOk: ee,
|
|
1579
|
+
onCancel: S
|
|
1580
1580
|
}, {
|
|
1581
|
-
default:
|
|
1582
|
-
|
|
1581
|
+
default: W(() => [k("div", Lt, [
|
|
1582
|
+
k("div", Rt, [k("div", zt, [A(V(e.$t("所有字段")) + " ", 1), j(n, {
|
|
1583
1583
|
value: o.value,
|
|
1584
1584
|
"onUpdate:value": t[0] ||= (e) => o.value = e,
|
|
1585
1585
|
size: "small",
|
|
1586
1586
|
placeholder: e.$t("搜索标签/字段名"),
|
|
1587
1587
|
style: { "margin-top": "8px" },
|
|
1588
1588
|
"allow-clear": ""
|
|
1589
|
-
}, null, 8, ["value", "placeholder"])]),
|
|
1589
|
+
}, null, 8, ["value", "placeholder"])]), j(r, {
|
|
1590
1590
|
columns: d,
|
|
1591
1591
|
"data-source": h.value,
|
|
1592
1592
|
pagination: !1,
|
|
@@ -1598,41 +1598,41 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1598
1598
|
"row-class-name": (e) => e.is_selected ? "row-selected" : "",
|
|
1599
1599
|
"expand-row-by-click": ""
|
|
1600
1600
|
}, {
|
|
1601
|
-
bodyCell:
|
|
1601
|
+
bodyCell: W(({ column: e, record: t }) => [e.dataIndex === "label" ? (F(), O("span", {
|
|
1602
1602
|
key: 0,
|
|
1603
|
-
style:
|
|
1604
|
-
},
|
|
1603
|
+
style: P({ color: t.is_selected ? "#ccc" : "inherit" })
|
|
1604
|
+
}, V(t.label), 5)) : D("", !0)]),
|
|
1605
1605
|
_: 1
|
|
1606
1606
|
}, 8, [
|
|
1607
1607
|
"data-source",
|
|
1608
1608
|
"selectedRowKeys",
|
|
1609
1609
|
"row-class-name"
|
|
1610
1610
|
])]),
|
|
1611
|
-
|
|
1611
|
+
k("div", Bt, [j(i, {
|
|
1612
1612
|
type: "primary",
|
|
1613
1613
|
shape: "circle",
|
|
1614
1614
|
disabled: c.value.length === 0,
|
|
1615
1615
|
onClick: y
|
|
1616
1616
|
}, {
|
|
1617
|
-
icon:
|
|
1617
|
+
icon: W(() => [j(H(Ve))]),
|
|
1618
1618
|
_: 1
|
|
1619
|
-
}, 8, ["disabled"]),
|
|
1619
|
+
}, 8, ["disabled"]), j(i, {
|
|
1620
1620
|
type: "primary",
|
|
1621
1621
|
shape: "circle",
|
|
1622
1622
|
disabled: l.value.length === 0,
|
|
1623
1623
|
onClick: b
|
|
1624
1624
|
}, {
|
|
1625
|
-
icon:
|
|
1625
|
+
icon: W(() => [j(H(Le))]),
|
|
1626
1626
|
_: 1
|
|
1627
1627
|
}, 8, ["disabled"])]),
|
|
1628
|
-
|
|
1628
|
+
k("div", Vt, [k("div", Ht, [A(V(e.$t("已选字段")) + " ", 1), j(n, {
|
|
1629
1629
|
value: s.value,
|
|
1630
1630
|
"onUpdate:value": t[2] ||= (e) => s.value = e,
|
|
1631
1631
|
size: "small",
|
|
1632
1632
|
placeholder: e.$t("搜索标签/字段名"),
|
|
1633
1633
|
style: { "margin-top": "8px" },
|
|
1634
1634
|
"allow-clear": ""
|
|
1635
|
-
}, null, 8, ["value", "placeholder"])]),
|
|
1635
|
+
}, null, 8, ["value", "placeholder"])]), j(r, {
|
|
1636
1636
|
columns: f.value,
|
|
1637
1637
|
"data-source": g.value,
|
|
1638
1638
|
pagination: !1,
|
|
@@ -1664,7 +1664,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1664
1664
|
}, Xt = {
|
|
1665
1665
|
key: 3,
|
|
1666
1666
|
class: "bottom-content"
|
|
1667
|
-
}, Zt = /* @__PURE__ */ a(/* @__PURE__ */
|
|
1667
|
+
}, Zt = /* @__PURE__ */ a(/* @__PURE__ */ M({
|
|
1668
1668
|
name: "Search",
|
|
1669
1669
|
__name: "search",
|
|
1670
1670
|
props: {
|
|
@@ -1707,13 +1707,13 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1707
1707
|
"change"
|
|
1708
1708
|
],
|
|
1709
1709
|
setup(e, { emit: t }) {
|
|
1710
|
-
let n = e, r = t, { t: i } =
|
|
1710
|
+
let n = e, r = t, { t: i } = Je(), a = L(!1), o = L(!1), s = L({}), c = L({}), { config: l } = jt(), f = L([{
|
|
1711
1711
|
value: "yes",
|
|
1712
1712
|
label: i("is_or_not_blank_or_null.yes")
|
|
1713
1713
|
}, {
|
|
1714
1714
|
value: "no",
|
|
1715
1715
|
label: i("is_or_not_blank_or_null.no")
|
|
1716
|
-
}]), p =
|
|
1716
|
+
}]), p = T(() => {
|
|
1717
1717
|
let e = {};
|
|
1718
1718
|
for (let t of n.searchConditions) e[t.field_name] = {
|
|
1719
1719
|
value: t.value,
|
|
@@ -1797,40 +1797,40 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1797
1797
|
n.eventBus.emit("refresh");
|
|
1798
1798
|
}, y = (e) => {
|
|
1799
1799
|
r("viewSearchConfigChange", e);
|
|
1800
|
-
}, b =
|
|
1801
|
-
return
|
|
1800
|
+
}, b = T(() => n.searchDisplayType || "hide");
|
|
1801
|
+
return xe(() => {
|
|
1802
1802
|
["show", "show_no_hide"].includes(b.value) && (a.value = !0);
|
|
1803
1803
|
}), (t, n) => {
|
|
1804
|
-
let r =
|
|
1805
|
-
return
|
|
1806
|
-
b.value === "show_no_hide" ?
|
|
1804
|
+
let r = z("a-button"), i = z("SettingOutlined"), u = z("a-tooltip"), d = z("a-select-option"), h = z("a-select"), x = z("a-input-group"), ee = z("a-form-item"), S = z("a-form");
|
|
1805
|
+
return F(), O(w, null, [
|
|
1806
|
+
b.value === "show_no_hide" ? D("", !0) : (F(), O("span", Wt, [a.value ? (F(), O("div", Kt, [j(r, {
|
|
1807
1807
|
type: "link",
|
|
1808
1808
|
size: "small",
|
|
1809
1809
|
onClick: n[1] ||= (e) => a.value = !1
|
|
1810
1810
|
}, {
|
|
1811
|
-
default:
|
|
1811
|
+
default: W(() => [A(V(t.$t("隐藏")), 1)]),
|
|
1812
1812
|
_: 1
|
|
1813
|
-
}),
|
|
1813
|
+
}), H(l)?.sys_btn?.search_field_config === !1 ? D("", !0) : (F(), E(r, {
|
|
1814
1814
|
key: 0,
|
|
1815
1815
|
type: "text",
|
|
1816
1816
|
size: "small",
|
|
1817
1817
|
onClick: n[2] ||= (e) => o.value = !0
|
|
1818
1818
|
}, {
|
|
1819
|
-
default:
|
|
1820
|
-
default:
|
|
1819
|
+
default: W(() => [j(u, { title: t.$t("设置搜索字段") }, {
|
|
1820
|
+
default: W(() => [j(i)]),
|
|
1821
1821
|
_: 1
|
|
1822
1822
|
}, 8, ["title"])]),
|
|
1823
1823
|
_: 1
|
|
1824
|
-
}))])) : (
|
|
1824
|
+
}))])) : (F(), E(r, {
|
|
1825
1825
|
key: 0,
|
|
1826
1826
|
type: "link",
|
|
1827
1827
|
size: "small",
|
|
1828
1828
|
onClick: n[0] ||= (e) => a.value = !0
|
|
1829
1829
|
}, {
|
|
1830
|
-
default:
|
|
1830
|
+
default: W(() => [k("span", Gt, V(t.$t("展开")), 1)]),
|
|
1831
1831
|
_: 1
|
|
1832
1832
|
}))])),
|
|
1833
|
-
|
|
1833
|
+
j(Ut, {
|
|
1834
1834
|
open: o.value,
|
|
1835
1835
|
"onUpdate:open": n[3] ||= (e) => o.value = e,
|
|
1836
1836
|
"search-config": e.searchConfig,
|
|
@@ -1841,7 +1841,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1841
1841
|
"search-config",
|
|
1842
1842
|
"view-search-config"
|
|
1843
1843
|
]),
|
|
1844
|
-
a.value ?
|
|
1844
|
+
a.value ? D("", !0) : (F(), E(It, {
|
|
1845
1845
|
key: 1,
|
|
1846
1846
|
"search-conditions": e.searchConditions,
|
|
1847
1847
|
"search-config": e.searchConfig,
|
|
@@ -1854,41 +1854,41 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1854
1854
|
"event-bus",
|
|
1855
1855
|
"searchType"
|
|
1856
1856
|
])),
|
|
1857
|
-
a.value ? (
|
|
1857
|
+
a.value ? (F(), O("div", {
|
|
1858
1858
|
key: 2,
|
|
1859
|
-
class:
|
|
1860
|
-
style:
|
|
1861
|
-
}, [
|
|
1859
|
+
class: ve(["search-form-wraper", { "search-form-grid": e.searchColumnCount > 0 }]),
|
|
1860
|
+
style: P({ "--column-count": e.searchColumnCount || 0 })
|
|
1861
|
+
}, [j(S, {
|
|
1862
1862
|
layout: e.searchColumnCount > 0 ? "horizontal" : "inline",
|
|
1863
|
-
class:
|
|
1863
|
+
class: ve({ "search-form-grid-inner": e.searchColumnCount > 0 })
|
|
1864
1864
|
}, {
|
|
1865
|
-
default:
|
|
1866
|
-
label:
|
|
1865
|
+
default: W(() => [(F(!0), O(w, null, R(p.value, (t, r) => (F(), O(w, { key: t.field_name }, [t.is_group ? (F(), O("div", qt, V(t.label), 1)) : (F(), E(ee, { key: 1 }, {
|
|
1866
|
+
label: W(() => [k("span", {
|
|
1867
1867
|
title: t.label,
|
|
1868
1868
|
class: "search-item-label-text"
|
|
1869
|
-
},
|
|
1870
|
-
default:
|
|
1869
|
+
}, V(t.label), 9, Jt)]),
|
|
1870
|
+
default: W(() => [j(x, {
|
|
1871
1871
|
compact: "",
|
|
1872
1872
|
size: "small"
|
|
1873
1873
|
}, {
|
|
1874
|
-
default:
|
|
1875
|
-
t.operator_list.length > 0 && e.searchType === "advanced" ? (
|
|
1874
|
+
default: W(() => [
|
|
1875
|
+
t.operator_list.length > 0 && e.searchType === "advanced" ? (F(), E(h, {
|
|
1876
1876
|
key: 0,
|
|
1877
1877
|
dropdownMatchSelectWidth: !1,
|
|
1878
1878
|
value: t.operator,
|
|
1879
1879
|
onChange: (e) => g(t.field_name, "operator", e),
|
|
1880
1880
|
size: "small"
|
|
1881
1881
|
}, {
|
|
1882
|
-
default:
|
|
1882
|
+
default: W(() => [(F(!0), O(w, null, R(t.operator_list, (e) => (F(), E(d, {
|
|
1883
1883
|
value: e,
|
|
1884
1884
|
key: e
|
|
1885
1885
|
}, {
|
|
1886
|
-
default:
|
|
1886
|
+
default: W(() => [A(V(H(Et)[e]), 1)]),
|
|
1887
1887
|
_: 2
|
|
1888
1888
|
}, 1032, ["value"]))), 128))]),
|
|
1889
1889
|
_: 2
|
|
1890
|
-
}, 1032, ["value", "onChange"])) :
|
|
1891
|
-
["is_or_not_blank_or_null", "is_or_not_null"].includes(t.operator) ? (
|
|
1890
|
+
}, 1032, ["value", "onChange"])) : D("", !0),
|
|
1891
|
+
["is_or_not_blank_or_null", "is_or_not_null"].includes(t.operator) ? (F(), E($, {
|
|
1892
1892
|
key: 1,
|
|
1893
1893
|
is_show_label: !1,
|
|
1894
1894
|
label: t.field_name,
|
|
@@ -1915,8 +1915,8 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1915
1915
|
"validateInfos",
|
|
1916
1916
|
"onUpdate:value",
|
|
1917
1917
|
"field_width"
|
|
1918
|
-
])) :
|
|
1919
|
-
t.operator === "between" || t.operator === "notbetween" ? (
|
|
1918
|
+
])) : D("", !0),
|
|
1919
|
+
t.operator === "between" || t.operator === "notbetween" ? (F(), O(w, { key: 2 }, [t.type === "datepicker" ? (F(), E($, {
|
|
1920
1920
|
key: 0,
|
|
1921
1921
|
is_show_label: !1,
|
|
1922
1922
|
label: t.field_name,
|
|
@@ -1938,7 +1938,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1938
1938
|
"validateInfos",
|
|
1939
1939
|
"field_width",
|
|
1940
1940
|
"onUpdate:value"
|
|
1941
|
-
])) : t.type === "monthpicker" ? (
|
|
1941
|
+
])) : t.type === "monthpicker" ? (F(), E($, {
|
|
1942
1942
|
key: 1,
|
|
1943
1943
|
is_show_label: !1,
|
|
1944
1944
|
label: t.field_name,
|
|
@@ -1959,8 +1959,8 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1959
1959
|
"validateInfos",
|
|
1960
1960
|
"field_width",
|
|
1961
1961
|
"onUpdate:value"
|
|
1962
|
-
])) : (
|
|
1963
|
-
|
|
1962
|
+
])) : (F(), O(w, { key: 2 }, [
|
|
1963
|
+
j($, {
|
|
1964
1964
|
is_show_label: !1,
|
|
1965
1965
|
label: t.field_name,
|
|
1966
1966
|
value: t.value?.[0],
|
|
@@ -1980,8 +1980,8 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
1980
1980
|
"field_width",
|
|
1981
1981
|
"onUpdate:value"
|
|
1982
1982
|
]),
|
|
1983
|
-
n[4] ||=
|
|
1984
|
-
|
|
1983
|
+
n[4] ||= k("span", { class: "range" }, "~", -1),
|
|
1984
|
+
j($, {
|
|
1985
1985
|
is_show_label: !1,
|
|
1986
1986
|
label: t.field_name,
|
|
1987
1987
|
value: t.value?.[1],
|
|
@@ -2001,7 +2001,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2001
2001
|
"field_width",
|
|
2002
2002
|
"onUpdate:value"
|
|
2003
2003
|
])
|
|
2004
|
-
], 64))], 64)) : t.operator === "_eq" ? (
|
|
2004
|
+
], 64))], 64)) : t.operator === "_eq" ? (F(), E($, {
|
|
2005
2005
|
key: 3,
|
|
2006
2006
|
is_show_label: !1,
|
|
2007
2007
|
label: t.field_name,
|
|
@@ -2015,7 +2015,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2015
2015
|
placeholder: ""
|
|
2016
2016
|
},
|
|
2017
2017
|
formModel: s.value,
|
|
2018
|
-
options:
|
|
2018
|
+
options: H(Dt),
|
|
2019
2019
|
validateInfos: c.value,
|
|
2020
2020
|
field_width: t.field_width || 165,
|
|
2021
2021
|
"onUpdate:value": (e) => g(t.field_name, "value", e)
|
|
@@ -2028,7 +2028,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2028
2028
|
"validateInfos",
|
|
2029
2029
|
"field_width",
|
|
2030
2030
|
"onUpdate:value"
|
|
2031
|
-
])) : t.type === "datepicker" || t.type === "monthpicker" ? (
|
|
2031
|
+
])) : t.type === "datepicker" || t.type === "monthpicker" ? (F(), E($, {
|
|
2032
2032
|
key: 4,
|
|
2033
2033
|
is_show_label: !1,
|
|
2034
2034
|
label: t.field_name,
|
|
@@ -2051,7 +2051,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2051
2051
|
"validateInfos",
|
|
2052
2052
|
"field_width",
|
|
2053
2053
|
"onUpdate:value"
|
|
2054
|
-
])) : (
|
|
2054
|
+
])) : (F(), E($, {
|
|
2055
2055
|
key: 5,
|
|
2056
2056
|
is_show_label: !1,
|
|
2057
2057
|
label: t.field_name,
|
|
@@ -2079,31 +2079,31 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2079
2079
|
_: 2
|
|
2080
2080
|
}, 1024)]),
|
|
2081
2081
|
_: 2
|
|
2082
|
-
}, 1024))], 64))), 128)), !e.searchColumnCount && !e.autoRefreshOnSearchChange ? (
|
|
2082
|
+
}, 1024))], 64))), 128)), !e.searchColumnCount && !e.autoRefreshOnSearchChange ? (F(), O("div", Yt, [j(r, {
|
|
2083
2083
|
size: "small",
|
|
2084
2084
|
type: "primary",
|
|
2085
2085
|
onClick: v
|
|
2086
2086
|
}, {
|
|
2087
|
-
default:
|
|
2087
|
+
default: W(() => n[5] ||= [A(" 查询 ")]),
|
|
2088
2088
|
_: 1
|
|
2089
|
-
})])) :
|
|
2089
|
+
})])) : D("", !0)]),
|
|
2090
2090
|
_: 1
|
|
2091
|
-
}, 8, ["layout", "class"])], 6)) :
|
|
2092
|
-
e.searchColumnCount && a.value && !e.autoRefreshOnSearchChange ? (
|
|
2091
|
+
}, 8, ["layout", "class"])], 6)) : D("", !0),
|
|
2092
|
+
e.searchColumnCount && a.value && !e.autoRefreshOnSearchChange ? (F(), O("div", Xt, [j(r, {
|
|
2093
2093
|
size: "small",
|
|
2094
2094
|
type: "primary",
|
|
2095
2095
|
onClick: v
|
|
2096
2096
|
}, {
|
|
2097
|
-
default:
|
|
2097
|
+
default: W(() => n[6] ||= [A(" 查询 ")]),
|
|
2098
2098
|
_: 1
|
|
2099
|
-
})])) :
|
|
2099
|
+
})])) : D("", !0)
|
|
2100
2100
|
], 64);
|
|
2101
2101
|
};
|
|
2102
2102
|
}
|
|
2103
2103
|
}), [["__scopeId", "data-v-b7555aa2"]]), Qt = { style: { padding: "8px" } }, $t = { style: {
|
|
2104
2104
|
display: "flex",
|
|
2105
2105
|
"justify-content": "flex-end"
|
|
2106
|
-
} }, en = /* @__PURE__ */
|
|
2106
|
+
} }, en = /* @__PURE__ */ M({
|
|
2107
2107
|
__name: "TableFilterDropdown",
|
|
2108
2108
|
props: {
|
|
2109
2109
|
column: {
|
|
@@ -2137,13 +2137,13 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2137
2137
|
"update:searchConditions"
|
|
2138
2138
|
],
|
|
2139
2139
|
setup(e, { emit: t }) {
|
|
2140
|
-
let n = e, r = t, { t: i } =
|
|
2140
|
+
let n = e, r = t, { t: i } = Je(), a = L({}), o = L({}), s = L([{
|
|
2141
2141
|
value: "yes",
|
|
2142
2142
|
label: i("is_or_not_blank_or_null.yes")
|
|
2143
2143
|
}, {
|
|
2144
2144
|
value: "no",
|
|
2145
2145
|
label: i("is_or_not_blank_or_null.no")
|
|
2146
|
-
}]), c =
|
|
2146
|
+
}]), c = T(() => {
|
|
2147
2147
|
let e = n.column.dataIndex, t = n.searchConditions.find((t) => t.field_name === e), r = n.searchConfig?.find((t) => t.field_name === e);
|
|
2148
2148
|
return t ? {
|
|
2149
2149
|
...r,
|
|
@@ -2153,7 +2153,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2153
2153
|
operator: r?.default_operator || "eq",
|
|
2154
2154
|
value: void 0
|
|
2155
2155
|
};
|
|
2156
|
-
}), l =
|
|
2156
|
+
}), l = T(() => {
|
|
2157
2157
|
let e = n.column.dataIndex, t = n.searchConfig?.find((t) => t.field_name === e);
|
|
2158
2158
|
if (!t) return;
|
|
2159
2159
|
let r = kt(c.value.operator, t), i = c.value.value;
|
|
@@ -2192,8 +2192,8 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2192
2192
|
});
|
|
2193
2193
|
};
|
|
2194
2194
|
return (t, n) => {
|
|
2195
|
-
let r =
|
|
2196
|
-
return
|
|
2195
|
+
let r = z("a-select-option"), i = z("a-select"), p = z("a-input-group"), m = z("a-button");
|
|
2196
|
+
return F(), O("div", Qt, [j(p, {
|
|
2197
2197
|
compact: "",
|
|
2198
2198
|
size: "small",
|
|
2199
2199
|
style: {
|
|
@@ -2201,22 +2201,22 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2201
2201
|
display: "flex"
|
|
2202
2202
|
}
|
|
2203
2203
|
}, {
|
|
2204
|
-
default:
|
|
2204
|
+
default: W(() => [c.value.operator_list?.length > 0 && e.searchType === "advanced" ? (F(), E(i, {
|
|
2205
2205
|
key: 0,
|
|
2206
2206
|
dropdownMatchSelectWidth: !1,
|
|
2207
2207
|
value: c.value.operator,
|
|
2208
2208
|
onChange: n[0] ||= (e) => u("operator", e),
|
|
2209
2209
|
size: "small"
|
|
2210
2210
|
}, {
|
|
2211
|
-
default:
|
|
2211
|
+
default: W(() => [(F(!0), O(w, null, R(c.value.operator_list, (e) => (F(), E(r, {
|
|
2212
2212
|
value: e,
|
|
2213
2213
|
key: e
|
|
2214
2214
|
}, {
|
|
2215
|
-
default:
|
|
2215
|
+
default: W(() => [A(V(H(Et)[e]), 1)]),
|
|
2216
2216
|
_: 2
|
|
2217
2217
|
}, 1032, ["value"]))), 128))]),
|
|
2218
2218
|
_: 1
|
|
2219
|
-
}, 8, ["value"])) :
|
|
2219
|
+
}, 8, ["value"])) : D("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(c.value.operator) ? (F(), E($, {
|
|
2220
2220
|
key: 1,
|
|
2221
2221
|
is_show_label: !1,
|
|
2222
2222
|
label: e.column.dataIndex,
|
|
@@ -2242,7 +2242,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2242
2242
|
"options",
|
|
2243
2243
|
"validateInfos",
|
|
2244
2244
|
"field_width"
|
|
2245
|
-
])) : ["between", "notbetween"].includes(c.value.operator) ? (
|
|
2245
|
+
])) : ["between", "notbetween"].includes(c.value.operator) ? (F(), O(w, { key: 2 }, [c.value.type === "datepicker" ? (F(), E($, {
|
|
2246
2246
|
key: 0,
|
|
2247
2247
|
is_show_label: !1,
|
|
2248
2248
|
label: e.column.dataIndex,
|
|
@@ -2263,7 +2263,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2263
2263
|
"formModel",
|
|
2264
2264
|
"validateInfos",
|
|
2265
2265
|
"field_width"
|
|
2266
|
-
])) : c.value.type === "monthpicker" ? (
|
|
2266
|
+
])) : c.value.type === "monthpicker" ? (F(), E($, {
|
|
2267
2267
|
key: 1,
|
|
2268
2268
|
is_show_label: !1,
|
|
2269
2269
|
label: e.column.dataIndex,
|
|
@@ -2283,8 +2283,8 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2283
2283
|
"formModel",
|
|
2284
2284
|
"validateInfos",
|
|
2285
2285
|
"field_width"
|
|
2286
|
-
])) : (
|
|
2287
|
-
|
|
2286
|
+
])) : (F(), O(w, { key: 2 }, [
|
|
2287
|
+
j($, {
|
|
2288
2288
|
is_show_label: !1,
|
|
2289
2289
|
label: e.column.dataIndex,
|
|
2290
2290
|
value: l.value?.[0],
|
|
@@ -2303,14 +2303,14 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2303
2303
|
"validateInfos",
|
|
2304
2304
|
"field_width"
|
|
2305
2305
|
]),
|
|
2306
|
-
n[9] ||=
|
|
2306
|
+
n[9] ||= k("span", {
|
|
2307
2307
|
class: "range",
|
|
2308
2308
|
style: {
|
|
2309
2309
|
padding: "0 4px",
|
|
2310
2310
|
"line-height": "24px"
|
|
2311
2311
|
}
|
|
2312
2312
|
}, " ~ ", -1),
|
|
2313
|
-
|
|
2313
|
+
j($, {
|
|
2314
2314
|
is_show_label: !1,
|
|
2315
2315
|
label: e.column.dataIndex,
|
|
2316
2316
|
value: l.value?.[1],
|
|
@@ -2329,7 +2329,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2329
2329
|
"validateInfos",
|
|
2330
2330
|
"field_width"
|
|
2331
2331
|
])
|
|
2332
|
-
], 64))], 64)) : c.value.operator === "_eq" ? (
|
|
2332
|
+
], 64))], 64)) : c.value.operator === "_eq" ? (F(), E($, {
|
|
2333
2333
|
key: 3,
|
|
2334
2334
|
is_show_label: !1,
|
|
2335
2335
|
label: e.column.dataIndex,
|
|
@@ -2343,7 +2343,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2343
2343
|
placeholder: ""
|
|
2344
2344
|
},
|
|
2345
2345
|
formModel: a.value,
|
|
2346
|
-
options:
|
|
2346
|
+
options: H(Dt),
|
|
2347
2347
|
validateInfos: o.value,
|
|
2348
2348
|
field_width: c.value.field_width || 155,
|
|
2349
2349
|
"onUpdate:value": n[6] ||= (e) => u("value", e)
|
|
@@ -2355,7 +2355,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2355
2355
|
"options",
|
|
2356
2356
|
"validateInfos",
|
|
2357
2357
|
"field_width"
|
|
2358
|
-
])) : c.value.type === "datepicker" || c.value.type === "monthpicker" ? (
|
|
2358
|
+
])) : c.value.type === "datepicker" || c.value.type === "monthpicker" ? (F(), E($, {
|
|
2359
2359
|
key: 4,
|
|
2360
2360
|
is_show_label: !1,
|
|
2361
2361
|
label: e.column.dataIndex,
|
|
@@ -2377,7 +2377,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2377
2377
|
"options",
|
|
2378
2378
|
"validateInfos",
|
|
2379
2379
|
"field_width"
|
|
2380
|
-
])) : (
|
|
2380
|
+
])) : (F(), E($, {
|
|
2381
2381
|
key: 5,
|
|
2382
2382
|
is_show_label: !1,
|
|
2383
2383
|
label: e.column.dataIndex,
|
|
@@ -2401,7 +2401,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2401
2401
|
"field_width"
|
|
2402
2402
|
]))]),
|
|
2403
2403
|
_: 1
|
|
2404
|
-
}),
|
|
2404
|
+
}), k("div", $t, [j(m, {
|
|
2405
2405
|
type: "primary",
|
|
2406
2406
|
size: "small",
|
|
2407
2407
|
style: {
|
|
@@ -2410,19 +2410,19 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2410
2410
|
},
|
|
2411
2411
|
onClick: d
|
|
2412
2412
|
}, {
|
|
2413
|
-
default:
|
|
2413
|
+
default: W(() => n[10] ||= [A(" 查询 ")]),
|
|
2414
2414
|
_: 1
|
|
2415
|
-
}),
|
|
2415
|
+
}), j(m, {
|
|
2416
2416
|
size: "small",
|
|
2417
2417
|
style: { width: "70px" },
|
|
2418
2418
|
onClick: f
|
|
2419
2419
|
}, {
|
|
2420
|
-
default:
|
|
2420
|
+
default: W(() => n[11] ||= [A(" 重置 ")]),
|
|
2421
2421
|
_: 1
|
|
2422
2422
|
})])]);
|
|
2423
2423
|
};
|
|
2424
2424
|
}
|
|
2425
|
-
}), tn =
|
|
2425
|
+
}), tn = M({
|
|
2426
2426
|
name: "ColumnsConfig",
|
|
2427
2427
|
props: { columns: {
|
|
2428
2428
|
type: Array,
|
|
@@ -2430,7 +2430,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2430
2430
|
} },
|
|
2431
2431
|
emits: ["change"],
|
|
2432
2432
|
setup(e, { emit: t }) {
|
|
2433
|
-
let { t: n } =
|
|
2433
|
+
let { t: n } = Je(), r = L(""), i = L([
|
|
2434
2434
|
{
|
|
2435
2435
|
title: n("列名称"),
|
|
2436
2436
|
dataIndex: "title",
|
|
@@ -2462,7 +2462,7 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2462
2462
|
width: 100,
|
|
2463
2463
|
key: "ellipsis"
|
|
2464
2464
|
}
|
|
2465
|
-
]), a =
|
|
2465
|
+
]), a = T(() => e.columns.filter((e) => e.key !== "index" && e.key !== "action")), o = T(() => {
|
|
2466
2466
|
if (!r.value) return a.value;
|
|
2467
2467
|
let e = r.value.toLowerCase(), t = (n) => n.reduce((n, r) => {
|
|
2468
2468
|
let i = r.title?.toLowerCase().includes(e) || r.dataIndex?.toLowerCase().includes(e) || r.key?.toLowerCase().includes(e);
|
|
@@ -2489,14 +2489,14 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2489
2489
|
return e.children.forEach((e) => {
|
|
2490
2490
|
e.children && e.children.length > 0 ? (s(e.children) && t.push(e.key), t = t.concat(c(e))) : e?.checked !== !1 && t.push(e.key);
|
|
2491
2491
|
}), t;
|
|
2492
|
-
}, l =
|
|
2492
|
+
}, l = T(() => {
|
|
2493
2493
|
if (e.columns) {
|
|
2494
2494
|
let t = [];
|
|
2495
2495
|
return e.columns.forEach((e) => {
|
|
2496
2496
|
e.children && e.children.length > 0 ? (s(e.children) && t.push(e.key), t = t.concat(c(e))) : e?.checked && t.push(e.key);
|
|
2497
2497
|
}), t;
|
|
2498
2498
|
} else return [];
|
|
2499
|
-
}), u =
|
|
2499
|
+
}), u = L({
|
|
2500
2500
|
checkStrictly: !1,
|
|
2501
2501
|
hideSelectAll: !0,
|
|
2502
2502
|
onSelect: (e, n) => {
|
|
@@ -2554,14 +2554,14 @@ var It = /* @__PURE__ */ a(Nt, [["render", Ft], ["__scopeId", "data-v-af890e8e"]
|
|
|
2554
2554
|
}
|
|
2555
2555
|
}), nn = { class: "columns-config-wrapper" };
|
|
2556
2556
|
function rn(e, t, n, r, i, a) {
|
|
2557
|
-
let o =
|
|
2558
|
-
return
|
|
2557
|
+
let o = z("a-input"), s = z("a-radio-button"), c = z("a-radio-group"), l = z("a-switch"), u = z("s-table");
|
|
2558
|
+
return F(), O("div", nn, [j(o, {
|
|
2559
2559
|
value: e.searchText,
|
|
2560
2560
|
"onUpdate:value": t[0] ||= (t) => e.searchText = t,
|
|
2561
2561
|
placeholder: e.$t("搜索列名/字段名"),
|
|
2562
2562
|
"allow-clear": "",
|
|
2563
2563
|
style: { "margin-bottom": "8px" }
|
|
2564
|
-
}, null, 8, ["value", "placeholder"]),
|
|
2564
|
+
}, null, 8, ["value", "placeholder"]), j(u, {
|
|
2565
2565
|
columns: e.columnsConfig,
|
|
2566
2566
|
rowHeight: 30,
|
|
2567
2567
|
"data-source": e.filteredDataSource,
|
|
@@ -2573,25 +2573,25 @@ function rn(e, t, n, r, i, a) {
|
|
|
2573
2573
|
"row-key": "key",
|
|
2574
2574
|
pagination: !1
|
|
2575
2575
|
}, {
|
|
2576
|
-
bodyCell:
|
|
2577
|
-
t.dataIndex == "fixed" ? (
|
|
2576
|
+
bodyCell: W(({ column: t, index: n, text: r, record: i }) => [
|
|
2577
|
+
t.dataIndex == "fixed" ? (F(), O(w, { key: 0 }, [i?.is_children ? D("", !0) : (F(), E(c, {
|
|
2578
2578
|
key: 0,
|
|
2579
2579
|
value: i.fixed,
|
|
2580
2580
|
"onUpdate:value": (e) => i.fixed = e,
|
|
2581
2581
|
size: "small",
|
|
2582
2582
|
onChange: e.change_fixed
|
|
2583
2583
|
}, {
|
|
2584
|
-
default:
|
|
2585
|
-
|
|
2586
|
-
default:
|
|
2584
|
+
default: W(() => [
|
|
2585
|
+
j(s, { value: "left" }, {
|
|
2586
|
+
default: W(() => [A(V(e.$t("左")), 1)]),
|
|
2587
2587
|
_: 1
|
|
2588
2588
|
}),
|
|
2589
|
-
|
|
2590
|
-
default:
|
|
2589
|
+
j(s, { value: void 0 }, {
|
|
2590
|
+
default: W(() => [A(V(e.$t("不固定")), 1)]),
|
|
2591
2591
|
_: 1
|
|
2592
2592
|
}),
|
|
2593
|
-
|
|
2594
|
-
default:
|
|
2593
|
+
j(s, { value: "right" }, {
|
|
2594
|
+
default: W(() => [A(V(e.$t("右")), 1)]),
|
|
2595
2595
|
_: 1
|
|
2596
2596
|
})
|
|
2597
2597
|
]),
|
|
@@ -2600,8 +2600,8 @@ function rn(e, t, n, r, i, a) {
|
|
|
2600
2600
|
"value",
|
|
2601
2601
|
"onUpdate:value",
|
|
2602
2602
|
"onChange"
|
|
2603
|
-
]))], 64)) :
|
|
2604
|
-
t.dataIndex == "autoHeight" ? (
|
|
2603
|
+
]))], 64)) : D("", !0),
|
|
2604
|
+
t.dataIndex == "autoHeight" ? (F(), O(w, { key: 1 }, [i.children && i.children.length > 0 ? D("", !0) : (F(), E(l, {
|
|
2605
2605
|
key: 0,
|
|
2606
2606
|
checked: i.autoHeight,
|
|
2607
2607
|
"onUpdate:checked": (e) => i.autoHeight = e,
|
|
@@ -2616,8 +2616,8 @@ function rn(e, t, n, r, i, a) {
|
|
|
2616
2616
|
"checked-children",
|
|
2617
2617
|
"un-checked-children",
|
|
2618
2618
|
"onChange"
|
|
2619
|
-
]))], 64)) :
|
|
2620
|
-
t.dataIndex == "autoWidth" ? (
|
|
2619
|
+
]))], 64)) : D("", !0),
|
|
2620
|
+
t.dataIndex == "autoWidth" ? (F(), O(w, { key: 2 }, [!(i.children && i.children.length > 0) && i?.resizable ? (F(), E(l, {
|
|
2621
2621
|
key: 0,
|
|
2622
2622
|
checked: i.autoWidth,
|
|
2623
2623
|
"onUpdate:checked": (e) => i.autoWidth = e,
|
|
@@ -2632,8 +2632,8 @@ function rn(e, t, n, r, i, a) {
|
|
|
2632
2632
|
"checked-children",
|
|
2633
2633
|
"un-checked-children",
|
|
2634
2634
|
"onClick"
|
|
2635
|
-
])) :
|
|
2636
|
-
t.dataIndex == "ellipsis" ? (
|
|
2635
|
+
])) : D("", !0)], 64)) : D("", !0),
|
|
2636
|
+
t.dataIndex == "ellipsis" ? (F(), O(w, { key: 3 }, [!(i.children && i.children.length > 0) && i?.resizable ? (F(), E(l, {
|
|
2637
2637
|
key: 0,
|
|
2638
2638
|
checked: i.ellipsis,
|
|
2639
2639
|
"onUpdate:checked": (e) => i.ellipsis = e,
|
|
@@ -2648,7 +2648,7 @@ function rn(e, t, n, r, i, a) {
|
|
|
2648
2648
|
"checked-children",
|
|
2649
2649
|
"un-checked-children",
|
|
2650
2650
|
"onClick"
|
|
2651
|
-
])) :
|
|
2651
|
+
])) : D("", !0)], 64)) : D("", !0)
|
|
2652
2652
|
]),
|
|
2653
2653
|
_: 1
|
|
2654
2654
|
}, 8, [
|
|
@@ -2663,22 +2663,22 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2663
2663
|
let { currentView: t, getViewData: n, isViewChange: r, userid: i, view_project__flag: a, view_menu__flag: o, view_menu__name: s, fetchViews: c, is_auth: l, t: u } = e;
|
|
2664
2664
|
return {
|
|
2665
2665
|
saveView: () => {
|
|
2666
|
-
|
|
2666
|
+
Te.confirm({
|
|
2667
2667
|
title: () => "确定覆盖视图吗?",
|
|
2668
2668
|
content: "当前视图原有的数据会被覆盖",
|
|
2669
|
-
icon: () =>
|
|
2669
|
+
icon: () => N(Ne),
|
|
2670
2670
|
okText: "确定",
|
|
2671
2671
|
async onOk() {
|
|
2672
2672
|
t.value.data = n(), await _t({
|
|
2673
2673
|
view_settings_id: t.value.id,
|
|
2674
2674
|
data: t.value.data
|
|
2675
|
-
}), r.value = !1,
|
|
2675
|
+
}), r.value = !1, G.success("修改成功");
|
|
2676
2676
|
},
|
|
2677
2677
|
onCancel() {}
|
|
2678
2678
|
});
|
|
2679
2679
|
},
|
|
2680
2680
|
addView: (e) => {
|
|
2681
|
-
let d =
|
|
2681
|
+
let d = I({
|
|
2682
2682
|
open: !0,
|
|
2683
2683
|
loading: !1,
|
|
2684
2684
|
title: u("新建视图"),
|
|
@@ -2698,11 +2698,11 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2698
2698
|
defaultValue: "",
|
|
2699
2699
|
placeholder: u("请输入视图名称")
|
|
2700
2700
|
}],
|
|
2701
|
-
rules:
|
|
2701
|
+
rules: I({ name: [{
|
|
2702
2702
|
required: !0,
|
|
2703
2703
|
message: u("请输入视图名称")
|
|
2704
2704
|
}] }),
|
|
2705
|
-
model:
|
|
2705
|
+
model: I({
|
|
2706
2706
|
name: "",
|
|
2707
2707
|
is_system: [!1],
|
|
2708
2708
|
view_type: "personal"
|
|
@@ -2731,7 +2731,7 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2731
2731
|
is_system: l.is_system && l.is_system[0],
|
|
2732
2732
|
data: n()
|
|
2733
2733
|
});
|
|
2734
|
-
await c(), t.value = d,
|
|
2734
|
+
await c(), t.value = d, G.success(u("创建成功")), r.value = !1;
|
|
2735
2735
|
}
|
|
2736
2736
|
});
|
|
2737
2737
|
e || d.form.fields.push({
|
|
@@ -2753,18 +2753,18 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2753
2753
|
labelKey: "name",
|
|
2754
2754
|
valueKey: "value",
|
|
2755
2755
|
defaultValue: [!1]
|
|
2756
|
-
}),
|
|
2756
|
+
}), C(d);
|
|
2757
2757
|
}
|
|
2758
2758
|
};
|
|
2759
|
-
}, sn =
|
|
2759
|
+
}, sn = M({
|
|
2760
2760
|
name: "ViewsConfig",
|
|
2761
2761
|
components: {
|
|
2762
|
-
SettingOutlined:
|
|
2763
|
-
PlusOutlined:
|
|
2764
|
-
DeleteOutlined:
|
|
2765
|
-
EditOutlined:
|
|
2766
|
-
StarOutlined:
|
|
2767
|
-
StarFilled:
|
|
2762
|
+
SettingOutlined: Ue,
|
|
2763
|
+
PlusOutlined: ze,
|
|
2764
|
+
DeleteOutlined: je,
|
|
2765
|
+
EditOutlined: Y,
|
|
2766
|
+
StarOutlined: Ge,
|
|
2767
|
+
StarFilled: We
|
|
2768
2768
|
},
|
|
2769
2769
|
props: {
|
|
2770
2770
|
columns: {
|
|
@@ -2785,17 +2785,17 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2785
2785
|
}
|
|
2786
2786
|
},
|
|
2787
2787
|
setup(e) {
|
|
2788
|
-
let { t: r } =
|
|
2788
|
+
let { t: r } = Je(), i = t(), a = n(), o = i.currentOrg, s = i.userid, c = L(i.CHECK_AUTH("view_system_edit")), { setViewData: l, getViewData: u, viewDataList: d, fetchViews: f, currentView: p, isViewChange: m } = jt(), h = [{
|
|
2789
2789
|
dataIndex: "name",
|
|
2790
2790
|
key: "name"
|
|
2791
|
-
}], g =
|
|
2791
|
+
}], g = T(() => [p.value?.id]), _ = T(() => {
|
|
2792
2792
|
let e = d.value.filter((e) => !!e.user_id && e.is_system).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort), t = d.value.filter((e) => !!e.user_id && !e.is_system).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort);
|
|
2793
2793
|
return e.concat(t);
|
|
2794
|
-
}), v =
|
|
2794
|
+
}), v = T(() => {
|
|
2795
2795
|
let e = d.value.filter((e) => !e.user_id && e.is_system).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort), t = d.value.filter((e) => !e.user_id && !e.is_system).sort((e, t) => e.sort == t.sort ? e.id - t.id : e.sort - t.sort);
|
|
2796
2796
|
return e.concat(t);
|
|
2797
2797
|
}), y = (e) => {
|
|
2798
|
-
p.value?.id === e.id ? (p.value = { id: "no-view" }, l(null),
|
|
2798
|
+
p.value?.id === e.id ? (p.value = { id: "no-view" }, l(null), G.warning(r("视图已取消"))) : (p.value = e, l(e.data), G.success(r("已应用视图:") + e.name));
|
|
2799
2799
|
}, b = async (e) => {
|
|
2800
2800
|
try {
|
|
2801
2801
|
await yt({
|
|
@@ -2804,24 +2804,24 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2804
2804
|
}), await vt({
|
|
2805
2805
|
org_id: o.id,
|
|
2806
2806
|
view_settings_id: e.id
|
|
2807
|
-
}),
|
|
2807
|
+
}), G.success(r("设置默认成功")), f();
|
|
2808
2808
|
} catch {
|
|
2809
|
-
|
|
2809
|
+
G.error(r("设置默认失败"));
|
|
2810
2810
|
}
|
|
2811
2811
|
}, x = (e) => {
|
|
2812
|
-
|
|
2812
|
+
Te.confirm({
|
|
2813
2813
|
title: r("确认删除视图?"),
|
|
2814
2814
|
content: r("视图删除后不可恢复,是否确认删除?"),
|
|
2815
|
-
icon:
|
|
2815
|
+
icon: j(Ne),
|
|
2816
2816
|
onOk: async () => {
|
|
2817
2817
|
await bt({
|
|
2818
2818
|
org_id: o.id,
|
|
2819
2819
|
view_settings_id: e.id
|
|
2820
|
-
}),
|
|
2820
|
+
}), G.success(r("删除成功")), f();
|
|
2821
2821
|
}
|
|
2822
2822
|
});
|
|
2823
|
-
},
|
|
2824
|
-
let t =
|
|
2823
|
+
}, ee = (e) => {
|
|
2824
|
+
let t = I({
|
|
2825
2825
|
open: !0,
|
|
2826
2826
|
loading: !1,
|
|
2827
2827
|
title: r("编辑视图"),
|
|
@@ -2841,11 +2841,11 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2841
2841
|
defaultValue: e.name,
|
|
2842
2842
|
placeholder: r("请输入视图名称")
|
|
2843
2843
|
}],
|
|
2844
|
-
rules:
|
|
2844
|
+
rules: I({ name: [{
|
|
2845
2845
|
required: !0,
|
|
2846
2846
|
message: r("请输入视图名称")
|
|
2847
2847
|
}] }),
|
|
2848
|
-
model:
|
|
2848
|
+
model: I({
|
|
2849
2849
|
name: e.name,
|
|
2850
2850
|
is_system: [e.is_system || !1]
|
|
2851
2851
|
})
|
|
@@ -2860,7 +2860,7 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2860
2860
|
view_settings_id: e.id,
|
|
2861
2861
|
name: t.name,
|
|
2862
2862
|
is_system: t.is_system && t.is_system[0]
|
|
2863
|
-
}),
|
|
2863
|
+
}), G.success(r("修改成功")), f();
|
|
2864
2864
|
}
|
|
2865
2865
|
});
|
|
2866
2866
|
c.value && t.form.fields.push({
|
|
@@ -2872,8 +2872,8 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2872
2872
|
labelKey: "name",
|
|
2873
2873
|
valueKey: "value",
|
|
2874
2874
|
defaultValue: [!1]
|
|
2875
|
-
}),
|
|
2876
|
-
}, { addView:
|
|
2875
|
+
}), C(t);
|
|
2876
|
+
}, { addView: S } = on({
|
|
2877
2877
|
currentView: p,
|
|
2878
2878
|
getViewData: u,
|
|
2879
2879
|
isViewChange: m,
|
|
@@ -2892,10 +2892,10 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2892
2892
|
handleApplyView: y,
|
|
2893
2893
|
handleSetDefault: b,
|
|
2894
2894
|
handleDeleteView: x,
|
|
2895
|
-
handleEditView:
|
|
2896
|
-
addView:
|
|
2895
|
+
handleEditView: ee,
|
|
2896
|
+
addView: S,
|
|
2897
2897
|
handleManageView: (e) => {
|
|
2898
|
-
|
|
2898
|
+
C(I({
|
|
2899
2899
|
open: !0,
|
|
2900
2900
|
component: "ViewEditModal",
|
|
2901
2901
|
compObj: {
|
|
@@ -2907,8 +2907,8 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2907
2907
|
org_id: o.id,
|
|
2908
2908
|
view_settings_ids: e
|
|
2909
2909
|
}).then(() => {
|
|
2910
|
-
|
|
2911
|
-
}) : (
|
|
2910
|
+
G.success(r("保存成功")), f();
|
|
2911
|
+
}) : (G.success(r("保存成功")), f());
|
|
2912
2912
|
},
|
|
2913
2913
|
cancel: (e) => {
|
|
2914
2914
|
e && f();
|
|
@@ -2934,22 +2934,22 @@ var an = /* @__PURE__ */ a(tn, [["render", rn], ["__scopeId", "data-v-09bb1b8c"]
|
|
|
2934
2934
|
class: "view-actions"
|
|
2935
2935
|
};
|
|
2936
2936
|
function Cn(e, t, n, r, i, a) {
|
|
2937
|
-
let o =
|
|
2938
|
-
return
|
|
2937
|
+
let o = z("setting-outlined"), s = z("a-button"), c = z("plus-outlined"), l = z("a-tag"), u = z("star-filled"), d = z("star-outlined"), f = z("a-tooltip"), p = z("edit-outlined"), m = z("delete-outlined"), h = z("s-table");
|
|
2938
|
+
return F(), O("div", cn, [k("div", ln, [k("div", un, [k("span", dn, V(e.$t("个人视图")), 1), k("div", fn, [j(s, {
|
|
2939
2939
|
type: "link",
|
|
2940
2940
|
size: "small",
|
|
2941
2941
|
onClick: t[0] ||= (t) => e.handleManageView("personal")
|
|
2942
2942
|
}, {
|
|
2943
|
-
icon:
|
|
2943
|
+
icon: W(() => [j(o)]),
|
|
2944
2944
|
_: 1
|
|
2945
|
-
}),
|
|
2945
|
+
}), j(s, {
|
|
2946
2946
|
type: "link",
|
|
2947
2947
|
size: "small",
|
|
2948
2948
|
onClick: t[1] ||= (t) => e.addView("personal")
|
|
2949
2949
|
}, {
|
|
2950
|
-
icon:
|
|
2950
|
+
icon: W(() => [j(c)]),
|
|
2951
2951
|
_: 1
|
|
2952
|
-
})])]),
|
|
2952
|
+
})])]), j(h, {
|
|
2953
2953
|
selectedRowKeys: e.selectedRowKeys,
|
|
2954
2954
|
columns: e.viewTableColumns,
|
|
2955
2955
|
dataSource: e.personData,
|
|
@@ -2959,82 +2959,82 @@ function Cn(e, t, n, r, i, a) {
|
|
|
2959
2959
|
"row-key": "id",
|
|
2960
2960
|
"range-selection": !1
|
|
2961
2961
|
}, {
|
|
2962
|
-
bodyCell:
|
|
2962
|
+
bodyCell: W(({ column: t, record: n }) => [t.dataIndex === "name" ? (F(), O("div", pn, [k("span", {
|
|
2963
2963
|
class: "view-name",
|
|
2964
2964
|
onClick: (t) => e.handleApplyView(n)
|
|
2965
2965
|
}, [
|
|
2966
|
-
|
|
2967
|
-
n.is_default ? (
|
|
2966
|
+
A(V(n.name) + " ", 1),
|
|
2967
|
+
n.is_default ? (F(), E(l, {
|
|
2968
2968
|
key: 0,
|
|
2969
2969
|
color: "blue",
|
|
2970
2970
|
size: "small",
|
|
2971
2971
|
style: { "margin-left": "4px" }
|
|
2972
2972
|
}, {
|
|
2973
|
-
default:
|
|
2973
|
+
default: W(() => [A(V(e.$t("默认")), 1)]),
|
|
2974
2974
|
_: 1
|
|
2975
|
-
})) :
|
|
2976
|
-
n.is_system ? (
|
|
2975
|
+
})) : D("", !0),
|
|
2976
|
+
n.is_system ? (F(), E(l, {
|
|
2977
2977
|
key: 1,
|
|
2978
2978
|
color: "orange",
|
|
2979
2979
|
size: "small",
|
|
2980
2980
|
style: { "margin-left": "4px" }
|
|
2981
2981
|
}, {
|
|
2982
|
-
default:
|
|
2982
|
+
default: W(() => [A(V(e.$t("系统")), 1)]),
|
|
2983
2983
|
_: 1
|
|
2984
|
-
})) :
|
|
2985
|
-
], 8, mn), !n.is_system || e.is_auth ? (
|
|
2986
|
-
|
|
2987
|
-
default:
|
|
2984
|
+
})) : D("", !0)
|
|
2985
|
+
], 8, mn), !n.is_system || e.is_auth ? (F(), O("div", hn, [
|
|
2986
|
+
j(f, { title: e.$t("设为默认") }, {
|
|
2987
|
+
default: W(() => [j(s, {
|
|
2988
2988
|
type: "text",
|
|
2989
2989
|
size: "small",
|
|
2990
2990
|
onClick: (t) => e.handleSetDefault(n)
|
|
2991
2991
|
}, {
|
|
2992
|
-
icon:
|
|
2992
|
+
icon: W(() => [n.is_default ? (F(), E(u, {
|
|
2993
2993
|
key: 0,
|
|
2994
2994
|
style: { color: "#fadb14" }
|
|
2995
|
-
})) : (
|
|
2995
|
+
})) : (F(), E(d, { key: 1 }))]),
|
|
2996
2996
|
_: 2
|
|
2997
2997
|
}, 1032, ["onClick"])]),
|
|
2998
2998
|
_: 2
|
|
2999
2999
|
}, 1032, ["title"]),
|
|
3000
|
-
|
|
3000
|
+
j(s, {
|
|
3001
3001
|
type: "text",
|
|
3002
3002
|
size: "small",
|
|
3003
3003
|
onClick: (t) => e.handleEditView(n)
|
|
3004
3004
|
}, {
|
|
3005
|
-
icon:
|
|
3005
|
+
icon: W(() => [j(p)]),
|
|
3006
3006
|
_: 2
|
|
3007
3007
|
}, 1032, ["onClick"]),
|
|
3008
|
-
|
|
3008
|
+
j(s, {
|
|
3009
3009
|
type: "text",
|
|
3010
3010
|
size: "small",
|
|
3011
3011
|
danger: "",
|
|
3012
3012
|
onClick: (t) => e.handleDeleteView(n)
|
|
3013
3013
|
}, {
|
|
3014
|
-
icon:
|
|
3014
|
+
icon: W(() => [j(m)]),
|
|
3015
3015
|
_: 2
|
|
3016
3016
|
}, 1032, ["onClick"])
|
|
3017
|
-
])) :
|
|
3017
|
+
])) : D("", !0)])) : D("", !0)]),
|
|
3018
3018
|
_: 1
|
|
3019
3019
|
}, 8, [
|
|
3020
3020
|
"selectedRowKeys",
|
|
3021
3021
|
"columns",
|
|
3022
3022
|
"dataSource"
|
|
3023
|
-
])]),
|
|
3023
|
+
])]), k("div", gn, [k("div", _n, [k("span", vn, V(e.$t("公共视图")), 1), k("div", yn, [j(s, {
|
|
3024
3024
|
type: "link",
|
|
3025
3025
|
size: "small",
|
|
3026
3026
|
onClick: t[2] ||= (t) => e.handleManageView("public")
|
|
3027
3027
|
}, {
|
|
3028
|
-
icon:
|
|
3028
|
+
icon: W(() => [j(o)]),
|
|
3029
3029
|
_: 1
|
|
3030
|
-
}),
|
|
3030
|
+
}), j(s, {
|
|
3031
3031
|
type: "link",
|
|
3032
3032
|
size: "small",
|
|
3033
3033
|
onClick: t[3] ||= (t) => e.addView("public")
|
|
3034
3034
|
}, {
|
|
3035
|
-
icon:
|
|
3035
|
+
icon: W(() => [j(c)]),
|
|
3036
3036
|
_: 1
|
|
3037
|
-
})])]),
|
|
3037
|
+
})])]), j(h, {
|
|
3038
3038
|
selectedRowKeys: e.selectedRowKeys,
|
|
3039
3039
|
columns: e.viewTableColumns,
|
|
3040
3040
|
dataSource: e.publicData,
|
|
@@ -3044,62 +3044,62 @@ function Cn(e, t, n, r, i, a) {
|
|
|
3044
3044
|
"row-key": "id",
|
|
3045
3045
|
"range-selection": !1
|
|
3046
3046
|
}, {
|
|
3047
|
-
bodyCell:
|
|
3047
|
+
bodyCell: W(({ column: t, record: n }) => [t.dataIndex === "name" ? (F(), O("div", bn, [k("span", {
|
|
3048
3048
|
class: "view-name",
|
|
3049
3049
|
onClick: (t) => e.handleApplyView(n)
|
|
3050
3050
|
}, [
|
|
3051
|
-
|
|
3052
|
-
n.is_default ? (
|
|
3051
|
+
A(V(n.name) + " ", 1),
|
|
3052
|
+
n.is_default ? (F(), E(l, {
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
color: "blue",
|
|
3055
3055
|
size: "small",
|
|
3056
3056
|
style: { "margin-left": "4px" }
|
|
3057
3057
|
}, {
|
|
3058
|
-
default:
|
|
3058
|
+
default: W(() => [A(V(e.$t("默认")), 1)]),
|
|
3059
3059
|
_: 1
|
|
3060
|
-
})) :
|
|
3061
|
-
n.is_system ? (
|
|
3060
|
+
})) : D("", !0),
|
|
3061
|
+
n.is_system ? (F(), E(l, {
|
|
3062
3062
|
key: 1,
|
|
3063
3063
|
color: "orange",
|
|
3064
3064
|
size: "small",
|
|
3065
3065
|
style: { "margin-left": "4px" }
|
|
3066
3066
|
}, {
|
|
3067
|
-
default:
|
|
3067
|
+
default: W(() => [A(V(e.$t("系统")), 1)]),
|
|
3068
3068
|
_: 1
|
|
3069
|
-
})) :
|
|
3070
|
-
], 8, xn), !n.is_system || e.is_auth ? (
|
|
3071
|
-
|
|
3072
|
-
default:
|
|
3069
|
+
})) : D("", !0)
|
|
3070
|
+
], 8, xn), !n.is_system || e.is_auth ? (F(), O("div", Sn, [
|
|
3071
|
+
j(f, { title: e.$t("设为默认") }, {
|
|
3072
|
+
default: W(() => [j(s, {
|
|
3073
3073
|
type: "text",
|
|
3074
3074
|
size: "small",
|
|
3075
3075
|
onClick: (t) => e.handleSetDefault(n)
|
|
3076
3076
|
}, {
|
|
3077
|
-
icon:
|
|
3077
|
+
icon: W(() => [n.is_default ? (F(), E(u, {
|
|
3078
3078
|
key: 0,
|
|
3079
3079
|
style: { color: "#fadb14" }
|
|
3080
|
-
})) : (
|
|
3080
|
+
})) : (F(), E(d, { key: 1 }))]),
|
|
3081
3081
|
_: 2
|
|
3082
3082
|
}, 1032, ["onClick"])]),
|
|
3083
3083
|
_: 2
|
|
3084
3084
|
}, 1032, ["title"]),
|
|
3085
|
-
|
|
3085
|
+
j(s, {
|
|
3086
3086
|
type: "text",
|
|
3087
3087
|
size: "small",
|
|
3088
3088
|
onClick: (t) => e.handleEditView(n)
|
|
3089
3089
|
}, {
|
|
3090
|
-
icon:
|
|
3090
|
+
icon: W(() => [j(p)]),
|
|
3091
3091
|
_: 2
|
|
3092
3092
|
}, 1032, ["onClick"]),
|
|
3093
|
-
|
|
3093
|
+
j(s, {
|
|
3094
3094
|
type: "text",
|
|
3095
3095
|
size: "small",
|
|
3096
3096
|
danger: "",
|
|
3097
3097
|
onClick: (t) => e.handleDeleteView(n)
|
|
3098
3098
|
}, {
|
|
3099
|
-
icon:
|
|
3099
|
+
icon: W(() => [j(m)]),
|
|
3100
3100
|
_: 2
|
|
3101
3101
|
}, 1032, ["onClick"])
|
|
3102
|
-
])) :
|
|
3102
|
+
])) : D("", !0)])) : D("", !0)]),
|
|
3103
3103
|
_: 1
|
|
3104
3104
|
}, 8, [
|
|
3105
3105
|
"selectedRowKeys",
|
|
@@ -3109,7 +3109,7 @@ function Cn(e, t, n, r, i, a) {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
//#endregion
|
|
3111
3111
|
//#region src/components/tablePro/tableConfig/index.vue?vue&type=script&lang.ts
|
|
3112
|
-
var wn =
|
|
3112
|
+
var wn = M({
|
|
3113
3113
|
name: "ColumnEditView",
|
|
3114
3114
|
components: {
|
|
3115
3115
|
ColumnsConfig: an,
|
|
@@ -3135,10 +3135,10 @@ var wn = N({
|
|
|
3135
3135
|
},
|
|
3136
3136
|
emits: ["change"],
|
|
3137
3137
|
setup(e, { emit: t }) {
|
|
3138
|
-
let n =
|
|
3138
|
+
let n = L("columns"), r = (e) => {
|
|
3139
3139
|
t("change", e);
|
|
3140
3140
|
}, { fetchViews: i } = jt();
|
|
3141
|
-
return
|
|
3141
|
+
return U(() => n.value, (e) => {
|
|
3142
3142
|
e === "views" && i();
|
|
3143
3143
|
}), {
|
|
3144
3144
|
activeTab: n,
|
|
@@ -3147,25 +3147,25 @@ var wn = N({
|
|
|
3147
3147
|
}
|
|
3148
3148
|
}), Tn = { class: "column-edit-view-wrapper" }, En = { class: "tab-content-scroll" }, Dn = { class: "tab-content-scroll" };
|
|
3149
3149
|
function On(e, t, n, r, i, a) {
|
|
3150
|
-
let o =
|
|
3151
|
-
return
|
|
3150
|
+
let o = z("columns-config"), s = z("a-tab-pane"), c = z("views-config"), l = z("a-tabs");
|
|
3151
|
+
return F(), O("div", Tn, [j(l, {
|
|
3152
3152
|
activeKey: e.activeTab,
|
|
3153
3153
|
"onUpdate:activeKey": t[0] ||= (t) => e.activeTab = t
|
|
3154
3154
|
}, {
|
|
3155
|
-
default:
|
|
3155
|
+
default: W(() => [j(s, {
|
|
3156
3156
|
key: "columns",
|
|
3157
3157
|
tab: e.$t("列设置")
|
|
3158
3158
|
}, {
|
|
3159
|
-
default:
|
|
3159
|
+
default: W(() => [k("div", En, [j(o, {
|
|
3160
3160
|
columns: e.columns,
|
|
3161
3161
|
onChange: e.onColumnChange
|
|
3162
3162
|
}, null, 8, ["columns", "onChange"])])]),
|
|
3163
3163
|
_: 1
|
|
3164
|
-
}, 8, ["tab"]), e.is_view ? (
|
|
3164
|
+
}, 8, ["tab"]), e.is_view ? (F(), E(s, {
|
|
3165
3165
|
key: "views",
|
|
3166
3166
|
tab: e.$t("视图管理")
|
|
3167
3167
|
}, {
|
|
3168
|
-
default:
|
|
3168
|
+
default: W(() => [k("div", Dn, [j(c, {
|
|
3169
3169
|
columns: e.columns,
|
|
3170
3170
|
view_key: e.view_key,
|
|
3171
3171
|
view_flag_name: e.view_flag_name,
|
|
@@ -3177,13 +3177,13 @@ function On(e, t, n, r, i, a) {
|
|
|
3177
3177
|
"is_view"
|
|
3178
3178
|
])])]),
|
|
3179
3179
|
_: 1
|
|
3180
|
-
}, 8, ["tab"])) :
|
|
3180
|
+
}, 8, ["tab"])) : D("", !0)]),
|
|
3181
3181
|
_: 1
|
|
3182
3182
|
}, 8, ["activeKey"])]);
|
|
3183
3183
|
}
|
|
3184
3184
|
var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]]), An = ({ dataSource: n, button: i, selectedRowKeys: a }) => {
|
|
3185
3185
|
let o = e();
|
|
3186
|
-
a =
|
|
3186
|
+
a = H(a);
|
|
3187
3187
|
let s = i.preProcessData, c = i.model_config, l = c.init_data, u = c.batch_api_fields, d = c.title, f = c.content, p = c.ok_url, m = c.cancel_url, h = c.method || "post", _ = t().currentOrg?.id, v = n;
|
|
3188
3188
|
s && (v = s({
|
|
3189
3189
|
dataSource: n,
|
|
@@ -3196,7 +3196,7 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3196
3196
|
org_id: _
|
|
3197
3197
|
};
|
|
3198
3198
|
let y = Ze.compile(d || ""), b = Ze.compile(f || "");
|
|
3199
|
-
|
|
3199
|
+
Te.confirm({
|
|
3200
3200
|
title: y({ record: v }),
|
|
3201
3201
|
content: b({ record: v }),
|
|
3202
3202
|
onOk() {
|
|
@@ -3218,11 +3218,11 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3218
3218
|
})), m && (v = {
|
|
3219
3219
|
...v,
|
|
3220
3220
|
...m
|
|
3221
|
-
}),
|
|
3221
|
+
}), C(I({
|
|
3222
3222
|
open: !0,
|
|
3223
3223
|
loading: !1,
|
|
3224
3224
|
component: u,
|
|
3225
|
-
record:
|
|
3225
|
+
record: H(v),
|
|
3226
3226
|
dataSource: n,
|
|
3227
3227
|
button: i,
|
|
3228
3228
|
title: Ze.compile(l || "")({ record: v }),
|
|
@@ -3266,27 +3266,27 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3266
3266
|
...x,
|
|
3267
3267
|
...m
|
|
3268
3268
|
});
|
|
3269
|
-
let
|
|
3269
|
+
let ee = I({
|
|
3270
3270
|
settings: v.settings || {
|
|
3271
3271
|
labelAlign: "right",
|
|
3272
3272
|
layout: "vertical",
|
|
3273
3273
|
col: []
|
|
3274
3274
|
},
|
|
3275
3275
|
dynamicFieldList: v.dynamicFieldList || [],
|
|
3276
|
-
model:
|
|
3276
|
+
model: I(x),
|
|
3277
3277
|
rules: v.rules || {},
|
|
3278
3278
|
options: v.options || {}
|
|
3279
|
-
}),
|
|
3279
|
+
}), S = I({
|
|
3280
3280
|
open: !0,
|
|
3281
3281
|
loading: !1,
|
|
3282
3282
|
title: Ze.compile(l || "")({ record: x }),
|
|
3283
|
-
form:
|
|
3283
|
+
form: ee,
|
|
3284
3284
|
ok: (e) => new Promise(function(t, s) {
|
|
3285
3285
|
if (!u) {
|
|
3286
3286
|
t(null);
|
|
3287
3287
|
return;
|
|
3288
3288
|
}
|
|
3289
|
-
|
|
3289
|
+
S.loading = !0;
|
|
3290
3290
|
let c = e;
|
|
3291
3291
|
_ && (c = {
|
|
3292
3292
|
...c,
|
|
@@ -3300,11 +3300,11 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3300
3300
|
method: p,
|
|
3301
3301
|
data: c
|
|
3302
3302
|
}).then(() => {
|
|
3303
|
-
|
|
3303
|
+
G.success("操作成功"), r().emit("refresh"), t(null);
|
|
3304
3304
|
}).catch((e) => {
|
|
3305
3305
|
s(e);
|
|
3306
3306
|
}).finally(() => {
|
|
3307
|
-
|
|
3307
|
+
S.loading = !1;
|
|
3308
3308
|
});
|
|
3309
3309
|
}),
|
|
3310
3310
|
cancel: (e) => new Promise(function(t, s) {
|
|
@@ -3312,7 +3312,7 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3312
3312
|
t(null);
|
|
3313
3313
|
return;
|
|
3314
3314
|
}
|
|
3315
|
-
|
|
3315
|
+
S.loading = !0;
|
|
3316
3316
|
let c = e;
|
|
3317
3317
|
_ && (c = {
|
|
3318
3318
|
...c,
|
|
@@ -3330,12 +3330,12 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3330
3330
|
}).catch((e) => {
|
|
3331
3331
|
s(e);
|
|
3332
3332
|
}).finally(() => {
|
|
3333
|
-
|
|
3333
|
+
S.loading = !1;
|
|
3334
3334
|
});
|
|
3335
3335
|
})
|
|
3336
3336
|
});
|
|
3337
|
-
|
|
3338
|
-
}, Nn =
|
|
3337
|
+
C(S);
|
|
3338
|
+
}, Nn = M({
|
|
3339
3339
|
name: "HeadBtnChildren",
|
|
3340
3340
|
props: {
|
|
3341
3341
|
children_list: {
|
|
@@ -3370,13 +3370,13 @@ var kn = /* @__PURE__ */ a(wn, [["render", On], ["__scopeId", "data-v-dd6fb2f1"]
|
|
|
3370
3370
|
//#endregion
|
|
3371
3371
|
//#region src/components/tablePro/headBtnChildren.vue
|
|
3372
3372
|
function Pn(e, t, n, r, i, a) {
|
|
3373
|
-
let o =
|
|
3374
|
-
return
|
|
3373
|
+
let o = z("head-btn-children", !0), s = z("a-sub-menu"), c = z("a-menu-item");
|
|
3374
|
+
return F(!0), O(w, null, R(e.children_list, (t, n) => (F(), O(w, { key: n }, [t?.children && t.children.length > 0 ? (F(), E(s, {
|
|
3375
3375
|
key: n,
|
|
3376
3376
|
title: t.name,
|
|
3377
3377
|
disabled: t.disabled
|
|
3378
3378
|
}, {
|
|
3379
|
-
default:
|
|
3379
|
+
default: W(() => [j(o, {
|
|
3380
3380
|
auth_batch_update_list: e.auth_batch_update_list,
|
|
3381
3381
|
children_list: t.children,
|
|
3382
3382
|
"selected-row-keys": e.selectedRowKeys,
|
|
@@ -3394,7 +3394,7 @@ function Pn(e, t, n, r, i, a) {
|
|
|
3394
3394
|
"handleBtnClick"
|
|
3395
3395
|
])]),
|
|
3396
3396
|
_: 2
|
|
3397
|
-
}, 1032, ["title", "disabled"])) : (
|
|
3397
|
+
}, 1032, ["title", "disabled"])) : (F(), E(c, {
|
|
3398
3398
|
key: n,
|
|
3399
3399
|
disabled: t.disabled,
|
|
3400
3400
|
onClick: () => {
|
|
@@ -3407,13 +3407,13 @@ function Pn(e, t, n, r, i, a) {
|
|
|
3407
3407
|
});
|
|
3408
3408
|
}
|
|
3409
3409
|
}, {
|
|
3410
|
-
default:
|
|
3410
|
+
default: W(() => [A(V(t.name), 1)]),
|
|
3411
3411
|
_: 2
|
|
3412
3412
|
}, 1032, ["disabled", "onClick"]))], 64))), 128);
|
|
3413
3413
|
}
|
|
3414
3414
|
//#endregion
|
|
3415
3415
|
//#region src/components/tablePro/headBtn.vue?vue&type=script&lang.ts
|
|
3416
|
-
var Fn =
|
|
3416
|
+
var Fn = M({
|
|
3417
3417
|
name: "HeadBtn",
|
|
3418
3418
|
props: {
|
|
3419
3419
|
auth_batch_update_list: {
|
|
@@ -3455,7 +3455,7 @@ var Fn = N({
|
|
|
3455
3455
|
},
|
|
3456
3456
|
components: { HeadBtnChildren: /* @__PURE__ */ a(Nn, [["render", Pn]]) },
|
|
3457
3457
|
setup(e) {
|
|
3458
|
-
let { t } =
|
|
3458
|
+
let { t } = Je(), n = L({}), r = Ke(), i = (e, { dataSource: t, selectedRowKeys: n, batchList: r }) => {
|
|
3459
3459
|
if (r?.length > 0) {
|
|
3460
3460
|
let t = e.find((e) => e.name === "批量操作");
|
|
3461
3461
|
t ? !t.children || t.children.length == 0 ? t.children = r : t.children = [...t.children, ...r] : e.push({
|
|
@@ -3491,7 +3491,7 @@ var Fn = N({
|
|
|
3491
3491
|
}), a;
|
|
3492
3492
|
};
|
|
3493
3493
|
return {
|
|
3494
|
-
filter_head_btn_list:
|
|
3494
|
+
filter_head_btn_list: T(() => {
|
|
3495
3495
|
if (!e.auth_head_btn_list) return [];
|
|
3496
3496
|
let t = i((0, Z.cloneDeep)(e.auth_head_btn_list), {
|
|
3497
3497
|
dataSource: e.dataSource,
|
|
@@ -3522,8 +3522,8 @@ var Fn = N({
|
|
|
3522
3522
|
//#endregion
|
|
3523
3523
|
//#region src/components/tablePro/headBtn.vue
|
|
3524
3524
|
function In(e, t, n, r, i, a) {
|
|
3525
|
-
let o =
|
|
3526
|
-
return
|
|
3525
|
+
let o = z("plus-outlined"), s = z("a-button"), c = z("down-outlined"), l = z("up-outlined"), u = z("head-btn-children"), d = z("a-menu"), f = z("a-dropdown");
|
|
3526
|
+
return F(!0), O(w, null, R(e.filter_head_btn_list, (t, n) => (F(), O(w, { key: n }, [!t.children || t.children?.length == 0 ? (F(), E(s, {
|
|
3527
3527
|
key: 0,
|
|
3528
3528
|
type: t.clazz,
|
|
3529
3529
|
size: "small",
|
|
@@ -3538,20 +3538,20 @@ function In(e, t, n, r, i, a) {
|
|
|
3538
3538
|
router: e.router
|
|
3539
3539
|
})
|
|
3540
3540
|
}, {
|
|
3541
|
-
default:
|
|
3541
|
+
default: W(() => [t.icon === "plus-outlined" ? (F(), E(o, { key: 0 })) : D("", !0), A(" " + V(t.name), 1)]),
|
|
3542
3542
|
_: 2
|
|
3543
3543
|
}, 1032, [
|
|
3544
3544
|
"type",
|
|
3545
3545
|
"disabled",
|
|
3546
3546
|
"onClick"
|
|
3547
|
-
])) : (
|
|
3547
|
+
])) : (F(), E(f, {
|
|
3548
3548
|
key: 1,
|
|
3549
3549
|
open: e.isMenuOpen[n],
|
|
3550
3550
|
"onUpdate:open": (t) => e.isMenuOpen[n] = t,
|
|
3551
3551
|
trigger: "click"
|
|
3552
3552
|
}, {
|
|
3553
|
-
overlay:
|
|
3554
|
-
default:
|
|
3553
|
+
overlay: W(() => [j(d, null, {
|
|
3554
|
+
default: W(() => [j(u, {
|
|
3555
3555
|
children_list: t.children,
|
|
3556
3556
|
"selected-row-keys": e.selectedRowKeys,
|
|
3557
3557
|
dataSource: e.dataSource,
|
|
@@ -3568,33 +3568,33 @@ function In(e, t, n, r, i, a) {
|
|
|
3568
3568
|
])]),
|
|
3569
3569
|
_: 2
|
|
3570
3570
|
}, 1024)]),
|
|
3571
|
-
default:
|
|
3571
|
+
default: W(() => [j(s, {
|
|
3572
3572
|
bordered: !1,
|
|
3573
3573
|
size: "small"
|
|
3574
3574
|
}, {
|
|
3575
|
-
default:
|
|
3576
|
-
|
|
3577
|
-
e.isMenuOpen[n] ?
|
|
3575
|
+
default: W(() => [
|
|
3576
|
+
A(V(t.name) + " ", 1),
|
|
3577
|
+
e.isMenuOpen[n] ? D("", !0) : (F(), E(c, {
|
|
3578
3578
|
key: 0,
|
|
3579
3579
|
style: {
|
|
3580
3580
|
"font-size": "10px",
|
|
3581
3581
|
cursor: "pointer"
|
|
3582
3582
|
}
|
|
3583
3583
|
})),
|
|
3584
|
-
e.isMenuOpen[n] ? (
|
|
3584
|
+
e.isMenuOpen[n] ? (F(), E(l, {
|
|
3585
3585
|
key: 1,
|
|
3586
3586
|
style: {
|
|
3587
3587
|
"font-size": "10px",
|
|
3588
3588
|
cursor: "pointer"
|
|
3589
3589
|
}
|
|
3590
|
-
})) :
|
|
3590
|
+
})) : D("", !0)
|
|
3591
3591
|
]),
|
|
3592
3592
|
_: 2
|
|
3593
3593
|
}, 1024)]),
|
|
3594
3594
|
_: 2
|
|
3595
3595
|
}, 1032, ["open", "onUpdate:open"]))], 64))), 128);
|
|
3596
3596
|
}
|
|
3597
|
-
var Ln = /* @__PURE__ */ a(Fn, [["render", In]]), Rn =
|
|
3597
|
+
var Ln = /* @__PURE__ */ a(Fn, [["render", In]]), Rn = M({
|
|
3598
3598
|
name: "refreshTypeModal",
|
|
3599
3599
|
props: {
|
|
3600
3600
|
refreshType: {
|
|
@@ -3607,12 +3607,12 @@ var Ln = /* @__PURE__ */ a(Fn, [["render", In]]), Rn = N({
|
|
|
3607
3607
|
}
|
|
3608
3608
|
},
|
|
3609
3609
|
components: {
|
|
3610
|
-
LoadingOutlined:
|
|
3611
|
-
ReloadOutlined:
|
|
3610
|
+
LoadingOutlined: Re,
|
|
3611
|
+
ReloadOutlined: Be
|
|
3612
3612
|
},
|
|
3613
3613
|
emits: ["refresh", "typeChange"],
|
|
3614
3614
|
setup(e, { emit: t }) {
|
|
3615
|
-
let n = !1, r =
|
|
3615
|
+
let n = !1, r = L(0), i = L(!0), a = (n) => {
|
|
3616
3616
|
t("typeChange", n), r.value = -1, e.refreshType == "手动" && t("refresh");
|
|
3617
3617
|
}, o = setInterval(() => {
|
|
3618
3618
|
if (r.value < 0) switch (e.refreshType) {
|
|
@@ -3629,13 +3629,13 @@ var Ln = /* @__PURE__ */ a(Fn, [["render", In]]), Rn = N({
|
|
|
3629
3629
|
}
|
|
3630
3630
|
else r.value == 0 ? (i.value && !e.loading && n && t("refresh", !0), r.value = -1) : r.value--;
|
|
3631
3631
|
}, 1e3);
|
|
3632
|
-
return
|
|
3632
|
+
return U(() => e.loading, () => {
|
|
3633
3633
|
e.loading || (r.value = -1, n = !0);
|
|
3634
|
-
}), ve(() => {
|
|
3635
|
-
i.value ||= !0;
|
|
3636
3634
|
}), ye(() => {
|
|
3635
|
+
i.value ||= !0;
|
|
3636
|
+
}), be(() => {
|
|
3637
3637
|
i.value = !1;
|
|
3638
|
-
}),
|
|
3638
|
+
}), Se(() => {
|
|
3639
3639
|
clearInterval(o);
|
|
3640
3640
|
}), {
|
|
3641
3641
|
props: e,
|
|
@@ -3648,35 +3648,35 @@ var Ln = /* @__PURE__ */ a(Fn, [["render", In]]), Rn = N({
|
|
|
3648
3648
|
}
|
|
3649
3649
|
}), zn = { key: 0 }, Bn = { key: 2 };
|
|
3650
3650
|
function Vn(e, t, n, r, i, a) {
|
|
3651
|
-
let o =
|
|
3652
|
-
return
|
|
3653
|
-
content:
|
|
3651
|
+
let o = z("a-button"), s = z("a-menu-item"), c = z("a-menu"), l = z("a-dropdown"), u = z("reload-outlined"), d = z("loading-outlined"), f = z("a-popover");
|
|
3652
|
+
return F(), E(f, null, {
|
|
3653
|
+
content: W(() => [j(o, {
|
|
3654
3654
|
size: "small",
|
|
3655
3655
|
style: { margin: "10px 5px" },
|
|
3656
3656
|
type: e.refreshType === "手动" ? "primary" : "default",
|
|
3657
3657
|
onClick: t[0] ||= (t) => e.selectRefreshType("手动")
|
|
3658
3658
|
}, {
|
|
3659
|
-
default:
|
|
3659
|
+
default: W(() => [A(V(e.$t("手动刷新")), 1)]),
|
|
3660
3660
|
_: 1
|
|
3661
|
-
}, 8, ["type"]),
|
|
3662
|
-
overlay:
|
|
3663
|
-
default:
|
|
3664
|
-
|
|
3665
|
-
default:
|
|
3661
|
+
}, 8, ["type"]), j(l, { class: "dropdown" }, {
|
|
3662
|
+
overlay: W(() => [j(c, null, {
|
|
3663
|
+
default: W(() => [
|
|
3664
|
+
j(s, null, {
|
|
3665
|
+
default: W(() => [k("a", {
|
|
3666
3666
|
href: "javascript:;",
|
|
3667
3667
|
onClick: t[1] ||= (t) => e.selectRefreshType("5s")
|
|
3668
3668
|
}, " 5s ")]),
|
|
3669
3669
|
_: 1
|
|
3670
3670
|
}),
|
|
3671
|
-
|
|
3672
|
-
default:
|
|
3671
|
+
j(s, null, {
|
|
3672
|
+
default: W(() => [k("a", {
|
|
3673
3673
|
href: "javascript:;",
|
|
3674
3674
|
onClick: t[2] ||= (t) => e.selectRefreshType("10s")
|
|
3675
3675
|
}, " 10s ")]),
|
|
3676
3676
|
_: 1
|
|
3677
3677
|
}),
|
|
3678
|
-
|
|
3679
|
-
default:
|
|
3678
|
+
j(s, null, {
|
|
3679
|
+
default: W(() => [k("a", {
|
|
3680
3680
|
href: "javascript:;",
|
|
3681
3681
|
onClick: t[3] ||= (t) => e.selectRefreshType("30s")
|
|
3682
3682
|
}, " 30s ")]),
|
|
@@ -3685,23 +3685,23 @@ function Vn(e, t, n, r, i, a) {
|
|
|
3685
3685
|
]),
|
|
3686
3686
|
_: 1
|
|
3687
3687
|
})]),
|
|
3688
|
-
default:
|
|
3688
|
+
default: W(() => [j(o, {
|
|
3689
3689
|
size: "small",
|
|
3690
3690
|
style: { margin: "10px 5px" },
|
|
3691
3691
|
type: e.refreshType === "手动" ? "default" : "primary"
|
|
3692
3692
|
}, {
|
|
3693
|
-
default:
|
|
3693
|
+
default: W(() => [A(V(e.$t("自动刷新")) + " ", 1), e.refreshType === "手动" ? D("", !0) : (F(), O("span", zn, "(" + V(e.refreshType) + ")", 1))]),
|
|
3694
3694
|
_: 1
|
|
3695
3695
|
}, 8, ["type"])]),
|
|
3696
3696
|
_: 1
|
|
3697
3697
|
})]),
|
|
3698
|
-
default:
|
|
3699
|
-
e.refreshType === "手动" ? (
|
|
3698
|
+
default: W(() => [
|
|
3699
|
+
e.refreshType === "手动" ? (F(), E(u, {
|
|
3700
3700
|
key: 0,
|
|
3701
3701
|
onClick: e.refresh
|
|
3702
|
-
}, null, 8, ["onClick"])) :
|
|
3703
|
-
(e.countdown == -1 || e.loading) && e.refreshType !== "手动" ? (
|
|
3704
|
-
e.countdown >= 0 && !e.loading ? (
|
|
3702
|
+
}, null, 8, ["onClick"])) : D("", !0),
|
|
3703
|
+
(e.countdown == -1 || e.loading) && e.refreshType !== "手动" ? (F(), E(d, { key: 1 })) : D("", !0),
|
|
3704
|
+
e.countdown >= 0 && !e.loading ? (F(), O("span", Bn, V(e.countdown + 1) + "s", 1)) : D("", !0)
|
|
3705
3705
|
]),
|
|
3706
3706
|
_: 1
|
|
3707
3707
|
});
|
|
@@ -3721,7 +3721,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
3721
3721
|
}, rr = {
|
|
3722
3722
|
key: 4,
|
|
3723
3723
|
class: "ant-pro-table-list-toolbar-setting-item"
|
|
3724
|
-
}, ir = /* @__PURE__ */ a(/* @__PURE__ */
|
|
3724
|
+
}, ir = /* @__PURE__ */ a(/* @__PURE__ */ M({
|
|
3725
3725
|
__name: "tableHeader",
|
|
3726
3726
|
props: {
|
|
3727
3727
|
config: {
|
|
@@ -3793,82 +3793,82 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
3793
3793
|
"tableSizeChange"
|
|
3794
3794
|
],
|
|
3795
3795
|
setup(e, { emit: t }) {
|
|
3796
|
-
let n = t, r =
|
|
3796
|
+
let n = t, r = L(!1), i = L(null);
|
|
3797
3797
|
Xe(i, (e) => {
|
|
3798
3798
|
n("heightChange", e[0].contentRect.height);
|
|
3799
3799
|
});
|
|
3800
|
-
let { currentView: a, isViewChange: o } = jt(), s =
|
|
3800
|
+
let { currentView: a, isViewChange: o } = jt(), s = L(!1);
|
|
3801
3801
|
return (t, n) => {
|
|
3802
|
-
let c =
|
|
3803
|
-
return
|
|
3802
|
+
let c = z("down-outlined"), l = z("up-outlined"), u = z("a-tag"), d = z("a-menu-item"), f = z("a-menu"), p = z("a-dropdown"), m = z("a-space"), h = z("a-divider"), g = z("a-button"), _ = z("a-tooltip"), v = z("a-modal");
|
|
3803
|
+
return F(), O(w, null, [e.config?.hide_header ? D("", !0) : (F(), O("div", {
|
|
3804
3804
|
key: 0,
|
|
3805
3805
|
class: "ant-pro-table-list-toolbar",
|
|
3806
3806
|
ref_key: "headerRef",
|
|
3807
3807
|
ref: i
|
|
3808
|
-
}, [
|
|
3809
|
-
n[14] ||=
|
|
3808
|
+
}, [k("div", Un, [k("div", Wn, [k("div", Gn, [e.config?.show_title ? (F(), O("span", Kn, V(e.config?.title), 1)) : D("", !0), e.config?.show_current_view ? (F(), O("div", qn, [k("span", null, V(H(a)?.name), 1), H(o) && H(a) && H(a).id !== "no-view" ? (F(), O(w, { key: 0 }, [
|
|
3809
|
+
n[14] ||= k("span", { style: {
|
|
3810
3810
|
"font-size": "12px",
|
|
3811
3811
|
"margin-right": "5px"
|
|
3812
3812
|
} }, "(已编辑)", -1),
|
|
3813
|
-
|
|
3813
|
+
j(p, {
|
|
3814
3814
|
open: s.value,
|
|
3815
3815
|
"onUpdate:open": n[2] ||= (e) => s.value = e,
|
|
3816
3816
|
trigger: "click"
|
|
3817
3817
|
}, {
|
|
3818
|
-
overlay:
|
|
3819
|
-
default:
|
|
3820
|
-
default:
|
|
3818
|
+
overlay: W(() => [j(f, null, {
|
|
3819
|
+
default: W(() => [j(d, null, {
|
|
3820
|
+
default: W(() => [k("span", { onClick: n[0] ||= () => {
|
|
3821
3821
|
s.value = !1, e.selfEventBus.emit("saveView");
|
|
3822
|
-
} },
|
|
3822
|
+
} }, V(t.$t("保存视图")), 1)]),
|
|
3823
3823
|
_: 1
|
|
3824
|
-
}),
|
|
3825
|
-
default:
|
|
3824
|
+
}), j(d, null, {
|
|
3825
|
+
default: W(() => [k("span", { onClick: n[1] ||= () => {
|
|
3826
3826
|
s.value = !1, e.selfEventBus.emit("saveNewView");
|
|
3827
|
-
} },
|
|
3827
|
+
} }, V(t.$t("另存为新视图")), 1)]),
|
|
3828
3828
|
_: 1
|
|
3829
3829
|
})]),
|
|
3830
3830
|
_: 1
|
|
3831
3831
|
})]),
|
|
3832
|
-
default:
|
|
3832
|
+
default: W(() => [j(u, {
|
|
3833
3833
|
bordered: !1,
|
|
3834
3834
|
style: { cursor: "pointer" }
|
|
3835
3835
|
}, {
|
|
3836
|
-
default:
|
|
3837
|
-
|
|
3838
|
-
s.value ?
|
|
3836
|
+
default: W(() => [
|
|
3837
|
+
A(V(t.$t("保存")) + " ", 1),
|
|
3838
|
+
s.value ? D("", !0) : (F(), E(c, {
|
|
3839
3839
|
key: 0,
|
|
3840
3840
|
style: {
|
|
3841
3841
|
"font-size": "10px",
|
|
3842
3842
|
cursor: "pointer"
|
|
3843
3843
|
}
|
|
3844
3844
|
})),
|
|
3845
|
-
s.value ? (
|
|
3845
|
+
s.value ? (F(), E(l, {
|
|
3846
3846
|
key: 1,
|
|
3847
3847
|
style: {
|
|
3848
3848
|
"font-size": "10px",
|
|
3849
3849
|
cursor: "pointer"
|
|
3850
3850
|
}
|
|
3851
|
-
})) :
|
|
3851
|
+
})) : D("", !0)
|
|
3852
3852
|
]),
|
|
3853
3853
|
_: 1
|
|
3854
3854
|
})]),
|
|
3855
3855
|
_: 1
|
|
3856
3856
|
}, 8, ["open"]),
|
|
3857
|
-
|
|
3857
|
+
j(u, {
|
|
3858
3858
|
bordered: !1,
|
|
3859
3859
|
style: { cursor: "pointer" },
|
|
3860
3860
|
onClick: n[3] ||= () => {
|
|
3861
3861
|
e.selfEventBus.emit("reinit");
|
|
3862
3862
|
}
|
|
3863
3863
|
}, {
|
|
3864
|
-
default:
|
|
3864
|
+
default: W(() => [A(V(t.$t("重置")), 1)]),
|
|
3865
3865
|
_: 1
|
|
3866
3866
|
})
|
|
3867
|
-
], 64)) :
|
|
3868
|
-
|
|
3869
|
-
default:
|
|
3870
|
-
|
|
3871
|
-
|
|
3867
|
+
], 64)) : D("", !0)])) : D("", !0)])]), k("div", Jn, [
|
|
3868
|
+
j(m, { align: "center" }, {
|
|
3869
|
+
default: W(() => [
|
|
3870
|
+
we(t.$slots, "header_bar_before_btn", {}, void 0, !0),
|
|
3871
|
+
j(Ln, {
|
|
3872
3872
|
auth_batch_update_list: e.auth_batch_update_list,
|
|
3873
3873
|
auth_head_btn_list: e.auth_head_btn_list,
|
|
3874
3874
|
selectedRowKeys: e.selectedRowKeys,
|
|
@@ -3888,93 +3888,93 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
3888
3888
|
"router",
|
|
3889
3889
|
"event_obj"
|
|
3890
3890
|
]),
|
|
3891
|
-
|
|
3891
|
+
we(t.$slots, "header_bar_after_btn", {}, void 0, !0)
|
|
3892
3892
|
]),
|
|
3893
3893
|
_: 3
|
|
3894
3894
|
}),
|
|
3895
|
-
|
|
3896
|
-
e.config?.sys_btn?.refresh === !1 ?
|
|
3895
|
+
k("div", Yn, [j(h, { type: "vertical" })]),
|
|
3896
|
+
e.config?.sys_btn?.refresh === !1 ? D("", !0) : (F(), O("div", Xn, [j(Hn, {
|
|
3897
3897
|
refreshType: e.refreshType,
|
|
3898
3898
|
loading: e.loading,
|
|
3899
3899
|
onRefresh: n[4] ||= (e) => t.$emit("refresh"),
|
|
3900
3900
|
onTypeChange: n[5] ||= (e) => t.$emit("refreshTypeChange", e)
|
|
3901
3901
|
}, null, 8, ["refreshType", "loading"])])),
|
|
3902
|
-
e.config?.sys_btn?.export === !1 ?
|
|
3903
|
-
default:
|
|
3902
|
+
e.config?.sys_btn?.export === !1 ? D("", !0) : (F(), O("div", Zn, [j(_, { title: t.$t("导出Excel") }, {
|
|
3903
|
+
default: W(() => [j(g, {
|
|
3904
3904
|
type: "text",
|
|
3905
3905
|
size: "small",
|
|
3906
3906
|
onClick: n[6] ||= (e) => t.$emit("export")
|
|
3907
3907
|
}, {
|
|
3908
|
-
icon:
|
|
3908
|
+
icon: W(() => [j(H(Me))]),
|
|
3909
3909
|
_: 1
|
|
3910
3910
|
})]),
|
|
3911
3911
|
_: 1
|
|
3912
3912
|
}, 8, ["title"])])),
|
|
3913
|
-
e.config?.sys_btn?.table_size === !1 ?
|
|
3914
|
-
default:
|
|
3913
|
+
e.config?.sys_btn?.table_size === !1 ? D("", !0) : (F(), O("div", Qn, [j(_, { title: t.$t("密度") }, {
|
|
3914
|
+
default: W(() => [j(p, {
|
|
3915
3915
|
trigger: ["click"],
|
|
3916
3916
|
placement: "bottomRight"
|
|
3917
3917
|
}, {
|
|
3918
|
-
overlay:
|
|
3918
|
+
overlay: W(() => [j(f, {
|
|
3919
3919
|
"selected-keys": [e.tableSize],
|
|
3920
3920
|
style: { width: "80px" },
|
|
3921
3921
|
onClick: n[7] ||= ({ key: e }) => {
|
|
3922
3922
|
t.$emit("update:tableSize", e), t.$emit("tableSizeChange", e);
|
|
3923
3923
|
}
|
|
3924
3924
|
}, {
|
|
3925
|
-
default:
|
|
3926
|
-
|
|
3927
|
-
default:
|
|
3925
|
+
default: W(() => [
|
|
3926
|
+
j(d, { key: "default" }, {
|
|
3927
|
+
default: W(() => [k("a", $n, V(t.$t("默认")), 1)]),
|
|
3928
3928
|
_: 1
|
|
3929
3929
|
}),
|
|
3930
|
-
|
|
3931
|
-
default:
|
|
3930
|
+
j(d, { key: "middle" }, {
|
|
3931
|
+
default: W(() => [k("a", er, V(t.$t("中等")), 1)]),
|
|
3932
3932
|
_: 1
|
|
3933
3933
|
}),
|
|
3934
|
-
|
|
3935
|
-
default:
|
|
3934
|
+
j(d, { key: "small" }, {
|
|
3935
|
+
default: W(() => [k("a", tr, V(t.$t("紧凑")), 1)]),
|
|
3936
3936
|
_: 1
|
|
3937
3937
|
})
|
|
3938
3938
|
]),
|
|
3939
3939
|
_: 1
|
|
3940
3940
|
}, 8, ["selected-keys"])]),
|
|
3941
|
-
default:
|
|
3941
|
+
default: W(() => [j(H(Ae))]),
|
|
3942
3942
|
_: 1
|
|
3943
3943
|
})]),
|
|
3944
3944
|
_: 1
|
|
3945
3945
|
}, 8, ["title"])])),
|
|
3946
|
-
e.config?.sys_btn?.column_config === !1 ?
|
|
3947
|
-
default:
|
|
3946
|
+
e.config?.sys_btn?.column_config === !1 ? D("", !0) : (F(), O("div", nr, [j(_, { title: t.$t("设置") }, {
|
|
3947
|
+
default: W(() => [j(g, {
|
|
3948
3948
|
type: "text",
|
|
3949
3949
|
size: "small",
|
|
3950
3950
|
onClick: n[8] ||= (e) => r.value = !0
|
|
3951
3951
|
}, {
|
|
3952
|
-
icon:
|
|
3952
|
+
icon: W(() => [j(H(Ue))]),
|
|
3953
3953
|
_: 1
|
|
3954
3954
|
})]),
|
|
3955
3955
|
_: 1
|
|
3956
3956
|
}, 8, ["title"])])),
|
|
3957
|
-
e.config?.sys_btn?.full_screen === !1 ?
|
|
3958
|
-
default:
|
|
3957
|
+
e.config?.sys_btn?.full_screen === !1 ? D("", !0) : (F(), O("div", rr, [j(_, { title: e.screenState ? t.$t("退出全屏") : t.$t("全屏") }, {
|
|
3958
|
+
default: W(() => [e.screenState ? (F(), E(H(Fe), {
|
|
3959
3959
|
key: 1,
|
|
3960
3960
|
onClick: n[10] ||= (e) => t.$emit("exitFull")
|
|
3961
|
-
})) : (
|
|
3961
|
+
})) : (F(), E(H(Ie), {
|
|
3962
3962
|
key: 0,
|
|
3963
3963
|
onClick: n[9] ||= (e) => t.$emit("setFull")
|
|
3964
3964
|
}))]),
|
|
3965
3965
|
_: 1
|
|
3966
3966
|
}, 8, ["title"])]))
|
|
3967
|
-
])])], 512)),
|
|
3967
|
+
])])], 512)), j(v, {
|
|
3968
3968
|
title: t.$t("设置"),
|
|
3969
3969
|
width: "1000px",
|
|
3970
3970
|
open: r.value,
|
|
3971
3971
|
"onUpdate:open": n[13] ||= (e) => r.value = e
|
|
3972
3972
|
}, {
|
|
3973
|
-
footer:
|
|
3974
|
-
default:
|
|
3973
|
+
footer: W(() => [j(g, { onClick: n[12] ||= (e) => r.value = !1 }, {
|
|
3974
|
+
default: W(() => [A(V(t.$t("关闭")), 1)]),
|
|
3975
3975
|
_: 1
|
|
3976
3976
|
})]),
|
|
3977
|
-
default:
|
|
3977
|
+
default: W(() => [j(kn, {
|
|
3978
3978
|
columns: e.columns,
|
|
3979
3979
|
is_view: e.is_view,
|
|
3980
3980
|
view_key: e.view_key,
|
|
@@ -3990,7 +3990,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
3990
3990
|
}, 8, ["title", "open"])], 64);
|
|
3991
3991
|
};
|
|
3992
3992
|
}
|
|
3993
|
-
}), [["__scopeId", "data-v-033fcf49"]]), ar = { key: 1 }, or = /* @__PURE__ */
|
|
3993
|
+
}), [["__scopeId", "data-v-033fcf49"]]), ar = { key: 1 }, or = /* @__PURE__ */ M({
|
|
3994
3994
|
__name: "TableSummary",
|
|
3995
3995
|
props: {
|
|
3996
3996
|
item: {
|
|
@@ -4003,7 +4003,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4003
4003
|
}
|
|
4004
4004
|
},
|
|
4005
4005
|
setup(e) {
|
|
4006
|
-
let t = e, n =
|
|
4006
|
+
let t = e, n = T(() => {
|
|
4007
4007
|
let e = 0;
|
|
4008
4008
|
for (let n of t.summaryParams.pageData) {
|
|
4009
4009
|
let a = n[t.summaryParams.column.dataIndex];
|
|
@@ -4016,15 +4016,15 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4016
4016
|
return parseFloat((e + t).toFixed(n));
|
|
4017
4017
|
}
|
|
4018
4018
|
let i = (e) => (typeof e == "string" && (e = parseFloat(e)), e);
|
|
4019
|
-
return (t, r) => e.item.cellSummaryComponent ? (
|
|
4019
|
+
return (t, r) => e.item.cellSummaryComponent ? (F(), E(B("CellSummary_" + e.item.cellSummaryComponent), {
|
|
4020
4020
|
key: 0,
|
|
4021
4021
|
cmpObj: {
|
|
4022
4022
|
item: e.item,
|
|
4023
4023
|
total: n.value
|
|
4024
4024
|
}
|
|
4025
|
-
}, null, 8, ["cmpObj"])) : (
|
|
4025
|
+
}, null, 8, ["cmpObj"])) : (F(), O("span", ar, V(e.item.total_content ? e.item.total_content(n.value) : n.value), 1));
|
|
4026
4026
|
}
|
|
4027
|
-
}), sr = /* @__PURE__ */ a(/* @__PURE__ */
|
|
4027
|
+
}), sr = /* @__PURE__ */ a(/* @__PURE__ */ M({
|
|
4028
4028
|
__name: "TableContextMenu",
|
|
4029
4029
|
props: {
|
|
4030
4030
|
contextmenuPopup: {
|
|
@@ -4059,64 +4059,64 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4059
4059
|
"columnsChange"
|
|
4060
4060
|
],
|
|
4061
4061
|
setup(e, { emit: t }) {
|
|
4062
|
-
let n = e, r = t, i =
|
|
4062
|
+
let n = e, r = t, i = L(!1), { currentView: a, isViewChange: o } = jt(), s = T(() => {
|
|
4063
4063
|
let e = [
|
|
4064
4064
|
{
|
|
4065
4065
|
key: "copy",
|
|
4066
|
-
icon: () =>
|
|
4066
|
+
icon: () => N(J),
|
|
4067
4067
|
label: "复制",
|
|
4068
4068
|
children: [
|
|
4069
4069
|
{
|
|
4070
4070
|
key: "copy_cell",
|
|
4071
|
-
icon: () =>
|
|
4071
|
+
icon: () => N(J),
|
|
4072
4072
|
label: "复制单元格"
|
|
4073
4073
|
},
|
|
4074
4074
|
{
|
|
4075
4075
|
key: "copy_record",
|
|
4076
|
-
icon: () =>
|
|
4076
|
+
icon: () => N(J),
|
|
4077
4077
|
label: "复制行"
|
|
4078
4078
|
},
|
|
4079
4079
|
{
|
|
4080
4080
|
key: "copy_column",
|
|
4081
|
-
icon: () =>
|
|
4081
|
+
icon: () => N(J),
|
|
4082
4082
|
label: "复制列"
|
|
4083
4083
|
}
|
|
4084
4084
|
]
|
|
4085
4085
|
},
|
|
4086
4086
|
{
|
|
4087
4087
|
key: "refresh",
|
|
4088
|
-
icon: () =>
|
|
4088
|
+
icon: () => N(Be),
|
|
4089
4089
|
label: "刷新"
|
|
4090
4090
|
},
|
|
4091
4091
|
{
|
|
4092
4092
|
key: "export",
|
|
4093
|
-
icon: () =>
|
|
4093
|
+
icon: () => N(Me),
|
|
4094
4094
|
label: "导出"
|
|
4095
4095
|
},
|
|
4096
4096
|
{
|
|
4097
4097
|
key: "table_config",
|
|
4098
|
-
icon: () =>
|
|
4098
|
+
icon: () => N(Ue),
|
|
4099
4099
|
label: "设置"
|
|
4100
4100
|
}
|
|
4101
4101
|
];
|
|
4102
4102
|
return n.is_view && o.value && a.value && a.value.id !== "no-view" && (e = [...e, {
|
|
4103
4103
|
key: "view",
|
|
4104
|
-
icon: () =>
|
|
4104
|
+
icon: () => N(ke),
|
|
4105
4105
|
label: "视图",
|
|
4106
4106
|
children: [
|
|
4107
4107
|
{
|
|
4108
4108
|
key: "save_view",
|
|
4109
|
-
icon: () =>
|
|
4109
|
+
icon: () => N(He),
|
|
4110
4110
|
label: "保存视图"
|
|
4111
4111
|
},
|
|
4112
4112
|
{
|
|
4113
4113
|
key: "save_new_view",
|
|
4114
|
-
icon: () =>
|
|
4114
|
+
icon: () => N(He),
|
|
4115
4115
|
label: "另存视图"
|
|
4116
4116
|
},
|
|
4117
4117
|
{
|
|
4118
4118
|
key: "reinit",
|
|
4119
|
-
icon: () =>
|
|
4119
|
+
icon: () => N(Be),
|
|
4120
4120
|
label: "重置"
|
|
4121
4121
|
}
|
|
4122
4122
|
]
|
|
@@ -4137,23 +4137,23 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4137
4137
|
e.key === "copy_cell" ? l("cell") : e.key === "copy_record" ? l("record") : e.key === "copy_column" ? l("column") : e.key === "refresh" ? r("refresh") : e.key === "export" ? r("export") : e.key === "table_config" ? i.value = !0 : e.key === "save_view" ? n.selfEventBus.emit("saveView") : e.key === "save_new_view" ? n.selfEventBus.emit("saveNewView") : e.key === "reinit" && n.selfEventBus.emit("reinit"), n.contextmenuPopup.hidePopup();
|
|
4138
4138
|
};
|
|
4139
4139
|
return (t, n) => {
|
|
4140
|
-
let r =
|
|
4141
|
-
return
|
|
4140
|
+
let r = z("a-menu"), a = z("a-button"), o = z("a-modal");
|
|
4141
|
+
return F(), O(w, null, [j(r, {
|
|
4142
4142
|
items: s.value,
|
|
4143
4143
|
size: "small",
|
|
4144
4144
|
mode: "vertical",
|
|
4145
4145
|
onClick: u
|
|
4146
|
-
}, null, 8, ["items"]),
|
|
4146
|
+
}, null, 8, ["items"]), j(o, {
|
|
4147
4147
|
title: t.$t("设置"),
|
|
4148
4148
|
width: "1000px",
|
|
4149
4149
|
open: i.value,
|
|
4150
4150
|
"onUpdate:open": n[2] ||= (e) => i.value = e
|
|
4151
4151
|
}, {
|
|
4152
|
-
footer:
|
|
4153
|
-
default:
|
|
4152
|
+
footer: W(() => [j(a, { onClick: n[1] ||= (e) => i.value = !1 }, {
|
|
4153
|
+
default: W(() => [A(V(t.$t("关闭")), 1)]),
|
|
4154
4154
|
_: 1
|
|
4155
4155
|
})]),
|
|
4156
|
-
default:
|
|
4156
|
+
default: W(() => [j(kn, {
|
|
4157
4157
|
columns: e.columns,
|
|
4158
4158
|
is_view: e.is_view,
|
|
4159
4159
|
view_key: e.view_key,
|
|
@@ -4169,7 +4169,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4169
4169
|
}, 8, ["title", "open"])], 64);
|
|
4170
4170
|
};
|
|
4171
4171
|
}
|
|
4172
|
-
}), [["__scopeId", "data-v-c2bacdc3"]]), cr = 50, lr = "view_system_edit", ur = /* @__PURE__ */ a(/* @__PURE__ */
|
|
4172
|
+
}), [["__scopeId", "data-v-c2bacdc3"]]), cr = 50, lr = "view_system_edit", ur = /* @__PURE__ */ a(/* @__PURE__ */ M({
|
|
4173
4173
|
__name: "tablePro",
|
|
4174
4174
|
props: {
|
|
4175
4175
|
config: {
|
|
@@ -4199,9 +4199,9 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4199
4199
|
},
|
|
4200
4200
|
emits: ["selectChange", "dataChange"],
|
|
4201
4201
|
setup(e, { expose: r, emit: i }) {
|
|
4202
|
-
let a = e, o = i, { t: s } =
|
|
4203
|
-
|
|
4204
|
-
let
|
|
4202
|
+
let a = e, o = i, { t: s } = Je(), l = n(), u = t(), d = u.userid, f = u.currentOrg, m = L(u.CHECK_AUTH(lr)), h = qe(), g = L([]), _ = L([]), v = L(!1), y = Ye(), b = L([]), x = null, ee = L(null), S = L(null), te = L(null), ne = L(null), re = L(0), ie = L(30), C = L({}), ae = L([]), oe = L([]), se = L([]), ce = L([]), le = L(!1), ue = L(""), de = L(""), fe = L(), pe = L(a.config.refreshType);
|
|
4203
|
+
ce.value = u.CHECK_AUTH_BY_BTN_LIST(a.config?.btn_list || []) || [], se.value = u.CHECK_AUTH_BY_BTN_LIST(a.config?.head_btn_list || []) || [], oe.value = u.CHECK_AUTH_BY_BTN_LIST(a.config?.batch_update_list || []) || [];
|
|
4204
|
+
let me = L([
|
|
4205
4205
|
"10",
|
|
4206
4206
|
"20",
|
|
4207
4207
|
"50",
|
|
@@ -4214,71 +4214,73 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4214
4214
|
"50000",
|
|
4215
4215
|
"60000",
|
|
4216
4216
|
"70000"
|
|
4217
|
-
]),
|
|
4217
|
+
]), he = T(() => `table_pro_${a.config.key}`), M = I({
|
|
4218
4218
|
current: 1,
|
|
4219
4219
|
pageSize: a.config?.query_params?.pageSize || cr,
|
|
4220
4220
|
total: 0,
|
|
4221
4221
|
tableSize: "small"
|
|
4222
4222
|
});
|
|
4223
|
-
Xe(
|
|
4224
|
-
|
|
4225
|
-
}), Xe(
|
|
4226
|
-
|
|
4223
|
+
Xe(ee, (e) => {
|
|
4224
|
+
S.value = e[0].contentRect.height;
|
|
4225
|
+
}), Xe(te, (e) => {
|
|
4226
|
+
ne.value = e[0].contentRect.height;
|
|
4227
4227
|
});
|
|
4228
|
-
let
|
|
4228
|
+
let N = () => !1, _e = () => {
|
|
4229
|
+
let e = (t) => {
|
|
4230
|
+
let n = [];
|
|
4231
|
+
return t.forEach((t) => {
|
|
4232
|
+
t.dataIndex && t.dataIndex !== "index" && t.dataIndex !== "action" && t.checked !== !1 && n.push(t.dataIndex), t.children && t.children.length > 0 && n.push(...e(t.children));
|
|
4233
|
+
}), n;
|
|
4234
|
+
}, t = e(Y.value || []);
|
|
4235
|
+
a.config.base_column_fields && t.push(...a.config.base_column_fields);
|
|
4236
|
+
let n = [], r = /* @__PURE__ */ new Set();
|
|
4237
|
+
for (let e of ae.value) e.order == "descend" ? n.push("-" + e.key) : n.push(e.key), r.add(e.key);
|
|
4238
|
+
if (a.config.base_sort_fields) for (let e of a.config.base_sort_fields) {
|
|
4239
|
+
let t = e.startsWith("-") ? e.slice(1) : e;
|
|
4240
|
+
r.has(t) || n.push(e);
|
|
4241
|
+
}
|
|
4242
|
+
let i = {
|
|
4243
|
+
...a.config.query_params || {},
|
|
4244
|
+
current: M.current,
|
|
4245
|
+
pageSize: M.pageSize,
|
|
4246
|
+
column_fields: t,
|
|
4247
|
+
sort_fields: n
|
|
4248
|
+
};
|
|
4249
|
+
if (q.value === "advanced") i.conditions = [[...p(a.config.base_conditions), ...p(b.value)]];
|
|
4250
|
+
else if (q.value === "simple") for (let e of p(b.value)) {
|
|
4251
|
+
let t = kt(e.operator, e), n = e.value;
|
|
4252
|
+
t === 1 && (n = n[0]), i[e.field_name] = n;
|
|
4253
|
+
}
|
|
4254
|
+
if (a.config.get_query_params_func) {
|
|
4255
|
+
let e = a.config.get_query_params_func({ params: i });
|
|
4256
|
+
e && Object.assign(i, e);
|
|
4257
|
+
}
|
|
4258
|
+
return i;
|
|
4259
|
+
}, [ye, be, { setFull: Te, exitFull: G }] = Tt(), K = async () => {
|
|
4229
4260
|
if (!a.config.list_url) return;
|
|
4230
4261
|
let e = Symbol();
|
|
4231
4262
|
x = e;
|
|
4232
4263
|
try {
|
|
4233
4264
|
v.value = !0;
|
|
4234
|
-
let t = (
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
e.dataIndex && e.dataIndex !== "index" && e.dataIndex !== "action" && e.checked !== !1 && n.push(e.dataIndex), e.children && e.children.length > 0 && n.push(...t(e.children));
|
|
4238
|
-
}), n;
|
|
4239
|
-
}, n = t(J.value || []);
|
|
4240
|
-
a.config.base_column_fields && n.push(...a.config.base_column_fields);
|
|
4241
|
-
let r = [], i = /* @__PURE__ */ new Set();
|
|
4242
|
-
for (let e of ie.value) e.order == "descend" ? r.push("-" + e.key) : r.push(e.key), i.add(e.key);
|
|
4243
|
-
if (a.config.base_sort_fields) for (let e of a.config.base_sort_fields) {
|
|
4244
|
-
let t = e.startsWith("-") ? e.slice(1) : e;
|
|
4245
|
-
i.has(t) || r.push(e);
|
|
4246
|
-
}
|
|
4247
|
-
let s = {
|
|
4248
|
-
...a.config.query_params || {},
|
|
4249
|
-
current: N.current,
|
|
4250
|
-
pageSize: N.pageSize,
|
|
4251
|
-
column_fields: n,
|
|
4252
|
-
sort_fields: r
|
|
4253
|
-
};
|
|
4254
|
-
if (De.value === "advanced") s.conditions = [[...p(a.config.base_conditions), ...p(b.value)]];
|
|
4255
|
-
else if (De.value === "simple") for (let e of p(b.value)) {
|
|
4256
|
-
let t = kt(e.operator, e), n = e.value;
|
|
4257
|
-
t === 1 && (n = n[0]), s[e.field_name] = n;
|
|
4258
|
-
}
|
|
4259
|
-
if (a.config.get_query_params_func) {
|
|
4260
|
-
let e = a.config.get_query_params_func({ params: s });
|
|
4261
|
-
e && Object.assign(s, e);
|
|
4262
|
-
}
|
|
4263
|
-
let l;
|
|
4264
|
-
if (l = a.config.query_data_func ? await a.config.query_data_func(s) : await c(s, a.config.list_url, !1, { api_log: `tablePro ${a.config.key} ${a.config.title}` }), x !== e) return;
|
|
4265
|
-
a.config.process_data_func ? g.value = a.config.process_data_func(l.data) : g.value = l.data || [], N.current = l.current, N.total = l.total, o("dataChange", {
|
|
4265
|
+
let t = _e(), n;
|
|
4266
|
+
if (n = a.config.query_data_func ? await a.config.query_data_func(t) : await c(t, a.config.list_url, !1, { api_log: `tablePro ${a.config.key} ${a.config.title}` }), x !== e) return;
|
|
4267
|
+
a.config.process_data_func ? g.value = a.config.process_data_func(n.data) : g.value = n.data || [], M.current = n.current, M.total = n.total, o("dataChange", {
|
|
4266
4268
|
data: g.value,
|
|
4267
|
-
current:
|
|
4268
|
-
total:
|
|
4269
|
-
}),
|
|
4269
|
+
current: n.current,
|
|
4270
|
+
total: n.total
|
|
4271
|
+
}), Ge();
|
|
4270
4272
|
} finally {
|
|
4271
4273
|
if (x !== e) return;
|
|
4272
4274
|
v.value = !1;
|
|
4273
4275
|
}
|
|
4274
|
-
},
|
|
4275
|
-
|
|
4276
|
-
},
|
|
4276
|
+
}, Ee = (0, Z.debounce)(K, 500), De = (e, t) => {
|
|
4277
|
+
M.current == e && M.pageSize == t || (M.current = e || 1, M.pageSize = t || cr, K());
|
|
4278
|
+
}, q = T(() => a.config.search_type === "simple" ? a.config.search_type : "advanced"), ke = T(() => a.config?.is_view !== !1), Ae = T(() => ({
|
|
4277
4279
|
type: a.config.rowSelectionType || "checkbox",
|
|
4278
4280
|
onChange: (e, t) => {
|
|
4279
4281
|
o("selectChange", t, g.value.filter((t) => !e.includes(t.id)));
|
|
4280
4282
|
}
|
|
4281
|
-
})),
|
|
4283
|
+
})), J = L({}), je = L({}), Me = T(() => {
|
|
4282
4284
|
let e = (t) => t.filter((e) => e.checked !== !1).map((t) => {
|
|
4283
4285
|
if (t.children && t.children.length > 0) {
|
|
4284
4286
|
let n = e(t.children);
|
|
@@ -4289,22 +4291,22 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4289
4291
|
}
|
|
4290
4292
|
return t;
|
|
4291
4293
|
}).filter(Boolean);
|
|
4292
|
-
return e(
|
|
4293
|
-
}),
|
|
4294
|
+
return e(Y.value);
|
|
4295
|
+
}), Y = T(() => {
|
|
4294
4296
|
let e = {};
|
|
4295
4297
|
for (let t of b.value) ["in", "eq"].includes(t.operator) && (e[t.field_name] = t.value);
|
|
4296
|
-
let t =
|
|
4298
|
+
let t = C.value || {}, n = [...a.config.columns || []];
|
|
4297
4299
|
a.config.btn_list && a.config.btn_list.length > 0 && (n.some((e) => e.dataIndex === "action") || n.push({
|
|
4298
4300
|
title: "操作",
|
|
4299
4301
|
dataIndex: "action",
|
|
4300
4302
|
cellComponent: "action",
|
|
4301
|
-
width:
|
|
4303
|
+
width: ie.value + 20,
|
|
4302
4304
|
resizable: !0,
|
|
4303
4305
|
fixed: "right",
|
|
4304
4306
|
checked: !0
|
|
4305
4307
|
}));
|
|
4306
4308
|
let r = (n, i = !1) => n.map((e) => {
|
|
4307
|
-
let t = e.dataIndex || e.key || e.title, n =
|
|
4309
|
+
let t = e.dataIndex || e.key || e.title, n = J.value[t] || {}, a = {
|
|
4308
4310
|
...e,
|
|
4309
4311
|
...n,
|
|
4310
4312
|
is_children: i,
|
|
@@ -4323,7 +4325,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4323
4325
|
customFilterDropdown: a.config.enable_custom_filter && !!a.config.search_config?.find((e) => e.field_name === r),
|
|
4324
4326
|
onFilterDropdownOpenChange: (e) => {
|
|
4325
4327
|
e && setTimeout(() => {
|
|
4326
|
-
|
|
4328
|
+
fe.value?.focus();
|
|
4327
4329
|
}, 100);
|
|
4328
4330
|
}
|
|
4329
4331
|
} : {
|
|
@@ -4336,7 +4338,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4336
4338
|
customFilterDropdown: a.config.enable_custom_filter && !!a.config.search_config?.find((e) => e.field_name === r),
|
|
4337
4339
|
onFilterDropdownOpenChange: (e) => {
|
|
4338
4340
|
e && setTimeout(() => {
|
|
4339
|
-
|
|
4341
|
+
fe.value?.focus();
|
|
4340
4342
|
}, 100);
|
|
4341
4343
|
}
|
|
4342
4344
|
};
|
|
@@ -4350,12 +4352,12 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4350
4352
|
checked: !0,
|
|
4351
4353
|
autoHeight: !0
|
|
4352
4354
|
}), i;
|
|
4353
|
-
}), Ne =
|
|
4355
|
+
}), Ne = T(() => {
|
|
4354
4356
|
let e = 0, t = (n) => {
|
|
4355
4357
|
for (let r of n) r.children && r.children.length > 0 ? t(r.children) : e += r.width || r.minWidth || 120;
|
|
4356
4358
|
};
|
|
4357
|
-
t(
|
|
4358
|
-
}),
|
|
4359
|
+
t(Y.value);
|
|
4360
|
+
}), Fe = T(() => `${a.config.title || "data"}_${Oe().format("YYYYMMDD_HHmmss")}`), Ie = T(() => {
|
|
4359
4361
|
let e = [], t = (n) => {
|
|
4360
4362
|
n.forEach((n) => {
|
|
4361
4363
|
if (n.children && n.children.length > 0) t(n.children);
|
|
@@ -4371,30 +4373,41 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4371
4373
|
}
|
|
4372
4374
|
});
|
|
4373
4375
|
};
|
|
4374
|
-
return t(
|
|
4375
|
-
}), Le = (
|
|
4376
|
-
e
|
|
4377
|
-
|
|
4378
|
-
|
|
4376
|
+
return t(Y.value), e;
|
|
4377
|
+
}), Le = T(() => {
|
|
4378
|
+
let e = [], t = (n) => {
|
|
4379
|
+
n.forEach((n) => {
|
|
4380
|
+
if (n.children && n.children.length > 0) t(n.children);
|
|
4381
|
+
else {
|
|
4382
|
+
if (n.dataIndex === "action" || n.dataIndex === "index") return;
|
|
4383
|
+
e.push(n);
|
|
4384
|
+
}
|
|
4385
|
+
});
|
|
4386
|
+
};
|
|
4387
|
+
return t(Y.value), e;
|
|
4388
|
+
}), Re = ({ confirm: e, dataIndex: t, value: n }) => {
|
|
4389
|
+
e(), ue.value = n, de.value = t, K(), Q.value = !0;
|
|
4390
|
+
}, ze = ({ clearFilters: e, dataIndex: t }) => {
|
|
4391
|
+
e(), ue.value = "";
|
|
4379
4392
|
let n = (0, Z.cloneDeep)(b.value), r = n.findIndex((e) => e.field_name === t);
|
|
4380
4393
|
r > -1 && n.splice(r, 1), b.value = n, K(), Q.value = !0;
|
|
4381
|
-
},
|
|
4394
|
+
}, Be = async () => {
|
|
4382
4395
|
await K();
|
|
4383
|
-
},
|
|
4384
|
-
|
|
4385
|
-
},
|
|
4386
|
-
if (!
|
|
4387
|
-
let e =
|
|
4388
|
-
return a.config.is_pagination && (e -=
|
|
4389
|
-
}),
|
|
4396
|
+
}, Ve = (e) => {
|
|
4397
|
+
pe.value = e, Q.value = !0;
|
|
4398
|
+
}, He = L(64), Ue = T(() => {
|
|
4399
|
+
if (!S.value) return 0;
|
|
4400
|
+
let e = S.value - ne.value - re.value - 4;
|
|
4401
|
+
return a.config.is_pagination && (e -= He.value), console.log("tableWraperHeight", S.value), console.log("searchHeight", ne.value), console.log("headerHeight", re.value), console.log("paginationHeight", He.value), console.log("tableHeight", e), e;
|
|
4402
|
+
}), We = () => {
|
|
4390
4403
|
Q.value = !0;
|
|
4391
4404
|
};
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4405
|
+
U(() => M.tableSize, () => {
|
|
4406
|
+
He.value = 64, setTimeout(() => {
|
|
4407
|
+
M.tableSize === "small" || M.tableSize === "middle" ? He.value = 56 : M.tableSize === "default" && (He.value = 64);
|
|
4395
4408
|
}, 200);
|
|
4396
4409
|
});
|
|
4397
|
-
let
|
|
4410
|
+
let Ge = () => {
|
|
4398
4411
|
if (g.value?.length > 0 && a.initValueKey) {
|
|
4399
4412
|
let e = {};
|
|
4400
4413
|
_.value = g.value.filter((t) => {
|
|
@@ -4402,10 +4415,10 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4402
4415
|
if (a.initSelectValue?.includes(n) && !e[n]) return e[n] = !0, !0;
|
|
4403
4416
|
}).map((e) => e.id);
|
|
4404
4417
|
}
|
|
4405
|
-
},
|
|
4418
|
+
}, Ke = async () => {
|
|
4406
4419
|
let e = a.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
|
|
4407
4420
|
e.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
|
|
4408
|
-
for (let t of e)
|
|
4421
|
+
for (let t of e) C.value[t.dataIndex] = t.defaultSortOrder, ae.value.push({
|
|
4409
4422
|
key: t.dataIndex,
|
|
4410
4423
|
order: t.defaultSortOrder
|
|
4411
4424
|
});
|
|
@@ -4421,28 +4434,28 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4421
4434
|
class_name: e.class_name || "str"
|
|
4422
4435
|
});
|
|
4423
4436
|
}
|
|
4424
|
-
}), b.value = t,
|
|
4425
|
-
let e = [...
|
|
4437
|
+
}), b.value = t, ke && lt.value?.id !== "no-view" && (await ut(), ct.value?.length)) {
|
|
4438
|
+
let e = [...ct.value], t = (e) => {
|
|
4426
4439
|
let t = e.sort || 0;
|
|
4427
|
-
return e.id !==
|
|
4440
|
+
return e.id !== lt.value?.id && (t *= 1e6), e.is_default || (t *= 1e4), e.user_id || (t *= 1e3), t;
|
|
4428
4441
|
};
|
|
4429
|
-
e.sort((e, n) => t(e) - t(n)),
|
|
4442
|
+
e.sort((e, n) => t(e) - t(n)), it(e[0].data), lt.value = e[0];
|
|
4430
4443
|
}
|
|
4431
4444
|
await K();
|
|
4432
|
-
},
|
|
4433
|
-
|
|
4434
|
-
},
|
|
4445
|
+
}, X = async () => {
|
|
4446
|
+
Ke();
|
|
4447
|
+
}, Ze = async () => {
|
|
4435
4448
|
await K();
|
|
4436
|
-
},
|
|
4449
|
+
}, Qe = T(() => {
|
|
4437
4450
|
let e = [], t = (n) => {
|
|
4438
4451
|
n.forEach((n) => {
|
|
4439
4452
|
n.children && n.children.length > 0 ? t(n.children) : e.push(n);
|
|
4440
4453
|
});
|
|
4441
4454
|
};
|
|
4442
4455
|
return t(Me.value), e;
|
|
4443
|
-
}),
|
|
4456
|
+
}), $e = T(() => {
|
|
4444
4457
|
let e = [], t = 0;
|
|
4445
|
-
for (let n of
|
|
4458
|
+
for (let n of Qe.value) {
|
|
4446
4459
|
let r = t;
|
|
4447
4460
|
a.config?.is_selection && (r = t + 1), n.summary && e.push({
|
|
4448
4461
|
index: r,
|
|
@@ -4452,7 +4465,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4452
4465
|
}), t++;
|
|
4453
4466
|
}
|
|
4454
4467
|
return e;
|
|
4455
|
-
}),
|
|
4468
|
+
}), et = (e, t, n, r) => {
|
|
4456
4469
|
if (r.action !== "paginate") {
|
|
4457
4470
|
if (r.action === "filter") {
|
|
4458
4471
|
let e = {};
|
|
@@ -4478,18 +4491,18 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4478
4491
|
key: r.columnKey,
|
|
4479
4492
|
order: r.order
|
|
4480
4493
|
});
|
|
4481
|
-
|
|
4494
|
+
C.value = e, ae.value = t, K(), Q.value = !0;
|
|
4482
4495
|
}
|
|
4483
4496
|
}
|
|
4484
|
-
},
|
|
4497
|
+
}, tt = (e, t) => {
|
|
4485
4498
|
a.config?.is_click_selection && ((a.config.rowSelectionType || "checkbox") === "radio" ? _.value = [t.record.id] : _.value && _.value.includes(t.record.id) ? _.value = _.value.filter((e) => e !== t.record.id) : _.value.push(t.record.id), o("selectChange", g.value.filter((e) => _.value.includes(e.id)), g.value.filter((e) => !_.value.includes(e.id))));
|
|
4486
4499
|
};
|
|
4487
|
-
|
|
4488
|
-
a.config.key || console.error("tablePro config 未配置 key"), a.config.title || console.error("tablePro config 未配置 title"), y.on("refresh",
|
|
4500
|
+
xe(async () => {
|
|
4501
|
+
a.config.key || console.error("tablePro config 未配置 key"), a.config.title || console.error("tablePro config 未配置 title"), y.on("refresh", Be), y.on("reinit", X), y.on("saveView", ft), y.on("saveNewView", pt), a.eventBus && (a.eventBus.on("reinit", X), a.eventBus.on("reload_table", Ze)), a.config.tableSize && (M.tableSize = a.config.tableSize), await Ke();
|
|
4489
4502
|
});
|
|
4490
|
-
let
|
|
4491
|
-
|
|
4492
|
-
},
|
|
4503
|
+
let nt = () => {
|
|
4504
|
+
le.value = !0;
|
|
4505
|
+
}, rt = (e) => {
|
|
4493
4506
|
if (!a.config || !a.config.columns) return;
|
|
4494
4507
|
let t = {}, n = (e) => {
|
|
4495
4508
|
e.forEach((e, r) => {
|
|
@@ -4505,103 +4518,103 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4505
4518
|
}, e.children && e.children.length > 0 && n(e.children));
|
|
4506
4519
|
});
|
|
4507
4520
|
};
|
|
4508
|
-
n(e),
|
|
4509
|
-
},
|
|
4521
|
+
n(e), J.value = t, Q.value = !0;
|
|
4522
|
+
}, it = async (e) => {
|
|
4510
4523
|
if (e === null) {
|
|
4511
|
-
await
|
|
4524
|
+
await Ke(), Q.value = !1;
|
|
4512
4525
|
return;
|
|
4513
4526
|
}
|
|
4514
|
-
if (e.columns && (
|
|
4515
|
-
|
|
4516
|
-
for (let e of
|
|
4527
|
+
if (e.columns && (J.value = e.columns), e.searchConfig && (je.value = e.searchConfig), e.searchConditions && (b.value = e.searchConditions), e.tableSize && (M.tableSize = e.tableSize), e.refreshType && (pe.value = e.refreshType), e.sortedList) {
|
|
4528
|
+
ae.value = e.sortedList, C.value = {};
|
|
4529
|
+
for (let e of ae.value) C.value[e.key] = e.order;
|
|
4517
4530
|
}
|
|
4518
|
-
a.config.set_view_callback && a.config.set_view_callback({ viewData: e }), await
|
|
4519
|
-
},
|
|
4531
|
+
a.config.set_view_callback && a.config.set_view_callback({ viewData: e }), await Be(), Q.value = !1;
|
|
4532
|
+
}, at = (e, t, n) => {
|
|
4520
4533
|
if (n === "end") {
|
|
4521
|
-
let n =
|
|
4522
|
-
n || (n = {},
|
|
4534
|
+
let n = J.value[t.dataIndex];
|
|
4535
|
+
n || (n = {}, J.value[t.dataIndex] = n), n.width = e, Q.value = !0;
|
|
4523
4536
|
}
|
|
4524
|
-
},
|
|
4537
|
+
}, ot = (e) => {
|
|
4525
4538
|
je.value = e, Q.value = !0;
|
|
4526
|
-
},
|
|
4539
|
+
}, st = () => {
|
|
4527
4540
|
let e = {
|
|
4528
|
-
columns:
|
|
4541
|
+
columns: J.value,
|
|
4529
4542
|
searchConditions: b.value,
|
|
4530
|
-
tableSize:
|
|
4531
|
-
refreshType:
|
|
4543
|
+
tableSize: M.tableSize,
|
|
4544
|
+
refreshType: pe.value,
|
|
4532
4545
|
searchConfig: je.value,
|
|
4533
|
-
sortedList:
|
|
4546
|
+
sortedList: ae.value
|
|
4534
4547
|
};
|
|
4535
4548
|
if (a.config.get_view_data_func) {
|
|
4536
4549
|
let t = a.config.get_view_data_func({ viewData: e });
|
|
4537
4550
|
t && Object.assign(e, t);
|
|
4538
4551
|
}
|
|
4539
4552
|
return e;
|
|
4540
|
-
},
|
|
4541
|
-
|
|
4542
|
-
},
|
|
4553
|
+
}, ct = L([]), lt = L(null), Q = L(!1), ut = async () => {
|
|
4554
|
+
ct.value = await Mt(he.value);
|
|
4555
|
+
}, dt = () => {
|
|
4543
4556
|
Q.value = !0;
|
|
4544
|
-
}, { saveView:
|
|
4545
|
-
currentView:
|
|
4546
|
-
getViewData:
|
|
4557
|
+
}, { saveView: ft, addView: pt } = on({
|
|
4558
|
+
currentView: lt,
|
|
4559
|
+
getViewData: st,
|
|
4547
4560
|
isViewChange: Q,
|
|
4548
4561
|
userid: d,
|
|
4549
4562
|
view_project__flag: l.VITE_APP_VIEW_PROJECT_FLAG,
|
|
4550
|
-
view_menu__flag:
|
|
4563
|
+
view_menu__flag: he.value,
|
|
4551
4564
|
view_menu__name: a.config.title,
|
|
4552
|
-
fetchViews:
|
|
4565
|
+
fetchViews: ut,
|
|
4553
4566
|
is_auth: m,
|
|
4554
4567
|
t: s
|
|
4555
4568
|
});
|
|
4556
|
-
return
|
|
4557
|
-
setViewData:
|
|
4558
|
-
getViewData:
|
|
4559
|
-
fetchViews:
|
|
4560
|
-
viewDataList:
|
|
4561
|
-
currentView:
|
|
4569
|
+
return Ce(At, {
|
|
4570
|
+
setViewData: it,
|
|
4571
|
+
getViewData: st,
|
|
4572
|
+
fetchViews: ut,
|
|
4573
|
+
viewDataList: ct,
|
|
4574
|
+
currentView: lt,
|
|
4562
4575
|
isViewChange: Q,
|
|
4563
4576
|
config: a.config
|
|
4564
|
-
}),
|
|
4565
|
-
y.off("refresh",
|
|
4566
|
-
}),
|
|
4567
|
-
|
|
4568
|
-
}),
|
|
4569
|
-
|
|
4570
|
-
}, { deep: !0 }),
|
|
4571
|
-
|
|
4577
|
+
}), Se(() => {
|
|
4578
|
+
y.off("refresh", Be), y.off("reinit", X), y.off("saveView", ft), y.off("saveNewView", pt), a.eventBus && (a.eventBus.off("reinit", X), a.eventBus.off("reload_table", Ze));
|
|
4579
|
+
}), U(() => a.initSelectValue, () => {
|
|
4580
|
+
Ge();
|
|
4581
|
+
}), U(() => a.config.query_params, () => {
|
|
4582
|
+
Ee();
|
|
4583
|
+
}, { deep: !0 }), U(() => a.config.base_conditions, () => {
|
|
4584
|
+
Ee();
|
|
4572
4585
|
}, { deep: !0 }), r({
|
|
4573
|
-
getViewData:
|
|
4574
|
-
setViewData:
|
|
4586
|
+
getViewData: st,
|
|
4587
|
+
setViewData: it,
|
|
4575
4588
|
config: a.config,
|
|
4576
|
-
columns:
|
|
4577
|
-
fetchViews:
|
|
4578
|
-
viewDataList:
|
|
4579
|
-
currentView:
|
|
4589
|
+
columns: Y,
|
|
4590
|
+
fetchViews: ut,
|
|
4591
|
+
viewDataList: ct,
|
|
4592
|
+
currentView: lt,
|
|
4580
4593
|
isViewChange: Q,
|
|
4581
|
-
viewColumnsConfig:
|
|
4582
|
-
refresh:
|
|
4594
|
+
viewColumnsConfig: J,
|
|
4595
|
+
refresh: Be
|
|
4583
4596
|
}), (t, n) => {
|
|
4584
|
-
let r =
|
|
4585
|
-
return
|
|
4597
|
+
let r = z("s-table-summary-cell"), i = z("s-table-summary-row"), a = z("s-table"), o = z("a-card"), s = z("export-excel-modal-view");
|
|
4598
|
+
return F(), O(w, null, [k("div", {
|
|
4586
4599
|
class: "table-wraper",
|
|
4587
4600
|
ref_key: "tableWraperRef",
|
|
4588
|
-
ref: S
|
|
4589
|
-
}, [A("div", {
|
|
4590
|
-
ref_key: "searchRef",
|
|
4591
4601
|
ref: ee
|
|
4592
|
-
}, [
|
|
4602
|
+
}, [k("div", {
|
|
4603
|
+
ref_key: "searchRef",
|
|
4604
|
+
ref: te
|
|
4605
|
+
}, [e.config?.search_config && e.config.search_config.length > 0 ? (F(), E(Zt, {
|
|
4593
4606
|
key: 0,
|
|
4594
4607
|
searchConfig: e.config?.search_config || [],
|
|
4595
4608
|
autoRefreshOnSearchChange: e.config?.auto_refresh_on_search_change,
|
|
4596
4609
|
searchConditions: b.value,
|
|
4597
4610
|
"onUpdate:searchConditions": n[0] ||= (e) => b.value = e,
|
|
4598
|
-
"event-bus":
|
|
4599
|
-
searchType:
|
|
4611
|
+
"event-bus": H(y),
|
|
4612
|
+
searchType: q.value,
|
|
4600
4613
|
searchDisplayType: e.config?.search_display_type,
|
|
4601
4614
|
searchColumnCount: e.config?.search_column_count,
|
|
4602
4615
|
viewSearchConfig: je.value,
|
|
4603
|
-
onViewSearchConfigChange:
|
|
4604
|
-
onChange:
|
|
4616
|
+
onViewSearchConfigChange: ot,
|
|
4617
|
+
onChange: dt
|
|
4605
4618
|
}, null, 8, [
|
|
4606
4619
|
"searchConfig",
|
|
4607
4620
|
"autoRefreshOnSearchChange",
|
|
@@ -4611,40 +4624,40 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4611
4624
|
"searchDisplayType",
|
|
4612
4625
|
"searchColumnCount",
|
|
4613
4626
|
"viewSearchConfig"
|
|
4614
|
-
])) :
|
|
4627
|
+
])) : D("", !0)], 512), j(o, {
|
|
4615
4628
|
ref_key: "elRef",
|
|
4616
|
-
ref:
|
|
4629
|
+
ref: ye,
|
|
4617
4630
|
"body-style": { padding: 0 }
|
|
4618
4631
|
}, {
|
|
4619
|
-
default:
|
|
4632
|
+
default: W(() => [j(ir, {
|
|
4620
4633
|
config: e.config,
|
|
4621
|
-
auth_batch_update_list:
|
|
4622
|
-
auth_head_btn_list:
|
|
4634
|
+
auth_batch_update_list: oe.value,
|
|
4635
|
+
auth_head_btn_list: se.value,
|
|
4623
4636
|
selectedRowKeys: _.value,
|
|
4624
4637
|
dataSource: g.value,
|
|
4625
|
-
current_org:
|
|
4626
|
-
router:
|
|
4627
|
-
selfEventBus:
|
|
4638
|
+
current_org: H(f),
|
|
4639
|
+
router: H(h),
|
|
4640
|
+
selfEventBus: H(y),
|
|
4628
4641
|
loading: v.value,
|
|
4629
|
-
screenState:
|
|
4630
|
-
tableSize:
|
|
4631
|
-
"onUpdate:tableSize": n[1] ||= (e) =>
|
|
4632
|
-
columns:
|
|
4633
|
-
view_key:
|
|
4642
|
+
screenState: H(be),
|
|
4643
|
+
tableSize: M.tableSize,
|
|
4644
|
+
"onUpdate:tableSize": n[1] ||= (e) => M.tableSize = e,
|
|
4645
|
+
columns: Y.value,
|
|
4646
|
+
view_key: he.value,
|
|
4634
4647
|
view_flag_name: e.config.title,
|
|
4635
|
-
is_view:
|
|
4636
|
-
refreshType:
|
|
4637
|
-
onRefresh:
|
|
4638
|
-
onExport:
|
|
4639
|
-
onSetFull:
|
|
4640
|
-
onExitFull:
|
|
4641
|
-
onColumnsChange:
|
|
4642
|
-
onHeightChange: n[2] ||= (e) =>
|
|
4643
|
-
onRefreshTypeChange:
|
|
4644
|
-
onTableSizeChange:
|
|
4648
|
+
is_view: ke.value,
|
|
4649
|
+
refreshType: pe.value,
|
|
4650
|
+
onRefresh: Be,
|
|
4651
|
+
onExport: nt,
|
|
4652
|
+
onSetFull: H(Te),
|
|
4653
|
+
onExitFull: H(G),
|
|
4654
|
+
onColumnsChange: rt,
|
|
4655
|
+
onHeightChange: n[2] ||= (e) => re.value = e,
|
|
4656
|
+
onRefreshTypeChange: Ve,
|
|
4657
|
+
onTableSizeChange: We
|
|
4645
4658
|
}, {
|
|
4646
|
-
header_bar_before_btn:
|
|
4647
|
-
header_bar_after_btn:
|
|
4659
|
+
header_bar_before_btn: W(() => [we(t.$slots, "header_bar_before_btn", {}, void 0, !0)]),
|
|
4660
|
+
header_bar_after_btn: W(() => [we(t.$slots, "header_bar_after_btn", {}, void 0, !0)]),
|
|
4648
4661
|
_: 3
|
|
4649
4662
|
}, 8, [
|
|
4650
4663
|
"config",
|
|
@@ -4665,50 +4678,50 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4665
4678
|
"refreshType",
|
|
4666
4679
|
"onSetFull",
|
|
4667
4680
|
"onExitFull"
|
|
4668
|
-
]),
|
|
4681
|
+
]), Y.value?.length > 0 ? (F(), E(a, {
|
|
4669
4682
|
key: 0,
|
|
4670
4683
|
columns: Me.value,
|
|
4671
4684
|
selectedRowKeys: _.value,
|
|
4672
4685
|
"onUpdate:selectedRowKeys": n[4] ||= (e) => _.value = e,
|
|
4673
4686
|
"data-source": g.value,
|
|
4674
4687
|
bordered: !0,
|
|
4675
|
-
size:
|
|
4676
|
-
height:
|
|
4688
|
+
size: M.tableSize,
|
|
4689
|
+
height: Ue.value,
|
|
4677
4690
|
rowHeight: e.config.rowHeight || void 0,
|
|
4678
4691
|
scroll: { x: Ne.value },
|
|
4679
4692
|
loading: v.value && !e.config?.disabled_table_loading,
|
|
4680
4693
|
pagination: e.config?.is_pagination ? {
|
|
4681
|
-
current:
|
|
4682
|
-
pageSize:
|
|
4683
|
-
total:
|
|
4684
|
-
onChange:
|
|
4694
|
+
current: M.current,
|
|
4695
|
+
pageSize: M.pageSize,
|
|
4696
|
+
total: M.total,
|
|
4697
|
+
onChange: De,
|
|
4685
4698
|
showSizeChanger: !0,
|
|
4686
|
-
pageSizeOptions:
|
|
4699
|
+
pageSizeOptions: me.value
|
|
4687
4700
|
} : !1,
|
|
4688
4701
|
rowKey: "id",
|
|
4689
|
-
rowSelection: e.config?.is_selection ?
|
|
4702
|
+
rowSelection: e.config?.is_selection ? Ae.value : null,
|
|
4690
4703
|
"custom-cell": e.config?.customCell,
|
|
4691
4704
|
"custom-header-cell": e.config?.customHeaderCell,
|
|
4692
4705
|
virtual: !0,
|
|
4693
4706
|
sticky: "",
|
|
4694
4707
|
"summary-fixed": "",
|
|
4695
|
-
preserveRow:
|
|
4696
|
-
style:
|
|
4697
|
-
class:
|
|
4698
|
-
onChange:
|
|
4699
|
-
onCellClick:
|
|
4700
|
-
onResizeColumn:
|
|
4701
|
-
},
|
|
4702
|
-
customFilterDropdown:
|
|
4708
|
+
preserveRow: N,
|
|
4709
|
+
style: P({ "--row-heigth": `${e.config.rowHeight}px` }),
|
|
4710
|
+
class: ve({ "modify-row-height": !!e.config.rowHeight }),
|
|
4711
|
+
onChange: et,
|
|
4712
|
+
onCellClick: tt,
|
|
4713
|
+
onResizeColumn: at
|
|
4714
|
+
}, ge({
|
|
4715
|
+
customFilterDropdown: W(({ confirm: t, clearFilters: r, column: i }) => [j(en, {
|
|
4703
4716
|
column: i,
|
|
4704
4717
|
searchConfig: e.config.search_config || [],
|
|
4705
4718
|
searchConditions: b.value,
|
|
4706
4719
|
"onUpdate:searchConditions": n[3] ||= (e) => b.value = e,
|
|
4707
|
-
searchType:
|
|
4720
|
+
searchType: q.value,
|
|
4708
4721
|
confirm: t,
|
|
4709
4722
|
clearFilters: r,
|
|
4710
|
-
onSearch:
|
|
4711
|
-
onReset:
|
|
4723
|
+
onSearch: Re,
|
|
4724
|
+
onReset: ze
|
|
4712
4725
|
}, null, 8, [
|
|
4713
4726
|
"column",
|
|
4714
4727
|
"searchConfig",
|
|
@@ -4717,7 +4730,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4717
4730
|
"confirm",
|
|
4718
4731
|
"clearFilters"
|
|
4719
4732
|
])]),
|
|
4720
|
-
bodyCell:
|
|
4733
|
+
bodyCell: W(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (F(), O(w, { key: 0 }, [A(V(n + 1 + M.pageSize * (M.current - 1)), 1)], 64)) : t.cellComponent ? (F(), E(B("Cell_" + t.cellComponent), {
|
|
4721
4734
|
key: 1,
|
|
4722
4735
|
cmpObj: {
|
|
4723
4736
|
column: t || {},
|
|
@@ -4725,50 +4738,50 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4725
4738
|
text: r,
|
|
4726
4739
|
dataSource: g.value,
|
|
4727
4740
|
record: i || {},
|
|
4728
|
-
pageSize:
|
|
4729
|
-
current:
|
|
4741
|
+
pageSize: M.pageSize ? M.pageSize : 500,
|
|
4742
|
+
current: M.current ? M.current : 1,
|
|
4730
4743
|
eventBus: e.eventBus,
|
|
4731
|
-
tableHeightY:
|
|
4744
|
+
tableHeightY: Ue.value,
|
|
4732
4745
|
requestParams: e.config.query_params,
|
|
4733
|
-
auth_btn_list:
|
|
4734
|
-
event_obj:
|
|
4746
|
+
auth_btn_list: ce.value,
|
|
4747
|
+
event_obj: H(y)
|
|
4735
4748
|
}
|
|
4736
|
-
}, null, 8, ["cmpObj"])) : (
|
|
4749
|
+
}, null, 8, ["cmpObj"])) : (F(), O(w, { key: 2 }, [ue.value && de.value === t.dataIndex ? (F(), O("span", {
|
|
4737
4750
|
key: 0,
|
|
4738
|
-
style:
|
|
4751
|
+
style: P(t.color ? t.color({
|
|
4739
4752
|
column: t,
|
|
4740
4753
|
index: n,
|
|
4741
4754
|
text: r,
|
|
4742
4755
|
record: i
|
|
4743
4756
|
}) : null)
|
|
4744
|
-
}, [(
|
|
4757
|
+
}, [(F(!0), O(w, null, R(r.toString().split(RegExp(`(?<=${ue.value})|(?=${ue.value})`, "i")), (e, t) => (F(), O(w, null, [e.toLowerCase() === ue.value.toLowerCase() ? (F(), O("mark", {
|
|
4745
4758
|
key: t,
|
|
4746
4759
|
class: "highlight"
|
|
4747
|
-
},
|
|
4760
|
+
}, V(e), 1)) : (F(), O(w, { key: 1 }, [A(V(e), 1)], 64))], 64))), 256))], 4)) : (F(), O("span", {
|
|
4748
4761
|
key: 1,
|
|
4749
|
-
style:
|
|
4762
|
+
style: P(t.color ? t.color({
|
|
4750
4763
|
column: t,
|
|
4751
4764
|
index: n,
|
|
4752
4765
|
text: r,
|
|
4753
4766
|
record: i
|
|
4754
4767
|
}) : null)
|
|
4755
|
-
},
|
|
4768
|
+
}, V(t.content ? t.content({
|
|
4756
4769
|
column: t,
|
|
4757
4770
|
index: n,
|
|
4758
4771
|
text: r,
|
|
4759
4772
|
record: i
|
|
4760
4773
|
}) : r), 5))], 64))]),
|
|
4761
|
-
contextmenuPopup:
|
|
4774
|
+
contextmenuPopup: W((t) => [j(sr, {
|
|
4762
4775
|
contextmenuPopup: t,
|
|
4763
4776
|
dataSource: g.value,
|
|
4764
|
-
columns:
|
|
4765
|
-
view_key:
|
|
4777
|
+
columns: Y.value,
|
|
4778
|
+
view_key: he.value,
|
|
4766
4779
|
view_flag_name: e.config.title,
|
|
4767
|
-
is_view:
|
|
4768
|
-
"self-event-bus":
|
|
4769
|
-
onRefresh:
|
|
4770
|
-
onExport:
|
|
4771
|
-
onColumnsChange:
|
|
4780
|
+
is_view: ke.value,
|
|
4781
|
+
"self-event-bus": H(y),
|
|
4782
|
+
onRefresh: Be,
|
|
4783
|
+
onExport: nt,
|
|
4784
|
+
onColumnsChange: rt
|
|
4772
4785
|
}, null, 8, [
|
|
4773
4786
|
"contextmenuPopup",
|
|
4774
4787
|
"dataSource",
|
|
@@ -4781,19 +4794,19 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4781
4794
|
_: 2
|
|
4782
4795
|
}, [e.config?.enable_custom_filter ? {
|
|
4783
4796
|
name: "customFilterIcon",
|
|
4784
|
-
fn:
|
|
4797
|
+
fn: W(({ filtered: e, column: t }) => [j(H(Pe), { style: P({ color: e || H(p)(b.value).some((e) => e.field_name === t.dataIndex) ? "#108ee9" : void 0 }) }, null, 8, ["style"])]),
|
|
4785
4798
|
key: "0"
|
|
4786
|
-
} : void 0,
|
|
4799
|
+
} : void 0, $e.value.length > 0 ? {
|
|
4787
4800
|
name: "summary",
|
|
4788
|
-
fn:
|
|
4789
|
-
default:
|
|
4790
|
-
default:
|
|
4801
|
+
fn: W(() => [j(i, null, {
|
|
4802
|
+
default: W(() => [j(r, { index: 0 }, {
|
|
4803
|
+
default: W(() => n[6] ||= [A("合计")]),
|
|
4791
4804
|
_: 1
|
|
4792
|
-
}), (
|
|
4805
|
+
}), (F(!0), O(w, null, R($e.value, (e) => (F(), E(r, {
|
|
4793
4806
|
key: e.key,
|
|
4794
4807
|
columnKey: e.key
|
|
4795
4808
|
}, {
|
|
4796
|
-
default:
|
|
4809
|
+
default: W((t) => [j(or, {
|
|
4797
4810
|
item: e,
|
|
4798
4811
|
summaryParams: t
|
|
4799
4812
|
}, null, 8, ["item", "summaryParams"])]),
|
|
@@ -4817,21 +4830,21 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4817
4830
|
"custom-header-cell",
|
|
4818
4831
|
"style",
|
|
4819
4832
|
"class"
|
|
4820
|
-
])) :
|
|
4833
|
+
])) : D("", !0)]),
|
|
4821
4834
|
_: 3
|
|
4822
|
-
}, 512)], 512),
|
|
4835
|
+
}, 512)], 512), le.value ? (F(), E(s, {
|
|
4823
4836
|
key: 0,
|
|
4824
4837
|
"column-list": Ie.value,
|
|
4825
|
-
columns:
|
|
4826
|
-
current:
|
|
4838
|
+
columns: Le.value,
|
|
4839
|
+
current: M.current,
|
|
4827
4840
|
datasource: g.value,
|
|
4828
|
-
filename:
|
|
4829
|
-
pageSize:
|
|
4830
|
-
total:
|
|
4831
|
-
requestParams:
|
|
4841
|
+
filename: Fe.value,
|
|
4842
|
+
pageSize: M.pageSize,
|
|
4843
|
+
total: M.total,
|
|
4844
|
+
requestParams: _e(),
|
|
4832
4845
|
queryData: e.config.list_url,
|
|
4833
|
-
open:
|
|
4834
|
-
"onUpdate:open": n[5] ||= (e) =>
|
|
4846
|
+
open: le.value,
|
|
4847
|
+
"onUpdate:open": n[5] ||= (e) => le.value = e
|
|
4835
4848
|
}, null, 8, [
|
|
4836
4849
|
"column-list",
|
|
4837
4850
|
"columns",
|
|
@@ -4843,9 +4856,9 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4843
4856
|
"requestParams",
|
|
4844
4857
|
"queryData",
|
|
4845
4858
|
"open"
|
|
4846
|
-
])) :
|
|
4859
|
+
])) : D("", !0)], 64);
|
|
4847
4860
|
};
|
|
4848
4861
|
}
|
|
4849
|
-
}), [["__scopeId", "data-v-
|
|
4862
|
+
}), [["__scopeId", "data-v-6e699e2c"]]);
|
|
4850
4863
|
//#endregion
|
|
4851
4864
|
export { Ct as a, _t as c, bt as i, $ as l, St as n, vt as o, gt as r, yt as s, ur as t };
|