@indfnd/common 0.0.78 → 0.0.79
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 +7 -0
- package/dist/ind-common.es.js +29 -1
- package/dist/ind-common.umd.cjs +16 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.0.79](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.0.78...v0.0.79) (2024-02-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 表格支持获取合计行数据 ([a1aace7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a1aace7e2ca7ae39c40aec0c24d7184332580ef0))
|
|
11
|
+
|
|
5
12
|
### [0.0.78](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.0.77...v0.0.78) (2024-02-01)
|
|
6
13
|
|
|
7
14
|
|
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, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, formatDate as formatDate$1, axios, isFunction, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, getPriceCode, getPriceSeg, getItem, on as on$1, off as off$1, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, MIME_TYPE, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name$1 = "@indfnd/common";
|
|
5
|
-
const version$1 = "0.0.
|
|
5
|
+
const version$1 = "0.0.78";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -57298,6 +57298,34 @@ const __vue2_script$N = {
|
|
|
57298
57298
|
return datasTmp;
|
|
57299
57299
|
}
|
|
57300
57300
|
},
|
|
57301
|
+
getXSum() {
|
|
57302
|
+
if (this.unitType == "X") {
|
|
57303
|
+
return this.topRows;
|
|
57304
|
+
} else {
|
|
57305
|
+
let datasTmp = _.cloneDeep(this.topRows);
|
|
57306
|
+
datasTmp.forEach((d) => {
|
|
57307
|
+
this.switchCols.forEach((dd) => {
|
|
57308
|
+
let t2 = parseFloat(d[dd]);
|
|
57309
|
+
d[dd] = isNaN(t2) ? null : t2 / 5;
|
|
57310
|
+
});
|
|
57311
|
+
});
|
|
57312
|
+
return datasTmp;
|
|
57313
|
+
}
|
|
57314
|
+
},
|
|
57315
|
+
getWZSum() {
|
|
57316
|
+
if (this.unitType == "WZ") {
|
|
57317
|
+
return this.topRows;
|
|
57318
|
+
} else {
|
|
57319
|
+
let datasTmp = _.cloneDeep(this.topRows);
|
|
57320
|
+
datasTmp.forEach((d) => {
|
|
57321
|
+
this.switchCols.forEach((dd) => {
|
|
57322
|
+
let t2 = parseFloat(d[dd]);
|
|
57323
|
+
d[dd] = isNaN(t2) ? null : t2 * 5;
|
|
57324
|
+
});
|
|
57325
|
+
});
|
|
57326
|
+
return datasTmp;
|
|
57327
|
+
}
|
|
57328
|
+
},
|
|
57301
57329
|
renderSumRow() {
|
|
57302
57330
|
var _a;
|
|
57303
57331
|
let hasSumRow = _.some(this.flatColumns, { isSum: true });
|