agilebuilder-ui 1.1.65-tmp23 → 1.1.65-tmp24
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/index.full.min.js +462 -281
- package/dist/style.css +181 -175
- package/es/chat-embed/src/chat-sender.vue.mjs +1 -1
- package/es/chat-embed/src/chat-sender.vue2.mjs +26 -28
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +29 -29
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +68 -68
- package/es/department-tree-mobile/src/department-tree-service.mjs +20 -18
- package/es/department-tree-mobile/src/dept-result.vue.mjs +12 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +3 -3
- package/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +1 -1
- package/es/fs-preview/src/fs-preview.vue.mjs +26 -18
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs +1 -1
- package/es/index.mjs +2 -1
- package/es/src/components/Card/index.mjs +34 -31
- package/es/src/components/Scrollbar/index.vue.mjs +6 -6
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/utils/common-util.mjs +47 -39
- package/es/style.css +738 -732
- package/es/super-grid/src/apis.mjs +199 -173
- package/es/super-grid/src/components/mobile-table-card.mjs +53 -53
- package/es/super-grid/src/normal-column-content.vue.mjs +12 -12
- package/es/super-grid/src/normal-column.vue.mjs +4 -5
- package/es/super-grid/src/search-button.vue.mjs +4 -2
- package/es/super-grid/src/search-form-dialog.vue.mjs +22 -11
- package/es/super-grid/src/search-form-item.vue.mjs +5 -5
- package/es/super-grid/src/search-form-mobile.vue.mjs +19 -19
- package/es/super-grid/src/search-form-open.vue.mjs +5 -3
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +3 -1
- package/es/super-grid/src/search-form.vue.mjs +19 -13
- package/es/super-grid/src/super-grid.vue.mjs +271 -209
- package/es/super-grid/src/utils.mjs +346 -300
- package/es/utils/organization.mjs +24 -11
- package/lib/chat-embed/src/chat-sender.vue.cjs +1 -1
- package/lib/chat-embed/src/chat-sender.vue2.cjs +44 -46
- package/lib/chat-embed/src/index.vue.cjs +1 -1
- package/lib/chat-embed/src/index.vue2.cjs +14 -14
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +58 -58
- package/lib/department-tree-mobile/src/department-tree-service.cjs +10 -8
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +10 -10
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +16 -16
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +1 -1
- package/lib/fs-preview/src/fs-preview.vue.cjs +13 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +13 -13
- package/lib/index.cjs +7 -7
- package/lib/src/components/Card/index.cjs +14 -11
- package/lib/src/components/Scrollbar/index.vue.cjs +2 -2
- package/lib/src/i18n/langs/cn.cjs +1 -1
- package/lib/src/i18n/langs/en.cjs +1 -1
- package/lib/src/utils/common-util.cjs +24 -17
- package/lib/style.css +665 -659
- package/lib/super-grid/src/apis.cjs +190 -164
- package/lib/super-grid/src/components/mobile-table-card.cjs +37 -37
- package/lib/super-grid/src/normal-column-content.vue.cjs +2 -2
- package/lib/super-grid/src/normal-column.vue.cjs +10 -11
- package/lib/super-grid/src/search-button.vue.cjs +3 -1
- package/lib/super-grid/src/search-form-dialog.vue.cjs +19 -8
- package/lib/super-grid/src/search-form-item.vue.cjs +2 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +7 -7
- package/lib/super-grid/src/search-form-open.vue.cjs +7 -5
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +3 -1
- package/lib/super-grid/src/search-form.vue.cjs +15 -10
- package/lib/super-grid/src/super-grid.vue.cjs +220 -158
- package/lib/super-grid/src/utils.cjs +349 -274
- package/lib/utils/organization.cjs +35 -24
- package/package.json +1 -1
- package/src/components/Card/index.jsx +12 -2
- package/src/components/Scrollbar/index.vue +165 -154
- package/src/i18n/langs/cn.js +10 -2
- package/src/i18n/langs/en.js +10 -2
- package/src/styles/index.scss +9 -2
- package/src/styles/theme/default.scss +18 -13
- package/src/styles/theme/tiffany-blue-mobile/home.scss +44 -1
- package/src/utils/auth-api.js +1 -0
- package/src/utils/common-util.js +13 -0
|
@@ -1,106 +1,106 @@
|
|
|
1
1
|
import { defineComponent as e, defineEmits as l, ref as t, computed as a, watch as o, onUnmounted as n, createVNode as r, resolveComponent as u, isVNode as i, mergeProps as d } from "vue";
|
|
2
|
-
import { ElDrawer as c, ElBreadcrumb as s, ElLink as p, ElEmpty as v, ElDivider as m, ElIcon as g, ElDescriptions as h, ElDescriptionsItem as f, ElButton as
|
|
3
|
-
import
|
|
2
|
+
import { ElDrawer as c, ElBreadcrumb as s, ElLink as p, ElEmpty as v, ElDivider as m, ElIcon as g, ElDescriptions as h, ElDescriptionsItem as f, ElButton as b } from "element-plus";
|
|
3
|
+
import w from "../normal-column-content.vue.mjs";
|
|
4
4
|
import y from "../../../src/components/Card/index.mjs";
|
|
5
5
|
import C from "../../../src/components/Scrollbar/index.vue.mjs";
|
|
6
6
|
import x from "../store.mjs";
|
|
7
7
|
import { apisMixin as S } from "../apis.mjs";
|
|
8
8
|
import k from "../eventBus.mjs";
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import { Loading as
|
|
9
|
+
import { useI18n as D } from "vue-i18n";
|
|
10
|
+
import { Loading as $, CirclePlus as M } from "@element-plus/icons-vue";
|
|
11
11
|
function P(e2) {
|
|
12
12
|
return "function" == typeof e2 || "[object Object]" === Object.prototype.toString.call(e2) && !i(e2);
|
|
13
13
|
}
|
|
14
|
-
const T = e({ name: "MobileTableCard", components: { NormalColumnContent:
|
|
15
|
-
l(["currentChange", "update:current-page", "select"]);
|
|
16
|
-
const { t: S2 } =
|
|
17
|
-
e2.isStackingPaginatedData ? A.value[(e2.currentPage ?? 1) - 1] = l2 : A.value[0] = l2,
|
|
14
|
+
const T = e({ name: "MobileTableCard", components: { NormalColumnContent: w, CardView: y, Scrollbar: C }, mixins: [S], props: { showFieldCount: { type: [Number, void 0], default: () => 5 }, columns: { type: Array, default: () => [] }, data: { type: Array, default: () => [] }, getColumnComponentData: { type: [Function, void 0], default: void 0 }, currentPage: { type: [Number], default: 1 }, pageSize: { type: [Number], default: 20 }, pageTotal: { type: [Number], default: 0 }, isStackingPaginatedData: { type: Boolean, default: () => false }, listCode: { type: String, default: null }, isEnableEdit: { type: Boolean, default: () => false } }, setup(e2, i2) {
|
|
15
|
+
l(["currentChange", "update:current-page", "select", "selectionChange", "rowDblclick", "rowClick"]);
|
|
16
|
+
const { t: S2 } = D(), { attrs: T2, emit: E, expose: I } = i2, j = t(false), A = t([]), z = t([]), B = t(void 0), G = t(void 0), F = t(false), R = t([]), U = t(false), N = t(void 0), O = (l2) => {
|
|
17
|
+
e2.isStackingPaginatedData ? A.value[(e2.currentPage ?? 1) - 1] = l2 : A.value[0] = l2, j.value = false;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
const
|
|
19
|
+
O(e2.data);
|
|
20
|
+
const V = a(() => {
|
|
21
21
|
var _a, _b, _c, _d;
|
|
22
|
-
const
|
|
23
|
-
return
|
|
22
|
+
const l2 = x.get(e2.listCode), t2 = ((_a = l2 == null ? void 0 : l2.options) == null ? void 0 : _a.showOperationButton) ?? false, a2 = ((_b = l2 == null ? void 0 : l2.options) == null ? void 0 : _b.isFormSubTable) ?? false, o2 = ((_c = l2 == null ? void 0 : l2.options) == null ? void 0 : _c.subTableCanAdd) ?? false, n2 = (_d = K.value) == null ? void 0 : _d.some(({ prop: e3 }) => ["operation"].includes(e3));
|
|
23
|
+
return N ?? (t2 && a2 && o2 && n2);
|
|
24
24
|
});
|
|
25
|
-
k.$on("change-add-state", (e3) =>
|
|
26
|
-
const
|
|
25
|
+
k.$on("change-add-state", (e3) => N.value = e3);
|
|
26
|
+
const H = a(() => e2.isStackingPaginatedData ? A.value.flatMap((l2, t2) => t2 + 1 <= e2.currentPage ? l2 : []) : A.value[0] ?? []), L = a(() => {
|
|
27
27
|
const e3 = (l2) => (l2 == null ? void 0 : l2.flatMap((l3) => {
|
|
28
28
|
var _a;
|
|
29
29
|
return ((_a = l3 == null ? void 0 : l3.children) == null ? void 0 : _a.length) ? [l3, ...e3(l3.children)] : [l3];
|
|
30
30
|
})) ?? [];
|
|
31
|
-
return e3(
|
|
32
|
-
}), L = a(() => {
|
|
33
|
-
var _a;
|
|
34
|
-
return e2.isStackingPaginatedData ? (((_a = A.value[e2.currentPage - 1]) == null ? void 0 : _a.length) ?? 0) > 0 : V.value.length < e2.pageSize * e2.currentPage && Q.value >= e2.currentPage;
|
|
31
|
+
return e3(H.value);
|
|
35
32
|
}), q = a(() => {
|
|
36
33
|
var _a;
|
|
37
|
-
return ((_a =
|
|
34
|
+
return e2.isStackingPaginatedData ? (((_a = A.value[e2.currentPage - 1]) == null ? void 0 : _a.length) ?? 0) > 0 : H.value.length < e2.pageSize * e2.currentPage && W.value >= e2.currentPage;
|
|
38
35
|
}), J = a(() => {
|
|
36
|
+
var _a;
|
|
37
|
+
return ((_a = R.value[R.value.length - 1]) == null ? void 0 : _a.children) ?? [];
|
|
38
|
+
}), K = a(() => {
|
|
39
39
|
const l2 = (e3) => (e3 == null ? void 0 : e3.flatMap((e4) => {
|
|
40
40
|
var _a;
|
|
41
41
|
return ((_a = e4 == null ? void 0 : e4.children) == null ? void 0 : _a.length) ? l2(e4.children) : [e4];
|
|
42
42
|
})) ?? [];
|
|
43
43
|
return l2(e2.columns.filter((e3) => !!e3 && !["$selection", "$index"].includes(e3 == null ? void 0 : e3.prop)));
|
|
44
|
-
}),
|
|
45
|
-
const e3 =
|
|
44
|
+
}), Q = a(() => {
|
|
45
|
+
const e3 = K.value.map((e4, l3) => (e4.operations ? e4.layoutModelType = "footer" : e4.layoutModelType = "content", e4)), l2 = e3.filter(({ layoutModelType: e4 }) => ["content"].includes(e4));
|
|
46
46
|
return { header: l2[0] ? [l2[0]] : [], content: l2, footer: e3.filter(({ layoutModelType: e4 }) => ["footer"].includes(e4)) };
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
},
|
|
47
|
+
}), W = a(() => e2.pageTotal ? Math.ceil(e2.pageTotal / e2.pageSize) : 0), X = a(() => !!(e2.showFieldCount && Q.value.content.length > e2.showFieldCount)), Y = a(() => Q.value.footer.length > 0), Z = a(() => 7 * Q.value.content.map((e3) => (e3 == null ? void 0 : e3.label) ?? 0).reduce((e3, l2) => Math.max(e3, [...l2].reduce((e4, l3) => /[\u4e00-\u9fff]/.test(l3) ? e4 + 2 : e4 + 1, 0)), 0) + 15), _ = a(() => e2.columns.some((e3) => ["$selection"].includes(e3 == null ? void 0 : e3.prop))), ee = a(() => e2.columns.some((e3) => ["$index"].includes(e3 == null ? void 0 : e3.prop))), le = a(() => H.value[G.value]), te = (e3) => {
|
|
48
|
+
_.value && (z.value.includes(e3) ? z.value = z.value.filter((l2) => l2 !== e3) : z.value = [.../* @__PURE__ */ new Set([...z.value, e3])], B.value = e3);
|
|
49
|
+
}, ae = (l2, t2, a2, o2 = false) => {
|
|
50
50
|
var _a;
|
|
51
|
-
const { $bind: n2 = {}, $on: u2 = {} } = ((_a = e2.getColumnComponentData) == null ? void 0 : _a.call(e2, l2)) ?? {}, i3 = x.get(n2["list-code"]), c2 = i3 == null ? void 0 : i3.options, s2 = i3.lineEdit ?? false, p2 = { ...n2, options: c2, row: t2, rowIndex: a2, "right-click-menu-arr": c2 == null ? void 0 : c2.rightClickMenuArr, "line-edit": s2 }, v2 = { ...Object.fromEntries(Object.keys(u2).map((e3) => [`on${e3.charAt(0).toUpperCase()}${e3.slice(1).replace(/-([a-z])/g, (e4, l3) => l3.toUpperCase())}`, u2[e3]])) };
|
|
52
|
-
return r(
|
|
53
|
-
},
|
|
51
|
+
const { $bind: n2 = {}, $on: u2 = {} } = ((_a = e2.getColumnComponentData) == null ? void 0 : _a.call(e2, l2)) ?? {}, i3 = x.get(n2["list-code"]), c2 = i3 == null ? void 0 : i3.options, s2 = i3.lineEdit ?? false, p2 = { ...n2, "page-grid-data": e2.data, "is-data-children": U.value, options: c2, row: t2, rowIndex: a2, "right-click-menu-arr": c2 == null ? void 0 : c2.rightClickMenuArr, "line-edit": s2 }, v2 = { ...Object.fromEntries(Object.keys(u2).map((e3) => [`on${e3.charAt(0).toUpperCase()}${e3.slice(1).replace(/-([a-z])/g, (e4, l3) => l3.toUpperCase())}`, u2[e3]])) };
|
|
52
|
+
return r(w, d({ isContentViewText: o2 }, p2, v2), null);
|
|
53
|
+
}, oe = (e3, l2 = le.value, t2 = G.value, a2 = void 0) => r(h, { column: 1, "label-width": Z.value, align: "right", direction: "horizontal", layout: "form" }, { default: () => {
|
|
54
54
|
var _a, _b;
|
|
55
|
-
return [(_b = a2 ? (_a = e3 == null ? void 0 : e3.slice) == null ? void 0 : _a.call(e3, 0, a2) : e3) == null ? void 0 : _b.map((e4, a3) => r(f, { key: e4.label + a3 }, { default: () => [
|
|
55
|
+
return [(_b = a2 ? (_a = e3 == null ? void 0 : e3.slice) == null ? void 0 : _a.call(e3, 0, a2) : e3) == null ? void 0 : _b.map((e4, a3) => r(f, { key: e4.label + a3 }, { default: () => [ae(e4, l2, t2) || "-"], label: () => r("div", { innerHTML: e4.label ? `${e4.label}:` : "" }, null) }))];
|
|
56
56
|
} });
|
|
57
57
|
o(() => T2.selection, (e3) => {
|
|
58
|
-
|
|
59
|
-
}, { deep: true }), o(
|
|
58
|
+
z.value = e3.map(({ $rowDataGuId: e4 }) => e4);
|
|
59
|
+
}, { deep: true }), o(z, (e3, l2) => {
|
|
60
60
|
if (T2.selection.length === e3.length && T2.selection.every(({ $rowDataGuId: l3 }) => e3.includes(l3)))
|
|
61
61
|
return;
|
|
62
|
-
const t2 =
|
|
63
|
-
e3.length > (l2 == null ? void 0 : l2.length) && a2 &&
|
|
62
|
+
const t2 = L.value.filter(({ $rowDataGuId: l3 }) => e3 == null ? void 0 : e3.includes(l3)), a2 = B.value ? L.value.find(({ $rowDataGuId: e4 }) => B.value === e4) : void 0;
|
|
63
|
+
e3.length > (l2 == null ? void 0 : l2.length) && a2 && E("select", t2, a2), e3.length < (l2 == null ? void 0 : l2.length) && a2 && E("select", t2, a2), E("selectionChange", t2), B.value = void 0;
|
|
64
64
|
}, { deep: true }), o(() => e2.data, (e3) => {
|
|
65
|
-
|
|
65
|
+
U.value = e3.some((e4) => Array.isArray(e4 == null ? void 0 : e4.children)), O(e3);
|
|
66
66
|
}, { deep: true });
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
|
|
67
|
+
const ne = () => {
|
|
68
|
+
if (W.value, e2.currentPage, W.value > 1 && W.value > e2.currentPage && (H.value.length, e2.pageSize, e2.currentPage, H.value.length === e2.pageSize * e2.currentPage)) {
|
|
69
|
+
j.value = true;
|
|
70
70
|
const l2 = e2.currentPage + 1;
|
|
71
|
-
|
|
71
|
+
W.value, E("update:current-page", l2), E("currentChange", l2);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
n(() => {
|
|
75
75
|
k.$off("change-add-state");
|
|
76
76
|
});
|
|
77
|
-
return { getAddBtn: (
|
|
78
|
-
let
|
|
79
|
-
return
|
|
80
|
-
}, renderDom: (l2) => r(C, { onScrollToBottom:
|
|
77
|
+
return { getAddBtn: (l2) => {
|
|
78
|
+
let t2;
|
|
79
|
+
return V.value && r(b, { type: "primary", plain: true, icon: r(M, null, null), onClick: () => l2 == null ? void 0 : l2(e2.listCode) }, P(t2 = S2("imatrixUIPublicModel.add")) ? t2 : { default: () => [t2] });
|
|
80
|
+
}, renderDom: (l2) => r(C, { onScrollToBottom: ne, "flex-auto": true, "set-max-height": (e3) => {
|
|
81
81
|
if (e3 == null ? void 0 : e3.windowHeight) {
|
|
82
82
|
const l3 = (e3 == null ? void 0 : e3.windowHeight) - 70;
|
|
83
83
|
return l3 > 400 ? l3 : 400;
|
|
84
84
|
}
|
|
85
|
-
} }, { default: () => [r(c, { modelValue:
|
|
85
|
+
} }, { default: () => [r(c, { modelValue: F.value, "onUpdate:modelValue": (e3) => F.value = e3, "modal-class": "yx-drawer yx-scrollbar-body", "with-header": true, direction: "btt", "append-to-body": true, size: "90vh", onClosed: () => R.value = [] }, { default: () => [r(C, { "scrollable-main": true, "max-height": "100%", style: { flex: "1 1 auto" } }, { default: () => [r("div", { class: "yx-flex-wrap", vertical: true, style: { gap: "15px" } }, [J.value.map((l3, t2) => {
|
|
86
86
|
var _a, _b, _c, _d;
|
|
87
|
-
const a2 =
|
|
88
|
-
return r(y, { form: l3, no:
|
|
87
|
+
const a2 = z.value.includes(l3.$rowDataGuId), o2 = !!((((_a = l3 == null ? void 0 : l3.children) == null ? void 0 : _a.length) ?? 0) > 0), n2 = ((_b = Q.value.content) == null ? void 0 : _b.find(({ property: e3 }) => e3)) ?? Q.value.content[0], u2 = e2.isEnableEdit;
|
|
88
|
+
return r(y, { form: l3, no: ee ? t2 + 1 : void 0, isChecked: a2, isSubTable: o2, isCheck: _.value, isMore: !l3.$editing, isShowDetailsMore: X.value, isEnableEdit: u2, onChecked: () => !l3.$editing && te(l3.$rowDataGuId), onShowSubTable: () => {
|
|
89
89
|
R.value = [...R.value, l3];
|
|
90
|
-
}, onRowClick: (e3) =>
|
|
90
|
+
}, onRowClick: (e3) => E("rowClick", l3, n2, e3), onRowDblclick: (e3) => E("rowDblclick", l3, n2, e3) }, { titleSlot: Q.value.header && ((_c = Q.value.header) == null ? void 0 : _c.map((e3) => ae(e3, l3, t2, true))), children: ({ isMore: a3 }) => oe(Q.value.content, l3, t2, a3 ? e2.showFieldCount : void 0), footerSlot: Y.value && r("div", { class: "yx-flex-wrap", wrap: true, style: { gap: "15px" } }, [(_d = Q.value.footer) == null ? void 0 : _d.map((e3) => ae(e3, l3, t2))]) });
|
|
91
91
|
})])] })], header: () => {
|
|
92
92
|
let e3;
|
|
93
|
-
return r("div", { class: "yx-flex-wrap", style: { gap: "10px" } }, [
|
|
94
|
-
const t2 =
|
|
93
|
+
return r("div", { class: "yx-flex-wrap", style: { gap: "10px" } }, [Q.value.header[0] && `${Q.value.header[0].label}: `, r(s, { "separator-icon": r(u("ArrowRight"), null, null) }, P(e3 = R.value.map((e4, l3) => {
|
|
94
|
+
const t2 = ae(Q.value.header[0], e4, void 0, true);
|
|
95
95
|
return r(u("ElBreadcrumbItem"), null, { default: () => [R.value.length - 1 === l3 ? t2 : r(p, { onClick: () => R.value = R.value.slice(0, l3 + 1) }, P(t2) ? t2 : { default: () => [t2] })] });
|
|
96
96
|
})) ? e3 : { default: () => [e3] })]);
|
|
97
|
-
} }), r("div", { class: "yx-flex-wrap", vertical: true, style: "gap: 15px;" }, [0 ===
|
|
97
|
+
} }), r("div", { class: "yx-flex-wrap", vertical: true, style: "gap: 15px;" }, [0 === H.value.length && r(v, { description: S2("imatrixUIPublicModel.noData") }, P(l2) ? l2 : { default: () => [l2] }), H.value.map((l3, t2) => {
|
|
98
98
|
var _a, _b, _c, _d;
|
|
99
|
-
const a2 =
|
|
100
|
-
return r(y, { form: l3, no:
|
|
101
|
-
R.value = [l3],
|
|
102
|
-
}, onRowClick: (e3) =>
|
|
103
|
-
}),
|
|
99
|
+
const a2 = z.value.includes(l3.$rowDataGuId), o2 = !!((_a = l3 == null ? void 0 : l3.children) == null ? void 0 : _a.length), n2 = ((_b = Q.value.content) == null ? void 0 : _b.find(({ property: e3 }) => e3)) ?? Q.value.content[0], u2 = e2.isEnableEdit;
|
|
100
|
+
return r(y, { form: l3, no: ee ? t2 + 1 : void 0, isChecked: a2, isSubTable: o2, isCheck: _.value, isMore: !l3.$editing, isShowDetailsMore: X.value, isEnableEdit: u2, onChecked: () => !l3.$editing && te(l3.$rowDataGuId), onShowSubTable: () => {
|
|
101
|
+
R.value = [l3], F.value = true;
|
|
102
|
+
}, onRowClick: (e3) => E("rowClick", l3, n2, e3), onRowDblclick: (e3) => E("rowDblclick", l3, n2, e3) }, { titleSlot: Q.value.header && ((_c = Q.value.header) == null ? void 0 : _c.map((e3) => ae(e3, l3, t2, true))), children: ({ isMore: a3 }) => oe(Q.value.content, l3, t2, a3 ? e2.showFieldCount : void 0), footerSlot: Y.value && r("div", { class: "yx-flex-wrap", wrap: true, style: { gap: "15px" } }, [(_d = Q.value.footer) == null ? void 0 : _d.map((e3) => ae(e3, l3, t2))]) });
|
|
103
|
+
}), H.value.length > 0 && l2, H.value.length > 0 && W.value > 1 && r(m, null, { default: () => [W.value > e2.currentPage || j.value ? r(g, { "loading-rotate": true, size: 25, color: "#409eff", style: { margin: "15px auto" } }, { default: () => [r($, null, null)] }) : W.value <= e2.currentPage && q.value && S2("imatrixUIPublicModel.noMoreData")] })])] }) };
|
|
104
104
|
}, render() {
|
|
105
105
|
return this.renderDom(this.getAddBtn(this.createRow));
|
|
106
106
|
} });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CirclePlus as t, ZoomIn as e } from "@element-plus/icons-vue";
|
|
2
2
|
import { $on as o, $off as i, $emit as n } from "../../utils/gogocodeTransfer.mjs";
|
|
3
|
-
import { getAdditionalParamMap as l, isDisableEdit as s, isEditOptionFunction as r, ArrowKeyAction as a, isHasEditOption as
|
|
3
|
+
import { getAdditionalParamMap as l, isDisableEdit as s, isEditOptionFunction as r, ArrowKeyAction as a, isHasEditOption as p, getFileList as d, isRequiredEdit as c, isDynamicDataSourceSource as m } from "./utils.mjs";
|
|
4
4
|
import u from "./dynamic-input.vue.mjs";
|
|
5
5
|
import h from "./store.mjs";
|
|
6
6
|
import { doFormatWithValueSet as w } from "./formatter.mjs";
|
|
@@ -18,7 +18,7 @@ import { formatScanRuleSets as k } from "./scan-util.mjs";
|
|
|
18
18
|
import T from "../../src/store/index.mjs";
|
|
19
19
|
import { isPromise as F } from "../../src/utils/common-util.mjs";
|
|
20
20
|
import "element-plus";
|
|
21
|
-
import { resolveComponent as O, resolveDirective as j, openBlock as P, createElementBlock as R, createBlock as $, normalizeClass as L, withKeys as q, createVNode as H, withCtx as
|
|
21
|
+
import { resolveComponent as O, resolveDirective as j, openBlock as P, createElementBlock as R, createBlock as $, normalizeClass as L, withKeys as q, createVNode as H, withCtx as A, toDisplayString as V, createCommentVNode as G, Fragment as _, renderList as M, withDirectives as N, createTextVNode as B, resolveDynamicComponent as W, createElementVNode as U, normalizeStyle as J } from "vue";
|
|
22
22
|
import "./normal-column-content.vue2.mjs";
|
|
23
23
|
import z from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
24
24
|
import K from "../../fs-preview/src/fs-preview.vue.mjs";
|
|
@@ -34,8 +34,8 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
34
34
|
const r2 = this.listCode + "_" + this.column.prop;
|
|
35
35
|
let a2;
|
|
36
36
|
null !== e2.lineEdit && void 0 !== e2.lineEdit && (a2 = e2.lineEdit);
|
|
37
|
-
let
|
|
38
|
-
return e2.basicInfo && e2.basicInfo.textOverflow && (
|
|
37
|
+
let p2 = "hidden";
|
|
38
|
+
return e2.basicInfo && e2.basicInfo.textOverflow && (p2 = e2.basicInfo.textOverflow), this.isShowForm && (p2 = "newline"), { selectRow: null, that: this, columnFormatter: this.column.formatter, hyperLinks: {}, fileDownType: "", isFormSubTable: false, subTableCanAdd: true, isShowAdd: false, cellWidth: null, parentFormData: t2, fileMultiple: false, showSingleImgFlag: false, singleImgSrc: "", fileList: [], index: null, isEditable: this.column.editable, showRichEditorViewer: false, getFormData: e2.options.getFormData, getTableGridData: e2.options.getGridData, additionalParamMap: i2, disabled: false, additionalSettings: this.getColumnCustomControlControlConfig(this.column.formatter), scanEnable: s2, componentId: r2, controlConfig: n2, requiredClass: "", lineEdit: a2, options: o2, textOverflow: p2, linkObject: {} };
|
|
39
39
|
}, computed: { isHideEdit() {
|
|
40
40
|
return !!this.disabled;
|
|
41
41
|
}, $rowGuId() {
|
|
@@ -195,10 +195,10 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
195
195
|
}
|
|
196
196
|
}, isSaveByEnter() {
|
|
197
197
|
const t2 = h.get(this.listCode);
|
|
198
|
-
return void 0 === t2.options.lineEditOptions.isSaveByEnter ||
|
|
198
|
+
return void 0 === t2.options.lineEditOptions.isSaveByEnter || p("isSaveByEnter", this.listCode) && true === t2.options.lineEditOptions.isSaveByEnter;
|
|
199
199
|
}, isRestoreByEsc() {
|
|
200
200
|
const t2 = h.get(this.listCode);
|
|
201
|
-
return void 0 === t2.options.lineEditOptions.isRestoreByEsc ||
|
|
201
|
+
return void 0 === t2.options.lineEditOptions.isRestoreByEsc || p("isRestoreByEsc", this.listCode) && true === t2.options.lineEditOptions.isRestoreByEsc;
|
|
202
202
|
}, canFocus(t2) {
|
|
203
203
|
const e2 = h.get(this.listCode);
|
|
204
204
|
return t2 === e2.lineEdit.editingCell.row && this.column.prop === e2.lineEdit.editingCell.prop;
|
|
@@ -231,9 +231,9 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
231
231
|
});
|
|
232
232
|
}), e2 && f.onClickFun(t2.row, this.column, e2.onClick, t2.rowIndex);
|
|
233
233
|
}, beforeHandleCommand: (t2, e2, o2) => ({ comman: t2, row: e2, rowIndex: o2 }), previewImg(t2) {
|
|
234
|
-
this.fileList =
|
|
234
|
+
this.fileList = d(t2, this.column, this.isSql), this.showSingleImgFlag = true;
|
|
235
235
|
}, getFileList(t2) {
|
|
236
|
-
return
|
|
236
|
+
return d(t2, this.column, this.isSql);
|
|
237
237
|
}, getColumnWidth() {
|
|
238
238
|
return this.column && "operation" === this.column.prop && !this.column.width ? "210" : this.column.width ? this.column.width + "" : "130";
|
|
239
239
|
}, fnProhibitToEdit(t2) {
|
|
@@ -308,12 +308,12 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
308
308
|
if (t2 && t2.customParams)
|
|
309
309
|
return y(t2.customParams, (_c = this.options) == null ? void 0 : _c.pageContext, this.row);
|
|
310
310
|
}
|
|
311
|
-
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, X = { class: "normal-column-content-view" }, Q = { key: 0, "table-column-placeholder": "" }, Y = { key: 1, class: "grid-operation-buttons", "data-v": "20250527" }, tt = ["id"], et = { key: 0, type: "primary" }, ot = ["id", "title"], it = ["id", "title"], nt = ["id"], lt = ["id", "title"], st = ["id"], rt = { key: 0, type: "primary", style: { width: "100%" } }, at = ["id", "title"],
|
|
311
|
+
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, X = { class: "normal-column-content-view" }, Q = { key: 0, "table-column-placeholder": "" }, Y = { key: 1, class: "grid-operation-buttons", "data-v": "20250527" }, tt = ["id"], et = { key: 0, type: "primary" }, ot = ["id", "title"], it = ["id", "title"], nt = ["id"], lt = ["id", "title"], st = ["id"], rt = { key: 0, type: "primary", style: { width: "100%" } }, at = ["id", "title"], pt = ["id"], dt = { key: 1 }, ct = ["id", "title"], mt = ["id", "title"], ut = ["id"], ht = ["id", "title", "innerHTML"], wt = ["id"];
|
|
312
312
|
const ft = z(Z, [["render", function(t2, e2, o2, i2, n2, l2) {
|
|
313
313
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
314
|
-
const s2 = O("dynamic-input"), r2 = O("Edit"), a2 = O("el-icon"),
|
|
315
|
-
return P(), R("div", X, [l2.isEditing || o2.isShowForm ? (P(), $(s2, { key: 0, ref: "dynamicRef", value: o2.row[o2.column.prop], "onUpdate:value": e2[0] || (e2[0] = (t3) => o2.row[o2.column.prop] = t3), class: L(n2.requiredClass), column: o2.column, "is-sql": o2.isSql, "line-edit": n2.lineEdit, "list-code": o2.listCode, "list-toolbar-form-data": o2.listToolbarFormData, options: o2.column.valueSet, "grid-options": n2.options, position: { row: o2.rowIndex, prop: o2.column.prop }, disabled: n2.disabled, row: o2.row, "row-index": o2.rowIndex, type: o2.column.componentType, onKeyup: q(l2.clearAllEditing, ["enter"]), onFindIndex: e2[1] || (e2[1] = (t3) => l2.findIndex(o2.rowIndex)), onFocus: e2[2] || (e2[2] = (t3) => l2.onFocus(o2.rowIndex)), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList, onRefresData: l2.refresData, onRefresMainTableFields: l2.refresMainTableFields, onRefresPortData: l2.refresPortData, onRefresPortsData: l2.refresPortsData, onChangeDisabled: l2.changeDisabled, onChangeRequired: l2.changeRequired, onOpenPage: l2.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (P(), R("div", { key: 1, class: L(((_d = (_c = (_b = (_a = n2.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.columnEditable) ? "column-text-main" : "") }, [n2.lineEdit.editable && ((_h = (_g = (_f = (_e = n2.options) == null ? void 0 : _e.configureObj) == null ? void 0 : _f.props) == null ? void 0 : _g.base) == null ? void 0 : _h.columnEditable) && n2.isEditable && !l2.isHideEdit && !o2.isContentViewText ? (P(), R("div", { key: 0, class: "column-text-edit-main", onClick: e2[3] || (e2[3] = (...t3) => l2.onEditing && l2.onEditing(...t3)) }, [H(a2, { size: 14, color: "#409eff" }, { default: G(() => [H(r2)]), _: 1 }), [void 0, null, ""].includes(o2.row[o2.column.prop]) ? (P(), R("span", Q, A(t2.$t("superGrid.editablePlaceholder")), 1)) : V("", true)])) : V("", true), o2.column.operations ? (P(), R("span", Y, [(P(true), R(_, null, M(o2.column.operations, (e3, i3) => (P(), R("span", { key: i3, class: L([o2.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [e3.isGroup ? (P(), $(c2, { key: 0, size: e3.buttons && e3.buttons.length > 0 ? e3.buttons[0].props.size : "small", "split-button": "", onCommand: l2.handleCommand }, { dropdown: G(() => [H(p2, null, { default: G(() => [(P(true), R(_, null, M(e3.buttons, (e4, i4) => (P(), R("span", { key: e4.props.code + i4 }, [N((P(), $(d2, { command: l2.beforeHandleCommand(e4.props.code, o2.row, o2.rowIndex), disabled: t2.preventReclick }, { default: G(() => [B(A(t2.$escapeHtml(e4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[x2, e4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: G(() => [B(A(t2.$escapeHtml(e3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : e3.props.customControl ? N((P(), $(W(e3.props.customControl), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, disabled: true, row: o2.pageGridData[o2.rowIndex], entity: o2.pageGridData[o2.rowIndex], prop: o2.column.prop, parent: n2.parentFormData, "row-index": o2.rowIndex, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, "current-page": o2.currentPage, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null, onRefreshList: l2.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "custom-params", "onRefreshList"])), [[x2, e3.props.permission]]) : (P(), $(m2, { key: 2, column: o2.column, editing: o2.row.$editing, entity: o2.row, "is-show": e3.isShow, label: e3.props.label ? e3.props.label : o2.row[o2.column.prop], "on-click": e3.onClick, "operation-index": i3, "operation-setting": e3.props, "event-name": e3.eventName, "row-index": o2.rowIndex, "list-code": o2.listCode, "parent-form-data": n2.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "event-name", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : t2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex) ? (P(), R("span", { key: 2, class: L(o2.isShowForm ? "" : "cell--span") }, [(P(), $(W(o2.column.prop + o2.rowIndex), { entity: o2.row, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, "additional-settings": n2.additionalSettings, "page-context": (_i = n2.options) == null ? void 0 : _i.pageContext, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context", "custom-params"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "customControl" === n2.columnFormatter.type && n2.columnFormatter.options && n2.columnFormatter.options.format && "" !== n2.columnFormatter.options.format ? (P(), R("span", { key: 3, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(P(), $(W(n2.columnFormatter.options.format), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, "current-page": o2.currentPage, disabled: true, entity: o2.pageGridData[o2.rowIndex], "get-form-data": n2.getFormData, "get-grid-data": n2.getTableGridData, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, parent: n2.parentFormData, prop: o2.column.prop, row: o2.pageGridData[o2.rowIndex], "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.pageGridData[o2.rowIndex], o2.rowIndex)), value: l2.getCellValue(o2.pageGridData[o2.rowIndex]), "additional-param-map": n2.additionalParamMap, listCode: o2.listCode, "component-id": n2.componentId, "additional-settings": n2.additionalSettings, "page-context": (_j = n2.options) == null ? void 0 : _j.pageContext, "custom-params": l2.getCustomParams(), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "custom-params", "onProhibitToEdit", "onRefreshList"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "secretInfo" === n2.columnFormatter.type ? (P(), R("span", { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(u2, { entity: o2.row, "field-label": t2.$escapeHtml(t2.label), "list-code": o2.listCode, "list-name": o2.listName, "page-code": o2.pageCode, prop: o2.column.prop, "table-name": o2.tableName, value: l2.getCellValue(o2.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, tt)) : t2.isObjectProp(o2.column.prop) ? (P(), R(_, { key: 5 }, [o2.column.formatter && "files" === o2.column.formatter.type ? (P(), R("span", et, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ot)])) : "hyperlinks" === ((_k = n2.columnFormatter) == null ? void 0 : _k.type) && true === n2.linkObject.visible ? (P(), $(f2, { key: 1, type: l2.getLinkType(o2.row), onClick: e2[4] || (e2[4] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: G(() => [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: n2.linkObject.title, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(A(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : V("", true)], 14, it)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(A(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : V("", true)], 10, nt))]), _: 1 }, 8, ["type"])) : t2.isShowOverflowTooltip ? (P(), R("span", { key: 2, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, A(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 15, lt)) : (P(), R("span", { key: 3, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, A(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, st))], 64)) : (P(), R(_, { key: 6 }, ["annex" === o2.column.componentType || "multipartUpload" === o2.column.componentType ? (P(), R("span", rt, [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { width: n2.cellWidth, entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, at)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, dt))])) : o2.column.formatter && "files" === o2.column.formatter.type ? (P(), R("span", pt, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ct)])) : "hyperlinks" === ((_l = n2.columnFormatter) == null ? void 0 : _l.type) && n2.linkObject.visible ? (P(), $(f2, { key: 2, type: "primary", onClick: e2[5] || (e2[5] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: G(() => [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(n2.linkObject.title), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(A(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : V("", true)], 14, mt)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(A(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : V("", true)], 10, ut))]), _: 1 })) : o2.column.formatter && "richEditor" === o2.column.formatter.type ? (P(), $(g2, { key: 3, content: t2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: G(() => [U("em", { class: "fa fa-info-circle annex-cell", onClick: e2[6] || (e2[6] = (t3) => l2.showRichEditorContent(o2.row, o2.column, l2.getHeader())) })]), _: 1 }, 8, ["content"])) : o2.column.formatter && "icon" === o2.column.formatter.type ? (P(), $(b2, { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, column: o2.column, row: o2.row, "row-index": o2.rowIndex, "is-sql": o2.isSql, "list-code": o2.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : t2.isShowOverflowTooltip ? (P(), R("span", { key: 5, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: l2.getLabel(o2.row), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 14, ht)) : (P(), R("span", { key: 6, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, A(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, wt))], 64))], 2)), n2.showSingleImgFlag ? (P(), $(C2, { key: 2, "file-list": n2.fileList, onClose: e2[7] || (e2[7] = (t3) => n2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : V("", true), n2.showRichEditorViewer ? (P(), $(y2, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l2.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : V("", true)]);
|
|
316
|
-
}], ["__scopeId", "data-v-
|
|
314
|
+
const s2 = O("dynamic-input"), r2 = O("Edit"), a2 = O("el-icon"), p2 = O("el-dropdown-item"), d2 = O("el-dropdown-menu"), c2 = O("el-dropdown"), m2 = O("row-operation"), u2 = O("secret-info"), h2 = O("FsPreview"), w2 = O("SuperIcon"), f2 = O("el-link"), g2 = O("el-tooltip"), b2 = O("GridIcon"), C2 = O("view-image-dialog"), y2 = O("rich-editor-viewer"), x2 = j("permission");
|
|
315
|
+
return P(), R("div", X, [l2.isEditing || o2.isShowForm ? (P(), $(s2, { key: 0, ref: "dynamicRef", value: o2.row[o2.column.prop], "onUpdate:value": e2[0] || (e2[0] = (t3) => o2.row[o2.column.prop] = t3), class: L(n2.requiredClass), column: o2.column, "is-sql": o2.isSql, "line-edit": n2.lineEdit, "list-code": o2.listCode, "list-toolbar-form-data": o2.listToolbarFormData, options: o2.column.valueSet, "grid-options": n2.options, position: { row: o2.rowIndex, prop: o2.column.prop }, disabled: n2.disabled, row: o2.row, "row-index": o2.rowIndex, type: o2.column.componentType, onKeyup: q(l2.clearAllEditing, ["enter"]), onFindIndex: e2[1] || (e2[1] = (t3) => l2.findIndex(o2.rowIndex)), onFocus: e2[2] || (e2[2] = (t3) => l2.onFocus(o2.rowIndex)), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList, onRefresData: l2.refresData, onRefresMainTableFields: l2.refresMainTableFields, onRefresPortData: l2.refresPortData, onRefresPortsData: l2.refresPortsData, onChangeDisabled: l2.changeDisabled, onChangeRequired: l2.changeRequired, onOpenPage: l2.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (P(), R("div", { key: 1, class: L(((_d = (_c = (_b = (_a = n2.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.columnEditable) ? "column-text-main" : "") }, [n2.lineEdit.editable && ((_h = (_g = (_f = (_e = n2.options) == null ? void 0 : _e.configureObj) == null ? void 0 : _f.props) == null ? void 0 : _g.base) == null ? void 0 : _h.columnEditable) && n2.isEditable && !l2.isHideEdit && !o2.isContentViewText ? (P(), R("div", { key: 0, class: "column-text-edit-main", onClick: e2[3] || (e2[3] = (...t3) => l2.onEditing && l2.onEditing(...t3)) }, [H(a2, { size: 14, color: "#409eff" }, { default: A(() => [H(r2)]), _: 1 }), [void 0, null, ""].includes(o2.row[o2.column.prop]) ? (P(), R("span", Q, V(t2.$t("superGrid.editablePlaceholder")), 1)) : G("", true)])) : G("", true), o2.column.operations ? (P(), R("span", Y, [(P(true), R(_, null, M(o2.column.operations, (e3, i3) => (P(), R("span", { key: i3, class: L([o2.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [e3.isGroup ? (P(), $(c2, { key: 0, size: e3.buttons && e3.buttons.length > 0 ? e3.buttons[0].props.size : "small", "split-button": "", onCommand: l2.handleCommand }, { dropdown: A(() => [H(d2, null, { default: A(() => [(P(true), R(_, null, M(e3.buttons, (e4, i4) => (P(), R("span", { key: e4.props.code + i4 }, [N((P(), $(p2, { command: l2.beforeHandleCommand(e4.props.code, o2.row, o2.rowIndex), disabled: t2.preventReclick }, { default: A(() => [B(V(t2.$escapeHtml(e4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[x2, e4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: A(() => [B(V(t2.$escapeHtml(e3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : e3.props.customControl ? N((P(), $(W(e3.props.customControl), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, disabled: true, row: o2.row, entity: o2.row, prop: o2.column.prop, parent: n2.parentFormData, "row-index": o2.rowIndex, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, "current-page": o2.currentPage, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null, onRefreshList: l2.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "custom-params", "onRefreshList"])), [[x2, e3.props.permission]]) : (P(), $(m2, { key: 2, column: o2.column, editing: o2.row.$editing, entity: o2.row, "is-show": e3.isShow, label: e3.props.label ? e3.props.label : o2.row[o2.column.prop], "on-click": e3.onClick, "operation-index": i3, "operation-setting": e3.props, "event-name": e3.eventName, "row-index": o2.rowIndex, "list-code": o2.listCode, "parent-form-data": n2.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "event-name", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : t2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex) ? (P(), R("span", { key: 2, class: L(o2.isShowForm ? "" : "cell--span") }, [(P(), $(W(o2.column.prop + o2.rowIndex), { entity: o2.row, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, "additional-settings": n2.additionalSettings, "page-context": (_i = n2.options) == null ? void 0 : _i.pageContext, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context", "custom-params"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "customControl" === n2.columnFormatter.type && n2.columnFormatter.options && n2.columnFormatter.options.format && "" !== n2.columnFormatter.options.format ? (P(), R("span", { key: 3, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(P(), $(W(n2.columnFormatter.options.format), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, "current-page": o2.currentPage, disabled: true, entity: o2.row, "get-form-data": n2.getFormData, "get-grid-data": n2.getTableGridData, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, listCode: o2.listCode, "component-id": n2.componentId, "additional-settings": n2.additionalSettings, "page-context": (_j = n2.options) == null ? void 0 : _j.pageContext, "custom-params": l2.getCustomParams(), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "custom-params", "onProhibitToEdit", "onRefreshList"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "secretInfo" === n2.columnFormatter.type ? (P(), R("span", { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(u2, { entity: o2.row, "field-label": t2.$escapeHtml(t2.label), "list-code": o2.listCode, "list-name": o2.listName, "page-code": o2.pageCode, prop: o2.column.prop, "table-name": o2.tableName, value: l2.getCellValue(o2.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, tt)) : t2.isObjectProp(o2.column.prop) ? (P(), R(_, { key: 5 }, [o2.column.formatter && "files" === o2.column.formatter.type ? (P(), R("span", et, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ot)])) : "hyperlinks" === ((_k = n2.columnFormatter) == null ? void 0 : _k.type) && true === n2.linkObject.visible ? (P(), $(f2, { key: 1, type: l2.getLinkType(o2.row), onClick: e2[4] || (e2[4] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: A(() => [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: n2.linkObject.title, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(V(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 14, it)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(V(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 10, nt))]), _: 1 }, 8, ["type"])) : t2.isShowOverflowTooltip ? (P(), R("span", { key: 2, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 15, lt)) : (P(), R("span", { key: 3, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, st))], 64)) : (P(), R(_, { key: 6 }, ["annex" === o2.column.componentType || "multipartUpload" === o2.column.componentType ? (P(), R("span", rt, [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { width: n2.cellWidth, entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, at)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, pt))])) : o2.column.formatter && "files" === o2.column.formatter.type ? (P(), R("span", dt, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ct)])) : "hyperlinks" === ((_l = n2.columnFormatter) == null ? void 0 : _l.type) && n2.linkObject.visible ? (P(), $(f2, { key: 2, type: "primary", onClick: e2[5] || (e2[5] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: A(() => [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(n2.linkObject.title), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(V(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 14, mt)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(V(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 10, ut))]), _: 1 })) : o2.column.formatter && "richEditor" === o2.column.formatter.type ? (P(), $(g2, { key: 3, content: t2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: A(() => [U("em", { class: "fa fa-info-circle annex-cell", onClick: e2[6] || (e2[6] = (t3) => l2.showRichEditorContent(o2.row, o2.column, l2.getHeader())) })]), _: 1 }, 8, ["content"])) : o2.column.formatter && "icon" === o2.column.formatter.type ? (P(), $(b2, { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, column: o2.column, row: o2.row, "row-index": o2.rowIndex, "is-sql": o2.isSql, "list-code": o2.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : t2.isShowOverflowTooltip ? (P(), R("span", { key: 5, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: l2.getLabel(o2.row), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 14, ht)) : (P(), R("span", { key: 6, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, wt))], 64))], 2)), n2.showSingleImgFlag ? (P(), $(C2, { key: 2, "file-list": n2.fileList, onClose: e2[7] || (e2[7] = (t3) => n2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : G("", true), n2.showRichEditorViewer ? (P(), $(y2, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l2.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : G("", true)]);
|
|
316
|
+
}], ["__scopeId", "data-v-30804a71"]]);
|
|
317
317
|
export {
|
|
318
318
|
ft as default
|
|
319
319
|
};
|
|
@@ -12,7 +12,7 @@ import h from "../../rich-editor/viewer.vue.mjs";
|
|
|
12
12
|
import f from "./components/grid-icon.vue.mjs";
|
|
13
13
|
import b from "./normal-column-content.vue.mjs";
|
|
14
14
|
import g from "./eventBus.mjs";
|
|
15
|
-
import { resolveComponent as w, openBlock as C, createBlock as T, withCtx as D, createElementBlock as P, normalizeClass as S, createElementVNode as
|
|
15
|
+
import { resolveComponent as w, openBlock as C, createBlock as T, withCtx as D, createElementBlock as P, normalizeClass as S, createElementVNode as v, resolveDynamicComponent as F, createVNode as y, createCommentVNode as R, normalizeStyle as E } from "vue";
|
|
16
16
|
import "./normal-column.vue2.mjs";
|
|
17
17
|
import x from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
18
18
|
import j from "../../fs-preview/src/fs-preview.vue.mjs";
|
|
@@ -38,8 +38,7 @@ const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, Ric
|
|
|
38
38
|
}, fixed() {
|
|
39
39
|
return !!this.column.fixed && (!["null", "false", "undefined"].includes(this.column.fixed) && this.column.fixed);
|
|
40
40
|
}, sortable() {
|
|
41
|
-
|
|
42
|
-
return !(e2 && e2.options && e2.options.isFormSubTable && e2.options.showOperationButton) && ("false" !== this.column.sortable && false !== this.column.sortable && "" !== this.column.sortable && (("true" === this.column.sortable || true === this.column.sortable || !!this.column.sortable) && "custom"));
|
|
41
|
+
return "false" !== this.column.sortable && false !== this.column.sortable && "" !== this.column.sortable && (("true" === this.column.sortable || true === this.column.sortable || !!this.column.sortable) && "custom");
|
|
43
42
|
}, lineEdit() {
|
|
44
43
|
let e2 = false;
|
|
45
44
|
if (this.listCode) {
|
|
@@ -99,8 +98,8 @@ const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, Ric
|
|
|
99
98
|
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, k = ["title", "innerHTML"], M = { style: { "margin-left": "5px" } };
|
|
100
99
|
const q = x(A, [["render", function(e2, t2, o2, i2, r2, l2) {
|
|
101
100
|
const a2 = w("CirclePlus"), n2 = w("el-icon"), s2 = w("Remove"), u2 = w("NormalColumnContent"), d2 = w("el-table-column");
|
|
102
|
-
return C(), T(d2, { key: o2.column.prop, align: r2.align, "class-name": o2.column.prop, "filter-method": l2.filterMethod, filters: l2.filters, fixed: l2.fixed, "header-align": r2.headerAlign, prop: o2.column.prop, sortable: l2.sortable, "min-width": l2.getColumnWidth() }, { header: D(() => [o2.column.customHeader ? (C(), T(
|
|
103
|
-
}], ["__scopeId", "data-v-
|
|
101
|
+
return C(), T(d2, { key: o2.column.prop, align: r2.align, "class-name": o2.column.prop, "filter-method": l2.filterMethod, filters: l2.filters, fixed: l2.fixed, "header-align": r2.headerAlign, prop: o2.column.prop, sortable: l2.sortable, "min-width": l2.getColumnWidth() }, { header: D(() => [o2.column.customHeader ? (C(), T(F(o2.column.customHeader), { key: 1, prop: o2.column.prop, parent: r2.parentFormData, "grid-data": o2.gridData, "current-page": o2.currentPage, label: e2.$escapeHtml(e2.label), column: o2.column }, null, 8, ["prop", "parent", "grid-data", "current-page", "label", "column"])) : (C(), P("span", { key: 0, class: S([{ is_req: l2.isFieldRequired() }, "normal-column-header"]) }, [v("span", { title: e2.$escapeHtml(e2.label), class: "cell--span required__label", innerHTML: e2.$escapeHtml(e2.label) }, null, 8, k)], 2)), v("span", M, [r2.isShowAdd ? (C(), T(n2, { key: 0, class: "normal-column-header normal-column-header-icon", onClick: l2.createFormSubTableRow }, { default: D(() => [y(a2)]), _: 1 }, 8, ["onClick"])) : R("", true), r2.isShowDelete ? (C(), T(n2, { key: 1, class: "normal-column-header normal-column-header-icon", onClick: l2.deleteFormSubTableRow }, { default: D(() => [y(s2)]), _: 1 }, 8, ["onClick"])) : R("", true)])]), default: D((e3) => [y(u2, { ref: o2.column.prop, "is-sql": o2.isSql, column: o2.column, "list-code": o2.listCode, "new-width": o2.newWidth, "drag-column-prop": o2.dragColumnProp, "right-click-menu-arr": r2.options.rightClickMenuArr, "table-name": o2.tableName, "page-code": o2.pageCode, "list-toolbar-form-data": o2.listToolbarFormData, "list-name": o2.listName, options: r2.options, "current-page": o2.currentPage, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, row: e3.row, "row-index": e3.$index, "line-edit": l2.lineEdit, "custom-format": o2.customFormat, class: S(l2.isValidateError(e3.row, e3.$index) ? "required_bg required-corner" : ""), style: E(l2.isValidateError(e3.row, e3.$index) ? "display:block;" : ""), onOpenPage: l2.openPageEvent, onRefresData: l2.refresData, onRefreshList: l2.refreshList, onRefresPortData: l2.refresPortData, onRefresPortsData: l2.refresPortsData, onRefresMainTableFields: l2.refresMainTableFields, onProhibitToEdit: l2.prohibitToEdit }, null, 8, ["is-sql", "column", "list-code", "new-width", "drag-column-prop", "right-click-menu-arr", "table-name", "page-code", "list-toolbar-form-data", "list-name", "options", "current-page", "grid-data", "page-grid-data", "row", "row-index", "line-edit", "custom-format", "class", "style", "onOpenPage", "onRefresData", "onRefreshList", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onProhibitToEdit"])]), _: 1 }, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "min-width"]);
|
|
102
|
+
}], ["__scopeId", "data-v-aecac200"]]);
|
|
104
103
|
export {
|
|
105
104
|
q as default
|
|
106
105
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $emit as e } from "../../utils/gogocodeTransfer.mjs";
|
|
2
2
|
import { CaretTop as t, CaretBottom as o } from "@element-plus/icons-vue";
|
|
3
|
-
import { shallowRef as i, resolveComponent as s, openBlock as n, createElementBlock as l, normalizeStyle as r, createVNode as a, withCtx as d, createTextVNode as u, toDisplayString as
|
|
3
|
+
import { shallowRef as i, resolveComponent as s, openBlock as n, createElementBlock as l, normalizeStyle as r, createVNode as a, withCtx as d, createTextVNode as u, toDisplayString as p, createBlock as m, createCommentVNode as c } from "vue";
|
|
4
4
|
import { isMobileBrowser as f } from "../../src/utils/common-util.mjs";
|
|
5
5
|
import h from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const g = h({ name: "SearchButton", props: { isOpen: { type: Boolean, default: false }, isShowOpen: { type: Boolean, default: void 0 } }, data() {
|
|
@@ -14,9 +14,11 @@ const g = h({ name: "SearchButton", props: { isOpen: { type: Boolean, default: f
|
|
|
14
14
|
this.loading = true, e(this, "reset-form");
|
|
15
15
|
}, searchComplete() {
|
|
16
16
|
this.loading = false;
|
|
17
|
+
}, openFoldFunc(e2) {
|
|
18
|
+
this.isMyOpen = e2;
|
|
17
19
|
} }, emits: ["save-condition", "open-fold", "submit-form", "reset-form"] }, [["render", function(e2, t2, o2, i2, f2, h2) {
|
|
18
20
|
const g2 = s("el-button");
|
|
19
|
-
return n(), l("div", { class: "search-button", style: r({ textAlign: f2.isMobile ? "center" : "right" }) }, [a(g2, { loading: f2.loading, size: "default", class: "button--default", onClick: h2.submitForm }, { default: d(() => [u(
|
|
21
|
+
return n(), l("div", { class: "search-button", style: r({ textAlign: f2.isMobile ? "center" : "right" }) }, [a(g2, { loading: f2.loading, size: "default", class: "button--default", onClick: h2.submitForm }, { default: d(() => [u(p(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading", "onClick"]), a(g2, { loading: f2.loading, class: "button--default", size: "default", onClick: h2.resetForm }, { default: d(() => [u(p(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading", "onClick"]), a(g2, { class: "button--default", size: "default", onClick: t2[0] || (t2[0] = (t3) => e2.$emit("save-condition")) }, { default: d(() => [u(p(e2.$t("superGrid.saveCondition")), 1)]), _: 1 }), o2.isShowOpen ?? !f2.isMobile ? (n(), m(g2, { key: 0, icon: f2.isMyOpen ? f2.CaretTop : f2.CaretBottom, link: "", size: "default", onClick: h2.openFold }, { default: d(() => [u(p(f2.isMyOpen ? e2.$t("superGrid.fold") : e2.$t("superGrid.open")), 1)]), _: 1 }, 8, ["icon", "onClick"])) : c("", true), f2.isMobile ? (n(), m(g2, { key: 1, type: "warning", size: "default", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, { default: d(() => [u(p(e2.$t("superGrid.close")), 1)]), _: 1 })) : c("", true)], 4);
|
|
20
22
|
}]]);
|
|
21
23
|
export {
|
|
22
24
|
g as default
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { $emit as e } from "../../utils/gogocodeTransfer.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { resolveComponent as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import o from "./search-form.vue.mjs";
|
|
3
|
+
import { resolveComponent as r, openBlock as t, createBlock as l, withCtx as a, createVNode as s } from "vue";
|
|
4
|
+
import i from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const n = i({ name: "SearchFormDialog", components: { SearchForm: o }, props: { columns: { type: Array, default: null }, code: { type: String, default: null }, url: { type: String, default: null }, pagination: { type: Object, default: null }, query: { type: Object, default: null }, searchParam: { type: Object, default: null }, initSearchProps: { type: Array, default: null }, loadCompleteQuery: { type: Boolean, default: false }, searchFormInfo: { type: Object, default: () => ({}) }, listToolbarFormData: { type: Object, default: null } }, data() {
|
|
6
|
+
return { visible: this.dialogVisible };
|
|
7
|
+
}, computed: {}, created() {
|
|
8
|
+
}, methods: { doSearch(o2) {
|
|
9
|
+
e(this, "search", o2), this.visible = false;
|
|
8
10
|
}, resetSearch() {
|
|
9
|
-
e(this, "reset");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
e(this, "reset"), this.visible = false;
|
|
12
|
+
}, searchComplete() {
|
|
13
|
+
this.$refs && this.$refs.sform && (this.$refs.sform.loading = false, this.$refs.sform.searchComplete());
|
|
14
|
+
}, closeDialog() {
|
|
15
|
+
this.visible = false, e(this, "close");
|
|
16
|
+
}, showSubTableSearchDialog() {
|
|
17
|
+
const e2 = this;
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
e2.$refs && e2.$refs.sform && e2.$refs.sform.openFoldFunc(true);
|
|
20
|
+
}, 100), this.visible = true;
|
|
21
|
+
} }, emits: ["close", "search", "reset"] }, [["render", function(e2, o2, i2, n2, c, u) {
|
|
22
|
+
const m = r("search-form"), h = r("el-dialog");
|
|
23
|
+
return t(), l(h, { "show-close": true, "append-to-body": true, title: e2.$t("superGrid.searchCondition"), modelValue: c.visible, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => c.visible = e3), width: "60%", onClose: u.closeDialog }, { default: a(() => [s(m, { ref: "sform", columns: i2.columns, code: i2.code, url: i2.url, pagination: i2.pagination, query: i2.query, "search-form-info": i2.searchFormInfo, "search-param": e2.searchFormContent, "init-search-props": i2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": i2.loadCompleteQuery, onSearch: u.doSearch, onReset: u.resetSearch }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset"])]), _: 1 }, 8, ["title", "modelValue", "onClose"]);
|
|
13
24
|
}]]);
|
|
14
25
|
export {
|
|
15
|
-
|
|
26
|
+
n as default
|
|
16
27
|
};
|
|
@@ -4,7 +4,7 @@ import t from "./search-form-number.vue.mjs";
|
|
|
4
4
|
import l from "./store.mjs";
|
|
5
5
|
import { getControlConfig as a, getDynamicDataSourceOptions as n, isDynamicDataSourceSource as r } from "./utils.mjs";
|
|
6
6
|
import { watchPageContextDynamicVariable as m, getPropValueNew as u } from "../../src/utils/util.mjs";
|
|
7
|
-
import { resolveComponent as
|
|
7
|
+
import { resolveComponent as c, openBlock as p, createBlock as i, withCtx as s, createElementVNode as d, createElementBlock as h, resolveDynamicComponent as y, createVNode as g, normalizeStyle as f, createSlots as T, Fragment as V, renderList as b, createTextVNode as C, toDisplayString as v, withKeys as S, createCommentVNode as F } from "vue";
|
|
8
8
|
import "./search-form-item.vue2.mjs";
|
|
9
9
|
import M from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
10
|
const k = { name: "SearchFormItem", components: { searchFormNumber: t }, inject: ["getListToolbarFormData"], props: { column: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, searchForm: { type: Object, default: null }, index: { type: Number, default: 0 }, length: { type: Number, default: 0 }, loadCompleteQuery: { type: Boolean, default: false }, labelWidth: { type: [String, Number, void 0], default: void 0 } }, data() {
|
|
@@ -117,12 +117,12 @@ const k = { name: "SearchFormItem", components: { searchFormNumber: t }, inject:
|
|
|
117
117
|
this.departmentInfo = e2 ? e2.split(",") : [];
|
|
118
118
|
} }, emits: ["submit-form"] }, I = ["title", "innerHTML"], D = { key: 0, style: { width: "100%" } }, x = { key: 1 };
|
|
119
119
|
const E = M(k, [["render", function(e2, o2, t2, l2, a2, n2) {
|
|
120
|
-
const r2 =
|
|
121
|
-
return
|
|
120
|
+
const r2 = c("el-date-picker"), m2 = c("year-range-picker"), u2 = c("el-time-picker"), M2 = c("organization-input"), k2 = c("el-checkbox"), E2 = c("el-option"), O = c("el-select"), U = c("dynamic-source-select"), $ = c("search-form-number"), w = c("el-switch"), N = c("el-slider"), P = c("el-rate"), W = c("el-tooltip"), _ = c("el-input"), Y = c("el-form-item");
|
|
121
|
+
return p(), i(Y, { "label-width": t2.labelWidth ?? (t2.column.querySetting ? n2.getLabelWidth(t2.column.querySetting) : "110px"), prop: t2.column.prop }, { label: s(() => [d("span", { title: (t2.column.searchLabel ?? t2.column.label).replace(/\\n/g, "</br>"), innerHTML: (t2.column.searchLabel ?? t2.column.label).replace(/\\n/g, "</br>") }, null, 8, I)]), default: s(() => {
|
|
122
122
|
var _a, _b, _c, _d;
|
|
123
|
-
return [true === n2.customComponent(t2.column) ? (c(), h("span", D, [(c(), i(y(t2.column.componentName), { ref: t2.column.componentName, entity: t2.searchForm, "additional-settings": a2.controlConfig, "model-value": e2.getFormItemValue(t2.column.prop), prop: t2.column.prop, row: t2.searchForm, "select-options": t2.column.valueSet, class: "customComponent", onChange: o2[0] || (o2[0] = (e3) => n2.setValueToModelProp(t2.column.prop, e3, t2.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === t2.column.componentType ? (c(), h("span", x, [g(r2, { modelValue: t2.searchForm[t2.column.prop][0], "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => t2.searchForm[t2.column.prop][0] = e3), placeholder: e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "date", onChange: o2[2] || (o2[2] = (e3) => n2.setValueToModelProp(t2.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), g(r2, { modelValue: t2.searchForm[t2.column.prop][1], "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => t2.searchForm[t2.column.prop][1] = e3), placeholder: e2.$t("imatrixUIMessage.endDate"), style: f(t2.column.searchControlWidth), type: "date", onChange: o2[4] || (o2[4] = (e3) => n2.setValueToModelProp(t2.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === t2.column.componentType ? (c(), i(m2, { key: 2, value: e2.getFormItemValue(t2.column.prop), type: "yearRange", onChange: o2[5] || (o2[5] = (e3) => n2.setYearRangeValue(t2.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === t2.column.componentType ? (c(), i(r2, { key: 3, "default-time": n2.getDefaultTime(t2.column), "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "YYYY-MM-DD HH:mm:ss", "value-format": "YYYY-MM-DD HH:mm:ss", onChange: o2[7] || (o2[7] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["default-time", "end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "DATE" === t2.column.dataType || "date" === t2.column.componentType ? (c(), i(r2, { key: 4, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: o2[9] || (o2[9] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === t2.column.dataType && "timepicker" === t2.column.componentType ? (c(), i(r2, { key: 5, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[10] || (o2[10] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[11] || (o2[11] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "timepicker" === t2.column.componentType && "TIME" !== t2.column.dataType && "DATE" !== t2.column.dataType ? (c(), i(u2, { key: 6, modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[12] || (o2[12] = (e3) => t2.searchForm[t2.column.prop] = e3), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[13] || (o2[13] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : n2.componentTypeTypeIsTree(t2.column.componentType) ? (c(), i(M2, { key: 7, fields: n2.getTreeFields(t2.column.orgTreeSet), "department-info": a2.departmentInfo, "limit-filter-column": (_a = a2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: t2.searchForm, multiple: n2.getTreeIsMultiTree(t2.column.componentType), "tree-type": n2.getTreeType(t2.column.componentType), value: e2.getFormItemValue(t2.column.prop), onClear: n2.clearOrganizationInputEvent, onSetValue: n2.organizationInputEvent }, null, 8, ["fields", "department-info", "limit-filter-column", "models", "multiple", "tree-type", "value", "onClear", "onSetValue"])) : "radio" === ((_b = t2.column) == null ? void 0 : _b.componentType) ? (c(), i(O, { key: 8, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: f(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[15] || (o2[15] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, T({ default: s(() => [(c(true), h(V, null, b(t2.column.valueSet, (e3) => (c(), i(E2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: s(() => [g(k2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => a2.checkEmptyValue = e3), onChange: n2.checkEmptyChange }, { default: s(() => [C(v(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : (t2.column.componentType && "select" === t2.column.componentType || "BOOLEAN" === t2.column.dataType) && !n2.isDynamicDataSourceSource(t2.column) ? (c(), i(O, { key: 9, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: f(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[17] || (o2[17] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, T({ default: s(() => [(c(true), h(V, null, b(t2.column.valueSet, (e3) => (c(), i(E2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: s(() => [g(k2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": o2[16] || (o2[16] = (e3) => a2.checkEmptyValue = e3), onChange: n2.checkEmptyChange }, { default: s(() => [C(v(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : t2.column.componentType && "multiselect" === t2.column.componentType && !n2.isDynamicDataSourceSource(t2.column) ? (c(), i(O, { key: 10, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: f(t2.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: o2[19] || (o2[19] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, { header: s(() => [g(k2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": o2[18] || (o2[18] = (e3) => a2.checkEmptyValue = e3), onChange: n2.checkEmptyChange }, { default: s(() => [C(v(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: s(() => [(c(true), h(V, null, b(t2.column.valueSet, (e3) => (c(), i(E2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["model-value", "placeholder", "style"])) : t2.column.componentType && ("multiselect" === t2.column.componentType || "select" === t2.column.componentType) && n2.isDynamicDataSourceSource(t2.column) ? (c(), i(U, { key: 11, ref: "selectRef", value: t2.searchForm[t2.column.prop], "onUpdate:value": o2[20] || (o2[20] = (e3) => t2.searchForm[t2.column.prop] = e3), "allow-create": (_d = (_c = a2.dataSourceOptions) == null ? void 0 : _c.controlConfig) == null ? void 0 : _d.allowCreate, "base-props": { multiple: "multiselect" === t2.column.componentType }, entity: t2.searchForm, filterable: true, "is-join-table": t2.isJoinTable, "list-code": t2.code, "list-toolbar-form-data": n2.listToolbarFormData, options: a2.dataSourceOptions, "table-name": t2.tableName, "is-search": true, onChange: n2.multiselectChange, onChangeEmptyValue: n2.checkEmptyChange }, null, 8, ["value", "allow-create", "base-props", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "table-name", "onChange", "onChangeEmptyValue"])) : t2.column.componentType && "inputNumber" === t2.column.componentType ? (c(), i($, { key: 12, "item-value": t2.searchForm[t2.column.prop], "module-config": a2.moduleConfig, onSetValue: n2.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : t2.column.componentType && "switch" === t2.column.componentType ? (c(), i(w, { key: 13, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: o2[21] || (o2[21] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "slider" === t2.column.componentType ? (c(), i(N, { key: 14, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), onChange: o2[22] || (o2[22] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "rate" === t2.column.componentType ? (c(), i(P, { key: 15, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), onChange: o2[23] || (o2[23] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (c(), i(_, { key: 16, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), onKeyup: o2[25] || (o2[25] = S((o3) => e2.submitForm("searchForm"), ["enter"])), onInput: o2[26] || (o2[26] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)), onFocus: o2[27] || (o2[27] = (e3) => n2.showEmpty()), onBlur: o2[28] || (o2[28] = (e3) => n2.hiddenEmpty()) }, { suffix: s(() => [g(W, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: s(() => [n2.isShowEmtpty ? (c(), i(k2, { key: 0, modelValue: n2.checkedEmpty, "onUpdate:modelValue": o2[24] || (o2[24] = (e3) => n2.checkedEmpty = e3), onChange: n2.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : F("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
123
|
+
return [true === n2.customComponent(t2.column) ? (p(), h("span", D, [(p(), i(y(t2.column.componentName), { ref: t2.column.componentName, entity: t2.searchForm, "additional-settings": a2.controlConfig, "model-value": e2.getFormItemValue(t2.column.prop), prop: t2.column.prop, row: t2.searchForm, "select-options": t2.column.valueSet, isSearch: true, class: "customComponent", onChange: o2[0] || (o2[0] = (e3) => n2.setValueToModelProp(t2.column.prop, e3, t2.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === t2.column.componentType ? (p(), h("span", x, [g(r2, { modelValue: t2.searchForm[t2.column.prop][0], "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => t2.searchForm[t2.column.prop][0] = e3), placeholder: e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "date", onChange: o2[2] || (o2[2] = (e3) => n2.setValueToModelProp(t2.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), g(r2, { modelValue: t2.searchForm[t2.column.prop][1], "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => t2.searchForm[t2.column.prop][1] = e3), placeholder: e2.$t("imatrixUIMessage.endDate"), style: f(t2.column.searchControlWidth), type: "date", onChange: o2[4] || (o2[4] = (e3) => n2.setValueToModelProp(t2.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === t2.column.componentType ? (p(), i(m2, { key: 2, value: e2.getFormItemValue(t2.column.prop), type: "yearRange", onChange: o2[5] || (o2[5] = (e3) => n2.setYearRangeValue(t2.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === t2.column.componentType ? (p(), i(r2, { key: 3, "default-time": n2.getDefaultTime(t2.column), "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "YYYY-MM-DD HH:mm:ss", "value-format": "YYYY-MM-DD HH:mm:ss", onChange: o2[7] || (o2[7] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["default-time", "end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "DATE" === t2.column.dataType || "date" === t2.column.componentType ? (p(), i(r2, { key: 4, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: o2[9] || (o2[9] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === t2.column.dataType && "timepicker" === t2.column.componentType ? (p(), i(r2, { key: 5, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[10] || (o2[10] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: f(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[11] || (o2[11] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "timepicker" === t2.column.componentType && "TIME" !== t2.column.dataType && "DATE" !== t2.column.dataType ? (p(), i(u2, { key: 6, modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[12] || (o2[12] = (e3) => t2.searchForm[t2.column.prop] = e3), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[13] || (o2[13] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : n2.componentTypeTypeIsTree(t2.column.componentType) ? (p(), i(M2, { key: 7, fields: n2.getTreeFields(t2.column.orgTreeSet), "department-info": a2.departmentInfo, "limit-filter-column": (_a = a2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: t2.searchForm, multiple: n2.getTreeIsMultiTree(t2.column.componentType), "tree-type": n2.getTreeType(t2.column.componentType), value: e2.getFormItemValue(t2.column.prop), onClear: n2.clearOrganizationInputEvent, onSetValue: n2.organizationInputEvent }, null, 8, ["fields", "department-info", "limit-filter-column", "models", "multiple", "tree-type", "value", "onClear", "onSetValue"])) : "radio" === ((_b = t2.column) == null ? void 0 : _b.componentType) ? (p(), i(O, { key: 8, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: f(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[15] || (o2[15] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, T({ default: s(() => [(p(true), h(V, null, b(t2.column.valueSet, (e3) => (p(), i(E2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: s(() => [g(k2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => a2.checkEmptyValue = e3), onChange: n2.checkEmptyChange }, { default: s(() => [C(v(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : (t2.column.componentType && "select" === t2.column.componentType || "BOOLEAN" === t2.column.dataType) && !n2.isDynamicDataSourceSource(t2.column) ? (p(), i(O, { key: 9, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: f(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[17] || (o2[17] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, T({ default: s(() => [(p(true), h(V, null, b(t2.column.valueSet, (e3) => (p(), i(E2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: s(() => [g(k2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": o2[16] || (o2[16] = (e3) => a2.checkEmptyValue = e3), onChange: n2.checkEmptyChange }, { default: s(() => [C(v(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : t2.column.componentType && "multiselect" === t2.column.componentType && !n2.isDynamicDataSourceSource(t2.column) ? (p(), i(O, { key: 10, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: f(t2.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: o2[19] || (o2[19] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, { header: s(() => [g(k2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": o2[18] || (o2[18] = (e3) => a2.checkEmptyValue = e3), onChange: n2.checkEmptyChange }, { default: s(() => [C(v(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: s(() => [(p(true), h(V, null, b(t2.column.valueSet, (e3) => (p(), i(E2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["model-value", "placeholder", "style"])) : t2.column.componentType && ("multiselect" === t2.column.componentType || "select" === t2.column.componentType) && n2.isDynamicDataSourceSource(t2.column) ? (p(), i(U, { key: 11, ref: "selectRef", value: t2.searchForm[t2.column.prop], "onUpdate:value": o2[20] || (o2[20] = (e3) => t2.searchForm[t2.column.prop] = e3), "allow-create": (_d = (_c = a2.dataSourceOptions) == null ? void 0 : _c.controlConfig) == null ? void 0 : _d.allowCreate, "base-props": { multiple: "multiselect" === t2.column.componentType }, entity: t2.searchForm, filterable: true, "is-join-table": t2.isJoinTable, "list-code": t2.code, "list-toolbar-form-data": n2.listToolbarFormData, options: a2.dataSourceOptions, "table-name": t2.tableName, "is-search": true, onChange: n2.multiselectChange, onChangeEmptyValue: n2.checkEmptyChange }, null, 8, ["value", "allow-create", "base-props", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "table-name", "onChange", "onChangeEmptyValue"])) : t2.column.componentType && "inputNumber" === t2.column.componentType ? (p(), i($, { key: 12, "item-value": t2.searchForm[t2.column.prop], "module-config": a2.moduleConfig, onSetValue: n2.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : t2.column.componentType && "switch" === t2.column.componentType ? (p(), i(w, { key: 13, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: o2[21] || (o2[21] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "slider" === t2.column.componentType ? (p(), i(N, { key: 14, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), onChange: o2[22] || (o2[22] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "rate" === t2.column.componentType ? (p(), i(P, { key: 15, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), onChange: o2[23] || (o2[23] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (p(), i(_, { key: 16, "model-value": e2.getFormItemValue(t2.column.prop), style: f(t2.column.searchControlWidth), onKeyup: o2[25] || (o2[25] = S((o3) => e2.submitForm("searchForm"), ["enter"])), onInput: o2[26] || (o2[26] = (e3) => n2.setValueToModelProp(t2.column.prop, e3)), onFocus: o2[27] || (o2[27] = (e3) => n2.showEmpty()), onBlur: o2[28] || (o2[28] = (e3) => n2.hiddenEmpty()) }, { suffix: s(() => [g(W, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: s(() => [n2.isShowEmtpty ? (p(), i(k2, { key: 0, modelValue: n2.checkedEmpty, "onUpdate:modelValue": o2[24] || (o2[24] = (e3) => n2.checkedEmpty = e3), onChange: n2.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : F("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
124
124
|
}), _: 1 }, 8, ["label-width", "prop"]);
|
|
125
|
-
}], ["__scopeId", "data-v-
|
|
125
|
+
}], ["__scopeId", "data-v-41b4cbbd"]]);
|
|
126
126
|
export {
|
|
127
127
|
E as default
|
|
128
128
|
};
|