@indfnd/common 0.1.30 → 0.1.32

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,22 @@
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.32](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.31...v0.1.32) (2024-04-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * 报表组件高度优化 ([81e4f45](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/81e4f45dab63cf0142f6d17aace8c5f40c0d07b1))
11
+ * 输入库明细的小数位保留 ([a21be22](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a21be227fdbe55ece2157807db5caadef27a230f))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * 表格加载中样式问题修复 ([a0ab356](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a0ab356551523e638b3354a8ed7afd31dd6b6024))
17
+ * 增加登录用户管理单元的store ([ae421a1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ae421a189b8dc67b411888e9de61393a950283f6))
18
+
19
+ ### [0.1.31](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.30...v0.1.31) (2024-04-08)
20
+
5
21
  ### [0.1.30](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.29...v0.1.30) (2024-04-08)
6
22
 
7
23
 
@@ -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.29";
5
+ const version = "0.1.31";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -50893,8 +50893,18 @@ const __vue2_script$12 = {
50893
50893
  const disabled = disabledDef instanceof Function ? disabledDef(data) : disabledDef;
50894
50894
  const isText = textCondition instanceof Function ? textCondition(data) : textCondition;
50895
50895
  let renderVal = value;
50896
+ let scaledVal = value;
50897
+ const scale = scaleFn();
50898
+ if (scale === 0) {
50899
+ scaledVal = value ? parseInt(value) : value;
50900
+ } else if (scale) {
50901
+ let cellV = _.round(parseFloat(value), 6);
50902
+ if (!isNaN(cellV)) {
50903
+ scaledVal = cellV.toFixed(scale);
50904
+ }
50905
+ }
50896
50906
  if (isText) {
50897
- return h("span", renderVal);
50907
+ return h("span", scaledVal);
50898
50908
  } else {
50899
50909
  return h("Input", {
50900
50910
  ref: "input",
@@ -60548,7 +60558,7 @@ var render$d = function() {
60548
60558
  _vm.optionsData = $$v;
60549
60559
  }, expression: "optionsData" } }, _vm._l(_vm.dimension1.options, function(item2) {
60550
60560
  return _c("Option", { key: item2.id, attrs: { "value": item2.id } }, [_vm._v(_vm._s(item2.title))]);
60551
- }), 1) : _vm._e()]], 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)]);
60561
+ }), 1) : _vm._e()]], 2), _c("div", { staticClass: "report-index-index" }, [_c("Tree", { ref: "tree1", attrs: { "height": _vm.height - 30 + "px", "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", style: { height: _vm.height + "px" } }, [_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": _vm.height + "px", "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)]);
60552
60562
  };
60553
60563
  var staticRenderFns$d = [];
60554
60564
  const __vue2_script$d = {
@@ -60564,7 +60574,6 @@ const __vue2_script$d = {
60564
60574
  searchParams: { type: Object, default: () => null },
60565
60575
  title: { type: String, default: "\u9009\u62E9\u6307\u6807" },
60566
60576
  width: { type: Number, default: 1060 },
60567
- height: { type: Number, default: 650 },
60568
60577
  showCheckbox: Boolean,
60569
60578
  isShowSearch: { type: Boolean, default: true },
60570
60579
  isShowHeader: Boolean
@@ -60584,7 +60593,8 @@ const __vue2_script$d = {
60584
60593
  choosedIndexTree: [],
60585
60594
  addDisabled: true,
60586
60595
  removeDisabled: true,
60587
- refreshSelect: true
60596
+ refreshSelect: true,
60597
+ height: 600
60588
60598
  };
60589
60599
  },
60590
60600
  created() {
@@ -60598,6 +60608,9 @@ const __vue2_script$d = {
60598
60608
  deep: true
60599
60609
  }
60600
60610
  },
60611
+ mounted() {
60612
+ this.height = window.innerHeight - 319;
60613
+ },
60601
60614
  methods: {
60602
60615
  setDisabled1() {
60603
60616
  var _a;
@@ -63727,6 +63740,7 @@ var user = {
63727
63740
  state: {
63728
63741
  userName: "",
63729
63742
  avatarImgPath: "",
63743
+ userManageUnitId: "",
63730
63744
  token: getToken()
63731
63745
  },
63732
63746
  mutations: {
@@ -63736,6 +63750,9 @@ var user = {
63736
63750
  setUserName(state, name2) {
63737
63751
  state.userName = name2;
63738
63752
  },
63753
+ setUserManageUnitId(state, userManageUnitId) {
63754
+ state.userManageUnitId = userManageUnitId;
63755
+ },
63739
63756
  setToken(state, token) {
63740
63757
  state.token = token;
63741
63758
  setToken(token);
@@ -63757,6 +63774,7 @@ var user = {
63757
63774
  await logoutApi(state.token);
63758
63775
  commit2("setToken", "");
63759
63776
  commit2("setUserName", "");
63777
+ commit2("setUserManageUnitId", "");
63760
63778
  setTimeout(() => {
63761
63779
  window.location.reload();
63762
63780
  }, 0);
@@ -63766,11 +63784,13 @@ var user = {
63766
63784
  if (userInfo) {
63767
63785
  commit2("setAvatar", userInfo.userAvater);
63768
63786
  commit2("setUserName", userInfo.userName);
63787
+ commit2("setUserManageUnitId", userInfo.manageUnitId);
63769
63788
  return userInfo;
63770
63789
  }
63771
63790
  const { data } = await getUserInfoApi();
63772
63791
  commit2("setAvatar", data.userAvater);
63773
63792
  commit2("setUserName", data.userName);
63793
+ commit2("setUserManageUnitId", data.manageUnitId);
63774
63794
  setUserInfoCache(data);
63775
63795
  return data;
63776
63796
  }