@indfnd/common 1.1.2 → 1.1.4

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,22 @@
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.4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.3...v1.1.4) (2025-09-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * 导出excel问题修复 ([3db6d18](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3db6d18fb9bec497797e60f453c38c1653277150))
11
+ * 移动端配置新增全屏和局部loading ([6e2c8eb](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/6e2c8ebb3bdff24b53ab9736912ceb8cb794dcfd))
12
+ * 移动端配置新增全屏和局部loading ([4691be4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/4691be46baec5d5ffca3e3f96ca8e97f1439d394))
13
+
14
+ ### [1.1.3](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.2...v1.1.3) (2025-09-04)
15
+
16
+
17
+ ### Features
18
+
19
+ * 增加percent的支持 ([ea15150](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ea1515017342832f5c9b852b6d59f0aae5f44350))
20
+
5
21
  ### [1.1.2](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.1...v1.1.2) (2025-09-02)
6
22
 
7
23
  ### [1.1.1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.0...v1.1.1) (2025-08-30)
@@ -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.1";
5463
+ const version = "1.1.3";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -43836,7 +43836,7 @@ function exportJsonToExcel(excelData) {
43836
43836
  if (columnType[j] === "p" && lineData[j]) {
43837
43837
  const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
43838
43838
  worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : parseFloat(numericValue / 100);
43839
- dataCellStyle2.numFmt = numberFormat[j];
43839
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = numberFormat[j];
43840
43840
  } else if (columnType[j] === "s") {
43841
43841
  if (lineData[j] === "0") {
43842
43842
  worksheet.getCell(rowsNow + i, j + 1).value = 0;
@@ -43846,11 +43846,11 @@ function exportJsonToExcel(excelData) {
43846
43846
  } else {
43847
43847
  worksheet.getCell(rowsNow + i, j + 1).value = "";
43848
43848
  }
43849
- dataCellStyle2.numFmt = "";
43849
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = "";
43850
43850
  } else if (columnType[j] === "n" && lineData[j]) {
43851
43851
  const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
43852
43852
  worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : numericValue;
43853
- dataCellStyle2.numFmt = numberFormat[j];
43853
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = numberFormat[j];
43854
43854
  } else {
43855
43855
  worksheet.getCell(rowsNow + i, j + 1).value = "";
43856
43856
  }
@@ -43890,7 +43890,7 @@ function exportJsonToExcel(excelData) {
43890
43890
  if (columnType[j] === "p" && lineData[j]) {
43891
43891
  const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
43892
43892
  worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : parseFloat(numericValue / 100);
43893
- dataCellStyle2.numFmt = numberFormat[j];
43893
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = numberFormat[j];
43894
43894
  } else if (columnType[j] === "s") {
43895
43895
  if (lineData[j] === "0") {
43896
43896
  worksheet.getCell(rowsNow + i, j + 1).value = 0;
@@ -43900,11 +43900,11 @@ function exportJsonToExcel(excelData) {
43900
43900
  } else {
43901
43901
  worksheet.getCell(rowsNow + i, j + 1).value = "";
43902
43902
  }
43903
- dataCellStyle2.numFmt = "";
43903
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = "";
43904
43904
  } else if (columnType[j] === "n" && lineData[j]) {
43905
43905
  const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
43906
43906
  worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : numericValue;
43907
- dataCellStyle2.numFmt = numberFormat[j];
43907
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = numberFormat[j];
43908
43908
  } else {
43909
43909
  worksheet.getCell(rowsNow + i, j + 1).value = "";
43910
43910
  }
@@ -43923,7 +43923,9 @@ function exportJsonToExcel(excelData) {
43923
43923
  worksheet.getCell(rowsNow + i, j + 1).value = "#ERROR!";
43924
43924
  }
43925
43925
  }
43926
- worksheet.getCell(rowsNow + i, j + 1).border = dataCellStyle2.border;
43926
+ _.forEach(dataCellStyle2, (v, k) => {
43927
+ worksheet.getCell(rowsNow + i, j + 1)[k] = v;
43928
+ });
43927
43929
  }
43928
43930
  } catch (cellError) {
43929
43931
  console.error(`\u5904\u7406\u5355\u5143\u683C\u6570\u636E\u65F6\u51FA\u9519 (\u884C: ${i + 1}, \u5217: ${j + 1}):`, cellError);
@@ -60891,23 +60893,48 @@ var render$A = function() {
60891
60893
  var _vm = this;
60892
60894
  var _h = _vm.$createElement;
60893
60895
  var _c = _vm._self._c || _h;
60894
- return _c("div", { staticClass: "ind-loading-panel" }, [_vm._t("default"), _vm.loading ? _c("Spin", { class: ["ind-loading-spin", "ind-loading-spin--" + _vm.theme], style: _vm.style, attrs: { "fix": "" } }, [_c("Icons", { staticClass: "ind-loading-spin-icon", attrs: { "type": "ios-loading", "size": "18" } }), !_vm.noText ? _c("div", [_vm._v(_vm._s(_vm.text))]) : _vm._e()], 1) : _vm._e()], 2);
60896
+ return _c("div", [_vm.isPc ? _c("div", { staticClass: "ind-loading-panel" }, [_vm._t("default"), _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
60897
+ $event.stopPropagation();
60898
+ } } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.getOssFileUrl(_vm.globalLoading), "alt": "" } }), _c("div", { staticClass: "ind-loading-wrapper-text" }, [_vm._v(" " + _vm._s(_vm.text || "\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...") + " ")])]) : _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("img", { attrs: { "src": _vm.getOssFileUrl(_vm.localLoading), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])])], 2) : _c("div", { staticClass: "ind-loading-panel" }, [_vm._t("default"), _vm.loading ? _c("Spin", { class: ["ind-loading-spin", "ind-loading-spin--" + _vm.theme], style: _vm.style, attrs: { "fix": "" } }, [_c("Icons", { staticClass: "ind-loading-spin-icon", attrs: { "type": "ios-loading", "size": "18" } }), !_vm.noText ? _c("div", [_vm._v(_vm._s(_vm.text))]) : _vm._e()], 1) : _vm._e()], 2)]);
60895
60899
  };
