super-page-runtime 2.3.5 → 2.3.6-sit1
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/es/components/runtime/utils/api/page-expose-util.js +78 -70
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -1
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/common-util.js +62 -47
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +21 -19
- package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
- package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +45 -33
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
- package/dist/es/components/runtime/utils/table-utils.js +57 -32
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +10 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +36 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +131 -131
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -26
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -10
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +48 -48
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +22 -21
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +45 -46
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +60 -51
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +69 -67
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
- package/dist/es/style.css +82 -82
- package/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
|
|
2
2
|
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
|
|
3
|
-
import { getBaseUrl as D, getListCode as T, getRealRestApiPath as
|
|
3
|
+
import { getBaseUrl as D, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
|
|
5
5
|
import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
|
|
6
6
|
import { getOperationButtons as B, popupToPage as P } from "../../../../utils/table-utils.js";
|
|
@@ -22,7 +22,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
22
22
|
const e3 = Y.systemCode, t2 = Y.code;
|
|
23
23
|
let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
|
|
24
24
|
null == n2 && (n2 = []);
|
|
25
|
-
const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: De }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity:
|
|
25
|
+
const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: De }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
|
|
26
26
|
return function(e4) {
|
|
27
27
|
var _a;
|
|
28
28
|
((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
|
|
@@ -56,7 +56,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
56
56
|
}();
|
|
57
57
|
const re = t(), ue = t(), se = function() {
|
|
58
58
|
let e3 = oe + "/dsc/commons/list";
|
|
59
|
-
e3 && (e3 =
|
|
59
|
+
e3 && (e3 = O(e3, ee, te, Y.isTest));
|
|
60
60
|
return e3;
|
|
61
61
|
}(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null, he = t(false), be = q;
|
|
62
62
|
function we() {
|
|
@@ -101,7 +101,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
101
101
|
let t2;
|
|
102
102
|
const n2 = y(e3.events, "click");
|
|
103
103
|
if (n2) {
|
|
104
|
-
if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 =
|
|
104
|
+
if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Oe : "lineEditDelete" === n2 && (t2 = ke), !t2) {
|
|
105
105
|
t2 = x(Y, e3.events, "click");
|
|
106
106
|
}
|
|
107
107
|
} else ie.value[e3.uuid] = e3, t2 = Be;
|
|
@@ -136,15 +136,15 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
136
136
|
}) : ue.value.restoreRow(i2, ce);
|
|
137
137
|
d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Oe(e3, t2, n2, o2, i2) {
|
|
140
140
|
const a2 = ie.value.lineEditUpdate, l2 = J;
|
|
141
141
|
a2.props.base.tableUuid = l2.uuid;
|
|
142
142
|
const r2 = f(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
143
143
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
144
|
-
l3 &&
|
|
145
|
-
}) :
|
|
144
|
+
l3 && Re(e3, t2, n2, o2, i2, a2);
|
|
145
|
+
}) : Re(e3, t2, n2, o2, i2, a2));
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Re(e3, t2, n2, o2, i2, a2) {
|
|
148
148
|
Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((a3) => {
|
|
149
149
|
if (true === a3.canExecute) {
|
|
150
150
|
ue.value.editRow(i2, ce);
|
|
@@ -207,7 +207,6 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
207
207
|
}
|
|
208
208
|
function Ne() {
|
|
209
209
|
if (!ue.value) return;
|
|
210
|
-
Q.configure.name, Q.configure;
|
|
211
210
|
const e3 = U(Q.pageContext, Q.configure);
|
|
212
211
|
if (e3) {
|
|
213
212
|
if (e3.isCalcHeight) {
|
|
@@ -283,7 +282,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
283
282
|
}
|
|
284
283
|
n(() => {
|
|
285
284
|
const e3 = Ke();
|
|
286
|
-
ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle
|
|
285
|
+
ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
287
286
|
ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
288
287
|
}), F.$on(pe + "_close-dialog-get-entity", () => {
|
|
289
288
|
F.$emit(pe + "_close-super-dialog");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as l, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
|
|
2
2
|
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
|
-
import { popupToPage as
|
|
6
|
+
import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as M, getCellStyleUtil as F, getHeaderCellStyleUtil as $ } from "../../chart/table/chart-table-util.js";
|
|
@@ -26,9 +26,9 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
26
26
|
return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
|
|
27
27
|
} }), ae = A;
|
|
28
28
|
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
|
|
29
|
+
const le = t(null);
|
|
30
|
+
function ie() {
|
|
31
|
+
le.value && (oe.value.subTableData = null, le.value.reloadSubTableData(G));
|
|
32
32
|
}
|
|
33
33
|
function ue(e3) {
|
|
34
34
|
if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
|
|
@@ -90,7 +90,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
90
90
|
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
|
|
91
91
|
e5.push(t4);
|
|
92
92
|
}
|
|
93
|
-
return
|
|
93
|
+
return R(B, N, e5, me), e5;
|
|
94
94
|
}();
|
|
95
95
|
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
|
|
96
96
|
}(), c(oe.value, z, B, N);
|
|
@@ -105,20 +105,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
105
105
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
106
106
|
const o2 = n2.propName;
|
|
107
107
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
108
|
-
t2[e3].indexOf(o2) >= 0 &&
|
|
108
|
+
t2[e3].indexOf(o2) >= 0 && ie();
|
|
109
109
|
}
|
|
110
110
|
}), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
111
|
-
|
|
111
|
+
ie();
|
|
112
112
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
113
113
|
!function(e5) {
|
|
114
114
|
Ee(e5), fe = setTimeout(() => {
|
|
115
|
-
|
|
115
|
+
le.value && (le.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
|
|
116
116
|
}, 10);
|
|
117
117
|
}(e4);
|
|
118
118
|
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
119
|
-
|
|
119
|
+
le.value.pickFileDone(e4);
|
|
120
120
|
}), P.$on(G + "-scanDone", (e4) => {
|
|
121
|
-
|
|
121
|
+
le.value.scanDone(e4);
|
|
122
122
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
123
123
|
}), o(() => {
|
|
124
124
|
pe && clearTimeout(pe), fe && clearTimeout(fe);
|
|
@@ -130,16 +130,16 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
130
130
|
if (!e3) return;
|
|
131
131
|
return ge.value[e3.uuid] = e3, he;
|
|
132
132
|
}
|
|
133
|
-
function he(e3, t2, n2, o2, a2,
|
|
134
|
-
const
|
|
135
|
-
u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click",
|
|
133
|
+
function he(e3, t2, n2, o2, a2, l2) {
|
|
134
|
+
const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: l2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[l2.sourceButton.uuid], r2 = N;
|
|
135
|
+
u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
|
|
136
136
|
}
|
|
137
|
-
function Se(e3, t2, n2, o2, a2,
|
|
137
|
+
function Se(e3, t2, n2, o2, a2, l2) {
|
|
138
138
|
if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
|
|
139
|
-
const
|
|
139
|
+
const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
|
|
140
140
|
let r2 = true;
|
|
141
|
-
if (
|
|
142
|
-
const e4 =
|
|
141
|
+
if (i2 && null !== i2) {
|
|
142
|
+
const e4 = i2.get("all_fields");
|
|
143
143
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
144
144
|
}
|
|
145
145
|
if (true === r2 && V && u2 && null !== u2) {
|
|
@@ -148,20 +148,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
148
148
|
}
|
|
149
149
|
return r2;
|
|
150
150
|
}
|
|
151
|
-
function we(e3, t2, n2, o2, a2,
|
|
152
|
-
let
|
|
153
|
-
return true ===
|
|
151
|
+
function we(e3, t2, n2, o2, a2, l2) {
|
|
152
|
+
let i2 = Se();
|
|
153
|
+
return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
|
|
154
154
|
}
|
|
155
|
-
function Te(e3, t2, n2, o2, a2,
|
|
156
|
-
const
|
|
155
|
+
function Te(e3, t2, n2, o2, a2, l2) {
|
|
156
|
+
const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
|
|
157
157
|
let r2 = true;
|
|
158
|
-
if (
|
|
159
|
-
const e4 =
|
|
158
|
+
if (i2 && null !== i2) {
|
|
159
|
+
const e4 = i2.get("all_fields");
|
|
160
160
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
161
161
|
}
|
|
162
162
|
if (true === r2 && V && u2 && null !== u2) {
|
|
163
163
|
let e4 = u2.get(V);
|
|
164
|
-
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (
|
|
164
|
+
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (l2) r2 = true;
|
|
165
165
|
else {
|
|
166
166
|
const t3 = function(e5) {
|
|
167
167
|
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
@@ -172,27 +172,27 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
172
172
|
}
|
|
173
173
|
return r2;
|
|
174
174
|
}
|
|
175
|
-
function xe(e3, t2, n2, o2, a2,
|
|
176
|
-
let
|
|
177
|
-
return true ===
|
|
175
|
+
function xe(e3, t2, n2, o2, a2, l2) {
|
|
176
|
+
let i2 = Te(0, 0, n2, 0, 0, l2);
|
|
177
|
+
return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
|
|
178
178
|
}
|
|
179
179
|
function Ce(e3, t2, n2, o2, a2) {
|
|
180
|
-
|
|
180
|
+
le.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2 });
|
|
181
181
|
}
|
|
182
182
|
function De(e3, t2, n2, o2, a2) {
|
|
183
|
-
|
|
183
|
+
le.value.deleteRow(a2, G, false);
|
|
184
184
|
}
|
|
185
185
|
function ye(e3) {
|
|
186
186
|
T(X, Y, e3);
|
|
187
187
|
}
|
|
188
188
|
function Pe(e3) {
|
|
189
|
-
B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] = { pageSize
|
|
189
|
+
B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ie(e3) {
|
|
192
192
|
const t2 = e3.key, n2 = e3.value;
|
|
193
193
|
B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Re(e3) {
|
|
196
196
|
const t2 = B.code + "_";
|
|
197
197
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
198
198
|
}
|
|
@@ -245,7 +245,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
245
245
|
const e3 = re();
|
|
246
246
|
e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
|
|
247
247
|
}(), j2({ createRow: function() {
|
|
248
|
-
return
|
|
248
|
+
return le.value.createRow(G);
|
|
249
249
|
}, getSelections: function() {
|
|
250
250
|
return J.value;
|
|
251
251
|
}, getSelectionIds: function() {
|
|
@@ -258,34 +258,34 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
258
258
|
}, getTableConfigure: function() {
|
|
259
259
|
return N;
|
|
260
260
|
}, validatorSunTableListData: function() {
|
|
261
|
-
return
|
|
261
|
+
return le.value.validatorSunTableListData();
|
|
262
262
|
}, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
|
|
263
|
-
if (
|
|
263
|
+
if (le.value) return le.value.getTableSelectOptions(G);
|
|
264
264
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
265
|
-
|
|
265
|
+
le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
|
|
266
266
|
}, doLayout: function(e3) {
|
|
267
|
-
|
|
267
|
+
le.value && le.value.doLayout(e3);
|
|
268
268
|
}, changeOperationAddState: function(e3) {
|
|
269
|
-
|
|
269
|
+
le.value && le.value.changeOperationAddState(e3);
|
|
270
270
|
}, scrollTo: function(e3, t2) {
|
|
271
|
-
|
|
271
|
+
le.value && le.value.scrollTo(e3, t2);
|
|
272
272
|
}, setScrollTop: function(e3) {
|
|
273
|
-
|
|
273
|
+
le.value && le.value.setScrollTop(e3);
|
|
274
274
|
}, setScrollLeft: function(e3) {
|
|
275
|
-
|
|
275
|
+
le.value && le.value.setScrollLeft(e3);
|
|
276
276
|
}, getSuperGridRef: function() {
|
|
277
|
-
return
|
|
277
|
+
return le.value;
|
|
278
278
|
}, getSuperGridTableRef: function() {
|
|
279
|
-
return
|
|
279
|
+
return le.value.getSuperGridRef();
|
|
280
280
|
}, setCurrentRowIndex: function(e3) {
|
|
281
281
|
var _a;
|
|
282
|
-
(_a =
|
|
282
|
+
(_a = le.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
283
283
|
}, setScrollTopByRowIndex: function(e3) {
|
|
284
284
|
var _a;
|
|
285
|
-
(_a =
|
|
285
|
+
(_a = le.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
286
286
|
} }), (e3, t2) => {
|
|
287
287
|
const n2 = a("super-grid");
|
|
288
|
-
return
|
|
288
|
+
return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
|
|
289
289
|
};
|
|
290
290
|
} });
|
|
291
291
|
export {
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t,
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
s.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
|
|
14
|
-
const S = c.configure.runtime ? c.configure.runtime : {};
|
|
15
|
-
S.style, S.class;
|
|
16
|
-
const v = t(null);
|
|
17
|
-
function m(e3) {
|
|
18
|
-
c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as l, createCommentVNode as a, unref as r } from "vue";
|
|
2
|
+
import i from "./sub-table-runtime.vue.js";
|
|
3
|
+
import c from "./main-table-runtime.vue.js";
|
|
4
|
+
const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
|
|
5
|
+
const s = e2, g = s.pageContext.pageType, p = t(null), d = s.configure.uuid, v = s.pageContext.superGridItems, S = v ? v[d] : null;
|
|
6
|
+
p.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
|
|
7
|
+
const T = s.configure.runtime ? s.configure.runtime : {};
|
|
8
|
+
T.style, T.class;
|
|
9
|
+
const C = t(true), b = t(null);
|
|
10
|
+
let m = null;
|
|
11
|
+
function E(e3) {
|
|
12
|
+
s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
19
13
|
}
|
|
20
|
-
return
|
|
21
|
-
|
|
14
|
+
return n(() => {
|
|
15
|
+
m && clearTimeout(m);
|
|
16
|
+
}), f2({ refresh: function(e3, t2, n2, u2) {
|
|
17
|
+
if (g && "list" === g) return b.value.refresh(e3, t2, n2, u2);
|
|
22
18
|
}, createRow: function() {
|
|
23
|
-
return
|
|
19
|
+
return b.value.createRow();
|
|
24
20
|
}, clearSelections: function() {
|
|
25
|
-
return
|
|
21
|
+
return b.value.clearSelections();
|
|
26
22
|
}, getSelections: function() {
|
|
27
|
-
return
|
|
23
|
+
return b.value.getSelections();
|
|
28
24
|
}, getSelectionIds: function() {
|
|
29
|
-
return
|
|
25
|
+
return b.value.getSelectionIds();
|
|
30
26
|
}, getTableConfigure: function() {
|
|
31
|
-
return
|
|
27
|
+
return b.value.getTableConfigure();
|
|
32
28
|
}, isDeleteChange: function(e3) {
|
|
33
|
-
|
|
29
|
+
g && "list" === g && b.value.isDeleteChange(e3);
|
|
34
30
|
}, validatorSunTableListData: function() {
|
|
35
|
-
if (
|
|
31
|
+
if (g && "form" === g) return b.value.validatorSunTableListData();
|
|
36
32
|
}, showMobileSearch: function() {
|
|
37
|
-
|
|
33
|
+
b.value.showMobileSearch();
|
|
38
34
|
}, getTableSelectOptions: function() {
|
|
39
|
-
if (
|
|
35
|
+
if (b.value) return b.value.getTableSelectOptions();
|
|
40
36
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
41
|
-
|
|
37
|
+
b.value && b.value.dynamicControlTableEdit(e3, t2, n2);
|
|
42
38
|
}, getTableUuid: function() {
|
|
43
|
-
return
|
|
39
|
+
return s.configure.uuid;
|
|
44
40
|
}, doLayout: function(e3) {
|
|
45
|
-
|
|
41
|
+
b.value && b.value.doLayout(e3);
|
|
46
42
|
}, changeOperationAddState: function(e3) {
|
|
47
|
-
|
|
43
|
+
b.value && b.value.changeOperationAddState(e3);
|
|
48
44
|
}, scrollTo: function(e3, t2) {
|
|
49
45
|
var _a;
|
|
50
|
-
(_a =
|
|
46
|
+
(_a = b.value) == null ? void 0 : _a.scrollTo(e3, t2);
|
|
51
47
|
}, setScrollTop: function(e3) {
|
|
52
48
|
var _a;
|
|
53
|
-
(_a =
|
|
49
|
+
(_a = b.value) == null ? void 0 : _a.setScrollTop(e3);
|
|
54
50
|
}, setScrollLeft: function(e3) {
|
|
55
51
|
var _a;
|
|
56
|
-
(_a =
|
|
52
|
+
(_a = b.value) == null ? void 0 : _a.setScrollLeft(e3);
|
|
57
53
|
}, getSuperGridRef: function() {
|
|
58
54
|
var _a;
|
|
59
|
-
return (_a =
|
|
55
|
+
return (_a = b.value) == null ? void 0 : _a.getSuperGridRef();
|
|
60
56
|
}, getSuperGridTableRef: function() {
|
|
61
57
|
var _a;
|
|
62
|
-
return (_a =
|
|
58
|
+
return (_a = b.value) == null ? void 0 : _a.getSuperGridTableRef();
|
|
63
59
|
}, setCurrentRowIndex: function(e3) {
|
|
64
60
|
var _a;
|
|
65
|
-
(_a =
|
|
61
|
+
(_a = b.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
66
62
|
}, setScrollTopByRowIndex: function(e3) {
|
|
67
63
|
var _a;
|
|
68
|
-
(_a =
|
|
69
|
-
}
|
|
64
|
+
(_a = b.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
65
|
+
}, reloadSubTable: function() {
|
|
66
|
+
C.value = false, m = setTimeout(() => {
|
|
67
|
+
C.value = true;
|
|
68
|
+
}, 10);
|
|
69
|
+
} }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), l(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (o(), l(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
|
|
70
70
|
} });
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
f as default
|
|
73
73
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./tree-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-89330064"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
|
|
2
2
|
import T from "../../../../../../assets/folder.png.js";
|
|
3
3
|
import I from "../../../../../../assets/file.png.js";
|
|
4
4
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
@@ -13,14 +13,14 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
13
13
|
((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
|
|
14
14
|
if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
|
|
15
15
|
const a2 = e3.functionCodes[t2];
|
|
16
|
-
if (B(a2)) return void q.value.push(e3);
|
|
16
|
+
if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
|
|
17
17
|
}
|
|
18
18
|
else q.value.push(e3);
|
|
19
19
|
}) : q.value = X.configure.props.contextMenus);
|
|
20
20
|
let F = V(X.pageContext, X.configure);
|
|
21
21
|
const G = a({ get: () => L(Y, F), set(e3) {
|
|
22
22
|
b(Y, F, e3);
|
|
23
|
-
} }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]),
|
|
23
|
+
} }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
|
|
24
24
|
n(() => {
|
|
25
25
|
l(() => {
|
|
26
26
|
const e3 = G.value;
|
|
@@ -28,21 +28,21 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
28
28
|
});
|
|
29
29
|
}), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
|
|
30
30
|
oe.value = e3, le.value = true;
|
|
31
|
-
}), o(
|
|
31
|
+
}), o(ue, (e3) => {
|
|
32
32
|
ie.value = true, te.value.filter(e3);
|
|
33
33
|
});
|
|
34
34
|
const pe = (e3, t2) => !e3 || t2.name.includes(e3);
|
|
35
35
|
function ve(e3, t2, a2) {
|
|
36
|
-
|
|
36
|
+
de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
|
|
37
37
|
}
|
|
38
38
|
function fe(e3, t2) {
|
|
39
39
|
let a2 = "0";
|
|
40
40
|
a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
|
|
41
|
-
const n2 = { parentNodeId: e4, data: t3.data, searchValue:
|
|
41
|
+
const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
|
|
42
42
|
M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
|
|
43
43
|
if (ie.value = false, a3(n3), "0" === e4) {
|
|
44
44
|
!function(e5, t4) {
|
|
45
|
-
const a4 = { parentNodeId: e5, data: t4.data, searchValue:
|
|
45
|
+
const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
|
|
46
46
|
M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
|
|
47
47
|
ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
|
|
48
48
|
});
|
|
@@ -54,10 +54,10 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
54
54
|
const ge = t({}), me = (e3, t2, a2, n2) => {
|
|
55
55
|
if (se.value) return void z.warning("请先保存当前编辑节点!");
|
|
56
56
|
document.removeEventListener("click", he), ge.value = a2, A.value = true;
|
|
57
|
-
const { clientX: l2, clientY: o2 } = e3,
|
|
58
|
-
if (
|
|
59
|
-
const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } =
|
|
60
|
-
|
|
57
|
+
const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
|
|
58
|
+
if (d2) {
|
|
59
|
+
const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
|
|
60
|
+
d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
|
|
61
61
|
}
|
|
62
62
|
document.addEventListener("click", he);
|
|
63
63
|
}, he = () => {
|
|
@@ -89,7 +89,7 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
89
89
|
te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
|
|
90
90
|
};
|
|
91
91
|
return U2({ getSelectNode: function() {
|
|
92
|
-
return
|
|
92
|
+
return de.value;
|
|
93
93
|
}, expandNode: function(e3) {
|
|
94
94
|
e3.loaded = false, e3.expand();
|
|
95
95
|
}, loadTreeNodes: function() {
|
|
@@ -106,8 +106,8 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
106
106
|
te.value.setChecked(e3, t2, a2);
|
|
107
107
|
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
|
|
108
108
|
var _a2;
|
|
109
|
-
const a2 =
|
|
110
|
-
return i(),
|
|
109
|
+
const a2 = d("el-input"), n2 = d("el-button"), l2 = d("SuperIcon"), o2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => ue.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
|
|
111
111
|
"" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
|
|
112
112
|
ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
|
|
113
113
|
}) : E(e5, X.configure, X.pageContext).then((t3) => {
|
|
@@ -115,7 +115,7 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
115
115
|
})) : z.warning("请输入节点名称");
|
|
116
116
|
})(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
|
|
117
117
|
re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
|
|
118
|
-
})(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(),
|
|
118
|
+
})(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), u("span", { key: 1, title: o3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(l2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e4, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
|
|
119
119
|
if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
120
|
else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
121
|
ke(e5);
|
|
@@ -8,24 +8,25 @@ import { getComponentRef as D } from "../../../../utils/global-refs.js";
|
|
|
8
8
|
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import S from "../../../../utils/eventBus.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { functions as U } from "../../../../utils/api/page-expose-util.js";
|
|
12
|
+
const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
13
|
+
const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, G = C(q.pageContext, q.configure), H = t({ get: () => y(z, G), set(e3) {
|
|
14
|
+
x(z, G, e3);
|
|
15
|
+
} }), P = q.configure.runtime ? q.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
|
|
15
16
|
let t2 = {};
|
|
16
17
|
if (e3) for (let o2 in e3) {
|
|
17
18
|
const a2 = e3[o2];
|
|
18
19
|
t2[o2] = b(q.pageContext, a2);
|
|
19
20
|
}
|
|
20
21
|
return t2;
|
|
21
|
-
}(
|
|
22
|
-
function
|
|
22
|
+
}(P.customParams ? P.customParams : {}), K = E(q.pageContext), L = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
|
|
23
|
+
function M(e3, t2) {
|
|
23
24
|
j(z, e3, t2);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
V(q.pageContext, e3);
|
|
26
|
+
function N(e3) {
|
|
27
|
+
U.isHasFieldAuthPermission(q.configure) && V(q.pageContext, e3);
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function Q() {
|
|
29
30
|
const e3 = q.pageContext.tableUuids;
|
|
30
31
|
e3 && e3.forEach((e4) => {
|
|
31
32
|
const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
|
|
@@ -33,27 +34,27 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
|
|
36
|
-
const
|
|
37
|
-
function
|
|
38
|
-
k(
|
|
37
|
+
const T = q.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
|
|
38
|
+
function te(e3) {
|
|
39
|
+
k(H.value, q.pageContext, q.configure, e3);
|
|
39
40
|
}
|
|
40
41
|
return a(() => {
|
|
41
|
-
S.$on(
|
|
42
|
+
S.$on(X.value + "-scanDone", (e3) => {
|
|
42
43
|
const t2 = e3.result;
|
|
43
|
-
x(z,
|
|
44
|
-
}), S.$on(
|
|
45
|
-
|
|
44
|
+
x(z, G, t2);
|
|
45
|
+
}), S.$on(X.value + "-pickFileDone", (e3) => {
|
|
46
|
+
Y.value.pickFileDone(e3);
|
|
46
47
|
}), n(() => {
|
|
47
|
-
const e3 =
|
|
48
|
-
R(e3, q.pageContext, q.configure, { formItemRef:
|
|
48
|
+
const e3 = H.value;
|
|
49
|
+
R(e3, q.pageContext, q.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
49
50
|
});
|
|
50
51
|
}), i(() => {
|
|
51
|
-
S.$off(
|
|
52
|
+
S.$off(X.value + "-scanDone"), S.$off(X.value + "-pickFileDone");
|
|
52
53
|
}), $2({ getCustomRef: function() {
|
|
53
|
-
return
|
|
54
|
+
return Y.value;
|
|
54
55
|
} }), (e3, t2) => {
|
|
55
56
|
const o2 = u("el-form-item");
|
|
56
|
-
return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref:
|
|
57
|
+
return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: c(m(A)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [L.value ? (p(), r("div", F, [(p(), l(d(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", O, [(p(), l(d(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
57
58
|
};
|
|
58
59
|
} });
|
|
59
60
|
export {
|