一:弹框
let idPrefix = window.localStorage.getItem("xjRequest").replace(/\//, "");
const action = {
id: "xj-table", //"xjreportnew",
sourceId: "xj-analyse-1.0",
targetId: "*",
event: {
type: "SWITCH_GLOBAL_MODAL",
data: {
title: "", 弹窗标题
cardId: idPrefix + "@xj-3-waring_1", // 弹窗卡片ID
positionTop: "", // 数字,弹窗上边距
positionLeft: "", // 数字,弹窗左边距{"width":2060, "height":1080}
contentWidth: "1232", //数字,弹窗内容的宽度4
// contentHeight: "566", // 数字或'auto',弹窗内容的高度。
contentHeight: "680", // 数字或'auto',弹窗内容的高度。
params: {
data: {},
}, // 需要传递的参数
},
},
tm: new Date().getTime(),
};
二:卡片间传值
const action1 = {
id: "xj-table", //"xjreportnew",
sourceId: "xj-analyse-1.0",
targetId: "*",
event: {
type: "SWITCH_ASSET",
data: {
title: "详细信息",
cardId: idPrefix + "@xj-3-record-L2-L", // 弹窗卡片ID
positionTop: "",
positionLeft: "",
params: {
data: {
rows: row,
},
},
},
},
tm: new Date().getTime(),
};
actions.setGlobalState({
action: action1
})