60896
60900
  var staticRenderFns$A = [];
60897
60901
  const __vue2_script$B = {
60898
60902
  name: "IndLoadingPanel",
60899
60903
  components: { Spin, Icons },
60900
60904
  props: {
60905
+ isFullScreenLoading: {
60906
+ type: Boolean,
60907
+ default: false
60908
+ },
60901
60909
  loading: Boolean,
60902
60910
  theme: { type: String, default: "light" },
60903
60911
  noText: Boolean,
60904
60912
  text: { type: String, default: "\u52A0\u8F7D\u4E2D..." }
60905
60913
  },
60906
60914
  data() {
60915
+ function isPC() {
60916
+ const userAgent = navigator.userAgent;
60917
+ const pcKeywords = ["Windows", "Macintosh", "Linux"];
60918
+ for (const keyword of pcKeywords) {
60919
+ if (userAgent.includes(keyword)) {
60920
+ return true;
60921
+ }
60922
+ }
60923
+ return false;
60924
+ }
60907
60925
  return {
60926
+ isPc: isPC(),
60908
60927
  style: { "z-index": transferIndex }
60909
60928
  };
60910
60929
  },
60930
+ computed: {
60931
+ globalLoading() {
60932
+ return this.$config.systemDefaultConfig.globalLoading;
60933
+ },
60934
+ localLoading() {
60935
+ return this.$config.systemDefaultConfig.localLoading;
60936
+ }
60937
+ },
60911
60938
  watch: {
60912
60939
  loading: {
60913
60940
  immediate: true,
@@ -60917,6 +60944,14 @@ const __vue2_script$B = {
60917
60944
  }
60918
60945
  }
60919
60946
  }
60947
+ },
60948
+ methods: {
60949
+ getOssFileUrl(fileId) {
60950
+ if (fileId) {
60951
+ return `/user-manage-server/oss/file/get/${fileId}`;
60952
+ }
60953
+ return this.isFullScreenLoading ? "./two.png" : "./loading.png";
60954
+ }
60920
60955
  }
60921
60956
  };
60922
60957
  const __cssModules$B = {};
@@ -72332,6 +72367,14 @@ const install = function(Vue2, opts = { theme: "" }) {
72332
72367
  Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data);
72333
72368
  });
72334
72369
  }
72370
+ axios.get(
72371
+ `/user-manage-server/manage/appSetting/qryAppSettingNew?offset=0&limit=20&settingType=11&deviceType=11`
72372
+ ).then((data) => {
72373
+ var _a, _b;
72374
+ let ret = JSON.parse((_b = (_a = data.data) == null ? void 0 : _a.rows) == null ? void 0 : _b[0].settingInfo);
72375
+ console.log(`\u{1F921}\u{1F61D} ... install ... ret:`, ret);
72376
+ Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret || {});
72377
+ });
72335
72378
  Object.keys(components).forEach((key) => {
72336
72379
  Vue2.component(`Ind${key}`, components[key]);
72337
72380
  });