super-page-runtime 2.2.21 → 2.2.22
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 +1 -3
- package/dist/es/components/runtime/utils/common-util.js +22 -22
- package/dist/es/components/runtime/utils/table-utils.js +26 -31
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +33 -30
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -10
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +186 -174
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +46 -43
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -21
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +56 -53
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +80 -77
- package/dist/es/components/runtime/views/home-chart.vue.js +23 -21
- package/dist/es/components/runtime/views/super-page.vue.js +42 -41
- package/dist/es/style.css +1 -1
- package/package.json +2 -2
|
@@ -76,9 +76,7 @@ const C = { showElement: function(e2, t2, n2) {
|
|
|
76
76
|
const e3 = o2.getConfigure();
|
|
77
77
|
e3 && e3.uuid && e3.name && "table" === e3.name && (i2 = e3.uuid);
|
|
78
78
|
}
|
|
79
|
-
i2 &&
|
|
80
|
-
s.$emit("_refreshChildData_" + i2, n2);
|
|
81
|
-
}, 10);
|
|
79
|
+
i2 && s.$emit("_refreshChildData_" + i2, n2);
|
|
82
80
|
}, getServerConfigValue: (e2) => window.$vueApp.config.globalProperties[e2], getBackendUrl: (e2) => y(e2.backendUrl, false), getPlateBackendUrl: () => window.$vueApp.config.globalProperties.baseAPI, getEntity: (e2) => e2.entity.data, getEntityValue: (e2, t2) => e2.entity.data ? e2.entity.data[t2] : null, getPageData: (e2) => e2.entity.page, getPageDataValue: (e2, t2) => e2.entity.page ? e2.entity.page[t2] : null, getAdditionalParams: (e2) => u(e2), getAdditionalParamValue(e2, t2) {
|
|
83
81
|
const n2 = u(e2);
|
|
84
82
|
return n2 ? n2[t2] : null;
|
|
@@ -7,29 +7,29 @@ function n(t2, r2) {
|
|
|
7
7
|
if (r2) return t2;
|
|
8
8
|
{
|
|
9
9
|
const { baseURL: r3, projectModel: n2 } = window.$vueApp.config.globalProperties;
|
|
10
|
-
let
|
|
11
|
-
return "developing.model" === n2 || t2 && (
|
|
10
|
+
let i2 = r3;
|
|
11
|
+
return "developing.model" === n2 || t2 && (i2 = e(t2)), i2;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
let
|
|
14
|
+
function i(e2, t2, r2, i2) {
|
|
15
|
+
let o2 = e2;
|
|
16
16
|
if (e2 && r2 && !function(e3) {
|
|
17
17
|
return 0 === e3.indexOf("http:") || 0 === e3.indexOf("https:");
|
|
18
18
|
}(e2)) {
|
|
19
|
-
|
|
19
|
+
o2 = n(r2, i2) + "/" + t2 + e2;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return o2;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function o(e2) {
|
|
24
24
|
if (!e2) return e2;
|
|
25
25
|
const r2 = t();
|
|
26
26
|
if (Array.isArray(e2)) {
|
|
27
|
-
const t2 = [], n2 = [],
|
|
27
|
+
const t2 = [], n2 = [], i2 = "~-~-";
|
|
28
28
|
return e2.forEach((e3) => {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const u2 =
|
|
32
|
-
r2 === s2 && n2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName:
|
|
29
|
+
const o2 = e3.templateName;
|
|
30
|
+
if (o2.indexOf(i2) > 0) {
|
|
31
|
+
const u2 = o2.substring(0, o2.indexOf(i2)), s2 = o2.substring(o2.indexOf(i2) + i2.length, o2.lastIndexOf(i2)), l2 = o2.substring(o2.lastIndexOf(i2) + i2.length);
|
|
32
|
+
r2 === s2 && n2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName: l2 }), n2.push(u2));
|
|
33
33
|
} else t2.push(e3);
|
|
34
34
|
}), t2;
|
|
35
35
|
}
|
|
@@ -40,17 +40,17 @@ function u(e2) {
|
|
|
40
40
|
function s(e2, t2, r2) {
|
|
41
41
|
return "V" + t2 + "__" + e2 + "__" + r2;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function l(e2) {
|
|
44
44
|
if ("object" != typeof e2 || null == e2) return e2;
|
|
45
45
|
const t2 = Array.isArray(e2) ? [] : {};
|
|
46
|
-
for (const r2 in e2) e2.hasOwnProperty(r2) && (t2[r2] =
|
|
46
|
+
for (const r2 in e2) e2.hasOwnProperty(r2) && (t2[r2] = l(e2[r2]));
|
|
47
47
|
return t2;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function a(e2) {
|
|
50
50
|
let t2;
|
|
51
51
|
return e2.entity && e2.entity.data && (t2 = e2.entity.data.WORKFLOW_ID, t2 || (t2 = e2.entity.data.workflow_id), t2 || (t2 = e2.entity.data.workflowId)), t2;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function f(e2) {
|
|
54
54
|
var _a, _b, _c, _d;
|
|
55
55
|
let t2;
|
|
56
56
|
if (e2 && ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
|
|
@@ -78,24 +78,24 @@ function c(e2) {
|
|
|
78
78
|
function d(e2, t2) {
|
|
79
79
|
if (e2 && t2) {
|
|
80
80
|
let t3 = e2.jumpPageMobileOpenMode;
|
|
81
|
-
t3 || (e2.jumpPageOpenMode ? (t3 = e2.jumpPageOpenMode, "newTab" === t3 && (t3 = "refresh")) : t3 = "refresh"), "refresh" === t3 && (e2.dialogType = "drawer", e2.jumpPageWidth = "100%", e2.isRefreshWhenClosePopup = true), e2.jumpMode = t3, e2.jumpPageMobileOpenMode = t3;
|
|
81
|
+
t3 || (e2.jumpPageOpenMode ? (t3 = e2.jumpPageOpenMode, "newTab" === t3 && (t3 = "refresh")) : t3 = "refresh"), "refresh" === t3 && (e2.dialogType = "drawer", e2.jumpPageWidth = "100%", e2.isRefreshWhenClosePopup = true), e2.jumpMode = t3, e2.jumpPageMobileOpenMode = t3, e2.jumpPageTitle || (e2.jumpPageTitle = "QMS质量管理系统");
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
function g(e2, t2) {
|
|
85
85
|
return null === e2[t2] || void 0 === e2[t2] || "" === e2[t2];
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
l as deepCopy,
|
|
89
89
|
n as getBaseUrl,
|
|
90
90
|
s as getListCode,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
f as getPropClassName,
|
|
92
|
+
i as getRealRestApiPath,
|
|
93
|
+
a as getWorkflowId,
|
|
94
94
|
r as isArrayFn,
|
|
95
95
|
p as isNumber,
|
|
96
96
|
g as isVariableInvalidValue,
|
|
97
97
|
c as isWorkflowPage,
|
|
98
|
-
|
|
98
|
+
o as packageTemplateFiles,
|
|
99
99
|
d as refreshMobileDialogType,
|
|
100
100
|
u as upperFirstCase
|
|
101
101
|
};
|
|
@@ -3,54 +3,49 @@ import "agilebuilder-ui/src/utils/util";
|
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import t from "./eventBus.js";
|
|
5
5
|
import { getPermissionCodes as e } from "./page-init-util.js";
|
|
6
|
-
import {
|
|
7
|
-
import { $t as
|
|
8
|
-
import { ExpressionEvaluator as
|
|
9
|
-
function
|
|
6
|
+
import { getCustomFunc as i } from "./events/event-util.js";
|
|
7
|
+
import { $t as o } from "./i18n-util.js";
|
|
8
|
+
import { ExpressionEvaluator as s } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
9
|
+
function n(e2) {
|
|
10
10
|
const i2 = e2.pageContext && e2.pageContext.code;
|
|
11
11
|
t.$emit(i2 + "_open-dialog", e2);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function r(t2, e2) {
|
|
14
14
|
const i2 = t2.tableName;
|
|
15
15
|
if (!e2 && i2) return i2;
|
|
16
16
|
let o2;
|
|
17
17
|
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
if ("custom" ===
|
|
24
|
-
const
|
|
25
|
-
|
|
19
|
+
function u(t2, i2, s2, n2) {
|
|
20
|
+
const r2 = !(!i2.props || !i2.props.base) && i2.props.base.showOperation, u2 = i2.btnList;
|
|
21
|
+
r2 && u2 && u2.forEach((i3) => {
|
|
22
|
+
const r3 = {}, u3 = Object.assign({}, i3.props.base);
|
|
23
|
+
if ("custom" === i3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === i3.isPermission || i3.isPermission + "" == "true") {
|
|
24
|
+
const o2 = e(i3, t2);
|
|
25
|
+
o2 && (u3.permission = o2);
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
else {
|
|
29
|
-
const e2 = i(t2, o3.events, "click");
|
|
30
|
-
u3.onClick = e2;
|
|
31
|
-
}
|
|
32
|
-
n2.push(u3);
|
|
27
|
+
u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2 && (r3.onClick = n2(i3)), s2.push(r3);
|
|
33
28
|
});
|
|
34
29
|
}
|
|
35
|
-
function
|
|
30
|
+
function l(t2, e2, o2, n2) {
|
|
36
31
|
let r2;
|
|
37
|
-
const u2 =
|
|
32
|
+
const u2 = o2 == null ? void 0 : o2.some((o3) => {
|
|
38
33
|
let u3 = false;
|
|
39
|
-
if (
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
|
|
34
|
+
if (o3.scopeFunc) {
|
|
35
|
+
const s2 = i(t2, o3.scopeFunc);
|
|
36
|
+
if (s2) {
|
|
37
|
+
s2.apply(s2, [{ pageContext: t2, configureObj: e2, row: n2 }]) && (u3 = true);
|
|
43
38
|
}
|
|
44
|
-
} else if (
|
|
45
|
-
|
|
39
|
+
} else if (o3.showCondition && o3.showCondition.length > 0) {
|
|
40
|
+
s.evaluate(t2, o3.showCondition, n2) && (u3 = true);
|
|
46
41
|
} else u3 = true;
|
|
47
|
-
if (u3) return r2 =
|
|
42
|
+
if (u3) return r2 = o3, true;
|
|
48
43
|
});
|
|
49
44
|
return { show: u2, toPage: r2 };
|
|
50
45
|
}
|
|
51
46
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
l as expressJump,
|
|
48
|
+
u as getOperationButtons,
|
|
49
|
+
r as getTableNameByTableUuid,
|
|
50
|
+
n as popupToPage
|
|
56
51
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./common-homepage-search.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = o(e, [["__scopeId", "data-v-
|
|
4
|
+
const m = o(e, [["__scopeId", "data-v-16a29b68"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as o,
|
|
2
|
-
import
|
|
3
|
-
import { updateChartDatasources as
|
|
4
|
-
import { ElLoading as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
|
|
2
|
+
import f from "../../object-render.vue.js";
|
|
3
|
+
import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { ElLoading as y, ElMessage as C } from "element-plus";
|
|
5
|
+
import S from "agilebuilder-ui/src/utils/request";
|
|
6
6
|
import "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import "agilebuilder-ui/src/utils/util";
|
|
8
8
|
import "agilebuilder-ui/src/utils/auth";
|
|
@@ -14,47 +14,50 @@ import "../../../../utils/page-store.js";
|
|
|
14
14
|
import "agilebuilder-ui/src/utils/i18n-util";
|
|
15
15
|
import "vue-i18n";
|
|
16
16
|
import "../../../../utils/events/print-label.js";
|
|
17
|
-
const
|
|
18
|
-
} } }, setup(e2, { expose:
|
|
19
|
-
const
|
|
17
|
+
const b = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
|
|
18
|
+
} } }, setup(e2, { expose: x2 }) {
|
|
19
|
+
const N = e2, _ = t(false), J = t({}), j = t(0);
|
|
20
|
+
let I;
|
|
20
21
|
o(() => {
|
|
21
|
-
setTimeout(() => {
|
|
22
|
-
|
|
22
|
+
I = setTimeout(() => {
|
|
23
|
+
J.value = JSON.parse(JSON.stringify(N.pageContext.entity));
|
|
23
24
|
}, 200);
|
|
25
|
+
}), i(() => {
|
|
26
|
+
I && clearTimeout(I);
|
|
24
27
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
const e3 =
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const k = t([]), w = () => {
|
|
29
|
+
_.value = false;
|
|
30
|
+
}, T = () => {
|
|
31
|
+
const e3 = y.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
|
|
32
|
+
v(N.pageContext, N.pageContext.initChartServiceConfigs, null, false).then(() => {
|
|
33
|
+
_.value = false;
|
|
31
34
|
}).finally(() => {
|
|
32
|
-
|
|
35
|
+
_.value = false, e3.close();
|
|
33
36
|
});
|
|
34
37
|
};
|
|
35
|
-
function w() {
|
|
36
|
-
x.pageContext.entity = JSON.parse(JSON.stringify(_.value)), J.value++;
|
|
37
|
-
}
|
|
38
38
|
function H() {
|
|
39
|
+
N.pageContext.entity = JSON.parse(JSON.stringify(J.value)), j.value++;
|
|
40
|
+
}
|
|
41
|
+
function A() {
|
|
39
42
|
const e3 = {};
|
|
40
|
-
|
|
43
|
+
N.pageContext.variables.forEach((t3) => {
|
|
41
44
|
const o3 = "${page." + t3.name + "}";
|
|
42
|
-
e3[o3] =
|
|
45
|
+
e3[o3] = h(N.pageContext.entity, o3, null);
|
|
43
46
|
});
|
|
44
47
|
let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), o2 = {};
|
|
45
|
-
t2 && (o2 = JSON.parse(t2)), o2[
|
|
48
|
+
t2 && (o2 = JSON.parse(t2)), o2[N.configure.homeChartSettingUserId] = e3;
|
|
46
49
|
const i2 = JSON.stringify(e3);
|
|
47
|
-
window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)),
|
|
48
|
-
|
|
50
|
+
window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), S.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: i2 }).then((e4) => {
|
|
51
|
+
C.success("保存成功"), T();
|
|
49
52
|
});
|
|
50
53
|
}
|
|
51
|
-
return
|
|
52
|
-
|
|
54
|
+
return x2({ openSearch: () => {
|
|
55
|
+
_.value = true, k.value = N.configure.pushHomepage.searchConditions;
|
|
53
56
|
} }), (t2, o2) => {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
57
|
+
const i2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
|
|
58
|
+
return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", b, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => o2[1] || (o2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { onClick: H }, { default: n(() => o2[2] || (o2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => o2[3] || (o2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
|
|
56
59
|
};
|
|
57
60
|
} });
|
|
58
61
|
export {
|
|
59
|
-
|
|
62
|
+
x as default
|
|
60
63
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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, createVNode as u, unref as s } from "vue";
|
|
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 y, getEventNameByType as C, getEventFuncByType as
|
|
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 y, getEventNameByType as C, getEventFuncByType as E, getHandleEvent as x } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getBaseUrl as D, getListCode as k, getRealRestApiPath as O, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as R, 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";
|
|
@@ -95,8 +95,8 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
95
95
|
let t2;
|
|
96
96
|
const n2 = C(e3.events, "click");
|
|
97
97
|
if (n2) {
|
|
98
|
-
if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = ye : "lineEditUpdate" === n2 ? t2 = Ce : "lineEditDelete" === n2 && (t2 =
|
|
99
|
-
t2 =
|
|
98
|
+
if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = ye : "lineEditUpdate" === n2 ? t2 = Ce : "lineEditDelete" === n2 && (t2 = xe), !t2) {
|
|
99
|
+
t2 = E(q, e3.events, "click");
|
|
100
100
|
}
|
|
101
101
|
} else te.value[e3.uuid] = e3, t2 = Te;
|
|
102
102
|
return t2;
|
|
@@ -135,10 +135,10 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
135
135
|
a2.props.base.tableUuid = l2.uuid;
|
|
136
136
|
const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
137
137
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
138
|
-
l3 &&
|
|
139
|
-
}) :
|
|
138
|
+
l3 && Ee(e3, t2, n2, o2, i2, a2);
|
|
139
|
+
}) : Ee(e3, t2, n2, o2, i2, a2));
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Ee(e3, t2, n2, o2, i2, a2) {
|
|
142
142
|
q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((a3) => {
|
|
143
143
|
if (true === a3.canExecute) {
|
|
144
144
|
ie.value.editRow(i2, le);
|
|
@@ -148,7 +148,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
148
148
|
q.editData = null;
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function xe(e3, t2, n2, o2, i2) {
|
|
152
152
|
const a2 = te.value.lineEditDelete, l2 = G;
|
|
153
153
|
a2.props.base.tableUuid = l2.uuid;
|
|
154
154
|
const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
@@ -210,8 +210,8 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
function Te(e3, t2, n2, o2, i2, a2) {
|
|
213
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2 }, r2 = te.value[a2.sourceButton.uuid], u2 = G;
|
|
214
|
-
r2.props.base.tableUuid = u2.uuid,
|
|
213
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = te.value[a2.sourceButton.uuid], u2 = G;
|
|
214
|
+
r2.props.base.tableUuid = u2.uuid, x(null, q, r2, "click", l2);
|
|
215
215
|
}
|
|
216
216
|
function Re(e3) {
|
|
217
217
|
"close_open_win" === e3.data && ie.value && ie.value.refresh();
|
|
@@ -286,7 +286,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
286
286
|
}), o(() => W.pageContext.entity.data, (e3) => {
|
|
287
287
|
ke(W.pageContext.entity.data);
|
|
288
288
|
}), i(() => {
|
|
289
|
-
B.$off(re + "-close-component-page-dialog"), B.$off(re + "_close-dialog-get-entity"), B.$off(le + "-pickFileDone"), B.$off(le + "-scanDone");
|
|
289
|
+
window.removeEventListener("message", Re), B.$off(re + "-close-component-page-dialog"), B.$off(re + "_close-dialog-get-entity"), B.$off(le + "-pickFileDone"), B.$off(le + "-scanDone");
|
|
290
290
|
}), H2({ refresh: function(e3, t2, n2, o2) {
|
|
291
291
|
return ie.value.refresh(e3, t2, n2, o2);
|
|
292
292
|
}, createRow: function() {
|