@zgfe/modules-dm 1.0.57-zhongyuan.68 → 1.0.57-zhongyuan.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ import { Card, Form, Input, Upload, message, Table, Button, Space, Empty, Spin }
21
21
  import { LoadingOutlined, PlusOutlined, SlidersTwoTone } from '@ant-design/icons';
22
22
  import React, { useState, useContext, useEffect } from 'react';
23
23
  import { IconFont, BizGlobalDataContext, ajax } from '@zgfe/business-lib';
24
- import { fetchAllEvents } from '@zgfe/business-lib/es/utils/eventApi';
24
+ import { fetchEventAttrs } from '@zgfe/business-lib/es/utils/eventApi';
25
25
  import apis from '../../../constants/api';
26
26
  import request from '../../../utils/ajax';
27
27
  import { guid } from '../../../utils/index';
@@ -306,7 +306,7 @@ var RightDetail = function RightDetail(props) {
306
306
  break;
307
307
  }
308
308
  _context3.next = 9;
309
- return fetchAllEvents(currentMap === null || currentMap === void 0 ? void 0 : currentMap.eventId, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
309
+ return fetchEventAttrs(currentMap === null || currentMap === void 0 ? void 0 : currentMap.eventId, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
310
310
  case 9:
311
311
  attrListApi = _context3.sent;
312
312
  // 事件下的细分
@@ -325,7 +325,7 @@ var RightDetail = function RightDetail(props) {
325
325
  operator: 'equal',
326
326
  propCategory: 'eventProp',
327
327
  type: moduleAttrObj.type,
328
- values: moduleAttrObj === null || moduleAttrObj === void 0 ? void 0 : moduleAttrObj.values
328
+ values: [currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.moduleAttrName]
329
329
  };
330
330
  modulePageJsonList.push(_obj);
331
331
  }
@@ -338,7 +338,7 @@ var RightDetail = function RightDetail(props) {
338
338
  operator: 'equal',
339
339
  propCategory: 'eventProp',
340
340
  type: pageAttrObj.type,
341
- values: pageAttrObj === null || pageAttrObj === void 0 ? void 0 : pageAttrObj.values
341
+ values: [currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName]
342
342
  };
343
343
  modulePageJsonList.push(obj1);
344
344
  }
@@ -349,15 +349,17 @@ var RightDetail = function RightDetail(props) {
349
349
  }; // console.log(allFilterObj, 'allFilterObj');
350
350
  // 细分的 属性值
351
351
  globalDimensionsList = [];
352
- xifenList.forEach(function (o) {
353
- var obj = {
354
- propCategory: o.inquire.propCategory,
355
- type: o.inquire.type,
356
- attrId: o.inquire.id,
357
- attrName: o.inquire.label
358
- };
359
- globalDimensionsList.push(obj);
360
- });
352
+ if (xifenList) {
353
+ xifenList.forEach(function (o) {
354
+ var obj = {
355
+ propCategory: o.inquire.propCategory,
356
+ type: o.inquire.type,
357
+ attrId: o.inquire.id,
358
+ attrName: o.inquire.label
359
+ };
360
+ globalDimensionsList.push(obj);
361
+ });
362
+ }
361
363
  resultParams = {
362
364
  data: {
363
365
  chartType: 'line',
@@ -412,7 +414,7 @@ var RightDetail = function RightDetail(props) {
412
414
  // console.log(currentTreeData, currentMap, eventGroupList,eventNameMap, 'currentTreeData');
413
415
  haveEventName = eventNameMap === null || eventNameMap === void 0 ? void 0 : eventNameMap[currentTreeData.eventName]; // 查找事件
414
416
  _context4.next = 3;
415
- return fetchAllEvents(currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.eventId, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
417
+ return fetchEventAttrs(currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.eventId, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
416
418
  case 3:
417
419
  attrListApi = _context4.sent;
418
420
  // 事件下的细分
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.57-zhongyuan.68",
3
+ "version": "1.0.57-zhongyuan.69",
4
4
  "license": "ISC",
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "umi-request": "^1.4.0",
58
58
  "yorkie": "^2.0.0"
59
59
  },
60
- "gitHead": "5d29d195368def27f68c28f3e72174fcb44e60d8",
60
+ "gitHead": "cf0b1932bc6f8258b52b79ade3fe3eb8170313ed",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }