super-page-runtime 2.1.37 → 2.1.40-tmp1
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/assemblys-config.js +7 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +2 -2
- package/dist/es/components/runtime/utils/i18n-util.js +23 -0
- package/dist/es/components/runtime/utils/page-store.d.ts +10 -0
- package/dist/es/components/runtime/utils/page-store.js +15 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +126 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +2 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +11 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +7 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +42 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -7
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +34 -7
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +90 -19
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +7 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +8 -1
- package/dist/es/components/runtime/views/super-page.vue.js +69 -7
- package/package.json +3 -2
|
@@ -301,6 +301,13 @@ const assemblyGroups = [
|
|
|
301
301
|
runtimeComponent: defineAsyncComponent(() => {
|
|
302
302
|
return import("../views/assemblys/chart/scatter/scatter-runtime.vue.js");
|
|
303
303
|
})
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: "statistical-table",
|
|
307
|
+
label: "统计表格",
|
|
308
|
+
runtimeComponent: defineAsyncComponent(() => {
|
|
309
|
+
return import("../views/assemblys/chart/table/table-runtime.vue.js");
|
|
310
|
+
})
|
|
304
311
|
}
|
|
305
312
|
]
|
|
306
313
|
},
|
|
@@ -1714,10 +1714,10 @@ function doRemoveSigners(params, selectRemoveTasks) {
|
|
|
1714
1714
|
let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
1715
1715
|
path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
|
|
1716
1716
|
if (!path) {
|
|
1717
|
-
|
|
1717
|
+
ElMessage({
|
|
1718
1718
|
showClose: true,
|
|
1719
1719
|
type: "warning",
|
|
1720
|
-
message:
|
|
1720
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1721
1721
|
});
|
|
1722
1722
|
return;
|
|
1723
1723
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { usePageContextStore } from "./page-store.js";
|
|
2
|
+
import { getEnableI18nState } from "agilebuilder-ui/src/utils/i18n-util";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
let enableI18n = null;
|
|
5
|
+
let i18n = null;
|
|
6
|
+
const $t = (key, ...args) => {
|
|
7
|
+
if (!i18n) {
|
|
8
|
+
i18n = useI18n();
|
|
9
|
+
}
|
|
10
|
+
const pageContext = usePageContextStore().pageContext;
|
|
11
|
+
if (enableI18n === null) {
|
|
12
|
+
enableI18n = getEnableI18nState(pageContext.systemCode) ? true : false;
|
|
13
|
+
}
|
|
14
|
+
if (!enableI18n) {
|
|
15
|
+
return key;
|
|
16
|
+
}
|
|
17
|
+
const i18nKey = `${pageContext.systemCode}.${key}`;
|
|
18
|
+
const i18nValue = i18n.t(i18nKey, args || []);
|
|
19
|
+
return i18nValue !== i18nKey ? i18nValue : key;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
$t
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const usePageContextStore: import('pinia').StoreDefinition<"pageContextUtil", import('pinia')._UnwrapAll<Pick<{
|
|
2
|
+
pageContext: any;
|
|
3
|
+
setPageContext: (newPageContext: any) => void;
|
|
4
|
+
}, "pageContext">>, Pick<{
|
|
5
|
+
pageContext: any;
|
|
6
|
+
setPageContext: (newPageContext: any) => void;
|
|
7
|
+
}, "pageContext">, Pick<{
|
|
8
|
+
pageContext: any;
|
|
9
|
+
setPageContext: (newPageContext: any) => void;
|
|
10
|
+
}, "pageContext" | "setPageContext">>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import { defineStore } from "pinia";
|
|
3
|
+
const usePageContextStore = defineStore("pageContextUtil", () => {
|
|
4
|
+
const pageContext = ref({ systemCode: "", systemVersion: -1 });
|
|
5
|
+
function setPageContext(newPageContext) {
|
|
6
|
+
pageContext.value = newPageContext;
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
pageContext,
|
|
10
|
+
setPageContext
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
usePageContextStore
|
|
15
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, Fragment, createTextVNode, toDisplayString, createCommentVNode, createBlock } from "vue";
|
|
2
2
|
import { SuperIcon } from "agilebuilder-ui";
|
|
3
3
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
4
5
|
const _hoisted_1 = { class: "page-runtime-header-btn" };
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "button-runtime",
|
|
@@ -37,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
}, {
|
|
38
39
|
default: withCtx(() => [
|
|
39
40
|
designProperty.value.title && designProperty.value.iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
40
|
-
createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
|
|
41
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
41
42
|
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
42
43
|
createTextVNode(" ")
|
|
43
44
|
], 64)) : createCommentVNode("", true)
|
|
@@ -51,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
52
53
|
createTextVNode(" ")
|
|
53
54
|
], 64)) : createCommentVNode("", true),
|
|
54
|
-
createTextVNode(" " + toDisplayString(designProperty.value.title), 1)
|
|
55
|
+
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
55
56
|
], 64)) : createCommentVNode("", true)
|
|
56
57
|
]),
|
|
57
58
|
_: 1
|
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, computed, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
import { ArrowDown } from "@element-plus/icons-vue";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
6
|
const _hoisted_1 = { key: 1 };
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "dropdown-runtime",
|
|
@@ -79,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
80
|
onClick: ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick", { menuItem: item })
|
|
80
81
|
}, {
|
|
81
82
|
default: withCtx(() => [
|
|
82
|
-
createTextVNode(toDisplayString(item.label), 1)
|
|
83
|
+
createTextVNode(toDisplayString(unref($t)(item.label)), 1)
|
|
83
84
|
]),
|
|
84
85
|
_: 2
|
|
85
86
|
}, 1032, ["onClick"]);
|
|
@@ -97,13 +98,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
98
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
|
|
98
99
|
}, {
|
|
99
100
|
default: withCtx(() => [
|
|
100
|
-
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
101
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
101
102
|
]),
|
|
102
103
|
_: 1
|
|
103
104
|
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(designProperty.value.title), 1))
|
|
104
105
|
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
105
106
|
default: withCtx(() => [
|
|
106
|
-
createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
|
|
107
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
107
108
|
createVNode(_component_el_icon, null, {
|
|
108
109
|
default: withCtx(() => [
|
|
109
110
|
createVNode(unref(ArrowDown))
|
package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, normali
|
|
|
2
2
|
import "agilebuilder-ui";
|
|
3
3
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import _sfc_main$1 from "../button/button-runtime.vue2.js";
|
|
5
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
6
|
const _hoisted_1 = { key: 1 };
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "printlabel-runtime",
|
|
@@ -51,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
onClick: ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click", { menuItem: item })
|
|
52
53
|
}, {
|
|
53
54
|
default: withCtx(() => [
|
|
54
|
-
createTextVNode(toDisplayString(item.label), 1)
|
|
55
|
+
createTextVNode(toDisplayString(unref($t)(item.label)), 1)
|
|
55
56
|
]),
|
|
56
57
|
_: 2
|
|
57
58
|
}, 1032, ["onClick"]);
|
|
@@ -69,13 +70,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
70
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
|
|
70
71
|
}, {
|
|
71
72
|
default: withCtx(() => [
|
|
72
|
-
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
73
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
73
74
|
]),
|
|
74
75
|
_: 1
|
|
75
|
-
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(designProperty.value.title), 1))
|
|
76
|
+
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(unref($t)(designProperty.value.title)), 1))
|
|
76
77
|
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
77
78
|
default: withCtx(() => [
|
|
78
|
-
createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
|
|
79
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
79
80
|
createVNode(_component_el_icon, null, {
|
|
80
81
|
default: withCtx(() => [
|
|
81
82
|
createVNode(_component_ArrowDown)
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, withDirectives, createVNode, vShow, withCtx } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../common/common-chart-header.vue.js";
|
|
3
|
+
import { getChartDatasFromPage } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "table-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
configure: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: () => {
|
|
10
|
+
return {};
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
pageContext: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(__props, { expose: __expose }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const tableData = [
|
|
23
|
+
{
|
|
24
|
+
date: "2016-05-03",
|
|
25
|
+
name: "Tom",
|
|
26
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
date: "2016-05-02",
|
|
30
|
+
name: "Tom",
|
|
31
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
date: "2016-05-04",
|
|
35
|
+
name: "Tom",
|
|
36
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
date: "2016-05-01",
|
|
40
|
+
name: "Tom",
|
|
41
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
45
|
+
const runtimeStyle = runtimeInfo.style;
|
|
46
|
+
const runtimeClass = runtimeInfo.class;
|
|
47
|
+
const dataConfig = runtimeInfo.dataConfig;
|
|
48
|
+
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
49
|
+
props.configure.props ? props.configure.props.drillEndTrigger : null;
|
|
50
|
+
const headerRef = ref(null);
|
|
51
|
+
runtimeInfo.chartOption;
|
|
52
|
+
debugger;
|
|
53
|
+
onMounted(() => {
|
|
54
|
+
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
55
|
+
if (resultData) {
|
|
56
|
+
updateChartDatas(resultData);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
function updateChartDatas(resultData) {
|
|
60
|
+
if (!resultData) {
|
|
61
|
+
resultData = [];
|
|
62
|
+
}
|
|
63
|
+
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
64
|
+
if (!resultData) {
|
|
65
|
+
resultData = {};
|
|
66
|
+
}
|
|
67
|
+
if (resultData.hasRender) {
|
|
68
|
+
resultData.hasRender = true;
|
|
69
|
+
console.log("重复更新!", resultData);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
resultData.hasRender = true;
|
|
73
|
+
dataConfig.autoRefresh = false;
|
|
74
|
+
}
|
|
75
|
+
function exportChart() {
|
|
76
|
+
}
|
|
77
|
+
__expose({
|
|
78
|
+
updateChartDatas,
|
|
79
|
+
exportChart
|
|
80
|
+
});
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
83
|
+
const _component_el_table = resolveComponent("el-table");
|
|
84
|
+
return openBlock(), createElementBlock("div", {
|
|
85
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
86
|
+
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
87
|
+
ref: "thisRef"
|
|
88
|
+
}, [
|
|
89
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
90
|
+
ref_key: "headerRef",
|
|
91
|
+
ref: headerRef,
|
|
92
|
+
headerInfo: unref(headerInfo),
|
|
93
|
+
configure: __props.configure,
|
|
94
|
+
pageContext: __props.pageContext
|
|
95
|
+
}, null, 8, ["headerInfo", "configure", "pageContext"]), [
|
|
96
|
+
[vShow, unref(headerInfo).showHeader]
|
|
97
|
+
]),
|
|
98
|
+
createVNode(_component_el_table, {
|
|
99
|
+
data: tableData,
|
|
100
|
+
style: { "width": "100%" }
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
createVNode(_component_el_table_column, {
|
|
104
|
+
prop: "date",
|
|
105
|
+
label: "Date",
|
|
106
|
+
width: "180"
|
|
107
|
+
}),
|
|
108
|
+
createVNode(_component_el_table_column, {
|
|
109
|
+
prop: "name",
|
|
110
|
+
label: "Name",
|
|
111
|
+
width: "180"
|
|
112
|
+
}),
|
|
113
|
+
createVNode(_component_el_table_column, {
|
|
114
|
+
prop: "address",
|
|
115
|
+
label: "Address"
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
})
|
|
120
|
+
], 6);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
export {
|
|
125
|
+
_sfc_main as default
|
|
126
|
+
};
|
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, openBlock, createBlock, unref, normalizeStyle, no
|
|
|
2
2
|
import { ElCard } from "element-plus";
|
|
3
3
|
import { SuperIcon } from "agilebuilder-ui";
|
|
4
4
|
import _sfc_main$1 from "../../object-render.vue.js";
|
|
5
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "card-runtime",
|
|
7
8
|
props: {
|
|
@@ -29,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
return openBlock(), createBlock(unref(ElCard), {
|
|
30
31
|
ref_key: "thisRef",
|
|
31
32
|
ref: thisRef,
|
|
32
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
33
|
+
style: normalizeStyle([unref(runtimeStyle), { "margin-top": "20px" }]),
|
|
33
34
|
class: normalizeClass(unref(runtimeClass))
|
|
34
35
|
}, createSlots({
|
|
35
36
|
default: withCtx(() => [
|
|
@@ -59,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
60
|
iconValue: _ctx.configure.props.iconValue,
|
|
60
61
|
style: { "margin-right": "2px" }
|
|
61
62
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
62
|
-
createTextVNode(" " + toDisplayString(_ctx.configure.props.base.title), 1)
|
|
63
|
+
createTextVNode(" " + toDisplayString(unref($t)(_ctx.configure.props.base.title)), 1)
|
|
63
64
|
], 4)
|
|
64
65
|
]),
|
|
65
66
|
key: "0"
|
package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, unref, isRef, normalizeStyle, normalizeClass, withCtx, createElementBlock, Fragment, renderList, createElementVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "collapse-runtime",
|
|
6
7
|
props: {
|
|
@@ -47,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
iconValue: item.iconValue,
|
|
48
49
|
style: { "margin-right": "2px" }
|
|
49
50
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
50
|
-
createTextVNode(" " + toDisplayString(item.label), 1)
|
|
51
|
+
createTextVNode(" " + toDisplayString(unref($t)(item.label)), 1)
|
|
51
52
|
], 4)
|
|
52
53
|
]),
|
|
53
54
|
default: withCtx(() => [
|
|
@@ -2,8 +2,8 @@ import { defineComponent, ref, openBlock, createBlock, unref, normalizeStyle, no
|
|
|
2
2
|
import { ElTabs, ElTabPane } from "element-plus";
|
|
3
3
|
import _sfc_main$1 from "../../object-render.vue.js";
|
|
4
4
|
import { SuperIcon } from "agilebuilder-ui";
|
|
5
|
-
import "../../../../utils/global-refs.js";
|
|
6
5
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "tabs-runtime",
|
|
9
9
|
props: {
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
84
84
|
createElementVNode("span", {
|
|
85
85
|
style: normalizeStyle(unref(headerStyle))
|
|
86
|
-
}, toDisplayString(item.label), 5)
|
|
86
|
+
}, toDisplayString(unref($t)(item.label)), 5)
|
|
87
87
|
]),
|
|
88
88
|
default: withCtx(() => [
|
|
89
89
|
createElementVNode("div", null, [
|
|
@@ -6,6 +6,7 @@ import { generateCodeByRule } from "../../../../utils/barcode-util.js";
|
|
|
6
6
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
7
7
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
8
8
|
import http from "agilebuilder-ui/src/utils/request";
|
|
9
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
9
10
|
const _hoisted_1 = ["src"];
|
|
10
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
12
|
__name: "barcode-runtime",
|
|
@@ -161,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
162
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
162
163
|
key: 0,
|
|
163
164
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
164
|
-
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
165
|
+
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
165
166
|
]),
|
|
166
167
|
default: withCtx(() => [
|
|
167
168
|
designProperty.value.type === "QR-code" ? (openBlock(), createElementBlock("img", {
|
|
@@ -66,6 +66,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
eventBus.$on(eventPageInfo + "_close-dialog-get-entity", () => {
|
|
67
67
|
eventBus.$emit(eventPageInfo + "_close-super-dialog");
|
|
68
68
|
});
|
|
69
|
+
eventBus.$on(listCode + "-pickFileDone", (data) => {
|
|
70
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", listCode, "data=", data);
|
|
71
|
+
gridRef.value.pickFileDone(data);
|
|
72
|
+
});
|
|
73
|
+
eventBus.$on(listCode + "-scanDone", (data) => {
|
|
74
|
+
console.log("superPage5555---listCode---scanDone--listCode=", listCode, "data=", data);
|
|
75
|
+
gridRef.value.scanDone(data);
|
|
76
|
+
});
|
|
69
77
|
listOptions.value["formSetMaxHeight"] = getComponentHeight();
|
|
70
78
|
});
|
|
71
79
|
watch(
|
|
@@ -89,6 +97,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
97
|
onUnmounted(() => {
|
|
90
98
|
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
91
99
|
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
100
|
+
eventBus.$off(listCode + "-pickFileDone");
|
|
101
|
+
eventBus.$off(listCode + "-scanDone");
|
|
92
102
|
});
|
|
93
103
|
function getUrlToListData() {
|
|
94
104
|
let urlToListData2 = baseURL + "/dsc/commons/list";
|
|
@@ -6,6 +6,7 @@ import eventBus from "../../../../utils/eventBus.js";
|
|
|
6
6
|
import { popupToPage } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap } from "../../../../utils/events/standard-event.js";
|
|
9
|
+
import "../../../../../../node_modules/process/browser.js";
|
|
9
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
11
|
__name: "sub-table-runtime",
|
|
11
12
|
props: {
|
|
@@ -85,12 +86,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
86
|
refreshChildTableData(gridData);
|
|
86
87
|
}
|
|
87
88
|
);
|
|
89
|
+
eventBus.$on(listCode + "-pickFileDone", (data) => {
|
|
90
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", listCode, "data=", data);
|
|
91
|
+
gridRef.value.pickFileDone(data);
|
|
92
|
+
});
|
|
93
|
+
eventBus.$on(listCode + "-scanDone", (data) => {
|
|
94
|
+
console.log("superPage5555---listCode---scanDone--listCode=", listCode, "data=", data);
|
|
95
|
+
gridRef.value.scanDone(data);
|
|
96
|
+
});
|
|
88
97
|
});
|
|
89
98
|
onUnmounted(() => {
|
|
90
99
|
const tableUuid = configure.uuid;
|
|
91
100
|
eventBus.$off("_refreshSubTable_" + tableUuid);
|
|
92
101
|
eventBus.$off("_refreshSubTableHandle_" + tableUuid);
|
|
93
102
|
eventBus.$off("_refreshChildData_" + tableUuid);
|
|
103
|
+
eventBus.$off(listCode + "-pickFileDone");
|
|
104
|
+
eventBus.$off(listCode + "-scanDone");
|
|
94
105
|
});
|
|
95
106
|
function currencyListViewSetting(canRrefreshSubtableData) {
|
|
96
107
|
if (canRrefreshSubtableData === void 0) {
|
|
@@ -2,6 +2,7 @@ import { defineComponent, computed, ref, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, monitorFieldChange, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "checkbox-runtime",
|
|
7
8
|
props: {
|
|
@@ -31,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
const runtimeStyle = runtimeInfo.style;
|
|
32
33
|
const runtimeClass = runtimeInfo.class;
|
|
33
34
|
const headerStyle = runtimeInfo.headerStyle;
|
|
35
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
34
36
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
35
37
|
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
36
38
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
@@ -94,8 +96,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
96
|
label: withCtx(() => [
|
|
95
97
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
96
98
|
key: 0,
|
|
97
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
98
|
-
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
99
|
+
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
100
|
+
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
99
101
|
]),
|
|
100
102
|
default: withCtx(() => [
|
|
101
103
|
createVNode(_component_el_checkbox_group, {
|
|
@@ -111,7 +113,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
113
|
key: item.value,
|
|
112
114
|
value: item.value,
|
|
113
115
|
label: item.label,
|
|
114
|
-
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
|
|
116
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
|
|
117
|
+
values: dynamicModelMethod.value
|
|
118
|
+
})
|
|
115
119
|
}, null, 8, ["value", "label", "onClick"]);
|
|
116
120
|
}), 128))
|
|
117
121
|
]),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, resolveDynamicComponent } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue, getFormPropName, setVariableValueWithProp } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import "quill";
|
|
5
|
-
import "quill/dist/quill.snow.css";
|
|
6
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
7
5
|
import { packageCustomRules } from "../../../../utils/events/validator-util.js";
|
|
8
6
|
import { getListCode } from "../../../../utils/common-util.js";
|
|
9
7
|
import { getComponentRef } from "../../../../utils/global-refs.js";
|
|
10
8
|
import { getAdditionalParamMap } from "../../../../utils/events/standard-event.js";
|
|
9
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
10
|
+
import eventBus from "../../../../utils/eventBus.js";
|
|
11
11
|
const _hoisted_1 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
style: { "width": "100%", "height": "100%" }
|
|
@@ -42,7 +42,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
43
43
|
const customParams = runtimeInfo.customParams ? runtimeInfo.customParams : {};
|
|
44
44
|
const additionalParamMap = getAdditionalParamMap(props.pageContext);
|
|
45
|
-
const componentName = ref(
|
|
45
|
+
const componentName = ref(
|
|
46
|
+
props.configure.props && props.configure.props.base ? props.configure.props.base.name : null
|
|
47
|
+
);
|
|
46
48
|
console.log("自定义控件----componentName=", componentName, "designProperty=", designProperty);
|
|
47
49
|
if (!props.pageContext.customValidatorUuids) {
|
|
48
50
|
props.pageContext.customValidatorUuids = [];
|
|
@@ -66,7 +68,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
68
|
const tableUuids = props.pageContext.tableUuids;
|
|
67
69
|
if (tableUuids) {
|
|
68
70
|
tableUuids.forEach((tableUuid) => {
|
|
69
|
-
const listCode = getListCode(
|
|
71
|
+
const listCode = getListCode(
|
|
72
|
+
props.pageContext.code,
|
|
73
|
+
props.pageContext.version,
|
|
74
|
+
props.configure.uuid
|
|
75
|
+
);
|
|
70
76
|
const gridRef = getComponentRef(props.pageContext, tableUuid);
|
|
71
77
|
if (gridRef) {
|
|
72
78
|
gridRef.restoreGridEdit(listCode);
|
|
@@ -74,6 +80,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
80
|
});
|
|
75
81
|
}
|
|
76
82
|
}
|
|
83
|
+
const pageCode = props.pageContext.code;
|
|
84
|
+
const componentId = ref(
|
|
85
|
+
dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
|
|
86
|
+
);
|
|
87
|
+
const customRef = ref(null);
|
|
88
|
+
onMounted(() => {
|
|
89
|
+
eventBus.$on(componentId.value + "-scanDone", (data) => {
|
|
90
|
+
const value = data.result;
|
|
91
|
+
setVariableValue(entity, dynamicFields, value);
|
|
92
|
+
});
|
|
93
|
+
eventBus.$on(componentId.value + "-pickFileDone", (data) => {
|
|
94
|
+
console.log("superPage4444---pickFileDone--componentId.value=", componentId.value, "data=", data);
|
|
95
|
+
customRef.value.pickFileDone(data);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
onUnmounted(() => {
|
|
99
|
+
eventBus.$off(componentId.value + "-scanDone");
|
|
100
|
+
eventBus.$off(componentId.value + "-pickFileDone");
|
|
101
|
+
});
|
|
77
102
|
return (_ctx, _cache) => {
|
|
78
103
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
79
104
|
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
@@ -87,22 +112,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
112
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
88
113
|
key: 0,
|
|
89
114
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
90
|
-
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
115
|
+
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
91
116
|
]),
|
|
92
117
|
default: withCtx(() => [
|
|
93
118
|
componentName.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
94
119
|
(openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
|
|
120
|
+
ref_key: "customRef",
|
|
121
|
+
ref: customRef,
|
|
95
122
|
size: designProperty.value.size,
|
|
96
123
|
entity: _ctx.pageContext.entity.data,
|
|
97
124
|
pageData: _ctx.pageContext.entity.page,
|
|
98
125
|
pageContext: _ctx.pageContext,
|
|
99
126
|
configureObj: _ctx.configure,
|
|
100
|
-
prop: unref(getFormPropName)(
|
|
127
|
+
prop: unref(getFormPropName)(
|
|
128
|
+
_ctx.configure.props && _ctx.configure.props.base ? _ctx.configure.props.base.prop : null
|
|
129
|
+
),
|
|
101
130
|
"custom-params": unref(customParams),
|
|
102
131
|
modelValue: dynamicModelMethod.value,
|
|
103
132
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
104
133
|
disabled: designProperty.value.state === "disabled",
|
|
105
134
|
"additional-param-map": unref(additionalParamMap),
|
|
135
|
+
"component-id": componentId.value,
|
|
106
136
|
onSetEntityValue: customControlSetValue,
|
|
107
137
|
onSetCustomRules: setCustomvalidateRules,
|
|
108
138
|
onRestoreGridEdit: restoreGridEdit,
|
|
@@ -111,12 +141,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
141
|
onClick: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "click")),
|
|
112
142
|
onBlur: _cache[4] || (_cache[4] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "blur")),
|
|
113
143
|
onFocus: _cache[5] || (_cache[5] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "focus"))
|
|
114
|
-
}, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map"]))
|
|
144
|
+
}, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))
|
|
115
145
|
])) : createCommentVNode("", true)
|
|
116
146
|
]),
|
|
117
147
|
_: 1
|
|
118
148
|
}, 8, ["required", "class", "label-width", "style"])) : componentName.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
119
149
|
(openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
|
|
150
|
+
ref_key: "customRef",
|
|
151
|
+
ref: customRef,
|
|
120
152
|
entity: _ctx.pageContext.entity.data,
|
|
121
153
|
pageData: _ctx.pageContext.entity.page,
|
|
122
154
|
pageContext: _ctx.pageContext,
|
|
@@ -127,6 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
159
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => dynamicModelMethod.value = $event),
|
|
128
160
|
disabled: designProperty.value.state === "disabled",
|
|
129
161
|
"additional-param-map": unref(additionalParamMap),
|
|
162
|
+
"component-id": componentId.value,
|
|
130
163
|
onSetEntityValue: customControlSetValue,
|
|
131
164
|
onSetCustomRules: setCustomvalidateRules,
|
|
132
165
|
onRestoreGridEdit: restoreGridEdit,
|
|
@@ -135,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
168
|
onClick: _cache[9] || (_cache[9] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "click")),
|
|
136
169
|
onBlur: _cache[10] || (_cache[10] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "blur")),
|
|
137
170
|
onFocus: _cache[11] || (_cache[11] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "focus"))
|
|
138
|
-
}, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map"]))
|
|
171
|
+
}, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))
|
|
139
172
|
])) : createCommentVNode("", true);
|
|
140
173
|
};
|
|
141
174
|
}
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -5,6 +5,7 @@ import { getValueFromVariable, setVariableValue, getVariableValue } from "../../
|
|
|
5
5
|
import { getCustomFunc, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "datepicker-runtime",
|
|
10
11
|
props: {
|
|
@@ -18,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
19
|
const runtimeStyle = runtimeInfo.style;
|
|
19
20
|
const runtimeClass = runtimeInfo.class;
|
|
20
21
|
const headerStyle = runtimeInfo.headerStyle;
|
|
22
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
21
23
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
22
24
|
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
23
25
|
console.log("designProperty", designProperty);
|
|
@@ -149,14 +151,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
151
|
label: withCtx(() => [
|
|
150
152
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
151
153
|
key: 0,
|
|
152
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
154
|
+
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
153
155
|
}, [
|
|
154
156
|
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
155
157
|
key: 0,
|
|
156
158
|
pageContext: _ctx.pageContext,
|
|
157
159
|
property: designProperty.value
|
|
158
160
|
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
159
|
-
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
161
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
160
162
|
], 64))
|
|
161
163
|
], 4)) : createCommentVNode("", true)
|
|
162
164
|
]),
|