@indfnd/common-mobile 0.0.71 → 0.0.74
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 +16 -0
- package/dist/ind-common-mobile.es.js +36 -5
- package/dist/ind-common-mobile.umd.cjs +36 -36
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.0.74](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.73...v0.0.74) (2025-06-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 适配湖北移动端单应用模式改造 ([54c6d5f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/54c6d5f3c9f30481547f479cbe6ef9809bd04bc5))
|
|
11
|
+
|
|
12
|
+
### [0.0.73](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.72...v0.0.73) (2025-06-07)
|
|
13
|
+
|
|
14
|
+
### [0.0.72](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.71...v0.0.72) (2025-06-07)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* 修改取appId的逻辑 ([d893056](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d893056743479246b59c850fbd027140db625705))
|
|
20
|
+
|
|
5
21
|
### [0.0.71](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.70...v0.0.71) (2025-05-28)
|
|
6
22
|
|
|
7
23
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.73";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -63873,12 +63873,20 @@ const __vue2_script$7 = {
|
|
|
63873
63873
|
};
|
|
63874
63874
|
},
|
|
63875
63875
|
mounted() {
|
|
63876
|
+
var _a;
|
|
63876
63877
|
let menus = this.$store.getters.getMenuTreeList;
|
|
63877
63878
|
let permissionList = this.$store.state.app.permissionList;
|
|
63878
63879
|
let noShowPermissionIdList = permissionList.filter((item2) => item2.extendProps).map((item2) => ({
|
|
63879
63880
|
key: item2.permissionId,
|
|
63880
63881
|
parseResult: this.tryParseJson(item2.extendProps)
|
|
63881
63882
|
})).filter((item2) => item2.parseResult.success && item2.parseResult.result.hideInAppCenter).map((item2) => item2.key);
|
|
63883
|
+
if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
|
|
63884
|
+
let mobileMainApp = menus.find((item2) => {
|
|
63885
|
+
var _a2;
|
|
63886
|
+
return ((_a2 = JSON.parse(item2.extendProps)) == null ? void 0 : _a2.mainMobile) == "1";
|
|
63887
|
+
});
|
|
63888
|
+
menus = mobileMainApp.children;
|
|
63889
|
+
}
|
|
63882
63890
|
let temps = menus.filter(
|
|
63883
63891
|
(item2) => item2.meta.appId === this.$store.state.app.appInfo.appId && !noShowPermissionIdList.includes(item2.meta.permissionId)
|
|
63884
63892
|
);
|
|
@@ -68617,8 +68625,16 @@ const __vue2_script$3 = {
|
|
|
68617
68625
|
this.$store.commit("setMyAppsList", this.my_apps);
|
|
68618
68626
|
},
|
|
68619
68627
|
mounted() {
|
|
68628
|
+
var _a;
|
|
68620
68629
|
this.my_apps = this.$store.getters.getMyAppsList;
|
|
68621
68630
|
let menus = this.$store.getters.getMenuTreeList;
|
|
68631
|
+
if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
|
|
68632
|
+
let mobileMainApp = menus.find((item2) => {
|
|
68633
|
+
var _a2;
|
|
68634
|
+
return ((_a2 = JSON.parse(item2.extendProps)) == null ? void 0 : _a2.mainMobile) == "1";
|
|
68635
|
+
});
|
|
68636
|
+
menus = mobileMainApp.children;
|
|
68637
|
+
}
|
|
68622
68638
|
let temps = menus.filter((item2) => item2.name === this.name);
|
|
68623
68639
|
this.apps_menus = temps[0].children;
|
|
68624
68640
|
this.title = temps[0].meta.title;
|
|
@@ -69187,7 +69203,17 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
69187
69203
|
return;
|
|
69188
69204
|
let appInfo = getSessionStorage("appInfo");
|
|
69189
69205
|
list2.forEach((item2) => {
|
|
69190
|
-
const {
|
|
69206
|
+
const {
|
|
69207
|
+
permissionId,
|
|
69208
|
+
label: title4,
|
|
69209
|
+
appId,
|
|
69210
|
+
pid,
|
|
69211
|
+
icon,
|
|
69212
|
+
type: type2,
|
|
69213
|
+
uri,
|
|
69214
|
+
permissionValue,
|
|
69215
|
+
extendProps
|
|
69216
|
+
} = item2;
|
|
69191
69217
|
if (appId != appInfo.appId)
|
|
69192
69218
|
return;
|
|
69193
69219
|
const name2 = permissionValue;
|
|
@@ -69201,7 +69227,8 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
69201
69227
|
uri,
|
|
69202
69228
|
component: name2,
|
|
69203
69229
|
meta: { appId, permissionId, title: title4, icon, crumbs: [...crumbs], activeName: name2 },
|
|
69204
|
-
children: []
|
|
69230
|
+
children: [],
|
|
69231
|
+
extendProps
|
|
69205
69232
|
};
|
|
69206
69233
|
node.meta.crumbs.push({ icon, name: name2, title: title4, type: type2 });
|
|
69207
69234
|
if (PERMISSION_TYPE.DIRECTORY === type2) {
|
|
@@ -70964,12 +70991,16 @@ var app = {
|
|
|
70964
70991
|
appId = rlt[1];
|
|
70965
70992
|
}
|
|
70966
70993
|
}
|
|
70994
|
+
if (appList.length == 1) {
|
|
70995
|
+
let appInfo = appList[0];
|
|
70996
|
+
appId = appInfo.appId || "";
|
|
70997
|
+
}
|
|
70967
70998
|
if (!appId) {
|
|
70968
70999
|
let appInfo = appList.find((item2) => {
|
|
70969
71000
|
var _a;
|
|
70970
71001
|
return ((_a = item2.application) == null ? void 0 : _a.appBizCode) == "mobile-main";
|
|
70971
|
-
});
|
|
70972
|
-
appId = appInfo.appId || "";
|
|
71002
|
+
}) || {};
|
|
71003
|
+
appId = (appInfo == null ? void 0 : appInfo.appId) || "";
|
|
70973
71004
|
}
|
|
70974
71005
|
if (!appId) {
|
|
70975
71006
|
const appInfo = getSessionStorage("appInfo");
|