super-page-runtime 2.1.60 → 2.1.63
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/events/standard-event.js +6 -2
- package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/table-utils.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +11 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +13 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/super-page.vue.js +0 -1
- package/package.json +1 -1
|
@@ -744,7 +744,11 @@ function dealAfterWithList(pageContext, configureObj, row, successTip) {
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
function refreshFormOrListPage(pageContext, configureObj, isRefreshWhenClosePopup) {
|
|
747
|
-
|
|
747
|
+
var _a;
|
|
748
|
+
if (configureObj && !configureObj.props.base) {
|
|
749
|
+
configureObj.props.base = {};
|
|
750
|
+
}
|
|
751
|
+
let successOperation = isRefreshWhenClosePopup ? "refresh" : (_a = configureObj.props.base) == null ? void 0 : _a.successOperation;
|
|
748
752
|
console.log(
|
|
749
753
|
"refreshFormOrListPage22=====successOperation=",
|
|
750
754
|
successOperation,
|
|
@@ -1391,7 +1395,7 @@ function submitProcessFunc(params) {
|
|
|
1391
1395
|
});
|
|
1392
1396
|
}
|
|
1393
1397
|
async function completeTaskFunc(params, operationResult) {
|
|
1394
|
-
|
|
1398
|
+
const validateOpinionResult = await validateOpinion(params);
|
|
1395
1399
|
return new Promise((resolve, reject) => {
|
|
1396
1400
|
var _a;
|
|
1397
1401
|
if (validateOpinionResult) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const $t: (key: string, ...args: any[]) => any;
|
|
@@ -4,13 +4,14 @@ import "agilebuilder-ui/src/utils/request";
|
|
|
4
4
|
import eventBus from "./eventBus.js";
|
|
5
5
|
import { getPermissionCodes } from "./page-init-util.js";
|
|
6
6
|
import { getEventFuncByType } from "./events/event-util.js";
|
|
7
|
+
import { $t } from "./i18n-util.js";
|
|
7
8
|
function popupToPage(params) {
|
|
8
9
|
const pageCode = params.pageContext && params.pageContext.code;
|
|
9
10
|
console.log("弹框显示页面--popupToPage====params=", params);
|
|
10
11
|
eventBus.$emit(pageCode + "_open-dialog", params);
|
|
11
12
|
}
|
|
12
13
|
function getTableNameByTableUuid(pageContext, tableUuid) {
|
|
13
|
-
|
|
14
|
+
const tableName = pageContext.tableName;
|
|
14
15
|
if (!tableUuid && tableName) {
|
|
15
16
|
return tableName;
|
|
16
17
|
}
|
|
@@ -39,10 +40,9 @@ function getOperationButtons(pageContext, configure, operations, clickEventFunc)
|
|
|
39
40
|
myButtonProps.permission = functionCodes;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
myButtonProps.label = myButtonProps.title;
|
|
43
|
+
myButtonProps.label = $t(myButtonProps.title);
|
|
43
44
|
myButtonProps.sourceButton = { uuid: buttonConfigure.uuid };
|
|
44
45
|
myButtonSet["props"] = myButtonProps;
|
|
45
|
-
debugger;
|
|
46
46
|
if (clickEventFunc !== void 0) {
|
|
47
47
|
myButtonSet["onClick"] = clickEventFunc(buttonConfigure);
|
|
48
48
|
} else {
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -95,7 +95,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
if (!linkConfigure) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
const params = {
|
|
99
|
+
data: clickParams.data,
|
|
100
|
+
dataIndex: clickParams.dataIndex,
|
|
101
|
+
name: clickParams.name,
|
|
102
|
+
seriesId: clickParams.seriesId,
|
|
103
|
+
seriesIndex: clickParams.seriesIndex,
|
|
104
|
+
seriesName: clickParams.seriesName,
|
|
105
|
+
seriesType: clickParams.seriesType,
|
|
106
|
+
value: clickParams.value
|
|
107
|
+
};
|
|
108
|
+
doClickJumpPageEvent(props.pageContext, linkConfigure, params);
|
|
99
109
|
}
|
|
100
110
|
let hisGroupValue = headerInfo.groupValue;
|
|
101
111
|
watch(headerInfo, () => {
|
|
@@ -4,7 +4,7 @@ import eventBus from "../../../../utils/eventBus.js";
|
|
|
4
4
|
import { ExpressionEvaluator } from "./chart-table-util.js";
|
|
5
5
|
const _hoisted_1 = { key: 0 };
|
|
6
6
|
const _hoisted_2 = { key: 1 };
|
|
7
|
-
const _hoisted_3 = { key:
|
|
7
|
+
const _hoisted_3 = { key: 1 };
|
|
8
8
|
const _hoisted_4 = { key: 2 };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "normal-column",
|
|
@@ -223,7 +223,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
223
223
|
class: normalizeClass(__props.column.props.format.icon)
|
|
224
224
|
}, null, 2)) : createCommentVNode("", true)
|
|
225
225
|
]))
|
|
226
|
-
], 64)) : (openBlock(), createElementBlock(
|
|
226
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
227
|
+
resloveLinkText.value && showLink(scope.row) ? (openBlock(), createBlock(_component_el_link, {
|
|
228
|
+
key: 0,
|
|
229
|
+
type: "primary",
|
|
230
|
+
onClick: ($event) => clickLink(scope.row)
|
|
231
|
+
}, {
|
|
232
|
+
default: withCtx(() => [
|
|
233
|
+
createTextVNode(toDisplayString(formatContent(scope.row, __props.column.props.format)), 1)
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(formatContent(scope.row, __props.column.props.format)), 1))
|
|
237
|
+
], 64))
|
|
227
238
|
], 64)) : resloveLinkText.value && showLink(scope.row) ? (openBlock(), createBlock(_component_el_link, {
|
|
228
239
|
key: 1,
|
|
229
240
|
type: "primary",
|
|
@@ -464,8 +464,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
464
464
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(tableColumnsConfig.value, (column, index) => {
|
|
465
465
|
return openBlock(), createBlock(_sfc_main$3, {
|
|
466
466
|
key: index,
|
|
467
|
-
column
|
|
468
|
-
|
|
467
|
+
column,
|
|
468
|
+
configure: __props.configure,
|
|
469
|
+
pageContext: __props.pageContext
|
|
470
|
+
}, null, 8, ["column", "configure", "pageContext"]);
|
|
469
471
|
}), 128))
|
|
470
472
|
]),
|
|
471
473
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createTextVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -123,19 +123,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
123
|
onMounted(() => {
|
|
124
124
|
nextTick(() => {
|
|
125
125
|
const value = dynamicModelMethod.value;
|
|
126
|
-
handleAfterInitEvent(
|
|
126
|
+
handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
127
|
+
formItemRef: formItemRef.value,
|
|
128
|
+
componentRef: componentRef.value,
|
|
129
|
+
titleRef: titleRef.value,
|
|
127
130
|
value,
|
|
128
|
-
props.pageContext,
|
|
129
|
-
props.
|
|
130
|
-
|
|
131
|
-
formItemRef: formItemRef.value,
|
|
132
|
-
componentRef: componentRef.value,
|
|
133
|
-
titleRef: titleRef.value,
|
|
134
|
-
value,
|
|
135
|
-
entity: props.pageContext.entity.data,
|
|
136
|
-
pageData: props.pageContext.entity.page
|
|
137
|
-
}
|
|
138
|
-
);
|
|
131
|
+
entity: props.pageContext.entity.data,
|
|
132
|
+
pageData: props.pageContext.entity.page
|
|
133
|
+
});
|
|
139
134
|
});
|
|
140
135
|
});
|
|
141
136
|
__expose({
|
|
@@ -175,12 +170,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
170
|
(openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
|
|
176
171
|
return openBlock(), createBlock(_component_el_radio, {
|
|
177
172
|
key: item.value,
|
|
178
|
-
|
|
179
|
-
label: item.label,
|
|
173
|
+
label: item.value,
|
|
180
174
|
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
|
|
181
175
|
values: dynamicModelMethod.value
|
|
182
176
|
})
|
|
183
|
-
},
|
|
177
|
+
}, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
180
|
+
]),
|
|
181
|
+
_: 2
|
|
182
|
+
}, 1032, ["label", "onClick"]);
|
|
184
183
|
}), 128))
|
|
185
184
|
]),
|
|
186
185
|
_: 1
|
|
@@ -452,7 +452,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
452
452
|
const loginName = getUsername();
|
|
453
453
|
return new Promise((resolve, reject) => {
|
|
454
454
|
if (loginName) {
|
|
455
|
-
debugger;
|
|
456
455
|
if ((jumpMode === "popup" || isMobile) && parentPageContext.value.systemCode !== popPageSetting.customSystem) {
|
|
457
456
|
const systemCode = popPageSetting.customSystem;
|
|
458
457
|
imatrixUiStore.dispatch("getCurrentUserPermissions", { loginName, systemCode }).then(() => {
|