super-page-runtime 2.0.19 → 2.0.25
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/api-util.js +18 -16
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +206 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +16 -7
- package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
- package/dist/es/components/runtime/utils/common-util.js +8 -12
- package/dist/es/components/runtime/utils/events/event-util.d.ts +14 -0
- package/dist/es/components/runtime/utils/events/event-util.js +101 -32
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +189 -133
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
- package/dist/es/components/runtime/utils/form/scan-util.js +191 -0
- package/dist/es/components/runtime/utils/global-refs.js +12 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +20 -4
- package/dist/es/components/runtime/utils/page-init-util.js +9 -15
- package/dist/es/components/runtime/utils/table-utils.js +4 -5
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +207 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +99 -68
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +24 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -26
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/super-page.vue.js +18 -7
- package/package.json +3 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
- package/dist/lib/components/runtime/utils/common-util.js +0 -94
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -65
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +0 -8
- package/dist/lib/index.js +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -24,8 +24,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const runtimeStyle = runtimeInfo.style;
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
|
+
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
29
29
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
30
30
|
if (cacheOptions.length > 0) {
|
|
31
31
|
listOptions.value = cacheOptions;
|
|
@@ -48,8 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
target: props.configure.props.base.optionProp
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
designProperty.changeMethod = optionChange;
|
|
52
|
-
const monitorFields = designProperty.monitorFields;
|
|
51
|
+
designProperty.value.changeMethod = optionChange;
|
|
52
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
53
53
|
const monitorFieldInfos = [];
|
|
54
54
|
if (monitorFields) {
|
|
55
55
|
const preFields = [];
|
|
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
}
|
|
81
81
|
let initMonitorValue = getMonitorFieldValues();
|
|
82
82
|
let monitorTimeout = false;
|
|
83
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
83
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
84
84
|
function monitorFieldChange() {
|
|
85
85
|
if (monitorTimeout) {
|
|
86
86
|
clearTimeout(monitorTimeout);
|
|
@@ -119,22 +119,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
120
120
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
121
121
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
122
|
-
required:
|
|
122
|
+
required: designProperty.value.required,
|
|
123
123
|
class: normalizeClass(unref(runtimeClass)),
|
|
124
|
-
"label-width":
|
|
124
|
+
"label-width": designProperty.value.labelWidth,
|
|
125
125
|
style: normalizeStyle(unref(runtimeStyle))
|
|
126
126
|
}, {
|
|
127
127
|
label: withCtx(() => [
|
|
128
|
-
|
|
128
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
129
129
|
key: 0,
|
|
130
130
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
131
|
-
}, toDisplayString(
|
|
131
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
132
132
|
]),
|
|
133
133
|
default: withCtx(() => [
|
|
134
134
|
createVNode(_component_el_radio_group, {
|
|
135
|
-
disabled:
|
|
136
|
-
size:
|
|
137
|
-
onChange:
|
|
135
|
+
disabled: designProperty.value.state === "disabled",
|
|
136
|
+
size: designProperty.value.size,
|
|
137
|
+
onChange: designProperty.value.changeMethod,
|
|
138
138
|
modelValue: dynamicModelMethod.value,
|
|
139
139
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
140
140
|
}, {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted,
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import Quill from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
6
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
7
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
7
8
|
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
8
9
|
const _hoisted_2 = {
|
|
9
10
|
key: 1,
|
|
@@ -24,13 +25,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
25
|
const runtimeStyle = runtimeInfo.style;
|
|
25
26
|
const runtimeClass = runtimeInfo.class;
|
|
26
27
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
let contentVariable = designProperty.value;
|
|
28
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
29
|
+
let contentVariable = designProperty.value.value;
|
|
29
30
|
const initValue = formatVariableValue(props.pageContext, contentVariable);
|
|
30
31
|
const quillEditorRef = ref(null);
|
|
31
32
|
const quill = ref(null);
|
|
32
33
|
const fileBtn = ref(null);
|
|
33
|
-
const fontSize = [
|
|
34
|
+
const fontSize = [
|
|
35
|
+
"12px",
|
|
36
|
+
"13px",
|
|
37
|
+
"14px",
|
|
38
|
+
"15px",
|
|
39
|
+
"16px",
|
|
40
|
+
"18px",
|
|
41
|
+
"20px",
|
|
42
|
+
"24px",
|
|
43
|
+
"28px",
|
|
44
|
+
"32px",
|
|
45
|
+
"36px"
|
|
46
|
+
];
|
|
34
47
|
const option = ref({
|
|
35
48
|
modules: {
|
|
36
49
|
toolbar: [
|
|
@@ -63,11 +76,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
76
|
]
|
|
64
77
|
},
|
|
65
78
|
theme: "snow",
|
|
66
|
-
placeholder: designProperty.placeholder,
|
|
67
|
-
readOnly: designProperty.state == "readonly"
|
|
79
|
+
placeholder: designProperty.value.placeholder,
|
|
80
|
+
readOnly: designProperty.value.state == "readonly"
|
|
68
81
|
});
|
|
69
82
|
function updateEditorHeight() {
|
|
70
|
-
if (quill && quill.value) {
|
|
83
|
+
if (quill.value && quill.value) {
|
|
71
84
|
if (quill.value.container) {
|
|
72
85
|
const parentNode = quill.value.container.parentNode;
|
|
73
86
|
const parentRect = parentNode.getBoundingClientRect();
|
|
@@ -80,11 +93,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
93
|
}
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
|
-
const imgHandler = (state) => {
|
|
84
|
-
if (fileBtn.value && state) {
|
|
85
|
-
fileBtn.value.click();
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
96
|
const handleUpload = (e) => {
|
|
89
97
|
const files = Array.prototype.slice.call(e.target.files);
|
|
90
98
|
if (!files) {
|
|
@@ -95,34 +103,96 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
103
|
alert("TODO:上传图片");
|
|
96
104
|
};
|
|
97
105
|
onMounted(() => {
|
|
106
|
+
var _a;
|
|
98
107
|
quill.value = new Quill(quillEditorRef.value, option.value);
|
|
99
|
-
|
|
100
|
-
quill.value.on("text-change", function(delta, oldDelta, source) {
|
|
101
|
-
if (
|
|
102
|
-
|
|
108
|
+
(_a = quillEditorRef.value) == null ? void 0 : _a.addEventListener("focusout", handleFocusOut);
|
|
109
|
+
quill.value.on("text-change", async function(delta, oldDelta, source) {
|
|
110
|
+
if (delta.ops && delta.ops.length > 0) {
|
|
111
|
+
for (let i = 0; i < delta.ops.length; i++) {
|
|
112
|
+
const ops = delta.ops[i];
|
|
113
|
+
if (ops.insert && ops.insert.image) {
|
|
114
|
+
const dataurl = ops.insert.image;
|
|
115
|
+
if (!dataurl.startsWith("data:image")) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const file = dataURLtoFile(dataurl, "image.png");
|
|
119
|
+
await uploadImage(file).then((res) => {
|
|
120
|
+
if (!quill.value) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const images = quill.value.root.getElementsByTagName("img");
|
|
124
|
+
if (images && images.length > 0) {
|
|
125
|
+
for (let i2 = 0; i2 < images.length; i2++) {
|
|
126
|
+
const img = images[i2];
|
|
127
|
+
if (img.src === dataurl) {
|
|
128
|
+
img.src = res.url;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}).catch((err) => {
|
|
133
|
+
console.error(err, "上传图片失败");
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
103
137
|
}
|
|
104
|
-
|
|
105
|
-
setVariableValue(entity, dynamicFields, quill.value.root.innerHTML);
|
|
106
|
-
handleEvent(quill.value.root.innerHTML, props.pageContext, props.configure, "change", { entity });
|
|
107
|
-
console.log("new entity", entity);
|
|
108
|
-
}, 1e3);
|
|
138
|
+
setVariableValue(entity, dynamicFields, quill.value.root.innerHTML);
|
|
109
139
|
});
|
|
110
140
|
updateEditorHeight();
|
|
111
141
|
});
|
|
142
|
+
onBeforeUnmount(() => {
|
|
143
|
+
if (quillEditorRef.value) {
|
|
144
|
+
quillEditorRef.value.removeEventListener("focusout", handleFocusOut);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
function handleFocusOut(event) {
|
|
148
|
+
var _a;
|
|
149
|
+
if (event.relatedTarget === null || !((_a = quillEditorRef.value) == null ? void 0 : _a.contains(event.relatedTarget))) {
|
|
150
|
+
handleEvent(quill.value.root.innerHTML, props.pageContext, props.configure, "change", {
|
|
151
|
+
entity
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function uploadImage(blob) {
|
|
156
|
+
const params = new FormData();
|
|
157
|
+
params.append("file", blob);
|
|
158
|
+
const config = {
|
|
159
|
+
headers: {
|
|
160
|
+
"Content-Type": "multipart/form-data"
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
let baseUrl = props.pageContext.backendUrl;
|
|
164
|
+
if (!baseUrl) {
|
|
165
|
+
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
166
|
+
}
|
|
167
|
+
return http.post(
|
|
168
|
+
baseUrl + "/common/fs-upload/rich-editor-image",
|
|
169
|
+
params,
|
|
170
|
+
config
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
function dataURLtoFile(dataurl, filename) {
|
|
174
|
+
let arr = dataurl.split(",");
|
|
175
|
+
let mime = arr[0].match(/:(.*?);/)[1];
|
|
176
|
+
let bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
|
|
177
|
+
while (n--) {
|
|
178
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
179
|
+
}
|
|
180
|
+
return new File([u8arr], filename, { type: mime });
|
|
181
|
+
}
|
|
112
182
|
return (_ctx, _cache) => {
|
|
113
183
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
114
|
-
return
|
|
184
|
+
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
115
185
|
key: 0,
|
|
116
|
-
required:
|
|
186
|
+
required: designProperty.value.required,
|
|
117
187
|
class: normalizeClass(unref(runtimeClass)),
|
|
118
|
-
"label-width":
|
|
188
|
+
"label-width": designProperty.value.labelWidth,
|
|
119
189
|
style: normalizeStyle(unref(runtimeStyle))
|
|
120
190
|
}, {
|
|
121
191
|
label: withCtx(() => [
|
|
122
|
-
|
|
192
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
123
193
|
key: 0,
|
|
124
194
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
125
|
-
}, toDisplayString(
|
|
195
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
126
196
|
]),
|
|
127
197
|
default: withCtx(() => [
|
|
128
198
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
const runtimeClass = runtimeInfo.class;
|
|
28
28
|
const headerStyle = runtimeInfo.headerStyle;
|
|
29
29
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
30
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
30
|
+
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
31
31
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
32
32
|
if (cacheOptions.length > 0) {
|
|
33
33
|
listOptions.value = cacheOptions;
|
|
@@ -36,14 +36,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
37
37
|
const valueType = dataOrigin.optionValueSetType;
|
|
38
38
|
let autoSets = [];
|
|
39
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
39
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
40
40
|
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
41
41
|
if (dataOrigin.filterType == "remote") {
|
|
42
|
-
designProperty.filterable = true;
|
|
43
|
-
designProperty.remote = true;
|
|
44
|
-
designProperty.remoteShowSuffix = true;
|
|
42
|
+
designProperty.value.filterable = true;
|
|
43
|
+
designProperty.value.remote = true;
|
|
44
|
+
designProperty.value.remoteShowSuffix = true;
|
|
45
45
|
let hisQuery = void 0;
|
|
46
|
-
designProperty.remoteMethod = function(query) {
|
|
46
|
+
designProperty.value.remoteMethod = function(query) {
|
|
47
47
|
if (hisQuery === query) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
@@ -72,8 +72,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
target: props.configure.props.base.optionProp
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
designProperty.changeMethod = optionChange;
|
|
76
|
-
const monitorFields = designProperty.monitorFields;
|
|
75
|
+
designProperty.value.changeMethod = optionChange;
|
|
76
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
77
77
|
const monitorFieldInfos = [];
|
|
78
78
|
if (monitorFields) {
|
|
79
79
|
const preFields = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -24,32 +24,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const runtimeStyle = runtimeInfo.style;
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
28
|
const switchStyle = runtimeInfo.switchStyle;
|
|
29
29
|
return (_ctx, _cache) => {
|
|
30
30
|
const _component_el_switch = resolveComponent("el-switch");
|
|
31
31
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
32
32
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
33
|
-
required:
|
|
33
|
+
required: designProperty.value.required,
|
|
34
34
|
class: normalizeClass(unref(runtimeClass)),
|
|
35
|
-
"label-width":
|
|
35
|
+
"label-width": designProperty.value.labelWidth,
|
|
36
36
|
style: normalizeStyle(unref(runtimeStyle))
|
|
37
37
|
}, {
|
|
38
38
|
label: withCtx(() => [
|
|
39
|
-
|
|
39
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
40
40
|
key: 0,
|
|
41
41
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
42
|
-
}, toDisplayString(
|
|
42
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
43
43
|
]),
|
|
44
44
|
default: withCtx(() => [
|
|
45
45
|
createVNode(_component_el_switch, {
|
|
46
|
-
disabled:
|
|
47
|
-
"active-value:":
|
|
48
|
-
"active-text":
|
|
49
|
-
"inactive-value":
|
|
50
|
-
"inactive-text":
|
|
51
|
-
width:
|
|
52
|
-
size:
|
|
46
|
+
disabled: designProperty.value.state === "disabled",
|
|
47
|
+
"active-value:": designProperty.value.activeValue,
|
|
48
|
+
"active-text": designProperty.value.activeText,
|
|
49
|
+
"inactive-value": designProperty.value.inactiveValue,
|
|
50
|
+
"inactive-text": designProperty.value.inactiveText,
|
|
51
|
+
width: designProperty.value.offOnWidth,
|
|
52
|
+
size: designProperty.value.size,
|
|
53
53
|
style: normalizeStyle(unref(switchStyle)),
|
|
54
54
|
modelValue: dynamicModelMethod.value,
|
|
55
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -15,8 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const runtimeStyle = runtimeInfo.style;
|
|
16
16
|
const runtimeClass = runtimeInfo.class;
|
|
17
17
|
const headerStyle = runtimeInfo.headerStyle;
|
|
18
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
19
|
-
let contentVariable = designProperty.formatting;
|
|
18
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
19
|
+
let contentVariable = designProperty.value.formatting;
|
|
20
20
|
if (!contentVariable) {
|
|
21
21
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
22
22
|
contentVariable = propsBase.prop;
|
|
@@ -32,22 +32,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
const _component_el_tag = resolveComponent("el-tag");
|
|
33
33
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
34
34
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
35
|
-
required:
|
|
35
|
+
required: designProperty.value.required,
|
|
36
36
|
class: normalizeClass(unref(runtimeClass)),
|
|
37
|
-
"label-width":
|
|
37
|
+
"label-width": designProperty.value.labelWidth,
|
|
38
38
|
style: normalizeStyle(unref(runtimeStyle))
|
|
39
39
|
}, {
|
|
40
40
|
label: withCtx(() => [
|
|
41
|
-
|
|
41
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
42
42
|
key: 0,
|
|
43
43
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
44
|
-
}, toDisplayString(
|
|
44
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
45
45
|
]),
|
|
46
46
|
default: withCtx(() => [
|
|
47
47
|
createVNode(_component_el_tag, {
|
|
48
|
-
size:
|
|
49
|
-
closable:
|
|
50
|
-
type:
|
|
48
|
+
size: designProperty.value.size,
|
|
49
|
+
closable: designProperty.value.closable,
|
|
50
|
+
type: designProperty.value.type,
|
|
51
51
|
onClose: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "remove")),
|
|
52
52
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
53
53
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
24
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
25
25
|
const runtimeStyle = runtimeInfo.style;
|
|
26
26
|
const runtimeClass = runtimeInfo.class;
|
|
27
27
|
const headerStyle = runtimeInfo.headerStyle;
|
|
@@ -30,29 +30,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
31
31
|
return openBlock(), createElementBlock("div", null, [
|
|
32
32
|
createVNode(_component_el_form_item, {
|
|
33
|
-
required:
|
|
33
|
+
required: designProperty.value.required ? true : false,
|
|
34
34
|
class: normalizeClass(unref(runtimeClass)),
|
|
35
|
-
"label-width":
|
|
35
|
+
"label-width": designProperty.value.labelWidth,
|
|
36
36
|
style: normalizeStyle(unref(runtimeStyle))
|
|
37
37
|
}, {
|
|
38
38
|
label: withCtx(() => [
|
|
39
|
-
|
|
39
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
40
40
|
key: 0,
|
|
41
41
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
42
|
-
}, toDisplayString(
|
|
42
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
43
43
|
]),
|
|
44
44
|
default: withCtx(() => [
|
|
45
45
|
createVNode(_component_el_input, {
|
|
46
|
-
disabled:
|
|
47
|
-
readonly:
|
|
48
|
-
size:
|
|
49
|
-
clearable:
|
|
50
|
-
placeholder:
|
|
46
|
+
disabled: designProperty.value.state === "disabled",
|
|
47
|
+
readonly: designProperty.value.state === "readonly",
|
|
48
|
+
size: designProperty.value.size,
|
|
49
|
+
clearable: designProperty.value.clearable,
|
|
50
|
+
placeholder: designProperty.value.placeholder,
|
|
51
51
|
modelValue: dynamicModelMethod.value,
|
|
52
52
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
53
|
-
rows:
|
|
54
|
-
maxlength:
|
|
55
|
-
"show-word-limit":
|
|
53
|
+
rows: designProperty.value.rows ? designProperty.value.rows : 2,
|
|
54
|
+
maxlength: designProperty.value.maxLength,
|
|
55
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
56
56
|
type: "textarea",
|
|
57
57
|
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
58
58
|
onChange: _cache[2] || (_cache[2] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
@@ -17,6 +17,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
props.configure.style = {};
|
|
18
18
|
}
|
|
19
19
|
const permissionCodes = getPermissionCodes(props.configure, props.pageContext);
|
|
20
|
+
if (props.configure && props.configure.props && props.configure.props.base) {
|
|
21
|
+
props.configure.props.base.functionCode = permissionCodes;
|
|
22
|
+
}
|
|
20
23
|
packageFormRules(props.pageContext, props.configure);
|
|
21
24
|
let handleShowFlag = ref(true);
|
|
22
25
|
let showFlag = ref(true);
|
|
@@ -61,12 +64,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
64
|
thisRef.value = el;
|
|
62
65
|
if (el && !el.show) {
|
|
63
66
|
el.show = function() {
|
|
64
|
-
|
|
67
|
+
showFlag.value = true;
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
if (el && !el.hide) {
|
|
68
71
|
el.hide = function() {
|
|
69
|
-
|
|
72
|
+
showFlag.value = false;
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
if (el && !el.getConfigure) {
|
|
@@ -17,14 +17,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const completeTaskParam = props.pageContext.completeTaskParam;
|
|
18
18
|
const visibleBtns = ref([]);
|
|
19
19
|
props.configure.items.forEach((item) => {
|
|
20
|
-
|
|
21
|
-
const pageVersion = props.pageContext.version;
|
|
22
|
-
if (isVisibleBtn(item, pageCode, pageVersion)) {
|
|
20
|
+
if (isVisibleBtn(item)) {
|
|
23
21
|
visibleBtns.value.push(item);
|
|
24
22
|
}
|
|
25
23
|
});
|
|
26
|
-
function getStandardClickEvent(events
|
|
27
|
-
const clickEventFunObj = getClickEventFuncByType(
|
|
24
|
+
function getStandardClickEvent(events) {
|
|
25
|
+
const clickEventFunObj = getClickEventFuncByType(props.pageContext, events, "click");
|
|
28
26
|
if (clickEventFunObj) {
|
|
29
27
|
const isStandardEvent = clickEventFunObj.isStandard;
|
|
30
28
|
if (isStandardEvent) {
|
|
@@ -32,9 +30,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
|
-
function isVisibleBtn(btnConfigure
|
|
33
|
+
function isVisibleBtn(btnConfigure) {
|
|
36
34
|
const events = btnConfigure.runtime && btnConfigure.runtime.events ? btnConfigure.runtime.events : [];
|
|
37
|
-
const workflowStandardEventName = getStandardClickEvent(events
|
|
35
|
+
const workflowStandardEventName = getStandardClickEvent(events);
|
|
38
36
|
const isVisible = isVisibleWorkflowButton(
|
|
39
37
|
workflowStandardEventName,
|
|
40
38
|
buttonInfo,
|
|
@@ -3,13 +3,13 @@ import _sfc_main$1 from "./assemblys/object-render.vue.js";
|
|
|
3
3
|
import { updateOptionDatasources, updateChartDatasources } from "../utils/page-helper-util.js";
|
|
4
4
|
import { queryPageSuperGrids, queryPageDesignByCode, convertToPageContext } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef, removePageAllRef, initComponentRefState } from "../utils/global-refs.js";
|
|
6
|
-
import { removeCustomFuncFromWindow,
|
|
6
|
+
import { removeCustomFuncFromWindow, handleEvent, initPageEvents } from "../utils/events/event-util.js";
|
|
7
7
|
import _sfc_main$2 from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import _sfc_main$3 from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
9
|
import _sfc_main$4 from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
10
|
import eventBus from "../utils/eventBus.js";
|
|
11
11
|
import { getFormData } from "../utils/api/api-util.js";
|
|
12
|
-
import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, updateValuesWhenCloseDialog } from "../utils/events/standard-event.js";
|
|
12
|
+
import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, getAdditionalParamMap, updateValuesWhenCloseDialog } from "../utils/events/standard-event.js";
|
|
13
13
|
import { ElMessage } from "element-plus";
|
|
14
14
|
import { useI18n } from "vue-i18n";
|
|
15
15
|
import { DepartmentUserTree } from "agilebuilder-ui";
|
|
@@ -175,9 +175,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
175
|
parentEventParams.value = params.eventParams;
|
|
176
176
|
openDialog(parentConfigureObj.value);
|
|
177
177
|
});
|
|
178
|
-
eventBus.$on(
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
eventBus.$on(
|
|
179
|
+
eventPageInfo.value + "close-dialog",
|
|
180
|
+
({ isNeedValueMapping, dataModel, sourceTableName }) => {
|
|
181
|
+
closeDialog({ isNeedValueMapping, dataModel, sourceTableName });
|
|
182
|
+
}
|
|
183
|
+
);
|
|
181
184
|
getFormData(pageContext.value);
|
|
182
185
|
watch(
|
|
183
186
|
() => pageContext.value.isRefresh,
|
|
@@ -268,6 +271,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
268
271
|
eventBus.$off(eventPageInfo.value + "choose-return-node");
|
|
269
272
|
eventBus.$off(eventPageInfo.value + "remove-signer");
|
|
270
273
|
eventBus.$off(eventPageInfo.value + "prohibit-edit");
|
|
274
|
+
if (pageContext.value) {
|
|
275
|
+
handleEvent(null, pageContext.value, pageContext.value, "onUnmounted");
|
|
276
|
+
}
|
|
271
277
|
});
|
|
272
278
|
function closeExportFormDialog() {
|
|
273
279
|
showExportForm.value = false;
|
|
@@ -334,7 +340,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
334
340
|
function openDialog(configureObj) {
|
|
335
341
|
const myJumpPageSetting = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
|
|
336
342
|
if (myJumpPageSetting && myJumpPageSetting.jumpPageUrl) {
|
|
337
|
-
const additionalParamMap = pageContext
|
|
343
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
338
344
|
let dataId;
|
|
339
345
|
let ids;
|
|
340
346
|
if (additionalParamMap) {
|
|
@@ -376,7 +382,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
376
382
|
}
|
|
377
383
|
function closeDialog({ isNeedValueMapping, dataModel, sourceTableName }) {
|
|
378
384
|
if (isNeedValueMapping) {
|
|
379
|
-
updateValuesWhenCloseDialog(
|
|
385
|
+
updateValuesWhenCloseDialog(
|
|
386
|
+
parentPageContext.value,
|
|
387
|
+
parentConfigureObj.value,
|
|
388
|
+
dataModel,
|
|
389
|
+
sourceTableName
|
|
390
|
+
);
|
|
380
391
|
}
|
|
381
392
|
parentPageContext.value = null;
|
|
382
393
|
parentConfigureObj.value = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"nprogress": "^0.2.0",
|
|
31
31
|
"qrcode": "^1.5.3",
|
|
32
32
|
"quill": "^2.0.1",
|
|
33
|
+
"quill-delta": "5.1.0",
|
|
33
34
|
"uuid": "^9.0.1",
|
|
34
35
|
"vue-awesome": "^4.5.0",
|
|
35
36
|
"vue-codemirror": "^6.1.1",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
47
48
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
48
49
|
"@vue/test-utils": "^2.4.4",
|
|
49
|
-
"agilebuilder-ui": "1.0.
|
|
50
|
+
"agilebuilder-ui": "1.0.19",
|
|
50
51
|
"axios": "^1.6.8",
|
|
51
52
|
"cypress": "^13.6.6",
|
|
52
53
|
"element-plus": "^2.6.1",
|
package/dist/lib/_virtual/Op.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4
|
-
function getDefaultExportFromCjs(x) {
|
|
5
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
6
|
-
}
|
|
7
|
-
exports.commonjsGlobal = commonjsGlobal;
|
|
8
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|