@indfnd/common 1.0.6 → 1.0.8

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,15 @@
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.8](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.7...v1.0.8) (2024-06-26)
6
+
7
+ ### [1.0.7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.6...v1.0.7) (2024-06-20)
8
+
9
+
10
+ ### Features
11
+
12
+ * 明细页面加说明 ([52adffe](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/52adffe0d080b35249e07bb7b277542cf3363e18))
13
+
5
14
  ### [1.0.6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.5...v1.0.6) (2024-06-17)
6
15
 
7
16
  ### [1.0.5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.4...v1.0.5) (2024-06-17)
@@ -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";
5
+ const version = "1.0.7";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -43389,7 +43389,11 @@ function exportJsonToExcel(excelData) {
43389
43389
  sheet.cell(rowsNow + i, j + 1).value(parseFloat(lineData[j]));
43390
43390
  dataCellStyle.numberFormat = numberFormat[j];
43391
43391
  } else {
43392
- sheet.cell(rowsNow + i, j + 1).value("");
43392
+ if (columnType[j] === "n") {
43393
+ dataCellStyle.numberFormat = numberFormat[j];
43394
+ } else {
43395
+ sheet.cell(rowsNow + i, j + 1).value("");
43396
+ }
43393
43397
  }
43394
43398
  dataCellStyle.horizontalAlignment = columnAlign[j];
43395
43399
  sheet.cell(rowsNow + i, j + 1).style(dataCellStyle);
@@ -53124,6 +53128,9 @@ const __vue2_script$Z = {
53124
53128
  if (column.hide) {
53125
53129
  agColumn.hide = column.hide;
53126
53130
  }
53131
+ if (column.align) {
53132
+ agColumn.align = column.align;
53133
+ }
53127
53134
  if (column.headerTooltip) {
53128
53135
  agColumn.headerTooltip = agColumn.headerTooltip || column.headerTooltip;
53129
53136
  }
@@ -57509,39 +57516,46 @@ var render$A = function() {
57509
57516
  var _vm = this;
57510
57517
  var _h = _vm.$createElement;
57511
57518
  var _c = _vm._self._c || _h;
57512
- return _c("div", { ref: "detailView", staticClass: "ind-detail-view ind-flex-column", class: { "has-padding": _vm.hasPadding } }, [_vm.isShowHeader ? _c("div", { staticClass: "ind-flex-no-shrink header" }, [_vm.isShowBackBtn ? _c("Button", { staticClass: "back-btn", attrs: { "bizType": "back" }, on: { "click": function($event) {
57513
- _vm.useGoBack ? _vm.goBack() : _vm.$backToMenu();
57514
- } } }, [_vm._v("\u8FD4\u56DE")]) : _vm._e(), _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.customTitle || _vm.title))]), _c("div", { staticClass: "header-buttons" }, [_vm._t("headerButton")], 2)], 1) : _vm._e(), _c("IndBackTopPanel", { staticClass: "ind-flex-column ind-flex-grow content" }, [_c("div", { staticClass: "content-row" }, [_vm._t("default")], 2)]), _c("div", { staticClass: "ind-flex-no-shrink function-wrapper" }, [_vm._t("footer")], 2)], 1);
57519
+ return _c("div", { staticClass: "ind-menu-desc" }, [_c("Icon", { attrs: { "type": "ios-help-circle-outline", "color": "#488aff", "size": "20" }, on: { "click": function($event) {
57520
+ _vm.show = true;
57521
+ } } }), _c("IndModal", { attrs: { "lazyRender": false, "title": _vm.title, "mask-closable": true, "width": _vm.width, "transfer": "" }, on: { "on-cancel": function($event) {
57522
+ _vm.show = false;
57523
+ }, "on-ok": function($event) {
57524
+ _vm.show = false;
57525
+ } }, model: { value: _vm.show, callback: function($$v) {
57526
+ _vm.show = $$v;
57527
+ }, expression: "show" } }, [_vm.menuInfo.menuDesc ? [_c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
57528
+ return _c("div", { key: "index" + idx, staticClass: "ind-menu-line-item" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName))]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
57529
+ })], 2)] : [_c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
57515
57530
  };
57516
57531
  var staticRenderFns$A = [];
