@indfnd/common-mobile 1.0.49 → 1.0.51
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 +474 -335
- package/dist/ind-common-mobile.umd.cjs +8 -8
- 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.50";
|
|
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;
|
|
@@ -24137,7 +24137,7 @@ function _iterableToArray(iter) {
|
|
|
24137
24137
|
function _nonIterableSpread() {
|
|
24138
24138
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24139
24139
|
}
|
|
24140
|
-
var version = "1.10.2";
|
|
24140
|
+
var version$1 = "1.10.2";
|
|
24141
24141
|
function userAgent$1(pattern) {
|
|
24142
24142
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24143
24143
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24585,14 +24585,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24585
24585
|
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
24586
|
}
|
|
24587
24587
|
var plugins$1 = [];
|
|
24588
|
-
var defaults$
|
|
24588
|
+
var defaults$4 = {
|
|
24589
24589
|
initializeByDefault: true
|
|
24590
24590
|
};
|
|
24591
24591
|
var PluginManager = {
|
|
24592
24592
|
mount: function mount2(plugin) {
|
|
24593
|
-
for (var option2 in defaults$
|
|
24594
|
-
if (defaults$
|
|
24595
|
-
plugin[option2] = defaults$
|
|
24593
|
+
for (var option2 in defaults$4) {
|
|
24594
|
+
if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24595
|
+
plugin[option2] = defaults$4[option2];
|
|
24596
24596
|
}
|
|
24597
24597
|
}
|
|
24598
24598
|
plugins$1.push(plugin);
|
|
@@ -24697,7 +24697,7 @@ function dispatchEvent(_ref) {
|
|
|
24697
24697
|
}
|
|
24698
24698
|
}
|
|
24699
24699
|
var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
24700
|
-
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt,
|
|
24700
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data49 = _objectWithoutProperties(_ref, ["evt"]);
|
|
24701
24701
|
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({
|
|
24702
24702
|
dragEl,
|
|
24703
24703
|
parentEl,
|
|
@@ -24730,7 +24730,7 @@ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
|
24730
24730
|
originalEvent
|
|
24731
24731
|
});
|
|
24732
24732
|
}
|
|
24733
|
-
},
|
|
24733
|
+
}, data49));
|
|
24734
24734
|
};
|
|
24735
24735
|
function _dispatchEvent(info) {
|
|
24736
24736
|
dispatchEvent(_objectSpread({
|
|
@@ -25914,7 +25914,7 @@ Sortable.mount = function() {
|
|
|
25914
25914
|
Sortable.create = function(el, options) {
|
|
25915
25915
|
return new Sortable(el, options);
|
|
25916
25916
|
};
|
|
25917
|
-
Sortable.version = version;
|
|
25917
|
+
Sortable.version = version$1;
|
|
25918
25918
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
25919
25919
|
function AutoScrollPlugin() {
|
|
25920
25920
|
function AutoScroll() {
|
|
@@ -26232,15 +26232,15 @@ function MultiDragPlugin() {
|
|
|
26232
26232
|
selectedClass: "sortable-selected",
|
|
26233
26233
|
multiDragKey: null,
|
|
26234
26234
|
setData: function setData(dataTransfer, dragEl2) {
|
|
26235
|
-
var
|
|
26235
|
+
var data49 = "";
|
|
26236
26236
|
if (multiDragElements.length && multiDragSortable === sortable) {
|
|
26237
26237
|
multiDragElements.forEach(function(multiDragElement, i) {
|
|
26238
|
-
|
|
26238
|
+
data49 += (!i ? "" : ", ") + multiDragElement.textContent;
|
|
26239
26239
|
});
|
|
26240
26240
|
} else {
|
|
26241
|
-
|
|
26241
|
+
data49 = dragEl2.textContent;
|
|
26242
26242
|
}
|
|
26243
|
-
dataTransfer.setData("Text",
|
|
26243
|
+
dataTransfer.setData("Text", data49);
|
|
26244
26244
|
}
|
|
26245
26245
|
};
|
|
26246
26246
|
}
|
|
@@ -26701,10 +26701,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26701
26701
|
Sortable,
|
|
26702
26702
|
Swap: SwapPlugin
|
|
26703
26703
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26704
|
-
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26704
|
+
var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26705
26705
|
(function(module2, exports2) {
|
|
26706
26706
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26707
|
-
module2.exports = factory(require$$0);
|
|
26707
|
+
module2.exports = factory(require$$0$1);
|
|
26708
26708
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26709
26709
|
return function(modules) {
|
|
26710
26710
|
var installedModules = {};
|
|
@@ -27079,7 +27079,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27079
27079
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27080
27080
|
return createDict();
|
|
27081
27081
|
};
|
|
27082
|
-
module3.exports = Object.create || function
|
|
27082
|
+
module3.exports = Object.create || function create2(O, Properties) {
|
|
27083
27083
|
var result;
|
|
27084
27084
|
if (O !== null) {
|
|
27085
27085
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27146,7 +27146,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27146
27146
|
};
|
|
27147
27147
|
},
|
|
27148
27148
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27149
|
-
var
|
|
27149
|
+
var create2 = __webpack_require__("2aeb");
|
|
27150
27150
|
var descriptor = __webpack_require__("4630");
|
|
27151
27151
|
var setToStringTag = __webpack_require__("7f20");
|
|
27152
27152
|
var IteratorPrototype = {};
|
|
@@ -27154,7 +27154,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27154
27154
|
return this;
|
|
27155
27155
|
});
|
|
27156
27156
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27157
|
-
Constructor.prototype =
|
|
27157
|
+
Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27158
27158
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27159
27159
|
};
|
|
27160
27160
|
},
|
|
@@ -28213,7 +28213,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28213
28213
|
name: "draggable",
|
|
28214
28214
|
inheritAttrs: false,
|
|
28215
28215
|
props,
|
|
28216
|
-
data: function
|
|
28216
|
+
data: function data49() {
|
|
28217
28217
|
return {
|
|
28218
28218
|
transitionMode: false,
|
|
28219
28219
|
noneFunctionalComponentMode: false
|
|
@@ -29782,7 +29782,7 @@ var render$a = function() {
|
|
|
29782
29782
|
}), 0)]), _c("tabbar")], 1)], 1);
|
|
29783
29783
|
};
|
|
29784
29784
|
var staticRenderFns$a = [];
|
|
29785
|
-
function simplifyMenuTree
|
|
29785
|
+
function simplifyMenuTree(menuData) {
|
|
29786
29786
|
return menuData.map((root2) => {
|
|
29787
29787
|
const leafNodes = [];
|
|
29788
29788
|
function findLeaves(node) {
|
|
@@ -29851,7 +29851,7 @@ const __vue2_script$a = {
|
|
|
29851
29851
|
}, {});
|
|
29852
29852
|
this.allApps_menus = { \u5168\u90E8: temps[0].children, ...allApps_menus };
|
|
29853
29853
|
this.apps_menus = this.allApps_menus["\u5168\u90E8"];
|
|
29854
|
-
this.apps_menus = simplifyMenuTree
|
|
29854
|
+
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
29855
29855
|
this.title = temps[0].meta.title;
|
|
29856
29856
|
} else if (retryCount >= MAX_RETRY2) {
|
|
29857
29857
|
clearInterval(interval);
|
|
@@ -29869,9 +29869,9 @@ const __vue2_script$a = {
|
|
|
29869
29869
|
this.active = index2;
|
|
29870
29870
|
this.apps_menus = this.allApps_menus[tab];
|
|
29871
29871
|
if (tab !== "\u5168\u90E8") {
|
|
29872
|
-
this.apps_menus = simplifyMenuTree
|
|
29872
|
+
this.apps_menus = simplifyMenuTree(((_a = this.apps_menus) == null ? void 0 : _a.children) || []);
|
|
29873
29873
|
} else {
|
|
29874
|
-
this.apps_menus = simplifyMenuTree
|
|
29874
|
+
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
29875
29875
|
}
|
|
29876
29876
|
this.$emit("tab-click", index2);
|
|
29877
29877
|
this.scrollTabIntoView(index2);
|
|
@@ -30139,38 +30139,28 @@ var render$8 = function() {
|
|
|
30139
30139
|
return _vm.handleTabClick(tab, idx);
|
|
30140
30140
|
} } }, [_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
30141
|
}), 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: {
|
|
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: {
|
|
30144
30144
|
width: "calc(100% / " + _vm.rowAppCount + ")",
|
|
30145
30145
|
height: "100%",
|
|
30146
30146
|
display: "flex",
|
|
30147
30147
|
alignItems: "center",
|
|
30148
30148
|
justifyContent: "center"
|
|
30149
|
-
} }, [_c("appsItem", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
30150
|
-
}),
|
|
30149
|
+
} }, [_c("appsItem", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1)];
|
|
30150
|
+
})], 2), _vm._l(firstLevel.foldChildren, function(item2) {
|
|
30151
|
+
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) {
|
|
30152
|
+
return _c("div", { key: subItem.meta.permissionId, style: {
|
|
30153
|
+
width: "calc(100% / " + _vm.rowAppCount + ")",
|
|
30154
|
+
height: "100%",
|
|
30155
|
+
display: "flex",
|
|
30156
|
+
alignItems: "center",
|
|
30157
|
+
justifyContent: "center"
|
|
30158
|
+
} }, [_c("appsItem", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
30159
|
+
}), 0)];
|
|
30160
|
+
})], 2);
|
|
30151
30161
|
}), 1)]), _c("tabbar")], 1)], 1);
|
|
30152
30162
|
};
|
|
30153
30163
|
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
30164
|
const __vue2_script$8 = {
|
|
30175
30165
|
components: { tabbar, appsItem, myappNew },
|
|
30176
30166
|
name: "IndMApps",
|
|
@@ -30187,26 +30177,41 @@ const __vue2_script$8 = {
|
|
|
30187
30177
|
searchApp: [],
|
|
30188
30178
|
myAppList: [],
|
|
30189
30179
|
allApps_menus: [],
|
|
30190
|
-
titleList: []
|
|
30180
|
+
titleList: [],
|
|
30181
|
+
level: "2",
|
|
30182
|
+
curTabl: "\u5168\u90E8"
|
|
30191
30183
|
};
|
|
30192
30184
|
},
|
|
30193
30185
|
mounted() {
|
|
30186
|
+
var _a;
|
|
30194
30187
|
this.myAppList = JSON.parse(sessionStorage.getItem("myAppsList")) || [];
|
|
30195
30188
|
this.isHb = location.pathname.includes("scyxweb");
|
|
30189
|
+
const storedValue = localStorage.getItem("systemDefaultConfig");
|
|
30190
|
+
if (!storedValue || typeof storedValue !== "string") {
|
|
30191
|
+
return "{}";
|
|
30192
|
+
}
|
|
30193
|
+
let systemDefaultConfig;
|
|
30194
|
+
try {
|
|
30195
|
+
systemDefaultConfig = JSON.parse(storedValue);
|
|
30196
|
+
} catch (e) {
|
|
30197
|
+
console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
|
|
30198
|
+
return "{}";
|
|
30199
|
+
}
|
|
30200
|
+
this.level = ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.theLevel) || 3;
|
|
30196
30201
|
let retryCount = 0;
|
|
30197
30202
|
const MAX_RETRY2 = 50;
|
|
30198
30203
|
let interval = setInterval(() => {
|
|
30199
|
-
var
|
|
30204
|
+
var _a2;
|
|
30200
30205
|
retryCount++;
|
|
30201
30206
|
let menus = this.$store.getters.getMenuTreeList || [];
|
|
30202
30207
|
if (menus && menus.length > 0) {
|
|
30203
30208
|
clearInterval(interval);
|
|
30204
30209
|
console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
|
|
30205
|
-
if (((
|
|
30210
|
+
if (((_a2 = this.$config) == null ? void 0 : _a2.mainType) == "singleApp") {
|
|
30206
30211
|
let mobileMainApp = menus.find(
|
|
30207
30212
|
(item2) => {
|
|
30208
|
-
var
|
|
30209
|
-
return item2.extendProps && ((
|
|
30213
|
+
var _a3;
|
|
30214
|
+
return item2.extendProps && ((_a3 = JSON.parse(item2.extendProps)) == null ? void 0 : _a3.mainMobile) == "1";
|
|
30210
30215
|
}
|
|
30211
30216
|
);
|
|
30212
30217
|
menus = mobileMainApp.children;
|
|
@@ -30220,7 +30225,7 @@ const __vue2_script$8 = {
|
|
|
30220
30225
|
}, {});
|
|
30221
30226
|
this.allApps_menus = { \u5168\u90E8: temps[0].children, ...allApps_menus };
|
|
30222
30227
|
this.apps_menus = this.allApps_menus["\u5168\u90E8"];
|
|
30223
|
-
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
30228
|
+
this.apps_menus = this.level == 2 ? this.simplifyMenuTree(this.apps_menus) : this.simplifyMenuTree2N(this.apps_menus);
|
|
30224
30229
|
this.title = temps[0].meta.title;
|
|
30225
30230
|
} else if (retryCount >= MAX_RETRY2) {
|
|
30226
30231
|
clearInterval(interval);
|
|
@@ -30231,16 +30236,93 @@ const __vue2_script$8 = {
|
|
|
30231
30236
|
}, 100);
|
|
30232
30237
|
},
|
|
30233
30238
|
methods: {
|
|
30239
|
+
simplifyMenuTree(menuData) {
|
|
30240
|
+
if (!menuData) {
|
|
30241
|
+
return [];
|
|
30242
|
+
}
|
|
30243
|
+
menuData = _.cloneDeep(menuData);
|
|
30244
|
+
return menuData.map((root2) => {
|
|
30245
|
+
const leafNodes = [];
|
|
30246
|
+
function findLeaves(node) {
|
|
30247
|
+
if (node.children && node.children.length > 0) {
|
|
30248
|
+
node.children.forEach(findLeaves);
|
|
30249
|
+
} else if (node.path || node.uri) {
|
|
30250
|
+
leafNodes.push(node);
|
|
30251
|
+
}
|
|
30252
|
+
}
|
|
30253
|
+
findLeaves(root2);
|
|
30254
|
+
console.log({
|
|
30255
|
+
...root2,
|
|
30256
|
+
children: leafNodes.map((leaf) => ({
|
|
30257
|
+
...leaf,
|
|
30258
|
+
children: void 0
|
|
30259
|
+
}))
|
|
30260
|
+
});
|
|
30261
|
+
return {
|
|
30262
|
+
...root2,
|
|
30263
|
+
children: leafNodes.map((leaf) => ({
|
|
30264
|
+
...leaf,
|
|
30265
|
+
children: void 0
|
|
30266
|
+
}))
|
|
30267
|
+
};
|
|
30268
|
+
});
|
|
30269
|
+
},
|
|
30270
|
+
simplifyMenuTree2N(menuData) {
|
|
30271
|
+
if (!menuData) {
|
|
30272
|
+
return [];
|
|
30273
|
+
}
|
|
30274
|
+
menuData = _.cloneDeep(menuData);
|
|
30275
|
+
return menuData.map((root2) => {
|
|
30276
|
+
var _a;
|
|
30277
|
+
const leafNodes = [];
|
|
30278
|
+
const foldNodes = [];
|
|
30279
|
+
function findLeaves(node) {
|
|
30280
|
+
var _a2;
|
|
30281
|
+
if (((_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2.length) > 0) {
|
|
30282
|
+
foldNodes.push(node);
|
|
30283
|
+
} else if (node.path || node.uri) {
|
|
30284
|
+
leafNodes.push(node);
|
|
30285
|
+
}
|
|
30286
|
+
}
|
|
30287
|
+
function findLeavesDeep(node, childrenTmp) {
|
|
30288
|
+
var _a2, _b;
|
|
30289
|
+
if (((_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2.length) > 0) {
|
|
30290
|
+
(_b = node.children) == null ? void 0 : _b.forEach((d) => findLeavesDeep(d, childrenTmp));
|
|
30291
|
+
} else if (node.path || node.uri) {
|
|
30292
|
+
childrenTmp.push(node);
|
|
30293
|
+
}
|
|
30294
|
+
}
|
|
30295
|
+
if (this.curTabl == "\u5168\u90E8") {
|
|
30296
|
+
(_a = root2 == null ? void 0 : root2.children) == null ? void 0 : _a.forEach(findLeaves);
|
|
30297
|
+
} else {
|
|
30298
|
+
findLeaves(root2);
|
|
30299
|
+
}
|
|
30300
|
+
leafNodes.forEach((item2) => {
|
|
30301
|
+
item2.children = null;
|
|
30302
|
+
});
|
|
30303
|
+
foldNodes.forEach((item2) => {
|
|
30304
|
+
let childrenTmp = [];
|
|
30305
|
+
findLeavesDeep(item2, childrenTmp);
|
|
30306
|
+
item2.children = childrenTmp;
|
|
30307
|
+
});
|
|
30308
|
+
return {
|
|
30309
|
+
...root2,
|
|
30310
|
+
children: leafNodes,
|
|
30311
|
+
foldChildren: foldNodes
|
|
30312
|
+
};
|
|
30313
|
+
});
|
|
30314
|
+
},
|
|
30234
30315
|
handleTabClick(tab, index2) {
|
|
30235
30316
|
var _a;
|
|
30236
30317
|
if (this.active === index2)
|
|
30237
30318
|
return;
|
|
30238
30319
|
this.active = index2;
|
|
30239
30320
|
this.apps_menus = this.allApps_menus[tab];
|
|
30321
|
+
this.curTabl = tab;
|
|
30240
30322
|
if (tab !== "\u5168\u90E8") {
|
|
30241
|
-
this.apps_menus = simplifyMenuTree((
|
|
30323
|
+
this.apps_menus = this.simplifyMenuTree((_a = this.apps_menus) == null ? void 0 : _a.children);
|
|
30242
30324
|
} else {
|
|
30243
|
-
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
30325
|
+
this.apps_menus = this.level == 2 ? this.simplifyMenuTree(this.apps_menus) : this.simplifyMenuTree2N(this.apps_menus);
|
|
30244
30326
|
}
|
|
30245
30327
|
this.$emit("tab-click", index2);
|
|
30246
30328
|
this.scrollTabIntoView(index2);
|
|
@@ -30438,9 +30520,9 @@ function getMaxDepth(obj, currentDepth = 1) {
|
|
|
30438
30520
|
}
|
|
30439
30521
|
return maxDepth;
|
|
30440
30522
|
}
|
|
30441
|
-
function calculateMaxDepth(
|
|
30523
|
+
function calculateMaxDepth(data49) {
|
|
30442
30524
|
let maxDepth = 0;
|
|
30443
|
-
for (const item2 of
|
|
30525
|
+
for (const item2 of data49) {
|
|
30444
30526
|
const depth = getMaxDepth(item2);
|
|
30445
30527
|
if (depth > maxDepth) {
|
|
30446
30528
|
maxDepth = depth;
|
|
@@ -30505,10 +30587,21 @@ const __vue2_script$6 = {
|
|
|
30505
30587
|
},
|
|
30506
30588
|
computed: {
|
|
30507
30589
|
currentComponent() {
|
|
30508
|
-
var _a
|
|
30509
|
-
|
|
30590
|
+
var _a;
|
|
30591
|
+
const storedValue = localStorage.getItem("systemDefaultConfig");
|
|
30592
|
+
if (!storedValue || typeof storedValue !== "string") {
|
|
30593
|
+
return "{}";
|
|
30594
|
+
}
|
|
30595
|
+
let systemDefaultConfig;
|
|
30596
|
+
try {
|
|
30597
|
+
systemDefaultConfig = JSON.parse(storedValue);
|
|
30598
|
+
} catch (e) {
|
|
30599
|
+
console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
|
|
30600
|
+
return "{}";
|
|
30601
|
+
}
|
|
30602
|
+
this.level = ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.theLevel) || 3;
|
|
30510
30603
|
this.depth = this.depth || 4;
|
|
30511
|
-
if (this.level == 2 && this.depth >= 2) {
|
|
30604
|
+
if ((this.level == 2 || this.level == "2N") && this.depth >= 2) {
|
|
30512
30605
|
return "leveltwo";
|
|
30513
30606
|
} else if (this.level == 3) {
|
|
30514
30607
|
if (this.depth <= 2) {
|
|
@@ -31986,8 +32079,7 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
|
|
|
31986
32079
|
columnNumber: this.columnNumber,
|
|
31987
32080
|
stack: this.stack,
|
|
31988
32081
|
config: this.config,
|
|
31989
|
-
code: this.code
|
|
31990
|
-
status: this.response && this.response.status ? this.response.status : null
|
|
32082
|
+
code: this.code
|
|
31991
32083
|
};
|
|
31992
32084
|
};
|
|
31993
32085
|
return error;
|
|
@@ -32143,14 +32235,6 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
32143
32235
|
return true;
|
|
32144
32236
|
};
|
|
32145
32237
|
}();
|
|
32146
|
-
function Cancel$3(message) {
|
|
32147
|
-
this.message = message;
|
|
32148
|
-
}
|
|
32149
|
-
Cancel$3.prototype.toString = function toString2() {
|
|
32150
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32151
|
-
};
|
|
32152
|
-
Cancel$3.prototype.__CANCEL__ = true;
|
|
32153
|
-
var Cancel_1 = Cancel$3;
|
|
32154
32238
|
var utils$6 = utils$d;
|
|
32155
32239
|
var settle2 = settle$1;
|
|
32156
32240
|
var cookies = cookies$1;
|
|
@@ -32159,22 +32243,11 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
32159
32243
|
var parseHeaders2 = parseHeaders$1;
|
|
32160
32244
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32161
32245
|
var createError2 = createError$2;
|
|
32162
|
-
var defaults$4 = defaults_1;
|
|
32163
|
-
var Cancel$2 = Cancel_1;
|
|
32164
32246
|
var xhr = function xhrAdapter(config2) {
|
|
32165
32247
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32166
32248
|
var requestData = config2.data;
|
|
32167
32249
|
var requestHeaders = config2.headers;
|
|
32168
32250
|
var responseType = config2.responseType;
|
|
32169
|
-
var onCanceled;
|
|
32170
|
-
function done() {
|
|
32171
|
-
if (config2.cancelToken) {
|
|
32172
|
-
config2.cancelToken.unsubscribe(onCanceled);
|
|
32173
|
-
}
|
|
32174
|
-
if (config2.signal) {
|
|
32175
|
-
config2.signal.removeEventListener("abort", onCanceled);
|
|
32176
|
-
}
|
|
32177
|
-
}
|
|
32178
32251
|
if (utils$6.isFormData(requestData)) {
|
|
32179
32252
|
delete requestHeaders["Content-Type"];
|
|
32180
32253
|
}
|
|
@@ -32201,13 +32274,7 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32201
32274
|
config: config2,
|
|
32202
32275
|
request: request2
|
|
32203
32276
|
};
|
|
32204
|
-
settle2(
|
|
32205
|
-
resolve(value17);
|
|
32206
|
-
done();
|
|
32207
|
-
}, function _reject(err) {
|
|
32208
|
-
reject(err);
|
|
32209
|
-
done();
|
|
32210
|
-
}, response);
|
|
32277
|
+
settle2(resolve, reject, response);
|
|
32211
32278
|
request2 = null;
|
|
32212
32279
|
}
|
|
32213
32280
|
if ("onloadend" in request2) {
|
|
@@ -32235,15 +32302,14 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32235
32302
|
request2 = null;
|
|
32236
32303
|
};
|
|
32237
32304
|
request2.ontimeout = function handleTimeout() {
|
|
32238
|
-
var timeoutErrorMessage =
|
|
32239
|
-
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
32305
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32240
32306
|
if (config2.timeoutErrorMessage) {
|
|
32241
32307
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32242
32308
|
}
|
|
32243
32309
|
reject(createError2(
|
|
32244
32310
|
timeoutErrorMessage,
|
|
32245
32311
|
config2,
|
|
32246
|
-
|
|
32312
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32247
32313
|
request2
|
|
32248
32314
|
));
|
|
32249
32315
|
request2 = null;
|
|
@@ -32275,19 +32341,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32275
32341
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32276
32342
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
32277
32343
|
}
|
|
32278
|
-
if (config2.cancelToken
|
|
32279
|
-
onCanceled
|
|
32344
|
+
if (config2.cancelToken) {
|
|
32345
|
+
config2.cancelToken.promise.then(function onCanceled(cancel2) {
|
|
32280
32346
|
if (!request2) {
|
|
32281
32347
|
return;
|
|
32282
32348
|
}
|
|
32283
|
-
reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
|
|
32284
32349
|
request2.abort();
|
|
32350
|
+
reject(cancel2);
|
|
32285
32351
|
request2 = null;
|
|
32286
|
-
};
|
|
32287
|
-
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
32288
|
-
if (config2.signal) {
|
|
32289
|
-
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
32290
|
-
}
|
|
32352
|
+
});
|
|
32291
32353
|
}
|
|
32292
32354
|
if (!requestData) {
|
|
32293
32355
|
requestData = null;
|
|
@@ -32335,33 +32397,33 @@ var defaults$3 = {
|
|
|
32335
32397
|
clarifyTimeoutError: false
|
|
32336
32398
|
},
|
|
32337
32399
|
adapter: getDefaultAdapter(),
|
|
32338
|
-
transformRequest: [function transformRequest(
|
|
32400
|
+
transformRequest: [function transformRequest(data49, headers) {
|
|
32339
32401
|
normalizeHeaderName2(headers, "Accept");
|
|
32340
32402
|
normalizeHeaderName2(headers, "Content-Type");
|
|
32341
|
-
if (utils$5.isFormData(
|
|
32342
|
-
return
|
|
32403
|
+
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)) {
|
|
32404
|
+
return data49;
|
|
32343
32405
|
}
|
|
32344
|
-
if (utils$5.isArrayBufferView(
|
|
32345
|
-
return
|
|
32406
|
+
if (utils$5.isArrayBufferView(data49)) {
|
|
32407
|
+
return data49.buffer;
|
|
32346
32408
|
}
|
|
32347
|
-
if (utils$5.isURLSearchParams(
|
|
32409
|
+
if (utils$5.isURLSearchParams(data49)) {
|
|
32348
32410
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32349
|
-
return
|
|
32411
|
+
return data49.toString();
|
|
32350
32412
|
}
|
|
32351
|
-
if (utils$5.isObject(
|
|
32413
|
+
if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
|
|
32352
32414
|
setContentTypeIfUnset(headers, "application/json");
|
|
32353
|
-
return stringifySafely(
|
|
32415
|
+
return stringifySafely(data49);
|
|
32354
32416
|
}
|
|
32355
|
-
return
|
|
32417
|
+
return data49;
|
|
32356
32418
|
}],
|
|
32357
|
-
transformResponse: [function transformResponse(
|
|
32358
|
-
var transitional2 = this.transitional
|
|
32419
|
+
transformResponse: [function transformResponse(data49) {
|
|
32420
|
+
var transitional2 = this.transitional;
|
|
32359
32421
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32360
32422
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32361
32423
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32362
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
32424
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32363
32425
|
try {
|
|
32364
|
-
return JSON.parse(
|
|
32426
|
+
return JSON.parse(data49);
|
|
32365
32427
|
} catch (e) {
|
|
32366
32428
|
if (strictJSONParsing) {
|
|
32367
32429
|
if (e.name === "SyntaxError") {
|
|
@@ -32371,7 +32433,7 @@ var defaults$3 = {
|
|
|
32371
32433
|
}
|
|
32372
32434
|
}
|
|
32373
32435
|
}
|
|
32374
|
-
return
|
|
32436
|
+
return data49;
|
|
32375
32437
|
}],
|
|
32376
32438
|
timeout: 0,
|
|
32377
32439
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -32380,11 +32442,11 @@ var defaults$3 = {
|
|
|
32380
32442
|
maxBodyLength: -1,
|
|
32381
32443
|
validateStatus: function validateStatus(status2) {
|
|
32382
32444
|
return status2 >= 200 && status2 < 300;
|
|
32383
|
-
}
|
|
32384
|
-
|
|
32385
|
-
|
|
32386
|
-
|
|
32387
|
-
|
|
32445
|
+
}
|
|
32446
|
+
};
|
|
32447
|
+
defaults$3.headers = {
|
|
32448
|
+
common: {
|
|
32449
|
+
"Accept": "application/json, text/plain, */*"
|
|
32388
32450
|
}
|
|
32389
32451
|
};
|
|
32390
32452
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -32396,12 +32458,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
32396
32458
|
var defaults_1 = defaults$3;
|
|
32397
32459
|
var utils$4 = utils$d;
|
|
32398
32460
|
var defaults$2 = defaults_1;
|
|
32399
|
-
var transformData$1 = function transformData(
|
|
32461
|
+
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32400
32462
|
var context2 = this || defaults$2;
|
|
32401
32463
|
utils$4.forEach(fns, function transform(fn2) {
|
|
32402
|
-
|
|
32464
|
+
data49 = fn2.call(context2, data49, headers);
|
|
32403
32465
|
});
|
|
32404
|
-
return
|
|
32466
|
+
return data49;
|
|
32405
32467
|
};
|
|
32406
32468
|
var isCancel$1 = function isCancel(value17) {
|
|
32407
32469
|
return !!(value17 && value17.__CANCEL__);
|
|
@@ -32410,14 +32472,10 @@ var utils$3 = utils$d;
|
|
|
32410
32472
|
var transformData2 = transformData$1;
|
|
32411
32473
|
var isCancel2 = isCancel$1;
|
|
32412
32474
|
var defaults$1 = defaults_1;
|
|
32413
|
-
var Cancel$1 = Cancel_1;
|
|
32414
32475
|
function throwIfCancellationRequested(config2) {
|
|
32415
32476
|
if (config2.cancelToken) {
|
|
32416
32477
|
config2.cancelToken.throwIfRequested();
|
|
32417
32478
|
}
|
|
32418
|
-
if (config2.signal && config2.signal.aborted) {
|
|
32419
|
-
throw new Cancel$1("canceled");
|
|
32420
|
-
}
|
|
32421
32479
|
}
|
|
32422
32480
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32423
32481
|
throwIfCancellationRequested(config2);
|
|
@@ -32468,6 +32526,34 @@ var utils$2 = utils$d;
|
|
|
32468
32526
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32469
32527
|
config2 = config2 || {};
|
|
32470
32528
|
var config3 = {};
|
|
32529
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32530
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32531
|
+
var defaultToConfig2Keys = [
|
|
32532
|
+
"baseURL",
|
|
32533
|
+
"transformRequest",
|
|
32534
|
+
"transformResponse",
|
|
32535
|
+
"paramsSerializer",
|
|
32536
|
+
"timeout",
|
|
32537
|
+
"timeoutMessage",
|
|
32538
|
+
"withCredentials",
|
|
32539
|
+
"adapter",
|
|
32540
|
+
"responseType",
|
|
32541
|
+
"xsrfCookieName",
|
|
32542
|
+
"xsrfHeaderName",
|
|
32543
|
+
"onUploadProgress",
|
|
32544
|
+
"onDownloadProgress",
|
|
32545
|
+
"decompress",
|
|
32546
|
+
"maxContentLength",
|
|
32547
|
+
"maxBodyLength",
|
|
32548
|
+
"maxRedirects",
|
|
32549
|
+
"transport",
|
|
32550
|
+
"httpAgent",
|
|
32551
|
+
"httpsAgent",
|
|
32552
|
+
"cancelToken",
|
|
32553
|
+
"socketPath",
|
|
32554
|
+
"responseEncoding"
|
|
32555
|
+
];
|
|
32556
|
+
var directMergeKeys = ["validateStatus"];
|
|
32471
32557
|
function getMergedValue(target2, source2) {
|
|
32472
32558
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32473
32559
|
return utils$2.merge(target2, source2);
|
|
@@ -32480,69 +32566,141 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
32480
32566
|
}
|
|
32481
32567
|
function mergeDeepProperties(prop) {
|
|
32482
32568
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32483
|
-
|
|
32569
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32484
32570
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32485
|
-
|
|
32571
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32486
32572
|
}
|
|
32487
32573
|
}
|
|
32488
|
-
function valueFromConfig2(prop) {
|
|
32574
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
32489
32575
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32490
|
-
|
|
32576
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32491
32577
|
}
|
|
32492
|
-
}
|
|
32493
|
-
|
|
32578
|
+
});
|
|
32579
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
32580
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32494
32581
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32495
|
-
|
|
32582
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32496
32583
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32497
|
-
|
|
32584
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32498
32585
|
}
|
|
32499
|
-
}
|
|
32500
|
-
function
|
|
32586
|
+
});
|
|
32587
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
32501
32588
|
if (prop in config2) {
|
|
32502
|
-
|
|
32589
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32503
32590
|
} else if (prop in config1) {
|
|
32504
|
-
|
|
32505
|
-
}
|
|
32506
|
-
}
|
|
32507
|
-
var
|
|
32508
|
-
|
|
32509
|
-
|
|
32510
|
-
"data": valueFromConfig2,
|
|
32511
|
-
"baseURL": defaultToConfig2,
|
|
32512
|
-
"transformRequest": defaultToConfig2,
|
|
32513
|
-
"transformResponse": defaultToConfig2,
|
|
32514
|
-
"paramsSerializer": defaultToConfig2,
|
|
32515
|
-
"timeout": defaultToConfig2,
|
|
32516
|
-
"timeoutMessage": defaultToConfig2,
|
|
32517
|
-
"withCredentials": defaultToConfig2,
|
|
32518
|
-
"adapter": defaultToConfig2,
|
|
32519
|
-
"responseType": defaultToConfig2,
|
|
32520
|
-
"xsrfCookieName": defaultToConfig2,
|
|
32521
|
-
"xsrfHeaderName": defaultToConfig2,
|
|
32522
|
-
"onUploadProgress": defaultToConfig2,
|
|
32523
|
-
"onDownloadProgress": defaultToConfig2,
|
|
32524
|
-
"decompress": defaultToConfig2,
|
|
32525
|
-
"maxContentLength": defaultToConfig2,
|
|
32526
|
-
"maxBodyLength": defaultToConfig2,
|
|
32527
|
-
"transport": defaultToConfig2,
|
|
32528
|
-
"httpAgent": defaultToConfig2,
|
|
32529
|
-
"httpsAgent": defaultToConfig2,
|
|
32530
|
-
"cancelToken": defaultToConfig2,
|
|
32531
|
-
"socketPath": defaultToConfig2,
|
|
32532
|
-
"responseEncoding": defaultToConfig2,
|
|
32533
|
-
"validateStatus": mergeDirectKeys
|
|
32534
|
-
};
|
|
32535
|
-
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
32536
|
-
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
32537
|
-
var configValue = merge2(prop);
|
|
32538
|
-
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
32591
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32592
|
+
}
|
|
32593
|
+
});
|
|
32594
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
32595
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
32596
|
+
return axiosKeys.indexOf(key) === -1;
|
|
32539
32597
|
});
|
|
32598
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32540
32599
|
return config3;
|
|
32541
32600
|
};
|
|
32542
|
-
|
|
32543
|
-
|
|
32601
|
+
const name = "axios";
|
|
32602
|
+
const version = "0.21.4";
|
|
32603
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
32604
|
+
const main = "index.js";
|
|
32605
|
+
const scripts = {
|
|
32606
|
+
test: "grunt test",
|
|
32607
|
+
start: "node ./sandbox/server.js",
|
|
32608
|
+
build: "NODE_ENV=production grunt build",
|
|
32609
|
+
preversion: "npm test",
|
|
32610
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32611
|
+
postversion: "git push && git push --tags",
|
|
32612
|
+
examples: "node ./examples/server.js",
|
|
32613
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32614
|
+
fix: "eslint --fix lib/**/*.js"
|
|
32615
|
+
};
|
|
32616
|
+
const repository = {
|
|
32617
|
+
type: "git",
|
|
32618
|
+
url: "https://github.com/axios/axios.git"
|
|
32619
|
+
};
|
|
32620
|
+
const keywords = [
|
|
32621
|
+
"xhr",
|
|
32622
|
+
"http",
|
|
32623
|
+
"ajax",
|
|
32624
|
+
"promise",
|
|
32625
|
+
"node"
|
|
32626
|
+
];
|
|
32627
|
+
const author = "Matt Zabriskie";
|
|
32628
|
+
const license = "MIT";
|
|
32629
|
+
const bugs = {
|
|
32630
|
+
url: "https://github.com/axios/axios/issues"
|
|
32544
32631
|
};
|
|
32545
|
-
|
|
32632
|
+
const homepage = "https://axios-http.com";
|
|
32633
|
+
const devDependencies = {
|
|
32634
|
+
coveralls: "^3.0.0",
|
|
32635
|
+
"es6-promise": "^4.2.4",
|
|
32636
|
+
grunt: "^1.3.0",
|
|
32637
|
+
"grunt-banner": "^0.6.0",
|
|
32638
|
+
"grunt-cli": "^1.2.0",
|
|
32639
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
32640
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
32641
|
+
"grunt-eslint": "^23.0.0",
|
|
32642
|
+
"grunt-karma": "^4.0.0",
|
|
32643
|
+
"grunt-mocha-test": "^0.13.3",
|
|
32644
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
32645
|
+
"grunt-webpack": "^4.0.2",
|
|
32646
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32647
|
+
"jasmine-core": "^2.4.1",
|
|
32648
|
+
karma: "^6.3.2",
|
|
32649
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
32650
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
32651
|
+
"karma-jasmine": "^1.1.1",
|
|
32652
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
32653
|
+
"karma-safari-launcher": "^1.0.0",
|
|
32654
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
32655
|
+
"karma-sinon": "^1.0.5",
|
|
32656
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
32657
|
+
"karma-webpack": "^4.0.2",
|
|
32658
|
+
"load-grunt-tasks": "^3.5.2",
|
|
32659
|
+
minimist: "^1.2.0",
|
|
32660
|
+
mocha: "^8.2.1",
|
|
32661
|
+
sinon: "^4.5.0",
|
|
32662
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
32663
|
+
typescript: "^4.0.5",
|
|
32664
|
+
"url-search-params": "^0.10.0",
|
|
32665
|
+
webpack: "^4.44.2",
|
|
32666
|
+
"webpack-dev-server": "^3.11.0"
|
|
32667
|
+
};
|
|
32668
|
+
const browser = {
|
|
32669
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32670
|
+
};
|
|
32671
|
+
const jsdelivr = "dist/axios.min.js";
|
|
32672
|
+
const unpkg = "dist/axios.min.js";
|
|
32673
|
+
const typings = "./index.d.ts";
|
|
32674
|
+
const dependencies = {
|
|
32675
|
+
"follow-redirects": "^1.14.0"
|
|
32676
|
+
};
|
|
32677
|
+
const bundlesize = [
|
|
32678
|
+
{
|
|
32679
|
+
path: "./dist/axios.min.js",
|
|
32680
|
+
threshold: "5kB"
|
|
32681
|
+
}
|
|
32682
|
+
];
|
|
32683
|
+
var require$$0 = {
|
|
32684
|
+
name,
|
|
32685
|
+
version,
|
|
32686
|
+
description,
|
|
32687
|
+
main,
|
|
32688
|
+
scripts,
|
|
32689
|
+
repository,
|
|
32690
|
+
keywords,
|
|
32691
|
+
author,
|
|
32692
|
+
license,
|
|
32693
|
+
bugs,
|
|
32694
|
+
homepage,
|
|
32695
|
+
devDependencies,
|
|
32696
|
+
browser,
|
|
32697
|
+
jsdelivr,
|
|
32698
|
+
unpkg,
|
|
32699
|
+
typings,
|
|
32700
|
+
dependencies,
|
|
32701
|
+
bundlesize
|
|
32702
|
+
};
|
|
32703
|
+
var pkg = require$$0;
|
|
32546
32704
|
var validators$1 = {};
|
|
32547
32705
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
32548
32706
|
validators$1[type2] = function validator4(thing) {
|
|
@@ -32550,15 +32708,29 @@ var validators$1 = {};
|
|
|
32550
32708
|
};
|
|
32551
32709
|
});
|
|
32552
32710
|
var deprecatedWarnings = {};
|
|
32711
|
+
var currentVerArr = pkg.version.split(".");
|
|
32712
|
+
function isOlderVersion(version2, thanVersion) {
|
|
32713
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32714
|
+
var destVer = version2.split(".");
|
|
32715
|
+
for (var i = 0; i < 3; i++) {
|
|
32716
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
32717
|
+
return true;
|
|
32718
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32719
|
+
return false;
|
|
32720
|
+
}
|
|
32721
|
+
}
|
|
32722
|
+
return false;
|
|
32723
|
+
}
|
|
32553
32724
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32725
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32554
32726
|
function formatMessage(opt, desc) {
|
|
32555
|
-
return "[Axios v" +
|
|
32727
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32556
32728
|
}
|
|
32557
32729
|
return function(value17, opt, opts) {
|
|
32558
32730
|
if (validator4 === false) {
|
|
32559
|
-
throw new Error(formatMessage(opt, " has been removed
|
|
32731
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
32560
32732
|
}
|
|
32561
|
-
if (
|
|
32733
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
32562
32734
|
deprecatedWarnings[opt] = true;
|
|
32563
32735
|
console.warn(
|
|
32564
32736
|
formatMessage(
|
|
@@ -32593,6 +32765,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
32593
32765
|
}
|
|
32594
32766
|
}
|
|
32595
32767
|
var validator$1 = {
|
|
32768
|
+
isOlderVersion,
|
|
32596
32769
|
assertOptions,
|
|
32597
32770
|
validators: validators$1
|
|
32598
32771
|
};
|
|
@@ -32628,9 +32801,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
32628
32801
|
var transitional2 = config2.transitional;
|
|
32629
32802
|
if (transitional2 !== void 0) {
|
|
32630
32803
|
validator3.assertOptions(transitional2, {
|
|
32631
|
-
silentJSONParsing: validators.transitional(validators.boolean),
|
|
32632
|
-
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
32633
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
32804
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32805
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32806
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
32634
32807
|
}, false);
|
|
32635
32808
|
}
|
|
32636
32809
|
var requestInterceptorChain = [];
|
|
@@ -32692,15 +32865,23 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
32692
32865
|
};
|
|
32693
32866
|
});
|
|
32694
32867
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32695
|
-
Axios$1.prototype[method] = function(url,
|
|
32868
|
+
Axios$1.prototype[method] = function(url, data49, config2) {
|
|
32696
32869
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
32697
32870
|
method,
|
|
32698
32871
|
url,
|
|
32699
|
-
data:
|
|
32872
|
+
data: data49
|
|
32700
32873
|
}));
|
|
32701
32874
|
};
|
|
32702
32875
|
});
|
|
32703
32876
|
var Axios_1 = Axios$1;
|
|
32877
|
+
function Cancel$1(message) {
|
|
32878
|
+
this.message = message;
|
|
32879
|
+
}
|
|
32880
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
32881
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32882
|
+
};
|
|
32883
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
32884
|
+
var Cancel_1 = Cancel$1;
|
|
32704
32885
|
var Cancel = Cancel_1;
|
|
32705
32886
|
function CancelToken(executor) {
|
|
32706
32887
|
if (typeof executor !== "function") {
|
|
@@ -32711,27 +32892,6 @@ function CancelToken(executor) {
|
|
|
32711
32892
|
resolvePromise = resolve;
|
|
32712
32893
|
});
|
|
32713
32894
|
var token = this;
|
|
32714
|
-
this.promise.then(function(cancel2) {
|
|
32715
|
-
if (!token._listeners)
|
|
32716
|
-
return;
|
|
32717
|
-
var i;
|
|
32718
|
-
var l = token._listeners.length;
|
|
32719
|
-
for (i = 0; i < l; i++) {
|
|
32720
|
-
token._listeners[i](cancel2);
|
|
32721
|
-
}
|
|
32722
|
-
token._listeners = null;
|
|
32723
|
-
});
|
|
32724
|
-
this.promise.then = function(onfulfilled) {
|
|
32725
|
-
var _resolve;
|
|
32726
|
-
var promise = new Promise(function(resolve) {
|
|
32727
|
-
token.subscribe(resolve);
|
|
32728
|
-
_resolve = resolve;
|
|
32729
|
-
}).then(onfulfilled);
|
|
32730
|
-
promise.cancel = function reject() {
|
|
32731
|
-
token.unsubscribe(_resolve);
|
|
32732
|
-
};
|
|
32733
|
-
return promise;
|
|
32734
|
-
};
|
|
32735
32895
|
executor(function cancel2(message) {
|
|
32736
32896
|
if (token.reason) {
|
|
32737
32897
|
return;
|
|
@@ -32745,26 +32905,6 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
32745
32905
|
throw this.reason;
|
|
32746
32906
|
}
|
|
32747
32907
|
};
|
|
32748
|
-
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
32749
|
-
if (this.reason) {
|
|
32750
|
-
listener(this.reason);
|
|
32751
|
-
return;
|
|
32752
|
-
}
|
|
32753
|
-
if (this._listeners) {
|
|
32754
|
-
this._listeners.push(listener);
|
|
32755
|
-
} else {
|
|
32756
|
-
this._listeners = [listener];
|
|
32757
|
-
}
|
|
32758
|
-
};
|
|
32759
|
-
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
32760
|
-
if (!this._listeners) {
|
|
32761
|
-
return;
|
|
32762
|
-
}
|
|
32763
|
-
var index2 = this._listeners.indexOf(listener);
|
|
32764
|
-
if (index2 !== -1) {
|
|
32765
|
-
this._listeners.splice(index2, 1);
|
|
32766
|
-
}
|
|
32767
|
-
};
|
|
32768
32908
|
CancelToken.source = function source() {
|
|
32769
32909
|
var cancel2;
|
|
32770
32910
|
var token = new CancelToken(function executor(c) {
|
|
@@ -32794,17 +32934,16 @@ function createInstance(defaultConfig2) {
|
|
|
32794
32934
|
var instance2 = bind2(Axios.prototype.request, context2);
|
|
32795
32935
|
utils.extend(instance2, Axios.prototype, context2);
|
|
32796
32936
|
utils.extend(instance2, context2);
|
|
32797
|
-
instance2.create = function create(instanceConfig) {
|
|
32798
|
-
return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
|
|
32799
|
-
};
|
|
32800
32937
|
return instance2;
|
|
32801
32938
|
}
|
|
32802
32939
|
var axios$1 = createInstance(defaults);
|
|
32803
32940
|
axios$1.Axios = Axios;
|
|
32941
|
+
axios$1.create = function create(instanceConfig) {
|
|
32942
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
32943
|
+
};
|
|
32804
32944
|
axios$1.Cancel = Cancel_1;
|
|
32805
32945
|
axios$1.CancelToken = CancelToken_1;
|
|
32806
32946
|
axios$1.isCancel = isCancel$1;
|
|
32807
|
-
axios$1.VERSION = data49.version;
|
|
32808
32947
|
axios$1.all = function all(promises) {
|
|
32809
32948
|
return Promise.all(promises);
|
|
32810
32949
|
};
|
|
@@ -33215,12 +33354,12 @@ var user = {
|
|
|
33215
33354
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
33216
33355
|
return userInfo;
|
|
33217
33356
|
}
|
|
33218
|
-
const { data:
|
|
33219
|
-
commit2("setAvatar",
|
|
33220
|
-
commit2("setUserName",
|
|
33221
|
-
commit2("setUserManageUnitId",
|
|
33222
|
-
setUserInfoCache(
|
|
33223
|
-
return
|
|
33357
|
+
const { data: data49 } = await getUserInfoApi();
|
|
33358
|
+
commit2("setAvatar", data49.userAvater);
|
|
33359
|
+
commit2("setUserName", data49.userName);
|
|
33360
|
+
commit2("setUserManageUnitId", data49.manageUnitId);
|
|
33361
|
+
setUserInfoCache(data49);
|
|
33362
|
+
return data49;
|
|
33224
33363
|
}
|
|
33225
33364
|
}
|
|
33226
33365
|
};
|
|
@@ -33415,8 +33554,8 @@ var app = {
|
|
|
33415
33554
|
async getAppListData({ commit: commit2, getters }) {
|
|
33416
33555
|
let appList = getters.getAppList;
|
|
33417
33556
|
if (!appList.length) {
|
|
33418
|
-
const { data:
|
|
33419
|
-
appList =
|
|
33557
|
+
const { data: data49 = [] } = await getAppListApi();
|
|
33558
|
+
appList = data49.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
33420
33559
|
commit2("setAppList", appList);
|
|
33421
33560
|
}
|
|
33422
33561
|
let appId = "";
|
|
@@ -33520,9 +33659,9 @@ var app = {
|
|
|
33520
33659
|
},
|
|
33521
33660
|
async getMyAppsList({ commit: commit2 }, payload) {
|
|
33522
33661
|
try {
|
|
33523
|
-
let { data:
|
|
33524
|
-
|
|
33525
|
-
commit2("setMyAppsList",
|
|
33662
|
+
let { data: data49 } = await getIndexPreset(payload);
|
|
33663
|
+
data49 = data49 || "[]";
|
|
33664
|
+
commit2("setMyAppsList", data49);
|
|
33526
33665
|
} catch (error) {
|
|
33527
33666
|
console.error("getMyAppsList:", error);
|
|
33528
33667
|
}
|
|
@@ -33548,8 +33687,8 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33548
33687
|
doChangeTheme(theme);
|
|
33549
33688
|
if (location.pathname.includes("scyxweb")) {
|
|
33550
33689
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
33551
|
-
axios$3.get(url).then((
|
|
33552
|
-
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {},
|
|
33690
|
+
axios$3.get(url).then((data49) => {
|
|
33691
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
33553
33692
|
});
|
|
33554
33693
|
}
|
|
33555
33694
|
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
@@ -33619,7 +33758,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33619
33758
|
install(window.Vue);
|
|
33620
33759
|
}
|
|
33621
33760
|
const API = {
|
|
33622
|
-
version: pkg.version,
|
|
33761
|
+
version: pkg$1.version,
|
|
33623
33762
|
install,
|
|
33624
33763
|
components,
|
|
33625
33764
|
plugins,
|