super-page-runtime 2.1.37-temp6 → 2.1.38
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 +2 -1
- package/dist/es/components/runtime/utils/assemblys-config.js +7 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +26 -6
- package/dist/es/components/runtime/utils/i18n-util.js +23 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +2 -1
- 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 +2 -1
- 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 +10 -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 +21 -10
- 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/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.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.js +45 -23
- package/package.json +4 -4
|
@@ -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
|
},
|
|
@@ -75,10 +75,25 @@ function getEndObjectRule(rule, props, currentProp) {
|
|
|
75
75
|
}
|
|
76
76
|
function getValidator(columns) {
|
|
77
77
|
const rules = {};
|
|
78
|
+
if (columns) {
|
|
79
|
+
columns.forEach((editField) => {
|
|
80
|
+
const prop = editField.model;
|
|
81
|
+
if (prop && editField.validations) {
|
|
82
|
+
const validations = editField.validations;
|
|
83
|
+
if (prop.indexOf(".") > 0) {
|
|
84
|
+
setObjectPropRule(editField.prop, rules, validations);
|
|
85
|
+
} else {
|
|
86
|
+
if (validations && validations.length > 0) {
|
|
87
|
+
rules[prop] = [...validations];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
78
93
|
return rules;
|
|
79
94
|
}
|
|
80
95
|
function validator(entity, rules, columns, rowIndex, isSql) {
|
|
81
|
-
return validatorEntity(entity, rules, columns, rowIndex, true);
|
|
96
|
+
return validatorEntity(entity, rules, columns, rowIndex, true, isSql);
|
|
82
97
|
}
|
|
83
98
|
function sublistVerify(rules) {
|
|
84
99
|
if (!rules) {
|
|
@@ -104,7 +119,7 @@ function sublistVerify(rules) {
|
|
|
104
119
|
function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdate, isSql) {
|
|
105
120
|
let validateRules = sublistVerify(rules);
|
|
106
121
|
if ((!rules || rules === null) && columns) {
|
|
107
|
-
validateRules = getValidator();
|
|
122
|
+
validateRules = getValidator(columns);
|
|
108
123
|
}
|
|
109
124
|
if (!validateRules || Object.keys(validateRules).length === 0) {
|
|
110
125
|
entity["validateErrorField"] = "";
|
|
@@ -122,6 +137,11 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
122
137
|
if (errors) {
|
|
123
138
|
result = errors[0].message;
|
|
124
139
|
fieldName = errors[0]["field"];
|
|
140
|
+
if (typeof rowIndex !== "undefined" && rowIndex !== null) {
|
|
141
|
+
result = getI18n().t("superPageRuntimeMessage.recordLine", {
|
|
142
|
+
row: rowIndex + 1
|
|
143
|
+
}) + "," + result;
|
|
144
|
+
}
|
|
125
145
|
ElMessage({
|
|
126
146
|
message: result,
|
|
127
147
|
showClose: true,
|
|
@@ -134,11 +154,11 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
134
154
|
}
|
|
135
155
|
if (fieldName && isShouldRepeateValdate === true) {
|
|
136
156
|
const reg1 = /[A-Z]+/;
|
|
137
|
-
if (reg1.test(fieldName) && entity[fieldName.toLowerCase()] !== void 0) {
|
|
157
|
+
if (isSql !== void 0 && isSql === true && reg1.test(fieldName) && entity[fieldName.toLowerCase()] !== void 0) {
|
|
138
158
|
const copyEntity = JSON.parse(JSON.stringify(entity));
|
|
139
159
|
copyEntity[fieldName.toUpperCase()] = entity[fieldName.toLowerCase()];
|
|
140
160
|
delete copyEntity[fieldName.toLowerCase()];
|
|
141
|
-
result = validatorEntity(copyEntity, rules, columns, rowIndex, false);
|
|
161
|
+
result = validatorEntity(copyEntity, rules, columns, rowIndex, false, isSql);
|
|
142
162
|
}
|
|
143
163
|
}
|
|
144
164
|
}
|
|
@@ -186,7 +206,7 @@ function validateWorkflowFormDataModel(dataModel, pageContext) {
|
|
|
186
206
|
if (!rules || Object.keys(rules).length === 0) {
|
|
187
207
|
result = true;
|
|
188
208
|
} else {
|
|
189
|
-
result = validator(handleModels, rules, null, null);
|
|
209
|
+
result = validator(handleModels, rules, null, null, true);
|
|
190
210
|
}
|
|
191
211
|
if (result === true) {
|
|
192
212
|
const workflowFieldPermissionRules = pageContext.workflowRules;
|
|
@@ -250,7 +270,7 @@ function validateCommonFormDataModel(dataModel, pageContext, rules) {
|
|
|
250
270
|
if (!rules || Object.keys(rules).length === 0) {
|
|
251
271
|
resolve(handleModels);
|
|
252
272
|
} else {
|
|
253
|
-
const validateEntityResult = validator(handleModels, rules, null, null);
|
|
273
|
+
const validateEntityResult = validator(handleModels, rules, null, null, true);
|
|
254
274
|
if (validateEntityResult === true) {
|
|
255
275
|
const validateResult = validateSubTables(pageContext);
|
|
256
276
|
if (validateResult === true) {
|
|
@@ -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
|
+
};
|
|
@@ -138,7 +138,8 @@ function getRequestObject(pageRequest) {
|
|
|
138
138
|
requestObj[paramStrs[0]] = paramStrs.length > 1 ? paramStrs[1] : "";
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
if (requestObj["_t_"])
|
|
141
|
+
if (requestObj["_t_"])
|
|
142
|
+
;
|
|
142
143
|
return requestObj;
|
|
143
144
|
}
|
|
144
145
|
function packageAdditionalMapWithRoute(route, requestObj) {
|
|
@@ -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: {
|
|
@@ -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";
|
|
@@ -85,12 +85,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
refreshChildTableData(gridData);
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
|
+
eventBus.$on(listCode + "-pickFileDone", (data) => {
|
|
89
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", listCode, "data=", data);
|
|
90
|
+
gridRef.value.pickFileDone(data);
|
|
91
|
+
});
|
|
92
|
+
eventBus.$on(listCode + "-scanDone", (data) => {
|
|
93
|
+
console.log("superPage5555---listCode---scanDone--listCode=", listCode, "data=", data);
|
|
94
|
+
gridRef.value.scanDone(data);
|
|
95
|
+
});
|
|
88
96
|
});
|
|
89
97
|
onUnmounted(() => {
|
|
90
98
|
const tableUuid = configure.uuid;
|
|
91
99
|
eventBus.$off("_refreshSubTable_" + tableUuid);
|
|
92
100
|
eventBus.$off("_refreshSubTableHandle_" + tableUuid);
|
|
93
101
|
eventBus.$off("_refreshChildData_" + tableUuid);
|
|
102
|
+
eventBus.$off(listCode + "-pickFileDone");
|
|
103
|
+
eventBus.$off(listCode + "-scanDone");
|
|
94
104
|
});
|
|
95
105
|
function currencyListViewSetting(canRrefreshSubtableData) {
|
|
96
106
|
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
|
]),
|