super-page-runtime 2.1.54 → 2.1.60
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 +17 -14
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +0 -1
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +24 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +4 -1
- package/dist/es/components/runtime/utils/common-util.js +2 -5
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +7 -3
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +102 -38
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +0 -1
- package/dist/es/components/runtime/utils/page-init-util.js +11 -9
- package/dist/es/components/runtime/utils/table-utils.d.ts +1 -0
- package/dist/es/components/runtime/utils/table-utils.js +39 -7
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +12 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +14 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +16 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +106 -55
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +0 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +14 -8
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +11 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +11 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +11 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +11 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +14 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +11 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +30 -10
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +9 -4
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +34 -64
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +20 -8
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +30 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +24 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +31 -5
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +26 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +29 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -14
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +29 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +26 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +29 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +27 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +18 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +25 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +29 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +3 -5
- package/dist/es/components/runtime/views/super-page.vue.js +89 -26
- package/dist/es/i18n/langs/cn.js +3 -1
- package/dist/es/i18n/langs/en.js +3 -1
- package/dist/es/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, unref, normalizeStyle, withCtx, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, nextTick, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, unref, normalizeStyle, withCtx, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { formatVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { formatVariableValue, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import Quill from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
|
-
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
7
7
|
import http from "agilebuilder-ui/src/utils/request";
|
|
8
8
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { getToken } from "agilebuilder-ui/src/utils/auth";
|
|
@@ -107,6 +107,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
107
|
}
|
|
108
108
|
const previewList = ref([]);
|
|
109
109
|
const showViewer = ref(false);
|
|
110
|
+
const formItemRef = ref(null);
|
|
111
|
+
const componentRef = ref(null);
|
|
112
|
+
const titleRef = ref(null);
|
|
110
113
|
onMounted(() => {
|
|
111
114
|
var _a;
|
|
112
115
|
quill = new Quill(quillEditorRef.value, option.value);
|
|
@@ -154,6 +157,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
154
157
|
}
|
|
155
158
|
});
|
|
156
159
|
updateEditorHeight();
|
|
160
|
+
nextTick(() => {
|
|
161
|
+
const value = getVariableValue(entity, dynamicFields);
|
|
162
|
+
handleAfterInitEvent(
|
|
163
|
+
value,
|
|
164
|
+
props.pageContext,
|
|
165
|
+
props.configure,
|
|
166
|
+
{
|
|
167
|
+
formItemRef: formItemRef.value,
|
|
168
|
+
componentRef: componentRef.value,
|
|
169
|
+
titleRef: titleRef.value,
|
|
170
|
+
value,
|
|
171
|
+
entity: props.pageContext.entity.data,
|
|
172
|
+
pageData: props.pageContext.entity.page
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
});
|
|
157
176
|
});
|
|
158
177
|
onBeforeUnmount(() => {
|
|
159
178
|
if (quillEditorRef.value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, createElementVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, createElementVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const _hoisted_1 = { style: { "float": "left" } };
|
|
@@ -25,7 +25,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
const dynamicModelMethod = computed({
|
|
26
26
|
get() {
|
|
27
27
|
let val = getVariableValue(entity, dynamicFields);
|
|
28
|
-
console.log("select组件----dynamicModelMethod---get-111-val", val);
|
|
29
28
|
if (val !== void 0 && val !== null) {
|
|
30
29
|
val = val + "";
|
|
31
30
|
}
|
|
@@ -34,7 +33,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
33
|
val = val.split(",");
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
console.log("select组件----dynamicModelMethod---get222--val", val);
|
|
38
36
|
return val;
|
|
39
37
|
},
|
|
40
38
|
set(value) {
|
|
@@ -43,7 +41,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
41
|
value = value.join(",");
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
|
-
console.log("select组件----dynamicModelMethod---set--value", value);
|
|
47
44
|
setVariableValue(entity, dynamicFields, value);
|
|
48
45
|
}
|
|
49
46
|
});
|
|
@@ -52,7 +49,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
49
|
if (cacheOptions.length > 0) {
|
|
53
50
|
listOptions.value = cacheOptions;
|
|
54
51
|
}
|
|
55
|
-
console.log("select组件----listOptions.value=", listOptions.value);
|
|
56
52
|
const queryLoadingFlag = ref(false);
|
|
57
53
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
58
54
|
const valueType = dataOrigin.optionValueSetType;
|
|
@@ -163,10 +159,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
159
|
}
|
|
164
160
|
function updateOptions(newOptions) {
|
|
165
161
|
listOptions.value = newOptions ? newOptions : [];
|
|
166
|
-
console.log("updateOptions", newOptions);
|
|
167
162
|
}
|
|
163
|
+
const formItemRef = ref(null);
|
|
164
|
+
const componentRef = ref(null);
|
|
165
|
+
const titleRef = ref(null);
|
|
168
166
|
onMounted(() => {
|
|
169
|
-
|
|
167
|
+
nextTick(() => {
|
|
168
|
+
const value = dynamicModelMethod.value;
|
|
169
|
+
handleAfterInitEvent(
|
|
170
|
+
value,
|
|
171
|
+
props.pageContext,
|
|
172
|
+
props.configure,
|
|
173
|
+
{
|
|
174
|
+
formItemRef: formItemRef.value,
|
|
175
|
+
componentRef: componentRef.value,
|
|
176
|
+
titleRef: titleRef.value,
|
|
177
|
+
value,
|
|
178
|
+
entity: props.pageContext.entity.data,
|
|
179
|
+
pageData: props.pageContext.entity.page
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
});
|
|
170
183
|
});
|
|
171
184
|
__expose({
|
|
172
185
|
updateOptions
|
|
@@ -176,6 +189,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
189
|
const _component_el_select = resolveComponent("el-select");
|
|
177
190
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
178
191
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
192
|
+
ref_key: "formItemRef",
|
|
193
|
+
ref: formItemRef,
|
|
179
194
|
required: designProperty.value.required ? true : false,
|
|
180
195
|
class: normalizeClass(unref(runtimeClass)),
|
|
181
196
|
"label-width": designProperty.value.labelWidth,
|
|
@@ -184,6 +199,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
184
199
|
label: withCtx(() => [
|
|
185
200
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
186
201
|
key: 0,
|
|
202
|
+
ref_key: "titleRef",
|
|
203
|
+
ref: titleRef,
|
|
187
204
|
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
188
205
|
}, [
|
|
189
206
|
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
@@ -197,6 +214,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
197
214
|
]),
|
|
198
215
|
default: withCtx(() => [
|
|
199
216
|
createVNode(_component_el_select, {
|
|
217
|
+
ref_key: "componentRef",
|
|
218
|
+
ref: componentRef,
|
|
200
219
|
style: { "width": "100%" },
|
|
201
220
|
disabled: designProperty.value.state === "disabled",
|
|
202
221
|
size: designProperty.value.size,
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { SuperIcon } from "agilebuilder-ui";
|
|
3
3
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
4
|
+
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "separatelabel-runtime",
|
|
6
7
|
props: {
|
|
@@ -14,6 +15,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
15
|
const runtimeStyle = runtimeInfo.style;
|
|
15
16
|
const runtimeClass = runtimeInfo.class;
|
|
16
17
|
const headerStyle = runtimeInfo.headerStyle;
|
|
18
|
+
onMounted(() => {
|
|
19
|
+
nextTick(() => {
|
|
20
|
+
const value = $t(props.configure.props.base.title);
|
|
21
|
+
handleAfterInitEvent(
|
|
22
|
+
value,
|
|
23
|
+
props.pageContext,
|
|
24
|
+
props.configure,
|
|
25
|
+
{
|
|
26
|
+
componentRef: thisRef.value,
|
|
27
|
+
value,
|
|
28
|
+
entity: props.pageContext.entity.data,
|
|
29
|
+
pageData: props.pageContext.entity.page
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
17
34
|
__expose({});
|
|
18
35
|
return (_ctx, _cache) => {
|
|
19
36
|
return openBlock(), createElementBlock("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, 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
|
-
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "switch-runtime",
|
|
@@ -28,7 +28,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const switchStyle = runtimeInfo.switchStyle;
|
|
29
29
|
const dynamicModelMethod = computed({
|
|
30
30
|
get() {
|
|
31
|
-
debugger;
|
|
32
31
|
let val = getVariableValue(entity, dynamicFields);
|
|
33
32
|
if (val !== void 0 && val !== null) {
|
|
34
33
|
val = val + "";
|
|
@@ -36,14 +35,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
35
|
return val;
|
|
37
36
|
},
|
|
38
37
|
set(value) {
|
|
39
|
-
debugger;
|
|
40
38
|
setVariableValue(entity, dynamicFields, value);
|
|
41
39
|
}
|
|
42
40
|
});
|
|
41
|
+
const formItemRef = ref(null);
|
|
42
|
+
const componentRef = ref(null);
|
|
43
|
+
const titleRef = ref(null);
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
nextTick(() => {
|
|
46
|
+
const value = dynamicModelMethod.value;
|
|
47
|
+
handleAfterInitEvent(
|
|
48
|
+
value,
|
|
49
|
+
props.pageContext,
|
|
50
|
+
props.configure,
|
|
51
|
+
{
|
|
52
|
+
formItemRef: formItemRef.value,
|
|
53
|
+
componentRef: componentRef.value,
|
|
54
|
+
titleRef: titleRef.value,
|
|
55
|
+
value,
|
|
56
|
+
entity: props.pageContext.entity.data,
|
|
57
|
+
pageData: props.pageContext.entity.page
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
43
62
|
return (_ctx, _cache) => {
|
|
44
63
|
const _component_el_switch = resolveComponent("el-switch");
|
|
45
64
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
46
65
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
66
|
+
ref_key: "formItemRef",
|
|
67
|
+
ref: formItemRef,
|
|
47
68
|
required: designProperty.value.required,
|
|
48
69
|
class: normalizeClass(unref(runtimeClass)),
|
|
49
70
|
"label-width": designProperty.value.labelWidth,
|
|
@@ -52,11 +73,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
73
|
label: withCtx(() => [
|
|
53
74
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
54
75
|
key: 0,
|
|
76
|
+
ref_key: "titleRef",
|
|
77
|
+
ref: titleRef,
|
|
55
78
|
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
56
79
|
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
57
80
|
]),
|
|
58
81
|
default: withCtx(() => [
|
|
59
82
|
createVNode(_component_el_switch, {
|
|
83
|
+
ref_key: "componentRef",
|
|
84
|
+
ref: componentRef,
|
|
60
85
|
disabled: designProperty.value.state === "disabled",
|
|
61
86
|
"active-value": designProperty.value.activeValue,
|
|
62
87
|
"active-text": designProperty.value.activeText,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "tag-runtime",
|
|
@@ -67,10 +67,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
}
|
|
68
68
|
handleFormEvent($event, props.pageContext, props.configure, "remove");
|
|
69
69
|
}
|
|
70
|
+
const formItemRef = ref(null);
|
|
71
|
+
const titleRef = ref(null);
|
|
72
|
+
onMounted(() => {
|
|
73
|
+
nextTick(() => {
|
|
74
|
+
const value = dynamicValues.value;
|
|
75
|
+
handleAfterInitEvent(
|
|
76
|
+
value,
|
|
77
|
+
props.pageContext,
|
|
78
|
+
props.configure,
|
|
79
|
+
{
|
|
80
|
+
formItemRef: formItemRef.value,
|
|
81
|
+
titleRef: titleRef.value,
|
|
82
|
+
value,
|
|
83
|
+
entity: props.pageContext.entity.data,
|
|
84
|
+
pageData: props.pageContext.entity.page
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
70
89
|
return (_ctx, _cache) => {
|
|
71
90
|
const _component_el_tag = resolveComponent("el-tag");
|
|
72
91
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
73
92
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
93
|
+
ref_key: "formItemRef",
|
|
94
|
+
ref: formItemRef,
|
|
74
95
|
required: designProperty.value.required,
|
|
75
96
|
class: normalizeClass(unref(runtimeClass)),
|
|
76
97
|
"label-width": designProperty.value.labelWidth,
|
|
@@ -79,6 +100,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
100
|
label: withCtx(() => [
|
|
80
101
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
81
102
|
key: 0,
|
|
103
|
+
ref_key: "titleRef",
|
|
104
|
+
ref: titleRef,
|
|
82
105
|
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
83
106
|
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
84
107
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, 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
|
-
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -28,11 +28,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const runtimeClass = runtimeInfo.class;
|
|
29
29
|
const headerStyle = runtimeInfo.headerStyle;
|
|
30
30
|
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
31
|
+
const formItemRef = ref(null);
|
|
32
|
+
const componentRef = ref(null);
|
|
33
|
+
const titleRef = ref(null);
|
|
34
|
+
onMounted(() => {
|
|
35
|
+
nextTick(() => {
|
|
36
|
+
const value = dynamicModelMethod.value;
|
|
37
|
+
handleAfterInitEvent(
|
|
38
|
+
value,
|
|
39
|
+
props.pageContext,
|
|
40
|
+
props.configure,
|
|
41
|
+
{
|
|
42
|
+
formItemRef: formItemRef.value,
|
|
43
|
+
componentRef: componentRef.value,
|
|
44
|
+
titleRef: titleRef.value,
|
|
45
|
+
value,
|
|
46
|
+
entity: props.pageContext.entity.data,
|
|
47
|
+
pageData: props.pageContext.entity.page
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
31
52
|
return (_ctx, _cache) => {
|
|
32
53
|
const _component_el_input = resolveComponent("el-input");
|
|
33
54
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
34
55
|
return openBlock(), createElementBlock("div", null, [
|
|
35
56
|
createVNode(_component_el_form_item, {
|
|
57
|
+
ref_key: "formItemRef",
|
|
58
|
+
ref: formItemRef,
|
|
36
59
|
required: designProperty.value.required ? true : false,
|
|
37
60
|
class: normalizeClass(unref(runtimeClass)),
|
|
38
61
|
"label-width": designProperty.value.labelWidth,
|
|
@@ -41,6 +64,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
64
|
label: withCtx(() => [
|
|
42
65
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
43
66
|
key: 0,
|
|
67
|
+
ref_key: "titleRef",
|
|
68
|
+
ref: titleRef,
|
|
44
69
|
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
45
70
|
}, [
|
|
46
71
|
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
@@ -54,6 +79,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
79
|
]),
|
|
55
80
|
default: withCtx(() => [
|
|
56
81
|
createVNode(_component_el_input, {
|
|
82
|
+
ref_key: "componentRef",
|
|
83
|
+
ref: componentRef,
|
|
57
84
|
disabled: designProperty.value.state === "disabled",
|
|
58
85
|
readonly: designProperty.value.state === "readonly",
|
|
59
86
|
size: designProperty.value.size,
|
|
@@ -14,13 +14,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
configure: {}
|
|
15
15
|
},
|
|
16
16
|
setup(__props) {
|
|
17
|
-
var _a;
|
|
17
|
+
var _a, _b;
|
|
18
18
|
const props = __props;
|
|
19
19
|
if (props.configure.style == void 0) {
|
|
20
20
|
props.configure.style = {};
|
|
21
21
|
}
|
|
22
22
|
const permissionCodes = getPermissionCodes(props.configure, props.pageContext);
|
|
23
|
-
console.log("Object-Render---permissionCodes=", permissionCodes);
|
|
24
23
|
if (props.configure && props.configure.props && props.configure.props.base) {
|
|
25
24
|
props.configure.props.base.functionCode = permissionCodes;
|
|
26
25
|
}
|
|
@@ -51,13 +50,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
console.log("obj-render-dynamicShowFlag", dynamicShowFlag);
|
|
55
53
|
return dynamicShowFlag;
|
|
56
54
|
});
|
|
57
55
|
const propConfigure = props.configure;
|
|
58
56
|
propConfigure._dynamicShowFlag = showFlag;
|
|
59
|
-
if (props.configure.props.editConditions) {
|
|
60
|
-
const editConditions = props.configure.props.editConditions;
|
|
57
|
+
if ((_b = props.configure.props.base) == null ? void 0 : _b.editConditions) {
|
|
58
|
+
const editConditions = props.configure.props.base.editConditions;
|
|
61
59
|
if (editConditions.length > 0) {
|
|
62
60
|
const runtime = props.configure.runtime ? props.configure.runtime : {};
|
|
63
61
|
const property = runtime.props ? runtime.props : {};
|
|
@@ -3,7 +3,7 @@ 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, packageAdditionalMapWithRoute } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef, removePageAllRef, initComponentRefState } from "../utils/global-refs.js";
|
|
6
|
-
import { removeCustomFuncFromWindow, handleEvent, initPageEvents } from "../utils/events/event-util.js";
|
|
6
|
+
import { removeCustomFuncFromWindow, handleEvent, initPageEvents, getCustomFunc } 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";
|
|
@@ -17,10 +17,11 @@ import { i18nValidateRulesMessage } from "../utils/events/validator-util.js";
|
|
|
17
17
|
import _sfc_main$5 from "./super-page-dialog.vue.js";
|
|
18
18
|
import { useRoute, useRouter } from "vue-router";
|
|
19
19
|
import { jumpToPage } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
|
-
import { setSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
20
|
+
import { setSessionCache, getUsername } from "agilebuilder-ui/src/utils/auth";
|
|
21
21
|
import { deepCopy, isNumber, refreshMobileDialogType } from "../utils/common-util.js";
|
|
22
22
|
import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
|
|
23
23
|
import { usePageContextStore } from "../utils/page-store.js";
|
|
24
|
+
import imatrixUiStore from "agilebuilder-ui/src/store";
|
|
24
25
|
const _hoisted_1 = { class: "app-container" };
|
|
25
26
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
27
|
__name: "super-page",
|
|
@@ -236,7 +237,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
236
237
|
pageContext2.initChartData = {};
|
|
237
238
|
pageContext2.initChartData.data = deepCopy(pageContext2.entity.data);
|
|
238
239
|
pageContext2.initChartData.page = deepCopy(pageContext2.entity.page);
|
|
239
|
-
console.log("pageContext.chartConfigs:", chartConfigs);
|
|
240
240
|
if (chartConfigs && chartConfigs.length > 0) {
|
|
241
241
|
updateChartDatasources(pageContext2, chartConfigs, null, true);
|
|
242
242
|
}
|
|
@@ -271,8 +271,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
271
|
setTimeout(() => {
|
|
272
272
|
initPageDesign(props.pageDesign).then(() => {
|
|
273
273
|
if (props.pageDesign.tableRuntimes && Object.keys(props.pageDesign.tableRuntimes).length > 0) {
|
|
274
|
-
queryPageSuperGrids(props.pageDesign, pageContext.value, props.publishVersion).then((
|
|
275
|
-
pageContext.value.
|
|
274
|
+
queryPageSuperGrids(props.pageDesign, pageContext.value, props.publishVersion).then((result) => {
|
|
275
|
+
pageContext.value.isWorkflowEntity = result.isWorkflowEntity;
|
|
276
|
+
pageContext.value.dataTypeMaps = result.dataTypeMaps;
|
|
277
|
+
pageContext.value.superGridItems = result.superGrids;
|
|
276
278
|
}).catch((error) => {
|
|
277
279
|
console.log("queryPageSuperGrids error", error);
|
|
278
280
|
}).finally(() => {
|
|
@@ -406,6 +408,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
406
408
|
} else {
|
|
407
409
|
const myJumpPageSetting = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
|
|
408
410
|
if (myJumpPageSetting && myJumpPageSetting.jumpPageUrl) {
|
|
411
|
+
if (myJumpPageSetting.isNewPage !== false && myJumpPageSetting.isNewPage !== true) {
|
|
412
|
+
myJumpPageSetting.isNewPage = true;
|
|
413
|
+
}
|
|
409
414
|
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
410
415
|
const isNeedId = ((_a = parentConfigureObj.value.props.linkPage) == null ? void 0 : _a.isNeedId) ? true : false;
|
|
411
416
|
console.log(
|
|
@@ -443,6 +448,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
443
448
|
}
|
|
444
449
|
});
|
|
445
450
|
}
|
|
451
|
+
function getCurrentUserPermissionsWhenPopPageDiff(popPageSetting, jumpMode) {
|
|
452
|
+
const loginName = getUsername();
|
|
453
|
+
return new Promise((resolve, reject) => {
|
|
454
|
+
if (loginName) {
|
|
455
|
+
debugger;
|
|
456
|
+
if ((jumpMode === "popup" || isMobile) && parentPageContext.value.systemCode !== popPageSetting.customSystem) {
|
|
457
|
+
const systemCode = popPageSetting.customSystem;
|
|
458
|
+
imatrixUiStore.dispatch("getCurrentUserPermissions", { loginName, systemCode }).then(() => {
|
|
459
|
+
resolve(true);
|
|
460
|
+
}).catch(() => {
|
|
461
|
+
console.log("获得用户权限失败");
|
|
462
|
+
resolve(true);
|
|
463
|
+
});
|
|
464
|
+
} else {
|
|
465
|
+
resolve(true);
|
|
466
|
+
}
|
|
467
|
+
} else {
|
|
468
|
+
resolve(true);
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
}
|
|
446
472
|
const router = useRouter();
|
|
447
473
|
function openDialog(configureObj, eventParams, myJumpPageSetting) {
|
|
448
474
|
getPopPageSetting(configureObj, eventParams, myJumpPageSetting).then((openPageParams) => {
|
|
@@ -469,31 +495,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
469
495
|
popPageSetting.isNewPage = true;
|
|
470
496
|
if (jumpMode === "popup" || jumpMode === "refresh") {
|
|
471
497
|
const linkType = popPageSetting.linkType;
|
|
472
|
-
|
|
473
|
-
popPageSetting.
|
|
474
|
-
|
|
475
|
-
popPageSetting.dialogType = "drawer";
|
|
476
|
-
popPageSetting.jumpPageWidth = "100%";
|
|
477
|
-
}
|
|
478
|
-
jumpPageSetting.value = popPageSetting;
|
|
479
|
-
isShowDialog.value = true;
|
|
480
|
-
} else {
|
|
481
|
-
popPageSetting._isIframe = false;
|
|
482
|
-
if (jumpMode === "popup" || isMobile && jumpMode === "refresh") {
|
|
498
|
+
getCurrentUserPermissionsWhenPopPageDiff(popPageSetting, jumpMode).then(() => {
|
|
499
|
+
if (isMobile && (parentPageContext.value.systemCode !== popPageSetting.customSystem || linkType && linkType === "url")) {
|
|
500
|
+
popPageSetting._isIframe = true;
|
|
483
501
|
if (jumpMode === "refresh") {
|
|
484
502
|
popPageSetting.dialogType = "drawer";
|
|
485
503
|
popPageSetting.jumpPageWidth = "100%";
|
|
486
504
|
}
|
|
487
|
-
debugger;
|
|
488
505
|
jumpPageSetting.value = popPageSetting;
|
|
489
506
|
isShowDialog.value = true;
|
|
490
|
-
} else
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
507
|
+
} else {
|
|
508
|
+
popPageSetting._isIframe = false;
|
|
509
|
+
if (jumpMode === "popup" || isMobile && jumpMode === "refresh") {
|
|
510
|
+
if (jumpMode === "refresh") {
|
|
511
|
+
popPageSetting.dialogType = "drawer";
|
|
512
|
+
popPageSetting.jumpPageWidth = "100%";
|
|
513
|
+
}
|
|
514
|
+
jumpPageSetting.value = popPageSetting;
|
|
515
|
+
isShowDialog.value = true;
|
|
516
|
+
} else if (jumpMode === "refresh") {
|
|
517
|
+
router.push({
|
|
518
|
+
path: "/dsc/page",
|
|
519
|
+
query: popPageSetting
|
|
520
|
+
});
|
|
521
|
+
}
|
|
495
522
|
}
|
|
496
|
-
}
|
|
523
|
+
});
|
|
497
524
|
eventBus.$on(eventPageInfo.value + "close-dialog", (params) => {
|
|
498
525
|
closeFunc(params);
|
|
499
526
|
});
|
|
@@ -512,6 +539,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
512
539
|
}
|
|
513
540
|
}
|
|
514
541
|
function closeDialog(params) {
|
|
542
|
+
const closeEventName = jumpPageSetting.value.closeEvent;
|
|
543
|
+
const isRefreshWhenClosePopup = jumpPageSetting.value.isRefreshWhenClosePopup;
|
|
515
544
|
let dataModel;
|
|
516
545
|
let sourceTableName;
|
|
517
546
|
if (params) {
|
|
@@ -528,20 +557,54 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
528
557
|
}
|
|
529
558
|
}
|
|
530
559
|
const targetTableName = parentPageContext.value.tableName;
|
|
531
|
-
|
|
560
|
+
let currentParentConfigureObj;
|
|
561
|
+
const columnProp = parentEventParams.value.columnProp ? parentEventParams.value.columnProp : null;
|
|
562
|
+
if (columnProp) {
|
|
563
|
+
const columnConfigures = parentConfigureObj.value.items.filter(
|
|
564
|
+
(column) => {
|
|
565
|
+
var _a, _b, _c, _d;
|
|
566
|
+
return ((_b = (_a = column.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) && ((_d = (_c = column.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop) === columnProp;
|
|
567
|
+
}
|
|
568
|
+
);
|
|
569
|
+
currentParentConfigureObj = columnConfigures && columnConfigures.length > 0 ? columnConfigures[0] : null;
|
|
570
|
+
} else {
|
|
571
|
+
currentParentConfigureObj = parentConfigureObj.value;
|
|
572
|
+
}
|
|
573
|
+
handleEvent(null, parentPageContext.value, currentParentConfigureObj, "closePopup", {
|
|
532
574
|
sourceModel: dataModel,
|
|
533
575
|
sourceTableName,
|
|
534
576
|
jumpPageSetting,
|
|
535
577
|
entity: parentPageContext.value.entity.data,
|
|
536
|
-
targetTableName
|
|
578
|
+
targetTableName,
|
|
579
|
+
pageContext: pageContext.value,
|
|
580
|
+
parentPageContext: parentPageContext.value,
|
|
581
|
+
parentConfigureObj: currentParentConfigureObj,
|
|
582
|
+
columnProp
|
|
537
583
|
});
|
|
538
|
-
|
|
584
|
+
handleCloseDialogEvent(closeEventName, columnProp, currentParentConfigureObj);
|
|
585
|
+
refreshFormOrListPage(parentPageContext.value, parentConfigureObj.value, isRefreshWhenClosePopup);
|
|
539
586
|
parentPageContext.value = null;
|
|
540
587
|
parentConfigureObj.value = null;
|
|
541
588
|
parentEventParams.value = null;
|
|
542
589
|
eventBus.$off(eventPageInfo.value + "close-dialog");
|
|
543
590
|
isShowDialog.value = false;
|
|
544
591
|
}
|
|
592
|
+
function handleCloseDialogEvent(closeEventName, columnProp, currentParentConfigureObj) {
|
|
593
|
+
if (closeEventName) {
|
|
594
|
+
const func = getCustomFunc(parentPageContext.value, closeEventName);
|
|
595
|
+
if (func) {
|
|
596
|
+
func.apply(func, [
|
|
597
|
+
{
|
|
598
|
+
pageContext: pageContext.value,
|
|
599
|
+
parentPageContext: parentPageContext.value,
|
|
600
|
+
parentConfigureObj: currentParentConfigureObj,
|
|
601
|
+
jumpPageSetting,
|
|
602
|
+
columnProp
|
|
603
|
+
}
|
|
604
|
+
]);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
545
608
|
function pickFileDone(data) {
|
|
546
609
|
let componentId = data.componentId;
|
|
547
610
|
let listCode = data.listCode;
|
package/dist/es/i18n/langs/cn.js
CHANGED
|
@@ -47,7 +47,9 @@ const cn = {
|
|
|
47
47
|
formatMismatch: "{label}格式不匹配",
|
|
48
48
|
overMaxLength: "{label}最多只能输入{value}字符",
|
|
49
49
|
limitMinLength: "{label}至少输入{value}字符",
|
|
50
|
-
flowNotStart: "流程未提交"
|
|
50
|
+
flowNotStart: "流程未提交",
|
|
51
|
+
pleaseInputOpinion: "请输入意见",
|
|
52
|
+
opinion: "意见"
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
55
|
export {
|
package/dist/es/i18n/langs/en.js
CHANGED
|
@@ -47,7 +47,9 @@ const en = {
|
|
|
47
47
|
formatMismatch: "{label} Format mismatch",
|
|
48
48
|
overMaxLength: "{label} can only input a maximum of {value} characters",
|
|
49
49
|
limitMinLength: "Enter at least {value} characters for {label}",
|
|
50
|
-
flowNotStart: "Workflow Not Started"
|
|
50
|
+
flowNotStart: "Workflow Not Started",
|
|
51
|
+
pleaseInputOpinion: "Please input opinion",
|
|
52
|
+
opinion: "Opinion"
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
55
|
export {
|
package/dist/es/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.60",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.0.
|
|
51
|
+
"agilebuilder-ui": "1.0.90",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|