/*名称:sendinfotoDD 类型:ClientSide 对象:spreadsheetReport 事件:onRenderReport */
var util = jsloader.resolve('freequery.common.util');
function main(spreadsheetReport) {
//封装钉钉企业消息体
var msgContent = {};
//消息接收者在钉钉中点击消息内容,将打开如下链接,完成免登后,打开resid对应的报表。
msgContent.messageUrl = "http://10.10.101.90:8080/smartbi/vision/dingding/ddopenresource.jsp?resid=I402882c701552f492f49736e01552f4df2c50013&random=" + Math.random();
//消息标题
msgContent.title = "报表跳转了";
//消息文本
msgContent.text = "报表id是I402882c701552f492f49736e01552f4df2c50013";
//消息图标
msgContent.picUrl = "https://www.baidu.com/img/baidu_jgylogo3.gif";
var msgString = JSON.stringify(msgContent);
//调用后端DDModule. sendLinkCorpConversation()方法,由后端请求钉钉服务器,发送企业消息
util.remoteInvokeEx('DDModule', 'sendLinkCorpConversation', [msgString, ['收件人']]);
}