@indfnd/common 0.1.20 → 0.1.21

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,19 @@
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.21](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.20...v0.1.21) (2024-04-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * 计算公式兼容空值计算 ([dcbff12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/dcbff12bf258670f89468d48e3d8e0a87036dff5))
11
+ * 修改表格合并行的样式; ([decfec6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/decfec6c016b7839cacec01a8403d99c10e3fdcd))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * 修改 ([bb87ebf](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/bb87ebf3cf143e5a33306ec876d4fabd0c666f1c))
17
+
5
18
  ### [0.1.20](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.19...v0.1.20) (2024-03-31)
6
19
 
7
20
  ### [0.1.19](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.18...v0.1.19) (2024-03-31)
@@ -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.19";
5
+ const version = "0.1.20";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -51677,7 +51677,8 @@ var traverTreeCalc = function(t2, dataContext) {
51677
51677
  }
51678
51678
  return rltTmp;
51679
51679
  } else {
51680
- return parseFloat(dataContext[t2.val.val]);
51680
+ let valueRlt = parseFloat(dataContext[t2.val.val] || "0");
51681
+ return isNaN(valueRlt) ? 0 : valueRlt;
51681
51682
  }
51682
51683
  };
51683
51684
  const genAst = function genAst2(input) {
@@ -51765,7 +51766,7 @@ var render$U = function() {
51765
51766
  return _vm.$emit("revertColumnRow");
51766
51767
  } } }, [_vm._v(" \u8F6C\u7F6E ")]) : _vm._e(), !_vm.isIndexManageTable ? _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) {
51767
51768
  return _vm.tableSettingToggle("3");
51768
- } } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_vm.btnSel == "3" ? _c("ExportData", { attrs: { "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight, "rowSpanColumns": _vm.rowSpanColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "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 } }) : _vm.btnSel == "2" ? [_c("div", { staticStyle: { "border-bottom": "1px solid #e9e9e9", "padding-bottom": "6px", "margin-bottom": "6px" } }, [_c("Checkbox", { attrs: { "value": _vm.checkAll }, on: { "on-change": _vm.handleCheckAll } }, [_vm._v("\u5168\u9009")])], 1), _c("CheckboxGroup", { on: { "on-change": _vm.checkAllGroupChange }, model: { value: _vm.checkAllGroup, callback: function($$v) {
51769
+ } } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_vm.btnSel == "3" ? _c("ExportData", { attrs: { "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "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 } }) : _vm.btnSel == "2" ? [_c("div", { staticStyle: { "border-bottom": "1px solid #e9e9e9", "padding-bottom": "6px", "margin-bottom": "6px" } }, [_c("Checkbox", { attrs: { "value": _vm.checkAll }, on: { "on-change": _vm.handleCheckAll } }, [_vm._v("\u5168\u9009")])], 1), _c("CheckboxGroup", { on: { "on-change": _vm.checkAllGroupChange }, model: { value: _vm.checkAllGroup, callback: function($$v) {
51769
51770
  _vm.checkAllGroup = $$v;
51770
51771
  }, expression: "checkAllGroup" } }, [_vm._l(_vm.columns, function(item2) {
51771
51772
  return [item2.title ? _c("Checkbox", { key: item2.field, attrs: { "label": item2.title } }, [_vm._v(_vm._s(item2.title))]) : _vm._e()];
@@ -52074,6 +52075,11 @@ const __vue2_script$V = {
52074
52075
  };
52075
52076
  },
52076
52077
  computed: {
52078
+ paramRightUnit() {
52079
+ return _.some(this.flatColumns, (d) => {
52080
+ return d.isSwitchUnit;
52081
+ }) ? "\u5355\u4F4D\uFF1A" + (this.unitType == "X" ? "\u7BB1" : "\u4E07\u652F") : "";
52082
+ },
52077
52083
  isEditTable() {
52078
52084
  return _.some(this.flatColumns, (d) => {
52079
52085
  return ["input", "select", "treeselect"].includes(d.type);
@@ -52477,7 +52483,7 @@ const __vue2_script$V = {
52477
52483
  },
52478
52484
  getRowHeight() {
52479
52485
  let heightEnum = {
52480
- "ind-default-theme": 44,
52486
+ "ind-default-theme": 42,
52481
52487
  "ind-small-theme": 28
52482
52488
  };
52483
52489
  return heightEnum[this.getTheme];
@@ -53470,7 +53476,7 @@ const __vue2_script$S = {
53470
53476
  height: { type: Number, default: 350 },
53471
53477
  multiSelect: { type: Boolean },
53472
53478
  helpBoxSearchParams: { type: Object, default: () => null },
53473
- clearText: { type: String, default: "\u6E05\u7A7A" }
53479
+ clearText: { type: String, default: "\u53D6\u6D88" }
53474
53480
  },
53475
53481
  data() {
53476
53482
  return {
@@ -53478,7 +53484,14 @@ const __vue2_script$S = {
53478
53484
  selection: [],
53479
53485
  tableColumnsClone: [],
53480
53486
  form: { searchText: "" },
53481
- fieldList: [{ title: "\u641C\u7D22", type: "input", formKey: "searchText" }]
53487
+ fieldList: [
53488
+ {
53489
+ title: "\u641C\u7D22",
53490
+ type: "input",
53491
+ formKey: "searchText",
53492
+ props: { placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22" }
53493
+ }
53494
+ ]
53482
53495
  };
53483
53496
  },
53484
53497
  computed: {
@@ -62231,7 +62244,7 @@ var render$7 = function() {
62231
62244
  var _vm = this;
62232
62245
  var _h = _vm.$createElement;
62233
62246
  var _c = _vm._self._c || _h;
62234
- return _c("div", [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "readonly": "", "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9" }, on: { "on-focus": _vm.openModal, "on-clear": _vm.doClear } }), _c("Modal", { attrs: { "title": "\u9009\u62E9\u884C\u5C55\u793A", "width": 900, "cancelText": "\u6E05\u9664", "cancelNotClose": "" }, on: { "on-ok": _vm.ok, "on-cancel": _vm.clear }, model: { value: _vm.showPanel, callback: function($$v) {
62247
+ return _c("div", [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "readonly": "", "clearable": !_vm.readonly, "placeholder": "\u8BF7\u9009\u62E9" }, on: { "on-focus": _vm.openModal, "on-clear": _vm.doClear } }), _c("Modal", { attrs: { "title": "\u9009\u62E9\u5377\u70DF", "width": 900, "cancelText": "\u6E05\u9664", "cancelNotClose": "" }, on: { "on-ok": _vm.ok, "on-cancel": _vm.clear }, model: { value: _vm.showPanel, callback: function($$v) {
62235
62248
  _vm.showPanel = $$v;
62236
62249
  }, expression: "showPanel" } }, [_c("ConditionPanel", { attrs: { "conditionDefs": _vm.conditionDefs }, model: { value: _vm.params, callback: function($$v) {
62237
62250
  _vm.params = $$v;