| | |
| | | |
| | | if(button.url && button.url!='null'){ |
| | | //有配置action路径,使用路径对应的js |
| | | let buttonParse = parseEventByUrl(button.url,options,false); |
| | | import("../"+buttonParse.jsPath+".js").then(module => { |
| | | import("../"+button.url+".js").then(module => { |
| | | module.doAction(options); |
| | | }) |
| | | }else { |
| | |
| | | if(validatenull(options.paramVOS.context)) { |
| | | options.paramVOS.context = options.paramVOS.content; |
| | | } |
| | | if(handlers[button.actionVO.id]){ |
| | | handlers[button.actionVO.id]() |
| | | if(handlers[button.actionVO.id.toLowerCase()]){ |
| | | handlers[button.actionVO.id.toLowerCase()]() |
| | | }else{ |
| | | Vue.prototype.$message.error('未找到对应action,请重新配置按钮!'); |
| | | } |