@indfnd/common-mobile 1.0.54 → 1.0.56
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 +48 -43
- package/dist/ind-common-mobile.umd.cjs +3 -3
- 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.56](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.55...v1.0.56) (2026-03-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* select组件增加enableSelectAll属性 ([492d8af](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/492d8afe9039d6d646504f2b80bfcacc66646088))
|
|
11
|
+
|
|
12
|
+
### [1.0.55](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.54...v1.0.55) (2026-03-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* select组件增加enableSelectAll属性 ([515bafe](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/515bafe4893d3a631265e764c7bfe5da2062010b))
|
|
18
|
+
|
|
5
19
|
### [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
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.
|
|
6
|
+
const version$2 = "1.0.55";
|
|
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 params = 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
|
+
params = this.renderParams(params);
|
|
4122
4122
|
}
|
|
4123
|
-
const result = await this.dataApi(
|
|
4123
|
+
const result = await this.dataApi(params);
|
|
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 params = {
|
|
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
|
+
params = this.renderParams(params);
|
|
4143
4143
|
}
|
|
4144
4144
|
if (this.methodsType == "post") {
|
|
4145
|
-
resp = await axios$3.post(this.dataUrl,
|
|
4145
|
+
resp = await axios$3.post(this.dataUrl, params);
|
|
4146
4146
|
} else {
|
|
4147
|
-
resp = await axios$3.get(this.dataUrl, { params
|
|
4147
|
+
resp = await axios$3.get(this.dataUrl, { params });
|
|
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 params = 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
|
+
params = this.renderParams(params);
|
|
4230
4230
|
}
|
|
4231
|
-
const result = await this.dataApi(
|
|
4231
|
+
const result = await this.dataApi(params);
|
|
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 params = {
|
|
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
|
+
params = this.renderParams(params);
|
|
4259
4259
|
}
|
|
4260
4260
|
if (this.methodsType == "post") {
|
|
4261
|
-
resp = await axios$3.post(this.dataUrl,
|
|
4261
|
+
resp = await axios$3.post(this.dataUrl, params);
|
|
4262
4262
|
} else {
|
|
4263
|
-
resp = await axios$3.get(this.dataUrl, { params
|
|
4263
|
+
resp = await axios$3.get(this.dataUrl, { params });
|
|
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(params) {
|
|
11488
|
+
this.stickyFixed = params.isFixed;
|
|
11489
|
+
this.$emit("scroll", params);
|
|
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 params = _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", params);
|
|
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", params);
|
|
21411
21411
|
}
|
|
21412
21412
|
});
|
|
21413
21413
|
},
|
|
@@ -23017,8 +23017,8 @@ const __vue2_script$r = {
|
|
|
23017
23017
|
this.$refs.table.gridApi.selectAllFiltered();
|
|
23018
23018
|
}
|
|
23019
23019
|
},
|
|
23020
|
-
isRowSelectable(
|
|
23021
|
-
return this.enableSelectAll || this.multiple || !this.multiple && !(
|
|
23020
|
+
isRowSelectable(params) {
|
|
23021
|
+
return this.enableSelectAll || this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
|
|
23022
23022
|
},
|
|
23023
23023
|
async initConfig() {
|
|
23024
23024
|
this.dataInited = false;
|
|
@@ -23187,7 +23187,7 @@ var render$q = function() {
|
|
|
23187
23187
|
var _c = _vm._self._c || _h;
|
|
23188
23188
|
return _c("div", { staticClass: "ind-input-select" }, [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, nativeOn: { "click": function($event) {
|
|
23189
23189
|
return _vm.setVisible.apply(null, arguments);
|
|
23190
|
-
} } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp }, on: { "update:show": function($event) {
|
|
23190
|
+
} } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp, "enableSelectAll": _vm.enableSelectAll }, on: { "update:show": function($event) {
|
|
23191
23191
|
_vm.visible = $event;
|
|
23192
23192
|
}, "input": function($event) {
|
|
23193
23193
|
return _vm.$emit("input", $event);
|
|
@@ -23215,7 +23215,8 @@ const __vue2_script$q = {
|
|
|
23215
23215
|
defaultExpandLevel: Number,
|
|
23216
23216
|
dataApi: Function,
|
|
23217
23217
|
columns: Array,
|
|
23218
|
-
rowKey: String
|
|
23218
|
+
rowKey: String,
|
|
23219
|
+
enableSelectAll: Boolean
|
|
23219
23220
|
},
|
|
23220
23221
|
data() {
|
|
23221
23222
|
return {
|
|
@@ -23315,9 +23316,14 @@ const __vue2_script$q = {
|
|
|
23315
23316
|
},
|
|
23316
23317
|
updateSelectedTitles() {
|
|
23317
23318
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
23318
|
-
let tempNodes =
|
|
23319
|
-
|
|
23320
|
-
|
|
23319
|
+
let tempNodes = [];
|
|
23320
|
+
if (this.enableSelectAll) {
|
|
23321
|
+
tempNodes = this.value;
|
|
23322
|
+
} else {
|
|
23323
|
+
tempNodes = _.filter(this.value, (d) => {
|
|
23324
|
+
return !d.children || d.children.length == 0;
|
|
23325
|
+
});
|
|
23326
|
+
}
|
|
23321
23327
|
let textField = "title";
|
|
23322
23328
|
if (((_a = this.columnsComp) == null ? void 0 : _a.length) > 1) {
|
|
23323
23329
|
textField = this.columnsComp[1].field;
|
|
@@ -31997,18 +32003,18 @@ var utils$c = utils$d;
|
|
|
31997
32003
|
function encode(val) {
|
|
31998
32004
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
31999
32005
|
}
|
|
32000
|
-
var buildURL$2 = function buildURL(url,
|
|
32001
|
-
if (!
|
|
32006
|
+
var buildURL$2 = function buildURL(url, params, paramsSerializer) {
|
|
32007
|
+
if (!params) {
|
|
32002
32008
|
return url;
|
|
32003
32009
|
}
|
|
32004
32010
|
var serializedParams;
|
|
32005
32011
|
if (paramsSerializer) {
|
|
32006
|
-
serializedParams = paramsSerializer(
|
|
32007
|
-
} else if (utils$c.isURLSearchParams(
|
|
32008
|
-
serializedParams =
|
|
32012
|
+
serializedParams = paramsSerializer(params);
|
|
32013
|
+
} else if (utils$c.isURLSearchParams(params)) {
|
|
32014
|
+
serializedParams = params.toString();
|
|
32009
32015
|
} else {
|
|
32010
32016
|
var parts = [];
|
|
32011
|
-
utils$c.forEach(
|
|
32017
|
+
utils$c.forEach(params, function serialize(val, key) {
|
|
32012
32018
|
if (val === null || typeof val === "undefined") {
|
|
32013
32019
|
return;
|
|
32014
32020
|
}
|
|
@@ -32965,22 +32971,21 @@ axios$2.exports = axios$1;
|
|
|
32965
32971
|
axios$2.exports.default = axios$1;
|
|
32966
32972
|
var axios = axios$2.exports;
|
|
32967
32973
|
const isHb$1 = location.pathname.includes("scyxweb");
|
|
32968
|
-
function getIndexPreset(
|
|
32974
|
+
function getIndexPreset(params) {
|
|
32969
32975
|
return axios$3.get(
|
|
32970
32976
|
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
32971
|
-
{ params
|
|
32977
|
+
{ params }
|
|
32972
32978
|
);
|
|
32973
32979
|
}
|
|
32974
|
-
function saveIndexPreset(
|
|
32980
|
+
function saveIndexPreset(params) {
|
|
32975
32981
|
return axios$3.post(
|
|
32976
32982
|
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
32977
|
-
|
|
32983
|
+
params
|
|
32978
32984
|
);
|
|
32979
32985
|
}
|
|
32980
32986
|
function getUserDefaultUrl() {
|
|
32981
32987
|
return axios$3.post(
|
|
32982
|
-
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl
|
|
32983
|
-
params
|
|
32988
|
+
`${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
|
|
32984
32989
|
);
|
|
32985
32990
|
}
|
|
32986
32991
|
const isHb = location.pathname.includes("scyxweb");
|
|
@@ -33027,9 +33032,9 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
|
|
|
33027
33032
|
setLocalStorage("versionInfo", sessionVersion);
|
|
33028
33033
|
let currentURL = window.location.href;
|
|
33029
33034
|
let url = new URL(currentURL);
|
|
33030
|
-
let
|
|
33031
|
-
|
|
33032
|
-
url.search =
|
|
33035
|
+
let params = new URLSearchParams(url.search);
|
|
33036
|
+
params.set("v", sessionVersion.appVersion);
|
|
33037
|
+
url.search = params.toString();
|
|
33033
33038
|
window.location.href = url.href;
|
|
33034
33039
|
}
|
|
33035
33040
|
} else {
|