@indfnd/common-mobile 1.0.51 → 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 +14 -0
- package/dist/ind-common-mobile.es.js +72 -52
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/dist/styles/index.css +1 -1
- 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.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
|
+
|
|
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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 湖北应用广场提出新的展现需求 ([3a410f9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/3a410f986a71fd0e9a9cb7c8ea8d00402ddafdc5))
|
|
18
|
+
|
|
5
19
|
### [1.0.51](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.50...v1.0.51) (2026-03-04)
|
|
6
20
|
|
|
7
21
|
### [1.0.50](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.49...v1.0.50) (2026-03-02)
|
|
@@ -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;
|
|
@@ -23978,9 +23978,15 @@ var render$h = function() {
|
|
|
23978
23978
|
return _vm.ontouchend(_vm.item);
|
|
23979
23979
|
}, "click": function($event) {
|
|
23980
23980
|
return _vm.ontouchend(_vm.item);
|
|
23981
|
-
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img"
|
|
23981
|
+
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img", style: {
|
|
23982
|
+
width: _vm.iconSize,
|
|
23983
|
+
height: _vm.iconSize
|
|
23984
|
+
} }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon) } }), _c("van-badge", { staticClass: "ind-app-item-icon-imgbadge", attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
23982
23985
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
23983
|
-
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img"
|
|
23986
|
+
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img", style: {
|
|
23987
|
+
width: _vm.iconSize,
|
|
23988
|
+
height: _vm.iconSize
|
|
23989
|
+
} }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon) } })])]), _c("div", { class: ["ind-app-item-title", _vm.$config.ellipsis ? "ellipsis" : ""] }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])]);
|
|
23984
23990
|
};
|
|
23985
23991
|
var staticRenderFns$h = [];
|
|
23986
23992
|
const __vue2_script$h = {
|
|
@@ -23990,7 +23996,12 @@ const __vue2_script$h = {
|
|
|
23990
23996
|
state: { type: Boolean, default: false },
|
|
23991
23997
|
editStatus: { type: String, default: "off" }
|
|
23992
23998
|
},
|
|
23993
|
-
computed: {
|
|
23999
|
+
computed: {
|
|
24000
|
+
iconSize: function() {
|
|
24001
|
+
var _a, _b, _c, _d;
|
|
24002
|
+
return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.iconSize) ? `${(_d = (_c = this.$config) == null ? void 0 : _c.systemDefaultConfig) == null ? void 0 : _d.iconSize}px` : "2.5rem";
|
|
24003
|
+
}
|
|
24004
|
+
},
|
|
23994
24005
|
methods: {
|
|
23995
24006
|
getImg(uri) {
|
|
23996
24007
|
const isHb2 = location.pathname.includes("scyxweb");
|
|
@@ -31985,18 +31996,18 @@ var utils$c = utils$d;
|
|
|
31985
31996
|
function encode(val) {
|
|
31986
31997
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
31987
31998
|
}
|
|
31988
|
-
var buildURL$2 = function buildURL(url,
|
|
31989
|
-
if (!
|
|
31999
|
+
var buildURL$2 = function buildURL(url, params2, paramsSerializer) {
|
|
32000
|
+
if (!params2) {
|
|
31990
32001
|
return url;
|
|
31991
32002
|
}
|
|
31992
32003
|
var serializedParams;
|
|
31993
32004
|
if (paramsSerializer) {
|
|
31994
|
-
serializedParams = paramsSerializer(
|
|
31995
|
-
} else if (utils$c.isURLSearchParams(
|
|
31996
|
-
serializedParams =
|
|
32005
|
+
serializedParams = paramsSerializer(params2);
|
|
32006
|
+
} else if (utils$c.isURLSearchParams(params2)) {
|
|
32007
|
+
serializedParams = params2.toString();
|
|
31997
32008
|
} else {
|
|
31998
32009
|
var parts = [];
|
|
31999
|
-
utils$c.forEach(
|
|
32010
|
+
utils$c.forEach(params2, function serialize(val, key) {
|
|
32000
32011
|
if (val === null || typeof val === "undefined") {
|
|
32001
32012
|
return;
|
|
32002
32013
|
}
|
|
@@ -32953,6 +32964,25 @@ axios$2.exports = axios$1;
|
|
|
32953
32964
|
axios$2.exports.default = axios$1;
|
|
32954
32965
|
var axios = axios$2.exports;
|
|
32955
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");
|
|
32956
32986
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
32957
32987
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
32958
32988
|
const Cookie = {
|
|
@@ -32996,9 +33026,9 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
|
|
|
32996
33026
|
setLocalStorage("versionInfo", sessionVersion);
|
|
32997
33027
|
let currentURL = window.location.href;
|
|
32998
33028
|
let url = new URL(currentURL);
|
|
32999
|
-
let
|
|
33000
|
-
|
|
33001
|
-
url.search =
|
|
33029
|
+
let params2 = new URLSearchParams(url.search);
|
|
33030
|
+
params2.set("v", sessionVersion.appVersion);
|
|
33031
|
+
url.search = params2.toString();
|
|
33002
33032
|
window.location.href = url.href;
|
|
33003
33033
|
}
|
|
33004
33034
|
} else {
|
|
@@ -33031,12 +33061,12 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
33031
33061
|
const LOGIN_PAGE_NAME = config.loginRouteName;
|
|
33032
33062
|
const routerOptionsBak = _.cloneDeep(router.options);
|
|
33033
33063
|
window.sessionNotValidHandler = async function() {
|
|
33034
|
-
if (typeof window.Code != "undefined" || isHb
|
|
33064
|
+
if (typeof window.Code != "undefined" || isHb) {
|
|
33035
33065
|
try {
|
|
33036
33066
|
await pluginLogin(store2);
|
|
33037
33067
|
} catch (e) {
|
|
33038
33068
|
console.log("pluginLogin e", e);
|
|
33039
|
-
if (isHb
|
|
33069
|
+
if (isHb) {
|
|
33040
33070
|
if (isQywx) {
|
|
33041
33071
|
location.href = location.protocol + "//" + location.host + "/hbwebchat/wxmain?syscode=gtptrpxebl";
|
|
33042
33072
|
} else {
|
|
@@ -33147,7 +33177,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
33147
33177
|
}
|
|
33148
33178
|
}
|
|
33149
33179
|
const code2 = getQueryVariable("code");
|
|
33150
|
-
if (typeof window.Code != "undefined" || code2 || isHb
|
|
33180
|
+
if (typeof window.Code != "undefined" || code2 || isHb) {
|
|
33151
33181
|
if (!token) {
|
|
33152
33182
|
if (await tryPluginLogin()) {
|
|
33153
33183
|
await _renderRoutes();
|
|
@@ -33206,13 +33236,16 @@ const pluginLogin = (store2) => {
|
|
|
33206
33236
|
Cookie.set("TOKEN_KEY", "", 1);
|
|
33207
33237
|
store2.commit("setUserName", "");
|
|
33208
33238
|
store2.commit("setToken", "");
|
|
33209
|
-
if (isHb
|
|
33239
|
+
if (isHb) {
|
|
33210
33240
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
33211
33241
|
axios$3.get(url).then(async (resp) => {
|
|
33212
33242
|
setToken(resp.token);
|
|
33213
33243
|
resolve(resp.token);
|
|
33214
33244
|
localStorage.setItem("v8-token", resp.token);
|
|
33215
33245
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
33246
|
+
getUserDefaultUrl().then((resp2) => {
|
|
33247
|
+
location.href = resp2.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
|
|
33248
|
+
});
|
|
33216
33249
|
}).catch((e) => {
|
|
33217
33250
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
33218
33251
|
reject(0);
|
|
@@ -33363,19 +33396,6 @@ var user = {
|
|
|
33363
33396
|
}
|
|
33364
33397
|
}
|
|
33365
33398
|
};
|
|
33366
|
-
const isHb = location.pathname.includes("scyxweb");
|
|
33367
|
-
function getIndexPreset(params) {
|
|
33368
|
-
return axios$3.get(
|
|
33369
|
-
`${location.protocol}//${location.host}${isHb ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
33370
|
-
{ params }
|
|
33371
|
-
);
|
|
33372
|
-
}
|
|
33373
|
-
function saveIndexPreset(params) {
|
|
33374
|
-
return axios$3.post(
|
|
33375
|
-
`${location.protocol}//${location.host}${isHb ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
33376
|
-
params
|
|
33377
|
-
);
|
|
33378
|
-
}
|
|
33379
33399
|
const { homeRouteName } = config;
|
|
33380
33400
|
const closePage = (state, $router, route2) => {
|
|
33381
33401
|
const nextRoute = getNextRoute(state.tagNavList, route2);
|