@indfnd/common 1.0.4 → 1.0.7

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,27 @@
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.7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.6...v1.0.7) (2024-06-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * 明细页面加说明 ([52adffe](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/52adffe0d080b35249e07bb7b277542cf3363e18))
11
+
12
+ ### [1.0.6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.5...v1.0.6) (2024-06-17)
13
+
14
+ ### [1.0.5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.4...v1.0.5) (2024-06-17)
15
+
16
+
17
+ ### Features
18
+
19
+ * 查询条件位置问题修复 ([28be0f8](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/28be0f8d89b8b9da05ed3a1c5bd30815dde0c73f))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * 更新依赖 ([2a902aa](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2a902aa48ca727a41b261e7ab031f14672fb0aa7))
25
+
5
26
  ### [1.0.4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.3...v1.0.4) (2024-06-16)
6
27
 
7
28
  ### [1.0.3](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.0...v1.0.3) (2024-06-16)
@@ -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.3";
5
+ const version = "1.0.6";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -62,7 +62,7 @@ const dependencies = {
62
62
  "xlsx-populate": "^1.11.0"
63
63
  };
64
64
  const devDependencies = {
65
- "@indfnd/utils": "^0.1.9",
65
+ "@indfnd/utils": "^0.1.11",
66
66
  "ag-grid-community": "^30.1.0",
67
67
  "ag-grid-enterprise": "^30.1.0",
68
68
  "ag-grid-vue": "^30.1.0",
@@ -48543,12 +48543,13 @@ var dropdownItem = /* @__PURE__ */ function() {
48543
48543
  return __component__$1f.exports;
48544
48544
  }();
48545
48545
  const defaultSpan = 8;
48546
- const SMALLWIDTHLIMIT = top == self ? 1700 : 1440;
48546
+ const SMALLWIDTHLIMIT = () => {
48547
+ return top == self ? 1700 : 1440;
48548
+ };
48547
48549
  var FormImpl = {
48548
48550
  name: "FormImpl",
48549
48551
  data() {
48550
48552
  return {
48551
- showMorePosition: window.innerWidth < SMALLWIDTHLIMIT ? 2 : 3,
48552
48553
  form: {},
48553
48554
  enumList: [],
48554
48555
  enumData: {},
@@ -48733,10 +48734,9 @@ var FormImpl = {
48733
48734
  },
48734
48735
  render(h) {
48735
48736
  let formItems = [];
48736
- let showMorePosition = this.showMorePosition;
48737
48737
  let spanList;
48738
- let searchSpan = window.innerWidth < SMALLWIDTHLIMIT ? 8 : 6;
48739
- this.showMorePosition = window.innerWidth < SMALLWIDTHLIMIT ? 2 : this.showMorePosition;
48738
+ let searchSpan = window.innerWidth < SMALLWIDTHLIMIT() ? 8 : 6;
48739
+ let showMorePosition = window.innerWidth < SMALLWIDTHLIMIT() ? 2 : 3;
48740
48740
  spanList = _.fill(
48741
48741
  _.range(this.fieldList.length),
48742
48742
  this.formType == "search" ? searchSpan : this.defaultSpan
@@ -57509,39 +57509,46 @@ var render$A = function() {
57509
57509
  var _vm = this;
57510
57510
  var _h = _vm.$createElement;
57511
57511
  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);
57512
+ return _c("div", { staticClass: "ind-menu-desc" }, [_c("Icon", { attrs: { "type": "ios-help-circle-outline", "color": "#488aff", "size": "20" }, on: { "click": function($event) {
57513
+ _vm.show = true;
57514
+ } } }), _c("IndModal", { attrs: { "lazyRender": false, "title": _vm.title, "mask-closable": true, "width": _vm.width, "transfer": "" }, on: { "on-cancel": function($event) {
57515
+ _vm.show = false;
57516
+ }, "on-ok": function($event) {
57517
+ _vm.show = false;
57518
+ } }, model: { value: _vm.show, callback: function($$v) {
57519
+ _vm.show = $$v;
57520
+ }, 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) {
57521
+ 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) + " ")])]);
57522
+ })], 2)] : [_c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
57515
57523
  };
57516
57524
  var staticRenderFns$A = [];
57517
57525
  const __vue2_script$B = {
57518
- name: "IndDetailView",
57519
- components: { Button },
57520
57526
  props: {
57521
- isShowHeader: { type: Boolean, default: true },
57522
- isShowBackBtn: { type: Boolean, default: true },
57523
- useGoBack: Boolean,
57524
- customTitle: String,
57525
- hasPadding: Boolean
57527
+ title: { type: String, default: "\u9875\u9762\u5E2E\u52A9" },
57528
+ width: { type: Number, default: 1060 },
57529
+ height: { type: Number, default: 650 }
57526
57530
  },
57527
- computed: {
57528
- title() {
57529
- return this.$route.meta.title;
57530
- }
57531
+ data() {
57532
+ return {
57533
+ show: false,
57534
+ menuInfo: {
57535
+ menuDesc: "",
57536
+ indexList: []
57537
+ }
57538
+ };
57539
+ },
57540
+ created() {
57541
+ this.initData();
57531
57542
  },
57532
57543
  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
- );
57544
+ initData() {
57545
+ let permissions = getPermissionCache();
57546
+ let curPermission = _.find(permissions, { permissionId: this.$route.meta.permissionId }) || {};
57547
+ try {
57548
+ this.menuInfo = JSON.parse(curPermission.extendProps) || {};
57549
+ } catch (e) {
57550
+ console.log("\u672A\u53D6\u5230\u6570\u636E");
57551
+ }
57545
57552
  }
57546
57553
  }
57547
57554
  };
