@indfnd/common 0.1.81 → 0.1.83

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.83](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.82...v0.1.83) (2024-06-04)
6
+
7
+
8
+ ### Features
9
+
10
+ * 登录兼容httponly ([2f454d2](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2f454d257482f3144dace5a7dd963c2058ccbd61))
11
+ * 日期范围选择去掉限制,随便选 ([ea607f5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ea607f59b8e67ded15a77b5244da963ea8f1a720))
12
+
13
+ ### [0.1.82](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.81...v0.1.82) (2024-05-31)
14
+
15
+
16
+ ### Features
17
+
18
+ * 改了一堆样式 ([736af36](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/736af3682f9281d8b63f4e33fcbb40a3030ce4d1))
19
+
5
20
  ### [0.1.81](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.80...v0.1.81) (2024-05-28)
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.80";
5
+ const version = "0.1.82";
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);
@@ -48551,11 +48543,12 @@ var dropdownItem = /* @__PURE__ */ function() {
48551
48543
  return __component__$1f.exports;
48552
48544
  }();
48553
48545
  const defaultSpan = 8;
48546
+ const SMALLWIDTHLIMIT = top == self ? 1700 : 1440;
48554
48547
  var FormImpl = {
48555
48548
  name: "FormImpl",
48556
48549
  data() {
48557
48550
  return {
48558
- showMorePosition: window.innerWidth < 1700 ? 2 : 3,
48551
+ showMorePosition: window.innerWidth < SMALLWIDTHLIMIT ? 2 : 3,
48559
48552
  form: {},
48560
48553
  enumList: [],
48561
48554
  enumData: {},
@@ -48742,8 +48735,8 @@ var FormImpl = {
48742
48735
  let formItems = [];
48743
48736
  let showMorePosition = this.showMorePosition;
48744
48737
  let spanList;
48745
- let searchSpan = window.innerWidth < 1700 ? 8 : 6;
48746
- this.showMorePosition = window.innerWidth < 1700 ? 2 : this.showMorePosition;
48738
+ let searchSpan = window.innerWidth < SMALLWIDTHLIMIT ? 8 : 6;
48739
+ this.showMorePosition = window.innerWidth < SMALLWIDTHLIMIT ? 2 : this.showMorePosition;
48747
48740
  spanList = _.fill(
48748
48741
  _.range(this.fieldList.length),
48749
48742
  this.formType == "search" ? searchSpan : this.defaultSpan
@@ -53303,7 +53296,7 @@ const __vue2_script$Z = {
53303
53296
  if (!isValid) {
53304
53297
  const { newValue, oldValue, data, colDef, column: column2 } = params;
53305
53298
  this.isRevertingOldValue = true;
53306
- data[colDef.key] = newValue;
53299
+ data[colDef.field || colDef.key] = newValue;
53307
53300
  setTimeout(() => {
53308
53301
  params.node.setDataValue(column2, oldValue);
53309
53302
  this.isRevertingOldValue = false;
@@ -55010,7 +55003,7 @@ var render$T = function() {
55010
55003
  var _c = _vm._self._c || _h;
55011
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) {
55012
55005
  _vm.boxShow = $$v;
55013
- }, 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)]);
55014
55007
  };
55015
55008
  var staticRenderFns$T = [];
55016
55009
  const __vue2_script$U = {
@@ -64514,6 +64507,29 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
64514
64507
  }
64515
64508
  }
64516
64509
  }
64510
+ if (!token) {
64511
+ fetch(
64512
+ `${window.location.protocol}//${window.location.host}/ind-uc-ext-server/sso/ssoTokenLogin`,
64513
+ {
64514
+ headers: {
64515
+ accept: "application/json, text/plain, */*",
64516
+ "accept-language": "zh-CN,zh;q=0.9",
64517
+ "cache-control": "no-cache",
64518
+ pragma: "no-cache"
64519
+ },
64520
+ referrer: `${window.location.protocol}//${window.location.host}/`,
64521
+ referrerPolicy: "origin",
64522
+ body: null,
64523
+ method: "GET",
64524
+ mode: "cors",
64525
+ credentials: "include"
64526
+ }
64527
+ ).then((response) => response.json()).then((jsonData) => {
64528
+ token = jsonData.token;
64529
+ sessionStorage.setItem("lambo-token", token);
64530
+ store2.dispatch("loginSuccess", token);
64531
+ });
64532
+ }
64517
64533
  if (!token && to.name !== LOGIN_PAGE_NAME) {
64518
64534
  next({ name: LOGIN_PAGE_NAME });
64519
64535
  } else if (to.name === LOGIN_PAGE_NAME) {