|
@@ -408,7 +408,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 初始化数据
|
|
|
- *load_data({ payload }, { put, call }) {
|
|
|
+ *load_data({ payload }, { put, call, all }) {
|
|
|
// 更新时间
|
|
|
const now = new Date();
|
|
|
const pad = (n) => n.toString().padStart(2, "0");
|
|
@@ -421,55 +421,18 @@ export default {
|
|
|
type: "setUpdateTime",
|
|
|
payload: currentTime,
|
|
|
});
|
|
|
- // 调用 load_data
|
|
|
- yield put.resolve({
|
|
|
- type: "load_overview",
|
|
|
- });
|
|
|
-
|
|
|
- // 调用 load_portal_traffic
|
|
|
- yield put.resolve({
|
|
|
- type: "load_portal_traffic",
|
|
|
- });
|
|
|
-
|
|
|
- // 调用询盘概况
|
|
|
- yield put.resolve({
|
|
|
- type: "load_enquire_data",
|
|
|
- });
|
|
|
-
|
|
|
- // 海外询盘地区分布
|
|
|
- yield put.resolve({
|
|
|
- type: "load_overseas_enquire_location",
|
|
|
- });
|
|
|
-
|
|
|
- // 供应链询盘地区分布
|
|
|
- yield put.resolve({
|
|
|
- type: "load_distributor_enquire_location",
|
|
|
- });
|
|
|
-
|
|
|
- // 新增会员趋势
|
|
|
- yield put.resolve({
|
|
|
- type: "load_add_member_trend",
|
|
|
- });
|
|
|
-
|
|
|
- // 新增商品趋势
|
|
|
- yield put.resolve({
|
|
|
- type: "load_add_product_trend",
|
|
|
- });
|
|
|
-
|
|
|
- // 关键词排行
|
|
|
- yield put.resolve({
|
|
|
- type: "load_search_rank",
|
|
|
- });
|
|
|
-
|
|
|
- // 店铺流量
|
|
|
- yield put.resolve({
|
|
|
- type: "load_store_traffic",
|
|
|
- });
|
|
|
-
|
|
|
- // 会员区域
|
|
|
- yield put.resolve({
|
|
|
- type: "load_world_map",
|
|
|
- });
|
|
|
+ yield all([
|
|
|
+ put({ type: "load_overview" }),
|
|
|
+ put({ type: "load_portal_traffic" }),
|
|
|
+ put({ type: "load_enquire_data" }),
|
|
|
+ put({ type: "load_overseas_enquire_location" }),
|
|
|
+ put({ type: "load_distributor_enquire_location" }),
|
|
|
+ put({ type: "load_add_member_trend" }),
|
|
|
+ put({ type: "load_add_product_trend" }),
|
|
|
+ put({ type: "load_search_rank" }),
|
|
|
+ put({ type: "load_store_traffic" }),
|
|
|
+ put({ type: "load_world_map" }),
|
|
|
+ ]);
|
|
|
},
|
|
|
},
|
|
|
|