@@ -57561,53 +57568,46 @@ function __vue2_injectStyles$B(context) {
57561
57568
  this[o] = __cssModules$B[o];
57562
57569
  }
57563
57570
  }
57564
- var detailView = /* @__PURE__ */ function() {
57571
+ var MenuDesc = /* @__PURE__ */ function() {
57565
57572
  return __component__$B.exports;
57566
57573
  }();
57567
57574
  var render$z = function() {
57568
57575
  var _vm = this;
57569
57576
  var _h = _vm.$createElement;
57570
57577
  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);
57578
+ 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) {
57579
+ _vm.useGoBack ? _vm.goBack() : _vm.$backToMenu();
57580
+ } } }, [_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
57581
  };
57583
57582
  var staticRenderFns$z = [];
57584
57583
  const __vue2_script$A = {
57584
+ name: "IndDetailView",
57585
+ components: { Button, MenuDesc },
57585
57586
  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
- };
57587
+ isShowHeader: { type: Boolean, default: true },
57588
+ isShowBackBtn: { type: Boolean, default: true },
57589
+ useGoBack: Boolean,
57590
+ customTitle: String,
57591
+ hasPadding: Boolean
57598
57592
  },
57599
- created() {
57600
- this.initData();
57593
+ computed: {
57594
+ title() {
57595
+ return this.$route.meta.title;
57596
+ }
57601
57597
  },
57602
57598
  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
- }
57599
+ back() {
57600
+ history.go(-1);
57601
+ },
57602
+ goBack() {
57603
+ history.go(-1);
57604
+ this.$store.commit(
57605
+ "closeTag",
57606
+ this.$router,
57607
+ _.find(this.$store.state.app.tagNavList, {
57608
+ name: this.$route.name
57609
+ })
57610
+ );
57611
57611
  }
57612
57612
  }
57613
57613
  };
@@ -57627,7 +57627,7 @@ function __vue2_injectStyles$A(context) {
57627
57627
  this[o] = __cssModules$A[o];
57628
57628
  }
57629
57629
  }
57630
- var MenuDesc = /* @__PURE__ */ function() {
57630
+ var detailView = /* @__PURE__ */ function() {
57631
57631
  return __component__$A.exports;
57632
57632
  }();
57633
57633
  var render$y = function() {