@indfnd/common-mobile 1.0.55 → 1.0.57
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 +14 -0
- package/dist/ind-common-mobile.es.js +67 -55
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.57](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.56...v1.0.57) (2026-03-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 自定义首页配置 ([5488853](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/548885301b972df4f98ac98372962eded367652e))
|
|
11
|
+
|
|
12
|
+
### [1.0.56](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.55...v1.0.56) (2026-03-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* select组件增加enableSelectAll属性 ([492d8af](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/492d8afe9039d6d646504f2b80bfcacc66646088))
|
|
18
|
+
|
|
5
19
|
### [1.0.55](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.54...v1.0.55) (2026-03-10)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "1.0.
|
|
6
|
+
const version$2 = "1.0.56";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -4108,7 +4108,7 @@ const __vue2_script$z = {
|
|
|
4108
4108
|
this.loadingComp = true;
|
|
4109
4109
|
try {
|
|
4110
4110
|
if (this.dataApi) {
|
|
4111
|
-
let
|
|
4111
|
+
let params = Object.assign(
|
|
4112
4112
|
{},
|
|
4113
4113
|
this.apiParams ? this.apiParams : this.searchForm,
|
|
4114
4114
|
this.disablePage ? {} : {
|
|
@@ -4118,9 +4118,9 @@ const __vue2_script$z = {
|
|
|
4118
4118
|
}
|
|
4119
4119
|
);
|
|
4120
4120
|
if (typeof this.renderParams == "function") {
|
|
4121
|
-
|
|
4121
|
+
params = this.renderParams(params);
|
|
4122
4122
|
}
|
|
4123
|
-
const result = await this.dataApi(
|
|
4123
|
+
const result = await this.dataApi(params);
|
|
4124
4124
|
let data49 = result.data.rows || result.data.records || [];
|
|
4125
4125
|
if (this.disablePage && result.data instanceof Array) {
|
|
4126
4126
|
data49 = result.data;
|
|
@@ -4132,19 +4132,19 @@ const __vue2_script$z = {
|
|
|
4132
4132
|
this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
|
|
4133
4133
|
} else if (this.dataUrl) {
|
|
4134
4134
|
let resp;
|
|
4135
|
-
let
|
|
4135
|
+
let params = {
|
|
4136
4136
|
...this.searchForm,
|
|
4137
4137
|
offset: this.pagination.offset + this.pagination.limit,
|
|
4138
4138
|
limit: this.pagination.limit,
|
|
4139
4139
|
[this.searchKey]: this.searchVal
|
|
4140
4140
|
};
|
|
4141
4141
|
if (typeof this.renderParams == "function") {
|
|
4142
|
-
|
|
4142
|
+
params = this.renderParams(params);
|
|
4143
4143
|
}
|
|
4144
4144
|
if (this.methodsType == "post") {
|
|
4145
|
-
resp = await axios$3.post(this.dataUrl,
|
|
4145
|
+
resp = await axios$3.post(this.dataUrl, params);
|
|
4146
4146
|
} else {
|
|
4147
|
-
resp = await axios$3.get(this.dataUrl, { params
|
|
4147
|
+
resp = await axios$3.get(this.dataUrl, { params });
|
|
4148
4148
|
}
|
|
4149
4149
|
const newData = ((_a = resp.data) == null ? void 0 : _a.rows) || ((_b = resp.data) == null ? void 0 : _b.records) || [];
|
|
4150
4150
|
console.log("\u6536\u5230\u5206\u9875\u54CD\u5E94", {
|
|
@@ -4216,7 +4216,7 @@ const __vue2_script$z = {
|
|
|
4216
4216
|
this.currentPage = 1;
|
|
4217
4217
|
try {
|
|
4218
4218
|
if (this.dataApi) {
|
|
4219
|
-
let
|
|
4219
|
+
let params = Object.assign(
|
|
4220
4220
|
{},
|
|
4221
4221
|
this.apiParams ? this.apiParams : this.searchForm,
|
|
4222
4222
|
this.disablePage ? {} : {
|
|
@@ -4226,9 +4226,9 @@ const __vue2_script$z = {
|
|
|
4226
4226
|
}
|
|
4227
4227
|
);
|
|
4228
4228
|
if (typeof this.renderParams == "function") {
|
|
4229
|
-
|
|
4229
|
+
params = this.renderParams(params);
|
|
4230
4230
|
}
|
|
4231
|
-
const result = await this.dataApi(
|
|
4231
|
+
const result = await this.dataApi(params);
|
|
4232
4232
|
let data49 = result.data.rows || result.data.records || [];
|
|
4233
4233
|
if (this.disablePage && result.data instanceof Array) {
|
|
4234
4234
|
data49 = result.data;
|
|
@@ -4248,19 +4248,19 @@ const __vue2_script$z = {
|
|
|
4248
4248
|
console.log("this.isFinished", this.isFinished);
|
|
4249
4249
|
} else if (this.dataUrl) {
|
|
4250
4250
|
let resp;
|
|
4251
|
-
let
|
|
4251
|
+
let params = {
|
|
4252
4252
|
...this.searchForm,
|
|
4253
4253
|
offset: 0,
|
|
4254
4254
|
limit: this.pagination.limit,
|
|
4255
4255
|
[this.searchKey]: this.searchVal
|
|
4256
4256
|
};
|
|
4257
4257
|
if (typeof this.renderParams == "function") {
|
|
4258
|
-
|
|
4258
|
+
params = this.renderParams(params);
|
|
4259
4259
|
}
|
|
4260
4260
|
if (this.methodsType == "post") {
|
|
4261
|
-
resp = await axios$3.post(this.dataUrl,
|
|
4261
|
+
resp = await axios$3.post(this.dataUrl, params);
|
|
4262
4262
|
} else {
|
|
4263
|
-
resp = await axios$3.get(this.dataUrl, { params
|
|
4263
|
+
resp = await axios$3.get(this.dataUrl, { params });
|
|
4264
4264
|
}
|
|
4265
4265
|
const newData = ((_b = resp.data) == null ? void 0 : _b.rows) || ((_c = resp.data) == null ? void 0 : _c.records) || [];
|
|
4266
4266
|
this.rows = [...newData];
|
|
@@ -11484,9 +11484,9 @@ var Tabs = createComponent$18({
|
|
|
11484
11484
|
var to = title4.offsetLeft - (nav.offsetWidth - title4.offsetWidth) / 2;
|
|
11485
11485
|
scrollLeftTo(nav, to, immediate ? 0 : +this.duration);
|
|
11486
11486
|
},
|
|
11487
|
-
onSticktScroll: function onSticktScroll(
|
|
11488
|
-
this.stickyFixed =
|
|
11489
|
-
this.$emit("scroll",
|
|
11487
|
+
onSticktScroll: function onSticktScroll(params) {
|
|
11488
|
+
this.stickyFixed = params.isFixed;
|
|
11489
|
+
this.$emit("scroll", params);
|
|
11490
11490
|
},
|
|
11491
11491
|
scrollTo: function scrollTo(name2) {
|
|
11492
11492
|
var _this6 = this;
|
|
@@ -21394,12 +21394,12 @@ var Sku = createComponent$9({
|
|
|
21394
21394
|
});
|
|
21395
21395
|
indexImage = selectedValue.imgUrl;
|
|
21396
21396
|
}
|
|
21397
|
-
var
|
|
21397
|
+
var params = _extends$2({}, selectedValue, {
|
|
21398
21398
|
index: index2,
|
|
21399
21399
|
imageList: this.imageList,
|
|
21400
21400
|
indexImage
|
|
21401
21401
|
});
|
|
21402
|
-
this.$emit("open-preview",
|
|
21402
|
+
this.$emit("open-preview", params);
|
|
21403
21403
|
if (!this.previewOnClickImage) {
|
|
21404
21404
|
return;
|
|
21405
21405
|
}
|
|
@@ -21407,7 +21407,7 @@ var Sku = createComponent$9({
|
|
|
21407
21407
|
images: this.imageList,
|
|
21408
21408
|
startPosition: index2,
|
|
21409
21409
|
onClose: function onClose5() {
|
|
21410
|
-
_this4.$emit("close-preview",
|
|
21410
|
+
_this4.$emit("close-preview", params);
|
|
21411
21411
|
}
|
|
21412
21412
|
});
|
|
21413
21413
|
},
|
|
@@ -22647,6 +22647,25 @@ function install$1(Vue2) {
|
|
|
22647
22647
|
if (typeof window !== "undefined" && window.Vue) {
|
|
22648
22648
|
install$1(window.Vue);
|
|
22649
22649
|
}
|
|
22650
|
+
const isHb$1 = location.pathname.includes("scyxweb");
|
|
22651
|
+
function getIndexPreset(params) {
|
|
22652
|
+
return axios$3.get(
|
|
22653
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
22654
|
+
{ params }
|
|
22655
|
+
);
|
|
22656
|
+
}
|
|
22657
|
+
function saveIndexPreset(params) {
|
|
22658
|
+
return axios$3.post(
|
|
22659
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
22660
|
+
params
|
|
22661
|
+
);
|
|
22662
|
+
}
|
|
22663
|
+
function getUserDefaultUrl() {
|
|
22664
|
+
console.log("getUserDefaultUrl begin");
|
|
22665
|
+
return axios$3.get(
|
|
22666
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
|
|
22667
|
+
);
|
|
22668
|
+
}
|
|
22650
22669
|
var render$v = function() {
|
|
22651
22670
|
var _vm = this;
|
|
22652
22671
|
var _h = _vm.$createElement;
|
|
@@ -22684,6 +22703,10 @@ const __vue2_script$v = {
|
|
|
22684
22703
|
});
|
|
22685
22704
|
}
|
|
22686
22705
|
} else {
|
|
22706
|
+
getUserDefaultUrl().then((resp) => {
|
|
22707
|
+
location.href = resp.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
|
|
22708
|
+
return;
|
|
22709
|
+
});
|
|
22687
22710
|
this.$router.push({ name: config.homeRouteName }, () => {
|
|
22688
22711
|
this.loading = false;
|
|
22689
22712
|
});
|
|
@@ -23017,8 +23040,8 @@ const __vue2_script$r = {
|
|
|
23017
23040
|
this.$refs.table.gridApi.selectAllFiltered();
|
|
23018
23041
|
}
|
|
23019
23042
|
},
|
|
23020
|
-
isRowSelectable(
|
|
23021
|
-
return this.enableSelectAll || this.multiple || !this.multiple && !(
|
|
23043
|
+
isRowSelectable(params) {
|
|
23044
|
+
return params.data.disabled ? false : this.enableSelectAll || this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
|
|
23022
23045
|
},
|
|
23023
23046
|
async initConfig() {
|
|
23024
23047
|
this.dataInited = false;
|
|
@@ -32003,18 +32026,18 @@ var utils$c = utils$d;
|
|
|
32003
32026
|
function encode(val) {
|
|
32004
32027
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
32005
32028
|
}
|
|
32006
|
-
var buildURL$2 = function buildURL(url,
|
|
32007
|
-
if (!
|
|
32029
|
+
var buildURL$2 = function buildURL(url, params, paramsSerializer) {
|
|
32030
|
+
if (!params) {
|
|
32008
32031
|
return url;
|
|
32009
32032
|
}
|
|
32010
32033
|
var serializedParams;
|
|
32011
32034
|
if (paramsSerializer) {
|
|
32012
|
-
serializedParams = paramsSerializer(
|
|
32013
|
-
} else if (utils$c.isURLSearchParams(
|
|
32014
|
-
serializedParams =
|
|
32035
|
+
serializedParams = paramsSerializer(params);
|
|
32036
|
+
} else if (utils$c.isURLSearchParams(params)) {
|
|
32037
|
+
serializedParams = params.toString();
|
|
32015
32038
|
} else {
|
|
32016
32039
|
var parts = [];
|
|
32017
|
-
utils$c.forEach(
|
|
32040
|
+
utils$c.forEach(params, function serialize(val, key) {
|
|
32018
32041
|
if (val === null || typeof val === "undefined") {
|
|
32019
32042
|
return;
|
|
32020
32043
|
}
|
|
@@ -32970,25 +32993,6 @@ axios$1.isAxiosError = isAxiosError;
|
|
|
32970
32993
|
axios$2.exports = axios$1;
|
|
32971
32994
|
axios$2.exports.default = axios$1;
|
|
32972
32995
|
var axios = axios$2.exports;
|
|
32973
|
-
const isHb$1 = location.pathname.includes("scyxweb");
|
|
32974
|
-
function getIndexPreset(params2) {
|
|
32975
|
-
return axios$3.get(
|
|
32976
|
-
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
32977
|
-
{ params: params2 }
|
|
32978
|
-
);
|
|
32979
|
-
}
|
|
32980
|
-
function saveIndexPreset(params2) {
|
|
32981
|
-
return axios$3.post(
|
|
32982
|
-
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
32983
|
-
params2
|
|
32984
|
-
);
|
|
32985
|
-
}
|
|
32986
|
-
function getUserDefaultUrl() {
|
|
32987
|
-
return axios$3.post(
|
|
32988
|
-
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`,
|
|
32989
|
-
params
|
|
32990
|
-
);
|
|
32991
|
-
}
|
|
32992
32996
|
const isHb = location.pathname.includes("scyxweb");
|
|
32993
32997
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
32994
32998
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
@@ -33033,9 +33037,9 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
|
|
|
33033
33037
|
setLocalStorage("versionInfo", sessionVersion);
|
|
33034
33038
|
let currentURL = window.location.href;
|
|
33035
33039
|
let url = new URL(currentURL);
|
|
33036
|
-
let
|
|
33037
|
-
|
|
33038
|
-
url.search =
|
|
33040
|
+
let params = new URLSearchParams(url.search);
|
|
33041
|
+
params.set("v", sessionVersion.appVersion);
|
|
33042
|
+
url.search = params.toString();
|
|
33039
33043
|
window.location.href = url.href;
|
|
33040
33044
|
}
|
|
33041
33045
|
} else {
|
|
@@ -33247,12 +33251,18 @@ const pluginLogin = (store2) => {
|
|
|
33247
33251
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
33248
33252
|
axios$3.get(url).then(async (resp) => {
|
|
33249
33253
|
setToken(resp.token);
|
|
33250
|
-
resolve(resp.token);
|
|
33251
33254
|
localStorage.setItem("v8-token", resp.token);
|
|
33252
33255
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
33253
|
-
|
|
33254
|
-
|
|
33255
|
-
|
|
33256
|
+
setTimeout(() => {
|
|
33257
|
+
console.log("before getUserDefaultUrl");
|
|
33258
|
+
getUserDefaultUrl().then((resp1) => {
|
|
33259
|
+
console.log("getUserDefaultUrl data", resp1);
|
|
33260
|
+
location.href = resp1.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
|
|
33261
|
+
resolve(resp.token);
|
|
33262
|
+
console.log("location.href", location.href);
|
|
33263
|
+
return;
|
|
33264
|
+
});
|
|
33265
|
+
}, 0);
|
|
33256
33266
|
}).catch((e) => {
|
|
33257
33267
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
33258
33268
|
reject(0);
|
|
@@ -33318,11 +33328,13 @@ window.getQueryVariable = function getQueryVariable2(variable) {
|
|
|
33318
33328
|
};
|
|
33319
33329
|
const checkLogin = async () => {
|
|
33320
33330
|
var _a, _b;
|
|
33331
|
+
console.log("checkLogin trigger");
|
|
33321
33332
|
if (localStorage.getItem("whoisyourdaddy") == "1") {
|
|
33322
33333
|
return Promise.resolve(true);
|
|
33323
33334
|
}
|
|
33324
33335
|
try {
|
|
33325
33336
|
let token = getToken();
|
|
33337
|
+
console.log("checkLogin token", token);
|
|
33326
33338
|
const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
33327
33339
|
params: {},
|
|
33328
33340
|
headers: {
|