super-page-runtime 2.1.932 → 2.2.0
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/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -300
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +838 -2285
- package/dist/es/components/runtime/utils/events/validator-util.js +237 -536
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +298 -628
- package/dist/es/components/runtime/utils/page-init-util.js +134 -368
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -512
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +233 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/package.json +74 -73
|
@@ -1,61 +1,24 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { getClickEventFuncByType } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import { isVisibleWorkflowButton } from "../../../../utils/events/standard-event.js";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
runtimeInfo.class;
|
|
17
|
-
const buttonInfo = props.pageContext.workflowButtonComponent;
|
|
18
|
-
const completeTaskParam = props.pageContext.completeTaskParam;
|
|
19
|
-
const visibleBtns = ref([]);
|
|
20
|
-
props.configure.items.forEach((item) => {
|
|
21
|
-
if (isVisibleBtn(item)) {
|
|
22
|
-
visibleBtns.value.push(item);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
function getStandardClickEvent(events) {
|
|
26
|
-
const clickEventFunObj = getClickEventFuncByType(props.pageContext, events, "click");
|
|
27
|
-
if (clickEventFunObj) {
|
|
28
|
-
const isStandardEvent = clickEventFunObj.isStandard;
|
|
29
|
-
if (isStandardEvent) {
|
|
30
|
-
return clickEventFunObj.event.eventName;
|
|
1
|
+
import { defineComponent as e, ref as t, openBlock as n, createElementBlock as o, Fragment as r, renderList as u, createBlock as s, createCommentVNode as i } from "vue";
|
|
2
|
+
import a from "../../object-render.vue.js";
|
|
3
|
+
import { getClickEventFuncByType as c } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { isVisibleWorkflowButton as m } from "../../../../utils/events/standard-event.js";
|
|
5
|
+
const l = { class: "page-runtime-header-btn" }, p = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const p2 = e2, f = p2.configure.runtime ? p2.configure.runtime : {};
|
|
7
|
+
t(f.style ? f.style : {}), f.class;
|
|
8
|
+
const g = p2.pageContext.workflowButtonComponent, v = p2.pageContext.completeTaskParam, x = t([]);
|
|
9
|
+
return p2.configure.items.forEach((e3) => {
|
|
10
|
+
(function(e4) {
|
|
11
|
+
const t2 = function(e5) {
|
|
12
|
+
const t3 = c(p2.pageContext, e5, "click");
|
|
13
|
+
if (t3) {
|
|
14
|
+
if (t3.isStandard)
|
|
15
|
+
return t3.event.eventName;
|
|
31
16
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const isVisible = isVisibleWorkflowButton(
|
|
38
|
-
workflowStandardEventName,
|
|
39
|
-
buttonInfo,
|
|
40
|
-
completeTaskParam
|
|
41
|
-
);
|
|
42
|
-
return isVisible;
|
|
43
|
-
}
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
46
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleBtns.value, (element, itemIndex) => {
|
|
47
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
48
|
-
element.check ? (openBlock(), createBlock(_sfc_main$1, {
|
|
49
|
-
key: itemIndex,
|
|
50
|
-
pageContext: _ctx.pageContext,
|
|
51
|
-
configure: element
|
|
52
|
-
}, null, 8, ["pageContext", "configure"])) : createCommentVNode("", true)
|
|
53
|
-
], 64);
|
|
54
|
-
}), 256))
|
|
55
|
-
]);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
17
|
+
}(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
18
|
+
return m(t2, g, v);
|
|
19
|
+
})(e3) && x.value.push(e3);
|
|
20
|
+
}), (e3, t2) => (n(), o("span", l, [(n(true), o(r, null, u(x.value, (t3, u2) => (n(), o(r, null, [t3.check ? (n(), s(a, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
|
|
21
|
+
} });
|
|
59
22
|
export {
|
|
60
|
-
|
|
23
|
+
p as default
|
|
61
24
|
};
|
|
@@ -1,55 +1,18 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
17
|
-
const runtimeClass = runtimeInfo.class;
|
|
18
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
19
|
-
let taskName = ref("");
|
|
20
|
-
if (props.pageContext.pageType === "form") {
|
|
21
|
-
if (props.pageContext.entity && props.pageContext.entity.data) {
|
|
22
|
-
taskName.value = props.pageContext.entity.data["CURRENT_ACTIVITY_NAME"] || props.pageContext.entity.data["current_activity_name"];
|
|
23
|
-
showTaskName.value = props.pageContext.entity.data["WORKFLOW_ID"] ? true : false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
onMounted(() => {
|
|
27
|
-
});
|
|
28
|
-
function getValue() {
|
|
29
|
-
return getVariableValue(entity, dynamicFields);
|
|
30
|
-
}
|
|
31
|
-
function setValue(value) {
|
|
32
|
-
return setVariableValue(entity, dynamicFields, value);
|
|
33
|
-
}
|
|
34
|
-
__expose({
|
|
35
|
-
getValue,
|
|
36
|
-
setValue
|
|
37
|
-
});
|
|
38
|
-
return (_ctx, _cache) => {
|
|
39
|
-
return showTaskName.value ? (openBlock(), createElementBlock("span", {
|
|
40
|
-
key: 0,
|
|
41
|
-
class: normalizeClass(unref(runtimeClass))
|
|
42
|
-
}, [
|
|
43
|
-
createElementVNode("span", {
|
|
44
|
-
style: normalizeStyle(unref(headerStyle))
|
|
45
|
-
}, [
|
|
46
|
-
createElementVNode("span", null, toDisplayString(designProperty.value.title), 1),
|
|
47
|
-
createElementVNode("span", null, toDisplayString(unref(taskName)), 1)
|
|
48
|
-
], 4)
|
|
49
|
-
], 2)) : createCommentVNode("", true);
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
1
|
+
import { defineComponent as t, ref as e, onMounted as n, openBlock as a, createElementBlock as o, normalizeClass as p, unref as r, createElementVNode as i, normalizeStyle as u, toDisplayString as l, createCommentVNode as s } from "vue";
|
|
2
|
+
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as c, setVariableValue as f } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
const m = t({ __name: "workflownode-runtime", props: { pageContext: {}, configure: {} }, setup(t2, { expose: m2 }) {
|
|
5
|
+
const x = t2, y = e(false), C = x.pageContext.entity ? x.pageContext.entity : {};
|
|
6
|
+
let d = g(x.pageContext, x.configure);
|
|
7
|
+
const _ = x.configure.runtime ? x.configure.runtime : {}, v = e(_.props ? _.props : {}), T = _.class, I = _.headerStyle;
|
|
8
|
+
let R = e("");
|
|
9
|
+
return "form" === x.pageContext.pageType && x.pageContext.entity && x.pageContext.entity.data && (R.value = x.pageContext.entity.data.CURRENT_ACTIVITY_NAME || x.pageContext.entity.data.current_activity_name, y.value = !!x.pageContext.entity.data.WORKFLOW_ID), n(() => {
|
|
10
|
+
}), m2({ getValue: function() {
|
|
11
|
+
return c(C, d);
|
|
12
|
+
}, setValue: function(t3) {
|
|
13
|
+
return f(C, d, t3);
|
|
14
|
+
} }), (t3, e2) => y.value ? (a(), o("span", { key: 0, class: p(r(T)) }, [i("span", { style: u(r(I)) }, [i("span", null, l(v.value.title), 1), i("span", null, l(r(R)), 1)], 4)], 2)) : s("", true);
|
|
15
|
+
} });
|
|
53
16
|
export {
|
|
54
|
-
|
|
17
|
+
m as default
|
|
55
18
|
};
|
|
@@ -1,139 +1,23 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, createCommentVNode } from "vue";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isTest: { type: Boolean },
|
|
12
|
-
customParams: {}
|
|
13
|
-
},
|
|
14
|
-
emits: ["open", "opened", "close", "closed"],
|
|
15
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
-
const props = __props;
|
|
17
|
-
const emits = __emit;
|
|
18
|
-
const showContent = ref(true);
|
|
19
|
-
const myJumpPageSetting = props.jumpPageSetting ? props.jumpPageSetting : null;
|
|
20
|
-
const width = ref(null);
|
|
21
|
-
const title = ref(null);
|
|
22
|
-
const pageCode = ref(null);
|
|
23
|
-
const dataId = ref(null);
|
|
24
|
-
const taskId = ref(null);
|
|
25
|
-
const dialogType = ref(null);
|
|
26
|
-
const pageRequest = ref({});
|
|
27
|
-
const draggable = ref(false);
|
|
28
|
-
const overflow = ref(false);
|
|
29
|
-
const showPosition = ref("rtl");
|
|
30
|
-
const contentHeight = ref(null);
|
|
31
|
-
const isIframe = ref(false);
|
|
32
|
-
const pageUrl = ref(null);
|
|
33
|
-
if (myJumpPageSetting) {
|
|
34
|
-
console.log("弹出页面myJumpPageSetting=", myJumpPageSetting);
|
|
35
|
-
isIframe.value = myJumpPageSetting && myJumpPageSetting["_isIframe"] !== void 0 ? myJumpPageSetting["_isIframe"] : false;
|
|
36
|
-
pageUrl.value = myJumpPageSetting && myJumpPageSetting["_path"] ? myJumpPageSetting["_path"] : null;
|
|
37
|
-
dialogType.value = myJumpPageSetting && myJumpPageSetting["dialogType"] ? myJumpPageSetting["dialogType"] : "dialog";
|
|
38
|
-
draggable.value = myJumpPageSetting && myJumpPageSetting["draggable"] ? myJumpPageSetting["draggable"] : false;
|
|
39
|
-
overflow.value = myJumpPageSetting && myJumpPageSetting["overflow"] ? myJumpPageSetting["overflow"] : false;
|
|
40
|
-
showPosition.value = myJumpPageSetting && myJumpPageSetting["showPosition"] ? myJumpPageSetting["showPosition"] : "rtl";
|
|
41
|
-
title.value = myJumpPageSetting && myJumpPageSetting["jumpPageTitle"] ? myJumpPageSetting["jumpPageTitle"] : null;
|
|
42
|
-
width.value = myJumpPageSetting && myJumpPageSetting["jumpPageWidth"] ? myJumpPageSetting["jumpPageWidth"] : "100%";
|
|
43
|
-
contentHeight.value = myJumpPageSetting && myJumpPageSetting["jumpPageHeight"] ? myJumpPageSetting["jumpPageHeight"] : null;
|
|
44
|
-
pageCode.value = myJumpPageSetting && myJumpPageSetting["pageCode"];
|
|
45
|
-
dataId.value = myJumpPageSetting && myJumpPageSetting["dataId"] ? myJumpPageSetting["dataId"] : null;
|
|
46
|
-
taskId.value = myJumpPageSetting && myJumpPageSetting["taskId"] ? myJumpPageSetting["taskId"] : null;
|
|
47
|
-
if (props.parentPageEventParams) {
|
|
48
|
-
try {
|
|
49
|
-
const pageParams = JSON.parse(JSON.stringify(props.parentPageEventParams));
|
|
50
|
-
if (pageParams["pageContext"]) {
|
|
51
|
-
delete pageParams["pageContext"];
|
|
52
|
-
}
|
|
53
|
-
if (pageParams["configureObj"]) {
|
|
54
|
-
delete pageParams["configureObj"];
|
|
55
|
-
}
|
|
56
|
-
Object.assign(pageRequest.value, pageParams);
|
|
57
|
-
} catch (error) {
|
|
58
|
-
console.error(error);
|
|
59
|
-
}
|
|
60
|
-
if (dataId.value === null || dataId.value === void 0) {
|
|
61
|
-
dataId.value = props.parentPageEventParams["id"];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
pageRequest.value["parentPageCode"] = myJumpPageSetting && myJumpPageSetting["parentPageCode"] ? myJumpPageSetting["parentPageCode"] : null;
|
|
65
|
-
pageRequest.value["parentPageVersion"] = myJumpPageSetting && myJumpPageSetting["parentPageVersion"] ? myJumpPageSetting["parentPageVersion"] : null;
|
|
66
|
-
pageRequest.value["jumpMode"] = myJumpPageSetting ? myJumpPageSetting["jumpMode"] : null;
|
|
67
|
-
pageRequest.value["id"] = dataId.value;
|
|
68
|
-
pageRequest.value["taskId"] = taskId.value;
|
|
69
|
-
if (props.customParams) {
|
|
70
|
-
Object.assign(pageRequest.value, props.customParams);
|
|
1
|
+
import { defineComponent as e, ref as a, resolveComponent as l, openBlock as t, createBlock as u, withCtx as o, createElementBlock as n, createCommentVNode as r } from "vue";
|
|
2
|
+
import d from "./super-page.vue.js";
|
|
3
|
+
const i = ["src"], p = ["src"], s = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: s2 }) {
|
|
4
|
+
const v = e2, g = s2, m = a(true), c = v.jumpPageSetting ? v.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), j = a(null), C = a(null), w = a(null), y = a({}), b = a(false), k = a(false), O = a("rtl"), _ = a(null), I = a(false), V = a(null);
|
|
5
|
+
if (c) {
|
|
6
|
+
if (I.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null, w.value = c && c.dialogType ? c.dialogType : "dialog", b.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "100%", _.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, j.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null, v.parentPageEventParams) {
|
|
7
|
+
try {
|
|
8
|
+
const e3 = JSON.parse(JSON.stringify(v.parentPageEventParams));
|
|
9
|
+
e3.pageContext && delete e3.pageContext, e3.configureObj && delete e3.configureObj, Object.assign(y.value, e3);
|
|
10
|
+
} catch (e3) {
|
|
71
11
|
}
|
|
12
|
+
null !== j.value && void 0 !== j.value || (j.value = v.parentPageEventParams.id);
|
|
72
13
|
}
|
|
73
|
-
|
|
74
|
-
const _component_el_drawer = resolveComponent("el-drawer");
|
|
75
|
-
const _component_el_dialog = resolveComponent("el-dialog");
|
|
76
|
-
return dialogType.value && dialogType.value === "drawer" ? (openBlock(), createBlock(_component_el_drawer, {
|
|
77
|
-
key: 0,
|
|
78
|
-
modelValue: showContent.value,
|
|
79
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showContent.value = $event),
|
|
80
|
-
title: title.value,
|
|
81
|
-
direction: showPosition.value,
|
|
82
|
-
size: width.value,
|
|
83
|
-
onOpen: _cache[1] || (_cache[1] = ($event) => emits("open")),
|
|
84
|
-
onOpened: _cache[2] || (_cache[2] = ($event) => emits("opened")),
|
|
85
|
-
onClose: _cache[3] || (_cache[3] = ($event) => emits("close")),
|
|
86
|
-
onClosed: _cache[4] || (_cache[4] = ($event) => emits("closed"))
|
|
87
|
-
}, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
!isIframe.value && pageCode.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
90
|
-
key: 0,
|
|
91
|
-
pageCode: pageCode.value,
|
|
92
|
-
pageRequest: pageRequest.value
|
|
93
|
-
}, null, 8, ["pageCode", "pageRequest"])) : isIframe.value ? (openBlock(), createElementBlock("iframe", {
|
|
94
|
-
key: 1,
|
|
95
|
-
height: "98%",
|
|
96
|
-
width: "100%",
|
|
97
|
-
src: pageUrl.value,
|
|
98
|
-
frameborder: "0",
|
|
99
|
-
allowtransparency: "no"
|
|
100
|
-
}, null, 8, _hoisted_1)) : createCommentVNode("", true)
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}, 8, ["modelValue", "title", "direction", "size"])) : (openBlock(), createBlock(_component_el_dialog, {
|
|
104
|
-
key: 1,
|
|
105
|
-
"model-value": "",
|
|
106
|
-
title: title.value,
|
|
107
|
-
"close-on-click-modal": false,
|
|
108
|
-
"append-to-body": "",
|
|
109
|
-
width: width.value,
|
|
110
|
-
draggable: draggable.value,
|
|
111
|
-
overflow: overflow.value,
|
|
112
|
-
onOpen: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("open")),
|
|
113
|
-
onOpend: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("opend")),
|
|
114
|
-
onClose: _cache[7] || (_cache[7] = ($event) => emits("close")),
|
|
115
|
-
onClosed: _cache[8] || (_cache[8] = ($event) => _ctx.$emit("closed"))
|
|
116
|
-
}, {
|
|
117
|
-
default: withCtx(() => [
|
|
118
|
-
!isIframe.value && pageCode.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
119
|
-
key: 0,
|
|
120
|
-
pageCode: pageCode.value,
|
|
121
|
-
pageRequest: pageRequest.value,
|
|
122
|
-
contentHeight: contentHeight.value
|
|
123
|
-
}, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : isIframe.value ? (openBlock(), createElementBlock("iframe", {
|
|
124
|
-
key: 1,
|
|
125
|
-
height: "98%",
|
|
126
|
-
width: "100%",
|
|
127
|
-
src: pageUrl.value,
|
|
128
|
-
frameborder: "0",
|
|
129
|
-
allowtransparency: "no"
|
|
130
|
-
}, null, 8, _hoisted_2)) : createCommentVNode("", true)
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["title", "width", "draggable", "overflow"]));
|
|
134
|
-
};
|
|
14
|
+
y.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, y.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, y.value.jumpMode = c ? c.jumpMode : null, y.value.id = j.value, y.value.taskId = C.value, v.customParams && Object.assign(y.value, v.customParams);
|
|
135
15
|
}
|
|
136
|
-
|
|
16
|
+
return (e3, a2) => {
|
|
17
|
+
const s3 = l("el-drawer"), v2 = l("el-dialog");
|
|
18
|
+
return w.value && "drawer" === w.value ? (t(), u(s3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, onOpen: a2[1] || (a2[1] = (e4) => g("open")), onOpened: a2[2] || (a2[2] = (e4) => g("opened")), onClose: a2[3] || (a2[3] = (e4) => g("close")), onClosed: a2[4] || (a2[4] = (e4) => g("closed")) }, { default: o(() => [!I.value && h.value ? (t(), u(d, { key: 0, pageCode: h.value, pageRequest: y.value }, null, 8, ["pageCode", "pageRequest"])) : I.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, i)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(v2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, draggable: b.value, overflow: k.value, onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => g("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: o(() => [!I.value && h.value ? (t(), u(d, { key: 0, pageCode: h.value, pageRequest: y.value, contentHeight: _.value }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : I.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, p)) : r("", true)]), _: 1 }, 8, ["title", "width", "draggable", "overflow"]));
|
|
19
|
+
};
|
|
20
|
+
} });
|
|
137
21
|
export {
|
|
138
|
-
|
|
22
|
+
s as default
|
|
139
23
|
};
|