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,29 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("element-plus"), a = require("../normal-column-content.vue.cjs"), l = require("../../../src/components/Card/index.cjs"), o = require("../../../src/components/Scrollbar/index.vue.cjs"), r = require("../store.cjs"), n = require("../apis.cjs"), u = require("../eventBus.cjs"), i = require("vue-i18n"),
|
|
3
|
-
function
|
|
2
|
+
const e = require("vue"), t = require("element-plus"), a = require("../normal-column-content.vue.cjs"), l = require("../../../src/components/Card/index.cjs"), o = require("../../../src/components/Scrollbar/index.vue.cjs"), r = require("../store.cjs"), n = require("../apis.cjs"), u = require("../eventBus.cjs"), i = require("vue-i18n"), d = require("@element-plus/icons-vue");
|
|
3
|
+
function c(t2) {
|
|
4
4
|
return "function" == typeof t2 || "[object Object]" === Object.prototype.toString.call(t2) && !e.isVNode(t2);
|
|
5
5
|
}
|
|
6
|
-
const s = e.defineComponent({ name: "MobileTableCard", components: { NormalColumnContent: a, CardView: l, Scrollbar: o }, mixins: [n.apisMixin], 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 } }, setup(n2, s2) {
|
|
7
|
-
e.defineEmits(["currentChange", "update:current-page", "select"]);
|
|
8
|
-
const { t: p } = i.useI18n(), { attrs: v, emit: g, expose: m } = s2, h = e.ref(false), f = e.ref([]),
|
|
6
|
+
const s = e.defineComponent({ name: "MobileTableCard", components: { NormalColumnContent: a, CardView: l, Scrollbar: o }, mixins: [n.apisMixin], 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(n2, s2) {
|
|
7
|
+
e.defineEmits(["currentChange", "update:current-page", "select", "selectionChange", "rowDblclick", "rowClick"]);
|
|
8
|
+
const { t: p } = i.useI18n(), { attrs: v, emit: g, expose: m } = s2, h = e.ref(false), f = e.ref([]), b = e.ref([]), w = e.ref(void 0), y = e.ref(void 0), C = e.ref(false), x = e.ref([]), N = e.ref(false), D = e.ref(void 0), V = (e2) => {
|
|
9
9
|
n2.isStackingPaginatedData ? f.value[(n2.currentPage ?? 1) - 1] = e2 : f.value[0] = e2, h.value = false;
|
|
10
10
|
};
|
|
11
11
|
V(n2.data);
|
|
12
|
-
const
|
|
12
|
+
const S = e.computed(() => {
|
|
13
13
|
var _a, _b, _c, _d;
|
|
14
|
-
const e2 = r.get(
|
|
15
|
-
return
|
|
14
|
+
const e2 = r.get(n2.listCode), t2 = ((_a = e2 == null ? void 0 : e2.options) == null ? void 0 : _a.showOperationButton) ?? false, a2 = ((_b = e2 == null ? void 0 : e2.options) == null ? void 0 : _b.isFormSubTable) ?? false, l2 = ((_c = e2 == null ? void 0 : e2.options) == null ? void 0 : _c.subTableCanAdd) ?? false, o2 = (_d = P.value) == null ? void 0 : _d.some(({ prop: e3 }) => ["operation"].includes(e3));
|
|
15
|
+
return D ?? (t2 && a2 && l2 && o2);
|
|
16
16
|
});
|
|
17
|
-
u.$on("change-add-state", (e2) =>
|
|
18
|
-
const
|
|
17
|
+
u.$on("change-add-state", (e2) => D.value = e2);
|
|
18
|
+
const k = e.computed(() => n2.isStackingPaginatedData ? f.value.flatMap((e2, t2) => t2 + 1 <= n2.currentPage ? e2 : []) : f.value[0] ?? []), E = e.computed(() => {
|
|
19
19
|
const e2 = (t2) => (t2 == null ? void 0 : t2.flatMap((t3) => {
|
|
20
20
|
var _a;
|
|
21
21
|
return ((_a = t3 == null ? void 0 : t3.children) == null ? void 0 : _a.length) ? [t3, ...e2(t3.children)] : [t3];
|
|
22
22
|
})) ?? [];
|
|
23
|
-
return e2(
|
|
23
|
+
return e2(k.value);
|
|
24
24
|
}), $ = e.computed(() => {
|
|
25
25
|
var _a;
|
|
26
|
-
return n2.isStackingPaginatedData ? (((_a = f.value[n2.currentPage - 1]) == null ? void 0 : _a.length) ?? 0) > 0 :
|
|
26
|
+
return n2.isStackingPaginatedData ? (((_a = f.value[n2.currentPage - 1]) == null ? void 0 : _a.length) ?? 0) > 0 : k.value.length < n2.pageSize * n2.currentPage && I.value >= n2.currentPage;
|
|
27
27
|
}), M = e.computed(() => {
|
|
28
28
|
var _a;
|
|
29
29
|
return ((_a = x.value[x.value.length - 1]) == null ? void 0 : _a.children) ?? [];
|
|
@@ -36,31 +36,31 @@ const s = e.defineComponent({ name: "MobileTableCard", components: { NormalColum
|
|
|
36
36
|
}), T = e.computed(() => {
|
|
37
37
|
const e2 = P.value.map((e3, t3) => (e3.operations ? e3.layoutModelType = "footer" : e3.layoutModelType = "content", e3)), t2 = e2.filter(({ layoutModelType: e3 }) => ["content"].includes(e3));
|
|
38
38
|
return { header: t2[0] ? [t2[0]] : [], content: t2, footer: e2.filter(({ layoutModelType: e3 }) => ["footer"].includes(e3)) };
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
},
|
|
39
|
+
}), I = e.computed(() => n2.pageTotal ? Math.ceil(n2.pageTotal / n2.pageSize) : 0), j = e.computed(() => !!(n2.showFieldCount && T.value.content.length > n2.showFieldCount)), q = e.computed(() => T.value.footer.length > 0), A = e.computed(() => 7 * T.value.content.map((e2) => (e2 == null ? void 0 : e2.label) ?? 0).reduce((e2, t2) => Math.max(e2, [...t2].reduce((e3, t3) => /[\u4e00-\u9fff]/.test(t3) ? e3 + 2 : e3 + 1, 0)), 0) + 15), B = e.computed(() => n2.columns.some((e2) => ["$selection"].includes(e2 == null ? void 0 : e2.prop))), z = e.computed(() => n2.columns.some((e2) => ["$index"].includes(e2 == null ? void 0 : e2.prop))), G = e.computed(() => k.value[y.value]), F = (e2) => {
|
|
40
|
+
B.value && (b.value.includes(e2) ? b.value = b.value.filter((t2) => t2 !== e2) : b.value = [.../* @__PURE__ */ new Set([...b.value, e2])], w.value = e2);
|
|
41
|
+
}, U = (t2, l2, o2, u2 = false) => {
|
|
42
42
|
var _a;
|
|
43
|
-
const { $bind: i2 = {}, $on:
|
|
43
|
+
const { $bind: i2 = {}, $on: d2 = {} } = ((_a = n2.getColumnComponentData) == null ? void 0 : _a.call(n2, t2)) ?? {}, c2 = r.get(i2["list-code"]), s3 = c2 == null ? void 0 : c2.options, p2 = c2.lineEdit ?? false, v2 = { ...i2, "page-grid-data": n2.data, "is-data-children": N.value, options: s3, row: l2, rowIndex: o2, "right-click-menu-arr": s3 == null ? void 0 : s3.rightClickMenuArr, "line-edit": p2 }, g2 = { ...Object.fromEntries(Object.keys(d2).map((e2) => [`on${e2.charAt(0).toUpperCase()}${e2.slice(1).replace(/-([a-z])/g, (e3, t3) => t3.toUpperCase())}`, d2[e2]])) };
|
|
44
44
|
return e.createVNode(a, e.mergeProps({ isContentViewText: u2 }, v2, g2), null);
|
|
45
|
-
}, R = (a2, l2 =
|
|
45
|
+
}, R = (a2, l2 = G.value, o2 = y.value, r2 = void 0) => e.createVNode(t.ElDescriptions, { column: 1, "label-width": A.value, align: "right", direction: "horizontal", layout: "form" }, { default: () => {
|
|
46
46
|
var _a, _b;
|
|
47
|
-
return [(_b = r2 ? (_a = a2 == null ? void 0 : a2.slice) == null ? void 0 : _a.call(a2, 0, r2) : a2) == null ? void 0 : _b.map((a3, r3) => e.createVNode(t.ElDescriptionsItem, { key: a3.label + r3 }, { default: () => [
|
|
47
|
+
return [(_b = r2 ? (_a = a2 == null ? void 0 : a2.slice) == null ? void 0 : _a.call(a2, 0, r2) : a2) == null ? void 0 : _b.map((a3, r3) => e.createVNode(t.ElDescriptionsItem, { key: a3.label + r3 }, { default: () => [U(a3, l2, o2) || "-"], label: () => e.createVNode("div", { innerHTML: a3.label ? `${a3.label}:` : "" }, null) }))];
|
|
48
48
|
} });
|
|
49
49
|
e.watch(() => v.selection, (e2) => {
|
|
50
|
-
|
|
51
|
-
}, { deep: true }), e.watch(
|
|
50
|
+
b.value = e2.map(({ $rowDataGuId: e3 }) => e3);
|
|
51
|
+
}, { deep: true }), e.watch(b, (e2, t2) => {
|
|
52
52
|
if (v.selection.length === e2.length && v.selection.every(({ $rowDataGuId: t3 }) => e2.includes(t3)))
|
|
53
53
|
return;
|
|
54
|
-
const a2 =
|
|
55
|
-
e2.length > (t2 == null ? void 0 : t2.length) && l2 && g("select", a2, l2), e2.length < (t2 == null ? void 0 : t2.length) && l2 && g("select", a2, l2), g("selectionChange", a2),
|
|
54
|
+
const a2 = E.value.filter(({ $rowDataGuId: t3 }) => e2 == null ? void 0 : e2.includes(t3)), l2 = w.value ? E.value.find(({ $rowDataGuId: e3 }) => w.value === e3) : void 0;
|
|
55
|
+
e2.length > (t2 == null ? void 0 : t2.length) && l2 && g("select", a2, l2), e2.length < (t2 == null ? void 0 : t2.length) && l2 && g("select", a2, l2), g("selectionChange", a2), w.value = void 0;
|
|
56
56
|
}, { deep: true }), e.watch(() => n2.data, (e2) => {
|
|
57
|
-
V(e2);
|
|
57
|
+
N.value = e2.some((e3) => Array.isArray(e3 == null ? void 0 : e3.children)), V(e2);
|
|
58
58
|
}, { deep: true });
|
|
59
59
|
const O = () => {
|
|
60
|
-
if (
|
|
60
|
+
if (I.value, n2.currentPage, I.value > 1 && I.value > n2.currentPage && (k.value.length, n2.pageSize, n2.currentPage, k.value.length === n2.pageSize * n2.currentPage)) {
|
|
61
61
|
h.value = true;
|
|
62
62
|
const e2 = n2.currentPage + 1;
|
|
63
|
-
|
|
63
|
+
I.value, g("update:current-page", e2), g("currentChange", e2);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
e.onUnmounted(() => {
|
|
@@ -68,7 +68,7 @@ const s = e.defineComponent({ name: "MobileTableCard", components: { NormalColum
|
|
|
68
68
|
});
|
|
69
69
|
return { getAddBtn: (a2) => {
|
|
70
70
|
let l2;
|
|
71
|
-
return
|
|
71
|
+
return S.value && e.createVNode(t.ElButton, { type: "primary", plain: true, icon: e.createVNode(d.CirclePlus, null, null), onClick: () => a2 == null ? void 0 : a2(n2.listCode) }, c(l2 = p("imatrixUIPublicModel.add")) ? l2 : { default: () => [l2] });
|
|
72
72
|
}, renderDom: (a2) => e.createVNode(o, { onScrollToBottom: O, "flex-auto": true, "set-max-height": (e2) => {
|
|
73
73
|
if (e2 == null ? void 0 : e2.windowHeight) {
|
|
74
74
|
const t2 = (e2 == null ? void 0 : e2.windowHeight) - 70;
|
|
@@ -76,23 +76,23 @@ const s = e.defineComponent({ name: "MobileTableCard", components: { NormalColum
|
|
|
76
76
|
}
|
|
77
77
|
} }, { default: () => [e.createVNode(t.ElDrawer, { modelValue: C.value, "onUpdate:modelValue": (e2) => C.value = e2, "modal-class": "yx-drawer yx-scrollbar-body", "with-header": true, direction: "btt", "append-to-body": true, size: "90vh", onClosed: () => x.value = [] }, { default: () => [e.createVNode(o, { "scrollable-main": true, "max-height": "100%", style: { flex: "1 1 auto" } }, { default: () => [e.createVNode("div", { class: "yx-flex-wrap", vertical: true, style: { gap: "15px" } }, [M.value.map((t2, a3) => {
|
|
78
78
|
var _a, _b, _c, _d;
|
|
79
|
-
const o2 =
|
|
80
|
-
return e.createVNode(l, { form: t2, no:
|
|
79
|
+
const o2 = b.value.includes(t2.$rowDataGuId), r2 = !!((((_a = t2 == null ? void 0 : t2.children) == null ? void 0 : _a.length) ?? 0) > 0), u2 = ((_b = T.value.content) == null ? void 0 : _b.find(({ property: e2 }) => e2)) ?? T.value.content[0], i2 = n2.isEnableEdit;
|
|
80
|
+
return e.createVNode(l, { form: t2, no: z ? a3 + 1 : void 0, isChecked: o2, isSubTable: r2, isCheck: B.value, isMore: !t2.$editing, isShowDetailsMore: j.value, isEnableEdit: i2, onChecked: () => !t2.$editing && F(t2.$rowDataGuId), onShowSubTable: () => {
|
|
81
81
|
x.value = [...x.value, t2];
|
|
82
|
-
}, onRowClick: (e2) => g("rowClick", t2, u2, e2), onRowDblclick: (e2) => g("rowDblclick", t2, u2, e2) }, { titleSlot: T.value.header && ((_c = T.value.header) == null ? void 0 : _c.map((e2) =>
|
|
82
|
+
}, onRowClick: (e2) => g("rowClick", t2, u2, e2), onRowDblclick: (e2) => g("rowDblclick", t2, u2, e2) }, { titleSlot: T.value.header && ((_c = T.value.header) == null ? void 0 : _c.map((e2) => U(e2, t2, a3, true))), children: ({ isMore: e2 }) => R(T.value.content, t2, a3, e2 ? n2.showFieldCount : void 0), footerSlot: q.value && e.createVNode("div", { class: "yx-flex-wrap", wrap: true, style: { gap: "15px" } }, [(_d = T.value.footer) == null ? void 0 : _d.map((e2) => U(e2, t2, a3))]) });
|
|
83
83
|
})])] })], header: () => {
|
|
84
84
|
let a3;
|
|
85
|
-
return e.createVNode("div", { class: "yx-flex-wrap", style: { gap: "10px" } }, [T.value.header[0] && `${T.value.header[0].label}: `, e.createVNode(t.ElBreadcrumb, { "separator-icon": e.createVNode(e.resolveComponent("ArrowRight"), null, null) },
|
|
86
|
-
const o2 =
|
|
87
|
-
return e.createVNode(e.resolveComponent("ElBreadcrumbItem"), null, { default: () => [x.value.length - 1 === l2 ? o2 : e.createVNode(t.ElLink, { onClick: () => x.value = x.value.slice(0, l2 + 1) },
|
|
85
|
+
return e.createVNode("div", { class: "yx-flex-wrap", style: { gap: "10px" } }, [T.value.header[0] && `${T.value.header[0].label}: `, e.createVNode(t.ElBreadcrumb, { "separator-icon": e.createVNode(e.resolveComponent("ArrowRight"), null, null) }, c(a3 = x.value.map((a4, l2) => {
|
|
86
|
+
const o2 = U(T.value.header[0], a4, void 0, true);
|
|
87
|
+
return e.createVNode(e.resolveComponent("ElBreadcrumbItem"), null, { default: () => [x.value.length - 1 === l2 ? o2 : e.createVNode(t.ElLink, { onClick: () => x.value = x.value.slice(0, l2 + 1) }, c(o2) ? o2 : { default: () => [o2] })] });
|
|
88
88
|
})) ? a3 : { default: () => [a3] })]);
|
|
89
|
-
} }), e.createVNode("div", { class: "yx-flex-wrap", vertical: true, style: "gap: 15px;" }, [0 ===
|
|
89
|
+
} }), e.createVNode("div", { class: "yx-flex-wrap", vertical: true, style: "gap: 15px;" }, [0 === k.value.length && e.createVNode(t.ElEmpty, { description: p("imatrixUIPublicModel.noData") }, c(a2) ? a2 : { default: () => [a2] }), k.value.map((t2, a3) => {
|
|
90
90
|
var _a, _b, _c, _d;
|
|
91
|
-
const o2 =
|
|
92
|
-
return e.createVNode(l, { form: t2, no:
|
|
91
|
+
const o2 = b.value.includes(t2.$rowDataGuId), r2 = !!((_a = t2 == null ? void 0 : t2.children) == null ? void 0 : _a.length), u2 = ((_b = T.value.content) == null ? void 0 : _b.find(({ property: e2 }) => e2)) ?? T.value.content[0], i2 = n2.isEnableEdit;
|
|
92
|
+
return e.createVNode(l, { form: t2, no: z ? a3 + 1 : void 0, isChecked: o2, isSubTable: r2, isCheck: B.value, isMore: !t2.$editing, isShowDetailsMore: j.value, isEnableEdit: i2, onChecked: () => !t2.$editing && F(t2.$rowDataGuId), onShowSubTable: () => {
|
|
93
93
|
x.value = [t2], C.value = true;
|
|
94
|
-
}, onRowClick: (e2) => g("rowClick", t2, u2, e2), onRowDblclick: (e2) => g("rowDblclick", t2, u2, e2) }, { titleSlot: T.value.header && ((_c = T.value.header) == null ? void 0 : _c.map((e2) =>
|
|
95
|
-
}),
|
|
94
|
+
}, onRowClick: (e2) => g("rowClick", t2, u2, e2), onRowDblclick: (e2) => g("rowDblclick", t2, u2, e2) }, { titleSlot: T.value.header && ((_c = T.value.header) == null ? void 0 : _c.map((e2) => U(e2, t2, a3, true))), children: ({ isMore: e2 }) => R(T.value.content, t2, a3, e2 ? n2.showFieldCount : void 0), footerSlot: q.value && e.createVNode("div", { class: "yx-flex-wrap", wrap: true, style: { gap: "15px" } }, [(_d = T.value.footer) == null ? void 0 : _d.map((e2) => U(e2, t2, a3))]) });
|
|
95
|
+
}), k.value.length > 0 && a2, k.value.length > 0 && I.value > 1 && e.createVNode(t.ElDivider, null, { default: () => [I.value > n2.currentPage || h.value ? e.createVNode(t.ElIcon, { "loading-rotate": true, size: 25, color: "#409eff", style: { margin: "15px auto" } }, { default: () => [e.createVNode(d.Loading, null, null)] }) : I.value <= n2.currentPage && $.value && p("imatrixUIPublicModel.noMoreData")] })])] }) };
|
|
96
96
|
}, render() {
|
|
97
97
|
return this.renderDom(this.getAddBtn(this.createRow));
|
|
98
98
|
} });
|
|
@@ -295,6 +295,6 @@ const b = require("../../_virtual/_plugin-vue_export-helper.cjs"), y = { compone
|
|
|
295
295
|
const H = b(y, [["render", function(e2, t2, o2, i2, n2, l2) {
|
|
296
296
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
297
297
|
const r2 = C.resolveComponent("dynamic-input"), s2 = C.resolveComponent("Edit"), a2 = C.resolveComponent("el-icon"), c2 = C.resolveComponent("el-dropdown-item"), p2 = C.resolveComponent("el-dropdown-menu"), d2 = C.resolveComponent("el-dropdown"), m2 = C.resolveComponent("row-operation"), u2 = C.resolveComponent("secret-info"), h2 = C.resolveComponent("FsPreview"), w2 = C.resolveComponent("SuperIcon"), g2 = C.resolveComponent("el-link"), f2 = C.resolveComponent("el-tooltip"), b2 = C.resolveComponent("GridIcon"), y2 = C.resolveComponent("view-image-dialog"), H2 = C.resolveComponent("rich-editor-viewer"), A = C.resolveDirective("permission");
|
|
298
|
-
return C.openBlock(), C.createElementBlock("div", k, [l2.isEditing || o2.isShowForm ? (C.openBlock(), C.createBlock(r2, { key: 0, ref: "dynamicRef", value: o2.row[o2.column.prop], "onUpdate:value": t2[0] || (t2[0] = (e3) => o2.row[o2.column.prop] = e3), class: C.normalizeClass(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: C.withKeys(l2.clearAllEditing, ["enter"]), onFindIndex: t2[1] || (t2[1] = (e3) => l2.findIndex(o2.rowIndex)), onFocus: t2[2] || (t2[2] = (e3) => 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"])) : (C.openBlock(), C.createElementBlock("div", { key: 1, class: C.normalizeClass(((_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 ? (C.openBlock(), C.createElementBlock("div", { key: 0, class: "column-text-edit-main", onClick: t2[3] || (t2[3] = (...e3) => l2.onEditing && l2.onEditing(...e3)) }, [C.createVNode(a2, { size: 14, color: "#409eff" }, { default: C.withCtx(() => [C.createVNode(s2)]), _: 1 }), [void 0, null, ""].includes(o2.row[o2.column.prop]) ? (C.openBlock(), C.createElementBlock("span", E, C.toDisplayString(e2.$t("superGrid.editablePlaceholder")), 1)) : C.createCommentVNode("", true)])) : C.createCommentVNode("", true), o2.column.operations ? (C.openBlock(), C.createElementBlock("span", x, [(C.openBlock(true), C.createElementBlock(C.Fragment, null, C.renderList(o2.column.operations, (t3, i3) => (C.openBlock(), C.createElementBlock("span", { key: i3, class: C.normalizeClass([o2.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [t3.isGroup ? (C.openBlock(), C.createBlock(d2, { key: 0, size: t3.buttons && t3.buttons.length > 0 ? t3.buttons[0].props.size : "small", "split-button": "", onCommand: l2.handleCommand }, { dropdown: C.withCtx(() => [C.createVNode(p2, null, { default: C.withCtx(() => [(C.openBlock(true), C.createElementBlock(C.Fragment, null, C.renderList(t3.buttons, (t4, i4) => (C.openBlock(), C.createElementBlock("span", { key: t4.props.code + i4 }, [C.withDirectives((C.openBlock(), C.createBlock(c2, { command: l2.beforeHandleCommand(t4.props.code, o2.row, o2.rowIndex), disabled: e2.preventReclick }, { default: C.withCtx(() => [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(t4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[A, t4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: C.withCtx(() => [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(t3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : t3.props.customControl ? C.withDirectives((C.openBlock(), C.createBlock(C.resolveDynamicComponent(t3.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"])), [[A, t3.props.permission]]) : (C.openBlock(), C.createBlock(m2, { key: 2, column: o2.column, editing: o2.row.$editing, entity: o2.row, "is-show": t3.isShow, label: t3.props.label ? t3.props.label : o2.row[o2.column.prop], "on-click": t3.onClick, "operation-index": i3, "operation-setting": t3.props, "event-name": t3.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))])) : e2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex) ? (C.openBlock(), C.createElementBlock("span", { key: 2, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [(C.openBlock(), C.createBlock(C.resolveDynamicComponent(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": e2.$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 ? (C.openBlock(), C.createElementBlock("span", { key: 3, class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(C.openBlock(), C.createBlock(C.resolveDynamicComponent(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": e2.$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 ? (C.openBlock(), C.createElementBlock("span", { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createVNode(u2, { entity: o2.row, "field-label": e2.$escapeHtml(e2.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, v)) : e2.isObjectProp(o2.column.prop) ? (C.openBlock(), C.createElementBlock(C.Fragment, { key: 5 }, [o2.column.formatter && "files" === o2.column.formatter.type ? (C.openBlock(), C.createElementBlock("span", S, [C.createElementVNode("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(l2.getLabel(o2.row)) : "", class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createVNode(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, D)])) : "hyperlinks" === ((_k = n2.columnFormatter) == null ? void 0 : _k.type) && true === n2.linkObject.visible ? (C.openBlock(), C.createBlock(g2, { key: 1, type: l2.getLinkType(o2.row), onClick: t2[4] || (t2[4] = (t3) => e2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: C.withCtx(() => [e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: n2.linkObject.title, class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createTextVNode(C.toDisplayString(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 14, B)) : (C.openBlock(), C.createElementBlock("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createTextVNode(C.toDisplayString(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 10, I))]), _: 1 }, 8, ["type"])) : e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 2, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: e2.$escapeHtml(l2.getLabel(o2.row)), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, C.toDisplayString(e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 15, T)) : (C.openBlock(), C.createElementBlock("span", { key: 3, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, C.toDisplayString(e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, F))], 64)) : (C.openBlock(), C.createElementBlock(C.Fragment, { key: 6 }, ["annex" === o2.column.componentType || "multipartUpload" === o2.column.componentType ? (C.openBlock(), C.createElementBlock("span", O, [e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, title: e2.$escapeHtml(l2.getLabel(o2.row)), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createVNode(h2, { width: n2.cellWidth, entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, P)) : (C.openBlock(), C.createElementBlock("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createVNode(h2, { entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, $))])) : o2.column.formatter && "files" === o2.column.formatter.type ? (C.openBlock(), C.createElementBlock("span", j, [C.createElementVNode("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(l2.getLabel(o2.row)) : "", class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createVNode(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, q)])) : "hyperlinks" === ((_l = n2.columnFormatter) == null ? void 0 : _l.type) && n2.linkObject.visible ? (C.openBlock(), C.createBlock(g2, { key: 2, type: "primary", onClick: t2[5] || (t2[5] = (t3) => e2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: C.withCtx(() => [e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: e2.$escapeHtml(n2.linkObject.title), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 14, R)) : (C.openBlock(), C.createElementBlock("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 10, V))]), _: 1 })) : o2.column.formatter && "richEditor" === o2.column.formatter.type ? (C.openBlock(), C.createBlock(f2, { key: 3, content: e2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: C.withCtx(() => [C.createElementVNode("em", { class: "fa fa-info-circle annex-cell", onClick: t2[6] || (t2[6] = (e3) => l2.showRichEditorContent(o2.row, o2.column, l2.getHeader())) })]), _: 1 }, 8, ["content"])) : o2.column.formatter && "icon" === o2.column.formatter.type ? (C.openBlock(), C.createBlock(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"])) : e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 5, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: l2.getLabel(o2.row), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 14, L)) : (C.openBlock(), C.createElementBlock("span", { key: 6, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, C.toDisplayString(e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, N))], 64))], 2)), n2.showSingleImgFlag ? (C.openBlock(), C.createBlock(y2, { key: 2, "file-list": n2.fileList, onClose: t2[7] || (t2[7] = (e3) => n2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : C.createCommentVNode("", true), n2.showRichEditorViewer ? (C.openBlock(), C.createBlock(H2, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l2.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : C.createCommentVNode("", true)]);
|
|
299
|
-
}], ["__scopeId", "data-v-
|
|
298
|
+
return C.openBlock(), C.createElementBlock("div", k, [l2.isEditing || o2.isShowForm ? (C.openBlock(), C.createBlock(r2, { key: 0, ref: "dynamicRef", value: o2.row[o2.column.prop], "onUpdate:value": t2[0] || (t2[0] = (e3) => o2.row[o2.column.prop] = e3), class: C.normalizeClass(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: C.withKeys(l2.clearAllEditing, ["enter"]), onFindIndex: t2[1] || (t2[1] = (e3) => l2.findIndex(o2.rowIndex)), onFocus: t2[2] || (t2[2] = (e3) => 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"])) : (C.openBlock(), C.createElementBlock("div", { key: 1, class: C.normalizeClass(((_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 ? (C.openBlock(), C.createElementBlock("div", { key: 0, class: "column-text-edit-main", onClick: t2[3] || (t2[3] = (...e3) => l2.onEditing && l2.onEditing(...e3)) }, [C.createVNode(a2, { size: 14, color: "#409eff" }, { default: C.withCtx(() => [C.createVNode(s2)]), _: 1 }), [void 0, null, ""].includes(o2.row[o2.column.prop]) ? (C.openBlock(), C.createElementBlock("span", E, C.toDisplayString(e2.$t("superGrid.editablePlaceholder")), 1)) : C.createCommentVNode("", true)])) : C.createCommentVNode("", true), o2.column.operations ? (C.openBlock(), C.createElementBlock("span", x, [(C.openBlock(true), C.createElementBlock(C.Fragment, null, C.renderList(o2.column.operations, (t3, i3) => (C.openBlock(), C.createElementBlock("span", { key: i3, class: C.normalizeClass([o2.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [t3.isGroup ? (C.openBlock(), C.createBlock(d2, { key: 0, size: t3.buttons && t3.buttons.length > 0 ? t3.buttons[0].props.size : "small", "split-button": "", onCommand: l2.handleCommand }, { dropdown: C.withCtx(() => [C.createVNode(p2, null, { default: C.withCtx(() => [(C.openBlock(true), C.createElementBlock(C.Fragment, null, C.renderList(t3.buttons, (t4, i4) => (C.openBlock(), C.createElementBlock("span", { key: t4.props.code + i4 }, [C.withDirectives((C.openBlock(), C.createBlock(c2, { command: l2.beforeHandleCommand(t4.props.code, o2.row, o2.rowIndex), disabled: e2.preventReclick }, { default: C.withCtx(() => [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(t4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[A, t4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: C.withCtx(() => [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(t3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : t3.props.customControl ? C.withDirectives((C.openBlock(), C.createBlock(C.resolveDynamicComponent(t3.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"])), [[A, t3.props.permission]]) : (C.openBlock(), C.createBlock(m2, { key: 2, column: o2.column, editing: o2.row.$editing, entity: o2.row, "is-show": t3.isShow, label: t3.props.label ? t3.props.label : o2.row[o2.column.prop], "on-click": t3.onClick, "operation-index": i3, "operation-setting": t3.props, "event-name": t3.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))])) : e2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex) ? (C.openBlock(), C.createElementBlock("span", { key: 2, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [(C.openBlock(), C.createBlock(C.resolveDynamicComponent(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": e2.$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 ? (C.openBlock(), C.createElementBlock("span", { key: 3, class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(C.openBlock(), C.createBlock(C.resolveDynamicComponent(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": e2.$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 ? (C.openBlock(), C.createElementBlock("span", { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createVNode(u2, { entity: o2.row, "field-label": e2.$escapeHtml(e2.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, v)) : e2.isObjectProp(o2.column.prop) ? (C.openBlock(), C.createElementBlock(C.Fragment, { key: 5 }, [o2.column.formatter && "files" === o2.column.formatter.type ? (C.openBlock(), C.createElementBlock("span", S, [C.createElementVNode("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(l2.getLabel(o2.row)) : "", class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createVNode(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, D)])) : "hyperlinks" === ((_k = n2.columnFormatter) == null ? void 0 : _k.type) && true === n2.linkObject.visible ? (C.openBlock(), C.createBlock(g2, { key: 1, type: l2.getLinkType(o2.row), onClick: t2[4] || (t2[4] = (t3) => e2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: C.withCtx(() => [e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: n2.linkObject.title, class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createTextVNode(C.toDisplayString(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 14, B)) : (C.openBlock(), C.createElementBlock("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createTextVNode(C.toDisplayString(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 10, I))]), _: 1 }, 8, ["type"])) : e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 2, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: e2.$escapeHtml(l2.getLabel(o2.row)), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, C.toDisplayString(e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 15, T)) : (C.openBlock(), C.createElementBlock("span", { key: 3, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, C.toDisplayString(e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, F))], 64)) : (C.openBlock(), C.createElementBlock(C.Fragment, { key: 6 }, ["annex" === o2.column.componentType || "multipartUpload" === o2.column.componentType ? (C.openBlock(), C.createElementBlock("span", O, [e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, title: e2.$escapeHtml(l2.getLabel(o2.row)), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createVNode(h2, { width: n2.cellWidth, entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, P)) : (C.openBlock(), C.createElementBlock("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createVNode(h2, { entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, $))])) : o2.column.formatter && "files" === o2.column.formatter.type ? (C.openBlock(), C.createElementBlock("span", j, [C.createElementVNode("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(l2.getLabel(o2.row)) : "", class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createVNode(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, q)])) : "hyperlinks" === ((_l = n2.columnFormatter) == null ? void 0 : _l.type) && n2.linkObject.visible ? (C.openBlock(), C.createBlock(g2, { key: 2, type: "primary", onClick: t2[5] || (t2[5] = (t3) => e2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: C.withCtx(() => [e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: e2.$escapeHtml(n2.linkObject.title), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 14, R)) : (C.openBlock(), C.createElementBlock("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, [C.createTextVNode(C.toDisplayString(e2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (C.openBlock(), C.createBlock(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : C.createCommentVNode("", true)], 10, V))]), _: 1 })) : o2.column.formatter && "richEditor" === o2.column.formatter.type ? (C.openBlock(), C.createBlock(f2, { key: 3, content: e2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: C.withCtx(() => [C.createElementVNode("em", { class: "fa fa-info-circle annex-cell", onClick: t2[6] || (t2[6] = (e3) => l2.showRichEditorContent(o2.row, o2.column, l2.getHeader())) })]), _: 1 }, 8, ["content"])) : o2.column.formatter && "icon" === o2.column.formatter.type ? (C.openBlock(), C.createBlock(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"])) : e2.isShowOverflowTooltip ? (C.openBlock(), C.createElementBlock("span", { key: 5, id: o2.column.prop + "DomData" + o2.rowIndex, style: C.normalizeStyle("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: l2.getLabel(o2.row), class: C.normalizeClass("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 14, L)) : (C.openBlock(), C.createElementBlock("span", { key: 6, id: o2.column.prop + "DomData" + o2.rowIndex, class: C.normalizeClass(o2.isShowForm ? "" : "cell--span") }, C.toDisplayString(e2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, N))], 64))], 2)), n2.showSingleImgFlag ? (C.openBlock(), C.createBlock(y2, { key: 2, "file-list": n2.fileList, onClose: t2[7] || (t2[7] = (e3) => n2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : C.createCommentVNode("", true), n2.showRichEditorViewer ? (C.openBlock(), C.createBlock(H2, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l2.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : C.createCommentVNode("", true)]);
|
|
299
|
+
}], ["__scopeId", "data-v-30804a71"]]);
|
|
300
300
|
module.exports = H;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), o = require("./utils.cjs"), r = require("./dynamic-input.vue.cjs"), i = require("./store.cjs"), l = require("./custom-formatter.cjs"),
|
|
2
|
+
const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), o = require("./utils.cjs"), r = require("./dynamic-input.vue.cjs"), i = require("./store.cjs"), l = require("./custom-formatter.cjs"), a = require("./apis.cjs"), n = require("vuex"), s = require("./view-image-dialog.vue.cjs");
|
|
3
3
|
require("../../fs-preview/index.cjs");
|
|
4
4
|
const u = require("../../rich-editor/viewer.vue.cjs"), d = require("./components/grid-icon.vue.cjs"), c = require("./normal-column-content.vue.cjs"), m = require("./eventBus.cjs"), p = require("vue");
|
|
5
5
|
require("./normal-column.vue2.cjs");
|
|
@@ -14,10 +14,10 @@ const h = require("../../_virtual/_plugin-vue_export-helper.cjs"), b = { compone
|
|
|
14
14
|
const e2 = i.get(this.listCode), t2 = o.getColumnValues(e2.gridData, this.column.prop) || [], r2 = /* @__PURE__ */ new Set(), l2 = [];
|
|
15
15
|
for (const e3 of t2)
|
|
16
16
|
r2.has(e3) || (r2.add(e3), l2.push(e3));
|
|
17
|
-
const
|
|
17
|
+
const a2 = [];
|
|
18
18
|
for (const e3 of l2)
|
|
19
|
-
|
|
20
|
-
return
|
|
19
|
+
a2.push({ text: e3, value: e3 });
|
|
20
|
+
return a2;
|
|
21
21
|
}
|
|
22
22
|
return null;
|
|
23
23
|
}, filterMethod() {
|
|
@@ -25,8 +25,7 @@ const h = require("../../_virtual/_plugin-vue_export-helper.cjs"), b = { compone
|
|
|
25
25
|
}, fixed() {
|
|
26
26
|
return !!this.column.fixed && (!["null", "false", "undefined"].includes(this.column.fixed) && this.column.fixed);
|
|
27
27
|
}, sortable() {
|
|
28
|
-
|
|
29
|
-
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"));
|
|
28
|
+
return "false" !== this.column.sortable && false !== this.column.sortable && "" !== this.column.sortable && (("true" === this.column.sortable || true === this.column.sortable || !!this.column.sortable) && "custom");
|
|
30
29
|
}, lineEdit() {
|
|
31
30
|
let e2 = false;
|
|
32
31
|
if (this.listCode) {
|
|
@@ -34,7 +33,7 @@ const h = require("../../_virtual/_plugin-vue_export-helper.cjs"), b = { compone
|
|
|
34
33
|
e2 = null !== t2.lineEdit && void 0 !== t2.lineEdit && t2.lineEdit;
|
|
35
34
|
}
|
|
36
35
|
return e2;
|
|
37
|
-
}, ...
|
|
36
|
+
}, ...n.mapGetters(["preventReclick"]) }, watch: { isSql: { deep: true, handler(e2, t2) {
|
|
38
37
|
this.isSql = e2;
|
|
39
38
|
} }, newWidth: { deep: true, handler(e2, t2) {
|
|
40
39
|
null != e2 && this.dragColumnProp && this.dragColumnProp === this.column.prop && (this.cellWidth = e2);
|
|
@@ -55,7 +54,7 @@ const h = require("../../_virtual/_plugin-vue_export-helper.cjs"), b = { compone
|
|
|
55
54
|
}
|
|
56
55
|
}, unmounted() {
|
|
57
56
|
m.$off("change-add-state");
|
|
58
|
-
}, methods: { ...l, ...
|
|
57
|
+
}, methods: { ...l, ...a.default, getHeader() {
|
|
59
58
|
return o.getHeaderLable(this.column);
|
|
60
59
|
}, filterHandler: (e2, t2, o2) => t2[o2.property] === e2, refresData(e2) {
|
|
61
60
|
t.$emit(this, "refresData", e2);
|
|
@@ -85,7 +84,7 @@ const h = require("../../_virtual/_plugin-vue_export-helper.cjs"), b = { compone
|
|
|
85
84
|
return this.isFormSubTable && e2 && e2.validateErrorField && e2.validateErrorField === this.column.prop;
|
|
86
85
|
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, f = ["title", "innerHTML"], g = { style: { "margin-left": "5px" } };
|
|
87
86
|
const C = h(b, [["render", function(e2, t2, o2, r2, i2, l2) {
|
|
88
|
-
const
|
|
89
|
-
return p.openBlock(), p.createBlock(d2, { key: o2.column.prop, align: i2.align, "class-name": o2.column.prop, "filter-method": l2.filterMethod, filters: l2.filters, fixed: l2.fixed, "header-align": i2.headerAlign, prop: o2.column.prop, sortable: l2.sortable, "min-width": l2.getColumnWidth() }, { header: p.withCtx(() => [o2.column.customHeader ? (p.openBlock(), p.createBlock(p.resolveDynamicComponent(o2.column.customHeader), { key: 1, prop: o2.column.prop, parent: i2.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"])) : (p.openBlock(), p.createElementBlock("span", { key: 0, class: p.normalizeClass([{ is_req: l2.isFieldRequired() }, "normal-column-header"]) }, [p.createElementVNode("span", { title: e2.$escapeHtml(e2.label), class: "cell--span required__label", innerHTML: e2.$escapeHtml(e2.label) }, null, 8, f)], 2)), p.createElementVNode("span", g, [i2.isShowAdd ? (p.openBlock(), p.createBlock(
|
|
90
|
-
}], ["__scopeId", "data-v-
|
|
87
|
+
const a2 = p.resolveComponent("CirclePlus"), n2 = p.resolveComponent("el-icon"), s2 = p.resolveComponent("Remove"), u2 = p.resolveComponent("NormalColumnContent"), d2 = p.resolveComponent("el-table-column");
|
|
88
|
+
return p.openBlock(), p.createBlock(d2, { key: o2.column.prop, align: i2.align, "class-name": o2.column.prop, "filter-method": l2.filterMethod, filters: l2.filters, fixed: l2.fixed, "header-align": i2.headerAlign, prop: o2.column.prop, sortable: l2.sortable, "min-width": l2.getColumnWidth() }, { header: p.withCtx(() => [o2.column.customHeader ? (p.openBlock(), p.createBlock(p.resolveDynamicComponent(o2.column.customHeader), { key: 1, prop: o2.column.prop, parent: i2.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"])) : (p.openBlock(), p.createElementBlock("span", { key: 0, class: p.normalizeClass([{ is_req: l2.isFieldRequired() }, "normal-column-header"]) }, [p.createElementVNode("span", { title: e2.$escapeHtml(e2.label), class: "cell--span required__label", innerHTML: e2.$escapeHtml(e2.label) }, null, 8, f)], 2)), p.createElementVNode("span", g, [i2.isShowAdd ? (p.openBlock(), p.createBlock(n2, { key: 0, class: "normal-column-header normal-column-header-icon", onClick: l2.createFormSubTableRow }, { default: p.withCtx(() => [p.createVNode(a2)]), _: 1 }, 8, ["onClick"])) : p.createCommentVNode("", true), i2.isShowDelete ? (p.openBlock(), p.createBlock(n2, { key: 1, class: "normal-column-header normal-column-header-icon", onClick: l2.deleteFormSubTableRow }, { default: p.withCtx(() => [p.createVNode(s2)]), _: 1 }, 8, ["onClick"])) : p.createCommentVNode("", true)])]), default: p.withCtx((e3) => [p.createVNode(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": i2.options.rightClickMenuArr, "table-name": o2.tableName, "page-code": o2.pageCode, "list-toolbar-form-data": o2.listToolbarFormData, "list-name": o2.listName, options: i2.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: p.normalizeClass(l2.isValidateError(e3.row, e3.$index) ? "required_bg required-corner" : ""), style: p.normalizeStyle(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"]);
|
|
89
|
+
}], ["__scopeId", "data-v-aecac200"]]);
|
|
91
90
|
module.exports = C;
|
|
@@ -11,8 +11,10 @@ const s = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "Searc
|
|
|
11
11
|
this.loading = true, e.$emit(this, "reset-form");
|
|
12
12
|
}, searchComplete() {
|
|
13
13
|
this.loading = false;
|
|
14
|
+
}, openFoldFunc(e2) {
|
|
15
|
+
this.isMyOpen = e2;
|
|
14
16
|
} }, emits: ["save-condition", "open-fold", "submit-form", "reset-form"] }, [["render", function(e2, t2, i2, s2, l, n) {
|
|
15
17
|
const r = o.resolveComponent("el-button");
|
|
16
|
-
return o.openBlock(), o.createElementBlock("div", { class: "search-button", style: o.normalizeStyle({ textAlign: l.isMobile ? "center" : "right" }) }, [o.createVNode(r, { loading: l.loading, size: "default", class: "button--default", onClick: n.submitForm }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading", "onClick"]), o.createVNode(r, { loading: l.loading, class: "button--default", size: "default", onClick: n.resetForm }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading", "onClick"]), o.createVNode(r, { class: "button--default", size: "default", onClick: t2[0] || (t2[0] = (t3) => e2.$emit("save-condition")) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("superGrid.saveCondition")), 1)]), _: 1 }), i2.isShowOpen ?? !l.isMobile ? (o.openBlock(), o.createBlock(r, { key: 0, icon: l.isMyOpen ? l.CaretTop : l.CaretBottom, link: "", size: "default", onClick: n.openFold }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(l.isMyOpen ? e2.$t("superGrid.fold") : e2.$t("superGrid.open")), 1)]), _: 1 }, 8, ["icon", "onClick"])) : o.createCommentVNode("", true)], 4);
|
|
18
|
+
return o.openBlock(), o.createElementBlock("div", { class: "search-button", style: o.normalizeStyle({ textAlign: l.isMobile ? "center" : "right" }) }, [o.createVNode(r, { loading: l.loading, size: "default", class: "button--default", onClick: n.submitForm }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading", "onClick"]), o.createVNode(r, { loading: l.loading, class: "button--default", size: "default", onClick: n.resetForm }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading", "onClick"]), o.createVNode(r, { class: "button--default", size: "default", onClick: t2[0] || (t2[0] = (t3) => e2.$emit("save-condition")) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("superGrid.saveCondition")), 1)]), _: 1 }), i2.isShowOpen ?? !l.isMobile ? (o.openBlock(), o.createBlock(r, { key: 0, icon: l.isMyOpen ? l.CaretTop : l.CaretBottom, link: "", size: "default", onClick: n.openFold }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(l.isMyOpen ? e2.$t("superGrid.fold") : e2.$t("superGrid.open")), 1)]), _: 1 }, 8, ["icon", "onClick"])) : o.createCommentVNode("", true), l.isMobile ? (o.openBlock(), o.createBlock(r, { key: 1, type: "warning", size: "default", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("superGrid.close")), 1)]), _: 1 })) : o.createCommentVNode("", true)], 4);
|
|
17
19
|
}]]);
|
|
18
20
|
module.exports = s;
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"),
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./search-form.vue.cjs"), r = require("vue"), t = require("../../_virtual/_plugin-vue_export-helper.cjs"), l = { 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() {
|
|
3
|
+
return { visible: this.dialogVisible };
|
|
4
|
+
}, computed: {}, created() {
|
|
5
|
+
}, methods: { doSearch(o2) {
|
|
6
|
+
e.$emit(this, "search", o2), this.visible = false;
|
|
5
7
|
}, resetSearch() {
|
|
6
|
-
e.$emit(this, "reset");
|
|
8
|
+
e.$emit(this, "reset"), this.visible = false;
|
|
9
|
+
}, searchComplete() {
|
|
10
|
+
this.$refs && this.$refs.sform && (this.$refs.sform.loading = false, this.$refs.sform.searchComplete());
|
|
11
|
+
}, closeDialog() {
|
|
12
|
+
this.visible = false, e.$emit(this, "close");
|
|
13
|
+
}, showSubTableSearchDialog() {
|
|
14
|
+
const e2 = this;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
e2.$refs && e2.$refs.sform && e2.$refs.sform.openFoldFunc(true);
|
|
17
|
+
}, 100), this.visible = true;
|
|
7
18
|
} }, emits: ["close", "search", "reset"] };
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
return
|
|
19
|
+
const s = t(l, [["render", function(e2, o2, t2, l2, s2, a) {
|
|
20
|
+
const i = r.resolveComponent("search-form"), c = r.resolveComponent("el-dialog");
|
|
21
|
+
return r.openBlock(), r.createBlock(c, { "show-close": true, "append-to-body": true, title: e2.$t("superGrid.searchCondition"), modelValue: s2.visible, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => s2.visible = e3), width: "60%", onClose: a.closeDialog }, { default: r.withCtx(() => [r.createVNode(i, { ref: "sform", columns: t2.columns, code: t2.code, url: t2.url, pagination: t2.pagination, query: t2.query, "search-form-info": t2.searchFormInfo, "search-param": e2.searchFormContent, "init-search-props": t2.initSearchProps, "list-toolbar-form-data": t2.listToolbarFormData, "load-complete-query": t2.loadCompleteQuery, onSearch: a.doSearch, onReset: a.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"]);
|
|
11
22
|
}]]);
|
|
12
|
-
module.exports =
|
|
23
|
+
module.exports = s;
|
|
@@ -114,7 +114,7 @@ const s = c(m, [["render", function(e2, o2, t2, l2, n2, a2) {
|
|
|
114
114
|
const c2 = r.resolveComponent("el-date-picker"), m2 = r.resolveComponent("year-range-picker"), s2 = r.resolveComponent("el-time-picker"), d = r.resolveComponent("organization-input"), h = r.resolveComponent("el-checkbox"), y = r.resolveComponent("el-option"), g = r.resolveComponent("el-select"), f = r.resolveComponent("dynamic-source-select"), C = r.resolveComponent("search-form-number"), T = r.resolveComponent("el-switch"), k = r.resolveComponent("el-slider"), V = r.resolveComponent("el-rate"), v = r.resolveComponent("el-tooltip"), S = r.resolveComponent("el-input"), b = r.resolveComponent("el-form-item");
|
|
115
115
|
return r.openBlock(), r.createBlock(b, { "label-width": t2.labelWidth ?? (t2.column.querySetting ? a2.getLabelWidth(t2.column.querySetting) : "110px"), prop: t2.column.prop }, { label: r.withCtx(() => [r.createElementVNode("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, p)]), default: r.withCtx(() => {
|
|
116
116
|
var _a, _b, _c, _d;
|
|
117
|
-
return [true === a2.customComponent(t2.column) ? (r.openBlock(), r.createElementBlock("span", i, [(r.openBlock(), r.createBlock(r.resolveDynamicComponent(t2.column.componentName), { ref: t2.column.componentName, entity: t2.searchForm, "additional-settings": n2.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) => a2.setValueToModelProp(t2.column.prop, e3, t2.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === t2.column.componentType ? (r.openBlock(), r.createElementBlock("span", u, [r.createVNode(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "date", onChange: o2[2] || (o2[2] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), r.createVNode(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "date", onChange: o2[4] || (o2[4] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === t2.column.componentType ? (r.openBlock(), r.createBlock(m2, { key: 2, value: e2.getFormItemValue(t2.column.prop), type: "yearRange", onChange: o2[5] || (o2[5] = (e3) => a2.setYearRangeValue(t2.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { key: 3, "default-time": a2.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: r.normalizeStyle(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) => a2.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 ? (r.openBlock(), r.createBlock(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: o2[9] || (o2[9] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === t2.column.dataType && "timepicker" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[11] || (o2[11] = (e3) => a2.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 ? (r.openBlock(), r.createBlock(s2, { 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) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : a2.componentTypeTypeIsTree(t2.column.componentType) ? (r.openBlock(), r.createBlock(d, { key: 7, fields: a2.getTreeFields(t2.column.orgTreeSet), "department-info": n2.departmentInfo, "limit-filter-column": (_a = n2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: t2.searchForm, multiple: a2.getTreeIsMultiTree(t2.column.componentType), "tree-type": a2.getTreeType(t2.column.componentType), value: e2.getFormItemValue(t2.column.prop), onClear: a2.clearOrganizationInputEvent, onSetValue: a2.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) ? (r.openBlock(), r.createBlock(g, { key: 8, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[15] || (o2[15] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, r.createSlots({ default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(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) && !a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(g, { key: 9, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[17] || (o2[17] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, r.createSlots({ default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[16] || (o2[16] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(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 && !a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(g, { key: 10, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: o2[19] || (o2[19] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, { header: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[18] || (o2[18] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { 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) && a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(f, { 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 = n2.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": a2.listToolbarFormData, options: n2.dataSourceOptions, "table-name": t2.tableName, "is-search": true, onChange: a2.multiselectChange, onChangeEmptyValue: a2.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 ? (r.openBlock(), r.createBlock(C, { key: 12, "item-value": t2.searchForm[t2.column.prop], "module-config": n2.moduleConfig, onSetValue: a2.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : t2.column.componentType && "switch" === t2.column.componentType ? (r.openBlock(), r.createBlock(T, { key: 13, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: o2[21] || (o2[21] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "slider" === t2.column.componentType ? (r.openBlock(), r.createBlock(k, { key: 14, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onChange: o2[22] || (o2[22] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "rate" === t2.column.componentType ? (r.openBlock(), r.createBlock(V, { key: 15, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onChange: o2[23] || (o2[23] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (r.openBlock(), r.createBlock(S, { key: 16, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onKeyup: o2[25] || (o2[25] = r.withKeys((o3) => e2.submitForm("searchForm"), ["enter"])), onInput: o2[26] || (o2[26] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)), onFocus: o2[27] || (o2[27] = (e3) => a2.showEmpty()), onBlur: o2[28] || (o2[28] = (e3) => a2.hiddenEmpty()) }, { suffix: r.withCtx(() => [r.createVNode(v, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: r.withCtx(() => [a2.isShowEmtpty ? (r.openBlock(), r.createBlock(h, { key: 0, modelValue: a2.checkedEmpty, "onUpdate:modelValue": o2[24] || (o2[24] = (e3) => a2.checkedEmpty = e3), onChange: a2.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
117
|
+
return [true === a2.customComponent(t2.column) ? (r.openBlock(), r.createElementBlock("span", i, [(r.openBlock(), r.createBlock(r.resolveDynamicComponent(t2.column.componentName), { ref: t2.column.componentName, entity: t2.searchForm, "additional-settings": n2.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) => a2.setValueToModelProp(t2.column.prop, e3, t2.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === t2.column.componentType ? (r.openBlock(), r.createElementBlock("span", u, [r.createVNode(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "date", onChange: o2[2] || (o2[2] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), r.createVNode(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "date", onChange: o2[4] || (o2[4] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === t2.column.componentType ? (r.openBlock(), r.createBlock(m2, { key: 2, value: e2.getFormItemValue(t2.column.prop), type: "yearRange", onChange: o2[5] || (o2[5] = (e3) => a2.setYearRangeValue(t2.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { key: 3, "default-time": a2.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: r.normalizeStyle(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) => a2.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 ? (r.openBlock(), r.createBlock(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: o2[9] || (o2[9] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === t2.column.dataType && "timepicker" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { 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: r.normalizeStyle(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[11] || (o2[11] = (e3) => a2.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 ? (r.openBlock(), r.createBlock(s2, { 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) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : a2.componentTypeTypeIsTree(t2.column.componentType) ? (r.openBlock(), r.createBlock(d, { key: 7, fields: a2.getTreeFields(t2.column.orgTreeSet), "department-info": n2.departmentInfo, "limit-filter-column": (_a = n2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: t2.searchForm, multiple: a2.getTreeIsMultiTree(t2.column.componentType), "tree-type": a2.getTreeType(t2.column.componentType), value: e2.getFormItemValue(t2.column.prop), onClear: a2.clearOrganizationInputEvent, onSetValue: a2.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) ? (r.openBlock(), r.createBlock(g, { key: 8, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[15] || (o2[15] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, r.createSlots({ default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(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) && !a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(g, { key: 9, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[17] || (o2[17] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, r.createSlots({ default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[16] || (o2[16] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(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 && !a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(g, { key: 10, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: o2[19] || (o2[19] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, { header: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[18] || (o2[18] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { 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) && a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(f, { 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 = n2.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": a2.listToolbarFormData, options: n2.dataSourceOptions, "table-name": t2.tableName, "is-search": true, onChange: a2.multiselectChange, onChangeEmptyValue: a2.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 ? (r.openBlock(), r.createBlock(C, { key: 12, "item-value": t2.searchForm[t2.column.prop], "module-config": n2.moduleConfig, onSetValue: a2.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : t2.column.componentType && "switch" === t2.column.componentType ? (r.openBlock(), r.createBlock(T, { key: 13, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: o2[21] || (o2[21] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "slider" === t2.column.componentType ? (r.openBlock(), r.createBlock(k, { key: 14, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onChange: o2[22] || (o2[22] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "rate" === t2.column.componentType ? (r.openBlock(), r.createBlock(V, { key: 15, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onChange: o2[23] || (o2[23] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (r.openBlock(), r.createBlock(S, { key: 16, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onKeyup: o2[25] || (o2[25] = r.withKeys((o3) => e2.submitForm("searchForm"), ["enter"])), onInput: o2[26] || (o2[26] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)), onFocus: o2[27] || (o2[27] = (e3) => a2.showEmpty()), onBlur: o2[28] || (o2[28] = (e3) => a2.hiddenEmpty()) }, { suffix: r.withCtx(() => [r.createVNode(v, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: r.withCtx(() => [a2.isShowEmtpty ? (r.openBlock(), r.createBlock(h, { key: 0, modelValue: a2.checkedEmpty, "onUpdate:modelValue": o2[24] || (o2[24] = (e3) => a2.checkedEmpty = e3), onChange: a2.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
118
118
|
}), _: 1 }, 8, ["label-width", "prop"]);
|
|
119
|
-
}], ["__scopeId", "data-v-
|
|
119
|
+
}], ["__scopeId", "data-v-41b4cbbd"]]);
|
|
120
120
|
module.exports = s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const e = require("../../utils/gogocodeTransfer.cjs"), t = require("./search-methods.cjs"), o = require("./store.cjs"), r = require("./utils.cjs"), s = require("../../src/utils/eventBus.cjs"), a = require("./search-form-item.vue.cjs"), n = require("./search-button.vue.cjs"), l = require("vue");
|
|
3
3
|
require("./search-form-mobile.vue2.cjs");
|
|
4
|
-
const
|
|
4
|
+
const c = require("../../_virtual/_plugin-vue_export-helper.cjs"), i = { name: "SearchFormMobile", components: { SearchFormItem: a, SearchButton: n }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, rules: { type: Object, default: null }, labelWidth: { type: String, default: null }, query: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, loadCompleteQuery: { type: Boolean, default: false } }, data() {
|
|
5
5
|
const e2 = o.get(this.code);
|
|
6
6
|
let t2, r2;
|
|
7
7
|
e2 && e2.basicInfo && e2.basicInfo.tableName && (t2 = e2.basicInfo.tableName), e2 && e2.basicInfo && e2.basicInfo.hasJoinTable && (r2 = e2.basicInfo.hasJoinTable);
|
|
@@ -24,9 +24,9 @@ const i = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { name: "
|
|
|
24
24
|
this.isOpen = t2, e.$emit(this, "open-fold", t2);
|
|
25
25
|
}, searchComplete() {
|
|
26
26
|
this.$refs.searchBtnOpen && (Array.isArray(this.$refs.searchBtnOpen) ? this.$refs.searchBtnOpen.length > 0 && this.$refs.searchBtnOpen[0].searchComplete() : this.$refs.searchBtnOpen.searchComplete());
|
|
27
|
-
} }, emits: ["submit-form", "reset-form", "save-condition", "remoteMethod"] }, m = { style: { "padding-bottom": "40px"
|
|
28
|
-
const
|
|
29
|
-
const n2 = l.resolveComponent("search-form-item"),
|
|
30
|
-
return l.openBlock(), l.createElementBlock("div", null, [o2.searchableColumns.length > 0 ? (l.openBlock(), l.createBlock(
|
|
31
|
-
}], ["__scopeId", "data-v-
|
|
32
|
-
module.exports =
|
|
27
|
+
} }, emits: ["submit-form", "reset-form", "save-condition", "remoteMethod"] }, m = { style: { "padding-bottom": "40px" } }, h = { class: "search-btn-mobile" };
|
|
28
|
+
const u = c(i, [["render", function(e2, t2, o2, r2, s2, a2) {
|
|
29
|
+
const n2 = l.resolveComponent("search-form-item"), c2 = l.resolveComponent("search-button"), i2 = l.resolveComponent("el-form");
|
|
30
|
+
return l.openBlock(), l.createElementBlock("div", null, [o2.searchableColumns.length > 0 ? (l.openBlock(), l.createBlock(i2, { key: 0, ref: "searchForm", model: o2.searchForm, rules: o2.rules, class: "grid-search-form-mobile", "label-position": "top", size: "default" }, { default: l.withCtx(() => [l.createElementVNode("div", m, [(l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(o2.searchableColumns, (e3, t3) => (l.openBlock(), l.createBlock(n2, { key: t3, "search-form": o2.searchForm, column: e3, code: o2.code, "is-sql": o2.isSql, "table-name": s2.tableName, "is-join-table": s2.isJoinTable }, null, 8, ["search-form", "column", "code", "is-sql", "table-name", "is-join-table"]))), 128))]), l.createElementVNode("div", h, [l.createVNode(c2, { ref: "searchBtnOpen", onClose: t2[0] || (t2[0] = (t3) => e2.$emit("close")), onSubmitForm: t2[1] || (t2[1] = (t3) => e2.$emit("submit-form")), onResetForm: t2[2] || (t2[2] = (t3) => e2.$emit("reset-form")), onSaveCondition: t2[3] || (t2[3] = (t3) => e2.$emit("save-condition")) }, null, 512)])]), _: 1 }, 8, ["model", "rules"])) : l.createCommentVNode("", true)]);
|
|
31
|
+
}], ["__scopeId", "data-v-c8fb4788"]]);
|
|
32
|
+
module.exports = u;
|
|
@@ -33,12 +33,14 @@ const e = require("./search-methods.cjs"), t = require("./search-form-item.vue.c
|
|
|
33
33
|
} }, methods: { ...e, onResize(e2) {
|
|
34
34
|
this.rowWidth = e2.contentRect.width;
|
|
35
35
|
}, openFold(e2) {
|
|
36
|
-
this.
|
|
36
|
+
this.openFoldFunc(e2), this.$emit("open-fold", e2);
|
|
37
|
+
}, openFoldFunc(e2) {
|
|
38
|
+
this.myOpen = e2, this.$refs && this.$refs.searchBtnOpen && this.$refs.searchBtnOpen.openFoldFunc(e2);
|
|
37
39
|
}, searchComplete() {
|
|
38
40
|
this.$refs.searchBtnOpen && (Array.isArray(this.$refs.searchBtnOpen) ? this.$refs.searchBtnOpen.length > 0 && this.$refs.searchBtnOpen[0].searchComplete() : this.$refs.searchBtnOpen.searchComplete());
|
|
39
41
|
} } }, l = { class: "grid-search-row" };
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
return s.withDirectives((s.openBlock(), s.createElementBlock("div", l, [s.createVNode(
|
|
42
|
+
const i = o(r, [["render", function(e2, t2, n2, o2, r2, i2) {
|
|
43
|
+
const a = s.resolveComponent("search-form-item"), h = s.resolveComponent("el-col"), u = s.resolveComponent("search-button"), c = s.resolveComponent("el-row"), m = s.resolveDirective("resize");
|
|
44
|
+
return s.withDirectives((s.openBlock(), s.createElementBlock("div", l, [s.createVNode(c, null, { default: s.withCtx(() => [(s.openBlock(true), s.createElementBlock(s.Fragment, null, s.renderList(i2.filterSearchableColumns, (e3, t3) => (s.openBlock(), s.createBlock(h, { key: t3, span: i2.span }, { default: s.withCtx(() => [s.createVNode(a, { "label-width": i2.labelWidth, "search-form": n2.searchForm, column: e3, code: n2.code, "is-sql": n2.isSql, "table-name": n2.tableName, "is-join-table": n2.isJoinTable }, null, 8, ["label-width", "search-form", "column", "code", "is-sql", "table-name", "is-join-table"])]), _: 2 }, 1032, ["span"]))), 128)), s.createVNode(h, { span: i2.span, class: s.normalizeClass(["search-btns-view", { "no-show-open": !i2.isShowOpen, "no-search-button-auto": i2.isSearchButtonAuto }]) }, { default: s.withCtx(() => [s.createVNode(u, { ref: "searchBtnOpen", "is-open": r2.myOpen, "is-show-open": i2.isShowOpen, onSubmitForm: t2[0] || (t2[0] = (t3) => e2.$emit("submit-form")), onResetForm: t2[1] || (t2[1] = (t3) => e2.$emit("reset-form")), onSaveCondition: t2[2] || (t2[2] = (t3) => e2.$emit("save-condition")), onOpenFold: i2.openFold }, null, 8, ["is-open", "is-show-open", "onOpenFold"])]), _: 1 }, 8, ["span", "class"])]), _: 1 })])), [[m, i2.onResize]]);
|
|
43
45
|
}]]);
|
|
44
|
-
module.exports =
|
|
46
|
+
module.exports = i;
|
|
@@ -24,8 +24,10 @@ const l = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "Searc
|
|
|
24
24
|
this.isOpen = o2, e.$emit(this, "open-fold", o2);
|
|
25
25
|
}, searchComplete() {
|
|
26
26
|
this.$refs.searchFormContent && this.$refs.searchFormContent.searchComplete();
|
|
27
|
+
}, openFoldFunc(e2) {
|
|
28
|
+
this.isOpen = e2, this.$refs.searchFormContent && this.$refs.searchFormContent.openFoldFunc(e2);
|
|
27
29
|
} }, emits: ["submit-form", "reset-form", "save-condition", "open-fold", "remoteMethod"] }, [["render", function(e2, o2, r2, t2, s2, a2) {
|
|
28
30
|
const l2 = n.resolveComponent("search-form-open"), m = n.resolveComponent("el-form");
|
|
29
31
|
return r2.searchableColumns.length > 0 ? (n.openBlock(), n.createBlock(m, { key: 0, ref: "searchForm", model: r2.searchForm, rules: r2.rules, class: "grid-search-form", "label-position": "right", size: "default" }, { default: n.withCtx(() => [n.createVNode(l2, { ref: "searchFormContent", code: r2.code, "field-num": r2.fieldNum, "is-join-table": s2.isJoinTable, "is-open": s2.isOpen, "is-sql": r2.isSql, "load-complete-query": r2.loadCompleteQuery, "row-num": r2.rowNum, "search-form": r2.searchForm, "searchable-columns": r2.searchableColumns, "span-num": r2.spanNum, "table-name": s2.tableName, onSubmitForm: o2[0] || (o2[0] = (o3) => e2.$emit("submit-form")), onResetForm: o2[1] || (o2[1] = (o3) => e2.$emit("reset-form")), onSaveCondition: o2[2] || (o2[2] = (o3) => e2.$emit("save-condition")), onOpenFold: a2.openFold }, null, 8, ["code", "field-num", "is-join-table", "is-open", "is-sql", "load-complete-query", "row-num", "search-form", "searchable-columns", "span-num", "table-name", "onOpenFold"])]), _: 1 }, 8, ["model", "rules"])) : n.createCommentVNode("", true);
|
|
30
|
-
}], ["__scopeId", "data-v-
|
|
32
|
+
}], ["__scopeId", "data-v-d462769a"]]);
|
|
31
33
|
module.exports = l;
|