@indfnd/common-mobile 1.0.52 → 1.0.54

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,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.54](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.53...v1.0.54) (2026-03-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * 获取首页地址 ([3a4b62c](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/3a4b62ce8eaa7feee71ff83f78daea6c38866d75))
11
+
12
+ ### [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)
13
+
14
+
15
+ ### Features
16
+
17
+ * 移动端图标大小支持系统配置 ([c8357ec](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c8357ec811b53b33d80ae4ccd69f5554f78e10f4))
18
+
5
19
  ### [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
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.51";
6
+ const version$2 = "1.0.53";
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 params = Object.assign(
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
- params = this.renderParams(params);
4121
+ params2 = this.renderParams(params2);
4122
4122
  }
4123
- const result = await this.dataApi(params);
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 params = {
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
- params = this.renderParams(params);
4142
+ params2 = this.renderParams(params2);
4143
4143
  }
4144
4144
  if (this.methodsType == "post") {
4145
- resp = await axios$3.post(this.dataUrl, params);
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 params = Object.assign(
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
- params = this.renderParams(params);
4229
+ params2 = this.renderParams(params2);
4230
4230
  }
4231
- const result = await this.dataApi(params);
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 params = {
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
- params = this.renderParams(params);
4258
+ params2 = this.renderParams(params2);
4259
4259
  }
4260
4260
  if (this.methodsType == "post") {
4261
- resp = await axios$3.post(this.dataUrl, params);
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(params) {
11488
- this.stickyFixed = params.isFixed;
11489
- this.$emit("scroll", params);
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 params = _extends$2({}, selectedValue, {
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", params);
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", params);
21410
+ _this4.$emit("close-preview", params2);
21411
21411
  }
21412
21412
  });
21413
21413
  },
@@ -22938,7 +22938,8 @@ const __vue2_script$r = {
22938
22938
  showHeader: {
22939
22939
  type: Boolean,
22940
22940
  default: false
22941
- }
22941
+ },
22942
+ enableSelectAll: Boolean
22942
22943
  },
22943
22944
  data() {
22944
22945
  return {
@@ -23016,8 +23017,8 @@ const __vue2_script$r = {
23016
23017
  this.$refs.table.gridApi.selectAllFiltered();
23017
23018
  }
23018
23019
  },
23019
- isRowSelectable(params) {
23020
- return this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
23020
+ isRowSelectable(params2) {
23021
+ return this.enableSelectAll || this.multiple || !this.multiple && !(params2.data.children && params2.data.children.length);
23021
23022
  },
23022
23023
  async initConfig() {
23023
23024
  this.dataInited = false;
@@ -23144,7 +23145,7 @@ const __vue2_script$r = {
23144
23145
  return;
23145
23146
  }
23146
23147
  }
23147
- if (this.isTree) {
23148
+ if (this.isTree && !this.enableSelectAll) {
23148
23149
  this.selectedRows = _.filter(selectedRows, (d) => {
23149
23150
  var _a2;
23150
23151
  return !((_a2 = d == null ? void 0 : d.children) == null ? void 0 : _a2.length);
@@ -31996,18 +31997,18 @@ var utils$c = utils$d;
31996
31997
  function encode(val) {
31997
31998
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
31998
31999
  }
31999
- var buildURL$2 = function buildURL(url, params, paramsSerializer) {
32000
- if (!params) {
32000
+ var buildURL$2 = function buildURL(url, params2, paramsSerializer) {
32001
+ if (!params2) {
32001
32002
  return url;
32002
32003
  }
32003
32004
  var serializedParams;
32004
32005
  if (paramsSerializer) {
32005
- serializedParams = paramsSerializer(params);
32006
- } else if (utils$c.isURLSearchParams(params)) {
32007
- serializedParams = params.toString();
32006
+ serializedParams = paramsSerializer(params2);
32007
+ } else if (utils$c.isURLSearchParams(params2)) {
32008
+ serializedParams = params2.toString();
32008
32009
  } else {
32009
32010
  var parts = [];
32010
- utils$c.forEach(params, function serialize(val, key) {
32011
+ utils$c.forEach(params2, function serialize(val, key) {
32011
32012
  if (val === null || typeof val === "undefined") {
32012
32013
  return;
32013
32014
  }
@@ -32964,6 +32965,25 @@ axios$2.exports = axios$1;
32964
32965
  axios$2.exports.default = axios$1;
32965
32966
  var axios = axios$2.exports;
32966
32967
  const isHb$1 = location.pathname.includes("scyxweb");
32968
+ function getIndexPreset(params2) {
32969
+ return axios$3.get(
32970
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
32971
+ { params: params2 }
32972
+ );
32973
+ }
32974
+ function saveIndexPreset(params2) {
32975
+ return axios$3.post(
32976
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
32977
+ params2
32978
+ );
32979
+ }
32980
+ function getUserDefaultUrl() {
32981
+ return axios$3.post(
32982
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`,
32983
+ params
32984
+ );
32985
+ }
32986
+ const isHb = location.pathname.includes("scyxweb");
32967
32987
  const userAgent = navigator.userAgent.toLowerCase();
32968
32988
  const isQywx = /wxwork/.test(userAgent) ? true : false;
32969
32989
  const Cookie = {
@@ -33007,9 +33027,9 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
33007
33027
  setLocalStorage("versionInfo", sessionVersion);
33008
33028
  let currentURL = window.location.href;
33009
33029
  let url = new URL(currentURL);
33010
- let params = new URLSearchParams(url.search);
33011
- params.set("v", sessionVersion.appVersion);
33012
- url.search = params.toString();
33030
+ let params2 = new URLSearchParams(url.search);
33031
+ params2.set("v", sessionVersion.appVersion);
33032
+ url.search = params2.toString();
33013
33033
  window.location.href = url.href;
33014
33034
  }
33015
33035
  } else {
@@ -33042,12 +33062,12 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33042
33062
  const LOGIN_PAGE_NAME = config.loginRouteName;
33043
33063
  const routerOptionsBak = _.cloneDeep(router.options);
33044
33064
  window.sessionNotValidHandler = async function() {
33045
- if (typeof window.Code != "undefined" || isHb$1) {
33065
+ if (typeof window.Code != "undefined" || isHb) {
33046
33066
  try {
33047
33067
  await pluginLogin(store2);
33048
33068
  } catch (e) {
33049
33069
  console.log("pluginLogin e", e);
33050
- if (isHb$1) {
33070
+ if (isHb) {
33051
33071
  if (isQywx) {
33052
33072
  location.href = location.protocol + "//" + location.host + "/hbwebchat/wxmain?syscode=gtptrpxebl";
33053
33073
  } else {
@@ -33158,7 +33178,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33158
33178
  }
33159
33179
  }
33160
33180
  const code2 = getQueryVariable("code");
33161
- if (typeof window.Code != "undefined" || code2 || isHb$1) {
33181
+ if (typeof window.Code != "undefined" || code2 || isHb) {
33162
33182
  if (!token) {
33163
33183
  if (await tryPluginLogin()) {
33164
33184
  await _renderRoutes();
@@ -33217,13 +33237,16 @@ const pluginLogin = (store2) => {
33217
33237
  Cookie.set("TOKEN_KEY", "", 1);
33218
33238
  store2.commit("setUserName", "");
33219
33239
  store2.commit("setToken", "");
33220
- if (isHb$1) {
33240
+ if (isHb) {
33221
33241
  let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
33222
33242
  axios$3.get(url).then(async (resp) => {
33223
33243
  setToken(resp.token);
33224
33244
  resolve(resp.token);
33225
33245
  localStorage.setItem("v8-token", resp.token);
33226
33246
  sessionStorage.setItem("lambo-token", resp.token);
33247
+ getUserDefaultUrl().then((resp2) => {
33248
+ location.href = resp2.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
33249
+ });
33227
33250
  }).catch((e) => {
33228
33251
  console.log("\u83B7\u53D6token\u5F02\u5E38", e);
33229
33252
  reject(0);
@@ -33374,19 +33397,6 @@ var user = {
33374
33397
  }
33375
33398
  }
33376
33399
  };
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
33400
  const { homeRouteName } = config;
33391
33401
  const closePage = (state, $router, route2) => {
33392
33402
  const nextRoute = getNextRoute(state.tagNavList, route2);