@indfnd/common 1.1.50 → 1.1.53
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 +17 -0
- package/dist/ind-common.es.js +28 -6
- package/dist/ind-common.umd.cjs +89 -89
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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.1.53](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.52...v1.1.53) (2026-02-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* table导出时处理千分位 ([b863108](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/b863108c31782a0da997bef5080f07f333f416ba))
|
|
11
|
+
* table导出时处理千分位 ([1c73380](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/1c73380ff6f033ca1ee100c6f244ca2d4599aa93))
|
|
12
|
+
|
|
13
|
+
### [1.1.52](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.51...v1.1.52) (2026-02-24)
|
|
14
|
+
|
|
15
|
+
### [1.1.51](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.50...v1.1.51) (2026-02-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* ✨页面帮助标题添加负责人信息 ([8620f9a](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/8620f9a9a9d3d2faec7f73cbc2bb930e42b3a89b))
|
|
21
|
+
|
|
5
22
|
### [1.1.50](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.49...v1.1.50) (2026-02-24)
|
|
6
23
|
|
|
7
24
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.1.
|
|
5463
|
+
const version = "1.1.52";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -43723,7 +43723,7 @@ function initRowSpanInfosNew(options) {
|
|
|
43723
43723
|
});
|
|
43724
43724
|
}
|
|
43725
43725
|
}
|
|
43726
|
-
function exportJsonToExcel(excelData) {
|
|
43726
|
+
function exportJsonToExcel(excelData, isPerMille) {
|
|
43727
43727
|
try {
|
|
43728
43728
|
if (!excelData || !excelData.title) {
|
|
43729
43729
|
throw new Error("\u5BFC\u51FAExcel\u5931\u8D25: \u7F3A\u5C11\u5FC5\u8981\u7684\u5BFC\u51FA\u6570\u636E");
|
|
@@ -43925,6 +43925,9 @@ function exportJsonToExcel(excelData) {
|
|
|
43925
43925
|
}
|
|
43926
43926
|
_.forEach(dataCellStyle2, (v, k) => {
|
|
43927
43927
|
worksheet.getCell(rowsNow + i, j + 1)[k] = v;
|
|
43928
|
+
if (isPerMille) {
|
|
43929
|
+
worksheet.getCell(rowsNow + i, j + 1).numFmt = "#,##0.00";
|
|
43930
|
+
}
|
|
43928
43931
|
});
|
|
43929
43932
|
}
|
|
43930
43933
|
} catch (cellError) {
|
|
@@ -50944,6 +50947,10 @@ const __vue2_script$1n = {
|
|
|
50944
50947
|
disablePage: {
|
|
50945
50948
|
type: Boolean,
|
|
50946
50949
|
default: false
|
|
50950
|
+
},
|
|
50951
|
+
isPerMille: {
|
|
50952
|
+
type: Boolean,
|
|
50953
|
+
default: true
|
|
50947
50954
|
}
|
|
50948
50955
|
},
|
|
50949
50956
|
data() {
|
|
@@ -51190,7 +51197,7 @@ const __vue2_script$1n = {
|
|
|
51190
51197
|
rowSpanDefs: this.rowSpanDefs,
|
|
51191
51198
|
watermark: this.watermark
|
|
51192
51199
|
};
|
|
51193
|
-
exportJsonToExcel(params);
|
|
51200
|
+
exportJsonToExcel(params, this.isPerMille);
|
|
51194
51201
|
} else {
|
|
51195
51202
|
this.$Message.info("\u8868\u683C\u6570\u636E\u4E0D\u80FD\u4E3A\u7A7A\uFF01");
|
|
51196
51203
|
}
|
|
@@ -53236,7 +53243,7 @@ var render$14 = function() {
|
|
|
53236
53243
|
return _vm.$emit("revertColumnRow");
|
|
53237
53244
|
} } }, [_vm._v(" \u8F6C\u7F6E ")]) : _vm._e(), !_vm.isIndexManageTable && _vm.$config.indexManage ? _c("IndexManage", { attrs: { "tableRef": _vm.tableRef, "funId": (_vm.funId || "") + "-" + _vm.$route.meta.permissionId }, on: { "resetColumns": _vm.resetColumns } }) : _vm._e(), _c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": function($event) {
|
|
53238
53245
|
return _vm.tableSettingToggle("3");
|
|
53239
|
-
} } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_c("ExportData", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel == "3", expression: "btnSel == '3'" }], ref: "exportData", attrs: { "rowSpanDefs": _vm.rowSpanDefs, "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns || _vm.mergeColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol || _vm.mergeIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "renderDataFn": _vm.renderDataFn, "searchParams": _vm.searchParams, "sortParams": _vm.sortParams, "paginationParams": _vm.paginationParams, "show-summary": _vm.tableShowSummary, "summary-method": _vm.tableSummaryMethod, "parsedColumns": _vm.parsedColumns, "exportEnum": _vm.exportEnum, "data-children": _vm.dataChildren, "defaultUnitType": _vm.defaultUnitType, "unitType": _vm.unitType, "switchCols": _vm.switchCols, "watermark": _vm.watermark, "disablePage": _vm.disablePage }, on: { "doExport": function($event) {
|
|
53246
|
+
} } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_c("ExportData", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel == "3", expression: "btnSel == '3'" }], ref: "exportData", attrs: { "rowSpanDefs": _vm.rowSpanDefs, "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns || _vm.mergeColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol || _vm.mergeIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "renderDataFn": _vm.renderDataFn, "searchParams": _vm.searchParams, "sortParams": _vm.sortParams, "paginationParams": _vm.paginationParams, "show-summary": _vm.tableShowSummary, "summary-method": _vm.tableSummaryMethod, "parsedColumns": _vm.parsedColumns, "exportEnum": _vm.exportEnum, "data-children": _vm.dataChildren, "defaultUnitType": _vm.defaultUnitType, "unitType": _vm.unitType, "switchCols": _vm.switchCols, "watermark": _vm.watermark, "disablePage": _vm.disablePage, "isPerMille": _vm.isPerMille }, on: { "doExport": function($event) {
|
|
53240
53247
|
_vm.optionDropdownVisible = false;
|
|
53241
53248
|
}, "doPreview": function($event) {
|
|
53242
53249
|
_vm.optionDropdownVisible = false;
|
|
@@ -53354,6 +53361,10 @@ const __vue2_script$15 = {
|
|
|
53354
53361
|
return ((_a = this.$config) == null ? void 0 : _a.agHeaderHeight) || 28;
|
|
53355
53362
|
}
|
|
53356
53363
|
},
|
|
53364
|
+
isPerMille: {
|
|
53365
|
+
type: Boolean,
|
|
53366
|
+
default: true
|
|
53367
|
+
},
|
|
53357
53368
|
mini: {
|
|
53358
53369
|
type: Boolean,
|
|
53359
53370
|
default: false
|
|
@@ -61080,7 +61091,7 @@ var render$D = function() {
|
|
|
61080
61091
|
var _vm = this;
|
|
61081
61092
|
var _h = _vm.$createElement;
|
|
61082
61093
|
var _c = _vm._self._c || _h;
|
|
61083
|
-
return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_vm.isShowHeader ? _c("div", { staticClass: "ind-flex-no-shrink header" }, [_vm.isShowBackBtn ? _c("Button", { staticClass: "back-btn", attrs: { "bizType": "back" }, on: { "click": _vm.$backToMenu } }, [_vm._v("\u8FD4\u56DE")]) : _vm._e(), _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.customTitle || _vm.title))]), _c("MenuDesc", { attrs: { "theContext": _vm.indexDesc } }), _c("div", { staticStyle: { "width": "70%", "height": "100%", "display": "flex", "align-items": "center", "padding": "5px", "color": "red" } }, [_vm._v(" " + _vm._s(_vm.functionDesc) + " ")]), _c("div", { staticClass: "function-wrapper" }, [_vm._t("headerButton")], 2)], 1) : _vm._e(), _c("IndLoadingPanel", { staticClass: "ind-flex-column ind-flex-grow content", attrs: { "loading": _vm.loading } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.topSearch, expression: "$slots.topSearch" }], staticClass: "ind-flex-no-shrink ind-panel top-search-content search" }, [_vm._t("topSearch")], 2), _c("div", { staticClass: "ind-flex-grow body-content" }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.leftContent, expression: "$slots.leftContent" }], staticClass: "ind-panel body-left-content" }, [_vm._t("leftContent")], 2), _c("div", { staticClass: "ind-panel ind-flex-column body-right-content" }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.search, expression: "$slots.search" }], staticClass: "ind-flex-no-shrink search" }, [_vm._t("search")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.tip, expression: "$slots.tip" }], staticClass: "tip" }, [_vm._t("tip")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots["important-tip"], expression: "$slots['important-tip']" }], staticClass: "important-tip" }, [_c("Icons", { attrs: { "type": "md-information-circle" } }), _vm._t("important-tip")], 2), _c("div", { staticClass: "ind-flex-grow main-content" }, [_vm._t("default")], 2), _c("div", { staticClass: "ind-flex-no-shrink body-right-content-footer" }, [_vm._t("footer")], 2)])]), _c("div", { staticClass: "ind-flex-no-shrink bottom" }, [_vm._t("bottom")], 2)])], 1);
|
|
61094
|
+
return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_vm.isShowHeader ? _c("div", { staticClass: "ind-flex-no-shrink header" }, [_vm.isShowBackBtn ? _c("Button", { staticClass: "back-btn", attrs: { "bizType": "back" }, on: { "click": _vm.$backToMenu } }, [_vm._v("\u8FD4\u56DE")]) : _vm._e(), _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.customTitle || _vm.title))]), _c("MenuDesc", { attrs: { "title": "\u9875\u9762\u5E2E\u52A9" + _vm.ownerInfoDesc, "theContext": _vm.indexDesc } }), _c("div", { staticStyle: { "width": "70%", "height": "100%", "display": "flex", "align-items": "center", "padding": "5px", "color": "red" } }, [_vm._v(" " + _vm._s(_vm.functionDesc) + " ")]), _c("div", { staticClass: "function-wrapper" }, [_vm._t("headerButton")], 2)], 1) : _vm._e(), _c("IndLoadingPanel", { staticClass: "ind-flex-column ind-flex-grow content", attrs: { "loading": _vm.loading } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.topSearch, expression: "$slots.topSearch" }], staticClass: "ind-flex-no-shrink ind-panel top-search-content search" }, [_vm._t("topSearch")], 2), _c("div", { staticClass: "ind-flex-grow body-content" }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.leftContent, expression: "$slots.leftContent" }], staticClass: "ind-panel body-left-content" }, [_vm._t("leftContent")], 2), _c("div", { staticClass: "ind-panel ind-flex-column body-right-content" }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.search, expression: "$slots.search" }], staticClass: "ind-flex-no-shrink search" }, [_vm._t("search")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.tip, expression: "$slots.tip" }], staticClass: "tip" }, [_vm._t("tip")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots["important-tip"], expression: "$slots['important-tip']" }], staticClass: "important-tip" }, [_c("Icons", { attrs: { "type": "md-information-circle" } }), _vm._t("important-tip")], 2), _c("div", { staticClass: "ind-flex-grow main-content" }, [_vm._t("default")], 2), _c("div", { staticClass: "ind-flex-no-shrink body-right-content-footer" }, [_vm._t("footer")], 2)])]), _c("div", { staticClass: "ind-flex-no-shrink bottom" }, [_vm._t("bottom")], 2)])], 1);
|
|
61084
61095
|
};
|
|
61085
61096
|
var staticRenderFns$D = [];
|
|
61086
61097
|
const __vue2_script$E = {
|
|
@@ -61089,7 +61100,8 @@ const __vue2_script$E = {
|
|
|
61089
61100
|
return {
|
|
61090
61101
|
title: "",
|
|
61091
61102
|
functionDesc: "",
|
|
61092
|
-
indexDesc: ""
|
|
61103
|
+
indexDesc: "",
|
|
61104
|
+
ownerInfoDesc: ""
|
|
61093
61105
|
};
|
|
61094
61106
|
},
|
|
61095
61107
|
components: { ButtonGroup, Button, Icons, Col, Row, MenuDesc },
|
|
@@ -61115,6 +61127,9 @@ const __vue2_script$E = {
|
|
|
61115
61127
|
this.title = this.$route.meta.title;
|
|
61116
61128
|
}
|
|
61117
61129
|
}
|
|
61130
|
+
},
|
|
61131
|
+
isValidStr(value) {
|
|
61132
|
+
return value !== "" && value !== void 0;
|
|
61118
61133
|
}
|
|
61119
61134
|
},
|
|
61120
61135
|
async mounted() {
|
|
@@ -61134,6 +61149,13 @@ const __vue2_script$E = {
|
|
|
61134
61149
|
let data2 = JSON.parse(res.data);
|
|
61135
61150
|
this.functionDesc = data2.functionDesc;
|
|
61136
61151
|
this.indexDesc = data2.indexDesc;
|
|
61152
|
+
if (this.isValidStr(data2.bizOwnerId) && this.isValidStr(data2.adminId)) {
|
|
61153
|
+
this.ownerInfoDesc = `\uFF08\u4E1A\u52A1\u8D1F\u8D23\u4EBA\uFF1A${data2.bizOwnerName}\uFF0C\u7BA1\u7406\u5458\uFF1A${data2.adminName}\uFF09`;
|
|
61154
|
+
} else if (this.isValidStr(data2.bizOwnerId)) {
|
|
61155
|
+
this.ownerInfoDesc = `\uFF08\u4E1A\u52A1\u8D1F\u8D23\u4EBA\uFF1A${data2.bizOwnerName}\uFF09`;
|
|
61156
|
+
} else if (this.isValidStr(data2.adminId)) {
|
|
61157
|
+
this.ownerInfoDesc = `\uFF08\u7BA1\u7406\u5458\uFF1A${data2.adminName}\uFF09`;
|
|
61158
|
+
}
|
|
61137
61159
|
} else {
|
|
61138
61160
|
this.functionDesc = "";
|
|
61139
61161
|
}
|