Selaa lähdekoodia

fix:数据导出筛选页接口增加总数返回

xuemingyang 3 vuotta sitten
vanhempi
commit
1900157232

+ 2 - 2
src/jfw/front/ws_dataExport.go

@@ -205,9 +205,9 @@ func (w *WsDataExport) GetPreview() error {
 	list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
 	list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
 	_res["data"] = subUrl(list, dataType)
 	_res["data"] = subUrl(list, dataType)
 	_res["dataType"] = dataType
 	_res["dataType"] = dataType
+	_res["total"] = msgCount
 	w.ServeJson(map[string]interface{}{
 	w.ServeJson(map[string]interface{}{
-		"res":   _res,
-		"total": msgCount,
+		"res": _res,
 	})
 	})
 	return nil
 	return nil
 }
 }

+ 2 - 2
src/jfw/modules/app/src/app/front/ws_dataExport.go

@@ -83,9 +83,9 @@ func (w *WsDataExport) GetPreview() error {
 	list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
 	list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
 	_res["data"] = subUrl(list, dataType)
 	_res["data"] = subUrl(list, dataType)
 	_res["dataType"] = dataType
 	_res["dataType"] = dataType
+	_res["total"] = msgCount
 	w.ServeJson(map[string]interface{}{
 	w.ServeJson(map[string]interface{}{
-		"res":   _res,
-		"total": msgCount,
+		"res": _res,
 	})
 	})
 	return nil
 	return nil
 }
 }