@indfnd/common 1.0.20 → 1.0.22
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 +14 -0
- package/dist/ind-common.es.js +8 -5
- package/dist/ind-common.umd.cjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
### [1.0.22](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.21...v1.0.22) (2024-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 移动端表格组件合计行逻辑处理 ([3db4fa3](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3db4fa3f5480445c73edef749af6907965901f01))
|
|
11
|
+
|
|
12
|
+
### [1.0.21](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.20...v1.0.21) (2024-07-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 权限管理-修改 ([9134f94](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/9134f9421648fb2cdc2dfaac09c1b94aa81e0df3))
|
|
18
|
+
|
|
5
19
|
### [1.0.20](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.19...v1.0.20) (2024-07-11)
|
|
6
20
|
|
|
7
21
|
### [1.0.19](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.14...v1.0.19) (2024-07-11)
|
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, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, getLocalStorage, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, 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 = "1.0.
|
|
5
|
+
const version = "1.0.21";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -55243,7 +55243,7 @@ const __vue2_script$$ = {
|
|
|
55243
55243
|
addCalcRuleMap(sumCalcRuleMap, col.isSum, col.field || col.key);
|
|
55244
55244
|
});
|
|
55245
55245
|
sumCols.forEach((col) => {
|
|
55246
|
-
if (!(col.field || col.key) in sumData)
|
|
55246
|
+
if (!((col.field || col.key) in sumData))
|
|
55247
55247
|
sumData[col.field || col.key] = 0;
|
|
55248
55248
|
});
|
|
55249
55249
|
this.rowDataFiltered.forEach((d) => {
|
|
@@ -55252,8 +55252,8 @@ const __vue2_script$$ = {
|
|
|
55252
55252
|
return;
|
|
55253
55253
|
let field = dd.field || dd.key;
|
|
55254
55254
|
let value = d[field];
|
|
55255
|
-
if (
|
|
55256
|
-
sumData[field] = (sumData[field] || 0) + value;
|
|
55255
|
+
if (!this.isNullOrNaN(value)) {
|
|
55256
|
+
sumData[field] = (sumData[field] || 0) + parseFloat(value);
|
|
55257
55257
|
}
|
|
55258
55258
|
});
|
|
55259
55259
|
});
|
|
@@ -55279,6 +55279,9 @@ const __vue2_script$$ = {
|
|
|
55279
55279
|
this.topRows = this.pinnedTopRowDataWithUnit;
|
|
55280
55280
|
}
|
|
55281
55281
|
}, 5),
|
|
55282
|
+
isNullOrNaN(value) {
|
|
55283
|
+
return typeof value === "object" || isNaN(value);
|
|
55284
|
+
},
|
|
55282
55285
|
async renderTreeData(val) {
|
|
55283
55286
|
this.treeData = _.some(val, (d) => {
|
|
55284
55287
|
var _a, _b;
|
|
@@ -65901,7 +65904,7 @@ var render$1 = function() {
|
|
|
65901
65904
|
var _c = _vm._self._c || _h;
|
|
65902
65905
|
return _c("IndPageView", [_c("Row", { staticClass: "row-contain", attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "8" } }, [_c("IndTable", { ref: "table", attrs: { "disablePage": "", "columns": _vm.tableColumns, "dataApi": _vm.dataApi, "search-params": _vm.searchParams, "rowKey": "roleId", "auto-refresh": "" }, on: { "on-data-load": _vm.tableDataLoad, "on-select-change": _vm.tableSelectChange }, scopedSlots: _vm._u([{ key: "buttons", fn: function() {
|
|
65903
65906
|
return [_c("IndButton", { attrs: { "bizType": "table" }, on: { "click": _vm.addRole } }, [_vm._v("\u65B0\u589E")])];
|
|
65904
|
-
}, proxy: true }]) })], 1), _c("Col", { attrs: { "span": "16" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.userAuthLoading } }, [_c("div", { staticClass: "ind-flex-no-shrink important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _c("span", { attrs: { "name": "importanttip" } }, [_vm._v("\u5F53\u524D\u9009\u4E2D\u89D2\u8272\uFF1A"), _c("span", { staticClass: "ind-blue" }, [_vm._v(_vm._s(_vm.selectedRole ? _vm.selectedRole.roleName : "
|
|
65907
|
+
}, proxy: true }]) })], 1), _c("Col", { attrs: { "span": "16" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.userAuthLoading } }, [_c("div", { staticClass: "ind-flex-no-shrink important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _c("span", { attrs: { "name": "importanttip" } }, [_vm._v("\u5F53\u524D\u9009\u4E2D\u89D2\u8272\uFF1A"), _c("span", { staticClass: "ind-blue" }, [_vm._v(_vm._s(_vm.selectedRole ? _vm.selectedRole.roleName : ""))])])], 1), _c("div", { staticClass: "ind-flex-grow content" }, [_c("Row", { attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "12" } }, [!_vm.userAuthLoading ? _c("IndTree", { ref: "userTree", attrs: { "data": _vm.userTreeData, "default-value": _vm.defaultUserId, "multiple": "", "show-checkbox": "", "defaultExpandLevel": 1, "isShowHeader": true, "treeName": "\u7CFB\u7EDF\u7528\u6237\uFF1A[\u90E8\u95E8(\u5DF2\u8BBE\u4EBA\u6570/\u603B\u4EBA\u6570)] \u3001[\u7528\u6237(\u89D2\u82721,\u89D2\u82722...)]" } }) : _vm._e()], 1), _c("Col", { attrs: { "span": "12" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.authTreeLoading } }, [_c("div", { staticClass: "auth-type-select-container" }, [_c("Row", [_c("Col", [_c("span", { staticClass: "auth-type-label" }, [_vm._v("\u6743\u9650\u7C7B\u578B\uFF1A")])]), _c("Col", [_c("div", { staticClass: "auth-type-value" }, [_c("IndSelect", { model: { value: _vm.authDetaileTypeParam, callback: function($$v) {
|
|
65905
65908
|
_vm.authDetaileTypeParam = $$v;
|
|
65906
65909
|
}, expression: "authDetaileTypeParam" } }, _vm._l(_vm.authDetaileTypes, function(type) {
|
|
65907
65910
|
return _c("IndOption", { key: type.value, attrs: { "value": type.value } }, [_vm._v(" " + _vm._s(type.label) + " ")]);
|