@indfnd/common 0.1.82 → 0.1.84

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,21 @@
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.84](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.83...v0.1.84) (2024-06-04)
6
+
7
+
8
+ ### Features
9
+
10
+ * layout title逻辑修改 ([f8d5b17](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/f8d5b171a980517943dbafe87996927f1c7ad272))
11
+
12
+ ### [0.1.83](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.82...v0.1.83) (2024-06-04)
13
+
14
+
15
+ ### Features
16
+
17
+ * 登录兼容httponly ([2f454d2](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2f454d257482f3144dace5a7dd963c2058ccbd61))
18
+ * 日期范围选择去掉限制,随便选 ([ea607f5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ea607f59b8e67ded15a77b5244da963ea8f1a720))
19
+
5
20
  ### [0.1.82](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.81...v0.1.82) (2024-05-31)
6
21
 
7
22
 
@@ -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, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.81";
5
+ const version = "0.1.83";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -48109,10 +48109,6 @@ const __vue2_script$1j = {
48109
48109
  changeRangeValue(type, value) {
48110
48110
  if (type === "begin") {
48111
48111
  if (value && this.endDate) {
48112
- if (value > this.endDate) {
48113
- this.$refs.beginPicker.setDate(this.beginDate);
48114
- return;
48115
- }
48116
48112
  if (this.isLimitOneYear && value.substring(0, 4) !== this.endDate.substring(0, 4)) {
48117
48113
  this.$Message.error("\u8BE5\u529F\u80FD\u4E0D\u5141\u8BB8\u8DE8\u5E74\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\uFF01");
48118
48114
  this.$refs.beginPicker.setDate(this.beginDate);
@@ -48122,10 +48118,6 @@ const __vue2_script$1j = {
48122
48118
  this.beginDate = value;
48123
48119
  } else {
48124
48120
  if (value && this.beginDate) {
48125
- if (value < this.beginDate) {
48126
- this.$refs.endPicker.setDate(this.endDate);
48127
- return;
48128
- }
48129
48121
  if (this.isLimitOneYear && value.substring(0, 4) !== this.beginDate.substring(0, 4)) {
48130
48122
  this.$Message.error("\u8BE5\u529F\u80FD\u4E0D\u5141\u8BB8\u8DE8\u5E74\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\uFF01");
48131
48123
  this.$refs.endPicker.setDate(this.endDate);
@@ -55011,7 +55003,7 @@ var render$T = function() {
55011
55003
  var _c = _vm._self._c || _h;
55012
55004
  return _c("Modal", { attrs: { "title": _vm.boxTitle, "mask-closable": false, "width": _vm.width, "transfer": "" }, on: { "on-cancel": _vm.onCancel }, model: { value: _vm.boxShow, callback: function($$v) {
55013
55005
  _vm.boxShow = $$v;
55014
- }, expression: "boxShow" } }, [_vm.boxShow ? _c("div", [[_c("div", { ref: "treeWrapper", staticClass: "tree-wrapper", style: { height: _vm.height + "px", overflow: "auto" } }, [_c("Tree", { ref: "tree", attrs: { "data-api": _vm.dataApi, "url-params": _vm.helpTreeBoxSearchParams, "isShowHeader": _vm.isShowHeader, "show-checkbox": _vm.showCheckbox, "check-directly": "" }, on: { "on-select-change": _vm.onSelectChange, "on-check-change": _vm.updateSelectedTitles, "on-load": _vm.initSelectedTitles, "on-default-change": _vm.updateSelectedTitles } })], 1)]], 2) : _vm._e(), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_c("ButtonGroup", { attrs: { "right": "" } }, [_c("Button", { attrs: { "bizType": "confirm" }, on: { "click": _vm.onOk } }, [_vm._v("\u786E\u5B9A")])], 1)], 1)]);
55006
+ }, expression: "boxShow" } }, [_vm.boxShow ? _c("div", [[_c("div", { ref: "treeWrapper", staticClass: "tree-wrapper", style: { height: _vm.height + "px", overflow: "auto" } }, [_c("Tree", { ref: "tree", attrs: { "data-api": _vm.dataApi, "url-params": _vm.helpBoxSearchParams, "isShowHeader": _vm.isShowHeader, "show-checkbox": _vm.showCheckbox, "check-directly": "" }, on: { "on-select-change": _vm.onSelectChange, "on-check-change": _vm.updateSelectedTitles, "on-load": _vm.initSelectedTitles, "on-default-change": _vm.updateSelectedTitles } })], 1)]], 2) : _vm._e(), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_c("ButtonGroup", { attrs: { "right": "" } }, [_c("Button", { attrs: { "bizType": "confirm" }, on: { "click": _vm.onOk } }, [_vm._v("\u786E\u5B9A")])], 1)], 1)]);
55015
55007
  };
55016
55008
  var staticRenderFns$T = [];
55017
55009
  const __vue2_script$U = {
@@ -57511,7 +57503,11 @@ const __vue2_script$B = {
57511
57503
  },
57512
57504
  computed: {
57513
57505
  title() {
57514
- return this.$route.meta.title;
57506
+ if (top == self) {
57507
+ return this.$route.meta.title;
57508
+ } else {
57509
+ return top.document.getElementsByClassName("pro-layout-tabs-wrapper")[0].getElementsByClassName("ivu-tag-primary")[0].textContent.replace(/\s/g, "");
57510
+ }
57515
57511
  }
57516
57512
  },
57517
57513
  methods: {
@@ -57633,7 +57629,11 @@ const __vue2_script$z = {
57633
57629
  },
57634
57630
  computed: {
57635
57631
  title() {
57636
- return this.$route.meta.title;
57632
+ if (top == self) {
57633
+ return this.$route.meta.title;
57634
+ } else {
57635
+ return top.document.getElementsByClassName("pro-layout-tabs-wrapper")[0].getElementsByClassName("ivu-tag-primary")[0].textContent.replace(/\s/g, "");
57636
+ }
57637
57637
  }
57638
57638
  }
57639
57639
  };
@@ -64515,6 +64515,31 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
64515
64515
  }
64516
64516
  }
64517
64517
  }
64518
+ if (!token) {
64519
+ fetch(
64520
+ `${window.location.protocol}//${window.location.host}/ind-uc-ext-server/sso/ssoTokenLogin`,
64521
+ {
64522
+ headers: {
64523
+ accept: "application/json, text/plain, */*",
64524
+ "accept-language": "zh-CN,zh;q=0.9",
64525
+ "cache-control": "no-cache",
64526
+ pragma: "no-cache"
64527
+ },
64528
+ referrer: `${window.location.protocol}//${window.location.host}/`,
64529
+ referrerPolicy: "origin",
64530
+ body: null,
64531
+ method: "GET",
64532
+ mode: "cors",
64533
+ credentials: "include"
64534
+ }
64535
+ ).then((response) => response.json()).then((jsonData) => {
64536
+ if (jsonData.token) {
64537
+ token = jsonData.token;
64538
+ sessionStorage.setItem("lambo-token", token);
64539
+ store2.dispatch("loginSuccess", token);
64540
+ }
64541
+ });
64542
+ }
64518
64543
  if (!token && to.name !== LOGIN_PAGE_NAME) {
64519
64544
  next({ name: LOGIN_PAGE_NAME });
64520
64545
  } else if (to.name === LOGIN_PAGE_NAME) {