@indfnd/common 0.1.9 → 0.1.10

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.10](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.9...v0.1.10) (2024-03-29)
6
+
5
7
  ### [0.1.9](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.8...v0.1.9) (2024-03-29)
6
8
 
7
9
  ### [0.1.8](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.7...v0.1.8) (2024-03-29)
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
2
2
  import { isNil, formatDate as formatDate$1, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.8";
5
+ const version = "0.1.9";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -60311,6 +60311,11 @@ function generateNodeWithPath(dimension, nodes) {
60311
60311
  d.pathStr = (p.pathStr || p.id) + "_" + d.id;
60312
60312
  d.seq = idx;
60313
60313
  });
60314
+ deepEach$1({}, nodeClone, (d) => {
60315
+ if (!d.children || !d.children.length) {
60316
+ d.id = d.pathStr;
60317
+ }
60318
+ });
60314
60319
  return nodeClone;
60315
60320
  }
60316
60321
  function concatNodes(choosedNodes, newNodes, options) {
@@ -60459,7 +60464,7 @@ var render$d = function() {
60459
60464
  _vm.optionsData = $$v;
60460
60465
  }, expression: "optionsData" } }, _vm._l(_vm.dimension1.options, function(item2) {
60461
60466
  return _c("Option", { key: item2.id, attrs: { "value": item2.id } }, [_vm._v(_vm._s(item2.title))]);
60462
- }), 1)]], 2), _c("div", { staticClass: "report-index-index" }, [_c("Tree", { ref: "tree1", attrs: { "height": "500px", "expandAll": "", "show-checkbox": "", "data": _vm.indexListSrc, "isShowHeader": false, "is-show-search": true, "check-directly": "" }, on: { "on-check-change": _vm.setDisabled1 } })], 1)])]), _c("div", { staticClass: "opt-panel ind-flex-no-shrink ind-flex-column" }, [_c("Button", { attrs: { "disabled": _vm.addDisabled, "type": "default", "icon": "md-arrow-forward" }, on: { "click": _vm.addIndex } }), _c("Button", { staticStyle: { "margin-top": "10px" }, attrs: { "type": "default", "disabled": _vm.removeDisabled, "icon": "md-arrow-back" }, on: { "click": _vm.removeIndex } })], 1), _c("div", { staticClass: "right-panel ind-flex-grow" }, [_c("Tree", { ref: "tree2", attrs: { "height": "600px", "expandAll": "", "show-checkbox": "", "data": _vm.choosedIndexTree, "isShowHeader": false, "is-show-search": true, "check-directly": "" }, on: { "on-check-change": _vm.setDisabled2 } })], 1)]), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_c("IndButtonGroup", { attrs: { "right": "", "split": "" } }, [_c("IndButton", { attrs: { "bizType": "cancel" }, on: { "click": _vm.onCancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "confirm" }, on: { "click": _vm.onOk } }, [_vm._v("\u786E\u5B9A")])], 1)], 1)]);
60467
+ }), 1)]], 2), _c("div", { staticClass: "report-index-index" }, [_c("Tree", { ref: "tree1", attrs: { "height": "570px", "expandAll": "", "show-checkbox": "", "data": _vm.indexListSrc, "isShowHeader": false, "is-show-search": true, "check-directly": "" }, on: { "on-check-change": _vm.setDisabled1 } })], 1)])]), _c("div", { staticClass: "opt-panel ind-flex-no-shrink ind-flex-column" }, [_c("Button", { attrs: { "disabled": _vm.addDisabled, "type": "default", "icon": "md-arrow-forward" }, on: { "click": _vm.addIndex } }), _c("Button", { staticStyle: { "margin-top": "10px" }, attrs: { "type": "default", "disabled": _vm.removeDisabled, "icon": "md-arrow-back" }, on: { "click": _vm.removeIndex } })], 1), _c("div", { staticClass: "right-panel ind-flex-grow" }, [_c("Tree", { ref: "tree2", attrs: { "height": "600px", "expandAll": "", "show-checkbox": "", "data": _vm.choosedIndexTree, "isShowHeader": false, "is-show-search": true, "check-directly": "" }, on: { "on-check-change": _vm.setDisabled2 } })], 1)]), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_c("IndButtonGroup", { attrs: { "right": "", "split": "" } }, [_c("IndButton", { attrs: { "bizType": "cancel" }, on: { "click": _vm.onCancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "confirm" }, on: { "click": _vm.onOk } }, [_vm._v("\u786E\u5B9A")])], 1)], 1)]);
60463
60468
  };
60464
60469
  var staticRenderFns$d = [];
60465
60470
  const __vue2_script$d = {
@@ -60525,6 +60530,7 @@ const __vue2_script$d = {
60525
60530
  } else {
60526
60531
  this.indexesSouce = this.options;
60527
60532
  }
60533
+ this.indexesSouce = JSON.parse(JSON.stringify(this.indexesSouce));
60528
60534
  this.dimension1 = this.indexesSouce[0] || {};
60529
60535
  this.optionsData = this.dimension1.options.length == 1 ? this.dimension1.options.map((d) => d.id) : [];
60530
60536
  this.indexListSrc = generateNodeWithPath(this.dimension1, [