57517
57532
  const __vue2_script$B = {
57518
- name: "IndDetailView",
57519
- components: { Button },
57520
57533
  props: {
57521
- isShowHeader: { type: Boolean, default: true },
57522
- isShowBackBtn: { type: Boolean, default: true },
57523
- useGoBack: Boolean,
57524
- customTitle: String,
57525
- hasPadding: Boolean
57534
+ title: { type: String, default: "\u9875\u9762\u5E2E\u52A9" },
57535
+ width: { type: Number, default: 1060 },
57536
+ height: { type: Number, default: 650 }
57526
57537
  },
57527
- computed: {
57528
- title() {
57529
- return this.$route.meta.title;
57530
- }
57538
+ data() {
57539
+ return {
57540
+ show: false,
57541
+ menuInfo: {
57542
+ menuDesc: "",
57543
+ indexList: []
57544
+ }
57545
+ };
57546
+ },
57547
+ created() {
57548
+ this.initData();
57531
57549
  },
57532
57550
  methods: {
57533
- back() {
57534
- history.go(-1);
57535
- },
57536
- goBack() {
57537
- history.go(-1);
57538
- this.$store.commit(
57539
- "closeTag",
57540
- this.$router,
57541
- _.find(this.$store.state.app.tagNavList, {
57542
- name: this.$route.name
57543
- })
57544
- );
57551
+ initData() {
57552
+ let permissions = getPermissionCache();
57553
+ let curPermission = _.find(permissions, { permissionId: this.$route.meta.permissionId }) || {};
57554
+ try {
57555
+ this.menuInfo = JSON.parse(curPermission.extendProps) || {};
57556
+ } catch (e) {
57557
+ console.log("\u672A\u53D6\u5230\u6570\u636E");
57558
+ }
57545
57559
  }
57546
57560
  }
57547
57561
  };
@@ -57561,53 +57575,46 @@ function __vue2_injectStyles$B(context) {
57561
57575
  this[o] = __cssModules$B[o];
57562
57576
  }
57563
57577
  }
57564
- var detailView = /* @__PURE__ */ function() {
57578
+ var MenuDesc = /* @__PURE__ */ function() {
57565
57579
  return __component__$B.exports;
57566
57580
  }();
57567
57581
  var render$z = function() {
57568
57582
  var _vm = this;
57569
57583
  var _h = _vm.$createElement;
57570
57584
  var _c = _vm._self._c || _h;
57571
- return _c("div", { staticClass: "ind-menu-desc" }, [_c("Icon", { attrs: { "type": "ios-help-circle-outline", "color": "#488aff", "size": "20" }, on: { "click": function($event) {
57572
- _vm.show = true;
57573
- } } }), _c("IndModal", { attrs: { "lazyRender": false, "title": _vm.title, "mask-closable": true, "width": _vm.width, "transfer": "" }, on: { "on-cancel": function($event) {
57574
- _vm.show = false;
57575
- }, "on-ok": function($event) {
57576
- _vm.show = false;
57577
- } }, model: { value: _vm.show, callback: function($$v) {
57578
- _vm.show = $$v;
57579
- }, expression: "show" } }, [_vm.menuInfo.menuDesc ? [_c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
57580
- return _c("div", { key: "index" + idx, staticClass: "ind-menu-line-item" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName))]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
57581
- })], 2)] : [_c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
57585
+ return _c("div", { ref: "detailView", staticClass: "ind-detail-view ind-flex-column", class: { "has-padding": _vm.hasPadding } }, [_vm.isShowHeader ? _c("div", { staticClass: "ind-flex-no-shrink header" }, [_vm.isShowBackBtn ? _c("Button", { staticClass: "back-btn", attrs: { "bizType": "back" }, on: { "click": function($event) {
57586
+ _vm.useGoBack ? _vm.goBack() : _vm.$backToMenu();
57587
+ } } }, [_vm._v("\u8FD4\u56DE")]) : _vm._e(), _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.customTitle || _vm.title))]), _c("MenuDesc"), _c("div", { staticClass: "header-buttons" }, [_vm._t("headerButton")], 2)], 1) : _vm._e(), _c("IndBackTopPanel", { staticClass: "ind-flex-column ind-flex-grow content" }, [_c("div", { staticClass: "content-row" }, [_vm._t("default")], 2)]), _c("div", { staticClass: "ind-flex-no-shrink function-wrapper" }, [_vm._t("footer")], 2)], 1);
57582
57588
  };
57583
57589
  var staticRenderFns$z = [];
57584
57590
  const __vue2_script$A = {
57591
+ name: "IndDetailView",
57592
+ components: { Button, MenuDesc },
57585
57593
  props: {
57586
- title: { type: String, default: "\u9875\u9762\u5E2E\u52A9" },
57587
- width: { type: Number, default: 1060 },
57588
- height: { type: Number, default: 650 }
57589
- },
57590
- data() {
57591
- return {
57592
- show: false,
57593
- menuInfo: {
57594
- menuDesc: "",
57595
- indexList: []
57596
- }
57597
- };
57594
+ isShowHeader: { type: Boolean, default: true },
57595
+ isShowBackBtn: { type: Boolean, default: true },
57596
+ useGoBack: Boolean,
57597
+ customTitle: String,
57598
+ hasPadding: Boolean
57598
57599
  },
57599
- created() {
57600
- this.initData();
57600
+ computed: {
57601
+ title() {
57602
+ return this.$route.meta.title;
57603
+ }
57601
57604
  },
57602
57605
  methods: {
57603
- initData() {
57604
- let permissions = getPermissionCache();
57605
- let curPermission = _.find(permissions, { permissionId: this.$route.meta.permissionId }) || {};
57606
- try {
57607
- this.menuInfo = JSON.parse(curPermission.extendProps) || {};
57608
- } catch (e) {
57609
- console.log("\u672A\u53D6\u5230\u6570\u636E");
57610
- }
57606
+ back() {
57607
+ history.go(-1);
57608
+ },
57609
+ goBack() {
57610
+ history.go(-1);
57611
+ this.$store.commit(
57612
+ "closeTag",
57613
+ this.$router,
57614
+ _.find(this.$store.state.app.tagNavList, {
57615
+ name: this.$route.name
57616
+ })
57617
+ );
57611
57618
  }
57612
57619
  }
57613
57620
  };
@@ -57627,7 +57634,7 @@ function __vue2_injectStyles$A(context) {
57627
57634
  this[o] = __cssModules$A[o];
57628
57635
  }
57629
57636
  }
57630
- var MenuDesc = /* @__PURE__ */ function() {
57637
+ var detailView = /* @__PURE__ */ function() {
57631
57638
  return __component__$A.exports;
57632
57639
  }();
57633
57640
  var render$y = function() {