@zgfe/modules-dm 1.0.57-zhongyuan.70 → 1.0.57-zhongyuan.71

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.
@@ -407,7 +407,7 @@ var RightDetail = function RightDetail(props) {
407
407
  }, [currentTreeData]);
408
408
  var xunapi = /*#__PURE__*/function () {
409
409
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
410
- var haveEventName, attrListApi, haveModuleAttr, havePageAttr, objConditions, b1, b7, b30;
410
+ var haveEventName, attrListApi, haveModuleAttr, havePageAttr, obj, xifenList, attrFilterJsonList, objConditions, b1, b7, b30;
411
411
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
412
412
  while (1) switch (_context4.prev = _context4.next) {
413
413
  case 0:
@@ -437,6 +437,27 @@ var RightDetail = function RightDetail(props) {
437
437
  message.warning("".concat(currentMap === null || currentMap === void 0 ? void 0 : currentMap.moduleAttrName, "\u4E0B\u7684").concat(currentMap === null || currentMap === void 0 ? void 0 : currentMap.pageAttrName, "\u6CA1\u6709"));
438
438
  return _context4.abrupt("return");
439
439
  case 11:
440
+ // 搜索的值 细分的值
441
+ obj = _objectSpread({}, props.filterValue); // 查询是的值
442
+ xifenList = (currentMap === null || currentMap === void 0 ? void 0 : currentMap.attributeJson) && JSON.parse(currentMap === null || currentMap === void 0 ? void 0 : currentMap.attributeJson);
443
+ attrFilterJsonList = [];
444
+ Object.keys(obj).forEach(function (o) {
445
+ if (o != 'mapId') {
446
+ if (obj[o]) {
447
+ var indexNum = toNumber(o.substr(o.length - 1, 1));
448
+ attrFilterJsonList.push({
449
+ attrId: xifenList[indexNum - 1].inquire.id,
450
+ attrName: xifenList[indexNum - 1].inquire.label,
451
+ dimensionSub: xifenList[indexNum - 1].inquire.dimensionSub,
452
+ label: xifenList[indexNum - 1].inquire.label,
453
+ operator: 'equal',
454
+ propCategory: 'eventProp',
455
+ type: xifenList[indexNum - 1].inquire.type,
456
+ values: [obj[o]]
457
+ });
458
+ }
459
+ }
460
+ });
440
461
  objConditions = [{
441
462
  attrId: haveModuleAttr === null || haveModuleAttr === void 0 ? void 0 : haveModuleAttr.id,
442
463
  propCategory: 'eventProp',
@@ -455,19 +476,19 @@ var RightDetail = function RightDetail(props) {
455
476
  dimensionSub: 'event_attr',
456
477
  label: havePageAttr === null || havePageAttr === void 0 ? void 0 : havePageAttr.label,
457
478
  attrName: havePageAttr === null || havePageAttr === void 0 ? void 0 : havePageAttr.label
458
- }]; // console.log(objConditions, 'kkk');
479
+ }].concat(attrFilterJsonList); // console.log(objConditions, 'kkk');
459
480
  setInterviewLoading(true);
460
- _context4.next = 15;
481
+ _context4.next = 19;
461
482
  return dayValues(objConditions, moment().subtract(1, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD'), [1, 0]);
462
- case 15:
483
+ case 19:
463
484
  b1 = _context4.sent;
464
- _context4.next = 18;
485
+ _context4.next = 22;
465
486
  return dayValues(objConditions, moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD'), [7, 0]);
466
- case 18:
487
+ case 22:
467
488
  b7 = _context4.sent;
468
- _context4.next = 21;
489
+ _context4.next = 25;
469
490
  return dayValues(objConditions, moment().subtract(30, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD'), [30, 0]);
470
- case 21:
491
+ case 25:
471
492
  b30 = _context4.sent;
472
493
  setInterviewLoading(false);
473
494
  setData([{
@@ -477,7 +498,7 @@ var RightDetail = function RightDetail(props) {
477
498
  nearlyDays: b7,
478
499
  nearlyDays1: b30
479
500
  }]);
480
- case 24:
501
+ case 28:
481
502
  case "end":
482
503
  return _context4.stop();
483
504
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.57-zhongyuan.70",
3
+ "version": "1.0.57-zhongyuan.71",
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": "dde6435a1a0bb9f372b5d63fc15b8ebf2145b44e",
60
+ "gitHead": "7d111549a26575c7244e81f8bf50685333544e8d",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }