@indfnd/common 0.1.20 → 0.1.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 CHANGED
@@ -2,6 +2,26 @@
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.22](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.21...v0.1.22) (2024-04-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * 行锁定bug修复 ([025868c](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/025868cfe6ad90c377d4a87ab6fce469966c57d6))
11
+
12
+ ### [0.1.21](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.20...v0.1.21) (2024-04-03)
13
+
14
+
15
+ ### Features
16
+
17
+ * 计算公式兼容空值计算 ([dcbff12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/dcbff12bf258670f89468d48e3d8e0a87036dff5))
18
+ * 修改表格合并行的样式; ([decfec6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/decfec6c016b7839cacec01a8403d99c10e3fdcd))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * 修改 ([bb87ebf](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/bb87ebf3cf143e5a33306ec876d4fabd0c666f1c))
24
+
5
25
  ### [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
26
 
7
27
  ### [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.21";
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);
@@ -52363,6 +52369,8 @@ const __vue2_script$V = {
52363
52369
  srcColumn.hide = !d.checked;
52364
52370
  if (d.pinned) {
52365
52371
  srcColumn.pinned = d.pinned;
52372
+ } else {
52373
+ delete srcColumn.pinned;
52366
52374
  }
52367
52375
  if (d.width) {
52368
52376
  srcColumn.width = d.width;
@@ -52477,7 +52485,7 @@ const __vue2_script$V = {
52477
52485
  },
52478
52486
  getRowHeight() {
52479
52487
  let heightEnum = {
52480
- "ind-default-theme": 44,
52488
+ "ind-default-theme": 42,
52481
52489
  "ind-small-theme": 28
52482
52490
  };
52483
52491
  return heightEnum[this.getTheme];
@@ -53470,7 +53478,7 @@ const __vue2_script$S = {
53470
53478
  height: { type: Number, default: 350 },
53471
53479
  multiSelect: { type: Boolean },
53472
53480
  helpBoxSearchParams: { type: Object, default: () => null },
53473
- clearText: { type: String, default: "\u6E05\u7A7A" }
53481
+ clearText: { type: String, default: "\u53D6\u6D88" }
53474
53482
  },
53475
53483
  data() {
53476
53484
  return {
@@ -53478,7 +53486,14 @@ const __vue2_script$S = {
53478
53486
  selection: [],
53479
53487
  tableColumnsClone: [],
53480
53488
  form: { searchText: "" },
53481
- fieldList: [{ title: "\u641C\u7D22", type: "input", formKey: "searchText" }]
53489
+ fieldList: [
53490
+ {
53491
+ title: "\u641C\u7D22",
53492
+ type: "input",
53493
+ formKey: "searchText",
53494
+ props: { placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22" }
53495
+ }
53496
+ ]
53482
53497
  };
53483
53498
  },
53484
53499
  computed: {
@@ -62231,7 +62246,7 @@ var render$7 = function() {
62231
62246
  var _vm = this;
62232
62247
  var _h = _vm.$createElement;
62233
62248
  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) {
62249
+ 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
62250
  _vm.showPanel = $$v;
62236
62251
  }, expression: "showPanel" } }, [_c("ConditionPanel", { attrs: { "conditionDefs": _vm.conditionDefs }, model: { value: _vm.params, callback: function($$v) {
62237
62252
  _vm.params = $$v;