@indfnd/common-mobile 1.0.52 → 1.0.53
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 +7 -0
- package/dist/ind-common-mobile.es.js +58 -49
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.53](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.52...v1.0.53) (2026-03-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 移动端图标大小支持系统配置 ([c8357ec](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c8357ec811b53b33d80ae4ccd69f5554f78e10f4))
|
|
11
|
+
|
|
5
12
|
### [1.0.52](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.51...v1.0.52) (2026-03-05)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -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.52";
|
|
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 params2 = 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
|
+
params2 = this.renderParams(params2);
|
|
4122
4122
|
}
|
|
4123
|
-
const result = await this.dataApi(
|
|
4123
|
+
const result = await this.dataApi(params2);
|
|
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 params2 = {
|
|
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
|
+
params2 = this.renderParams(params2);
|
|
4143
4143
|
}
|
|
4144
4144
|
if (this.methodsType == "post") {
|
|
4145
|
-
resp = await axios$3.post(this.dataUrl,
|
|
4145
|
+
resp = await axios$3.post(this.dataUrl, params2);
|
|
4146
4146
|
} else {
|
|
4147
|
-
resp = await axios$3.get(this.dataUrl, { params });
|
|
4147
|
+
resp = await axios$3.get(this.dataUrl, { params: params2 });
|
|
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 params2 = 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
|
+
params2 = this.renderParams(params2);
|
|
4230
4230
|
}
|
|
4231
|
-
const result = await this.dataApi(
|
|
4231
|
+
const result = await this.dataApi(params2);
|
|
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 params2 = {
|
|
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
|
+
params2 = this.renderParams(params2);
|
|
4259
4259
|
}
|
|
4260
4260
|
if (this.methodsType == "post") {
|
|
4261
|
-
resp = await axios$3.post(this.dataUrl,
|
|
4261
|
+
resp = await axios$3.post(this.dataUrl, params2);
|
|
4262
4262
|
} else {
|
|
4263
|
-
resp = await axios$3.get(this.dataUrl, { params });
|
|
4263
|
+
resp = await axios$3.get(this.dataUrl, { params: params2 });
|
|
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(params2) {
|
|
11488
|
+
this.stickyFixed = params2.isFixed;
|
|
11489
|
+
this.$emit("scroll", params2);
|
|
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 params2 = _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", params2);
|
|
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", params2);
|
|
21411
21411
|
}
|
|
21412
21412
|
});
|
|
21413
21413
|
},
|
|
@@ -23016,8 +23016,8 @@ const __vue2_script$r = {
|
|
|
23016
23016
|
this.$refs.table.gridApi.selectAllFiltered();
|
|
23017
23017
|
}
|
|
23018
23018
|
},
|
|
23019
|
-
isRowSelectable(
|
|
23020
|
-
return this.multiple || !this.multiple && !(
|
|
23019
|
+
isRowSelectable(params2) {
|
|
23020
|
+
return this.multiple || !this.multiple && !(params2.data.children && params2.data.children.length);
|
|
23021
23021
|
},
|
|
23022
23022
|
async initConfig() {
|
|
23023
23023
|
this.dataInited = false;
|
|
@@ -31996,18 +31996,18 @@ var utils$c = utils$d;
|
|
|
31996
31996
|
function encode(val) {
|
|
31997
31997
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
31998
31998
|
}
|
|
31999
|
-
var buildURL$2 = function buildURL(url,
|
|
32000
|
-
if (!
|
|
31999
|
+
var buildURL$2 = function buildURL(url, params2, paramsSerializer) {
|
|
32000
|
+
if (!params2) {
|
|
32001
32001
|
return url;
|
|
32002
32002
|
}
|
|
32003
32003
|
var serializedParams;
|
|
32004
32004
|
if (paramsSerializer) {
|
|
32005
|
-
serializedParams = paramsSerializer(
|
|
32006
|
-
} else if (utils$c.isURLSearchParams(
|
|
32007
|
-
serializedParams =
|
|
32005
|
+
serializedParams = paramsSerializer(params2);
|
|
32006
|
+
} else if (utils$c.isURLSearchParams(params2)) {
|
|
32007
|
+
serializedParams = params2.toString();
|
|
32008
32008
|
} else {
|
|
32009
32009
|
var parts = [];
|
|
32010
|
-
utils$c.forEach(
|
|
32010
|
+
utils$c.forEach(params2, function serialize(val, key) {
|
|
32011
32011
|
if (val === null || typeof val === "undefined") {
|
|
32012
32012
|
return;
|
|
32013
32013
|
}
|
|
@@ -32964,6 +32964,25 @@ axios$2.exports = axios$1;
|
|
|
32964
32964
|
axios$2.exports.default = axios$1;
|
|
32965
32965
|
var axios = axios$2.exports;
|
|
32966
32966
|
const isHb$1 = location.pathname.includes("scyxweb");
|
|
32967
|
+
function getIndexPreset(params2) {
|
|
32968
|
+
return axios$3.get(
|
|
32969
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
32970
|
+
{ params: params2 }
|
|
32971
|
+
);
|
|
32972
|
+
}
|
|
32973
|
+
function saveIndexPreset(params2) {
|
|
32974
|
+
return axios$3.post(
|
|
32975
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
32976
|
+
params2
|
|
32977
|
+
);
|
|
32978
|
+
}
|
|
32979
|
+
function getUserDefaultUrl() {
|
|
32980
|
+
return axios$3.post(
|
|
32981
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`,
|
|
32982
|
+
params
|
|
32983
|
+
);
|
|
32984
|
+
}
|
|
32985
|
+
const isHb = location.pathname.includes("scyxweb");
|
|
32967
32986
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
32968
32987
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
32969
32988
|
const Cookie = {
|
|
@@ -33007,9 +33026,9 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
|
|
|
33007
33026
|
setLocalStorage("versionInfo", sessionVersion);
|
|
33008
33027
|
let currentURL = window.location.href;
|
|
33009
33028
|
let url = new URL(currentURL);
|
|
33010
|
-
let
|
|
33011
|
-
|
|
33012
|
-
url.search =
|
|
33029
|
+
let params2 = new URLSearchParams(url.search);
|
|
33030
|
+
params2.set("v", sessionVersion.appVersion);
|
|
33031
|
+
url.search = params2.toString();
|
|
33013
33032
|
window.location.href = url.href;
|
|
33014
33033
|
}
|
|
33015
33034
|
} else {
|
|
@@ -33042,12 +33061,12 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
33042
33061
|
const LOGIN_PAGE_NAME = config.loginRouteName;
|
|
33043
33062
|
const routerOptionsBak = _.cloneDeep(router.options);
|
|
33044
33063
|
window.sessionNotValidHandler = async function() {
|
|
33045
|
-
if (typeof window.Code != "undefined" || isHb
|
|
33064
|
+
if (typeof window.Code != "undefined" || isHb) {
|
|
33046
33065
|
try {
|
|
33047
33066
|
await pluginLogin(store2);
|
|
33048
33067
|
} catch (e) {
|
|
33049
33068
|
console.log("pluginLogin e", e);
|
|
33050
|
-
if (isHb
|
|
33069
|
+
if (isHb) {
|
|
33051
33070
|
if (isQywx) {
|
|
33052
33071
|
location.href = location.protocol + "//" + location.host + "/hbwebchat/wxmain?syscode=gtptrpxebl";
|
|
33053
33072
|
} else {
|
|
@@ -33158,7 +33177,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
33158
33177
|
}
|
|
33159
33178
|
}
|
|
33160
33179
|
const code2 = getQueryVariable("code");
|
|
33161
|
-
if (typeof window.Code != "undefined" || code2 || isHb
|
|
33180
|
+
if (typeof window.Code != "undefined" || code2 || isHb) {
|
|
33162
33181
|
if (!token) {
|
|
33163
33182
|
if (await tryPluginLogin()) {
|
|
33164
33183
|
await _renderRoutes();
|
|
@@ -33217,13 +33236,16 @@ const pluginLogin = (store2) => {
|
|
|
33217
33236
|
Cookie.set("TOKEN_KEY", "", 1);
|
|
33218
33237
|
store2.commit("setUserName", "");
|
|
33219
33238
|
store2.commit("setToken", "");
|
|
33220
|
-
if (isHb
|
|
33239
|
+
if (isHb) {
|
|
33221
33240
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
33222
33241
|
axios$3.get(url).then(async (resp) => {
|
|
33223
33242
|
setToken(resp.token);
|
|
33224
33243
|
resolve(resp.token);
|
|
33225
33244
|
localStorage.setItem("v8-token", resp.token);
|
|
33226
33245
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
33246
|
+
getUserDefaultUrl().then((resp2) => {
|
|
33247
|
+
location.href = resp2.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
|
|
33248
|
+
});
|
|
33227
33249
|
}).catch((e) => {
|
|
33228
33250
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
33229
33251
|
reject(0);
|
|
@@ -33374,19 +33396,6 @@ var user = {
|
|
|
33374
33396
|
}
|
|
33375
33397
|
}
|
|
33376
33398
|
};
|
|
33377
|
-
const isHb = location.pathname.includes("scyxweb");
|
|
33378
|
-
function getIndexPreset(params) {
|
|
33379
|
-
return axios$3.get(
|
|
33380
|
-
`${location.protocol}//${location.host}${isHb ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
33381
|
-
{ params }
|
|
33382
|
-
);
|
|
33383
|
-
}
|
|
33384
|
-
function saveIndexPreset(params) {
|
|
33385
|
-
return axios$3.post(
|
|
33386
|
-
`${location.protocol}//${location.host}${isHb ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
33387
|
-
params
|
|
33388
|
-
);
|
|
33389
|
-
}
|
|
33390
33399
|
const { homeRouteName } = config;
|
|
33391
33400
|
const closePage = (state, $router, route2) => {
|
|
33392
33401
|
const nextRoute = getNextRoute(state.tagNavList, route2);
|