super-page-runtime 2.1.75 → 2.1.79
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.
|
@@ -378,31 +378,26 @@ function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent,
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
|
|
381
|
-
|
|
381
|
+
let configureObj = configure;
|
|
382
|
+
let linkPage = configure.props.linkPage;
|
|
382
383
|
if (linkPage && linkPage instanceof Array) {
|
|
383
|
-
pageContext.canClick = true;
|
|
384
384
|
const row = getRowData(eventParams);
|
|
385
385
|
const result = expressJump(pageContext, configure, linkPage, row);
|
|
386
386
|
let show = false;
|
|
387
387
|
let toLinkPage;
|
|
388
388
|
if (result) {
|
|
389
389
|
show = result.show;
|
|
390
|
-
toLinkPage = result.toPage;
|
|
390
|
+
toLinkPage = show ? result.toPage : null;
|
|
391
391
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
configureObj
|
|
395
|
-
|
|
396
|
-
} else {
|
|
397
|
-
ElMessage({
|
|
398
|
-
showClose: true,
|
|
399
|
-
type: "warning",
|
|
400
|
-
message: "没有符合条件的跳转页面"
|
|
401
|
-
});
|
|
392
|
+
linkPage = toLinkPage ? toLinkPage.linkPage : null;
|
|
393
|
+
if (linkPage) {
|
|
394
|
+
configureObj = deepCopy(configure);
|
|
395
|
+
configureObj.props.linkPage = linkPage;
|
|
402
396
|
}
|
|
403
|
-
}
|
|
397
|
+
}
|
|
398
|
+
if (linkPage && linkPage.jumpPageUrl) {
|
|
404
399
|
pageContext.canClick = true;
|
|
405
|
-
doClickJumpPageEvent(pageContext,
|
|
400
|
+
doClickJumpPageEvent(pageContext, configureObj, eventParams);
|
|
406
401
|
} else {
|
|
407
402
|
doClickCustomEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
408
403
|
}
|