@indfnd/common 0.1.82 → 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 +8 -0
- package/dist/ind-common.es.js +25 -10
- package/dist/ind-common.umd.cjs +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
|
|
5
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)
|
|
6
14
|
|
|
7
15
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -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.
|
|
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);
|
|
@@ -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.
|
|
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 = {
|
|
@@ -64515,6 +64507,29 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
64515
64507
|
}
|
|
64516
64508
|
}
|
|
64517
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
|
+
}
|
|
64518
64533
|
if (!token && to.name !== LOGIN_PAGE_NAME) {
|
|
64519
64534
|
next({ name: LOGIN_PAGE_NAME });
|
|
64520
64535
|
} else if (to.name === LOGIN_PAGE_NAME) {
|