agilebuilder-ui 1.1.65-tmp28 → 1.1.65-tmp29
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 +14 -12
- package/dist/style.css +43 -43
- package/es/style.css +593 -593
- package/es/super-grid/src/apis.mjs +8 -6
- package/es/super-grid/src/custom-formatter.mjs +1 -1
- package/es/super-grid/src/dynamic-input.vue.mjs +5 -5
- package/es/super-grid/src/group-column.vue.mjs +5 -5
- package/es/super-grid/src/normal-column-content.vue.mjs +20 -20
- package/es/super-grid/src/normal-column.vue.mjs +21 -21
- package/es/super-grid/src/super-grid.vue.mjs +2 -2
- package/lib/style.css +595 -595
- package/lib/super-grid/src/apis.cjs +2 -0
- package/lib/super-grid/src/custom-formatter.cjs +1 -1
- package/lib/super-grid/src/dynamic-input.vue.cjs +2 -2
- package/lib/super-grid/src/group-column.vue.cjs +5 -5
- package/lib/super-grid/src/normal-column-content.vue.cjs +4 -4
- package/lib/super-grid/src/normal-column.vue.cjs +5 -5
- package/lib/super-grid/src/super-grid.vue.cjs +2 -2
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import { isEditOptionFunction as a, isLastEditRowSave as i, parseSubTableActionC
|
|
|
4
4
|
import g from "./formValidatorUtil.mjs";
|
|
5
5
|
import "vue";
|
|
6
6
|
import { setEntityFieldValue as p, getI18n as u, getEntityFieldValue as c, getPropValueNew as h, getPropValue as b } from "../../src/utils/util.mjs";
|
|
7
|
-
import
|
|
8
|
-
import { isPromise as
|
|
7
|
+
import f from "./eventBus.mjs";
|
|
8
|
+
import { isPromise as w, isMobileBrowser as m } from "../../src/utils/common-util.mjs";
|
|
9
9
|
import { updateWithPageValue as S } from "../../src/utils/jump-page-utils.mjs";
|
|
10
10
|
import { getGuId as D } from "../../src/utils/guid.mjs";
|
|
11
11
|
import { ElMessageBox as v } from "element-plus";
|
|
@@ -56,7 +56,7 @@ const C = { toolbarRefresh(e2, t2, a2, i2) {
|
|
|
56
56
|
void 0 !== h2.isSubTableShowPage && true === h2.isSubTableShowPage && (t4 = h2.subTableData);
|
|
57
57
|
const a2 = t4.filter((e2) => void 0 !== e2.$editing && true === e2.$editing);
|
|
58
58
|
a2 && a2.length > 0 && a2.forEach((t5) => {
|
|
59
|
-
p(t5, "$editing", false), e(
|
|
59
|
+
p(t5, "$editing", false), e(f, "un-edit", { row: t5 });
|
|
60
60
|
}), h2.isEditRow = false;
|
|
61
61
|
} else {
|
|
62
62
|
if (!i(n2) || void 0 !== h2.isCreateRow && true === h2.isCreateRow)
|
|
@@ -170,7 +170,7 @@ const C = { toolbarRefresh(e2, t2, a2, i2) {
|
|
|
170
170
|
const a2 = d2.isSubTableShowPage, i2 = d2.pagination && d2.pagination.pageSize;
|
|
171
171
|
t2 = d2.options.lineEditOptions.beforeEdit.call(this, { gridData: a2 ? d2.subTableData : d2.gridData, listCode: o2, entity: d2.gridData[e2], row: d2.gridData[e2], rowIndex: e2, columns: d2.columns, isMobile: false, pageGridData: a2 ? d2.gridData : null, pageSize: i2, additionalParamMap: l(d2), pageContext: d2.pageContext, configureObj: d2.configureObj });
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
w(t2) ? t2.then((t3) => {
|
|
174
174
|
void 0 !== t3 && true !== t3 || this.doEditRow(d2, e2);
|
|
175
175
|
}) : void 0 !== t2 && true !== t2 || this.doEditRow(d2, e2);
|
|
176
176
|
}
|
|
@@ -211,7 +211,7 @@ const C = { toolbarRefresh(e2, t2, a2, i2) {
|
|
|
211
211
|
if (true === c2 && (h2 = g.validator(t2, s2, o2)), true === h2) {
|
|
212
212
|
let i2 = true;
|
|
213
213
|
if (a("beforeSave", s2) && (i2 = p2.pageContext ? p2.options.lineEditOptions.beforeSave.call(this, { row: t2, columns: p2.columns, additionalParamMap: p2.additionalParamMap, pageContext: p2.pageContext, configureObj: p2.configureObj }) : p2.options.lineEditOptions.beforeSave.call(this, t2, p2.columns, p2.additionalParamMap)), void 0 === i2 || true === i2) {
|
|
214
|
-
e(
|
|
214
|
+
e(f, "un-edit", { row: t2 });
|
|
215
215
|
const i3 = l(p2);
|
|
216
216
|
let g2;
|
|
217
217
|
if (a("saveRow", s2) && (g2 = p2.pageContext ? p2.options.lineEditOptions.saveRow.call(this, { row: t2, columns: p2.columns, dataTypeMap: p2.$dataTypeMap, dynamicColumnInfo: p2.dynamicColumnInfo, additionalParamMap: i3, mainDefaultValueColumns: p2.mainDefaultValueColumns, pageContext: p2.pageContext, configureObj: p2.configureObj }) : p2.options.lineEditOptions.saveRow.call(this, t2, p2.columns, p2.$dataTypeMap, p2.dynamicColumnInfo, i3, p2.mainDefaultValueColumns)), !g2 && p2.lineEdit && p2.lineEdit.urlToSaveRow) {
|
|
@@ -397,7 +397,7 @@ const C = { toolbarRefresh(e2, t2, a2, i2) {
|
|
|
397
397
|
for (let a3 = 0; a3 < t2.length; a3++) {
|
|
398
398
|
const i3 = t2[a3];
|
|
399
399
|
if (void 0 !== i3.$editing && true === i3.$editing) {
|
|
400
|
-
p(i3, "$editing", false), e(
|
|
400
|
+
p(i3, "$editing", false), e(f, "un-edit", { row: i3 });
|
|
401
401
|
break;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -477,6 +477,8 @@ const C = { toolbarRefresh(e2, t2, a2, i2) {
|
|
|
477
477
|
}, wfSubTableDeleteRowConditionParse: (e2, t2, a2) => {
|
|
478
478
|
var _a;
|
|
479
479
|
return false !== o(e2, t2, a2, (_a = e2.options.actionPermission) == null ? void 0 : _a.deleteCondition) || (window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.rowCanntDeleteTip"), type: "warning" }), false);
|
|
480
|
+
}, getSelections() {
|
|
481
|
+
this.$refs && this.$refs.superGrid && this.$refs.superGrid.getSelectionRows();
|
|
480
482
|
} }, R = { data: () => ({ toolbarFieldParam: null, showSearch: false, isMobile: m(), baseURL: "", currentPage: 1, pageSize: 10, code: "", pageCode: "", jumpPageSetting: null, isShowPageDialog: false, gridData: [], subTableData: [], searchForm: [], options: {}, lineEdit: null, loaded: false, configureObj: {}, additionalParamMap: {}, basicInfo: {}, dynamicColumnInfo: {}, $dataTypeMap: {}, mainDefaultValueColumns: [], dynamicServiceName: "", isHasDynamic: false, isMulitiSelect: false, sql: false, restoreCurrentRowTimer: null }), methods: { ...C } };
|
|
481
483
|
export {
|
|
482
484
|
R as apisMixin,
|
|
@@ -9,7 +9,7 @@ const s = { customFormatValue(e2, o2, a2, i2) {
|
|
|
9
9
|
let r2 = e2[o2];
|
|
10
10
|
this.isObjectProp(o2) && (r2 = this.objectPropOriginalValue(e2, o2));
|
|
11
11
|
const n2 = t(this.column, r2), l2 = a2.call(this, r2, n2, e2, this.column, i2);
|
|
12
|
-
return void 0 !== l2 &&
|
|
12
|
+
return void 0 !== l2 && l2;
|
|
13
13
|
}
|
|
14
14
|
return false;
|
|
15
15
|
}, isObjectProp: (t2) => !!(t2 && t2.indexOf(".") > 0), objectPropOriginalValue(t2, e2) {
|
|
@@ -12,9 +12,9 @@ import { analysisScanValue as T, setScanAnalysisValue as V } from "./scan-util.m
|
|
|
12
12
|
import N from "./custom-formatter.mjs";
|
|
13
13
|
import D from "./components/grid-radio-input.vue.mjs";
|
|
14
14
|
import E from "./components/select-input.vue.mjs";
|
|
15
|
-
import { resolveComponent as x, openBlock as P, createElementBlock as I, normalizeClass as
|
|
15
|
+
import { resolveComponent as x, openBlock as P, createElementBlock as I, normalizeClass as O, createBlock as F, resolveDynamicComponent as k, createSlots as M, withCtx as j, createCommentVNode as U, toDisplayString as $, createVNode as A, createTextVNode as L } from "vue";
|
|
16
16
|
import q from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
|
-
const B = { name: "DynamicInput", components: { dynamicSourceSelect: p, ViewImageDialog: v, GridRadioInput: D, SelectInput: E }, props: { value: { type: [String, Boolean, Number, Date, Array], default: null }, type: { type: String, default: "input" }, position: { type: Object, default: null }, lineEdit: { type: Object, default: null }, options: { type: Array, default: null }, column: { type: Object, default: null }, row: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null }, rowIndex: { type: Number, default: -1 }, disabled: { type: Boolean, default: false }, gridOptions: { type: Object, default: null } }, data() {
|
|
17
|
+
const B = { name: "DynamicInput", components: { dynamicSourceSelect: p, ViewImageDialog: v, GridRadioInput: D, SelectInput: E }, props: { value: { type: [String, Boolean, Number, Date, Array], default: null }, type: { type: String, default: "input" }, position: { type: Object, default: null }, lineEdit: { type: Object, default: null }, options: { type: Array, default: null }, column: { type: Object, default: null }, row: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null }, rowIndex: { type: Number, default: -1 }, disabled: { type: Boolean, default: false }, gridOptions: { type: Object, default: null }, gridRef: { type: Object, default: null } }, data() {
|
|
18
18
|
let a2 = this.value;
|
|
19
19
|
this.type && "select" === this.type && "TEXT" !== this.column.dataType && (a2 = this.value && null !== this.value && "string" != typeof this.value ? this.value + "" : this.value, b(this, "update:value", a2));
|
|
20
20
|
const o2 = this.getDefaultValue(a2);
|
|
@@ -33,11 +33,11 @@ const B = { name: "DynamicInput", components: { dynamicSourceSelect: p, ViewImag
|
|
|
33
33
|
let V2, N2 = false, D2 = {};
|
|
34
34
|
this.column.controlConfig && (D2 = JSON.parse(this.column.controlConfig)), D2.scanEnable && (N2 = true);
|
|
35
35
|
V2 = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
36
|
-
const E2 = !!C(), x2 = !(!S2 || !V2 || "app" !== V2), P2 = x2 || E2 || !(!S2 || !N2 || "https:" !== window.location.protocol), I2 = r2.colConfigureMap ? r2.colConfigureMap[this.column.prop] : null,
|
|
36
|
+
const E2 = !!C(), x2 = !(!S2 || !V2 || "app" !== V2), P2 = x2 || E2 || !(!S2 || !N2 || "https:" !== window.location.protocol), I2 = r2.colConfigureMap ? r2.colConfigureMap[this.column.prop] : null, O2 = I2 && I2.runtime ? I2.runtime : {}, F2 = O2.props ? O2.props : {};
|
|
37
37
|
let k2;
|
|
38
38
|
r2 && r2.basicInfo && r2.basicInfo.systemCode && (k2 = r2.basicInfo.systemCode);
|
|
39
39
|
const M2 = "copyBtn_" + (/* @__PURE__ */ new Date()).getTime();
|
|
40
|
-
return { deptManTree: false, isMultiTree: false, isCheckStrictly: false, deptTree: false, wgManTree: false, wgTree: false, newValue: null, componentName: "", annexUploadFlag: false, defaultAction: n2, fileMultiple: false, fileList: [], lastServerName: "", fileSetObj: null, showSingleImgFlag: false, singleImgSrc: "", fields: null, innerValue: a2, dynamicSourceSelectOptions: {}, valueSetOptions: null, dynamicDataSourceCode: null, tableName: u2, departmentInfo: null, parentFormData: p2, headers: m2, dataSourceType: d2, inputNumberSet: {}, fileInfo: { showName: null, serverPath: null }, gridData: f2 ? h2 : c2, pageGridData: f2 ? c2 : null, additionalParamMap: y2, controlConfig: l(this.column), pickerOptions: { disabledDate: (e2) => this.stateForbiddenTime && this.endForbiddenTime ? e2.getTime() < this.stateForbiddenTime || e2.getTime() > this.endForbiddenTime : this.stateForbiddenTime && !this.endForbiddenTime ? e2.getTime() < this.stateForbiddenTime : !(this.stateForbiddenTime || !this.endForbiddenTime) && e2.getTime() > this.endForbiddenTime }, stateForbiddenTime: null, endForbiddenTime: null, pageContext: v2, isMobile: S2, componentId: T2, scanEnable: N2, userAgent: V2, isApk: x2, isDingTalk: E2, isShowBrowserScan: false, isShowScanIcon: P2, colConfigure: I2, designProperty:
|
|
40
|
+
return { deptManTree: false, isMultiTree: false, isCheckStrictly: false, deptTree: false, wgManTree: false, wgTree: false, newValue: null, componentName: "", annexUploadFlag: false, defaultAction: n2, fileMultiple: false, fileList: [], lastServerName: "", fileSetObj: null, showSingleImgFlag: false, singleImgSrc: "", fields: null, innerValue: a2, dynamicSourceSelectOptions: {}, valueSetOptions: null, dynamicDataSourceCode: null, tableName: u2, departmentInfo: null, parentFormData: p2, headers: m2, dataSourceType: d2, inputNumberSet: {}, fileInfo: { showName: null, serverPath: null }, gridData: f2 ? h2 : c2, pageGridData: f2 ? c2 : null, additionalParamMap: y2, controlConfig: l(this.column), pickerOptions: { disabledDate: (e2) => this.stateForbiddenTime && this.endForbiddenTime ? e2.getTime() < this.stateForbiddenTime || e2.getTime() > this.endForbiddenTime : this.stateForbiddenTime && !this.endForbiddenTime ? e2.getTime() < this.stateForbiddenTime : !(this.stateForbiddenTime || !this.endForbiddenTime) && e2.getTime() > this.endForbiddenTime }, stateForbiddenTime: null, endForbiddenTime: null, pageContext: v2, isMobile: S2, componentId: T2, scanEnable: N2, userAgent: V2, isApk: x2, isDingTalk: E2, isShowBrowserScan: false, isShowScanIcon: P2, colConfigure: I2, designProperty: F2, myCustomParams: {}, systemCode: k2, isFormSubTable: false, copyBtnId: M2 };
|
|
41
41
|
}, computed: {}, watch: { value: { handler(t2, i2) {
|
|
42
42
|
if (this.type && "multiselect" === this.type) {
|
|
43
43
|
const e2 = this.value && null !== this.value && "string" == typeof this.value ? this.value.split(",") : this.value;
|
|
@@ -475,7 +475,7 @@ const B = { name: "DynamicInput", components: { dynamicSourceSelect: p, ViewImag
|
|
|
475
475
|
const _ = q(B, [["render", function(e2, t2, i2, l2, a2, o2) {
|
|
476
476
|
var _a;
|
|
477
477
|
const s2 = x("el-date-picker"), n2 = x("el-time-picker"), r2 = x("el-input"), u2 = x("SuperIcon"), p2 = x("fs-upload-list"), m2 = x("multipart-upload"), d2 = x("GridRadioInput"), c2 = x("SelectInput"), h2 = x("el-input-number"), f2 = x("el-switch"), g2 = x("el-slider"), y2 = x("el-rate"), v2 = x("organization-input"), b2 = x("el-button"), S2 = x("el-upload"), w2 = x("el-dialog"), C2 = x("view-image-dialog"), T2 = x("scan-code-input-browser");
|
|
478
|
-
return i2.type && i2.type.indexOf("custom:") >= 0 && "" != a2.componentName ? (P(), I("div", { key: 0, class: F(!this.isFormSubTable && i2.row.validateErrorField && i2.row.validateErrorField === i2.column.prop ? "required_bg" : "") }, [(P(), O(k(a2.componentName), { ref: "customItem", disabled: i2.disabled, entity: i2.row, "grid-data": a2.gridData, "page-grid-data": a2.pageGridData, "additional-settings": a2.controlConfig, parent: a2.parentFormData, prop: i2.column.prop, "custom-params": a2.myCustomParams, row: i2.row, "row-index": i2.position ? i2.position.row : null, "select-options": i2.options, value: a2.innerValue, "additional-param-map": a2.additionalParamMap, listCode: i2.listCode, "component-id": a2.componentId, "page-context": a2.pageContext, onChange: t2[0] || (t2[0] = (e3) => o2.cellEvent("change", e3)), onInput: t2[1] || (t2[1] = (e3) => o2.cellEvent("input", e3)) }, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "custom-params", "row", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id", "page-context"]))], 2)) : (P(), I("div", { key: 1, class: F(!this.isFormSubTable && i2.row.validateErrorField && i2.row.validateErrorField === i2.column.prop ? "required_bg" : "") }, ["year" === i2.type || "month" === i2.type || "week" === i2.type ? (P(), O(s2, { key: 0, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), type: i2.type, "value-format": o2.isValueFormat(), style: { width: "100%" }, onBlur: t2[3] || (t2[3] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[4] || (t2[4] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[5] || (t2[5] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[6] || (t2[6] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "type", "value-format"])) : "yearRange" === i2.type ? (P(), O(s2, { key: 1, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, placeholder: e2.$t("imatrixUIMessage.selectYear"), style: { width: "100%" }, type: "year", "value-format": "YYYY", onBlur: t2[8] || (t2[8] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[9] || (t2[9] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[10] || (t2[10] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[11] || (t2[11] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "placeholder"])) : "dateTimePicker" === i2.type ? (P(), O(s2, { key: 2, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[13] || (t2[13] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[14] || (t2[14] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[15] || (t2[15] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[16] || (t2[16] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "date" === i2.type ? (P(), O(s2, { key: 3, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), "picker-options": a2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[18] || (t2[18] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[19] || (t2[19] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[20] || (t2[20] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[21] || (t2[21] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "timePicker" === i2.type || "input" === i2.type && "TIME" === i2.column.dataType ? (P(), O(n2, { key: 4, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => a2.innerValue = e3), disabled: i2.disabled, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.pleaseEnterATimePoint"), "value-format": o2.isValueFormat(), style: { width: "100%" }, onBlur: t2[23] || (t2[23] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[24] || (t2[24] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[25] || (t2[25] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[26] || (t2[26] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "time" === i2.type ? (P(), O(s2, { key: 5, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[28] || (t2[28] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[29] || (t2[29] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[30] || (t2[30] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[31] || (t2[31] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "DATE" === i2.column.dataType ? (P(), O(s2, { key: 6, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), "picker-options": a2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[33] || (t2[33] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[34] || (t2[34] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[35] || (t2[35] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[36] || (t2[36] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "input" !== i2.type || "INTEGER" !== i2.column.dataType && "LONG" !== i2.column.dataType ? "input" === i2.type ? (P(), O(r2, { key: 8, ref: "item", disabled: i2.disabled, maxlength: a2.controlConfig && a2.controlConfig.maxlength ? a2.controlConfig.maxlength : "", minlength: a2.controlConfig && a2.controlConfig.minlength ? a2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: a2.innerValue, clearable: "", modelValue: a2.innerValue, "onUpdate:modelValue": t2[48] || (t2[48] = (e3) => a2.innerValue = e3), onBlur: t2[49] || (t2[49] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[50] || (t2[50] = (e3) => o2.cellEvent("change", e3)), onClear: t2[51] || (t2[51] = (e3) => o2.cellEvent("clear", e3)), onFocus: t2[52] || (t2[52] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[53] || (t2[53] = (e3) => o2.cellEvent("input", e3, true)) }, M({ _: 2 }, ["outer" != a2.designProperty.iconPosition && (a2.designProperty.preIconType && a2.designProperty.preIconValue || a2.designProperty.preText) ? { name: "prefix", fn: j(() => [a2.designProperty.preIconType && a2.designProperty.preIconValue ? (P(), O(u2, { key: 0, iconType: a2.designProperty.preIconType, iconValue: a2.designProperty.preIconValue, onClick: t2[43] || (t2[43] = (e3) => o2.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.preText ? (P(), I("span", J, $(e2.$t(a2.designProperty.preText)), 1)) : U("", true)]), key: "0" } : void 0, "outer" == a2.designProperty.iconPosition && (a2.designProperty.preIconType && a2.designProperty.preIconValue || a2.designProperty.preText) ? { name: "prepend", fn: j(() => [a2.designProperty.preIconType && a2.designProperty.preIconValue ? (P(), O(u2, { key: 0, iconType: a2.designProperty.preIconType, iconValue: a2.designProperty.preIconValue, onClick: t2[44] || (t2[44] = (e3) => o2.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.preText ? (P(), I("span", R, $(e2.$t(a2.designProperty.preText)), 1)) : U("", true)]), key: "1" } : void 0, "outer" != a2.designProperty.iconPosition && (a2.designProperty.sufIconType && a2.designProperty.sufIconValue || a2.designProperty.sufText) ? { name: "suffix", fn: j(() => [a2.designProperty.sufIconType && a2.designProperty.sufIconValue ? (P(), O(u2, { key: 0, iconType: a2.designProperty.sufIconType, iconValue: a2.designProperty.sufIconValue, onClick: t2[45] || (t2[45] = (e3) => o2.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.sufText ? (P(), I("span", W, $(e2.$t(a2.designProperty.sufText)), 1)) : U("", true)]), key: "2" } : void 0, a2.isShowScanIcon || "outer" == a2.designProperty.iconPosition && (a2.designProperty.sufIconType && a2.designProperty.sufIconValue || a2.designProperty.sufText) ? { name: "append", fn: j(() => [a2.isShowScanIcon ? (P(), O(u2, { key: 0, iconValue: "fa-barcode", onClick: t2[46] || (t2[46] = (e3) => o2.scanClick()) })) : U("", true), a2.designProperty.sufIconType && a2.designProperty.sufIconValue ? (P(), O(u2, { key: 1, iconType: a2.designProperty.sufIconType, iconValue: a2.designProperty.sufIconValue, onClick: t2[47] || (t2[47] = (e3) => o2.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.sufText ? (P(), I("span", Y, $(e2.$t(a2.designProperty.sufText)), 1)) : U("", true)]), key: "3" } : void 0]), 1032, ["disabled", "maxlength", "minlength", "placeholder", "title", "modelValue"])) : "textarea" === i2.type ? (P(), O(r2, { key: 9, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[54] || (t2[54] = (e3) => a2.innerValue = e3), disabled: i2.disabled, maxlength: a2.controlConfig && a2.controlConfig.maxlength ? a2.controlConfig.maxlength : "", minlength: a2.controlConfig && a2.controlConfig.minlength ? a2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), rows: a2.designProperty.rows ? a2.designProperty.rows : 2, title: a2.innerValue, clearable: "", type: "textarea", onBlur: t2[55] || (t2[55] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[56] || (t2[56] = (e3) => o2.cellEvent("change", e3)), onClear: t2[57] || (t2[57] = (e3) => o2.cellEvent("clear", e3)), onFocus: t2[58] || (t2[58] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[59] || (t2[59] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "maxlength", "minlength", "placeholder", "rows", "title"])) : "annex" === i2.type ? (P(), O(p2, { key: 10, ref: "fileUploadRef", "custom-view-url": true, disabled: i2.disabled, "file-info": a2.fileInfo, "file-list": a2.fileList, "file-set-obj": a2.fileSetObj, "is-sql": i2.isSql, row: i2.row, value: a2.innerValue, "page-context": a2.pageContext, "list-code": i2.listCode, componentId: a2.componentId, onDelete: o2.deleteFile, onDeleteSuccess: o2.deleteSuccess, onUploadSuccess: o2.uploadOnSuccess, onOnError: o2.onError }, null, 8, ["disabled", "file-info", "file-list", "file-set-obj", "is-sql", "row", "value", "page-context", "list-code", "componentId", "onDelete", "onDeleteSuccess", "onUploadSuccess", "onOnError"])) : "multipartUpload" === i2.type ? (P(), O(m2, { key: 11, disabled: i2.disabled, entity: i2.row, "file-info": a2.fileInfo, "file-list": a2.fileList, "file-set-obj": a2.fileSetObj, value: a2.innerValue, type: "list", onDelete: o2.deleteFile, onDeleteSuccess: o2.deleteSuccess, onUploadSuccess: o2.uploadOnSuccess }, null, 8, ["disabled", "entity", "file-info", "file-list", "file-set-obj", "value", "onDelete", "onDeleteSuccess", "onUploadSuccess"])) : "radio" === i2.type ? (P(), O(d2, { key: 12, modelValue: a2.innerValue, "onUpdate:modelValue": [t2[60] || (t2[60] = (e3) => a2.innerValue = e3), t2[61] || (t2[61] = (e3) => a2.innerValue = e3)], disabled: i2.disabled, options: i2.options, "value-set-options": a2.valueSetOptions, prop: i2.column.prop, entity: i2.row, onCellEvent: o2.cellEvent }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "onCellEvent"])) : "multiselect" === i2.type || "select" === i2.type ? (P(), O(c2, { key: 13, modelValue: a2.innerValue, "onUpdate:modelValue": [t2[62] || (t2[62] = (e3) => a2.innerValue = e3), t2[63] || (t2[63] = (e3) => a2.innerValue = e3)], disabled: i2.disabled, options: i2.options, "value-set-options": a2.valueSetOptions, prop: i2.column.prop, entity: i2.row, column: i2.column, type: i2.type, controlConfig: a2.controlConfig, listCode: i2.listCode, listToolbarFormData: i2.listToolbarFormData, dynamicDataSourceCode: a2.dynamicDataSourceCode, additionalParamMap: a2.additionalParamMap, isSql: i2.isSql, parentFormData: a2.parentFormData, tableName: a2.tableName, onCellEvent: o2.cellEvent, onExtendParams: o2.setExtendParams, onSetCellValue: o2.setCellValue, onSetCellValueWithProp: o2.setCellValueWithProp, onCallCustomEventWithParam: o2.callCustomEventWithParam }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "column", "type", "controlConfig", "listCode", "listToolbarFormData", "dynamicDataSourceCode", "additionalParamMap", "isSql", "parentFormData", "tableName", "onCellEvent", "onExtendParams", "onSetCellValue", "onSetCellValueWithProp", "onCallCustomEventWithParam"])) : "inputNumber" === i2.type ? (P(), O(h2, { key: 14, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[64] || (t2[64] = (e3) => a2.innerValue = e3), "controls-position": a2.inputNumberSet.position, disabled: i2.disabled, max: 0 == a2.inputNumberSet.max ? 0 : a2.inputNumberSet.max ? a2.inputNumberSet.max : 1 / 0, min: 0 == a2.inputNumberSet.min ? 0 : a2.inputNumberSet.min ? a2.inputNumberSet.min : -1 / 0, precision: a2.inputNumberSet.precision, step: a2.inputNumberSet.step ? a2.inputNumberSet.step : 1, onBlur: t2[65] || (t2[65] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[66] || (t2[66] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[67] || (t2[67] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[68] || (t2[68] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) : "switch" === i2.type || "BOOLEAN" === i2.column.dataType ? (P(), O(f2, { key: 15, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[69] || (t2[69] = (e3) => a2.innerValue = e3), "active-text": o2.getSwitchConfig("activeText"), "active-value": o2.getSwitchConfig("activeValue"), disabled: i2.disabled, "inactive-text": o2.getSwitchConfig("inactiveText"), "inactive-value": o2.getSwitchConfig("inactiveValue"), onChange: t2[70] || (t2[70] = (e3) => o2.cellEvent("change", e3)), onInput: t2[71] || (t2[71] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"])) : "slider" === i2.type ? (P(), O(g2, { key: 16, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[72] || (t2[72] = (e3) => a2.innerValue = e3), disabled: i2.disabled, onChange: t2[73] || (t2[73] = (e3) => o2.cellEvent("change", e3)), onInput: t2[74] || (t2[74] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : "rate" === i2.type ? (P(), O(y2, { key: 17, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[75] || (t2[75] = (e3) => a2.innerValue = e3), disabled: i2.disabled, onChange: t2[76] || (t2[76] = (e3) => o2.cellEvent("change", e3)), onInput: t2[77] || (t2[77] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : a2.deptManTree || a2.deptTree || a2.wgManTree || a2.wgTree ? (P(), O(v2, { key: 18, "check-strictly": a2.isCheckStrictly, "department-info": a2.departmentInfo, disabled: i2.disabled, "limit-filter-column": (_a = a2.controlConfig) == null ? void 0 : _a.limitFilterColumn, fields: a2.fields, "is-join-table": e2.isJoinTable, models: i2.row, multiple: a2.isMultiTree, "table-name": a2.tableName, "tree-type": a2.deptManTree ? "DeptUserTree" : a2.deptTree ? "DeptTree" : a2.wgManTree ? "WgUserTree" : a2.wgTree ? "WgTree" : null, value: a2.innerValue, onAppend: o2.appendOrganizationInputEvent, onClear: o2.clearOrganizationInputEvent, onFocus: o2.showOrganizationTree, onReplace: o2.replaceOrganizationInputEvent, onSetValue: o2.organizationInputEvent }, null, 8, ["check-strictly", "department-info", "disabled", "limit-filter-column", "fields", "is-join-table", "models", "multiple", "table-name", "tree-type", "value", "onAppend", "onClear", "onFocus", "onReplace", "onSetValue"])) : U("", true) : (P(), O(r2, { key: 7, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[37] || (t2[37] = (e3) => a2.innerValue = e3), modelModifiers: { number: true }, disabled: i2.disabled, placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: a2.innerValue, type: "INTEGER" === i2.column.dataType || "LONG" === i2.column.dataType ? "number" : "text", clearable: "", onBlur: t2[38] || (t2[38] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[39] || (t2[39] = (e3) => o2.cellEvent("change", e3)), onClear: t2[40] || (t2[40] = (e3) => o2.cellEvent("clear", e3)), onFocus: t2[41] || (t2[41] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[42] || (t2[42] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled", "placeholder", "title", "type"])), A(w2, { "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), visible: a2.annexUploadFlag, width: "30%" }, { default: j(() => ["annex" === i2.type && a2.annexUploadFlag ? (P(), O(S2, { key: 0, accept: a2.fileSetObj && a2.fileSetObj.accept ? a2.fileSetObj.accept : null, action: a2.defaultAction, "before-upload": o2.handleBeforeUpload, headers: a2.headers, "on-success": o2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: j(() => [A(b2, null, { default: j(() => [L($(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : U("", true)]), _: 1 }, 8, ["title", "visible"]), a2.showSingleImgFlag ? (P(), O(C2, { key: 19, deleteable: !i2.disabled, downloadable: !i2.disabled, "file-list": a2.fileList, onClose: t2[78] || (t2[78] = (e3) => a2.showSingleImgFlag = false), onDelete: o2.deleteFile }, null, 8, ["deleteable", "downloadable", "file-list", "onDelete"])) : U("", true), a2.isShowBrowserScan ? (P(), O(T2, { key: 20, onClose: o2.closeBrowserScan }, null, 8, ["onClose"])) : U("", true)], 2));
|
|
478
|
+
return i2.type && i2.type.indexOf("custom:") >= 0 && "" != a2.componentName ? (P(), I("div", { key: 0, class: O(!this.isFormSubTable && i2.row.validateErrorField && i2.row.validateErrorField === i2.column.prop ? "required_bg" : "") }, [(P(), F(k(a2.componentName), { ref: "customItem", disabled: i2.disabled, entity: i2.row, "grid-data": a2.gridData, "page-grid-data": a2.pageGridData, "additional-settings": a2.controlConfig, parent: a2.parentFormData, prop: i2.column.prop, "custom-params": a2.myCustomParams, row: i2.row, "row-index": i2.position ? i2.position.row : null, "select-options": i2.options, value: a2.innerValue, "additional-param-map": a2.additionalParamMap, listCode: i2.listCode, "component-id": a2.componentId, "page-context": a2.pageContext, "grid-ref": i2.gridRef, onChange: t2[0] || (t2[0] = (e3) => o2.cellEvent("change", e3)), onInput: t2[1] || (t2[1] = (e3) => o2.cellEvent("input", e3)) }, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "custom-params", "row", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id", "page-context", "grid-ref"]))], 2)) : (P(), I("div", { key: 1, class: O(!this.isFormSubTable && i2.row.validateErrorField && i2.row.validateErrorField === i2.column.prop ? "required_bg" : "") }, ["year" === i2.type || "month" === i2.type || "week" === i2.type ? (P(), F(s2, { key: 0, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), type: i2.type, "value-format": o2.isValueFormat(), style: { width: "100%" }, onBlur: t2[3] || (t2[3] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[4] || (t2[4] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[5] || (t2[5] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[6] || (t2[6] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "type", "value-format"])) : "yearRange" === i2.type ? (P(), F(s2, { key: 1, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, placeholder: e2.$t("imatrixUIMessage.selectYear"), style: { width: "100%" }, type: "year", "value-format": "YYYY", onBlur: t2[8] || (t2[8] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[9] || (t2[9] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[10] || (t2[10] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[11] || (t2[11] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "placeholder"])) : "dateTimePicker" === i2.type ? (P(), F(s2, { key: 2, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[13] || (t2[13] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[14] || (t2[14] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[15] || (t2[15] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[16] || (t2[16] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "date" === i2.type ? (P(), F(s2, { key: 3, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), "picker-options": a2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[18] || (t2[18] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[19] || (t2[19] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[20] || (t2[20] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[21] || (t2[21] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "timePicker" === i2.type || "input" === i2.type && "TIME" === i2.column.dataType ? (P(), F(n2, { key: 4, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => a2.innerValue = e3), disabled: i2.disabled, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.pleaseEnterATimePoint"), "value-format": o2.isValueFormat(), style: { width: "100%" }, onBlur: t2[23] || (t2[23] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[24] || (t2[24] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[25] || (t2[25] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[26] || (t2[26] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "time" === i2.type ? (P(), F(s2, { key: 5, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[28] || (t2[28] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[29] || (t2[29] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[30] || (t2[30] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[31] || (t2[31] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "DATE" === i2.column.dataType ? (P(), F(s2, { key: 6, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => a2.innerValue = e3), disabled: i2.disabled, editable: false, format: o2.isFormat(), "picker-options": a2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": o2.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[33] || (t2[33] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[34] || (t2[34] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[35] || (t2[35] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[36] || (t2[36] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "input" !== i2.type || "INTEGER" !== i2.column.dataType && "LONG" !== i2.column.dataType ? "input" === i2.type ? (P(), F(r2, { key: 8, ref: "item", disabled: i2.disabled, maxlength: a2.controlConfig && a2.controlConfig.maxlength ? a2.controlConfig.maxlength : "", minlength: a2.controlConfig && a2.controlConfig.minlength ? a2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: a2.innerValue, clearable: "", modelValue: a2.innerValue, "onUpdate:modelValue": t2[48] || (t2[48] = (e3) => a2.innerValue = e3), onBlur: t2[49] || (t2[49] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[50] || (t2[50] = (e3) => o2.cellEvent("change", e3)), onClear: t2[51] || (t2[51] = (e3) => o2.cellEvent("clear", e3)), onFocus: t2[52] || (t2[52] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[53] || (t2[53] = (e3) => o2.cellEvent("input", e3, true)) }, M({ _: 2 }, ["outer" != a2.designProperty.iconPosition && (a2.designProperty.preIconType && a2.designProperty.preIconValue || a2.designProperty.preText) ? { name: "prefix", fn: j(() => [a2.designProperty.preIconType && a2.designProperty.preIconValue ? (P(), F(u2, { key: 0, iconType: a2.designProperty.preIconType, iconValue: a2.designProperty.preIconValue, onClick: t2[43] || (t2[43] = (e3) => o2.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.preText ? (P(), I("span", J, $(e2.$t(a2.designProperty.preText)), 1)) : U("", true)]), key: "0" } : void 0, "outer" == a2.designProperty.iconPosition && (a2.designProperty.preIconType && a2.designProperty.preIconValue || a2.designProperty.preText) ? { name: "prepend", fn: j(() => [a2.designProperty.preIconType && a2.designProperty.preIconValue ? (P(), F(u2, { key: 0, iconType: a2.designProperty.preIconType, iconValue: a2.designProperty.preIconValue, onClick: t2[44] || (t2[44] = (e3) => o2.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.preText ? (P(), I("span", R, $(e2.$t(a2.designProperty.preText)), 1)) : U("", true)]), key: "1" } : void 0, "outer" != a2.designProperty.iconPosition && (a2.designProperty.sufIconType && a2.designProperty.sufIconValue || a2.designProperty.sufText) ? { name: "suffix", fn: j(() => [a2.designProperty.sufIconType && a2.designProperty.sufIconValue ? (P(), F(u2, { key: 0, iconType: a2.designProperty.sufIconType, iconValue: a2.designProperty.sufIconValue, onClick: t2[45] || (t2[45] = (e3) => o2.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.sufText ? (P(), I("span", W, $(e2.$t(a2.designProperty.sufText)), 1)) : U("", true)]), key: "2" } : void 0, a2.isShowScanIcon || "outer" == a2.designProperty.iconPosition && (a2.designProperty.sufIconType && a2.designProperty.sufIconValue || a2.designProperty.sufText) ? { name: "append", fn: j(() => [a2.isShowScanIcon ? (P(), F(u2, { key: 0, iconValue: "fa-barcode", onClick: t2[46] || (t2[46] = (e3) => o2.scanClick()) })) : U("", true), a2.designProperty.sufIconType && a2.designProperty.sufIconValue ? (P(), F(u2, { key: 1, iconType: a2.designProperty.sufIconType, iconValue: a2.designProperty.sufIconValue, onClick: t2[47] || (t2[47] = (e3) => o2.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : U("", true), a2.designProperty.sufText ? (P(), I("span", Y, $(e2.$t(a2.designProperty.sufText)), 1)) : U("", true)]), key: "3" } : void 0]), 1032, ["disabled", "maxlength", "minlength", "placeholder", "title", "modelValue"])) : "textarea" === i2.type ? (P(), F(r2, { key: 9, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[54] || (t2[54] = (e3) => a2.innerValue = e3), disabled: i2.disabled, maxlength: a2.controlConfig && a2.controlConfig.maxlength ? a2.controlConfig.maxlength : "", minlength: a2.controlConfig && a2.controlConfig.minlength ? a2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), rows: a2.designProperty.rows ? a2.designProperty.rows : 2, title: a2.innerValue, clearable: "", type: "textarea", onBlur: t2[55] || (t2[55] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[56] || (t2[56] = (e3) => o2.cellEvent("change", e3)), onClear: t2[57] || (t2[57] = (e3) => o2.cellEvent("clear", e3)), onFocus: t2[58] || (t2[58] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[59] || (t2[59] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "maxlength", "minlength", "placeholder", "rows", "title"])) : "annex" === i2.type ? (P(), F(p2, { key: 10, ref: "fileUploadRef", "custom-view-url": true, disabled: i2.disabled, "file-info": a2.fileInfo, "file-list": a2.fileList, "file-set-obj": a2.fileSetObj, "is-sql": i2.isSql, row: i2.row, value: a2.innerValue, "page-context": a2.pageContext, "list-code": i2.listCode, componentId: a2.componentId, onDelete: o2.deleteFile, onDeleteSuccess: o2.deleteSuccess, onUploadSuccess: o2.uploadOnSuccess, onOnError: o2.onError }, null, 8, ["disabled", "file-info", "file-list", "file-set-obj", "is-sql", "row", "value", "page-context", "list-code", "componentId", "onDelete", "onDeleteSuccess", "onUploadSuccess", "onOnError"])) : "multipartUpload" === i2.type ? (P(), F(m2, { key: 11, disabled: i2.disabled, entity: i2.row, "file-info": a2.fileInfo, "file-list": a2.fileList, "file-set-obj": a2.fileSetObj, value: a2.innerValue, type: "list", onDelete: o2.deleteFile, onDeleteSuccess: o2.deleteSuccess, onUploadSuccess: o2.uploadOnSuccess }, null, 8, ["disabled", "entity", "file-info", "file-list", "file-set-obj", "value", "onDelete", "onDeleteSuccess", "onUploadSuccess"])) : "radio" === i2.type ? (P(), F(d2, { key: 12, modelValue: a2.innerValue, "onUpdate:modelValue": [t2[60] || (t2[60] = (e3) => a2.innerValue = e3), t2[61] || (t2[61] = (e3) => a2.innerValue = e3)], disabled: i2.disabled, options: i2.options, "value-set-options": a2.valueSetOptions, prop: i2.column.prop, entity: i2.row, onCellEvent: o2.cellEvent }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "onCellEvent"])) : "multiselect" === i2.type || "select" === i2.type ? (P(), F(c2, { key: 13, modelValue: a2.innerValue, "onUpdate:modelValue": [t2[62] || (t2[62] = (e3) => a2.innerValue = e3), t2[63] || (t2[63] = (e3) => a2.innerValue = e3)], disabled: i2.disabled, options: i2.options, "value-set-options": a2.valueSetOptions, prop: i2.column.prop, entity: i2.row, column: i2.column, type: i2.type, controlConfig: a2.controlConfig, listCode: i2.listCode, listToolbarFormData: i2.listToolbarFormData, dynamicDataSourceCode: a2.dynamicDataSourceCode, additionalParamMap: a2.additionalParamMap, isSql: i2.isSql, parentFormData: a2.parentFormData, tableName: a2.tableName, onCellEvent: o2.cellEvent, onExtendParams: o2.setExtendParams, onSetCellValue: o2.setCellValue, onSetCellValueWithProp: o2.setCellValueWithProp, onCallCustomEventWithParam: o2.callCustomEventWithParam }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "column", "type", "controlConfig", "listCode", "listToolbarFormData", "dynamicDataSourceCode", "additionalParamMap", "isSql", "parentFormData", "tableName", "onCellEvent", "onExtendParams", "onSetCellValue", "onSetCellValueWithProp", "onCallCustomEventWithParam"])) : "inputNumber" === i2.type ? (P(), F(h2, { key: 14, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[64] || (t2[64] = (e3) => a2.innerValue = e3), "controls-position": a2.inputNumberSet.position, disabled: i2.disabled, max: 0 == a2.inputNumberSet.max ? 0 : a2.inputNumberSet.max ? a2.inputNumberSet.max : 1 / 0, min: 0 == a2.inputNumberSet.min ? 0 : a2.inputNumberSet.min ? a2.inputNumberSet.min : -1 / 0, precision: a2.inputNumberSet.precision, step: a2.inputNumberSet.step ? a2.inputNumberSet.step : 1, onBlur: t2[65] || (t2[65] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[66] || (t2[66] = (e3) => o2.cellEvent("change", e3)), onFocus: t2[67] || (t2[67] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[68] || (t2[68] = (e3) => o2.cellEvent("input", e3)) }, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) : "switch" === i2.type || "BOOLEAN" === i2.column.dataType ? (P(), F(f2, { key: 15, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[69] || (t2[69] = (e3) => a2.innerValue = e3), "active-text": o2.getSwitchConfig("activeText"), "active-value": o2.getSwitchConfig("activeValue"), disabled: i2.disabled, "inactive-text": o2.getSwitchConfig("inactiveText"), "inactive-value": o2.getSwitchConfig("inactiveValue"), onChange: t2[70] || (t2[70] = (e3) => o2.cellEvent("change", e3)), onInput: t2[71] || (t2[71] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"])) : "slider" === i2.type ? (P(), F(g2, { key: 16, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[72] || (t2[72] = (e3) => a2.innerValue = e3), disabled: i2.disabled, onChange: t2[73] || (t2[73] = (e3) => o2.cellEvent("change", e3)), onInput: t2[74] || (t2[74] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : "rate" === i2.type ? (P(), F(y2, { key: 17, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[75] || (t2[75] = (e3) => a2.innerValue = e3), disabled: i2.disabled, onChange: t2[76] || (t2[76] = (e3) => o2.cellEvent("change", e3)), onInput: t2[77] || (t2[77] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : a2.deptManTree || a2.deptTree || a2.wgManTree || a2.wgTree ? (P(), F(v2, { key: 18, "check-strictly": a2.isCheckStrictly, "department-info": a2.departmentInfo, disabled: i2.disabled, "limit-filter-column": (_a = a2.controlConfig) == null ? void 0 : _a.limitFilterColumn, fields: a2.fields, "is-join-table": e2.isJoinTable, models: i2.row, multiple: a2.isMultiTree, "table-name": a2.tableName, "tree-type": a2.deptManTree ? "DeptUserTree" : a2.deptTree ? "DeptTree" : a2.wgManTree ? "WgUserTree" : a2.wgTree ? "WgTree" : null, value: a2.innerValue, onAppend: o2.appendOrganizationInputEvent, onClear: o2.clearOrganizationInputEvent, onFocus: o2.showOrganizationTree, onReplace: o2.replaceOrganizationInputEvent, onSetValue: o2.organizationInputEvent }, null, 8, ["check-strictly", "department-info", "disabled", "limit-filter-column", "fields", "is-join-table", "models", "multiple", "table-name", "tree-type", "value", "onAppend", "onClear", "onFocus", "onReplace", "onSetValue"])) : U("", true) : (P(), F(r2, { key: 7, ref: "item", modelValue: a2.innerValue, "onUpdate:modelValue": t2[37] || (t2[37] = (e3) => a2.innerValue = e3), modelModifiers: { number: true }, disabled: i2.disabled, placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: a2.innerValue, type: "INTEGER" === i2.column.dataType || "LONG" === i2.column.dataType ? "number" : "text", clearable: "", onBlur: t2[38] || (t2[38] = (e3) => o2.cellEvent("blur", e3)), onChange: t2[39] || (t2[39] = (e3) => o2.cellEvent("change", e3)), onClear: t2[40] || (t2[40] = (e3) => o2.cellEvent("clear", e3)), onFocus: t2[41] || (t2[41] = (e3) => o2.cellEvent("focus", e3)), onInput: t2[42] || (t2[42] = (e3) => o2.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled", "placeholder", "title", "type"])), A(w2, { "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), visible: a2.annexUploadFlag, width: "30%" }, { default: j(() => ["annex" === i2.type && a2.annexUploadFlag ? (P(), F(S2, { key: 0, accept: a2.fileSetObj && a2.fileSetObj.accept ? a2.fileSetObj.accept : null, action: a2.defaultAction, "before-upload": o2.handleBeforeUpload, headers: a2.headers, "on-success": o2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: j(() => [A(b2, null, { default: j(() => [L($(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : U("", true)]), _: 1 }, 8, ["title", "visible"]), a2.showSingleImgFlag ? (P(), F(C2, { key: 19, deleteable: !i2.disabled, downloadable: !i2.disabled, "file-list": a2.fileList, onClose: t2[78] || (t2[78] = (e3) => a2.showSingleImgFlag = false), onDelete: o2.deleteFile }, null, 8, ["deleteable", "downloadable", "file-list", "onDelete"])) : U("", true), a2.isShowBrowserScan ? (P(), F(T2, { key: 20, onClose: o2.closeBrowserScan }, null, 8, ["onClose"])) : U("", true)], 2));
|
|
479
479
|
}]]);
|
|
480
480
|
export {
|
|
481
481
|
_ as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "./normal-column.vue.mjs";
|
|
2
2
|
import { doFormatWithValueSet as t } from "./formatter.mjs";
|
|
3
|
-
import { resolveComponent as o, openBlock as a, createBlock as l, withCtx as
|
|
3
|
+
import { resolveComponent as o, openBlock as a, createBlock as l, withCtx as r, createElementVNode as i, createElementBlock as n, Fragment as d, renderList as s, resolveDynamicComponent as u } from "vue";
|
|
4
4
|
import m from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const p = { name: "GroupColumn", components: { NormalColumn: e }, props: { column: { type: Object, default: null }, customFormat: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null } }, data: () => ({ label: null }), computed: { visibleChildren() {
|
|
5
|
+
const p = { name: "GroupColumn", components: { NormalColumn: e }, props: { column: { type: Object, default: null }, customFormat: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, gridRef: { type: Object, default: null } }, data: () => ({ label: null }), computed: { visibleChildren() {
|
|
6
6
|
return this.column.children ? this.column.children.filter((e2) => (void 0 === e2.show || e2.show) && (void 0 === e2.dyn_show || true === e2.dyn_show)) : [];
|
|
7
7
|
} }, created() {
|
|
8
8
|
this.label = this.getHeader(), this.column;
|
|
@@ -15,9 +15,9 @@ const p = { name: "GroupColumn", components: { NormalColumn: e }, props: { colum
|
|
|
15
15
|
}, openPageDialog(e2) {
|
|
16
16
|
this.$emit("open-page", e2);
|
|
17
17
|
} } }, c = ["title", "innerHTML"];
|
|
18
|
-
const g = m(p, [["render", function(e2, t2, m2, p2, g2,
|
|
19
|
-
const
|
|
20
|
-
return a(), l(
|
|
18
|
+
const g = m(p, [["render", function(e2, t2, m2, p2, g2, f) {
|
|
19
|
+
const h = o("el-table-column");
|
|
20
|
+
return a(), l(h, { "min-width": m2.column.width ? m2.column.width : 150, align: m2.column.groupHeader ? "center" : "" }, { header: r(() => [i("span", { class: "cell--span", title: g2.label, innerHTML: g2.label }, null, 8, c)]), default: r(() => [m2.customFormat ? (a(true), n(d, { key: 0 }, s(f.visibleChildren, (o2, r2) => (a(), l(u(o2.prop ? "NormalColumn" : "GroupColumn"), { key: o2.label + r2, column: o2, "is-sql": m2.isSql, "custom-format": o2.prop ? m2.customFormat[o2.prop] : m2.customFormat, "list-code": m2.listCode, "grid-data": m2.gridData, "page-grid-data": m2.gridData, "grid-ref": m2.gridRef, onFindIndex: t2[0] || (t2[0] = (t3) => e2.findIndex(e2.scope.$index)), onRefresData: e2.refresData, onRefresPortData: e2.refresPortData, onRefresPortsData: e2.refresPortsData, onRefresMainTableFields: e2.refresMainTableFields, onProhibitToEdit: f.prohibitToEdit, onOpenPage: f.openPageDialog }, null, 40, ["column", "is-sql", "custom-format", "list-code", "grid-data", "page-grid-data", "grid-ref", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onProhibitToEdit", "onOpenPage"]))), 128)) : (a(true), n(d, { key: 1 }, s(f.visibleChildren, (e3, t3) => (a(), l(u(e3.prop ? "NormalColumn" : "GroupColumn"), { key: e3.label + t3, "is-sql": m2.isSql, column: e3, "list-code": m2.listCode, "grid-data": m2.gridData, "page-grid-data": m2.gridData, "grid-ref": m2.gridRef, onProhibitToEdit: f.prohibitToEdit, onOpenPage: f.openPageDialog }, null, 40, ["is-sql", "column", "list-code", "grid-data", "page-grid-data", "grid-ref", "onProhibitToEdit", "onOpenPage"]))), 128))]), _: 1 }, 8, ["min-width", "align"]);
|
|
21
21
|
}]]);
|
|
22
22
|
export {
|
|
23
23
|
g as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CirclePlus as t, ZoomIn as e } from "@element-plus/icons-vue";
|
|
2
2
|
import { $on as o, $off as i, $emit as n } from "../../utils/gogocodeTransfer.mjs";
|
|
3
|
-
import { getAdditionalParamMap as l, isDisableEdit as s, isEditOptionFunction as r, ArrowKeyAction as a, isHasEditOption as
|
|
3
|
+
import { getAdditionalParamMap as l, isDisableEdit as s, isEditOptionFunction as r, ArrowKeyAction as a, isHasEditOption as d, getFileList as p, isRequiredEdit as c, isDynamicDataSourceSource as m } from "./utils.mjs";
|
|
4
4
|
import u from "./dynamic-input.vue.mjs";
|
|
5
5
|
import h from "./store.mjs";
|
|
6
|
-
import { doFormatWithValueSet as
|
|
7
|
-
import
|
|
6
|
+
import { doFormatWithValueSet as f } from "./formatter.mjs";
|
|
7
|
+
import w from "./custom-formatter.mjs";
|
|
8
8
|
import g from "./row-operation.vue.mjs";
|
|
9
9
|
import b from "./apis.mjs";
|
|
10
10
|
import { mapGetters as C } from "vuex";
|
|
@@ -18,11 +18,11 @@ import { formatScanRuleSets as k } from "./scan-util.mjs";
|
|
|
18
18
|
import T from "../../src/store/index.mjs";
|
|
19
19
|
import { isPromise as F } from "../../src/utils/common-util.mjs";
|
|
20
20
|
import "element-plus";
|
|
21
|
-
import { resolveComponent as O, resolveDirective as j, openBlock as
|
|
21
|
+
import { resolveComponent as O, resolveDirective as j, openBlock as R, createElementBlock as P, createBlock as $, normalizeClass as L, withKeys as q, createVNode as H, withCtx as A, toDisplayString as V, createCommentVNode as G, Fragment as _, renderList as M, withDirectives as N, createTextVNode as B, resolveDynamicComponent as W, createElementVNode as U, normalizeStyle as J } from "vue";
|
|
22
22
|
import "./normal-column-content.vue2.mjs";
|
|
23
23
|
import z from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
24
24
|
import K from "../../fs-preview/src/fs-preview.vue.mjs";
|
|
25
|
-
const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E, FsPreview: K, RichEditorViewer: D, CirclePlus: t, ElIconZoomIn: e, GridIcon: I }, name: "NormalColumnContent", props: { isContentViewText: { type: Boolean, default: false }, column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null }, row: { type: Object, default: null }, rowIndex: { type: Number, default: null }, isShowForm: { type: Boolean, default: false } }, data() {
|
|
25
|
+
const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E, FsPreview: K, RichEditorViewer: D, CirclePlus: t, ElIconZoomIn: e, GridIcon: I }, name: "NormalColumnContent", props: { isContentViewText: { type: Boolean, default: false }, column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null }, row: { type: Object, default: null }, rowIndex: { type: Number, default: null }, isShowForm: { type: Boolean, default: false }, gridRef: { type: Object, default: null } }, data() {
|
|
26
26
|
let t2;
|
|
27
27
|
const e2 = h.get(this.listCode), o2 = e2.options;
|
|
28
28
|
e2.options.extraParam && e2.options.extraParam.entityMap && (t2 = e2.options.extraParam.entityMap);
|
|
@@ -34,8 +34,8 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
34
34
|
const r2 = this.listCode + "_" + this.column.prop;
|
|
35
35
|
let a2;
|
|
36
36
|
null !== e2.lineEdit && void 0 !== e2.lineEdit && (a2 = e2.lineEdit);
|
|
37
|
-
let
|
|
38
|
-
return e2.basicInfo && e2.basicInfo.textOverflow && (
|
|
37
|
+
let d2 = "hidden";
|
|
38
|
+
return e2.basicInfo && e2.basicInfo.textOverflow && (d2 = e2.basicInfo.textOverflow), this.isShowForm && (d2 = "newline"), { selectRow: null, that: this, columnFormatter: this.column.formatter, hyperLinks: {}, fileDownType: "", isFormSubTable: false, subTableCanAdd: true, isShowAdd: false, cellWidth: null, parentFormData: t2, fileMultiple: false, showSingleImgFlag: false, singleImgSrc: "", fileList: [], index: null, isEditable: this.column.editable, showRichEditorViewer: false, getFormData: e2.options.getFormData, getTableGridData: e2.options.getGridData, additionalParamMap: i2, disabled: false, additionalSettings: this.getColumnCustomControlControlConfig(this.column.formatter), scanEnable: s2, componentId: r2, controlConfig: n2, requiredClass: "", lineEdit: a2, options: o2, textOverflow: d2, linkObject: {} };
|
|
39
39
|
}, computed: { isHideEdit() {
|
|
40
40
|
return !!this.disabled;
|
|
41
41
|
}, $rowGuId() {
|
|
@@ -121,7 +121,7 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
121
121
|
});
|
|
122
122
|
}, unmounted() {
|
|
123
123
|
i(S, "un-edit"), this.$parent.$parent && "GroupColumn" === this.$parent.$parent.$options._componentTag && S.$off("prohibitToEdit"), S.$off("clearTableAllStartEditing");
|
|
124
|
-
}, methods: { ...
|
|
124
|
+
}, methods: { ...w, ...b, clearAllEditing() {
|
|
125
125
|
var _a, _b;
|
|
126
126
|
this.hasEditPermission && ((_b = (_a = T) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing"));
|
|
127
127
|
}, async onEditing(t2) {
|
|
@@ -170,7 +170,7 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
170
170
|
}, getHeader() {
|
|
171
171
|
return this.column.titleValueSet ? this.formatHeader() : this.column.label.replace(/\\n/g, "</br>");
|
|
172
172
|
}, formatHeader() {
|
|
173
|
-
return
|
|
173
|
+
return f(this.column.titleValueSetValue, this.column.label);
|
|
174
174
|
}, filterHandler: (t2, e2, o2) => e2[o2.property] === t2, onFocus(t2) {
|
|
175
175
|
const e2 = h.get(this.listCode);
|
|
176
176
|
e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = t2, e2.lineEdit.editingCell.prop = this.column.prop);
|
|
@@ -195,10 +195,10 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
195
195
|
}
|
|
196
196
|
}, isSaveByEnter() {
|
|
197
197
|
const t2 = h.get(this.listCode);
|
|
198
|
-
return void 0 === t2.options.lineEditOptions.isSaveByEnter ||
|
|
198
|
+
return void 0 === t2.options.lineEditOptions.isSaveByEnter || d("isSaveByEnter", this.listCode) && true === t2.options.lineEditOptions.isSaveByEnter;
|
|
199
199
|
}, isRestoreByEsc() {
|
|
200
200
|
const t2 = h.get(this.listCode);
|
|
201
|
-
return void 0 === t2.options.lineEditOptions.isRestoreByEsc ||
|
|
201
|
+
return void 0 === t2.options.lineEditOptions.isRestoreByEsc || d("isRestoreByEsc", this.listCode) && true === t2.options.lineEditOptions.isRestoreByEsc;
|
|
202
202
|
}, canFocus(t2) {
|
|
203
203
|
const e2 = h.get(this.listCode);
|
|
204
204
|
return t2 === e2.lineEdit.editingCell.row && this.column.prop === e2.lineEdit.editingCell.prop;
|
|
@@ -229,11 +229,11 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
229
229
|
o2.isGroup && o2.buttons.forEach((o3) => {
|
|
230
230
|
o3.props.code === t2.comman && (e2 = o3);
|
|
231
231
|
});
|
|
232
|
-
}), e2 &&
|
|
232
|
+
}), e2 && w.onClickFun(t2.row, this.column, e2.onClick, t2.rowIndex);
|
|
233
233
|
}, beforeHandleCommand: (t2, e2, o2) => ({ comman: t2, row: e2, rowIndex: o2 }), previewImg(t2) {
|
|
234
|
-
this.fileList =
|
|
234
|
+
this.fileList = p(t2, this.column, this.isSql), this.showSingleImgFlag = true;
|
|
235
235
|
}, getFileList(t2) {
|
|
236
|
-
return
|
|
236
|
+
return p(t2, this.column, this.isSql);
|
|
237
237
|
}, getColumnWidth() {
|
|
238
238
|
return this.column && "operation" === this.column.prop && !this.column.width ? "210" : this.column.width ? this.column.width + "" : "130";
|
|
239
239
|
}, fnProhibitToEdit(t2) {
|
|
@@ -308,12 +308,12 @@ const Z = { components: { DynamicInput: u, RowOperation: g, ViewImageDialog: E,
|
|
|
308
308
|
if (t2 && t2.customParams)
|
|
309
309
|
return y(t2.customParams, (_c = this.options) == null ? void 0 : _c.pageContext, this.row);
|
|
310
310
|
}
|
|
311
|
-
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, X = { class: "normal-column-content-view" }, Q = { key: 0, "table-column-placeholder": "" }, Y = { key: 1, class: "grid-operation-buttons", "data-v": "20250527" }, tt = ["id"], et = { key: 0, type: "primary" }, ot = ["id", "title"], it = ["id", "title"], nt = ["id"], lt = ["id", "title"], st = ["id"], rt = { key: 0, type: "primary", style: { width: "100%" } }, at = ["id", "title"],
|
|
312
|
-
const
|
|
311
|
+
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, X = { class: "normal-column-content-view" }, Q = { key: 0, "table-column-placeholder": "" }, Y = { key: 1, class: "grid-operation-buttons", "data-v": "20250527" }, tt = ["id"], et = { key: 0, type: "primary" }, ot = ["id", "title"], it = ["id", "title"], nt = ["id"], lt = ["id", "title"], st = ["id"], rt = { key: 0, type: "primary", style: { width: "100%" } }, at = ["id", "title"], dt = ["id"], pt = { key: 1 }, ct = ["id", "title"], mt = ["id", "title"], ut = ["id"], ht = ["id", "title", "innerHTML"], ft = ["id"];
|
|
312
|
+
const wt = z(Z, [["render", function(t2, e2, o2, i2, n2, l2) {
|
|
313
313
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
314
|
-
const s2 = O("dynamic-input"), r2 = O("Edit"), a2 = O("el-icon"),
|
|
315
|
-
return P(), R("div", X, [l2.isEditing || o2.isShowForm ? (P(), $(s2, { key: 0, ref: "dynamicRef", value: o2.row[o2.column.prop], "onUpdate:value": e2[0] || (e2[0] = (t3) => o2.row[o2.column.prop] = t3), class: L(n2.requiredClass), column: o2.column, "is-sql": o2.isSql, "line-edit": n2.lineEdit, "list-code": o2.listCode, "list-toolbar-form-data": o2.listToolbarFormData, options: o2.column.valueSet, "grid-options": n2.options, position: { row: o2.rowIndex, prop: o2.column.prop }, disabled: n2.disabled, row: o2.row, "row-index": o2.rowIndex, type: o2.column.componentType, onKeyup: q(l2.clearAllEditing, ["enter"]), onFindIndex: e2[1] || (e2[1] = (t3) => l2.findIndex(o2.rowIndex)), onFocus: e2[2] || (e2[2] = (t3) => l2.onFocus(o2.rowIndex)), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList, onRefresData: l2.refresData, onRefresMainTableFields: l2.refresMainTableFields, onRefresPortData: l2.refresPortData, onRefresPortsData: l2.refresPortsData, onChangeDisabled: l2.changeDisabled, onChangeRequired: l2.changeRequired, onOpenPage: l2.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (P(), R("div", { key: 1, class: L(((_d = (_c = (_b = (_a = n2.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.columnEditable) ? "column-text-main" : "") }, [n2.lineEdit.editable && ((_h = (_g = (_f = (_e = n2.options) == null ? void 0 : _e.configureObj) == null ? void 0 : _f.props) == null ? void 0 : _g.base) == null ? void 0 : _h.columnEditable) && n2.isEditable && !l2.isHideEdit && !o2.isContentViewText ? (P(), R("div", { key: 0, class: "column-text-edit-main", onClick: e2[3] || (e2[3] = (...t3) => l2.onEditing && l2.onEditing(...t3)) }, [H(a2, { size: 14, color: "#409eff" }, { default: A(() => [H(r2)]), _: 1 }), [void 0, null, ""].includes(o2.row[o2.column.prop]) ? (P(), R("span", Q, V(t2.$t("superGrid.editablePlaceholder")), 1)) : G("", true)])) : G("", true), o2.column.operations ? (P(), R("span", Y, [(P(true), R(_, null, M(o2.column.operations, (e3, i3) => (P(), R("span", { key: i3, class: L([o2.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [e3.isGroup ? (P(), $(c2, { key: 0, size: e3.buttons && e3.buttons.length > 0 ? e3.buttons[0].props.size : "small", "split-button": "", onCommand: l2.handleCommand }, { dropdown: A(() => [H(d2, null, { default: A(() => [(P(true), R(_, null, M(e3.buttons, (e4, i4) => (P(), R("span", { key: e4.props.code + i4 }, [N((P(), $(p2, { command: l2.beforeHandleCommand(e4.props.code, o2.row, o2.rowIndex), disabled: t2.preventReclick }, { default: A(() => [B(V(t2.$escapeHtml(e4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[x2, e4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: A(() => [B(V(t2.$escapeHtml(e3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : e3.props.customControl ? N((P(), $(W(e3.props.customControl), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, disabled: true, row: o2.row, entity: o2.row, prop: o2.column.prop, parent: n2.parentFormData, "row-index": o2.rowIndex, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, "current-page": o2.currentPage, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null, onRefreshList: l2.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "custom-params", "onRefreshList"])), [[x2, e3.props.permission]]) : (P(), $(m2, { key: 2, column: o2.column, editing: o2.row.$editing, entity: o2.row, "is-show": e3.isShow, label: e3.props.label ? e3.props.label : o2.row[o2.column.prop], "on-click": e3.onClick, "operation-index": i3, "operation-setting": e3.props, "event-name": e3.eventName, "row-index": o2.rowIndex, "list-code": o2.listCode, "parent-form-data": n2.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "event-name", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : t2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex) ? (P(), R("span", { key: 2, class: L(o2.isShowForm ? "" : "cell--span") }, [(P(), $(W(o2.column.prop + o2.rowIndex), { entity: o2.row, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, "additional-settings": n2.additionalSettings, "page-context": (_i = n2.options) == null ? void 0 : _i.pageContext, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context", "custom-params"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "customControl" === n2.columnFormatter.type && n2.columnFormatter.options && n2.columnFormatter.options.format && "" !== n2.columnFormatter.options.format ? (P(), R("span", { key: 3, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(P(), $(W(n2.columnFormatter.options.format), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, "current-page": o2.currentPage, disabled: true, entity: o2.row, "get-form-data": n2.getFormData, "get-grid-data": n2.getTableGridData, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, listCode: o2.listCode, "component-id": n2.componentId, "additional-settings": n2.additionalSettings, "page-context": (_j = n2.options) == null ? void 0 : _j.pageContext, "custom-params": l2.getCustomParams(), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "custom-params", "onProhibitToEdit", "onRefreshList"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "secretInfo" === n2.columnFormatter.type ? (P(), R("span", { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(u2, { entity: o2.row, "field-label": t2.$escapeHtml(t2.label), "list-code": o2.listCode, "list-name": o2.listName, "page-code": o2.pageCode, prop: o2.column.prop, "table-name": o2.tableName, value: l2.getCellValue(o2.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, tt)) : t2.isObjectProp(o2.column.prop) ? (P(), R(_, { key: 5 }, [o2.column.formatter && "files" === o2.column.formatter.type ? (P(), R("span", et, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ot)])) : "hyperlinks" === ((_k = n2.columnFormatter) == null ? void 0 : _k.type) && true === n2.linkObject.visible ? (P(), $(f2, { key: 1, type: l2.getLinkType(o2.row), onClick: e2[4] || (e2[4] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: A(() => [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: n2.linkObject.title, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(V(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 14, it)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(V(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 10, nt))]), _: 1 }, 8, ["type"])) : t2.isShowOverflowTooltip ? (P(), R("span", { key: 2, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 15, lt)) : (P(), R("span", { key: 3, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, st))], 64)) : (P(), R(_, { key: 6 }, ["annex" === o2.column.componentType || "multipartUpload" === o2.column.componentType ? (P(), R("span", rt, [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { width: n2.cellWidth, entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, at)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, pt))])) : o2.column.formatter && "files" === o2.column.formatter.type ? (P(), R("span", dt, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ct)])) : "hyperlinks" === ((_l = n2.columnFormatter) == null ? void 0 : _l.type) && n2.linkObject.visible ? (P(), $(f2, { key: 2, type: "primary", onClick: e2[5] || (e2[5] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: A(() => [t2.isShowOverflowTooltip ? (P(), R("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(n2.linkObject.title), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(V(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 14, mt)) : (P(), R("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(V(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (P(), $(w2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 10, ut))]), _: 1 })) : o2.column.formatter && "richEditor" === o2.column.formatter.type ? (P(), $(g2, { key: 3, content: t2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: A(() => [U("em", { class: "fa fa-info-circle annex-cell", onClick: e2[6] || (e2[6] = (t3) => l2.showRichEditorContent(o2.row, o2.column, l2.getHeader())) })]), _: 1 }, 8, ["content"])) : o2.column.formatter && "icon" === o2.column.formatter.type ? (P(), $(b2, { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, column: o2.column, row: o2.row, "row-index": o2.rowIndex, "is-sql": o2.isSql, "list-code": o2.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : t2.isShowOverflowTooltip ? (P(), R("span", { key: 5, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: l2.getLabel(o2.row), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 14, ht)) : (P(), R("span", { key: 6, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, wt))], 64))], 2)), n2.showSingleImgFlag ? (P(), $(C2, { key: 2, "file-list": n2.fileList, onClose: e2[7] || (e2[7] = (t3) => n2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : G("", true), n2.showRichEditorViewer ? (P(), $(y2, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l2.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : G("", true)]);
|
|
316
|
-
}], ["__scopeId", "data-v-
|
|
314
|
+
const s2 = O("dynamic-input"), r2 = O("Edit"), a2 = O("el-icon"), d2 = O("el-dropdown-item"), p2 = O("el-dropdown-menu"), c2 = O("el-dropdown"), m2 = O("row-operation"), u2 = O("secret-info"), h2 = O("FsPreview"), f2 = O("SuperIcon"), w2 = O("el-link"), g2 = O("el-tooltip"), b2 = O("GridIcon"), C2 = O("view-image-dialog"), y2 = O("rich-editor-viewer"), x2 = j("permission");
|
|
315
|
+
return R(), P("div", X, [l2.isEditing || o2.isShowForm ? (R(), $(s2, { key: 0, ref: "dynamicRef", value: o2.row[o2.column.prop], "onUpdate:value": e2[0] || (e2[0] = (t3) => o2.row[o2.column.prop] = t3), class: L(n2.requiredClass), column: o2.column, "is-sql": o2.isSql, "line-edit": n2.lineEdit, "list-code": o2.listCode, "list-toolbar-form-data": o2.listToolbarFormData, options: o2.column.valueSet, "grid-options": n2.options, position: { row: o2.rowIndex, prop: o2.column.prop }, disabled: n2.disabled, row: o2.row, "row-index": o2.rowIndex, type: o2.column.componentType, onKeyup: q(l2.clearAllEditing, ["enter"]), onFindIndex: e2[1] || (e2[1] = (t3) => l2.findIndex(o2.rowIndex)), onFocus: e2[2] || (e2[2] = (t3) => l2.onFocus(o2.rowIndex)), onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList, onRefresData: l2.refresData, onRefresMainTableFields: l2.refresMainTableFields, onRefresPortData: l2.refresPortData, onRefresPortsData: l2.refresPortsData, onChangeDisabled: l2.changeDisabled, onChangeRequired: l2.changeRequired, onOpenPage: l2.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (R(), P("div", { key: 1, class: L(((_d = (_c = (_b = (_a = n2.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.columnEditable) ? "column-text-main" : "") }, [n2.lineEdit.editable && ((_h = (_g = (_f = (_e = n2.options) == null ? void 0 : _e.configureObj) == null ? void 0 : _f.props) == null ? void 0 : _g.base) == null ? void 0 : _h.columnEditable) && n2.isEditable && !l2.isHideEdit && !o2.isContentViewText ? (R(), P("div", { key: 0, class: "column-text-edit-main", onClick: e2[3] || (e2[3] = (...t3) => l2.onEditing && l2.onEditing(...t3)) }, [H(a2, { size: 14, color: "#409eff" }, { default: A(() => [H(r2)]), _: 1 }), [void 0, null, ""].includes(o2.row[o2.column.prop]) ? (R(), P("span", Q, V(t2.$t("superGrid.editablePlaceholder")), 1)) : G("", true)])) : G("", true), o2.column.operations ? (R(), P("span", Y, [(R(true), P(_, null, M(o2.column.operations, (e3, i3) => (R(), P("span", { key: i3, class: L([o2.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [e3.isGroup ? (R(), $(c2, { key: 0, size: e3.buttons && e3.buttons.length > 0 ? e3.buttons[0].props.size : "small", "split-button": "", onCommand: l2.handleCommand }, { dropdown: A(() => [H(p2, null, { default: A(() => [(R(true), P(_, null, M(e3.buttons, (e4, i4) => (R(), P("span", { key: e4.props.code + i4 }, [N((R(), $(d2, { command: l2.beforeHandleCommand(e4.props.code, o2.row, o2.rowIndex), disabled: t2.preventReclick }, { default: A(() => [B(V(t2.$escapeHtml(e4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[x2, e4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: A(() => [B(V(t2.$escapeHtml(e3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : e3.props.customControl ? N((R(), $(W(e3.props.customControl), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, disabled: true, row: o2.row, entity: o2.row, prop: o2.column.prop, parent: n2.parentFormData, "row-index": o2.rowIndex, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, "current-page": o2.currentPage, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null, "grid-ref": o2.gridRef, onRefreshList: l2.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "custom-params", "grid-ref", "onRefreshList"])), [[x2, e3.props.permission]]) : (R(), $(m2, { key: 2, column: o2.column, editing: o2.row.$editing, entity: o2.row, "is-show": e3.isShow, label: e3.props.label ? e3.props.label : o2.row[o2.column.prop], "on-click": e3.onClick, "operation-index": i3, "operation-setting": e3.props, "event-name": e3.eventName, "row-index": o2.rowIndex, "list-code": o2.listCode, "parent-form-data": n2.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "event-name", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : t2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex) ? (R(), P("span", { key: 2, class: L(o2.isShowForm ? "" : "cell--span") }, [(R(), $(W(t2.customFormatValue(o2.row, o2.column.prop, o2.customFormat, o2.rowIndex)), { entity: o2.row, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, "additional-settings": n2.additionalSettings, "page-context": (_i = n2.options) == null ? void 0 : _i.pageContext, "custom-params": n2.controlConfig ? n2.controlConfig.customParams : null, "grid-ref": o2.gridRef }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context", "custom-params", "grid-ref"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "customControl" === n2.columnFormatter.type && n2.columnFormatter.options && n2.columnFormatter.options.format && "" !== n2.columnFormatter.options.format ? (R(), P("span", { key: 3, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(R(), $(W(n2.columnFormatter.options.format), { key: o2.column.prop + "_" + o2.rowIndex + "_" + o2.currentPage, "current-page": o2.currentPage, disabled: true, entity: o2.row, "get-form-data": n2.getFormData, "get-grid-data": n2.getTableGridData, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, parent: n2.parentFormData, prop: o2.column.prop, row: o2.row, "row-index": o2.rowIndex, "select-options": o2.column.valueSet, "show-value": t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)), value: l2.getCellValue(o2.row), "additional-param-map": n2.additionalParamMap, listCode: o2.listCode, "component-id": n2.componentId, "additional-settings": n2.additionalSettings, "page-context": (_j = n2.options) == null ? void 0 : _j.pageContext, "custom-params": l2.getCustomParams(), "grid-ref": o2.gridRef, onProhibitToEdit: l2.prohibitToEdit, onRefreshList: l2.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "custom-params", "grid-ref", "onProhibitToEdit", "onRefreshList"]))], 2)) : void 0 !== n2.columnFormatter && void 0 !== n2.columnFormatter.type && "secretInfo" === n2.columnFormatter.type ? (R(), P("span", { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(u2, { entity: o2.row, "field-label": t2.$escapeHtml(t2.label), "list-code": o2.listCode, "list-name": o2.listName, "page-code": o2.pageCode, prop: o2.column.prop, "table-name": o2.tableName, value: l2.getCellValue(o2.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, tt)) : t2.isObjectProp(o2.column.prop) ? (R(), P(_, { key: 5 }, [o2.column.formatter && "files" === o2.column.formatter.type ? (R(), P("span", et, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ot)])) : "hyperlinks" === ((_k = n2.columnFormatter) == null ? void 0 : _k.type) && true === n2.linkObject.visible ? (R(), $(w2, { key: 1, type: l2.getLinkType(o2.row), onClick: e2[4] || (e2[4] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: A(() => [t2.isShowOverflowTooltip ? (R(), P("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: n2.linkObject.title, class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(V(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (R(), $(f2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 14, it)) : (R(), P("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(V(n2.linkObject.label) + " ", 1), n2.linkObject.icon ? (R(), $(f2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 10, nt))]), _: 1 }, 8, ["type"])) : t2.isShowOverflowTooltip ? (R(), P("span", { key: 2, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 15, lt)) : (R(), P("span", { key: 3, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, st))], 64)) : (R(), P(_, { key: 6 }, ["annex" === o2.column.componentType || "multipartUpload" === o2.column.componentType ? (R(), P("span", rt, [t2.isShowOverflowTooltip ? (R(), P("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.$escapeHtml(l2.getLabel(o2.row)), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { width: n2.cellWidth, entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, at)) : (R(), P("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFileObj(o2.column.fileSet), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, dt))])) : o2.column.formatter && "files" === o2.column.formatter.type ? (R(), P("span", pt, [U("span", { id: o2.column.prop + "DomData" + o2.rowIndex, title: t2.isShowOverflowTooltip ? t2.$escapeHtml(l2.getLabel(o2.row)) : "", class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [H(h2, { entity: o2.row, "file-set-obj": l2.getFilesFormatter(), "is-sql": o2.isSql, label: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, ct)])) : "hyperlinks" === ((_l = n2.columnFormatter) == null ? void 0 : _l.type) && n2.linkObject.visible ? (R(), $(w2, { key: 2, type: "primary", onClick: e2[5] || (e2[5] = (e3) => t2.clickHyperLink(o2.column, o2.row, o2.listCode, o2.rowIndex)) }, { default: A(() => [t2.isShowOverflowTooltip ? (R(), P("span", { key: 0, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: t2.$escapeHtml(n2.linkObject.title), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [B(V(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (R(), $(f2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 14, mt)) : (R(), P("span", { key: 1, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, [B(V(t2.$escapeHtml(n2.linkObject.label)) + " ", 1), n2.linkObject.icon ? (R(), $(f2, { key: 0, iconValue: n2.linkObject.icon }, null, 8, ["iconValue"])) : G("", true)], 10, ut))]), _: 1 })) : o2.column.formatter && "richEditor" === o2.column.formatter.type ? (R(), $(g2, { key: 3, content: t2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: A(() => [U("em", { class: "fa fa-info-circle annex-cell", onClick: e2[6] || (e2[6] = (t3) => l2.showRichEditorContent(o2.row, o2.column, l2.getHeader())) })]), _: 1 }, 8, ["content"])) : o2.column.formatter && "icon" === o2.column.formatter.type ? (R(), $(b2, { key: 4, id: o2.column.prop + "DomData" + o2.rowIndex, column: o2.column, row: o2.row, "row-index": o2.rowIndex, "is-sql": o2.isSql, "list-code": o2.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : t2.isShowOverflowTooltip ? (R(), P("span", { key: 5, id: o2.column.prop + "DomData" + o2.rowIndex, style: J("newline" === n2.textOverflow ? {} : { width: n2.cellWidth + "px" }), title: l2.getLabel(o2.row), class: L("newline" === n2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex)) }, null, 14, ht)) : (R(), P("span", { key: 6, id: o2.column.prop + "DomData" + o2.rowIndex, class: L(o2.isShowForm ? "" : "cell--span") }, V(t2.$escapeHtml(l2.getLabel(o2.row, o2.rowIndex))), 11, ft))], 64))], 2)), n2.showSingleImgFlag ? (R(), $(C2, { key: 2, "file-list": n2.fileList, onClose: e2[7] || (e2[7] = (t3) => n2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : G("", true), n2.showRichEditorViewer ? (R(), $(y2, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l2.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : G("", true)]);
|
|
316
|
+
}], ["__scopeId", "data-v-ee8f5d1d"]]);
|
|
317
317
|
export {
|
|
318
|
-
|
|
318
|
+
wt as default
|
|
319
319
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CirclePlus as e, ZoomIn as t } from "@element-plus/icons-vue";
|
|
2
2
|
import { $emit as o } from "../../utils/gogocodeTransfer.mjs";
|
|
3
|
-
import { getColumnValues as
|
|
3
|
+
import { getColumnValues as r, getContentAlign as i, getHeaderAlign as l, getHeaderLable as a, isRequiredEdit as n } from "./utils.mjs";
|
|
4
4
|
import s from "./dynamic-input.vue.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import d from "./store.mjs";
|
|
6
|
+
import u from "./custom-formatter.mjs";
|
|
7
7
|
import m from "./apis.mjs";
|
|
8
8
|
import { mapGetters as p } from "vuex";
|
|
9
9
|
import c from "./view-image-dialog.vue.mjs";
|
|
@@ -12,23 +12,23 @@ import h from "../../rich-editor/viewer.vue.mjs";
|
|
|
12
12
|
import f from "./components/grid-icon.vue.mjs";
|
|
13
13
|
import b from "./normal-column-content.vue.mjs";
|
|
14
14
|
import g from "./eventBus.mjs";
|
|
15
|
-
import { resolveComponent as w, openBlock as C, createBlock as T, withCtx as D, createElementBlock as P, normalizeClass as S, createElementVNode as v, resolveDynamicComponent as
|
|
15
|
+
import { resolveComponent as w, openBlock as C, createBlock as T, withCtx as D, createElementBlock as P, normalizeClass as S, createElementVNode as v, resolveDynamicComponent as y, createVNode as F, createCommentVNode as R, normalizeStyle as E } from "vue";
|
|
16
16
|
import "./normal-column.vue2.mjs";
|
|
17
17
|
import x from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
18
18
|
import j from "../../fs-preview/src/fs-preview.vue.mjs";
|
|
19
|
-
const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, RichEditorViewer: h, CirclePlus: e, ElIconZoomIn: t, GridIcon: f, NormalColumnContent: b }, name: "NormalColumn", props: { column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null } }, data() {
|
|
19
|
+
const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, RichEditorViewer: h, CirclePlus: e, ElIconZoomIn: t, GridIcon: f, NormalColumnContent: b }, name: "NormalColumn", props: { column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null }, gridRef: { type: Object, default: null } }, data() {
|
|
20
20
|
let e2;
|
|
21
|
-
const t2 =
|
|
21
|
+
const t2 = d.get(this.listCode), o2 = t2.options;
|
|
22
22
|
t2.options.extraParam && t2.options.extraParam.entityMap && (e2 = t2.options.extraParam.entityMap);
|
|
23
|
-
let
|
|
24
|
-
return this.column.controlConfig && (
|
|
23
|
+
let r2 = {};
|
|
24
|
+
return this.column.controlConfig && (r2 = JSON.parse(this.column.controlConfig)), { selectRow: null, that: this, align: "left", headerAlign: "left", isFormSubTable: false, subTableCanAdd: true, subTableCanDelete: true, isShowAdd: false, isShowDelete: false, cellWidth: null, parentFormData: e2, options: o2, controlConfig: r2 };
|
|
25
25
|
}, computed: { filters() {
|
|
26
26
|
if (this.column.filterable) {
|
|
27
|
-
const e2 =
|
|
27
|
+
const e2 = d.get(this.listCode), t2 = r(e2.gridData, this.column.prop) || [], o2 = /* @__PURE__ */ new Set(), i2 = [];
|
|
28
28
|
for (const e3 of t2)
|
|
29
|
-
o2.has(e3) || (o2.add(e3),
|
|
29
|
+
o2.has(e3) || (o2.add(e3), i2.push(e3));
|
|
30
30
|
const l2 = [];
|
|
31
|
-
for (const e3 of
|
|
31
|
+
for (const e3 of i2)
|
|
32
32
|
l2.push({ text: e3, value: e3 });
|
|
33
33
|
return l2;
|
|
34
34
|
}
|
|
@@ -42,7 +42,7 @@ const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, Ric
|
|
|
42
42
|
}, lineEdit() {
|
|
43
43
|
let e2 = false;
|
|
44
44
|
if (this.listCode) {
|
|
45
|
-
const t2 =
|
|
45
|
+
const t2 = d.get(this.listCode);
|
|
46
46
|
e2 = null !== t2.lineEdit && void 0 !== t2.lineEdit && t2.lineEdit;
|
|
47
47
|
}
|
|
48
48
|
return e2;
|
|
@@ -52,9 +52,9 @@ const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, Ric
|
|
|
52
52
|
null != e2 && this.dragColumnProp && this.dragColumnProp === this.column.prop && (this.cellWidth = e2);
|
|
53
53
|
} } }, created() {
|
|
54
54
|
this.column.width && (this.cellWidth = this.column.width - 10);
|
|
55
|
-
const e2 =
|
|
55
|
+
const e2 = d.get(this.listCode);
|
|
56
56
|
e2 && e2.options && e2.options.isFormSubTable && (this.isFormSubTable = e2.options.isFormSubTable), e2 && e2.options && (void 0 !== e2.options.subTableCanAdd && null !== e2.options.subTableCanAdd && (this.subTableCanAdd = e2.options.subTableCanAdd), void 0 !== e2.options.subTableCanDelete && null !== e2.options.subTableCanDelete && (this.subTableCanDelete = e2.options.subTableCanDelete));
|
|
57
|
-
const t2 =
|
|
57
|
+
const t2 = i(this.column, e2);
|
|
58
58
|
t2 && (this.align = t2);
|
|
59
59
|
const o2 = l(this.column, e2);
|
|
60
60
|
o2 && (this.headerAlign = o2), this.label = this.getHeader(), this.column.operations, this.isShowAdd = this.isFormSubTable && "operation" === this.column.prop && this.subTableCanAdd && e2.options && e2.options.showOperationButton, this.isShowDelete = this.isFormSubTable && "operation" === this.column.prop && this.subTableCanDelete && e2.options && e2.options.showOperationButton && e2.isMulitiSelect;
|
|
@@ -67,12 +67,12 @@ const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, Ric
|
|
|
67
67
|
}
|
|
68
68
|
}, unmounted() {
|
|
69
69
|
g.$off("change-add-state");
|
|
70
|
-
}, methods: { ...
|
|
70
|
+
}, methods: { ...u, ...m, getHeader() {
|
|
71
71
|
return a(this.column);
|
|
72
72
|
}, filterHandler: (e2, t2, o2) => t2[o2.property] === e2, refresData(e2) {
|
|
73
73
|
o(this, "refresData", e2);
|
|
74
|
-
}, refresPortData(e2, t2,
|
|
75
|
-
o(this, "refresPortData", e2, t2,
|
|
74
|
+
}, refresPortData(e2, t2, r2) {
|
|
75
|
+
o(this, "refresPortData", e2, t2, r2);
|
|
76
76
|
}, refresPortsData(e2, t2) {
|
|
77
77
|
o(this, "refresPortsData", e2, t2);
|
|
78
78
|
}, refresMainTableFields(e2) {
|
|
@@ -96,10 +96,10 @@ const A = { components: { DynamicInput: s, ViewImageDialog: c, FsPreview: j, Ric
|
|
|
96
96
|
}, isValidateError(e2, t2) {
|
|
97
97
|
return this.isFormSubTable && e2 && e2.validateErrorField && e2.validateErrorField === this.column.prop;
|
|
98
98
|
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, k = ["title", "innerHTML"], M = { style: { "margin-left": "5px" } };
|
|
99
|
-
const q = x(A, [["render", function(e2, t2, o2,
|
|
100
|
-
const a2 = w("CirclePlus"), n2 = w("el-icon"), s2 = w("Remove"),
|
|
101
|
-
return C(), T(
|
|
102
|
-
}], ["__scopeId", "data-v-
|
|
99
|
+
const q = x(A, [["render", function(e2, t2, o2, r2, i2, l2) {
|
|
100
|
+
const a2 = w("CirclePlus"), n2 = w("el-icon"), s2 = w("Remove"), d2 = w("NormalColumnContent"), u2 = w("el-table-column");
|
|
101
|
+
return C(), T(u2, { key: o2.column.prop, align: i2.align, "class-name": o2.column.prop, "filter-method": l2.filterMethod, filters: l2.filters, fixed: l2.fixed, "header-align": i2.headerAlign, prop: o2.column.prop, sortable: l2.sortable, "min-width": l2.getColumnWidth() }, { header: D(() => [o2.column.customHeader ? (C(), T(y(o2.column.customHeader), { key: 1, prop: o2.column.prop, parent: i2.parentFormData, "grid-data": o2.gridData, "current-page": o2.currentPage, label: e2.$escapeHtml(e2.label), column: o2.column, "grid-ref": o2.gridRef }, null, 8, ["prop", "parent", "grid-data", "current-page", "label", "column", "grid-ref"])) : (C(), P("span", { key: 0, class: S([{ is_req: l2.isFieldRequired() }, "normal-column-header"]) }, [v("span", { title: e2.$escapeHtml(e2.label), class: "cell--span required__label", innerHTML: e2.$escapeHtml(e2.label) }, null, 8, k)], 2)), v("span", M, [i2.isShowAdd ? (C(), T(n2, { key: 0, class: "normal-column-header normal-column-header-icon", onClick: l2.createFormSubTableRow }, { default: D(() => [F(a2)]), _: 1 }, 8, ["onClick"])) : R("", true), i2.isShowDelete ? (C(), T(n2, { key: 1, class: "normal-column-header normal-column-header-icon", onClick: l2.deleteFormSubTableRow }, { default: D(() => [F(s2)]), _: 1 }, 8, ["onClick"])) : R("", true)])]), default: D((e3) => [F(d2, { ref: o2.column.prop, "is-sql": o2.isSql, column: o2.column, "list-code": o2.listCode, "new-width": o2.newWidth, "drag-column-prop": o2.dragColumnProp, "right-click-menu-arr": i2.options.rightClickMenuArr, "table-name": o2.tableName, "page-code": o2.pageCode, "list-toolbar-form-data": o2.listToolbarFormData, "list-name": o2.listName, options: i2.options, "current-page": o2.currentPage, "grid-data": o2.gridData, "page-grid-data": o2.pageGridData, row: e3.row, "row-index": e3.$index, "line-edit": l2.lineEdit, "custom-format": o2.customFormat, class: S(l2.isValidateError(e3.row, e3.$index) ? "required_bg required-corner" : ""), style: E(l2.isValidateError(e3.row, e3.$index) ? "display:block;" : ""), "grid-ref": o2.gridRef, onOpenPage: l2.openPageEvent, onRefresData: l2.refresData, onRefreshList: l2.refreshList, onRefresPortData: l2.refresPortData, onRefresPortsData: l2.refresPortsData, onRefresMainTableFields: l2.refresMainTableFields, onProhibitToEdit: l2.prohibitToEdit }, null, 8, ["is-sql", "column", "list-code", "new-width", "drag-column-prop", "right-click-menu-arr", "table-name", "page-code", "list-toolbar-form-data", "list-name", "options", "current-page", "grid-data", "page-grid-data", "row", "row-index", "line-edit", "custom-format", "class", "style", "grid-ref", "onOpenPage", "onRefresData", "onRefreshList", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onProhibitToEdit"])]), _: 1 }, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "min-width"]);
|
|
102
|
+
}], ["__scopeId", "data-v-5724ee41"]]);
|
|
103
103
|
export {
|
|
104
104
|
q as default
|
|
105
105
|
};
|