diff --git a/web/routes/routes.go b/web/routes/routes.go index a9f23bc..144e7d9 100644 --- a/web/routes/routes.go +++ b/web/routes/routes.go @@ -12,7 +12,6 @@ func Hub(app *iris.Application) { /* 定义路由 */ main := app.Party("/", cors.Mycors()).AllowMethods(iris.MethodOptions) - //中间件,验证token和权限路径 main.Use(middleware.ServeHTTP) @@ -160,7 +159,7 @@ func Hub(app *iris.Application) { chargetab.Get("/listpage", controllers.GetChargeArrearageData) chargetab.Get("/datapage", controllers.GetChargetabListPage) chargetab.Get("/selectinfo", controllers.GetChargetab) - chargetab.Get("/totalyear", controllers.GetChargetabByYear) + chargetab.Get("/totalyear", controllers.GetChargetabStatisticByYear) chargetab.Get("/totalbuilding", controllers.GetChargetabByBuilding) chargetab.Get("/readexcel", controllers.GetChargetabReadExcel) chargetab.Get("/readbuildexcel", controllers.GetChargetabReadBuildingExcel) @@ -169,8 +168,8 @@ func Hub(app *iris.Application) { chargetab.Delete("/del", controllers.DelChargetab) chargetab.Get("/recordlist", controllers.GetRecordLogList) chargetab.Get("/statistic", controllers.GetChargeStatisticData) - chargetab.Get("/type/list", controllers.GetChargeTypeData) - chargetab.Get("/readtypeexcel", controllers.ExportChargeTypeExcel) + chargetab.Get("/type/list", controllers.GetChargeWayListData) + chargetab.Get("/readtypeexcel", controllers.ExportChargeWayDataListExcel) // 固定资产 assettab := admin.Party("/assettab")