search.js(自定义查询代码块)
var ecustom_api = {
clickEvent_zhuanban: function() {
// 转办
var ids = ModeList.getCheckedID()
if (ids === '') {
weaJs.alert('未选择行!')
return
}
var options = {
title: '批量转办',
moduleName: 'workflow',
style: {
width: 800, height: 420 },
callback: function() {
},
onCancel: function() {
},
};
weaJs.showDialog('/spa/custom/static/index.html#/main/cs/app/b1d3c61db6724e859dfc612c682b14c5_index', options);
ids = ids.indexOf(',') < 0 ? [ids] : ids.split(',')
}
}
window.clickEvent_zhuanban = ecustom_api.clickEvent_zhuanban // 转办
register.js
ecodeSDK.rewriteRouteQueue.push({
fn: (params) => {
const {
Com, Route, nextState} = params;
const cpParams = {
path: 'main/cs/app', // 路由地址,不可变更
appId: '${appId}',
name: 'index',