@indfnd/common 0.1.31 → 0.1.33
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 +26 -0
- package/dist/ind-common.es.js +16 -6
- package/dist/ind-common.umd.cjs +4 -4
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/third/ag.less +28 -23
- package/src/styles/third/view-design.less +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
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.33](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.32...v0.1.33) (2024-04-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 计算合计传递列定义参数 ([3246f66](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3246f66d2a94c7a036ada7375f98400e49e02564))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **panel:** 返回顶部按钮右移 ([6df9080](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/6df9080f78f00353f20748167e488406559e98f5))
|
|
16
|
+
|
|
17
|
+
### [0.1.32](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.31...v0.1.32) (2024-04-09)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* 报表组件高度优化 ([81e4f45](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/81e4f45dab63cf0142f6d17aace8c5f40c0d07b1))
|
|
23
|
+
* 输入库明细的小数位保留 ([a21be22](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a21be227fdbe55ece2157807db5caadef27a230f))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* 表格加载中样式问题修复 ([a0ab356](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a0ab356551523e638b3354a8ed7afd31dd6b6024))
|
|
29
|
+
* 增加登录用户管理单元的store ([ae421a1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ae421a189b8dc67b411888e9de61393a950283f6))
|
|
30
|
+
|
|
5
31
|
### [0.1.31](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.30...v0.1.31) (2024-04-08)
|
|
6
32
|
|
|
7
33
|
### [0.1.30](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.29...v0.1.30) (2024-04-08)
|
package/dist/ind-common.es.js
CHANGED
|
@@ -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.
|
|
5
|
+
const version = "0.1.32";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -53012,7 +53012,7 @@ const __vue2_script$W = {
|
|
|
53012
53012
|
sumData
|
|
53013
53013
|
);
|
|
53014
53014
|
_.forEach(sumFuncCols, (d) => {
|
|
53015
|
-
sumData[d.field || d.key] = d.isSum(this.tableData);
|
|
53015
|
+
sumData[d.field || d.key] = d.isSum(this.tableData, d);
|
|
53016
53016
|
});
|
|
53017
53017
|
let sumRows = [sumData];
|
|
53018
53018
|
let calcRules = {};
|
|
@@ -54900,7 +54900,7 @@ const __vue2_script$O = {
|
|
|
54900
54900
|
props: {
|
|
54901
54901
|
offsetTop: { type: Number, default: 100 },
|
|
54902
54902
|
bottom: { type: Number, default: 80 },
|
|
54903
|
-
right: { type: Number, default:
|
|
54903
|
+
right: { type: Number, default: 20 },
|
|
54904
54904
|
duration: { type: Number, default: 1e3 },
|
|
54905
54905
|
container: { type: [String, HTMLElement], default: null }
|
|
54906
54906
|
},
|
|
@@ -60558,7 +60558,7 @@ var render$d = function() {
|
|
|
60558
60558
|
_vm.optionsData = $$v;
|
|
60559
60559
|
}, expression: "optionsData" } }, _vm._l(_vm.dimension1.options, function(item2) {
|
|
60560
60560
|
return _c("Option", { key: item2.id, attrs: { "value": item2.id } }, [_vm._v(_vm._s(item2.title))]);
|
|
60561
|
-
}), 1) : _vm._e()]], 2), _c("div", { staticClass: "report-index-index" }, [_c("Tree", { ref: "tree1", attrs: { "height": "
|
|
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)]);
|
|
60562
60562
|
};
|
|
60563
60563
|
var staticRenderFns$d = [];
|
|
60564
60564
|
const __vue2_script$d = {
|
|
@@ -60574,7 +60574,6 @@ const __vue2_script$d = {
|
|
|
60574
60574
|
searchParams: { type: Object, default: () => null },
|
|
60575
60575
|
title: { type: String, default: "\u9009\u62E9\u6307\u6807" },
|
|
60576
60576
|
width: { type: Number, default: 1060 },
|
|
60577
|
-
height: { type: Number, default: 650 },
|
|
60578
60577
|
showCheckbox: Boolean,
|
|
60579
60578
|
isShowSearch: { type: Boolean, default: true },
|
|
60580
60579
|
isShowHeader: Boolean
|
|
@@ -60594,7 +60593,8 @@ const __vue2_script$d = {
|
|
|
60594
60593
|
choosedIndexTree: [],
|
|
60595
60594
|
addDisabled: true,
|
|
60596
60595
|
removeDisabled: true,
|
|
60597
|
-
refreshSelect: true
|
|
60596
|
+
refreshSelect: true,
|
|
60597
|
+
height: 600
|
|
60598
60598
|
};
|
|
60599
60599
|
},
|
|
60600
60600
|
created() {
|
|
@@ -60608,6 +60608,9 @@ const __vue2_script$d = {
|
|
|
60608
60608
|
deep: true
|
|
60609
60609
|
}
|
|
60610
60610
|
},
|
|
60611
|
+
mounted() {
|
|
60612
|
+
this.height = window.innerHeight - 319;
|
|
60613
|
+
},
|
|
60611
60614
|
methods: {
|
|
60612
60615
|
setDisabled1() {
|
|
60613
60616
|
var _a;
|
|
@@ -63737,6 +63740,7 @@ var user = {
|
|
|
63737
63740
|
state: {
|
|
63738
63741
|
userName: "",
|
|
63739
63742
|
avatarImgPath: "",
|
|
63743
|
+
userManageUnitId: "",
|
|
63740
63744
|
token: getToken()
|
|
63741
63745
|
},
|
|
63742
63746
|
mutations: {
|
|
@@ -63746,6 +63750,9 @@ var user = {
|
|
|
63746
63750
|
setUserName(state, name2) {
|
|
63747
63751
|
state.userName = name2;
|
|
63748
63752
|
},
|
|
63753
|
+
setUserManageUnitId(state, userManageUnitId) {
|
|
63754
|
+
state.userManageUnitId = userManageUnitId;
|
|
63755
|
+
},
|
|
63749
63756
|
setToken(state, token) {
|
|
63750
63757
|
state.token = token;
|
|
63751
63758
|
setToken(token);
|
|
@@ -63767,6 +63774,7 @@ var user = {
|
|
|
63767
63774
|
await logoutApi(state.token);
|
|
63768
63775
|
commit2("setToken", "");
|
|
63769
63776
|
commit2("setUserName", "");
|
|
63777
|
+
commit2("setUserManageUnitId", "");
|
|
63770
63778
|
setTimeout(() => {
|
|
63771
63779
|
window.location.reload();
|
|
63772
63780
|
}, 0);
|
|
@@ -63776,11 +63784,13 @@ var user = {
|
|
|
63776
63784
|
if (userInfo) {
|
|
63777
63785
|
commit2("setAvatar", userInfo.userAvater);
|
|
63778
63786
|
commit2("setUserName", userInfo.userName);
|
|
63787
|
+
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
63779
63788
|
return userInfo;
|
|
63780
63789
|
}
|
|
63781
63790
|
const { data } = await getUserInfoApi();
|
|
63782
63791
|
commit2("setAvatar", data.userAvater);
|
|
63783
63792
|
commit2("setUserName", data.userName);
|
|
63793
|
+
commit2("setUserManageUnitId", data.manageUnitId);
|
|
63784
63794
|
setUserInfoCache(data);
|
|
63785
63795
|
return data;
|
|
63786
63796
|
}
|