@indfnd/common-mobile 0.0.93 → 0.0.95

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 CHANGED
@@ -2,6 +2,21 @@
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.95](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.94...v0.0.95) (2025-09-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修改 ([de9abe1](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/de9abe1bf0344fd46446d3b88f51b1336dbeb173))
11
+ * 修改 ([630cc0a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/630cc0ab9561564f5e9ec294fd301b5a16e4ac7c))
12
+
13
+ ### [0.0.94](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.93...v0.0.94) (2025-09-09)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * 修改 ([4bc81a7](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/4bc81a798e4bd734945ea35e096cbdad21188f1b))
19
+
5
20
  ### [0.0.93](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.92...v0.0.93) (2025-09-08)
6
21
 
7
22
 
@@ -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.92";
5
+ const version$2 = "0.0.94";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -68946,6 +68946,7 @@ const __vue2_script$2 = {
68946
68946
  name: "IndMApps",
68947
68947
  data() {
68948
68948
  return {
68949
+ isHb: false,
68949
68950
  show: false,
68950
68951
  currentEditStatus: "off",
68951
68952
  searchValue: "",
@@ -68961,7 +68962,8 @@ const __vue2_script$2 = {
68961
68962
  addToMyAppsClick: this.routeTo,
68962
68963
  offsetTop: "246px",
68963
68964
  maxApps: 8,
68964
- searchApp: []
68965
+ searchApp: [],
68966
+ tabActiveKeys: {}
68965
68967
  };
68966
68968
  },
68967
68969
  watch: {
@@ -68989,6 +68991,16 @@ const __vue2_script$2 = {
68989
68991
  var _a;
68990
68992
  this.offsetTop = ((_a = this.$refs.myapp) == null ? void 0 : _a.clientHeight) + 48 || 246;
68991
68993
  }, 200);
68994
+ },
68995
+ active(newVal, oldVal) {
68996
+ this.$set(this.tabActiveKeys, oldVal, this.activeKey);
68997
+ this.activeKey = this.tabActiveKeys[newVal] || 0;
68998
+ this.$nextTick(() => {
68999
+ const scrollContainer = Array.isArray(this.$refs.scrollContainer) ? this.$refs.scrollContainer[0] : this.$refs.scrollContainer;
69000
+ if (scrollContainer) {
69001
+ scrollContainer.scrollTop = 0;
69002
+ }
69003
+ });
68992
69004
  }
68993
69005
  },
68994
69006
  updated() {
@@ -68996,6 +69008,7 @@ const __vue2_script$2 = {
68996
69008
  },
68997
69009
  mounted() {
68998
69010
  var _a;
69011
+ this.isHb = location.pathname.includes("scyxweb");
68999
69012
  this.$nextTick(() => {
69000
69013
  console.log(this.$refs.scrollContainer);
69001
69014
  });
@@ -69015,6 +69028,10 @@ const __vue2_script$2 = {
69015
69028
  this.title = temps[0].meta.title;
69016
69029
  this.processState(this.my_apps, temps);
69017
69030
  this.appsMenusExtended(this.apps_menus);
69031
+ this.tabActiveKeys = {};
69032
+ this.apps_menus.forEach((_2, index2) => {
69033
+ this.$set(this.tabActiveKeys, index2, 0);
69034
+ });
69018
69035
  setTimeout(() => {
69019
69036
  var _a2;
69020
69037
  this.offsetTop = ((_a2 = this.$refs.myapp) == null ? void 0 : _a2.clientHeight) + 58 || 256;
@@ -69136,7 +69153,7 @@ const __vue2_script$2 = {
69136
69153
  nodes.forEach((node) => {
69137
69154
  if (!node)
69138
69155
  return;
69139
- if (node.type === 2) {
69156
+ if (node.type === 2 && this.isHb) {
69140
69157
  this.completeNode(node);
69141
69158
  }
69142
69159
  if (node.children && node.children.length > 0) {
@@ -69239,7 +69256,7 @@ var render$1 = function() {
69239
69256
  var _c = _vm._self._c || _h;
69240
69257
  return _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
69241
69258
  $event.stopPropagation();
69242
- } } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.getOssFileUrl(_vm.$config.systemDefaultConfig.globalLoading || ""), "alt": "" } }), _c("div", { staticClass: "ind-loading-wrapper-text" }, [_vm._v(" " + _vm._s(_vm.text || "\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...") + " ")])]) : _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("img", { attrs: { "src": _vm.getOssFileUrl(_vm.$config.systemDefaultConfig.localLoading || ""), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])]);
69259
+ } } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.loadingImageUrl(true), "alt": "" } }), _c("div", { staticClass: "ind-loading-wrapper-text" }, [_vm._v(" " + _vm._s(_vm.text || "\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...") + " ")])]) : _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("img", { attrs: { "src": _vm.loadingImageUrl(false), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])]);
69243
69260
  };
69244
69261
  var staticRenderFns$1 = [];
69245
69262
  const __vue2_script$1 = {
@@ -69258,11 +69275,20 @@ const __vue2_script$1 = {
69258
69275
  };
69259
69276
  },
69260
69277
  methods: {
69261
- getOssFileUrl(fileId) {
69262
- if (fileId !== "") {
69278
+ loadingImageUrl(isGlobal) {
69279
+ const configPath = isGlobal ? "systemDefaultConfig.globalLoading" : "systemDefaultConfig.localLoading";
69280
+ const fileId = this.getSafeConfigValue(configPath);
69281
+ if (fileId && fileId.trim() !== "") {
69263
69282
  return `/user-manage-server/oss/file/get/${fileId}`;
69264
69283
  }
69265
- return this.isFullScreenLoading ? this.defaultGlobal : this.defaultLocal;
69284
+ return isGlobal ? this.defaultGlobal : this.defaultLocal;
69285
+ },
69286
+ getSafeConfigValue(path2) {
69287
+ if (!this.$config)
69288
+ return void 0;
69289
+ return path2.split(".").reduce((obj, key) => {
69290
+ return obj && obj[key] !== void 0 ? obj[key] : void 0;
69291
+ }, this.$config);
69266
69292
  }
69267
69293
  }
69268
69294
  };