super-page-runtime 2.1.27 → 2.1.30
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/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -34,13 +34,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
|
|
35
35
|
const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
|
|
36
36
|
const linkPage = props.configure.props ? props.configure.props.linkPage : null;
|
|
37
|
-
const
|
|
37
|
+
const linkConfigureMap = {};
|
|
38
38
|
if (props.configure.items) {
|
|
39
39
|
for (const item of props.configure.items) {
|
|
40
|
-
if (linkPage && linkPage.jumpPageUrl) {
|
|
41
|
-
|
|
42
|
-
} else if (
|
|
43
|
-
|
|
40
|
+
if (item.props && item.props.linkPage && item.props.linkPage.jumpPageUrl) {
|
|
41
|
+
linkConfigureMap[item.uuid] = item;
|
|
42
|
+
} else if (linkPage && linkPage.jumpPageUrl) {
|
|
43
|
+
linkConfigureMap[item.uuid] = props.configure;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
if (resultData) {
|
|
59
59
|
updateChartDatas(resultData);
|
|
60
60
|
}
|
|
61
|
-
if (chartRef.value && (enableDrill || Object.keys(
|
|
61
|
+
if (chartRef.value && (enableDrill || Object.keys(linkConfigureMap).length > 0)) {
|
|
62
62
|
chartRef.value.chart.on("click", function(params) {
|
|
63
63
|
if (enableDrill) {
|
|
64
64
|
if (headerRef.value && headerRef.value.drill) {
|
|
@@ -90,12 +90,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
console.log("clik1", clickParams);
|
|
91
91
|
const selSerieUuid = chartOption.series[clickParams.seriesIndex].uuid;
|
|
92
92
|
console.log("clik2", selSerieUuid);
|
|
93
|
-
const
|
|
94
|
-
console.log("clik3",
|
|
95
|
-
if (!
|
|
93
|
+
const linkConfigure = linkConfigureMap[selSerieUuid];
|
|
94
|
+
console.log("clik3", linkConfigure);
|
|
95
|
+
if (!linkConfigure) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
doClickJumpPageEvent(props.pageContext,
|
|
98
|
+
doClickJumpPageEvent(props.pageContext, linkConfigure, void 0);
|
|
99
99
|
}
|
|
100
100
|
let hisGroupValue = headerInfo.groupValue;
|
|
101
101
|
watch(headerInfo, () => {
|
|
@@ -390,21 +390,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
390
390
|
}
|
|
391
391
|
function getPopPageSetting(configureObj, eventParams, jumpPageSetting2) {
|
|
392
392
|
return new Promise((resolve, reject) => {
|
|
393
|
+
var _a;
|
|
393
394
|
if (jumpPageSetting2) {
|
|
394
395
|
resolve(jumpPageSetting2);
|
|
395
396
|
} else {
|
|
396
397
|
const myJumpPageSetting = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
|
|
397
398
|
if (myJumpPageSetting && myJumpPageSetting.jumpPageUrl) {
|
|
398
399
|
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
399
|
-
|
|
400
|
-
let ids = eventParams ? eventParams.ids : null;
|
|
401
|
-
let selections = eventParams ? eventParams.selections : [];
|
|
400
|
+
const isNeedId = ((_a = parentConfigureObj.value.props.linkPage) == null ? void 0 : _a.isNeedId) ? true : false;
|
|
402
401
|
console.log(
|
|
403
|
-
"getPopPageSetting---
|
|
404
|
-
|
|
405
|
-
"
|
|
406
|
-
|
|
402
|
+
"getPopPageSetting---isNeedId=",
|
|
403
|
+
isNeedId,
|
|
404
|
+
"parentConfigureObj.value=",
|
|
405
|
+
parentConfigureObj.value
|
|
407
406
|
);
|
|
407
|
+
let dataId = isNeedId && eventParams ? eventParams.id : null;
|
|
408
|
+
let ids = isNeedId && eventParams ? eventParams.ids : null;
|
|
409
|
+
let selections = eventParams ? eventParams.selections : [];
|
|
408
410
|
let entity = {};
|
|
409
411
|
if (selections && selections.length > 0) {
|
|
410
412
|
entity = selections[0];
|
|
@@ -418,6 +420,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
418
420
|
Object.assign(entity, dataModel);
|
|
419
421
|
}
|
|
420
422
|
}
|
|
423
|
+
const copyPageData = deepCopy(parentPageContext.value.entity.page);
|
|
424
|
+
myJumpPageSetting._pageData = copyPageData;
|
|
421
425
|
jumpToPage(myJumpPageSetting, null, dataId, entity, additionalParamMap, ids).then(
|
|
422
426
|
(openPageParams) => {
|
|
423
427
|
resolve(openPageParams);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
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.68",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|