想加个按钮,如果日期参数是今年,就查询当前页面传递日期参数;如果是去年,就跳转到老的页面,这样可以实现么。
可以,参考这个例子
根据参数查看不同报表-https://help.fanruan.com/finereport10.0/doc-view-407.html