agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp27
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 +1115 -1102
- package/dist/style.css +36 -20
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/style.css +933 -917
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/style.css +955 -939
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- package/package.json +2 -2
|
@@ -75,7 +75,7 @@ const w = m({ name: "ColumnsConfig", props: { listCode: { type: String, default:
|
|
|
75
75
|
});
|
|
76
76
|
} }, emits: ["open", "opend", "close", "closed", "reset", "opend", "close", "closed"] }, [["render", function(e2, n2, c2, m2, w2, f) {
|
|
77
77
|
const g = l("el-button"), C = l("el-table-column"), $ = l("el-option"), x = l("el-select"), T = l("el-input"), O = l("el-table"), V = l("el-dialog");
|
|
78
|
-
return o(), s(V, { "close-on-click-modal": false, "model-value": true, "show-close": true, title: e2.$t("superGrid.columnConfig"), "append-to-body": "", top: "5vh", width: "50%", onClose: n2[1] || (n2[1] = (l2) => e2.$emit("close")), onClosed: n2[2] || (n2[2] = (l2) => e2.$emit("closed")), onOpen: n2[3] || (n2[3] = (l2) => e2.$emit("open")), onOpend: n2[4] || (n2[4] = (l2) => e2.$emit("opend")) }, { default: t(() => [a("div", h, [r(g, { size: "default", type: "primary", onClick: f.saveConfig }, { default: t(() => [d(i(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["onClick"]), r(g, { size: "default", onClick: f.resetConfig }, { default: t(() => [d(i(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["onClick"]), r(g, { size: "default", onClick: n2[0] || (n2[0] = (l2) => e2.$emit("close")) }, { default: t(() => [d(i(e2.$t("imatrixUIPublicModel.cancel")), 1)]), _: 1 }), e2.isDragColumn ? (o(), p("span", y, "(" + i(e2.$t("superGrid.dragColumnOrderMessage")) + ")", 1)) : u("", true)]), w2.hasLoaded ? (o(), s(O, { key: 0, data: w2.columns, class: "custom-config-elTable", "max-height": "450", "row-key": "prop" }, { default: t(() => [r(C, { label: e2.$t("superGrid.label"), property: "label", width: "220" }, { default: t((e3) => [a("span", { title: e3.row.label, class: "ellipsis cell--span" }, i(e3.row.label), 9, b)]), _: 1 }, 8, ["label"]), r(C, { label: e2.$t("superGrid.isShow"), property: "showType", width: "120" }, { default: t((l2) => [r(x, { modelValue: l2.row.showType, "onUpdate:modelValue": (e3) => l2.row.showType = e3, disabled: f.isDisabledShow(l2.row), onChange: (e3) => f.changeShow(l2.row, e3) }, { default: t(() => [r($, { label: f.isDisabledShow(l2.row) ? e2.$t("superGrid.default") : e2.$t("superGrid.show"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.hidden"), value: "false" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])]), _: 1 }, 8, ["label"]), r(C, { label: e2.$t("superGrid.isExportable"), property: "exportType", width: "120" }, { default: t((l2) => [r(x, { modelValue: l2.row.exportType, "onUpdate:modelValue": (e3) => l2.row.exportType = e3, disabled: f.isDisabledExport(l2.row), onChange: (e3) => f.changeExport(l2.row, e3) }, { default: t(() => [r($, { label: f.isDisabledExport(l2.row) ? e2.$t("superGrid.default") : e2.$t("superGrid.export"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.unExport"), value: "false" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])]), _: 1 }, 8, ["label"]), e2.isDragColumn ? (o(), s(C, { key: 0, label: e2.$t("superGrid.displayOrder"), property: "displayOrder", sortable: "" }, { default: t((l2) => [l2.row.displayOrderType && "custom" === l2.row.displayOrderType ? (o(), s(T, { key: 0, modelValue: l2.row.displayOrder, "onUpdate:modelValue": (e3) => l2.row.displayOrder = e3, clearable: "", type: "number", size: "default", onClear: (e3) => f.clearDisplayOrder(l2.row), onInput: (e3) => f.handleInput(l2.row, "displayOrder") }, null, 8, ["modelValue", "onUpdate:modelValue", "onClear", "onInput"])) : (o(), s(x, { key: 1, modelValue: l2.row.displayOrderType, "onUpdate:modelValue": (e3) => l2.row.displayOrderType = e3 }, { default: t(() => [r($, { label: e2.$t("superGrid.default"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.custom"), value: "custom" }, null, 8, ["label"])]), _:
|
|
78
|
+
return o(), s(V, { "close-on-click-modal": false, "model-value": true, "show-close": true, title: e2.$t("superGrid.columnConfig"), "append-to-body": "", top: "5vh", width: "50%", onClose: n2[1] || (n2[1] = (l2) => e2.$emit("close")), onClosed: n2[2] || (n2[2] = (l2) => e2.$emit("closed")), onOpen: n2[3] || (n2[3] = (l2) => e2.$emit("open")), onOpend: n2[4] || (n2[4] = (l2) => e2.$emit("opend")) }, { default: t(() => [a("div", h, [r(g, { size: "default", type: "primary", onClick: f.saveConfig }, { default: t(() => [d(i(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["onClick"]), r(g, { size: "default", onClick: f.resetConfig }, { default: t(() => [d(i(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["onClick"]), r(g, { size: "default", onClick: n2[0] || (n2[0] = (l2) => e2.$emit("close")) }, { default: t(() => [d(i(e2.$t("imatrixUIPublicModel.cancel")), 1)]), _: 1 }), e2.isDragColumn ? (o(), p("span", y, "(" + i(e2.$t("superGrid.dragColumnOrderMessage")) + ")", 1)) : u("", true)]), w2.hasLoaded ? (o(), s(O, { key: 0, data: w2.columns, class: "custom-config-elTable", "max-height": "450", "row-key": "prop" }, { default: t(() => [r(C, { label: e2.$t("superGrid.label"), property: "label", width: "220" }, { default: t((e3) => [a("span", { title: e3.row.label, class: "ellipsis cell--span" }, i(e3.row.label), 9, b)]), _: 1 }, 8, ["label"]), r(C, { label: e2.$t("superGrid.isShow"), property: "showType", width: "120" }, { default: t((l2) => [r(x, { modelValue: l2.row.showType, "onUpdate:modelValue": (e3) => l2.row.showType = e3, disabled: f.isDisabledShow(l2.row), onChange: (e3) => f.changeShow(l2.row, e3) }, { default: t(() => [r($, { label: f.isDisabledShow(l2.row) ? e2.$t("superGrid.default") : e2.$t("superGrid.show"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.hidden"), value: "false" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])]), _: 1 }, 8, ["label"]), r(C, { label: e2.$t("superGrid.isExportable"), property: "exportType", width: "120" }, { default: t((l2) => [r(x, { modelValue: l2.row.exportType, "onUpdate:modelValue": (e3) => l2.row.exportType = e3, disabled: f.isDisabledExport(l2.row), onChange: (e3) => f.changeExport(l2.row, e3) }, { default: t(() => [r($, { label: f.isDisabledExport(l2.row) ? e2.$t("superGrid.default") : e2.$t("superGrid.export"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.unExport"), value: "false" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])]), _: 1 }, 8, ["label"]), e2.isDragColumn ? (o(), s(C, { key: 0, label: e2.$t("superGrid.displayOrder"), property: "displayOrder", sortable: "" }, { default: t((l2) => [l2.row.displayOrderType && "custom" === l2.row.displayOrderType ? (o(), s(T, { key: 0, modelValue: l2.row.displayOrder, "onUpdate:modelValue": (e3) => l2.row.displayOrder = e3, clearable: "", type: "number", size: "default", onClear: (e3) => f.clearDisplayOrder(l2.row), onInput: (e3) => f.handleInput(l2.row, "displayOrder") }, null, 8, ["modelValue", "onUpdate:modelValue", "onClear", "onInput"])) : (o(), s(x, { key: 1, modelValue: l2.row.displayOrderType, "onUpdate:modelValue": (e3) => l2.row.displayOrderType = e3 }, { default: t(() => [r($, { label: e2.$t("superGrid.default"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.custom"), value: "custom" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }, 8, ["label"])) : u("", true), e2.isDragColumn ? (o(), s(C, { key: 1, label: e2.$t("superGrid.searchDisplayOrder"), property: "searchDisplayOrder", sortable: "" }, { default: t((l2) => [l2.row.searchDisplayOrderType && "custom" === l2.row.searchDisplayOrderType ? (o(), s(T, { key: 0, modelValue: l2.row.searchDisplayOrder, "onUpdate:modelValue": (e3) => l2.row.searchDisplayOrder = e3, disabled: !w2.searchColumns.includes(l2.row.prop), clearable: "", type: "number", size: "default", onClear: (e3) => l2.row.searchDisplayOrderType = "default", onInput: (e3) => f.handleInput(l2.row, "searchDisplayOrder") }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "onClear", "onInput"])) : (o(), s(x, { key: 1, modelValue: l2.row.searchDisplayOrderType, "onUpdate:modelValue": (e3) => l2.row.searchDisplayOrderType = e3, disabled: !w2.searchColumns.includes(l2.row.prop) }, { default: t(() => [r($, { label: e2.$t("superGrid.default"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.custom"), value: "custom" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "disabled"]))]), _: 1 }, 8, ["label"])) : u("", true), r(C, { label: e2.$t("superGrid.width"), property: "widthType" }, { default: t((l2) => [l2.row.widthType && "custom" === l2.row.widthType ? (o(), s(T, { key: 0, modelValue: l2.row.width, "onUpdate:modelValue": (e3) => l2.row.width = e3, clearable: "", size: "default", onClear: (e3) => f.clearWidth(l2.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onClear"])) : (o(), s(x, { key: 1, modelValue: l2.row.widthType, "onUpdate:modelValue": (e3) => l2.row.widthType = e3 }, { default: t(() => [r($, { label: e2.$t("superGrid.default"), value: "default" }, null, 8, ["label"]), r($, { label: e2.$t("superGrid.custom"), value: "custom" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])) : u("", true)]), _: 1 }, 8, ["title"]);
|
|
79
79
|
}]]);
|
|
80
80
|
export {
|
|
81
81
|
w as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as t, openBlock as a, createBlock as u, withCtx as o, createElementBlock as n, Fragment as i, renderList as d, createTextVNode as r, toDisplayString as p } from "vue";
|
|
2
2
|
import { getClassOptionTitleCommon as s } from "../utils.mjs";
|
|
3
3
|
const v = e({ __name: "grid-radio-input", props: { options: { type: Array, default: () => [] }, valueSetOptions: { type: Object, default: false }, disabled: { type: Boolean, default: false }, modelValue: { type: [String, Number, Boolean], default: "" }, prop: { type: String, default: "" }, entity: { type: Object, default: () => ({}) } }, emits: ["update:modelValue", "cellEvent"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, m = l(c.modelValue),
|
|
5
|
-
if (
|
|
4
|
+
const c = e2, m = v2, f = l(c.modelValue), b = (e3) => {
|
|
5
|
+
if (f.value = e3, c.valueSetOptions && c.valueSetOptions.length > 0) {
|
|
6
6
|
const l2 = function(e4, l3) {
|
|
7
7
|
if (!l3)
|
|
8
8
|
return [];
|
|
@@ -12,11 +12,11 @@ const v = e({ __name: "grid-radio-input", props: { options: { type: Array, defau
|
|
|
12
12
|
e4.valueField !== c.prop && (c.entity[e4.valueField] = l2[e4.columnName]);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
m("update:modelValue", e3), m("cellEvent", "change", e3);
|
|
16
16
|
};
|
|
17
|
-
return (l2,
|
|
17
|
+
return (l2, v3) => {
|
|
18
18
|
const y = t("el-radio"), g = t("el-radio-group");
|
|
19
|
-
return a(), u(g, { ref: "item", modelValue:
|
|
19
|
+
return a(), u(g, { ref: "item", modelValue: f.value, "onUpdate:modelValue": v3[0] || (v3[0] = (e3) => f.value = e3), disabled: e2.disabled, title: (E = f.value, s(E, c.options)), onBlur: v3[1] || (v3[1] = (e3) => m("cellEvent", "blur", e3)), onChange: b, onClear: v3[2] || (v3[2] = (e3) => m("cellEvent", "clear", e3)), onFocus: v3[3] || (v3[3] = (e3) => m("cellEvent", "focus", e3)), onInput: v3[4] || (v3[4] = (e3) => m("cellEvent", "input", e3)), onVisibleChange: v3[5] || (v3[5] = (e3) => m("cellEvent", "visible-change", e3)) }, { default: o(() => [(a(true), n(i, null, d(e2.options, (e3) => (a(), u(y, { key: e3.value, value: e3.value }, { default: o(() => [r(p(e3.label), 1)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 }, 8, ["modelValue", "disabled", "title"]);
|
|
20
20
|
var E;
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
@@ -6,37 +6,37 @@ import { ElMessage as h } from "element-plus";
|
|
|
6
6
|
import C from "../store.mjs";
|
|
7
7
|
import { getRelativeBaseUrl as S } from "../../../src/utils/common-util.mjs";
|
|
8
8
|
const O = { style: { "padding-left": "5px" } }, V = e({ __name: "select-input", props: { column: { type: Object, default: null }, type: { type: String, default: "input" }, controlConfig: { type: Object, default: false }, listCode: { type: String, default: "" }, listToolbarFormData: { type: Object, default: null }, dynamicDataSourceCode: { type: String, default: "" }, additionalParamMap: { type: [String, Object], default: null }, isSql: { type: Boolean, default: false }, parentFormData: { type: Object, default: () => ({}) }, tableName: { type: String, default: "" }, options: { type: Array, default: () => [] }, valueSetOptions: { type: Object, default: false }, disabled: { type: Boolean, default: false }, modelValue: { type: [String, Number, Boolean], default: "" }, prop: { type: String, default: "" }, entity: { type: Object, default: () => ({}) } }, emits: ["update:modelValue", "cellEvent", "extendParams", "setCellValue", "callCustomEventWithParam", "setCellValueWithProp"], setup(e2, { emit: V2 }) {
|
|
9
|
-
const E = e2, { t: P } = f(), j = l(E.modelValue),
|
|
9
|
+
const E = e2, { t: P } = f(), j = V2, F = l(E.modelValue), w = l(false);
|
|
10
10
|
t(() => E.modelValue, (e3, l2) => {
|
|
11
|
-
|
|
11
|
+
F.value = e3;
|
|
12
12
|
}, { immediate: true });
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
const
|
|
13
|
+
const T = "copyBtn_" + (/* @__PURE__ */ new Date()).getTime(), x = C.get(E.listCode);
|
|
14
|
+
x && x.basicInfo && x.basicInfo.hasJoinTable && (w.value = x.basicInfo.hasJoinTable);
|
|
15
|
+
let D = x.options.backendUrl;
|
|
16
|
+
D || (D = window.$vueApp.config.globalProperties.baseURL);
|
|
17
|
+
const N = l(false);
|
|
18
|
+
N.value = b(E.column);
|
|
19
|
+
let A = E.column.valueSetOptions ? JSON.parse(E.column.valueSetOptions) : null;
|
|
20
|
+
const I = l(false);
|
|
21
|
+
let M;
|
|
22
|
+
I.value = !N.value && A && "remote" === A.filterType && A.type && "dataTable" === A.type, E.valueSetOptions, I.value, E.controlConfig;
|
|
23
|
+
let U = l(E.options);
|
|
24
|
+
N.value || $(null, true);
|
|
25
|
+
const W = l(false);
|
|
26
26
|
a(() => {
|
|
27
|
-
const e3 = new y("#" +
|
|
27
|
+
const e3 = new y("#" + T, { text: function() {
|
|
28
28
|
return function(e4) {
|
|
29
29
|
if (null != e4 && "" !== e4 && e4.length > 0) {
|
|
30
30
|
let l2 = "";
|
|
31
|
-
return "string" == typeof e4 ?
|
|
31
|
+
return "string" == typeof e4 ? U.value.length > 0 ? U.value.forEach((t2) => {
|
|
32
32
|
t2.value === e4 && (l2 = t2.label);
|
|
33
|
-
}) : l2 = e4 :
|
|
33
|
+
}) : l2 = e4 : U.value.length > 0 ? (U.value.forEach((t2) => {
|
|
34
34
|
e4.forEach((e5) => {
|
|
35
35
|
t2.value === e5 && (l2 = l2 + t2.label + ",");
|
|
36
36
|
});
|
|
37
37
|
}), l2 = l2.slice(0, l2.length - 1)) : l2 = e4.join(","), l2;
|
|
38
38
|
}
|
|
39
|
-
}(
|
|
39
|
+
}(F.value);
|
|
40
40
|
} });
|
|
41
41
|
e3.on("success", () => {
|
|
42
42
|
h({ type: "success", message: P("chatEmbed.copySuccess"), showClose: true });
|
|
@@ -44,44 +44,44 @@ const O = { style: { "padding-left": "5px" } }, V = e({ __name: "select-input",
|
|
|
44
44
|
console.error("复制失败", e4);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
function
|
|
47
|
+
function k(e3, l2) {
|
|
48
48
|
return l2 ? l2.find((l3) => l3.value === e3) : [];
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function B(e3, l2) {
|
|
51
51
|
var _a;
|
|
52
|
-
if ("select" === E.type && !
|
|
52
|
+
if ("select" === E.type && !N.value)
|
|
53
53
|
return void ((e4) => {
|
|
54
|
-
if (
|
|
54
|
+
if (F.value = e4, (A == null ? void 0 : A.type) && "dataTable" === A.type && E.valueSetOptions && E.valueSetOptions.length > 0)
|
|
55
55
|
if (null == e4 || "" === e4)
|
|
56
|
-
|
|
56
|
+
q();
|
|
57
57
|
else {
|
|
58
|
-
const l3 =
|
|
58
|
+
const l3 = k(e4, U.value);
|
|
59
59
|
l3 && E.valueSetOptions.forEach((e5) => {
|
|
60
60
|
if (e5.valueField !== E.prop) {
|
|
61
61
|
const t3 = l3[e5.columnName];
|
|
62
|
-
|
|
62
|
+
j("setCellValueWithProp", e5.valueField, t3);
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
j("update:modelValue", e4), j("setCellValue", E.prop, e4, "change");
|
|
67
67
|
})(e3);
|
|
68
|
-
|
|
68
|
+
j("extendParams", l2);
|
|
69
69
|
let t2 = false;
|
|
70
|
-
if (e3 && e3.length > 0 && "multiselect" === E.type && !
|
|
70
|
+
if (e3 && e3.length > 0 && "multiselect" === E.type && !N.value) {
|
|
71
71
|
const l3 = "saveAll";
|
|
72
72
|
if (-1 !== e3.indexOf(l3)) {
|
|
73
|
-
e3.length - 1 >=
|
|
74
|
-
-1 ===
|
|
73
|
+
e3.length - 1 >= U.value.length ? F.value = null : ((!F.value || F.value.indexOf(l3) >= 0) && (F.value = []), (_a = U.value) == null ? void 0 : _a.forEach((e4) => {
|
|
74
|
+
-1 === F.value.indexOf(e4.value) && F.value.push(e4.value);
|
|
75
75
|
})), t2 = true;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
if ("multiselect" === E.type) {
|
|
79
|
-
|
|
80
|
-
if (
|
|
81
|
-
if (
|
|
79
|
+
F.value && "number" != typeof F.value && -1 !== F.value.indexOf("saveAll") && F.value.splice(F.value.indexOf("saveAll"), 1), function() {
|
|
80
|
+
if (F.value, (A == null ? void 0 : A.type) && "dataTable" === A.type && E.valueSetOptions && E.valueSetOptions.length > 0 && !N.value)
|
|
81
|
+
if (F.value && 0 !== F.value.length) {
|
|
82
82
|
let e5 = {};
|
|
83
|
-
|
|
84
|
-
const t3 =
|
|
83
|
+
F.value.forEach((l3) => {
|
|
84
|
+
const t3 = k(l3, U.value);
|
|
85
85
|
t3 && E.valueSetOptions.forEach((l4) => {
|
|
86
86
|
if (l4.valueField !== E.prop) {
|
|
87
87
|
let a2 = e5[l4.valueField];
|
|
@@ -95,53 +95,53 @@ const O = { style: { "padding-left": "5px" } }, V = e({ __name: "select-input",
|
|
|
95
95
|
const t3 = e5[l3];
|
|
96
96
|
if (t3) {
|
|
97
97
|
const e6 = t3.join(",");
|
|
98
|
-
|
|
98
|
+
j("setCellValueWithProp", l3, e6);
|
|
99
99
|
} else
|
|
100
|
-
|
|
100
|
+
j("setCellValueWithProp", l3, null);
|
|
101
101
|
}
|
|
102
102
|
} else
|
|
103
|
-
|
|
103
|
+
q();
|
|
104
104
|
}();
|
|
105
|
-
const e4 =
|
|
106
|
-
t2 &&
|
|
105
|
+
const e4 = F.value && F.value.length > 0 ? F.value.join(",") : null;
|
|
106
|
+
t2 && j("cellEvent", "input", e4), j("update:modelValue", e4), j("setCellValue", E.prop, e4, "change");
|
|
107
107
|
} else
|
|
108
|
-
|
|
108
|
+
j("update:modelValue", e3), j("setCellValue", E.prop, e3, "change");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
t2 && (t2 === E.prop ?
|
|
110
|
+
function _({ value: e3, sourceColumnName: l2, targetColumnName: t2, options: a2, selectedItem: o2 }) {
|
|
111
|
+
t2 && (t2 === E.prop ? j("setCellValue", t2, e3, "input") : j("setCellValueWithProp", t2, e3));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function $(e3, l2) {
|
|
114
114
|
var _a;
|
|
115
|
-
if (!(
|
|
115
|
+
if (!(A == null ? void 0 : A.type) || "dataTable" !== (A == null ? void 0 : A.type))
|
|
116
116
|
return;
|
|
117
117
|
let t2 = false;
|
|
118
|
-
if (l2 || null !=
|
|
118
|
+
if (l2 || null != M && M === e3 || (M = e3, t2 = true), t2 || l2) {
|
|
119
119
|
let l3 = {};
|
|
120
|
-
Object.assign(l3,
|
|
120
|
+
Object.assign(l3, A), l3.uuid = E.prop, l3.props || (l3.props = {}), l3.props.tableName = (_a = A == null ? void 0 : A.props) == null ? void 0 : _a.tableName, l3.props.prop = E.prop;
|
|
121
121
|
const t3 = { listCode: E.listCode, entityMap: E.entity, additionalParamMap: E.additionalParamMap, dataSourceList: [l3] };
|
|
122
122
|
null != e3 && (t3.query = e3), E.parentFormData && (t3.parent = E.parentFormData);
|
|
123
123
|
const a2 = S(window.$vueApp.config.globalProperties.baseURL + "/common/common-data/find-grid-datas");
|
|
124
124
|
window.$vueApp.config.globalProperties.$http.post(a2, t3).then((e4) => {
|
|
125
125
|
if (e4 && e4.columnValueSet) {
|
|
126
126
|
const l4 = e4.columnValueSet;
|
|
127
|
-
|
|
127
|
+
U.value = l4[E.prop];
|
|
128
128
|
} else
|
|
129
|
-
|
|
129
|
+
U.value = [];
|
|
130
130
|
}).catch((e4) => {
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function q() {
|
|
135
135
|
E.valueSetOptions && E.valueSetOptions.forEach((e3) => {
|
|
136
|
-
e3.valueField !== E.prop &&
|
|
136
|
+
e3.valueField !== E.prop && j("setCellValueWithProp", e3.valueField, null);
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
return (l2, t2) => {
|
|
140
140
|
const a2 = o("CopyDocument"), f2 = o("el-icon"), b2 = o("el-option"), y2 = o("el-select"), h2 = o("el-popover"), C2 = o("dynamic-source-select");
|
|
141
|
-
return n(), u("span", null, [
|
|
142
|
-
return [p(y2, { ref: "item", modelValue:
|
|
141
|
+
return n(), u("span", null, [N.value ? "multiselect" !== e2.type && "select" !== e2.type || !N.value ? c("", true) : (n(), i(C2, { key: 1, value: F.value, "onUpdate:value": t2[7] || (t2[7] = (e3) => F.value = e3), "base-props": { multiple: "multiselect" === e2.type, disabled: e2.disabled }, column: e2.column, entity: e2.entity, "is-join-table": w.value, "list-code": e2.listCode, "list-toolbar-form-data": e2.listToolbarFormData, options: { dynamicDataSourceCode: e2.dynamicDataSourceCode, valueSetOptions: e2.valueSetOptions, isSql: e2.isSql, backendUrl: s(D), additionalParameter: e2.additionalParamMap ? JSON.stringify(e2.additionalParamMap) : null }, parent: e2.parentFormData, "table-name": e2.tableName, onBlur: t2[8] || (t2[8] = (e3) => j("cellEvent", "blur", e3)), onChange: B, onClear: t2[9] || (t2[9] = (e3) => j("cellEvent", "clear", e3)), onFocus: t2[10] || (t2[10] = (e3) => j("cellEvent", "focus", "focus1111")), onInput: t2[11] || (t2[11] = (e3) => j("cellEvent", "input", e3)), onVisibleChange: t2[12] || (t2[12] = (e3) => j("cellEvent", "visible-change", e3)), onRemoveTag: t2[13] || (t2[13] = (e3) => j("cellEvent", "remove-tag", e3)), onSetValue: _ }, null, 8, ["value", "base-props", "column", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "parent", "table-name"])) : (n(), i(h2, { key: 0, placement: "top", trigger: "hover" }, { reference: r(() => {
|
|
142
|
+
return [p(y2, { ref: "item", modelValue: F.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => F.value = e3), loading: W.value, "allow-create": !!e2.controlConfig.allowCreate, disabled: e2.disabled, "default-first-option": !!e2.controlConfig.allowCreate, filterable: !(void 0 !== e2.controlConfig.filterable && !e2.controlConfig.filterable) || !!I.value, placeholder: l2.$t("imatrixUIMessage.pleaseSelect"), title: (a3 = F.value, g(a3, U.value)), clearable: !(void 0 !== e2.controlConfig.clearable && !e2.controlConfig.clearable), "collapse-tags": "", multiple: "multiselect" === e2.type, remote: I.value, "remote-method": $, onBlur: t2[1] || (t2[1] = (e3) => j("cellEvent", "blur", e3)), onChange: B, onClear: t2[2] || (t2[2] = (e3) => j("cellEvent", "clear", e3)), onFocus: t2[3] || (t2[3] = (e3) => j("cellEvent", "focus", e3)), onInput: t2[4] || (t2[4] = (e3) => j("cellEvent", "input", e3)), onVisibleChange: t2[5] || (t2[5] = (e3) => j("cellEvent", "visible-change", e3)), onRemoveTag: t2[6] || (t2[6] = (e3) => j("cellEvent", "remove-tag", e3)) }, { default: r(() => ["multiselect" === e2.type ? (n(), i(b2, { key: 0, label: s(P)("superGrid.selectAll"), value: "saveAll" }, null, 8, ["label"])) : c("", true), (n(true), u(d, null, v(s(U), (e3) => (n(), i(b2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading", "allow-create", "disabled", "default-first-option", "filterable", "placeholder", "title", "clearable", "multiple", "remote"])];
|
|
143
143
|
var a3;
|
|
144
|
-
}), default: r(() => [m("span", O, [p(f2, { id:
|
|
144
|
+
}), default: r(() => [m("span", O, [p(f2, { id: T }, { default: r(() => [p(a2)]), _: 1 })])]), _: 1 }))]);
|
|
145
145
|
};
|
|
146
146
|
} });
|
|
147
147
|
export {
|
|
@@ -7,7 +7,7 @@ const r = i({ name: "RowDetail", components: { ElView: e }, props: { column: { t
|
|
|
7
7
|
this.$emit("show-detail", e2);
|
|
8
8
|
} } }, [["render", function(e2, i2, r2, p, u, c) {
|
|
9
9
|
const m = l("ElView"), s = l("el-icon"), d = l("el-table-column");
|
|
10
|
-
return t(), o(d, { align: "center", "class-name": r2.column.prop, fixed: "left", "header-align": "center", prop: r2.column.prop, width: 80, label: r2.column.label }, { default: n((e3) => [a(s, { onClick: (l2) => c.showDetail(e3.$index) }, { default: n(() => [a(m)]), _:
|
|
10
|
+
return t(), o(d, { align: "center", "class-name": r2.column.prop, fixed: "left", "header-align": "center", prop: r2.column.prop, width: 80, label: r2.column.label }, { default: n((e3) => [a(s, { onClick: (l2) => c.showDetail(e3.$index) }, { default: n(() => [a(m)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["class-name", "prop", "label"]);
|
|
11
11
|
}]]);
|
|
12
12
|
export {
|
|
13
13
|
r as default
|
|
@@ -109,7 +109,7 @@ const M = { components: { searchFormNumber: l, SearchConditionInput: a, SearchCo
|
|
|
109
109
|
} }, emits: ["resetForm"] }, V = { key: 0 }, N = { key: 12, style: { width: "100%" } };
|
|
110
110
|
const F = x(M, [["render", function(e2, o2, l2, t2, a2, r2) {
|
|
111
111
|
const n2 = d("CirclePlus"), i2 = d("el-icon"), s2 = d("Remove"), u2 = d("el-table-column"), m2 = d("el-option"), x2 = d("el-select"), M2 = d("el-date-picker"), F2 = d("el-time-picker"), $ = d("organization-input"), P = d("dynamic-source-select"), C = d("search-form-number"), L = d("el-switch"), S = d("el-slider"), R = d("el-rate"), k = d("el-input"), E = d("el-table");
|
|
112
|
-
return a2.formFlag ? (c(), p("div", V, [h(E, { ref: "table", data: l2.searchFormList, "row-class-name": r2.tableRowClassName, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: r2.handleCurrentChange }, { default: b(() => [h(u2, { label: e2.$t("imatrixUIPublicModel.edit"), align: "center", fixed: "left", width: "80" }, { default: b((e3) => [h(i2, { onClick: r2.add }, { default: b(() => [h(n2)]), _: 1 }, 8, ["onClick"]), h(i2, { onClick: (o3) => r2.remove(e3.$index) }, { default: b(() => [h(s2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"]), h(u2, { label: "(", prop: "leftBracket", width: "90" }, { default: b((e3) => [h(x2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (o3) => e3.row.leftBracket = o3, clearable: "", size: "default", onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [h(m2, { label: "", value: "" }), h(m2, { label: "(", value: "(" }), h(m2, { label: "((", value: "((" }), h(m2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), h(u2, { label: e2.$t("imatrixUIPublicModel.fieldName"), width: "200" }, { default: b((e3) => [h(x2, { modelValue: e3.row.prop, "onUpdate:modelValue": (o3) => e3.row.prop = o3, clearable: "", filterable: "", size: "default", onChange: (o3) => r2.changeFieldName(e3.$index), onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [(c(true), p(w, null, T(l2.searchableColumns, (e4) => (c(), f(m2, { key: e4.prop, label: e4.label, value: e4.prop }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])]), _: 1 }, 8, ["label"]), h(u2, { label: e2.$t("imatrixUIPublicModel.operator"), width: "110" }, { default: b((e3) => [h(x2, { modelValue: e3.row.operator, "onUpdate:modelValue": (o3) => e3.row.operator = o3, clearable: "", size: "default", onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [(c(true), p(w, null, T(a2.operationArr[e3.$index], (e4) => (c(), f(m2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), h(u2, { label: e2.$t("imatrixUIPublicModel.value") }, y({ _: 2 }, [e2.scope.row.prop ? { name: "default", fn: b((t3) => ["DATE" === t3.row.dataType || "date" === t3.row.componentType ? (c(), f(M2, { key: 0, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: I(t3.row.searchControlWidth), size: "default", type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "dateTimePicker" === t3.row.componentType ? (c(), f(M2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: I(t3.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "TIME" === t3.row.dataType && "timepicker" === t3.row.componentType ? (c(), f(M2, { key: 2, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: I(t3.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "timepicker" === t3.row.componentType && "TIME" !== t3.row.dataType && "DATE" !== t3.row.dataType ? (c(), f(F2, { key: 3, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, placeholder: e2.$t("imatrixUIMessage.selectTime"), size: "default", style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus", "onInput"])) : r2.componentTypeTypeIsTree(t3.row.componentType) ? (c(), f($, { key: 4, value: t3.row.value, "onUpdate:value": (e3) => t3.row.value = e3, fields: r2.getTreeFields(t3.row.orgTreeSet), models: e2.searchForm, multiple: r2.getTreeIsMultiTree(t3.row.componentType), size: e2.default, "tree-type": r2.getTreeType(t3.row.componentType), onClear: r2.clearOrganizationInputEvent, onFocus: (e3) => r2.selectRow(t3.row), onSetValue: r2.organizationInputEvent }, null, 8, ["value", "onUpdate:value", "fields", "models", "multiple", "size", "tree-type", "onClear", "onFocus", "onSetValue"])) : (t3.row.componentType && "select" === t3.row.componentType || "BOOLEAN" === t3.row.dataType) && !r2.isDynamicDataSourceSource(t3.row) ? (c(), f(x2, { key: 5, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: I(t3.row.searchControlWidth), clearable: "", size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, { default: b(() => [(c(true), p(w, null, T(t3.row.valueSet, (e3) => (c(), f(m2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : t3.row.componentType && "multiselect" === t3.row.componentType && !r2.isDynamicDataSourceSource(t3.row) ? (c(), f(x2, { key: 6, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: I(t3.row.searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, { default: b(() => [(c(true), p(w, null, T(t3.row.valueSet, (e3) => (c(), f(m2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : t3.row.componentType && ("multiselect" === t3.row.componentType || "select" === t3.row.componentType) && r2.isDynamicDataSourceSource(t3.row) ? (c(), f(P, { key: 7, "base-props": { multiple: "multiselect" === t3.row.componentType }, entity: t3.row, "is-join-table": a2.isJoinTable, "list-code": l2.code, options: r2.getDynamicDataSourceOptions(t3.row), "table-name": a2.tableName, value: t3.row.value, onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["base-props", "entity", "is-join-table", "list-code", "options", "table-name", "value", "onInput"])) : t3.row.componentType && "inputNumber" === t3.row.componentType ? (c(), f(C, { key: 8, n: e2.n, r: e2.r, size: "default", onFocus: (e3) => r2.selectRow(t3.row), onSetValue: r2.setNumberValue }, null, 8, ["n", "r", "onFocus", "onSetValue"])) : t3.row.componentType && "switch" === t3.row.componentType ? (c(), f(L, { key: 9, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : t3.row.componentType && "slider" === t3.row.componentType ? (c(), f(S, { key: 10, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : t3.row.componentType && "rate" === t3.row.componentType ? (c(), f(R, { key: 11, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : true === r2.customComponent(t3.row.prop) ? (c(), p("span", N, [(c(), f(v(t3.row.componentName), { ref: t3.row.componentName, value: t3.row.value, "onUpdate:value": (e3) => t3.row.value = e3, prop: t3.row.prop, row: t3.row, "additional-settings": a2.controlConfig, class: "customComponent", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3, t3.row.componentName) }, null, 40, ["value", "onUpdate:value", "prop", "row", "additional-settings", "onFocus", "onInput"]))])) : (c(), f(k, { key: 13, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3), onKeyup: o2[0] || (o2[0] = U((o3) => e2.submitForm("searchForm"), ["enter"])) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"]))]), key: "0" } : void 0]), 1032, ["label"]), h(u2, { label: ")", prop: "rightBracket", width: "90" }, { default: b((e3) => [h(x2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (o3) => e3.row.rightBracket = o3, clearable: "", size: "default", onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [h(m2, { label: "", value: "" }), h(m2, { label: ")", value: ")" }), h(m2, { label: "))", value: "))" }), h(m2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), h(u2, { label: e2.$t("imatrixUIPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: b((o3) => [h(x2, { modelValue: o3.row.joinSign, "onUpdate:modelValue": (e3) => o3.row.joinSign = e3, clearable: "", size: "default", onFocus: (e3) => r2.selectRow(o3.row) }, { default: b(() => [h(m2, { label: e2.$t("imatrixUIPublicModel.perhaps"), value: "or" }, null, 8, ["label"]), h(m2, { label: e2.$t("imatrixUIPublicModel.also"), value: "and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), h(u2, { label: e2.$t("imatrixUIPublicModel.whenTheVariableIsEmpty"), width: "110" }, { default: b((o3) => [h(x2, { modelValue: o3.row.variableIsNull, "onUpdate:modelValue": (e3) => o3.row.variableIsNull = e3, clearable: "", size: "default", onFocus: (e3) => r2.selectRow(o3.row) }, { default: b(() => [h(m2, { label: "Null", value: "null" }), h(m2, { label: e2.$t("imatrixUIPublicModel.ignore11"), value: "1=1" }, null, 8, ["label"]), h(m2, { label: e2.$t("imatrixUIPublicModel.nonConformity"), value: "1<>1" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "row-class-name", "onCurrentChange"])])) : g("", true);
|
|
112
|
+
return a2.formFlag ? (c(), p("div", V, [h(E, { ref: "table", data: l2.searchFormList, "row-class-name": r2.tableRowClassName, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: r2.handleCurrentChange }, { default: b(() => [h(u2, { label: e2.$t("imatrixUIPublicModel.edit"), align: "center", fixed: "left", width: "80" }, { default: b((e3) => [h(i2, { onClick: r2.add }, { default: b(() => [h(n2)]), _: 1 }, 8, ["onClick"]), h(i2, { onClick: (o3) => r2.remove(e3.$index) }, { default: b(() => [h(s2)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"]), h(u2, { label: "(", prop: "leftBracket", width: "90" }, { default: b((e3) => [h(x2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (o3) => e3.row.leftBracket = o3, clearable: "", size: "default", onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [h(m2, { label: "", value: "" }), h(m2, { label: "(", value: "(" }), h(m2, { label: "((", value: "((" }), h(m2, { label: "(((", value: "(((" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), h(u2, { label: e2.$t("imatrixUIPublicModel.fieldName"), width: "200" }, { default: b((e3) => [h(x2, { modelValue: e3.row.prop, "onUpdate:modelValue": (o3) => e3.row.prop = o3, clearable: "", filterable: "", size: "default", onChange: (o3) => r2.changeFieldName(e3.$index), onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [(c(true), p(w, null, T(l2.searchableColumns, (e4) => (c(), f(m2, { key: e4.prop, label: e4.label, value: e4.prop }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])]), _: 1 }, 8, ["label"]), h(u2, { label: e2.$t("imatrixUIPublicModel.operator"), width: "110" }, { default: b((e3) => [h(x2, { modelValue: e3.row.operator, "onUpdate:modelValue": (o3) => e3.row.operator = o3, clearable: "", size: "default", onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [(c(true), p(w, null, T(a2.operationArr[e3.$index], (e4) => (c(), f(m2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), h(u2, { label: e2.$t("imatrixUIPublicModel.value") }, y({ _: 2 }, [e2.scope.row.prop ? { name: "default", fn: b((t3) => ["DATE" === t3.row.dataType || "date" === t3.row.componentType ? (c(), f(M2, { key: 0, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: I(t3.row.searchControlWidth), size: "default", type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "dateTimePicker" === t3.row.componentType ? (c(), f(M2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: I(t3.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "TIME" === t3.row.dataType && "timepicker" === t3.row.componentType ? (c(), f(M2, { key: 2, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: I(t3.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "timepicker" === t3.row.componentType && "TIME" !== t3.row.dataType && "DATE" !== t3.row.dataType ? (c(), f(F2, { key: 3, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, placeholder: e2.$t("imatrixUIMessage.selectTime"), size: "default", style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus", "onInput"])) : r2.componentTypeTypeIsTree(t3.row.componentType) ? (c(), f($, { key: 4, value: t3.row.value, "onUpdate:value": (e3) => t3.row.value = e3, fields: r2.getTreeFields(t3.row.orgTreeSet), models: e2.searchForm, multiple: r2.getTreeIsMultiTree(t3.row.componentType), size: e2.default, "tree-type": r2.getTreeType(t3.row.componentType), onClear: r2.clearOrganizationInputEvent, onFocus: (e3) => r2.selectRow(t3.row), onSetValue: r2.organizationInputEvent }, null, 8, ["value", "onUpdate:value", "fields", "models", "multiple", "size", "tree-type", "onClear", "onFocus", "onSetValue"])) : (t3.row.componentType && "select" === t3.row.componentType || "BOOLEAN" === t3.row.dataType) && !r2.isDynamicDataSourceSource(t3.row) ? (c(), f(x2, { key: 5, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: I(t3.row.searchControlWidth), clearable: "", size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, { default: b(() => [(c(true), p(w, null, T(t3.row.valueSet, (e3) => (c(), f(m2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : t3.row.componentType && "multiselect" === t3.row.componentType && !r2.isDynamicDataSourceSource(t3.row) ? (c(), f(x2, { key: 6, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: I(t3.row.searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, { default: b(() => [(c(true), p(w, null, T(t3.row.valueSet, (e3) => (c(), f(m2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : t3.row.componentType && ("multiselect" === t3.row.componentType || "select" === t3.row.componentType) && r2.isDynamicDataSourceSource(t3.row) ? (c(), f(P, { key: 7, "base-props": { multiple: "multiselect" === t3.row.componentType }, entity: t3.row, "is-join-table": a2.isJoinTable, "list-code": l2.code, options: r2.getDynamicDataSourceOptions(t3.row), "table-name": a2.tableName, value: t3.row.value, onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["base-props", "entity", "is-join-table", "list-code", "options", "table-name", "value", "onInput"])) : t3.row.componentType && "inputNumber" === t3.row.componentType ? (c(), f(C, { key: 8, n: e2.n, r: e2.r, size: "default", onFocus: (e3) => r2.selectRow(t3.row), onSetValue: r2.setNumberValue }, null, 8, ["n", "r", "onFocus", "onSetValue"])) : t3.row.componentType && "switch" === t3.row.componentType ? (c(), f(L, { key: 9, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : t3.row.componentType && "slider" === t3.row.componentType ? (c(), f(S, { key: 10, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : t3.row.componentType && "rate" === t3.row.componentType ? (c(), f(R, { key: 11, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : true === r2.customComponent(t3.row.prop) ? (c(), p("span", N, [(c(), f(v(t3.row.componentName), { ref: t3.row.componentName, value: t3.row.value, "onUpdate:value": (e3) => t3.row.value = e3, prop: t3.row.prop, row: t3.row, "additional-settings": a2.controlConfig, class: "customComponent", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3, t3.row.componentName) }, null, 40, ["value", "onUpdate:value", "prop", "row", "additional-settings", "onFocus", "onInput"]))])) : (c(), f(k, { key: 13, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, style: I(t3.row.searchControlWidth), size: "default", onFocus: (e3) => r2.selectRow(t3.row), onInput: (e3) => r2.setValueToModelProp(t3.$index, e3), onKeyup: o2[0] || (o2[0] = U((o3) => e2.submitForm("searchForm"), ["enter"])) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"]))]), key: "0" } : void 0]), 1032, ["label"]), h(u2, { label: ")", prop: "rightBracket", width: "90" }, { default: b((e3) => [h(x2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (o3) => e3.row.rightBracket = o3, clearable: "", size: "default", onFocus: (o3) => r2.selectRow(e3.row) }, { default: b(() => [h(m2, { label: "", value: "" }), h(m2, { label: ")", value: ")" }), h(m2, { label: "))", value: "))" }), h(m2, { label: ")))", value: ")))" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), h(u2, { label: e2.$t("imatrixUIPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: b((o3) => [h(x2, { modelValue: o3.row.joinSign, "onUpdate:modelValue": (e3) => o3.row.joinSign = e3, clearable: "", size: "default", onFocus: (e3) => r2.selectRow(o3.row) }, { default: b(() => [h(m2, { label: e2.$t("imatrixUIPublicModel.perhaps"), value: "or" }, null, 8, ["label"]), h(m2, { label: e2.$t("imatrixUIPublicModel.also"), value: "and" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), h(u2, { label: e2.$t("imatrixUIPublicModel.whenTheVariableIsEmpty"), width: "110" }, { default: b((o3) => [h(x2, { modelValue: o3.row.variableIsNull, "onUpdate:modelValue": (e3) => o3.row.variableIsNull = e3, clearable: "", size: "default", onFocus: (e3) => r2.selectRow(o3.row) }, { default: b(() => [h(m2, { label: "Null", value: "null" }), h(m2, { label: e2.$t("imatrixUIPublicModel.ignore11"), value: "1=1" }, null, 8, ["label"]), h(m2, { label: e2.$t("imatrixUIPublicModel.nonConformity"), value: "1<>1" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "row-class-name", "onCurrentChange"])])) : g("", true);
|
|
113
113
|
}], ["__scopeId", "data-v-0b145154"]]);
|
|
114
114
|
export {
|
|
115
115
|
F as default
|
|
@@ -2,7 +2,7 @@ import { $emit as e } from "../../utils/gogocodeTransfer.mjs";
|
|
|
2
2
|
import o from "./eventBus.mjs";
|
|
3
3
|
import { resolveComponent as n, openBlock as i, createElementBlock as m, createVNode as u, createElementVNode as t } from "vue";
|
|
4
4
|
import l from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const s = { props: { r: { type: Number, default: null }, n: { type: Number, default: null }, itemValue: { type: Array, default: () => [0, 0] }, moduleConfig: { type: Object } }, data() {
|
|
5
|
+
const s = l({ props: { r: { type: Number, default: null }, n: { type: Number, default: null }, itemValue: { type: Array, default: () => [0, 0] }, moduleConfig: { type: Object } }, data() {
|
|
6
6
|
return { number1: 0 === this.moduleConfig.min ? 0 : this.moduleConfig.min ? this.moduleConfig.min : 0, number2: 0 === this.moduleConfig.max ? 0 : this.moduleConfig.max ? this.moduleConfig.max : 100 };
|
|
7
7
|
}, mounted() {
|
|
8
8
|
o.$on("reset", () => {
|
|
@@ -16,11 +16,10 @@ const s = { props: { r: { type: Number, default: null }, n: { type: Number, defa
|
|
|
16
16
|
e(this, "setValue", [this.number1, this.number2], this.r, this.n);
|
|
17
17
|
}, methods: { setValue() {
|
|
18
18
|
e(this, "setValue", [this.number1, this.number2], this.r, this.n);
|
|
19
|
-
} }, emits: ["setValue"] },
|
|
20
|
-
const d = l(s, [["render", function(e2, o2, t2, l2, s2, d2) {
|
|
19
|
+
} }, emits: ["setValue"] }, [["render", function(e2, o2, l2, s2, r, d) {
|
|
21
20
|
const a = n("el-input-number");
|
|
22
|
-
return i(), m("div", null, [u(a, { modelValue:
|
|
21
|
+
return i(), m("div", null, [u(a, { modelValue: r.number1, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => r.number1 = e3), min: 0 == l2.moduleConfig.min ? 0 : l2.moduleConfig.min ? l2.moduleConfig.min : -1 / 0, max: 0 == l2.moduleConfig.max ? 0 : l2.moduleConfig.max ? l2.moduleConfig.max : 1 / 0, step: l2.moduleConfig.step ? l2.moduleConfig.step : 1, precision: l2.moduleConfig.precision ? l2.moduleConfig.precision : 0, "controls-position": l2.moduleConfig.position ? l2.moduleConfig.position : "", onChange: o2[1] || (o2[1] = (e3) => d.setValue()) }, null, 8, ["modelValue", "min", "max", "step", "precision", "controls-position"]), o2[4] || (o2[4] = t("span", null, "---", -1)), u(a, { modelValue: r.number2, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => r.number2 = e3), min: 0 == l2.moduleConfig.min ? 0 : l2.moduleConfig.min ? l2.moduleConfig.min : -1 / 0, max: 0 == l2.moduleConfig.max ? 0 : l2.moduleConfig.max ? l2.moduleConfig.max : 1 / 0, step: l2.moduleConfig.step ? l2.moduleConfig.step : 1, precision: l2.moduleConfig.precision ? l2.moduleConfig.precision : 0, "controls-position": l2.moduleConfig.position ? l2.moduleConfig.position : "", onChange: o2[3] || (o2[3] = (e3) => d.setValue()) }, null, 8, ["modelValue", "min", "max", "step", "precision", "controls-position"])]);
|
|
23
22
|
}]]);
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
s as default
|
|
26
25
|
};
|
|
@@ -1107,7 +1107,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
1107
1107
|
const ve = me(be, [["render", function(e2, t2, i2, o2, a2, s2) {
|
|
1108
1108
|
var _a, _b, _c, _d;
|
|
1109
1109
|
const r2 = K("search-form"), n2 = K("el-button"), l2 = K("el-option"), h2 = K("el-select"), d2 = K("search-form-dialog"), c2 = K("MobileCard"), p2 = K("row-detail"), u2 = K("el-table"), g2 = K("el-icon-setting"), m2 = K("el-icon-refresh"), b2 = K("el-pagination"), f2 = K("columns-config"), S2 = K("header-context-menu"), C2 = K("row-form"), w2 = Q("resize");
|
|
1110
|
-
return X((Y(), Z("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: ee(a2.subTableStyle), onClick: t2[11] || (t2[11] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [(a2.isFormSubTable && a2.isMobile && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) || !a2.isFormSubTable && a2.query && "embedded" === a2.query.showType) && a2.hasLoadedColumns ? X((Y(), te(r2, { key: 0, ref: "sf", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: s2.doSearch, onReset: s2.resetSearch, onOpenFold: s2.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", i2.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => a2.isShowMobileSearch = false) }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onOpenFold"])), [[ie, !a2.isMobile || a2.isMobile && a2.isShowMobileSearch]]) : oe("", true), ae("div", fe, [ae("div", Se, [a2.isFormSubTable && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) ? (Y(), te(n2, { key: 0, size: "small", onClick: s2.showSubTableSearch }, { default: se(() => [re(ne(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : oe("", true)]), a2.isMobile && a2.orderColumns.length > 0 ? (Y(), Z("div", Ce, [le(h2, { style: { width: "120px", "padding-right": "10px" }, placeholder: e2.$t("superGrid.orderField"), clearable: "", filterable: "", modelValue: a2.orderField, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => a2.orderField = e3), onChange: s2.sortChangeColumn }, { default: se(() => [(Y(true), Z(he, null, de(a2.orderColumns, (e3) => (Y(), te(l2, { key: e3.prop, value: e3.prop, label: s2.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), le(h2, { style: { width: "120px" }, placeholder: e2.$t("superGrid.orderType"), clearable: "", modelValue: a2.orderType, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.orderType = e3), onChange: s2.sortChangeType }, { default: se(() => [le(l2, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), le(l2, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : oe("", true)]), a2.hasLoadedColumns ? (Y(), te(d2, { key: 1, ref: "sfDialog", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, onSearch: s2.doSearchDialog, onReset: s2.resetSearch, onClose: s2.closeSearchFormDialog }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onClose"])) : oe("", true), ae("div", { ref: "superGridMain", class: ce(["grid-area " + i2.code, "super-grid-main-body"]) }, [s2.isShowCard ? (Y(), te(c2, { key: 0, selection: a2.selectionTableData, columns: s2.visibleColumns, listCode: i2.code, getColumnComponentData: s2.getColumnComponentData, data: s2.tableDatas, isEnableEdit: (_a = a2.lineEdit) == null ? void 0 : _a.editable, "current-page": a2.currentPage, "onUpdate:currentPage": t2[4] || (t2[4] = (e3) => a2.currentPage = e3), "page-size": (_c = (_b = a2.pagination) == null ? void 0 : _b.pageSizes) == null ? void 0 : _c[0], "page-total": (_d = a2.pagination) == null ? void 0 : _d.total, class: "super-grid-main-card-view", onSelect: s2.selectRecord, onSelectionChange: s2.cardSelectionChangeEvent, onCurrentChange: s2.handleCurrentChange, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "isEnableEdit", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick"])) : a2.refreshGrid && a2.hasLoadedColumns && !s2.isShowCard ? (Y(), te(u2, { key: 1, ref: "superGrid", data: s2.tableDatas, "row-key": s2.getRowKeyProp, "show-summary": s2.showSummary, "summary-method": s2.getSummaries, style: ee(a2.tableStyle), stripe: a2.stripe, border: true, "default-expand-all": a2.defaultExpandAll, lazy: a2.isLazy, load: s2.loadChildren, "row-style": s2.changeRowStyle, "cell-style": s2.changeCellStyle, "header-cell-style": s2.changeHeaderStyle, "highlight-current-row": true, "span-method": s2.rowSpan, "max-height": s2.hasMaxHeight, height: s2.hasTableHeight, class: ce([a2.tableClass, "super-grid-main-table-view"]), "tree-props": s2.getTreeProps(a2.parentProp, a2.isSql, a2.isLazy, a2.dataSourceType), "scrollbar-always-on": s2.scrollbarAlwaysOn, onSortChange: s2.handleSortChange, onSelect: s2.selectRecord, onSelectAll: s2.selectAllRecord, onSelectionChange: s2.selectionChangeEvent, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent, onExpandChange: s2.expandChange, onHeaderClick: s2.headerClickEvent, onHeaderDragend: s2.changeHederWidth, onHeaderContextmenu: s2.headerContextmenu, onCellClick: s2.selectCell, onCellDblclick: e2.cellDblClick }, { default: se(() => [a2.detailColumn ? (Y(), te(p2, { key: 0, column: a2.detailColumn, "list-code": i2.code, onShowDetail: s2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : oe("", true), (Y(true), Z(he, null, de(s2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (Y(), te(pe(s2.getComponentType(e3)), ue({ ref_for: true, ref: e3.prop, key: e3.label + i3 }, t3.$bind, ge(t3.$on)), null, 16))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "load", "row-style", "cell-style", "header-cell-style", "span-method", "max-height", "height", "class", "tree-props", "scrollbar-always-on", "onSortChange", "onSelect", "onSelectAll", "onSelectionChange", "onRowClick", "onRowDblclick", "onExpandChange", "onHeaderClick", "onHeaderDragend", "onHeaderContextmenu", "onCellClick", "onCellDblclick"])) : oe("", true), i2.showPagination && !s2.isShowCard ? (Y(), Z("div", we, [ae("div", De, [a2.isFormSubTable && a2.pagination && a2.isShowPage ? (Y(), Z("div", ye)) : oe("", true), a2.basicInfo.customConfig && !a2.isFormSubTable ? (Y(), Z("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => s2.configColumns && s2.configColumns(...e3)) }, [le(g2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Te)) : oe("", true), a2.isFormSubTable ? oe("", true) : (Y(), Z("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => s2.refreshGridData && s2.refreshGridData(...e3)) }, [le(m2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Pe))]), a2.pagination && a2.isShowPage ? (Y(), te(b2, { key: 0, "current-page": a2.currentPage, "onUpdate:currentPage": t2[7] || (t2[7] = (e3) => a2.currentPage = e3), "page-size": a2.pagination.pageSize, "onUpdate:pageSize": t2[8] || (t2[8] = (e3) => a2.pagination.pageSize = e3), background: "", "page-sizes": a2.pagination.pageSizes, layout: a2.pagination.layout, total: a2.pagination.showTotal ? void 0 !== a2.pagination.total && "" !== a2.pagination.total && null !== a2.pagination.total ? a2.pagination.total : 0 : 1e11, onSizeChange: s2.handleSizeChange, onCurrentChange: s2.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : oe("", true)])) : oe("", true)], 2), a2.showColumnConfig ? (Y(), te(f2, { key: 2, "visible-columns": s2.visibleColumns, "list-code": i2.code, "is-sql": a2.isSql, onClose: t2[9] || (t2[9] = (e3) => s2.closeCustomConfig(e3)), onReset: t2[10] || (t2[10] = (e3) => s2.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : oe("", true), a2.showHeaderContextmenu ? (Y(), te(S2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: a2.rightClickColumn, onClearHeaderContextmenu: s2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : oe("", true), a2.showRowForm ? (Y(), te(C2, { key: 4, "parent-form-data": a2.parentFormData, columns: s2.visibleColumns, "row-index": a2.currentEditRowIndex, "list-code": i2.code, "drag-column-prop": a2.dragColumnProp, "is-sql": a2.isSql, "base-url": a2.baseURL, options: i2.options, "table-name": a2.tableName, "page-code": a2.pageCode, "list-toolbar-form-data": i2.listToolbarFormData, "list-name": a2.listName, "current-page": a2.currentPage, "grid-data": a2.isSubTableShowPage ? a2.subTableData : a2.gridData, "page-grid-data": a2.isSubTableShowPage ? s2.getSubTableGridData(a2.subTableData) : a2.gridData, "line-edit": a2.lineEdit, "show-page": a2.pagination && a2.isShowPage, "page-size": a2.pagination ? a2.pagination.pageSize : null, onClose: s2.closeRowForm, onRefresData: s2.refresData, onRefresPortData: s2.refresPortData, onRefresPortsData: s2.refresPortsData, onRefresMainTableFields: s2.refresMainTableFields, onOpenPage: s2.openPageDialog, onProhibitToEdit: s2.prohibitToEdit, onRefreshList: s2.refreshList }, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "show-page", "page-size", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit", "onRefreshList"])) : oe("", true)], 4)), [[w2, s2.onResize]]);
|
|
1110
|
+
return X((Y(), Z("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: ee(a2.subTableStyle), onClick: t2[11] || (t2[11] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [(a2.isFormSubTable && a2.isMobile && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) || !a2.isFormSubTable && a2.query && "embedded" === a2.query.showType) && a2.hasLoadedColumns ? X((Y(), te(r2, { key: 0, ref: "sf", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: s2.doSearch, onReset: s2.resetSearch, onOpenFold: s2.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", i2.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => a2.isShowMobileSearch = false) }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onOpenFold"])), [[ie, !a2.isMobile || a2.isMobile && a2.isShowMobileSearch]]) : oe("", true), ae("div", fe, [ae("div", Se, [a2.isFormSubTable && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) ? (Y(), te(n2, { key: 0, size: "small", onClick: s2.showSubTableSearch }, { default: se(() => [re(ne(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : oe("", true)]), a2.isMobile && a2.orderColumns.length > 0 ? (Y(), Z("div", Ce, [le(h2, { style: { width: "120px", "padding-right": "10px" }, placeholder: e2.$t("superGrid.orderField"), clearable: "", filterable: "", modelValue: a2.orderField, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => a2.orderField = e3), onChange: s2.sortChangeColumn }, { default: se(() => [(Y(true), Z(he, null, de(a2.orderColumns, (e3) => (Y(), te(l2, { key: e3.prop, value: e3.prop, label: s2.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), le(h2, { style: { width: "120px" }, placeholder: e2.$t("superGrid.orderType"), clearable: "", modelValue: a2.orderType, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.orderType = e3), onChange: s2.sortChangeType }, { default: se(() => [le(l2, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), le(l2, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : oe("", true)]), a2.hasLoadedColumns ? (Y(), te(d2, { key: 1, ref: "sfDialog", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, onSearch: s2.doSearchDialog, onReset: s2.resetSearch, onClose: s2.closeSearchFormDialog }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onClose"])) : oe("", true), ae("div", { ref: "superGridMain", class: ce(["grid-area " + i2.code, "super-grid-main-body"]) }, [s2.isShowCard ? (Y(), te(c2, { key: 0, selection: a2.selectionTableData, columns: s2.visibleColumns, listCode: i2.code, getColumnComponentData: s2.getColumnComponentData, data: s2.tableDatas, isEnableEdit: (_a = a2.lineEdit) == null ? void 0 : _a.editable, "current-page": a2.currentPage, "onUpdate:currentPage": t2[4] || (t2[4] = (e3) => a2.currentPage = e3), "page-size": (_c = (_b = a2.pagination) == null ? void 0 : _b.pageSizes) == null ? void 0 : _c[0], "page-total": (_d = a2.pagination) == null ? void 0 : _d.total, class: "super-grid-main-card-view", onSelect: s2.selectRecord, onSelectionChange: s2.cardSelectionChangeEvent, onCurrentChange: s2.handleCurrentChange, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "isEnableEdit", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick"])) : a2.refreshGrid && a2.hasLoadedColumns && !s2.isShowCard ? (Y(), te(u2, { key: 1, ref: "superGrid", data: s2.tableDatas, "row-key": s2.getRowKeyProp, "show-summary": s2.showSummary, "summary-method": s2.getSummaries, style: ee(a2.tableStyle), stripe: a2.stripe, border: true, "default-expand-all": a2.defaultExpandAll, lazy: a2.isLazy, load: s2.loadChildren, "row-style": s2.changeRowStyle, "cell-style": s2.changeCellStyle, "header-cell-style": s2.changeHeaderStyle, "highlight-current-row": true, "span-method": s2.rowSpan, "max-height": s2.hasMaxHeight, height: s2.hasTableHeight, class: ce([a2.tableClass, "super-grid-main-table-view"]), "tree-props": s2.getTreeProps(a2.parentProp, a2.isSql, a2.isLazy, a2.dataSourceType), "scrollbar-always-on": s2.scrollbarAlwaysOn, onSortChange: s2.handleSortChange, onSelect: s2.selectRecord, onSelectAll: s2.selectAllRecord, onSelectionChange: s2.selectionChangeEvent, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent, onExpandChange: s2.expandChange, onHeaderClick: s2.headerClickEvent, onHeaderDragend: s2.changeHederWidth, onHeaderContextmenu: s2.headerContextmenu, onCellClick: s2.selectCell, onCellDblclick: e2.cellDblClick }, { default: se(() => [a2.detailColumn ? (Y(), te(p2, { key: 0, column: a2.detailColumn, "list-code": i2.code, onShowDetail: s2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : oe("", true), (Y(true), Z(he, null, de(s2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (Y(), te(pe(s2.getComponentType(e3)), ue({ ref_for: true, ref: e3.prop, key: e3.label + i3 }, { ref_for: true }, t3.$bind, ge(t3.$on)), null, 16))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "load", "row-style", "cell-style", "header-cell-style", "span-method", "max-height", "height", "class", "tree-props", "scrollbar-always-on", "onSortChange", "onSelect", "onSelectAll", "onSelectionChange", "onRowClick", "onRowDblclick", "onExpandChange", "onHeaderClick", "onHeaderDragend", "onHeaderContextmenu", "onCellClick", "onCellDblclick"])) : oe("", true), i2.showPagination && !s2.isShowCard ? (Y(), Z("div", we, [ae("div", De, [a2.isFormSubTable && a2.pagination && a2.isShowPage ? (Y(), Z("div", ye)) : oe("", true), a2.basicInfo.customConfig && !a2.isFormSubTable ? (Y(), Z("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => s2.configColumns && s2.configColumns(...e3)) }, [le(g2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Te)) : oe("", true), a2.isFormSubTable ? oe("", true) : (Y(), Z("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => s2.refreshGridData && s2.refreshGridData(...e3)) }, [le(m2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Pe))]), a2.pagination && a2.isShowPage ? (Y(), te(b2, { key: 0, "current-page": a2.currentPage, "onUpdate:currentPage": t2[7] || (t2[7] = (e3) => a2.currentPage = e3), "page-size": a2.pagination.pageSize, "onUpdate:pageSize": t2[8] || (t2[8] = (e3) => a2.pagination.pageSize = e3), background: "", "page-sizes": a2.pagination.pageSizes, layout: a2.pagination.layout, total: a2.pagination.showTotal ? void 0 !== a2.pagination.total && "" !== a2.pagination.total && null !== a2.pagination.total ? a2.pagination.total : 0 : 1e11, onSizeChange: s2.handleSizeChange, onCurrentChange: s2.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : oe("", true)])) : oe("", true)], 2), a2.showColumnConfig ? (Y(), te(f2, { key: 2, "visible-columns": s2.visibleColumns, "list-code": i2.code, "is-sql": a2.isSql, onClose: t2[9] || (t2[9] = (e3) => s2.closeCustomConfig(e3)), onReset: t2[10] || (t2[10] = (e3) => s2.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : oe("", true), a2.showHeaderContextmenu ? (Y(), te(S2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: a2.rightClickColumn, onClearHeaderContextmenu: s2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : oe("", true), a2.showRowForm ? (Y(), te(C2, { key: 4, "parent-form-data": a2.parentFormData, columns: s2.visibleColumns, "row-index": a2.currentEditRowIndex, "list-code": i2.code, "drag-column-prop": a2.dragColumnProp, "is-sql": a2.isSql, "base-url": a2.baseURL, options: i2.options, "table-name": a2.tableName, "page-code": a2.pageCode, "list-toolbar-form-data": i2.listToolbarFormData, "list-name": a2.listName, "current-page": a2.currentPage, "grid-data": a2.isSubTableShowPage ? a2.subTableData : a2.gridData, "page-grid-data": a2.isSubTableShowPage ? s2.getSubTableGridData(a2.subTableData) : a2.gridData, "line-edit": a2.lineEdit, "show-page": a2.pagination && a2.isShowPage, "page-size": a2.pagination ? a2.pagination.pageSize : null, onClose: s2.closeRowForm, onRefresData: s2.refresData, onRefresPortData: s2.refresPortData, onRefresPortsData: s2.refresPortsData, onRefresMainTableFields: s2.refresMainTableFields, onOpenPage: s2.openPageDialog, onProhibitToEdit: s2.prohibitToEdit, onRefreshList: s2.refreshList }, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "show-page", "page-size", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit", "onRefreshList"])) : oe("", true)], 4)), [[w2, s2.onResize]]);
|
|
1111
1111
|
}], ["__scopeId", "data-v-664b8a45"]]);
|
|
1112
1112
|
export {
|
|
1113
1113
|
ve as default
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { $emit as e } from "../../utils/gogocodeTransfer.mjs";
|
|
2
2
|
import { resolveComponent as l, openBlock as u, createElementBlock as n, createVNode as t, createElementVNode as r } from "vue";
|
|
3
3
|
import m from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const o = { props: { r: { type: Number, default: null }, n: { type: Number, default: null } }, data: () => ({ number1: null, number2: null }), methods: { setValue() {
|
|
4
|
+
const o = m({ props: { r: { type: Number, default: null }, n: { type: Number, default: null } }, data: () => ({ number1: null, number2: null }), methods: { setValue() {
|
|
5
5
|
e(this, "setValue", [this.number1, this.number2], this.r, this.n);
|
|
6
|
-
} }, emits: ["setValue"] },
|
|
7
|
-
const s = m(o, [["render", function(e2, r2, m2, o2, s2, d) {
|
|
6
|
+
} }, emits: ["setValue"] }, [["render", function(e2, m2, o2, a, s, d) {
|
|
8
7
|
const i = l("el-input-number");
|
|
9
|
-
return u(), n("div", null, [t(i, { modelValue:
|
|
8
|
+
return u(), n("div", null, [t(i, { modelValue: s.number1, "onUpdate:modelValue": m2[0] || (m2[0] = (e3) => s.number1 = e3), onChange: m2[1] || (m2[1] = (e3) => d.setValue()) }, null, 8, ["modelValue"]), m2[4] || (m2[4] = r("span", null, "---", -1)), t(i, { modelValue: s.number2, "onUpdate:modelValue": m2[2] || (m2[2] = (e3) => s.number2 = e3), onChange: m2[3] || (m2[3] = (e3) => d.setValue()) }, null, 8, ["modelValue"])]);
|
|
10
9
|
}]]);
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
o as default
|
|
13
12
|
};
|
|
@@ -83,7 +83,7 @@ const M = y(g, [["render", function(e2, l2, o2, a2, t2, y2) {
|
|
|
83
83
|
const g2 = r("el-date-picker"), M2 = r("el-time-picker"), P = r("el-option"), F = r("el-select"), S = r("search-form-number"), x = r("el-switch"), k = r("el-slider"), V = r("el-rate"), w = r("el-input"), $ = r("el-form-item"), W = r("el-col"), O = r("el-row"), _ = r("el-button"), U = r("el-form");
|
|
84
84
|
return y2.searchableColumns.length > 0 ? (s(), n(U, { key: 0, ref: "searchForm", "label-position": o2.query.queryLabelPosition, "label-width": t2.labelWidth, model: t2.searchForm, rules: t2.rules, class: "grid-search-form", size: "default" }, { default: m(() => [(s(true), u(i, null, p(t2.rowNum, (o3) => (s(), n(O, { key: o3 }, { default: m(() => [(s(true), u(i, null, p(y2.getColumnNumPerRow(o3, y2.searchableColumns.length), (a3) => (s(), n(W, { key: a3, span: 6, style: { "margin-bottom": "10px" } }, { default: m(() => {
|
|
85
85
|
var _a;
|
|
86
|
-
return [c($, { prop: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, "label-width": ((_a = y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].label.replace(/\\n/g, "</br>")) == null ? void 0 : _a.length) > 4 ? "100px" : "80px", style: { width: "90%" } }, { label: m(() => [y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchLabel && "" !== y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchLabel ? (s(), u("span", { key: 0, innerHTML: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchLabel.replace(/\\n/g, "</br>") }, null, 8, I)) : (s(), u("span", { key: 1, innerHTML: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].label.replace(/\\n/g, "</br>") }, null, 8, T)), d(": ")]), default: m(() => ["DATE" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType || "date" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(g2, { key: 0, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "dateTimePicker" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(g2, { key: 1, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "TIME" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType && "timepicker" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(g2, { key: 2, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "timepicker" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "TIME" !== y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType && "DATE" !== y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType ? (s(), n(M2, { key: 3, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "placeholder", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "select" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType || "BOOLEAN" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType ? (s(), n(F, { key: 4, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), clearable: "", onChange: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, { default: m(() => [(s(true), u(i, null, p(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].valueSet, (e3) => (s(), n(P, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onChange"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "multiselect" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(F, { key: 5, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, { default: m(() => [(s(true), u(i, null, p(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].valueSet, (e3) => (s(), n(P, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "inputNumber" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(S, { key: 6, n: a3, r: o3, onSetValue: y2.setNumberValue }, null, 8, ["n", "r", "onSetValue"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "switch" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(x, { key: 7, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "slider" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(k, { key: 8, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "rate" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(V, { key: 9, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : true === y2.customComponent(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)]) ? (s(), u("span", v, [(s(), n(f(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentName), { ref_for: true, ref: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentName, prop: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, value: e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), class: "customComponent", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 40, ["prop", "value", "onInput"]))])) : (s(), n(w, { key: 11, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3), onKeyup: l2[0] || (l2[0] = b((e3) => y2.submitForm("searchForm"), ["enter"])) }, null, 8, ["model-value", "style", "onInput"]))]), _: 2 }, 1032, ["prop", "label-width"])];
|
|
86
|
+
return [c($, { prop: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, "label-width": ((_a = y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].label.replace(/\\n/g, "</br>")) == null ? void 0 : _a.length) > 4 ? "100px" : "80px", style: { width: "90%" } }, { label: m(() => [y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchLabel && "" !== y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchLabel ? (s(), u("span", { key: 0, innerHTML: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchLabel.replace(/\\n/g, "</br>") }, null, 8, I)) : (s(), u("span", { key: 1, innerHTML: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].label.replace(/\\n/g, "</br>") }, null, 8, T)), l2[3] || (l2[3] = d(": ", -1))]), default: m(() => ["DATE" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType || "date" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(g2, { key: 0, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "dateTimePicker" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(g2, { key: 1, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "TIME" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType && "timepicker" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(g2, { key: 2, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "timepicker" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "TIME" !== y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType && "DATE" !== y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType ? (s(), n(M2, { key: 3, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "placeholder", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "select" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType || "BOOLEAN" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].dataType ? (s(), n(F, { key: 4, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), clearable: "", onChange: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, { default: m(() => [(s(true), u(i, null, p(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].valueSet, (e3) => (s(), n(P, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onChange"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "multiselect" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(F, { key: 5, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, { default: m(() => [(s(true), u(i, null, p(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].valueSet, (e3) => (s(), n(P, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "inputNumber" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(S, { key: 6, n: a3, r: o3, onSetValue: y2.setNumberValue }, null, 8, ["n", "r", "onSetValue"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "switch" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(x, { key: 7, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "slider" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(k, { key: 8, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType && "rate" === y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentType ? (s(), n(V, { key: 9, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : true === y2.customComponent(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)]) ? (s(), u("span", v, [(s(), n(f(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentName), { ref_for: true, ref: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].componentName, prop: y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, value: e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), class: "customComponent", onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3) }, null, 40, ["prop", "value", "onInput"]))])) : (s(), n(w, { key: 11, "model-value": e2.getFormItemValue(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop), style: h(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].searchControlWidth), onInput: (e3) => y2.setValueToModelProp(y2.searchableColumns[t2.fieldNum * (o3 - 1) + (a3 - 1)].prop, e3), onKeyup: l2[0] || (l2[0] = b((e3) => y2.submitForm("searchForm"), ["enter"])) }, null, 8, ["model-value", "style", "onInput"]))]), _: 2 }, 1032, ["prop", "label-width"])];
|
|
87
87
|
}), _: 2 }, 1024))), 128))]), _: 2 }, 1024))), 128)), c(O, { class: "search-btn" }, { default: m(() => [c(_, { loading: t2.loading, size: "default", type: "primary", onClick: l2[1] || (l2[1] = (e3) => y2.submitForm("searchForm")) }, { default: m(() => [d(N(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading"]), c(_, { loading: t2.loading, size: "default", onClick: l2[2] || (l2[2] = (e3) => y2.resetForm("searchForm")) }, { default: m(() => [d(N(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading"])]), _: 1 })]), _: 1 }, 8, ["label-position", "label-width", "model", "rules"])) : C("", true);
|
|
88
88
|
}], ["__scopeId", "data-v-04817310"]]);
|
|
89
89
|
export {
|
|
@@ -218,7 +218,7 @@ const O = { name: "SuperNineGrid", components: { SearchForm: s }, props: { code:
|
|
|
218
218
|
} }, emits: ["sort-change", , "click", "afterDrag", "unselect", "select", "cancel-search", "add", ,] }, $ = { class: "nine-grid-area" }, E = ["id"], j = { style: { "margin-top": "7px" } }, L = ["onClick", "onMouseenter"], B = { class: "image", style: { padding: "15px", "box-sizing": "border-box" } }, H = { key: 0, style: { "margin-left": "2px", color: "#00b42a", "background-color": "#e8ffea", width: "68px", "text-align": "center", display: "inline-block" } }, V = ["title"], M = { class: "button-style" }, N = { style: { padding: "10px", "box-sizing": "border-box", width: "50px" } }, U = { style: { "padding-left": "15px" } }, q = ["onClick"], G = { key: 0, style: { position: "absolute", right: "5%", bottom: "9%" } };
|
|
219
219
|
const R = _(O, [["render", function(t2, e2, s2, i2, o2, n2) {
|
|
220
220
|
const a2 = d("search-form"), r2 = d("Plus"), l2 = d("el-icon"), h2 = d("el-card"), p2 = d("el-col"), _2 = d("el-tooltip"), O2 = d("SuccessFilled"), R2 = d("el-button"), A = d("el-row"), J = d("el-pagination"), W = c("permission");
|
|
221
|
-
return u(), g("div", null, [o2.hasLoadedColumns ? m((u(), f(a2, { key: 0, ref: "sf", code: s2.code, columns: o2.columns, "grid-id": o2.gridId, "init-search-props": o2.initSearchProps, pagination: o2.pagination, query: o2.query, "search-param": o2.searchFormContent, url: s2.url, onReset: n2.resetSearch, onSearch: n2.search }, null, 8, ["code", "columns", "grid-id", "init-search-props", "pagination", "query", "search-param", "url", "onReset", "onSearch"])), [[S, o2.showSearch]]) : b("", true), I("div", $, [I("div", { id: o2.gridId, style: y("height:" + o2.height + "px;overflow-y: auto;overflow-x: hidden;") }, [C(A, { gutter: 24 }, { default: v(() => [o2.isHasCreate ? m((u(), f(p2, { key: 0, id: "_addCardId_", span: o2.colSpan }, { default: v(() => [C(h2, { "body-style": { padding: "0px" }, style: { "border-radius": "4px", background: "#ffffff", border: "1px solid #e5e8ef" } }, { default: v(() => [I("div", { class: "add-screen", onClick: e2[0] || (e2[0] = (...t3) => n2.add && n2.add(...t3)) }, [C(l2, null, { default: v(() => [C(r2)]), _: 1 }), I("span", j, w(t2.$t("superNineGrid.add")), 1)])]), _: 1 })]), _: 1 }, 8, ["span"])), [[W, o2.createPermission]]) : b("", true), (u(true), g(P, null, D(o2.gridData, (s3, i3) => (u(), f(p2, { key: s3.id, offset: 1.5, span: o2.colSpan }, { default: v(() => [C(h2, { "body-style": { padding: "0px" }, style: y({ border: o2.selectionIds.indexOf(s3.id) > -1 ? "1px solid #005EBA" : "", position: "relative" }), shadow: "hover" }, { default: v(() => [I("div", { style: { height: "160px" }, onClick: (t3) => n2.clickContent(s3), onMouseenter: (t3) => n2.enter(i3), onMouseleave: e2[1] || (e2[1] = (t3) => n2.leave()) }, [I("div", B, [I("div", null, [C(_2, { content: o2.props && o2.props.content ? n2.getPropValue("content", s3) + "(" + s3.code + ")" : o2.props && o2.props.title ? n2.getPropValue("title", s3) + "(" + s3.code + ")" : "", effect: "dark", placement: "top-start" }, { default: v(() => [o2.props && o2.props.content ? (u(), g("div", { key: 0, style: y("display: inline-block;width:" + o2.titleWidth), class: "ellipsis cell--span" }, w(n2.getPropValue("content", s3) + "(" + s3.code + ")"), 5)) : o2.props && o2.props.title ? (u(), g("div", { key: 1, style: y("display: inline-block;width:" + o2.titleWidth), class: "ellipsis cell--span" }, w(n2.getPropValue("title", s3) + "(" + s3.code + ")"), 5)) : b("", true)]), _: 2 }, 1032, ["content"]), n2.showEnableButton(s3) ? (u(), g("div", H, [C(l2, null, { default: v(() => [C(O2)]), _: 1 }), I("span", { title: n2.getPropValue("subTitle", s3), style: { "margin-left": "4px" } }, w(n2.getPropValue("subTitle", s3)), 9, V)])) : b("", true)]), I("div", M, [I("div", N, w(t2.$t("imatrixUIPublicModel.edit")), 1), I("div", U, [(u(true), g(P, null, D(o2.operations, (t3) => (u(), g(P, null, [n2.isShowButton(s3, t3) ? (u(), g(P, { key: 0 }, [t3.icon ? m((u(), f(_2, { key: t3.name, content: t3.name, class: "item", effect: "dark", placement: "top", style: { "background-color": "red" } }, { default: v(() => [C(l2, { class: x(t3.icon + " icons"), onClick: k((e3) => n2.buttonClick(t3.event, s3), ["stop"]) }, { default: v(() => [(u(), f(z(t3.icon)))]), _: 2 }, 1032, ["class", "onClick"])]), _: 2 }, 1032, ["content"])), [[W, t3.permission ? t3.permission : "true"]]) : m((u(), g("em", { key: t3.name, class: x(t3.name + " icons"), onClick: k((e3) => n2.buttonClick(t3.event, s3), ["stop"]) }, [F(w(t3.name), 1)], 10, q)), [[W, t3.permission ? t3.permission : "true"]])], 64)) : b("", true)], 64))), 256)), T(t2.$slots, o2.slotBefore, { params: s3 }, void 0, true)])]), o2.isShowBottom ? (u(), g("div", G, [T(t2.$slots, o2.slotState, { params: s3 }, void 0, true), o2.isShowEnableState ? (u(), g(P, { key: 0 }, [n2.showEnableButton(s3) ? (u(), f(R2, { key: 0, class: "button--default", size: "default", onClick: k((t3) => n2.changeState(s3), ["stop"]) }, { default: v(() => [F(w(t2.$t("imatrixUIPublicModel.forbidden")), 1)]), _:
|
|
221
|
+
return u(), g("div", null, [o2.hasLoadedColumns ? m((u(), f(a2, { key: 0, ref: "sf", code: s2.code, columns: o2.columns, "grid-id": o2.gridId, "init-search-props": o2.initSearchProps, pagination: o2.pagination, query: o2.query, "search-param": o2.searchFormContent, url: s2.url, onReset: n2.resetSearch, onSearch: n2.search }, null, 8, ["code", "columns", "grid-id", "init-search-props", "pagination", "query", "search-param", "url", "onReset", "onSearch"])), [[S, o2.showSearch]]) : b("", true), I("div", $, [I("div", { id: o2.gridId, style: y("height:" + o2.height + "px;overflow-y: auto;overflow-x: hidden;") }, [C(A, { gutter: 24 }, { default: v(() => [o2.isHasCreate ? m((u(), f(p2, { key: 0, id: "_addCardId_", span: o2.colSpan }, { default: v(() => [C(h2, { "body-style": { padding: "0px" }, style: { "border-radius": "4px", background: "#ffffff", border: "1px solid #e5e8ef" } }, { default: v(() => [I("div", { class: "add-screen", onClick: e2[0] || (e2[0] = (...t3) => n2.add && n2.add(...t3)) }, [C(l2, null, { default: v(() => [C(r2)]), _: 1 }), I("span", j, w(t2.$t("superNineGrid.add")), 1)])]), _: 1 })]), _: 1 }, 8, ["span"])), [[W, o2.createPermission]]) : b("", true), (u(true), g(P, null, D(o2.gridData, (s3, i3) => (u(), f(p2, { key: s3.id, offset: 1.5, span: o2.colSpan }, { default: v(() => [C(h2, { "body-style": { padding: "0px" }, style: y({ border: o2.selectionIds.indexOf(s3.id) > -1 ? "1px solid #005EBA" : "", position: "relative" }), shadow: "hover" }, { default: v(() => [I("div", { style: { height: "160px" }, onClick: (t3) => n2.clickContent(s3), onMouseenter: (t3) => n2.enter(i3), onMouseleave: e2[1] || (e2[1] = (t3) => n2.leave()) }, [I("div", B, [I("div", null, [C(_2, { content: o2.props && o2.props.content ? n2.getPropValue("content", s3) + "(" + s3.code + ")" : o2.props && o2.props.title ? n2.getPropValue("title", s3) + "(" + s3.code + ")" : "", effect: "dark", placement: "top-start" }, { default: v(() => [o2.props && o2.props.content ? (u(), g("div", { key: 0, style: y("display: inline-block;width:" + o2.titleWidth), class: "ellipsis cell--span" }, w(n2.getPropValue("content", s3) + "(" + s3.code + ")"), 5)) : o2.props && o2.props.title ? (u(), g("div", { key: 1, style: y("display: inline-block;width:" + o2.titleWidth), class: "ellipsis cell--span" }, w(n2.getPropValue("title", s3) + "(" + s3.code + ")"), 5)) : b("", true)]), _: 2 }, 1032, ["content"]), n2.showEnableButton(s3) ? (u(), g("div", H, [C(l2, null, { default: v(() => [C(O2)]), _: 1 }), I("span", { title: n2.getPropValue("subTitle", s3), style: { "margin-left": "4px" } }, w(n2.getPropValue("subTitle", s3)), 9, V)])) : b("", true)]), I("div", M, [I("div", N, w(t2.$t("imatrixUIPublicModel.edit")), 1), I("div", U, [(u(true), g(P, null, D(o2.operations, (t3) => (u(), g(P, null, [n2.isShowButton(s3, t3) ? (u(), g(P, { key: 0 }, [t3.icon ? m((u(), f(_2, { key: t3.name, content: t3.name, class: "item", effect: "dark", placement: "top", style: { "background-color": "red" } }, { default: v(() => [C(l2, { class: x(t3.icon + " icons"), onClick: k((e3) => n2.buttonClick(t3.event, s3), ["stop"]) }, { default: v(() => [(u(), f(z(t3.icon)))]), _: 2 }, 1032, ["class", "onClick"])]), _: 2 }, 1032, ["content"])), [[W, t3.permission ? t3.permission : "true"]]) : m((u(), g("em", { key: t3.name, class: x(t3.name + " icons"), onClick: k((e3) => n2.buttonClick(t3.event, s3), ["stop"]) }, [F(w(t3.name), 1)], 10, q)), [[W, t3.permission ? t3.permission : "true"]])], 64)) : b("", true)], 64))), 256)), T(t2.$slots, o2.slotBefore, { params: s3 }, void 0, true)])]), o2.isShowBottom ? (u(), g("div", G, [T(t2.$slots, o2.slotState, { params: s3 }, void 0, true), o2.isShowEnableState ? (u(), g(P, { key: 0 }, [n2.showEnableButton(s3) ? (u(), f(R2, { key: 0, class: "button--default", size: "default", onClick: k((t3) => n2.changeState(s3), ["stop"]) }, { default: v(() => [F(w(t2.$t("imatrixUIPublicModel.forbidden")), 1)]), _: 1 }, 8, ["onClick"])) : (u(), f(R2, { key: 1, size: "default", type: "primary", onClick: k((t3) => n2.changeState(s3), ["stop"]) }, { default: v(() => [F(w(t2.$t("imatrixUIPublicModel.startUsing")), 1)]), _: 1 }, 8, ["onClick"]))], 64)) : b("", true)])) : b("", true)])], 40, L)]), _: 2 }, 1032, ["style"])]), _: 2 }, 1032, ["span"]))), 128))]), _: 3 })], 12, E), o2.pagination ? (u(), f(J, { key: 0, background: "", "current-page": o2.currentPage, "onUpdate:currentPage": e2[2] || (e2[2] = (t3) => o2.currentPage = t3), "page-size": o2.pagination.pageSize, "onUpdate:pageSize": e2[3] || (e2[3] = (t3) => o2.pagination.pageSize = t3), layout: o2.pagination.layout, "page-sizes": o2.pagination.pageSizes, total: void 0 !== o2.pagination.total && "" !== o2.pagination.total && null !== o2.pagination.total ? o2.pagination.total : 0, onSizeChange: n2.handleSizeChange, onCurrentChange: n2.handleCurrentChange }, null, 8, ["current-page", "page-size", "layout", "page-sizes", "total", "onSizeChange", "onCurrentChange"])) : b("", true)])]);
|
|
222
222
|
}], ["__scopeId", "data-v-80f6a26f"]]);
|
|
223
223
|
export {
|
|
224
224
|
R as default
|