@indfnd/common 1.0.7 → 1.0.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,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.9](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.8...v1.0.9) (2024-06-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 山东一体化需求修改 ([92bb94a](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/92bb94aad00355810183047368356fd0eb95f56d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 解决导出excel数值无法计算问题 ([e4abca1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/e4abca1fe1fcaf0311a18cd558c8cc474ffa9a23))
|
|
16
|
+
|
|
17
|
+
### [1.0.8](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.7...v1.0.8) (2024-06-26)
|
|
18
|
+
|
|
5
19
|
### [1.0.7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.6...v1.0.7) (2024-06-20)
|
|
6
20
|
|
|
7
21
|
|
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, 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.8";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -43060,6 +43060,18 @@ function getAgColumnTitleAndData({ columns, datas }) {
|
|
|
43060
43060
|
datasClo.forEach((dd) => {
|
|
43061
43061
|
dd[d.field] = formatDate$1(dd[d.field]) || "";
|
|
43062
43062
|
});
|
|
43063
|
+
} else if (d.valueFormatter) {
|
|
43064
|
+
if (typeof d.valueFormatter == "function") {
|
|
43065
|
+
try {
|
|
43066
|
+
datasClo.forEach((dd) => {
|
|
43067
|
+
dd[d.field] = d.valueFormatter({ value: dd[d.field] }) || "";
|
|
43068
|
+
});
|
|
43069
|
+
} catch (error) {
|
|
43070
|
+
console.error(error);
|
|
43071
|
+
}
|
|
43072
|
+
} else {
|
|
43073
|
+
throw new Error("\u65F6\u95F4\u7C7B\u578B\u4E0D\u6B63\u786E\uFF0C\u5E94\u8BE5\u4E3A\u51FD\u6570\u7C7B\u578B");
|
|
43074
|
+
}
|
|
43063
43075
|
}
|
|
43064
43076
|
});
|
|
43065
43077
|
const getDeepthOfCol = (col) => {
|
|
@@ -43389,7 +43401,11 @@ function exportJsonToExcel(excelData) {
|
|
|
43389
43401
|
sheet.cell(rowsNow + i, j + 1).value(parseFloat(lineData[j]));
|
|
43390
43402
|
dataCellStyle.numberFormat = numberFormat[j];
|
|
43391
43403
|
} else {
|
|
43392
|
-
|
|
43404
|
+
if (columnType[j] === "n") {
|
|
43405
|
+
dataCellStyle.numberFormat = numberFormat[j];
|
|
43406
|
+
} else {
|
|
43407
|
+
sheet.cell(rowsNow + i, j + 1).value("");
|
|
43408
|
+
}
|
|
43393
43409
|
}
|
|
43394
43410
|
dataCellStyle.horizontalAlignment = columnAlign[j];
|
|
43395
43411
|
sheet.cell(rowsNow + i, j + 1).style(dataCellStyle);
|
|
@@ -53124,6 +53140,9 @@ const __vue2_script$Z = {
|
|
|
53124
53140
|
if (column.hide) {
|
|
53125
53141
|
agColumn.hide = column.hide;
|
|
53126
53142
|
}
|
|
53143
|
+
if (column.align) {
|
|
53144
|
+
agColumn.align = column.align;
|
|
53145
|
+
}
|
|
53127
53146
|
if (column.headerTooltip) {
|
|
53128
53147
|
agColumn.headerTooltip = agColumn.headerTooltip || column.headerTooltip;
|
|
53129
53148
|
}
|
|
@@ -54680,6 +54699,7 @@ const __vue2_script$V = {
|
|
|
54680
54699
|
selectNodes.push(node.id);
|
|
54681
54700
|
}
|
|
54682
54701
|
});
|
|
54702
|
+
curNode.expand = !curNode.expand;
|
|
54683
54703
|
}
|
|
54684
54704
|
this.setCheckStatus(selectNodes);
|
|
54685
54705
|
this.$emit("on-check-change", nodes, curNode);
|