@zgfe/modules-dm 1.0.56-zhongyuan.8 → 1.0.56-zhongyuan.9

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.
@@ -132,13 +132,13 @@ var LeftTree = function LeftTree(props) {
132
132
  var _newArr$, _newArr$$children;
133
133
  setLoadingSearch(false);
134
134
  if (!res) return;
135
- console.log(res.data);
136
135
  var newArr = [];
137
136
  (res === null || res === void 0 ? void 0 : res.data) && Object.keys(res === null || res === void 0 ? void 0 : res.data).forEach(function (o, fatherIndex) {
137
+ var _res$data;
138
138
  var obj = {
139
139
  pageAttrName: o,
140
140
  key: "".concat(o, "-").concat(fatherIndex),
141
- children: res.data[o].map(function (v, index) {
141
+ children: (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data[o].map(function (v, index) {
142
142
  return _objectSpread(_objectSpread({}, v), {}, {
143
143
  key: "".concat(o, "-").concat(fatherIndex, "-").concat(index)
144
144
  });
@@ -245,7 +245,8 @@ var LeftTree = function LeftTree(props) {
245
245
  title: 'pageAttrName'
246
246
  },
247
247
  treeData: treeData,
248
- rootClassName: "ziBackground"
248
+ rootClassName: "ziBackground",
249
+ height: 430
249
250
  }))));
250
251
  };
251
252
  export default LeftTree;
@@ -254,7 +254,7 @@ var RightDetail = function RightDetail(props) {
254
254
  }();
255
255
  var handleButtonPage = /*#__PURE__*/function () {
256
256
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(flag) {
257
- var filterJsonList, obj, xifenList, attrFilterJsonList, modulePageJsonList, _eventNameMap$current, _eventNameMap$current2, _eventNameMap$current3, _eventNameMap$current4, moduleAttrObj, pageAttrObj, _obj, obj1, allFilterObj, resultParams;
257
+ var filterJsonList, obj, xifenList, attrFilterJsonList, modulePageJsonList, _eventNameMap$current, _eventNameMap$current2, _eventNameMap$current3, _eventNameMap$current4, moduleAttrObj, pageAttrObj, _obj, obj1, allFilterObj, globalDimensionsList, resultParams;
258
258
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
259
259
  while (1) switch (_context3.prev = _context3.next) {
260
260
  case 0:
@@ -288,6 +288,7 @@ var RightDetail = function RightDetail(props) {
288
288
  }
289
289
  }
290
290
  });
291
+ // page module 的值拼接
291
292
  modulePageJsonList = [];
292
293
  if (eventNameMap && (currentMap === null || currentMap === void 0 ? void 0 : currentMap.eventName)) {
293
294
  moduleAttrObj = (_eventNameMap$current = eventNameMap[currentMap === null || currentMap === void 0 ? void 0 : currentMap.eventName]) === null || _eventNameMap$current === void 0 ? void 0 : (_eventNameMap$current2 = _eventNameMap$current.attrList.filter(function (o) {
@@ -326,17 +327,27 @@ var RightDetail = function RightDetail(props) {
326
327
  allFilterObj = {
327
328
  relation: 'and',
328
329
  conditions: [].concat(_toConsumableArray(filterJsonList), attrFilterJsonList, modulePageJsonList)
329
- };
330
- console.log(allFilterObj, 'allFilterObj');
330
+ }; // console.log(allFilterObj, 'allFilterObj');
331
+ // 细分的 属性值
332
+ globalDimensionsList = [];
333
+ xifenList.forEach(function (o) {
334
+ var obj = {
335
+ propCategory: o.inquire.propCategory,
336
+ type: o.inquire.type,
337
+ attrId: o.inquire.id,
338
+ attrName: o.inquire.label
339
+ };
340
+ globalDimensionsList.push(obj);
341
+ });
331
342
  resultParams = {
332
343
  data: {
333
344
  chartType: 'line',
334
345
  module: 'insight',
335
346
  userGroup: [0],
336
- globalDimensions: xifenList,
347
+ globalDimensions: globalDimensionsList,
337
348
  targets: [{
338
349
  alias: currentMap === null || currentMap === void 0 ? void 0 : currentMap.eventName,
339
- filters: (currentMap === null || currentMap === void 0 ? void 0 : currentMap.filterJson) && JSON.parse(currentMap === null || currentMap === void 0 ? void 0 : currentMap.filterJson),
350
+ filters: allFilterObj,
340
351
  analysisDimension: {
341
352
  analysisIndex: 'number'
342
353
  },
@@ -355,7 +366,7 @@ var RightDetail = function RightDetail(props) {
355
366
  }
356
367
  });
357
368
  });
358
- case 11:
369
+ case 12:
359
370
  case "end":
360
371
  return _context3.stop();
361
372
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.56-zhongyuan.8",
3
+ "version": "1.0.56-zhongyuan.9",
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": "4167723151cc0471948be5b94234107de9c48281",
60
+ "gitHead": "98435afd2cf662f61685bf9212467f4fbddcf906",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }