@indfnd/common-mobile 1.0.50 → 1.0.52
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 +9 -0
- package/dist/ind-common-mobile.es.js +475 -336
- package/dist/ind-common-mobile.umd.cjs +8 -8
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import _ from "lodash";
|
|
|
2
2
|
import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$3, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, listItemTreeApi, getToken, MIME_TYPE, config as config$1, getSessionStorage, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, setConfig } from "@indfnd/utils";
|
|
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
|
-
const name = "@indfnd/common-mobile";
|
|
6
|
-
const version$
|
|
7
|
-
const author = "huxuetong";
|
|
5
|
+
const name$1 = "@indfnd/common-mobile";
|
|
6
|
+
const version$2 = "1.0.51";
|
|
7
|
+
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
10
10
|
};
|
|
11
|
-
const main$
|
|
11
|
+
const main$2 = "./dist/ind-common-mobile.umd.cjs";
|
|
12
12
|
const module = "./dist/ind-common-mobile.es.js";
|
|
13
13
|
const style = "./dist/styles/index.css";
|
|
14
14
|
const types = "./types/index.d.ts";
|
|
@@ -32,7 +32,7 @@ const files = [
|
|
|
32
32
|
"global.d.ts",
|
|
33
33
|
"src/styles/variables"
|
|
34
34
|
];
|
|
35
|
-
const scripts = {
|
|
35
|
+
const scripts$1 = {
|
|
36
36
|
"build:prod": "vite build",
|
|
37
37
|
"build:style": "gulp --gulpfile build/build-style.js",
|
|
38
38
|
build: "yarn build:prod && yarn build:style",
|
|
@@ -44,11 +44,11 @@ const scripts = {
|
|
|
44
44
|
"release-patch": "standard-version --release-as patch",
|
|
45
45
|
"re-publish": "yarn publish --access public"
|
|
46
46
|
};
|
|
47
|
-
const dependencies = {
|
|
47
|
+
const dependencies$1 = {
|
|
48
48
|
classnames: "^2.5.1",
|
|
49
49
|
vuedraggable: "^2.24.3"
|
|
50
50
|
};
|
|
51
|
-
const devDependencies = {
|
|
51
|
+
const devDependencies$1 = {
|
|
52
52
|
lodash: "4.17.21",
|
|
53
53
|
"@indfnd/utils": "^0.1.36",
|
|
54
54
|
eslint: "^3.19.0",
|
|
@@ -82,20 +82,20 @@ const devDependencies = {
|
|
|
82
82
|
const engines = {
|
|
83
83
|
node: ">= 16"
|
|
84
84
|
};
|
|
85
|
-
var pkg = {
|
|
86
|
-
name,
|
|
87
|
-
version: version$
|
|
88
|
-
author,
|
|
85
|
+
var pkg$1 = {
|
|
86
|
+
name: name$1,
|
|
87
|
+
version: version$2,
|
|
88
|
+
author: author$1,
|
|
89
89
|
publishConfig,
|
|
90
|
-
main: main$
|
|
90
|
+
main: main$2,
|
|
91
91
|
module,
|
|
92
92
|
style,
|
|
93
93
|
types,
|
|
94
94
|
exports,
|
|
95
95
|
files,
|
|
96
|
-
scripts,
|
|
97
|
-
dependencies,
|
|
98
|
-
devDependencies,
|
|
96
|
+
scripts: scripts$1,
|
|
97
|
+
dependencies: dependencies$1,
|
|
98
|
+
devDependencies: devDependencies$1,
|
|
99
99
|
engines
|
|
100
100
|
};
|
|
101
101
|
var render$L = function() {
|
|
@@ -3819,21 +3819,21 @@ const __vue2_script$A = {
|
|
|
3819
3819
|
}
|
|
3820
3820
|
this.loadingComp = false;
|
|
3821
3821
|
}, 2),
|
|
3822
|
-
setForm(table,
|
|
3822
|
+
setForm(table, data49) {
|
|
3823
3823
|
let field = table.dataField;
|
|
3824
3824
|
if (table.type == "form") {
|
|
3825
3825
|
if (field) {
|
|
3826
|
-
this.form[field] =
|
|
3826
|
+
this.form[field] = data49;
|
|
3827
3827
|
} else {
|
|
3828
|
-
this.form =
|
|
3828
|
+
this.form = data49;
|
|
3829
3829
|
}
|
|
3830
3830
|
} else if (table.type == "list") {
|
|
3831
3831
|
let rowKey = table.rowKey || "id";
|
|
3832
3832
|
let listTmp = _.cloneDeep(this.form[field]);
|
|
3833
3833
|
let tmpRow = _.find(listTmp, (d) => {
|
|
3834
|
-
return d[rowKey] ==
|
|
3834
|
+
return d[rowKey] == data49[rowKey];
|
|
3835
3835
|
});
|
|
3836
|
-
_.merge(tmpRow,
|
|
3836
|
+
_.merge(tmpRow, data49);
|
|
3837
3837
|
this.form[field] = listTmp;
|
|
3838
3838
|
}
|
|
3839
3839
|
},
|
|
@@ -4121,12 +4121,12 @@ const __vue2_script$z = {
|
|
|
4121
4121
|
params = this.renderParams(params);
|
|
4122
4122
|
}
|
|
4123
4123
|
const result = await this.dataApi(params);
|
|
4124
|
-
let
|
|
4124
|
+
let data49 = result.data.rows || result.data.records || [];
|
|
4125
4125
|
if (this.disablePage && result.data instanceof Array) {
|
|
4126
|
-
|
|
4126
|
+
data49 = result.data;
|
|
4127
4127
|
}
|
|
4128
|
-
this.rows = [...this.rows, ...
|
|
4129
|
-
this.allData = [...this.allData, ...
|
|
4128
|
+
this.rows = [...this.rows, ...data49];
|
|
4129
|
+
this.allData = [...this.allData, ...data49];
|
|
4130
4130
|
this.pagination.offset += this.pagination.limit;
|
|
4131
4131
|
this.currentPage++;
|
|
4132
4132
|
this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
|
|
@@ -4229,13 +4229,13 @@ const __vue2_script$z = {
|
|
|
4229
4229
|
params = this.renderParams(params);
|
|
4230
4230
|
}
|
|
4231
4231
|
const result = await this.dataApi(params);
|
|
4232
|
-
let
|
|
4232
|
+
let data49 = result.data.rows || result.data.records || [];
|
|
4233
4233
|
if (this.disablePage && result.data instanceof Array) {
|
|
4234
|
-
|
|
4234
|
+
data49 = result.data;
|
|
4235
4235
|
}
|
|
4236
|
-
this.rows =
|
|
4237
|
-
this.allData = [...
|
|
4238
|
-
this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (
|
|
4236
|
+
this.rows = data49;
|
|
4237
|
+
this.allData = [...data49];
|
|
4238
|
+
this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (data49 == null ? void 0 : data49.length) || 0 : 0);
|
|
4239
4239
|
if (!this.disablePage) {
|
|
4240
4240
|
this.pagination.total = this.total;
|
|
4241
4241
|
this.isFinished = this.pagination.limit >= this.pagination.total;
|
|
@@ -5108,14 +5108,14 @@ function emit(context2, eventName) {
|
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
|
-
function mount(Component,
|
|
5111
|
+
function mount(Component, data49) {
|
|
5112
5112
|
var instance2 = new Vue$1({
|
|
5113
5113
|
el: document.createElement("div"),
|
|
5114
5114
|
props: Component.props,
|
|
5115
5115
|
render: function render83(h) {
|
|
5116
5116
|
return h(Component, _extends$2({
|
|
5117
5117
|
props: this.$props
|
|
5118
|
-
},
|
|
5118
|
+
}, data49));
|
|
5119
5119
|
}
|
|
5120
5120
|
});
|
|
5121
5121
|
document.body.appendChild(instance2.$el);
|
|
@@ -5521,7 +5521,7 @@ function PopupMixin(options) {
|
|
|
5521
5521
|
};
|
|
5522
5522
|
},
|
|
5523
5523
|
props: popupMixinProps,
|
|
5524
|
-
data: function
|
|
5524
|
+
data: function data49() {
|
|
5525
5525
|
this.onReopenCallback = [];
|
|
5526
5526
|
return {
|
|
5527
5527
|
inited: this.value
|
|
@@ -5973,11 +5973,11 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
5973
5973
|
}
|
|
5974
5974
|
}
|
|
5975
5975
|
function Description() {
|
|
5976
|
-
var
|
|
5977
|
-
if (
|
|
5976
|
+
var description2 = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
5977
|
+
if (description2) {
|
|
5978
5978
|
return h("div", {
|
|
5979
5979
|
"class": bem$1s("description")
|
|
5980
|
-
}, [
|
|
5980
|
+
}, [description2]);
|
|
5981
5981
|
}
|
|
5982
5982
|
}
|
|
5983
5983
|
return h(Popup, _mergeJSXProps([{
|
|
@@ -6372,7 +6372,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6372
6372
|
var _domProps;
|
|
6373
6373
|
var text = _this4.getOptionText(option2);
|
|
6374
6374
|
var disabled = isOptionDisabled(option2);
|
|
6375
|
-
var
|
|
6375
|
+
var data49 = {
|
|
6376
6376
|
style: optionStyle,
|
|
6377
6377
|
attrs: {
|
|
6378
6378
|
role: "button",
|
|
@@ -6392,7 +6392,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6392
6392
|
class: "van-ellipsis",
|
|
6393
6393
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
|
|
6394
6394
|
};
|
|
6395
|
-
return h("li", _mergeJSXProps([{},
|
|
6395
|
+
return h("li", _mergeJSXProps([{}, data49]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
|
|
6396
6396
|
});
|
|
6397
6397
|
}
|
|
6398
6398
|
},
|
|
@@ -8196,7 +8196,7 @@ function ParentMixin(parent) {
|
|
|
8196
8196
|
var _ref;
|
|
8197
8197
|
return _ref = {}, _ref[parent] = this, _ref;
|
|
8198
8198
|
},
|
|
8199
|
-
data: function
|
|
8199
|
+
data: function data49() {
|
|
8200
8200
|
return {
|
|
8201
8201
|
children: []
|
|
8202
8202
|
};
|
|
@@ -8462,7 +8462,7 @@ var VanDialog = createComponent$1r({
|
|
|
8462
8462
|
var message = this.message, messageAlign = this.messageAlign;
|
|
8463
8463
|
if (message) {
|
|
8464
8464
|
var _bem, _domProps;
|
|
8465
|
-
var
|
|
8465
|
+
var data49 = {
|
|
8466
8466
|
class: bem$1i("message", (_bem = {
|
|
8467
8467
|
"has-title": hasTitle
|
|
8468
8468
|
}, _bem[messageAlign] = messageAlign, _bem)),
|
|
@@ -8472,7 +8472,7 @@ var VanDialog = createComponent$1r({
|
|
|
8472
8472
|
"class": bem$1i("content", {
|
|
8473
8473
|
isolated: !hasTitle
|
|
8474
8474
|
})
|
|
8475
|
-
}, [h("div", _mergeJSXProps([{},
|
|
8475
|
+
}, [h("div", _mergeJSXProps([{}, data49]))]);
|
|
8476
8476
|
}
|
|
8477
8477
|
}
|
|
8478
8478
|
},
|
|
@@ -9061,7 +9061,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9061
9061
|
},
|
|
9062
9062
|
render: function render12(h) {
|
|
9063
9063
|
var _this5 = this;
|
|
9064
|
-
var
|
|
9064
|
+
var data49 = this.data, errorInfo = this.errorInfo, disableArea = this.disableArea, hideBottomFields2 = this.hideBottomFields;
|
|
9065
9065
|
var onFocus5 = function onFocus6(name2) {
|
|
9066
9066
|
return function() {
|
|
9067
9067
|
return _this5.onFocus(name2);
|
|
@@ -9082,9 +9082,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9082
9082
|
"focus": onFocus5("name")
|
|
9083
9083
|
},
|
|
9084
9084
|
"model": {
|
|
9085
|
-
value:
|
|
9085
|
+
value: data49.name,
|
|
9086
9086
|
callback: function callback2($$v) {
|
|
9087
|
-
_this5.$set(
|
|
9087
|
+
_this5.$set(data49, "name", $$v);
|
|
9088
9088
|
}
|
|
9089
9089
|
}
|
|
9090
9090
|
}), h(Field, {
|
|
@@ -9100,9 +9100,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9100
9100
|
"focus": onFocus5("tel")
|
|
9101
9101
|
},
|
|
9102
9102
|
"model": {
|
|
9103
|
-
value:
|
|
9103
|
+
value: data49.tel,
|
|
9104
9104
|
callback: function callback2($$v) {
|
|
9105
|
-
_this5.$set(
|
|
9105
|
+
_this5.$set(data49, "tel", $$v);
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
9108
|
}), h(Field, {
|
|
@@ -9133,7 +9133,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9133
9133
|
}],
|
|
9134
9134
|
"attrs": {
|
|
9135
9135
|
"focused": this.detailFocused,
|
|
9136
|
-
"value":
|
|
9136
|
+
"value": data49.addressDetail,
|
|
9137
9137
|
"errorMessage": errorInfo.addressDetail,
|
|
9138
9138
|
"detailRows": this.detailRows,
|
|
9139
9139
|
"detailMaxlength": this.detailMaxlength,
|
|
@@ -9164,9 +9164,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9164
9164
|
"focus": onFocus5("postalCode")
|
|
9165
9165
|
},
|
|
9166
9166
|
"model": {
|
|
9167
|
-
value:
|
|
9167
|
+
value: data49.postalCode,
|
|
9168
9168
|
callback: function callback2($$v) {
|
|
9169
|
-
_this5.$set(
|
|
9169
|
+
_this5.$set(data49, "postalCode", $$v);
|
|
9170
9170
|
}
|
|
9171
9171
|
}
|
|
9172
9172
|
}), this.slots()]), this.genSetDefaultCell(h), h("div", {
|
|
@@ -9212,7 +9212,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9212
9212
|
}, [h(Area, {
|
|
9213
9213
|
"ref": "area",
|
|
9214
9214
|
"attrs": {
|
|
9215
|
-
"value":
|
|
9215
|
+
"value": data49.areaCode,
|
|
9216
9216
|
"loading": !this.areaListLoaded,
|
|
9217
9217
|
"areaList": this.areaList,
|
|
9218
9218
|
"columnsPlaceholder": this.areaColumnsPlaceholder
|
|
@@ -9494,16 +9494,16 @@ function AddressItem(h, props, slots2, ctx) {
|
|
|
9494
9494
|
}
|
|
9495
9495
|
}
|
|
9496
9496
|
function genContent6() {
|
|
9497
|
-
var
|
|
9497
|
+
var data49 = props.data;
|
|
9498
9498
|
var Info2 = [h("div", {
|
|
9499
9499
|
"class": bem$1b("name")
|
|
9500
|
-
}, [
|
|
9500
|
+
}, [data49.name + " " + data49.tel, genTag()]), h("div", {
|
|
9501
9501
|
"class": bem$1b("address")
|
|
9502
|
-
}, [
|
|
9502
|
+
}, [data49.address])];
|
|
9503
9503
|
if (switchable && !disabled) {
|
|
9504
9504
|
return h(Radio, {
|
|
9505
9505
|
"attrs": {
|
|
9506
|
-
"name":
|
|
9506
|
+
"name": data49.id,
|
|
9507
9507
|
"iconSize": 18
|
|
9508
9508
|
}
|
|
9509
9509
|
}, [Info2]);
|
|
@@ -12498,7 +12498,7 @@ var ContactEdit = createComponent$_({
|
|
|
12498
12498
|
render: function render30() {
|
|
12499
12499
|
var _this3 = this;
|
|
12500
12500
|
var h = arguments[0];
|
|
12501
|
-
var
|
|
12501
|
+
var data49 = this.data, errorInfo = this.errorInfo;
|
|
12502
12502
|
var onFocus5 = function onFocus6(name2) {
|
|
12503
12503
|
return function() {
|
|
12504
12504
|
return _this3.onFocus(name2);
|
|
@@ -12520,9 +12520,9 @@ var ContactEdit = createComponent$_({
|
|
|
12520
12520
|
"focus": onFocus5("name")
|
|
12521
12521
|
},
|
|
12522
12522
|
"model": {
|
|
12523
|
-
value:
|
|
12523
|
+
value: data49.name,
|
|
12524
12524
|
callback: function callback2($$v) {
|
|
12525
|
-
_this3.$set(
|
|
12525
|
+
_this3.$set(data49, "name", $$v);
|
|
12526
12526
|
}
|
|
12527
12527
|
}
|
|
12528
12528
|
}), h(Field, {
|
|
@@ -12537,9 +12537,9 @@ var ContactEdit = createComponent$_({
|
|
|
12537
12537
|
"focus": onFocus5("tel")
|
|
12538
12538
|
},
|
|
12539
12539
|
"model": {
|
|
12540
|
-
value:
|
|
12540
|
+
value: data49.tel,
|
|
12541
12541
|
callback: function callback2($$v) {
|
|
12542
|
-
_this3.$set(
|
|
12542
|
+
_this3.$set(data49, "tel", $$v);
|
|
12543
12543
|
}
|
|
12544
12544
|
}
|
|
12545
12545
|
})]), this.showSetDefault && h(Cell$1, {
|
|
@@ -12559,9 +12559,9 @@ var ContactEdit = createComponent$_({
|
|
|
12559
12559
|
}
|
|
12560
12560
|
},
|
|
12561
12561
|
"model": {
|
|
12562
|
-
value:
|
|
12562
|
+
value: data49.isDefault,
|
|
12563
12563
|
callback: function callback2($$v) {
|
|
12564
|
-
_this3.$set(
|
|
12564
|
+
_this3.$set(data49, "isDefault", $$v);
|
|
12565
12565
|
}
|
|
12566
12566
|
}
|
|
12567
12567
|
})]), h("div", {
|
|
@@ -12923,7 +12923,7 @@ var Coupon = createComponent$X({
|
|
|
12923
12923
|
render: function render32() {
|
|
12924
12924
|
var h = arguments[0];
|
|
12925
12925
|
var coupon = this.coupon, disabled = this.disabled;
|
|
12926
|
-
var
|
|
12926
|
+
var description2 = disabled && coupon.reason || coupon.description;
|
|
12927
12927
|
return h("div", {
|
|
12928
12928
|
"class": bem$Q({
|
|
12929
12929
|
disabled
|
|
@@ -12952,9 +12952,9 @@ var Coupon = createComponent$X({
|
|
|
12952
12952
|
"checkedColor": RED
|
|
12953
12953
|
},
|
|
12954
12954
|
"class": bem$Q("corner")
|
|
12955
|
-
})])]),
|
|
12955
|
+
})])]), description2 && h("p", {
|
|
12956
12956
|
"class": bem$Q("description")
|
|
12957
|
-
}, [
|
|
12957
|
+
}, [description2])]);
|
|
12958
12958
|
}
|
|
12959
12959
|
});
|
|
12960
12960
|
var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
|
|
@@ -13986,7 +13986,7 @@ var ClickOutsideMixin = function ClickOutsideMixin2(config2) {
|
|
|
13986
13986
|
default: true
|
|
13987
13987
|
}
|
|
13988
13988
|
},
|
|
13989
|
-
data: function
|
|
13989
|
+
data: function data49() {
|
|
13990
13990
|
var _this = this;
|
|
13991
13991
|
var clickOutsideHandler = function clickOutsideHandler2(event) {
|
|
13992
13992
|
if (_this.closeOnClickOutside && !_this.$el.contains(event.target)) {
|
|
@@ -14340,11 +14340,11 @@ var Empty = createComponent$O({
|
|
|
14340
14340
|
},
|
|
14341
14341
|
genDescription: function genDescription() {
|
|
14342
14342
|
var h = this.$createElement;
|
|
14343
|
-
var
|
|
14344
|
-
if (
|
|
14343
|
+
var description2 = this.slots("description") || this.description;
|
|
14344
|
+
if (description2) {
|
|
14345
14345
|
return h("p", {
|
|
14346
14346
|
"class": bem$J("description")
|
|
14347
|
-
}, [
|
|
14347
|
+
}, [description2]);
|
|
14348
14348
|
}
|
|
14349
14349
|
},
|
|
14350
14350
|
genBottom: function genBottom() {
|
|
@@ -15636,9 +15636,9 @@ var initInstance = function initInstance2() {
|
|
|
15636
15636
|
instance$1.onChange(index2);
|
|
15637
15637
|
}
|
|
15638
15638
|
});
|
|
15639
|
-
instance$1.$on("scale", function(
|
|
15639
|
+
instance$1.$on("scale", function(data49) {
|
|
15640
15640
|
if (instance$1.onScale) {
|
|
15641
|
-
instance$1.onScale(
|
|
15641
|
+
instance$1.onScale(data49);
|
|
15642
15642
|
}
|
|
15643
15643
|
});
|
|
15644
15644
|
};
|
|
@@ -17323,12 +17323,12 @@ var beforeRead = "beforeRead";
|
|
|
17323
17323
|
var read = "read";
|
|
17324
17324
|
var afterRead = "afterRead";
|
|
17325
17325
|
var beforeMain = "beforeMain";
|
|
17326
|
-
var main = "main";
|
|
17326
|
+
var main$1 = "main";
|
|
17327
17327
|
var afterMain = "afterMain";
|
|
17328
17328
|
var beforeWrite = "beforeWrite";
|
|
17329
17329
|
var write = "write";
|
|
17330
17330
|
var afterWrite = "afterWrite";
|
|
17331
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
17331
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, afterMain, beforeWrite, write, afterWrite];
|
|
17332
17332
|
function order(modifiers) {
|
|
17333
17333
|
var map = /* @__PURE__ */ new Map();
|
|
17334
17334
|
var visited = /* @__PURE__ */ new Set();
|
|
@@ -17964,16 +17964,16 @@ function distanceAndSkiddingToXY(placement, rects, offset22) {
|
|
|
17964
17964
|
function offset2(_ref2) {
|
|
17965
17965
|
var state = _ref2.state, options = _ref2.options, name2 = _ref2.name;
|
|
17966
17966
|
var _options$offset = options.offset, offset22 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
17967
|
-
var
|
|
17967
|
+
var data49 = placements.reduce(function(acc, placement) {
|
|
17968
17968
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset22);
|
|
17969
17969
|
return acc;
|
|
17970
17970
|
}, {});
|
|
17971
|
-
var _data$state$placement =
|
|
17971
|
+
var _data$state$placement = data49[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
|
|
17972
17972
|
if (state.modifiersData.popperOffsets != null) {
|
|
17973
17973
|
state.modifiersData.popperOffsets.x += x;
|
|
17974
17974
|
state.modifiersData.popperOffsets.y += y;
|
|
17975
17975
|
}
|
|
17976
|
-
state.modifiersData[name2] =
|
|
17976
|
+
state.modifiersData[name2] = data49;
|
|
17977
17977
|
}
|
|
17978
17978
|
var offset_default = {
|
|
17979
17979
|
name: "offset",
|
|
@@ -18851,17 +18851,17 @@ var ShareSheet = createComponent$p({
|
|
|
18851
18851
|
genHeader: function genHeader() {
|
|
18852
18852
|
var h = this.$createElement;
|
|
18853
18853
|
var title4 = this.slots("title") || this.title;
|
|
18854
|
-
var
|
|
18855
|
-
if (!title4 && !
|
|
18854
|
+
var description2 = this.slots("description") || this.description;
|
|
18855
|
+
if (!title4 && !description2) {
|
|
18856
18856
|
return;
|
|
18857
18857
|
}
|
|
18858
18858
|
return h("div", {
|
|
18859
18859
|
"class": bem$k("header")
|
|
18860
18860
|
}, [title4 && h("h2", {
|
|
18861
18861
|
"class": bem$k("title")
|
|
18862
|
-
}, [title4]),
|
|
18862
|
+
}, [title4]), description2 && h("span", {
|
|
18863
18863
|
"class": bem$k("description")
|
|
18864
|
-
}, [
|
|
18864
|
+
}, [description2])]);
|
|
18865
18865
|
},
|
|
18866
18866
|
genOptions: function genOptions2(options, showBorder) {
|
|
18867
18867
|
var _this = this;
|
|
@@ -20224,9 +20224,9 @@ var Uploader = createComponent$e({
|
|
|
20224
20224
|
return;
|
|
20225
20225
|
}
|
|
20226
20226
|
if (isPromise(response)) {
|
|
20227
|
-
response.then(function(
|
|
20228
|
-
if (
|
|
20229
|
-
_this.readFile(
|
|
20227
|
+
response.then(function(data49) {
|
|
20228
|
+
if (data49) {
|
|
20229
|
+
_this.readFile(data49);
|
|
20230
20230
|
} else {
|
|
20231
20231
|
_this.readFile(files2);
|
|
20232
20232
|
}
|
|
@@ -20682,11 +20682,11 @@ var SkuDateTimeField = createComponent$c({
|
|
|
20682
20682
|
this.showDatePicker = true;
|
|
20683
20683
|
},
|
|
20684
20684
|
onConfirm: function onConfirm4(val) {
|
|
20685
|
-
var
|
|
20685
|
+
var data49 = val;
|
|
20686
20686
|
if (this.type !== "time") {
|
|
20687
|
-
|
|
20687
|
+
data49 = dateToString(val, this.type);
|
|
20688
20688
|
}
|
|
20689
|
-
this.$emit("input",
|
|
20689
|
+
this.$emit("input", data49);
|
|
20690
20690
|
this.showDatePicker = false;
|
|
20691
20691
|
},
|
|
20692
20692
|
onCancel: function onCancel3() {
|
|
@@ -21411,11 +21411,11 @@ var Sku = createComponent$9({
|
|
|
21411
21411
|
}
|
|
21412
21412
|
});
|
|
21413
21413
|
},
|
|
21414
|
-
onOverLimit: function onOverLimit2(
|
|
21415
|
-
var action =
|
|
21414
|
+
onOverLimit: function onOverLimit2(data49) {
|
|
21415
|
+
var action = data49.action, limitType = data49.limitType, quota = data49.quota, quotaUsed = data49.quotaUsed;
|
|
21416
21416
|
var handleOverLimit = this.customStepperConfig.handleOverLimit;
|
|
21417
21417
|
if (handleOverLimit) {
|
|
21418
|
-
handleOverLimit(
|
|
21418
|
+
handleOverLimit(data49);
|
|
21419
21419
|
return;
|
|
21420
21420
|
}
|
|
21421
21421
|
if (action === "minus") {
|
|
@@ -21436,8 +21436,8 @@ var Sku = createComponent$9({
|
|
|
21436
21436
|
}
|
|
21437
21437
|
}
|
|
21438
21438
|
},
|
|
21439
|
-
onStepperState: function onStepperState(
|
|
21440
|
-
this.stepperError =
|
|
21439
|
+
onStepperState: function onStepperState(data49) {
|
|
21440
|
+
this.stepperError = data49.valid ? null : _extends$2({}, data49, {
|
|
21441
21441
|
action: "plus"
|
|
21442
21442
|
});
|
|
21443
21443
|
},
|
|
@@ -22993,10 +22993,10 @@ const __vue2_script$r = {
|
|
|
22993
22993
|
}
|
|
22994
22994
|
},
|
|
22995
22995
|
methods: {
|
|
22996
|
-
setLength(
|
|
22996
|
+
setLength(data49) {
|
|
22997
22997
|
var _a;
|
|
22998
22998
|
if (this.isTree) {
|
|
22999
|
-
let dataTmp = (
|
|
22999
|
+
let dataTmp = (data49 == null ? void 0 : data49.data) || data49;
|
|
23000
23000
|
let leafNodes = [];
|
|
23001
23001
|
deepEach({}, dataTmp, (d, p, idx) => {
|
|
23002
23002
|
var _a2;
|
|
@@ -23006,7 +23006,7 @@ const __vue2_script$r = {
|
|
|
23006
23006
|
});
|
|
23007
23007
|
this.dataLen = (leafNodes == null ? void 0 : leafNodes.length) || 0;
|
|
23008
23008
|
} else {
|
|
23009
|
-
this.dataLen = (
|
|
23009
|
+
this.dataLen = (data49 == null ? void 0 : data49.length) || ((_a = data49 == null ? void 0 : data49.data) == null ? void 0 : _a.length);
|
|
23010
23010
|
}
|
|
23011
23011
|
},
|
|
23012
23012
|
toggleCheckAll() {
|
|
@@ -23309,8 +23309,8 @@ const __vue2_script$q = {
|
|
|
23309
23309
|
clearSelected() {
|
|
23310
23310
|
this.selectedTitles = "";
|
|
23311
23311
|
},
|
|
23312
|
-
updateSearchNum(
|
|
23313
|
-
this.searchNum =
|
|
23312
|
+
updateSearchNum(data49) {
|
|
23313
|
+
this.searchNum = data49;
|
|
23314
23314
|
},
|
|
23315
23315
|
updateSelectedTitles() {
|
|
23316
23316
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -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");
|
|
@@ -24137,7 +24148,7 @@ function _iterableToArray(iter) {
|
|
|
24137
24148
|
function _nonIterableSpread() {
|
|
24138
24149
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24139
24150
|
}
|
|
24140
|
-
var version = "1.10.2";
|
|
24151
|
+
var version$1 = "1.10.2";
|
|
24141
24152
|
function userAgent$1(pattern) {
|
|
24142
24153
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24143
24154
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24585,14 +24596,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24585
24596
|
return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
|
24586
24597
|
}
|
|
24587
24598
|
var plugins$1 = [];
|
|
24588
|
-
var defaults$
|
|
24599
|
+
var defaults$4 = {
|
|
24589
24600
|
initializeByDefault: true
|
|
24590
24601
|
};
|
|
24591
24602
|
var PluginManager = {
|
|
24592
24603
|
mount: function mount2(plugin) {
|
|
24593
|
-
for (var option2 in defaults$
|
|
24594
|
-
if (defaults$
|
|
24595
|
-
plugin[option2] = defaults$
|
|
24604
|
+
for (var option2 in defaults$4) {
|
|
24605
|
+
if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24606
|
+
plugin[option2] = defaults$4[option2];
|
|
24596
24607
|
}
|
|
24597
24608
|
}
|
|
24598
24609
|
plugins$1.push(plugin);
|
|
@@ -24697,7 +24708,7 @@ function dispatchEvent(_ref) {
|
|
|
24697
24708
|
}
|
|
24698
24709
|
}
|
|
24699
24710
|
var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
24700
|
-
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt,
|
|
24711
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data49 = _objectWithoutProperties(_ref, ["evt"]);
|
|
24701
24712
|
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({
|
|
24702
24713
|
dragEl,
|
|
24703
24714
|
parentEl,
|
|
@@ -24730,7 +24741,7 @@ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
|
24730
24741
|
originalEvent
|
|
24731
24742
|
});
|
|
24732
24743
|
}
|
|
24733
|
-
},
|
|
24744
|
+
}, data49));
|
|
24734
24745
|
};
|
|
24735
24746
|
function _dispatchEvent(info) {
|
|
24736
24747
|
dispatchEvent(_objectSpread({
|
|
@@ -25914,7 +25925,7 @@ Sortable.mount = function() {
|
|
|
25914
25925
|
Sortable.create = function(el, options) {
|
|
25915
25926
|
return new Sortable(el, options);
|
|
25916
25927
|
};
|
|
25917
|
-
Sortable.version = version;
|
|
25928
|
+
Sortable.version = version$1;
|
|
25918
25929
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
25919
25930
|
function AutoScrollPlugin() {
|
|
25920
25931
|
function AutoScroll() {
|
|
@@ -26232,15 +26243,15 @@ function MultiDragPlugin() {
|
|
|
26232
26243
|
selectedClass: "sortable-selected",
|
|
26233
26244
|
multiDragKey: null,
|
|
26234
26245
|
setData: function setData(dataTransfer, dragEl2) {
|
|
26235
|
-
var
|
|
26246
|
+
var data49 = "";
|
|
26236
26247
|
if (multiDragElements.length && multiDragSortable === sortable) {
|
|
26237
26248
|
multiDragElements.forEach(function(multiDragElement, i) {
|
|
26238
|
-
|
|
26249
|
+
data49 += (!i ? "" : ", ") + multiDragElement.textContent;
|
|
26239
26250
|
});
|
|
26240
26251
|
} else {
|
|
26241
|
-
|
|
26252
|
+
data49 = dragEl2.textContent;
|
|
26242
26253
|
}
|
|
26243
|
-
dataTransfer.setData("Text",
|
|
26254
|
+
dataTransfer.setData("Text", data49);
|
|
26244
26255
|
}
|
|
26245
26256
|
};
|
|
26246
26257
|
}
|
|
@@ -26701,10 +26712,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26701
26712
|
Sortable,
|
|
26702
26713
|
Swap: SwapPlugin
|
|
26703
26714
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26704
|
-
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26715
|
+
var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26705
26716
|
(function(module2, exports2) {
|
|
26706
26717
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26707
|
-
module2.exports = factory(require$$0);
|
|
26718
|
+
module2.exports = factory(require$$0$1);
|
|
26708
26719
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26709
26720
|
return function(modules) {
|
|
26710
26721
|
var installedModules = {};
|
|
@@ -27079,7 +27090,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27079
27090
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27080
27091
|
return createDict();
|
|
27081
27092
|
};
|
|
27082
|
-
module3.exports = Object.create || function
|
|
27093
|
+
module3.exports = Object.create || function create2(O, Properties) {
|
|
27083
27094
|
var result;
|
|
27084
27095
|
if (O !== null) {
|
|
27085
27096
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27146,7 +27157,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27146
27157
|
};
|
|
27147
27158
|
},
|
|
27148
27159
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27149
|
-
var
|
|
27160
|
+
var create2 = __webpack_require__("2aeb");
|
|
27150
27161
|
var descriptor = __webpack_require__("4630");
|
|
27151
27162
|
var setToStringTag = __webpack_require__("7f20");
|
|
27152
27163
|
var IteratorPrototype = {};
|
|
@@ -27154,7 +27165,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27154
27165
|
return this;
|
|
27155
27166
|
});
|
|
27156
27167
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27157
|
-
Constructor.prototype =
|
|
27168
|
+
Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27158
27169
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27159
27170
|
};
|
|
27160
27171
|
},
|
|
@@ -28213,7 +28224,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28213
28224
|
name: "draggable",
|
|
28214
28225
|
inheritAttrs: false,
|
|
28215
28226
|
props,
|
|
28216
|
-
data: function
|
|
28227
|
+
data: function data49() {
|
|
28217
28228
|
return {
|
|
28218
28229
|
transitionMode: false,
|
|
28219
28230
|
noneFunctionalComponentMode: false
|
|
@@ -29782,7 +29793,7 @@ var render$a = function() {
|
|
|
29782
29793
|
}), 0)]), _c("tabbar")], 1)], 1);
|
|
29783
29794
|
};
|
|
29784
29795
|
var staticRenderFns$a = [];
|
|
29785
|
-
function simplifyMenuTree
|
|
29796
|
+
function simplifyMenuTree(menuData) {
|
|
29786
29797
|
return menuData.map((root2) => {
|
|
29787
29798
|
const leafNodes = [];
|
|
29788
29799
|
function findLeaves(node) {
|
|
@@ -29851,7 +29862,7 @@ const __vue2_script$a = {
|
|
|
29851
29862
|
}, {});
|
|
29852
29863
|
this.allApps_menus = { \u5168\u90E8: temps[0].children, ...allApps_menus };
|
|
29853
29864
|
this.apps_menus = this.allApps_menus["\u5168\u90E8"];
|
|
29854
|
-
this.apps_menus = simplifyMenuTree
|
|
29865
|
+
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
29855
29866
|
this.title = temps[0].meta.title;
|
|
29856
29867
|
} else if (retryCount >= MAX_RETRY2) {
|
|
29857
29868
|
clearInterval(interval);
|
|
@@ -29869,9 +29880,9 @@ const __vue2_script$a = {
|
|
|
29869
29880
|
this.active = index2;
|
|
29870
29881
|
this.apps_menus = this.allApps_menus[tab];
|
|
29871
29882
|
if (tab !== "\u5168\u90E8") {
|
|
29872
|
-
this.apps_menus = simplifyMenuTree
|
|
29883
|
+
this.apps_menus = simplifyMenuTree(((_a = this.apps_menus) == null ? void 0 : _a.children) || []);
|
|
29873
29884
|
} else {
|
|
29874
|
-
this.apps_menus = simplifyMenuTree
|
|
29885
|
+
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
29875
29886
|
}
|
|
29876
29887
|
this.$emit("tab-click", index2);
|
|
29877
29888
|
this.scrollTabIntoView(index2);
|
|
@@ -30139,38 +30150,28 @@ var render$8 = function() {
|
|
|
30139
30150
|
return _vm.handleTabClick(tab, idx);
|
|
30140
30151
|
} } }, [_c("div", { staticClass: "custom-new-tab-item-top", class: { active: _vm.active === idx } }, [_vm._v(" " + _vm._s(tab) + " ")]), _c("div", { staticClass: "custom-new-tab-item-bottom", class: { active: _vm.active === idx } })]);
|
|
30141
30152
|
}), 0)]), _c("div", { staticClass: "ind-m-new-app-container", staticStyle: { "padding": "0px 0px 150px 0px" }, style: { height: _vm.disMyapp ? "calc(100vh - 410px)" : "calc(100vh - 270px)" } }, _vm._l(_vm.apps_menus, function(firstLevel, index2) {
|
|
30142
|
-
return _c("IndMCard", { key: index2, attrs: { "padding": "0px 10px 10px 10px", "title": firstLevel.meta.title, "icon": "/public/imgs/resource/card-icon.png" } }, [_c("div", { style: { display: "flex", flexWrap: "wrap" }, attrs: { "column-num": 4, "border": false } }, _vm._l(firstLevel.children, function(item2) {
|
|
30143
|
-
return _c("div", { key: item2.meta.permissionId, style: {
|
|
30153
|
+
return _c("IndMCard", { key: index2, attrs: { "padding": "0px 10px 10px 10px", "title": firstLevel.meta.title, "icon": "/public/imgs/resource/card-icon.png" } }, [_c("div", { style: { display: "flex", flexWrap: "wrap" }, attrs: { "column-num": 4, "border": false } }, [_vm._l(firstLevel.children, function(item2) {
|
|
30154
|
+
return [_c("div", { key: item2.meta.permissionId, style: {
|
|
30144
30155
|
width: "calc(100% / " + _vm.rowAppCount + ")",
|
|
30145
30156
|
height: "100%",
|
|
30146
30157
|
display: "flex",
|
|
30147
30158
|
alignItems: "center",
|
|
30148
30159
|
justifyContent: "center"
|
|
30149
|
-
} }, [_c("appsItem", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
30150
|
-
}),
|
|
30160
|
+
} }, [_c("appsItem", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1)];
|
|
30161
|
+
})], 2), _vm._l(firstLevel.foldChildren, function(item2) {
|
|
30162
|
+
return [_c("div", { key: item2.meta.permissionId, staticStyle: { "padding-left": "16px", "margin-top": "4px", "font-size": "14px", "font-weight": "bold", "color": "#333" } }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")]), _c("div", { key: item2.meta.permissionId, style: { display: "flex", flexWrap: "wrap" }, attrs: { "column-num": 4, "border": false } }, _vm._l(item2.children, function(subItem) {
|
|
30163
|
+
return _c("div", { key: subItem.meta.permissionId, style: {
|
|
30164
|
+
width: "calc(100% / " + _vm.rowAppCount + ")",
|
|
30165
|
+
height: "100%",
|
|
30166
|
+
display: "flex",
|
|
30167
|
+
alignItems: "center",
|
|
30168
|
+
justifyContent: "center"
|
|
30169
|
+
} }, [_c("appsItem", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
30170
|
+
}), 0)];
|
|
30171
|
+
})], 2);
|
|
30151
30172
|
}), 1)]), _c("tabbar")], 1)], 1);
|
|
30152
30173
|
};
|
|
30153
30174
|
var staticRenderFns$8 = [];
|
|
30154
|
-
function simplifyMenuTree(menuData) {
|
|
30155
|
-
return menuData.map((root2) => {
|
|
30156
|
-
const leafNodes = [];
|
|
30157
|
-
function findLeaves(node) {
|
|
30158
|
-
if (node.children && node.children.length > 0) {
|
|
30159
|
-
node.children.forEach(findLeaves);
|
|
30160
|
-
} else if (node.path || node.uri) {
|
|
30161
|
-
leafNodes.push(node);
|
|
30162
|
-
}
|
|
30163
|
-
}
|
|
30164
|
-
findLeaves(root2);
|
|
30165
|
-
return {
|
|
30166
|
-
...root2,
|
|
30167
|
-
children: leafNodes.map((leaf) => ({
|
|
30168
|
-
...leaf,
|
|
30169
|
-
children: void 0
|
|
30170
|
-
}))
|
|
30171
|
-
};
|
|
30172
|
-
});
|
|
30173
|
-
}
|
|
30174
30175
|
const __vue2_script$8 = {
|
|
30175
30176
|
components: { tabbar, appsItem, myappNew },
|
|
30176
30177
|
name: "IndMApps",
|
|
@@ -30187,26 +30188,41 @@ const __vue2_script$8 = {
|
|
|
30187
30188
|
searchApp: [],
|
|
30188
30189
|
myAppList: [],
|
|
30189
30190
|
allApps_menus: [],
|
|
30190
|
-
titleList: []
|
|
30191
|
+
titleList: [],
|
|
30192
|
+
level: "2",
|
|
30193
|
+
curTabl: "\u5168\u90E8"
|
|
30191
30194
|
};
|
|
30192
30195
|
},
|
|
30193
30196
|
mounted() {
|
|
30197
|
+
var _a;
|
|
30194
30198
|
this.myAppList = JSON.parse(sessionStorage.getItem("myAppsList")) || [];
|
|
30195
30199
|
this.isHb = location.pathname.includes("scyxweb");
|
|
30200
|
+
const storedValue = localStorage.getItem("systemDefaultConfig");
|
|
30201
|
+
if (!storedValue || typeof storedValue !== "string") {
|
|
30202
|
+
return "{}";
|
|
30203
|
+
}
|
|
30204
|
+
let systemDefaultConfig;
|
|
30205
|
+
try {
|
|
30206
|
+
systemDefaultConfig = JSON.parse(storedValue);
|
|
30207
|
+
} catch (e) {
|
|
30208
|
+
console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
|
|
30209
|
+
return "{}";
|
|
30210
|
+
}
|
|
30211
|
+
this.level = ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.theLevel) || 3;
|
|
30196
30212
|
let retryCount = 0;
|
|
30197
30213
|
const MAX_RETRY2 = 50;
|
|
30198
30214
|
let interval = setInterval(() => {
|
|
30199
|
-
var
|
|
30215
|
+
var _a2;
|
|
30200
30216
|
retryCount++;
|
|
30201
30217
|
let menus = this.$store.getters.getMenuTreeList || [];
|
|
30202
30218
|
if (menus && menus.length > 0) {
|
|
30203
30219
|
clearInterval(interval);
|
|
30204
30220
|
console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
|
|
30205
|
-
if (((
|
|
30221
|
+
if (((_a2 = this.$config) == null ? void 0 : _a2.mainType) == "singleApp") {
|
|
30206
30222
|
let mobileMainApp = menus.find(
|
|
30207
30223
|
(item2) => {
|
|
30208
|
-
var
|
|
30209
|
-
return item2.extendProps && ((
|
|
30224
|
+
var _a3;
|
|
30225
|
+
return item2.extendProps && ((_a3 = JSON.parse(item2.extendProps)) == null ? void 0 : _a3.mainMobile) == "1";
|
|
30210
30226
|
}
|
|
30211
30227
|
);
|
|
30212
30228
|
menus = mobileMainApp.children;
|
|
@@ -30220,7 +30236,7 @@ const __vue2_script$8 = {
|
|
|
30220
30236
|
}, {});
|
|
30221
30237
|
this.allApps_menus = { \u5168\u90E8: temps[0].children, ...allApps_menus };
|
|
30222
30238
|
this.apps_menus = this.allApps_menus["\u5168\u90E8"];
|
|
30223
|
-
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
30239
|
+
this.apps_menus = this.level == 2 ? this.simplifyMenuTree(this.apps_menus) : this.simplifyMenuTree2N(this.apps_menus);
|
|
30224
30240
|
this.title = temps[0].meta.title;
|
|
30225
30241
|
} else if (retryCount >= MAX_RETRY2) {
|
|
30226
30242
|
clearInterval(interval);
|
|
@@ -30231,16 +30247,93 @@ const __vue2_script$8 = {
|
|
|
30231
30247
|
}, 100);
|
|
30232
30248
|
},
|
|
30233
30249
|
methods: {
|
|
30250
|
+
simplifyMenuTree(menuData) {
|
|
30251
|
+
if (!menuData) {
|
|
30252
|
+
return [];
|
|
30253
|
+
}
|
|
30254
|
+
menuData = _.cloneDeep(menuData);
|
|
30255
|
+
return menuData.map((root2) => {
|
|
30256
|
+
const leafNodes = [];
|
|
30257
|
+
function findLeaves(node) {
|
|
30258
|
+
if (node.children && node.children.length > 0) {
|
|
30259
|
+
node.children.forEach(findLeaves);
|
|
30260
|
+
} else if (node.path || node.uri) {
|
|
30261
|
+
leafNodes.push(node);
|
|
30262
|
+
}
|
|
30263
|
+
}
|
|
30264
|
+
findLeaves(root2);
|
|
30265
|
+
console.log({
|
|
30266
|
+
...root2,
|
|
30267
|
+
children: leafNodes.map((leaf) => ({
|
|
30268
|
+
...leaf,
|
|
30269
|
+
children: void 0
|
|
30270
|
+
}))
|
|
30271
|
+
});
|
|
30272
|
+
return {
|
|
30273
|
+
...root2,
|
|
30274
|
+
children: leafNodes.map((leaf) => ({
|
|
30275
|
+
...leaf,
|
|
30276
|
+
children: void 0
|
|
30277
|
+
}))
|
|
30278
|
+
};
|
|
30279
|
+
});
|
|
30280
|
+
},
|
|
30281
|
+
simplifyMenuTree2N(menuData) {
|
|
30282
|
+
if (!menuData) {
|
|
30283
|
+
return [];
|
|
30284
|
+
}
|
|
30285
|
+
menuData = _.cloneDeep(menuData);
|
|
30286
|
+
return menuData.map((root2) => {
|
|
30287
|
+
var _a;
|
|
30288
|
+
const leafNodes = [];
|
|
30289
|
+
const foldNodes = [];
|
|
30290
|
+
function findLeaves(node) {
|
|
30291
|
+
var _a2;
|
|
30292
|
+
if (((_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2.length) > 0) {
|
|
30293
|
+
foldNodes.push(node);
|
|
30294
|
+
} else if (node.path || node.uri) {
|
|
30295
|
+
leafNodes.push(node);
|
|
30296
|
+
}
|
|
30297
|
+
}
|
|
30298
|
+
function findLeavesDeep(node, childrenTmp) {
|
|
30299
|
+
var _a2, _b;
|
|
30300
|
+
if (((_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2.length) > 0) {
|
|
30301
|
+
(_b = node.children) == null ? void 0 : _b.forEach((d) => findLeavesDeep(d, childrenTmp));
|
|
30302
|
+
} else if (node.path || node.uri) {
|
|
30303
|
+
childrenTmp.push(node);
|
|
30304
|
+
}
|
|
30305
|
+
}
|
|
30306
|
+
if (this.curTabl == "\u5168\u90E8") {
|
|
30307
|
+
(_a = root2 == null ? void 0 : root2.children) == null ? void 0 : _a.forEach(findLeaves);
|
|
30308
|
+
} else {
|
|
30309
|
+
findLeaves(root2);
|
|
30310
|
+
}
|
|
30311
|
+
leafNodes.forEach((item2) => {
|
|
30312
|
+
item2.children = null;
|
|
30313
|
+
});
|
|
30314
|
+
foldNodes.forEach((item2) => {
|
|
30315
|
+
let childrenTmp = [];
|
|
30316
|
+
findLeavesDeep(item2, childrenTmp);
|
|
30317
|
+
item2.children = childrenTmp;
|
|
30318
|
+
});
|
|
30319
|
+
return {
|
|
30320
|
+
...root2,
|
|
30321
|
+
children: leafNodes,
|
|
30322
|
+
foldChildren: foldNodes
|
|
30323
|
+
};
|
|
30324
|
+
});
|
|
30325
|
+
},
|
|
30234
30326
|
handleTabClick(tab, index2) {
|
|
30235
30327
|
var _a;
|
|
30236
30328
|
if (this.active === index2)
|
|
30237
30329
|
return;
|
|
30238
30330
|
this.active = index2;
|
|
30239
30331
|
this.apps_menus = this.allApps_menus[tab];
|
|
30332
|
+
this.curTabl = tab;
|
|
30240
30333
|
if (tab !== "\u5168\u90E8") {
|
|
30241
|
-
this.apps_menus = simplifyMenuTree((
|
|
30334
|
+
this.apps_menus = this.simplifyMenuTree((_a = this.apps_menus) == null ? void 0 : _a.children);
|
|
30242
30335
|
} else {
|
|
30243
|
-
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
30336
|
+
this.apps_menus = this.level == 2 ? this.simplifyMenuTree(this.apps_menus) : this.simplifyMenuTree2N(this.apps_menus);
|
|
30244
30337
|
}
|
|
30245
30338
|
this.$emit("tab-click", index2);
|
|
30246
30339
|
this.scrollTabIntoView(index2);
|
|
@@ -30438,9 +30531,9 @@ function getMaxDepth(obj, currentDepth = 1) {
|
|
|
30438
30531
|
}
|
|
30439
30532
|
return maxDepth;
|
|
30440
30533
|
}
|
|
30441
|
-
function calculateMaxDepth(
|
|
30534
|
+
function calculateMaxDepth(data49) {
|
|
30442
30535
|
let maxDepth = 0;
|
|
30443
|
-
for (const item2 of
|
|
30536
|
+
for (const item2 of data49) {
|
|
30444
30537
|
const depth = getMaxDepth(item2);
|
|
30445
30538
|
if (depth > maxDepth) {
|
|
30446
30539
|
maxDepth = depth;
|
|
@@ -30519,7 +30612,7 @@ const __vue2_script$6 = {
|
|
|
30519
30612
|
}
|
|
30520
30613
|
this.level = ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.theLevel) || 3;
|
|
30521
30614
|
this.depth = this.depth || 4;
|
|
30522
|
-
if (this.level == 2 && this.depth >= 2) {
|
|
30615
|
+
if ((this.level == 2 || this.level == "2N") && this.depth >= 2) {
|
|
30523
30616
|
return "leveltwo";
|
|
30524
30617
|
} else if (this.level == 3) {
|
|
30525
30618
|
if (this.depth <= 2) {
|
|
@@ -31997,8 +32090,7 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
|
|
|
31997
32090
|
columnNumber: this.columnNumber,
|
|
31998
32091
|
stack: this.stack,
|
|
31999
32092
|
config: this.config,
|
|
32000
|
-
code: this.code
|
|
32001
|
-
status: this.response && this.response.status ? this.response.status : null
|
|
32093
|
+
code: this.code
|
|
32002
32094
|
};
|
|
32003
32095
|
};
|
|
32004
32096
|
return error;
|
|
@@ -32154,14 +32246,6 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
32154
32246
|
return true;
|
|
32155
32247
|
};
|
|
32156
32248
|
}();
|
|
32157
|
-
function Cancel$3(message) {
|
|
32158
|
-
this.message = message;
|
|
32159
|
-
}
|
|
32160
|
-
Cancel$3.prototype.toString = function toString2() {
|
|
32161
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32162
|
-
};
|
|
32163
|
-
Cancel$3.prototype.__CANCEL__ = true;
|
|
32164
|
-
var Cancel_1 = Cancel$3;
|
|
32165
32249
|
var utils$6 = utils$d;
|
|
32166
32250
|
var settle2 = settle$1;
|
|
32167
32251
|
var cookies = cookies$1;
|
|
@@ -32170,22 +32254,11 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
32170
32254
|
var parseHeaders2 = parseHeaders$1;
|
|
32171
32255
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32172
32256
|
var createError2 = createError$2;
|
|
32173
|
-
var defaults$4 = defaults_1;
|
|
32174
|
-
var Cancel$2 = Cancel_1;
|
|
32175
32257
|
var xhr = function xhrAdapter(config2) {
|
|
32176
32258
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32177
32259
|
var requestData = config2.data;
|
|
32178
32260
|
var requestHeaders = config2.headers;
|
|
32179
32261
|
var responseType = config2.responseType;
|
|
32180
|
-
var onCanceled;
|
|
32181
|
-
function done() {
|
|
32182
|
-
if (config2.cancelToken) {
|
|
32183
|
-
config2.cancelToken.unsubscribe(onCanceled);
|
|
32184
|
-
}
|
|
32185
|
-
if (config2.signal) {
|
|
32186
|
-
config2.signal.removeEventListener("abort", onCanceled);
|
|
32187
|
-
}
|
|
32188
|
-
}
|
|
32189
32262
|
if (utils$6.isFormData(requestData)) {
|
|
32190
32263
|
delete requestHeaders["Content-Type"];
|
|
32191
32264
|
}
|
|
@@ -32212,13 +32285,7 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32212
32285
|
config: config2,
|
|
32213
32286
|
request: request2
|
|
32214
32287
|
};
|
|
32215
|
-
settle2(
|
|
32216
|
-
resolve(value17);
|
|
32217
|
-
done();
|
|
32218
|
-
}, function _reject(err) {
|
|
32219
|
-
reject(err);
|
|
32220
|
-
done();
|
|
32221
|
-
}, response);
|
|
32288
|
+
settle2(resolve, reject, response);
|
|
32222
32289
|
request2 = null;
|
|
32223
32290
|
}
|
|
32224
32291
|
if ("onloadend" in request2) {
|
|
@@ -32246,15 +32313,14 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32246
32313
|
request2 = null;
|
|
32247
32314
|
};
|
|
32248
32315
|
request2.ontimeout = function handleTimeout() {
|
|
32249
|
-
var timeoutErrorMessage =
|
|
32250
|
-
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
32316
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32251
32317
|
if (config2.timeoutErrorMessage) {
|
|
32252
32318
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32253
32319
|
}
|
|
32254
32320
|
reject(createError2(
|
|
32255
32321
|
timeoutErrorMessage,
|
|
32256
32322
|
config2,
|
|
32257
|
-
|
|
32323
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32258
32324
|
request2
|
|
32259
32325
|
));
|
|
32260
32326
|
request2 = null;
|
|
@@ -32286,19 +32352,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32286
32352
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32287
32353
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
32288
32354
|
}
|
|
32289
|
-
if (config2.cancelToken
|
|
32290
|
-
onCanceled
|
|
32355
|
+
if (config2.cancelToken) {
|
|
32356
|
+
config2.cancelToken.promise.then(function onCanceled(cancel2) {
|
|
32291
32357
|
if (!request2) {
|
|
32292
32358
|
return;
|
|
32293
32359
|
}
|
|
32294
|
-
reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
|
|
32295
32360
|
request2.abort();
|
|
32361
|
+
reject(cancel2);
|
|
32296
32362
|
request2 = null;
|
|
32297
|
-
};
|
|
32298
|
-
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
32299
|
-
if (config2.signal) {
|
|
32300
|
-
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
32301
|
-
}
|
|
32363
|
+
});
|
|
32302
32364
|
}
|
|
32303
32365
|
if (!requestData) {
|
|
32304
32366
|
requestData = null;
|
|
@@ -32346,33 +32408,33 @@ var defaults$3 = {
|
|
|
32346
32408
|
clarifyTimeoutError: false
|
|
32347
32409
|
},
|
|
32348
32410
|
adapter: getDefaultAdapter(),
|
|
32349
|
-
transformRequest: [function transformRequest(
|
|
32411
|
+
transformRequest: [function transformRequest(data49, headers) {
|
|
32350
32412
|
normalizeHeaderName2(headers, "Accept");
|
|
32351
32413
|
normalizeHeaderName2(headers, "Content-Type");
|
|
32352
|
-
if (utils$5.isFormData(
|
|
32353
|
-
return
|
|
32414
|
+
if (utils$5.isFormData(data49) || utils$5.isArrayBuffer(data49) || utils$5.isBuffer(data49) || utils$5.isStream(data49) || utils$5.isFile(data49) || utils$5.isBlob(data49)) {
|
|
32415
|
+
return data49;
|
|
32354
32416
|
}
|
|
32355
|
-
if (utils$5.isArrayBufferView(
|
|
32356
|
-
return
|
|
32417
|
+
if (utils$5.isArrayBufferView(data49)) {
|
|
32418
|
+
return data49.buffer;
|
|
32357
32419
|
}
|
|
32358
|
-
if (utils$5.isURLSearchParams(
|
|
32420
|
+
if (utils$5.isURLSearchParams(data49)) {
|
|
32359
32421
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32360
|
-
return
|
|
32422
|
+
return data49.toString();
|
|
32361
32423
|
}
|
|
32362
|
-
if (utils$5.isObject(
|
|
32424
|
+
if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
|
|
32363
32425
|
setContentTypeIfUnset(headers, "application/json");
|
|
32364
|
-
return stringifySafely(
|
|
32426
|
+
return stringifySafely(data49);
|
|
32365
32427
|
}
|
|
32366
|
-
return
|
|
32428
|
+
return data49;
|
|
32367
32429
|
}],
|
|
32368
|
-
transformResponse: [function transformResponse(
|
|
32369
|
-
var transitional2 = this.transitional
|
|
32430
|
+
transformResponse: [function transformResponse(data49) {
|
|
32431
|
+
var transitional2 = this.transitional;
|
|
32370
32432
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32371
32433
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32372
32434
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32373
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
32435
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32374
32436
|
try {
|
|
32375
|
-
return JSON.parse(
|
|
32437
|
+
return JSON.parse(data49);
|
|
32376
32438
|
} catch (e) {
|
|
32377
32439
|
if (strictJSONParsing) {
|
|
32378
32440
|
if (e.name === "SyntaxError") {
|
|
@@ -32382,7 +32444,7 @@ var defaults$3 = {
|
|
|
32382
32444
|
}
|
|
32383
32445
|
}
|
|
32384
32446
|
}
|
|
32385
|
-
return
|
|
32447
|
+
return data49;
|
|
32386
32448
|
}],
|
|
32387
32449
|
timeout: 0,
|
|
32388
32450
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -32391,11 +32453,11 @@ var defaults$3 = {
|
|
|
32391
32453
|
maxBodyLength: -1,
|
|
32392
32454
|
validateStatus: function validateStatus(status2) {
|
|
32393
32455
|
return status2 >= 200 && status2 < 300;
|
|
32394
|
-
}
|
|
32395
|
-
|
|
32396
|
-
|
|
32397
|
-
|
|
32398
|
-
|
|
32456
|
+
}
|
|
32457
|
+
};
|
|
32458
|
+
defaults$3.headers = {
|
|
32459
|
+
common: {
|
|
32460
|
+
"Accept": "application/json, text/plain, */*"
|
|
32399
32461
|
}
|
|
32400
32462
|
};
|
|
32401
32463
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -32407,12 +32469,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
32407
32469
|
var defaults_1 = defaults$3;
|
|
32408
32470
|
var utils$4 = utils$d;
|
|
32409
32471
|
var defaults$2 = defaults_1;
|
|
32410
|
-
var transformData$1 = function transformData(
|
|
32472
|
+
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32411
32473
|
var context2 = this || defaults$2;
|
|
32412
32474
|
utils$4.forEach(fns, function transform(fn2) {
|
|
32413
|
-
|
|
32475
|
+
data49 = fn2.call(context2, data49, headers);
|
|
32414
32476
|
});
|
|
32415
|
-
return
|
|
32477
|
+
return data49;
|
|
32416
32478
|
};
|
|
32417
32479
|
var isCancel$1 = function isCancel(value17) {
|
|
32418
32480
|
return !!(value17 && value17.__CANCEL__);
|
|
@@ -32421,14 +32483,10 @@ var utils$3 = utils$d;
|
|
|
32421
32483
|
var transformData2 = transformData$1;
|
|
32422
32484
|
var isCancel2 = isCancel$1;
|
|
32423
32485
|
var defaults$1 = defaults_1;
|
|
32424
|
-
var Cancel$1 = Cancel_1;
|
|
32425
32486
|
function throwIfCancellationRequested(config2) {
|
|
32426
32487
|
if (config2.cancelToken) {
|
|
32427
32488
|
config2.cancelToken.throwIfRequested();
|
|
32428
32489
|
}
|
|
32429
|
-
if (config2.signal && config2.signal.aborted) {
|
|
32430
|
-
throw new Cancel$1("canceled");
|
|
32431
|
-
}
|
|
32432
32490
|
}
|
|
32433
32491
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32434
32492
|
throwIfCancellationRequested(config2);
|
|
@@ -32479,6 +32537,34 @@ var utils$2 = utils$d;
|
|
|
32479
32537
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32480
32538
|
config2 = config2 || {};
|
|
32481
32539
|
var config3 = {};
|
|
32540
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32541
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32542
|
+
var defaultToConfig2Keys = [
|
|
32543
|
+
"baseURL",
|
|
32544
|
+
"transformRequest",
|
|
32545
|
+
"transformResponse",
|
|
32546
|
+
"paramsSerializer",
|
|
32547
|
+
"timeout",
|
|
32548
|
+
"timeoutMessage",
|
|
32549
|
+
"withCredentials",
|
|
32550
|
+
"adapter",
|
|
32551
|
+
"responseType",
|
|
32552
|
+
"xsrfCookieName",
|
|
32553
|
+
"xsrfHeaderName",
|
|
32554
|
+
"onUploadProgress",
|
|
32555
|
+
"onDownloadProgress",
|
|
32556
|
+
"decompress",
|
|
32557
|
+
"maxContentLength",
|
|
32558
|
+
"maxBodyLength",
|
|
32559
|
+
"maxRedirects",
|
|
32560
|
+
"transport",
|
|
32561
|
+
"httpAgent",
|
|
32562
|
+
"httpsAgent",
|
|
32563
|
+
"cancelToken",
|
|
32564
|
+
"socketPath",
|
|
32565
|
+
"responseEncoding"
|
|
32566
|
+
];
|
|
32567
|
+
var directMergeKeys = ["validateStatus"];
|
|
32482
32568
|
function getMergedValue(target2, source2) {
|
|
32483
32569
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32484
32570
|
return utils$2.merge(target2, source2);
|
|
@@ -32491,69 +32577,141 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
32491
32577
|
}
|
|
32492
32578
|
function mergeDeepProperties(prop) {
|
|
32493
32579
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32494
|
-
|
|
32580
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32495
32581
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32496
|
-
|
|
32582
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32497
32583
|
}
|
|
32498
32584
|
}
|
|
32499
|
-
function valueFromConfig2(prop) {
|
|
32585
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
32500
32586
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32501
|
-
|
|
32587
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32502
32588
|
}
|
|
32503
|
-
}
|
|
32504
|
-
|
|
32589
|
+
});
|
|
32590
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
32591
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32505
32592
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32506
|
-
|
|
32593
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32507
32594
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32508
|
-
|
|
32595
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32509
32596
|
}
|
|
32510
|
-
}
|
|
32511
|
-
function
|
|
32597
|
+
});
|
|
32598
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
32512
32599
|
if (prop in config2) {
|
|
32513
|
-
|
|
32600
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32514
32601
|
} else if (prop in config1) {
|
|
32515
|
-
|
|
32516
|
-
}
|
|
32517
|
-
}
|
|
32518
|
-
var mergeMap = {
|
|
32519
|
-
"url": valueFromConfig2,
|
|
32520
|
-
"method": valueFromConfig2,
|
|
32521
|
-
"data": valueFromConfig2,
|
|
32522
|
-
"baseURL": defaultToConfig2,
|
|
32523
|
-
"transformRequest": defaultToConfig2,
|
|
32524
|
-
"transformResponse": defaultToConfig2,
|
|
32525
|
-
"paramsSerializer": defaultToConfig2,
|
|
32526
|
-
"timeout": defaultToConfig2,
|
|
32527
|
-
"timeoutMessage": defaultToConfig2,
|
|
32528
|
-
"withCredentials": defaultToConfig2,
|
|
32529
|
-
"adapter": defaultToConfig2,
|
|
32530
|
-
"responseType": defaultToConfig2,
|
|
32531
|
-
"xsrfCookieName": defaultToConfig2,
|
|
32532
|
-
"xsrfHeaderName": defaultToConfig2,
|
|
32533
|
-
"onUploadProgress": defaultToConfig2,
|
|
32534
|
-
"onDownloadProgress": defaultToConfig2,
|
|
32535
|
-
"decompress": defaultToConfig2,
|
|
32536
|
-
"maxContentLength": defaultToConfig2,
|
|
32537
|
-
"maxBodyLength": defaultToConfig2,
|
|
32538
|
-
"transport": defaultToConfig2,
|
|
32539
|
-
"httpAgent": defaultToConfig2,
|
|
32540
|
-
"httpsAgent": defaultToConfig2,
|
|
32541
|
-
"cancelToken": defaultToConfig2,
|
|
32542
|
-
"socketPath": defaultToConfig2,
|
|
32543
|
-
"responseEncoding": defaultToConfig2,
|
|
32544
|
-
"validateStatus": mergeDirectKeys
|
|
32545
|
-
};
|
|
32546
|
-
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
32547
|
-
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
32548
|
-
var configValue = merge2(prop);
|
|
32549
|
-
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
32602
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32603
|
+
}
|
|
32550
32604
|
});
|
|
32605
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
32606
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
32607
|
+
return axiosKeys.indexOf(key) === -1;
|
|
32608
|
+
});
|
|
32609
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32551
32610
|
return config3;
|
|
32552
32611
|
};
|
|
32553
|
-
|
|
32554
|
-
|
|
32612
|
+
const name = "axios";
|
|
32613
|
+
const version = "0.21.4";
|
|
32614
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
32615
|
+
const main = "index.js";
|
|
32616
|
+
const scripts = {
|
|
32617
|
+
test: "grunt test",
|
|
32618
|
+
start: "node ./sandbox/server.js",
|
|
32619
|
+
build: "NODE_ENV=production grunt build",
|
|
32620
|
+
preversion: "npm test",
|
|
32621
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32622
|
+
postversion: "git push && git push --tags",
|
|
32623
|
+
examples: "node ./examples/server.js",
|
|
32624
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32625
|
+
fix: "eslint --fix lib/**/*.js"
|
|
32626
|
+
};
|
|
32627
|
+
const repository = {
|
|
32628
|
+
type: "git",
|
|
32629
|
+
url: "https://github.com/axios/axios.git"
|
|
32630
|
+
};
|
|
32631
|
+
const keywords = [
|
|
32632
|
+
"xhr",
|
|
32633
|
+
"http",
|
|
32634
|
+
"ajax",
|
|
32635
|
+
"promise",
|
|
32636
|
+
"node"
|
|
32637
|
+
];
|
|
32638
|
+
const author = "Matt Zabriskie";
|
|
32639
|
+
const license = "MIT";
|
|
32640
|
+
const bugs = {
|
|
32641
|
+
url: "https://github.com/axios/axios/issues"
|
|
32642
|
+
};
|
|
32643
|
+
const homepage = "https://axios-http.com";
|
|
32644
|
+
const devDependencies = {
|
|
32645
|
+
coveralls: "^3.0.0",
|
|
32646
|
+
"es6-promise": "^4.2.4",
|
|
32647
|
+
grunt: "^1.3.0",
|
|
32648
|
+
"grunt-banner": "^0.6.0",
|
|
32649
|
+
"grunt-cli": "^1.2.0",
|
|
32650
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
32651
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
32652
|
+
"grunt-eslint": "^23.0.0",
|
|
32653
|
+
"grunt-karma": "^4.0.0",
|
|
32654
|
+
"grunt-mocha-test": "^0.13.3",
|
|
32655
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
32656
|
+
"grunt-webpack": "^4.0.2",
|
|
32657
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32658
|
+
"jasmine-core": "^2.4.1",
|
|
32659
|
+
karma: "^6.3.2",
|
|
32660
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
32661
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
32662
|
+
"karma-jasmine": "^1.1.1",
|
|
32663
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
32664
|
+
"karma-safari-launcher": "^1.0.0",
|
|
32665
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
32666
|
+
"karma-sinon": "^1.0.5",
|
|
32667
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
32668
|
+
"karma-webpack": "^4.0.2",
|
|
32669
|
+
"load-grunt-tasks": "^3.5.2",
|
|
32670
|
+
minimist: "^1.2.0",
|
|
32671
|
+
mocha: "^8.2.1",
|
|
32672
|
+
sinon: "^4.5.0",
|
|
32673
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
32674
|
+
typescript: "^4.0.5",
|
|
32675
|
+
"url-search-params": "^0.10.0",
|
|
32676
|
+
webpack: "^4.44.2",
|
|
32677
|
+
"webpack-dev-server": "^3.11.0"
|
|
32678
|
+
};
|
|
32679
|
+
const browser = {
|
|
32680
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32681
|
+
};
|
|
32682
|
+
const jsdelivr = "dist/axios.min.js";
|
|
32683
|
+
const unpkg = "dist/axios.min.js";
|
|
32684
|
+
const typings = "./index.d.ts";
|
|
32685
|
+
const dependencies = {
|
|
32686
|
+
"follow-redirects": "^1.14.0"
|
|
32687
|
+
};
|
|
32688
|
+
const bundlesize = [
|
|
32689
|
+
{
|
|
32690
|
+
path: "./dist/axios.min.js",
|
|
32691
|
+
threshold: "5kB"
|
|
32692
|
+
}
|
|
32693
|
+
];
|
|
32694
|
+
var require$$0 = {
|
|
32695
|
+
name,
|
|
32696
|
+
version,
|
|
32697
|
+
description,
|
|
32698
|
+
main,
|
|
32699
|
+
scripts,
|
|
32700
|
+
repository,
|
|
32701
|
+
keywords,
|
|
32702
|
+
author,
|
|
32703
|
+
license,
|
|
32704
|
+
bugs,
|
|
32705
|
+
homepage,
|
|
32706
|
+
devDependencies,
|
|
32707
|
+
browser,
|
|
32708
|
+
jsdelivr,
|
|
32709
|
+
unpkg,
|
|
32710
|
+
typings,
|
|
32711
|
+
dependencies,
|
|
32712
|
+
bundlesize
|
|
32555
32713
|
};
|
|
32556
|
-
var
|
|
32714
|
+
var pkg = require$$0;
|
|
32557
32715
|
var validators$1 = {};
|
|
32558
32716
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
32559
32717
|
validators$1[type2] = function validator4(thing) {
|
|
@@ -32561,15 +32719,29 @@ var validators$1 = {};
|
|
|
32561
32719
|
};
|
|
32562
32720
|
});
|
|
32563
32721
|
var deprecatedWarnings = {};
|
|
32722
|
+
var currentVerArr = pkg.version.split(".");
|
|
32723
|
+
function isOlderVersion(version2, thanVersion) {
|
|
32724
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32725
|
+
var destVer = version2.split(".");
|
|
32726
|
+
for (var i = 0; i < 3; i++) {
|
|
32727
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
32728
|
+
return true;
|
|
32729
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32730
|
+
return false;
|
|
32731
|
+
}
|
|
32732
|
+
}
|
|
32733
|
+
return false;
|
|
32734
|
+
}
|
|
32564
32735
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32736
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32565
32737
|
function formatMessage(opt, desc) {
|
|
32566
|
-
return "[Axios v" +
|
|
32738
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32567
32739
|
}
|
|
32568
32740
|
return function(value17, opt, opts) {
|
|
32569
32741
|
if (validator4 === false) {
|
|
32570
|
-
throw new Error(formatMessage(opt, " has been removed
|
|
32742
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
32571
32743
|
}
|
|
32572
|
-
if (
|
|
32744
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
32573
32745
|
deprecatedWarnings[opt] = true;
|
|
32574
32746
|
console.warn(
|
|
32575
32747
|
formatMessage(
|
|
@@ -32604,6 +32776,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
32604
32776
|
}
|
|
32605
32777
|
}
|
|
32606
32778
|
var validator$1 = {
|
|
32779
|
+
isOlderVersion,
|
|
32607
32780
|
assertOptions,
|
|
32608
32781
|
validators: validators$1
|
|
32609
32782
|
};
|
|
@@ -32639,9 +32812,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
32639
32812
|
var transitional2 = config2.transitional;
|
|
32640
32813
|
if (transitional2 !== void 0) {
|
|
32641
32814
|
validator3.assertOptions(transitional2, {
|
|
32642
|
-
silentJSONParsing: validators.transitional(validators.boolean),
|
|
32643
|
-
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
32644
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
32815
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32816
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32817
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
32645
32818
|
}, false);
|
|
32646
32819
|
}
|
|
32647
32820
|
var requestInterceptorChain = [];
|
|
@@ -32703,15 +32876,23 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
32703
32876
|
};
|
|
32704
32877
|
});
|
|
32705
32878
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32706
|
-
Axios$1.prototype[method] = function(url,
|
|
32879
|
+
Axios$1.prototype[method] = function(url, data49, config2) {
|
|
32707
32880
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
32708
32881
|
method,
|
|
32709
32882
|
url,
|
|
32710
|
-
data:
|
|
32883
|
+
data: data49
|
|
32711
32884
|
}));
|
|
32712
32885
|
};
|
|
32713
32886
|
});
|
|
32714
32887
|
var Axios_1 = Axios$1;
|
|
32888
|
+
function Cancel$1(message) {
|
|
32889
|
+
this.message = message;
|
|
32890
|
+
}
|
|
32891
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
32892
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32893
|
+
};
|
|
32894
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
32895
|
+
var Cancel_1 = Cancel$1;
|
|
32715
32896
|
var Cancel = Cancel_1;
|
|
32716
32897
|
function CancelToken(executor) {
|
|
32717
32898
|
if (typeof executor !== "function") {
|
|
@@ -32722,27 +32903,6 @@ function CancelToken(executor) {
|
|
|
32722
32903
|
resolvePromise = resolve;
|
|
32723
32904
|
});
|
|
32724
32905
|
var token = this;
|
|
32725
|
-
this.promise.then(function(cancel2) {
|
|
32726
|
-
if (!token._listeners)
|
|
32727
|
-
return;
|
|
32728
|
-
var i;
|
|
32729
|
-
var l = token._listeners.length;
|
|
32730
|
-
for (i = 0; i < l; i++) {
|
|
32731
|
-
token._listeners[i](cancel2);
|
|
32732
|
-
}
|
|
32733
|
-
token._listeners = null;
|
|
32734
|
-
});
|
|
32735
|
-
this.promise.then = function(onfulfilled) {
|
|
32736
|
-
var _resolve;
|
|
32737
|
-
var promise = new Promise(function(resolve) {
|
|
32738
|
-
token.subscribe(resolve);
|
|
32739
|
-
_resolve = resolve;
|
|
32740
|
-
}).then(onfulfilled);
|
|
32741
|
-
promise.cancel = function reject() {
|
|
32742
|
-
token.unsubscribe(_resolve);
|
|
32743
|
-
};
|
|
32744
|
-
return promise;
|
|
32745
|
-
};
|
|
32746
32906
|
executor(function cancel2(message) {
|
|
32747
32907
|
if (token.reason) {
|
|
32748
32908
|
return;
|
|
@@ -32756,26 +32916,6 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
32756
32916
|
throw this.reason;
|
|
32757
32917
|
}
|
|
32758
32918
|
};
|
|
32759
|
-
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
32760
|
-
if (this.reason) {
|
|
32761
|
-
listener(this.reason);
|
|
32762
|
-
return;
|
|
32763
|
-
}
|
|
32764
|
-
if (this._listeners) {
|
|
32765
|
-
this._listeners.push(listener);
|
|
32766
|
-
} else {
|
|
32767
|
-
this._listeners = [listener];
|
|
32768
|
-
}
|
|
32769
|
-
};
|
|
32770
|
-
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
32771
|
-
if (!this._listeners) {
|
|
32772
|
-
return;
|
|
32773
|
-
}
|
|
32774
|
-
var index2 = this._listeners.indexOf(listener);
|
|
32775
|
-
if (index2 !== -1) {
|
|
32776
|
-
this._listeners.splice(index2, 1);
|
|
32777
|
-
}
|
|
32778
|
-
};
|
|
32779
32919
|
CancelToken.source = function source() {
|
|
32780
32920
|
var cancel2;
|
|
32781
32921
|
var token = new CancelToken(function executor(c) {
|
|
@@ -32805,17 +32945,16 @@ function createInstance(defaultConfig2) {
|
|
|
32805
32945
|
var instance2 = bind2(Axios.prototype.request, context2);
|
|
32806
32946
|
utils.extend(instance2, Axios.prototype, context2);
|
|
32807
32947
|
utils.extend(instance2, context2);
|
|
32808
|
-
instance2.create = function create(instanceConfig) {
|
|
32809
|
-
return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
|
|
32810
|
-
};
|
|
32811
32948
|
return instance2;
|
|
32812
32949
|
}
|
|
32813
32950
|
var axios$1 = createInstance(defaults);
|
|
32814
32951
|
axios$1.Axios = Axios;
|
|
32952
|
+
axios$1.create = function create(instanceConfig) {
|
|
32953
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
32954
|
+
};
|
|
32815
32955
|
axios$1.Cancel = Cancel_1;
|
|
32816
32956
|
axios$1.CancelToken = CancelToken_1;
|
|
32817
32957
|
axios$1.isCancel = isCancel$1;
|
|
32818
|
-
axios$1.VERSION = data49.version;
|
|
32819
32958
|
axios$1.all = function all(promises) {
|
|
32820
32959
|
return Promise.all(promises);
|
|
32821
32960
|
};
|
|
@@ -33226,12 +33365,12 @@ var user = {
|
|
|
33226
33365
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
33227
33366
|
return userInfo;
|
|
33228
33367
|
}
|
|
33229
|
-
const { data:
|
|
33230
|
-
commit2("setAvatar",
|
|
33231
|
-
commit2("setUserName",
|
|
33232
|
-
commit2("setUserManageUnitId",
|
|
33233
|
-
setUserInfoCache(
|
|
33234
|
-
return
|
|
33368
|
+
const { data: data49 } = await getUserInfoApi();
|
|
33369
|
+
commit2("setAvatar", data49.userAvater);
|
|
33370
|
+
commit2("setUserName", data49.userName);
|
|
33371
|
+
commit2("setUserManageUnitId", data49.manageUnitId);
|
|
33372
|
+
setUserInfoCache(data49);
|
|
33373
|
+
return data49;
|
|
33235
33374
|
}
|
|
33236
33375
|
}
|
|
33237
33376
|
};
|
|
@@ -33426,8 +33565,8 @@ var app = {
|
|
|
33426
33565
|
async getAppListData({ commit: commit2, getters }) {
|
|
33427
33566
|
let appList = getters.getAppList;
|
|
33428
33567
|
if (!appList.length) {
|
|
33429
|
-
const { data:
|
|
33430
|
-
appList =
|
|
33568
|
+
const { data: data49 = [] } = await getAppListApi();
|
|
33569
|
+
appList = data49.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
33431
33570
|
commit2("setAppList", appList);
|
|
33432
33571
|
}
|
|
33433
33572
|
let appId = "";
|
|
@@ -33531,9 +33670,9 @@ var app = {
|
|
|
33531
33670
|
},
|
|
33532
33671
|
async getMyAppsList({ commit: commit2 }, payload) {
|
|
33533
33672
|
try {
|
|
33534
|
-
let { data:
|
|
33535
|
-
|
|
33536
|
-
commit2("setMyAppsList",
|
|
33673
|
+
let { data: data49 } = await getIndexPreset(payload);
|
|
33674
|
+
data49 = data49 || "[]";
|
|
33675
|
+
commit2("setMyAppsList", data49);
|
|
33537
33676
|
} catch (error) {
|
|
33538
33677
|
console.error("getMyAppsList:", error);
|
|
33539
33678
|
}
|
|
@@ -33559,8 +33698,8 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33559
33698
|
doChangeTheme(theme);
|
|
33560
33699
|
if (location.pathname.includes("scyxweb")) {
|
|
33561
33700
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
33562
|
-
axios$3.get(url).then((
|
|
33563
|
-
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {},
|
|
33701
|
+
axios$3.get(url).then((data49) => {
|
|
33702
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
33564
33703
|
});
|
|
33565
33704
|
}
|
|
33566
33705
|
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
@@ -33630,7 +33769,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33630
33769
|
install(window.Vue);
|
|
33631
33770
|
}
|
|
33632
33771
|
const API = {
|
|
33633
|
-
version: pkg.version,
|
|
33772
|
+
version: pkg$1.version,
|
|
33634
33773
|
install,
|
|
33635
33774
|
components,
|
|
33636
33775
|
plugins,
|