@zscreate/form-component 1.1.199 → 1.1.201
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/dist/form-component.umd.js +40 -3
- package/package.json +1 -1
|
@@ -61402,7 +61402,10 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
61402
61402
|
},
|
|
61403
61403
|
labelWidth() {
|
|
61404
61404
|
let width = this.widget.options.labelWidth;
|
|
61405
|
-
if (['', undefined, null].includes(width))
|
|
61405
|
+
if (['', undefined, null].includes(width)) {
|
|
61406
|
+
width = 100;
|
|
61407
|
+
if (['editorAirt'].includes(this.widget.type)) width = 0;
|
|
61408
|
+
}
|
|
61406
61409
|
// 如果是子表单元素 label 宽度为0 border为0
|
|
61407
61410
|
return this.tableKey && !this.showLabel ? 0 : width;
|
|
61408
61411
|
},
|
|
@@ -128867,7 +128870,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
128867
128870
|
/***/ ((module) => {
|
|
128868
128871
|
|
|
128869
128872
|
"use strict";
|
|
128870
|
-
module.exports = {"i8":"1.1.
|
|
128873
|
+
module.exports = {"i8":"1.1.201"};
|
|
128871
128874
|
|
|
128872
128875
|
/***/ })
|
|
128873
128876
|
|
|
@@ -129023,7 +129026,7 @@ function encry_http_v1(config) {
|
|
|
129023
129026
|
}
|
|
129024
129027
|
let key, iv;
|
|
129025
129028
|
try {
|
|
129026
|
-
let token = external_commonjs_vue_commonjs2_vue_root_Vue_default().prototype.getToken();
|
|
129029
|
+
let token = external_commonjs_vue_commonjs2_vue_root_Vue_default().prototype.getToken() || config.headers['X-Access-Token'];
|
|
129027
129030
|
// console.log(token)
|
|
129028
129031
|
// token 倒序
|
|
129029
129032
|
if (token) token = token.slice(-32);
|
|
@@ -134368,6 +134371,12 @@ Print.prototype = {
|
|
|
134368
134371
|
}
|
|
134369
134372
|
};
|
|
134370
134373
|
/* harmony default export */ const print = (Print);
|
|
134374
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.32.1@core-js/modules/web.url-search-params.delete.js
|
|
134375
|
+
var web_url_search_params_delete = __webpack_require__(7433);
|
|
134376
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.32.1@core-js/modules/web.url-search-params.has.js
|
|
134377
|
+
var web_url_search_params_has = __webpack_require__(7759);
|
|
134378
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.32.1@core-js/modules/web.url-search-params.size.js
|
|
134379
|
+
var web_url_search_params_size = __webpack_require__(8030);
|
|
134371
134380
|
;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/bind.js
|
|
134372
134381
|
|
|
134373
134382
|
|
|
@@ -137849,6 +137858,9 @@ var utils_util = __webpack_require__(4948);
|
|
|
137849
137858
|
;// CONCATENATED MODULE: ./src/utils/checkSsoStatus.js
|
|
137850
137859
|
|
|
137851
137860
|
|
|
137861
|
+
|
|
137862
|
+
|
|
137863
|
+
|
|
137852
137864
|
const ax = lib_axios.create({});
|
|
137853
137865
|
ax.interceptors.response.use(response => {
|
|
137854
137866
|
const {
|
|
@@ -137860,6 +137872,30 @@ ax.interceptors.response.use(response => {
|
|
|
137860
137872
|
console.warn(err, arg);
|
|
137861
137873
|
return Promise.reject(err);
|
|
137862
137874
|
});
|
|
137875
|
+
function extractDomainInfo(url) {
|
|
137876
|
+
try {
|
|
137877
|
+
// 解析URL
|
|
137878
|
+
const parsedUrl = new URL(url);
|
|
137879
|
+
|
|
137880
|
+
// 获取协议,主机名和端口号
|
|
137881
|
+
const protocol = parsedUrl.protocol;
|
|
137882
|
+
const hostname = parsedUrl.hostname;
|
|
137883
|
+
const port = parsedUrl.port;
|
|
137884
|
+
|
|
137885
|
+
// 格式化输出,包括协议,主机名和端口号(如果有)
|
|
137886
|
+
return `${protocol}//${hostname}${port ? `:${port}` : ''}`;
|
|
137887
|
+
} catch (e) {
|
|
137888
|
+
console.error("Invalid URL:", e);
|
|
137889
|
+
return null;
|
|
137890
|
+
}
|
|
137891
|
+
}
|
|
137892
|
+
function compareUrls(url1, url2) {
|
|
137893
|
+
const domainInfo1 = extractDomainInfo(url1);
|
|
137894
|
+
const domainInfo2 = extractDomainInfo(url2);
|
|
137895
|
+
|
|
137896
|
+
// 比较提取的URL信息
|
|
137897
|
+
return domainInfo1 === domainInfo2;
|
|
137898
|
+
}
|
|
137863
137899
|
function useSsoStatus(options) {
|
|
137864
137900
|
const {
|
|
137865
137901
|
casUrl,
|
|
@@ -137869,6 +137905,7 @@ function useSsoStatus(options) {
|
|
|
137869
137905
|
} = options;
|
|
137870
137906
|
return {
|
|
137871
137907
|
check() {
|
|
137908
|
+
if (!compareUrls(casUrl, serviceUrl)) return;
|
|
137872
137909
|
ax.get(`${casUrl}/login?service=${serviceUrl}`).then(res => {
|
|
137873
137910
|
const resUrl = res.request.responseURL;
|
|
137874
137911
|
if (resUrl.includes('service=')) {
|