|
@@ -199,13 +199,15 @@ func (w *WsDataExport) GetPreview() error {
|
|
|
if res == nil || err != nil {
|
|
|
return w.Render("/pc/dataExport_noDataErr.html", &w.T)
|
|
|
}
|
|
|
+ msgCount := dataexport.GetDataExportSearchCountByScdId(public.MQFW, public.Mgo_Bidding, public.DbConf.Mongodb.Bidding.DbName, public.DbConf.Elasticsearch.Main.Address, _id)
|
|
|
//格式化字段
|
|
|
res_screen := dataexport.ScreenData(res, dataType, 20, kws)
|
|
|
list := dataexport.FormatExportData(public.Mgo_Ent, &res_screen, config.Sysconfig["webdomain"].(string), dataType, true)
|
|
|
_res["data"] = subUrl(list, dataType)
|
|
|
_res["dataType"] = dataType
|
|
|
w.ServeJson(map[string]interface{}{
|
|
|
- "res": _res,
|
|
|
+ "res": _res,
|
|
|
+ "total": msgCount,
|
|
|
})
|
|
|
return nil
|
|
|
}
|