@indfnd/common-mobile 1.0.58 → 1.0.60
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 +10 -0
- package/dist/ind-common-mobile.es.js +398 -319
- 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.59";
|
|
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() {
|
|
@@ -1223,6 +1223,31 @@ function getIconByPositionId(options) {
|
|
|
1223
1223
|
return null;
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
|
+
function getImgByPermission(options) {
|
|
1227
|
+
try {
|
|
1228
|
+
const { permission: permission2, meta, config: config2, ossServerContext = "/user-manage-server" } = options || {};
|
|
1229
|
+
const { icon } = meta || {};
|
|
1230
|
+
if (!permission2 || !config2) {
|
|
1231
|
+
return "";
|
|
1232
|
+
}
|
|
1233
|
+
const urlByMobileConfig = getIconByPositionId({
|
|
1234
|
+
positionId: permission2,
|
|
1235
|
+
config: config2
|
|
1236
|
+
});
|
|
1237
|
+
if (urlByMobileConfig) {
|
|
1238
|
+
return urlByMobileConfig;
|
|
1239
|
+
}
|
|
1240
|
+
if (icon && icon.slice(0, 3) === "oss" && icon.length >= 4) {
|
|
1241
|
+
const newUri = icon.slice(4);
|
|
1242
|
+
return `${ossServerContext}/oss/file/get/${newUri}`;
|
|
1243
|
+
}
|
|
1244
|
+
const isHb2 = location.pathname.includes("scyxweb");
|
|
1245
|
+
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${icon || ""}`;
|
|
1246
|
+
} catch (e) {
|
|
1247
|
+
console.error("[getImgByPermission] \u83B7\u53D6\u56FE\u7247\u8DEF\u5F84\u5931\u8D25:", e);
|
|
1248
|
+
return "";
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1226
1251
|
const defaultSpan = 24;
|
|
1227
1252
|
const showMorePosition = 3;
|
|
1228
1253
|
var FormImpl = {
|
|
@@ -3819,21 +3844,21 @@ const __vue2_script$A = {
|
|
|
3819
3844
|
}
|
|
3820
3845
|
this.loadingComp = false;
|
|
3821
3846
|
}, 2),
|
|
3822
|
-
setForm(table,
|
|
3847
|
+
setForm(table, data49) {
|
|
3823
3848
|
let field = table.dataField;
|
|
3824
3849
|
if (table.type == "form") {
|
|
3825
3850
|
if (field) {
|
|
3826
|
-
this.form[field] =
|
|
3851
|
+
this.form[field] = data49;
|
|
3827
3852
|
} else {
|
|
3828
|
-
this.form =
|
|
3853
|
+
this.form = data49;
|
|
3829
3854
|
}
|
|
3830
3855
|
} else if (table.type == "list") {
|
|
3831
3856
|
let rowKey = table.rowKey || "id";
|
|
3832
3857
|
let listTmp = _.cloneDeep(this.form[field]);
|
|
3833
3858
|
let tmpRow = _.find(listTmp, (d) => {
|
|
3834
|
-
return d[rowKey] ==
|
|
3859
|
+
return d[rowKey] == data49[rowKey];
|
|
3835
3860
|
});
|
|
3836
|
-
_.merge(tmpRow,
|
|
3861
|
+
_.merge(tmpRow, data49);
|
|
3837
3862
|
this.form[field] = listTmp;
|
|
3838
3863
|
}
|
|
3839
3864
|
},
|
|
@@ -4121,12 +4146,12 @@ const __vue2_script$z = {
|
|
|
4121
4146
|
params = this.renderParams(params);
|
|
4122
4147
|
}
|
|
4123
4148
|
const result = await this.dataApi(params);
|
|
4124
|
-
let
|
|
4149
|
+
let data49 = result.data.rows || result.data.records || [];
|
|
4125
4150
|
if (this.disablePage && result.data instanceof Array) {
|
|
4126
|
-
|
|
4151
|
+
data49 = result.data;
|
|
4127
4152
|
}
|
|
4128
|
-
this.rows = [...this.rows, ...
|
|
4129
|
-
this.allData = [...this.allData, ...
|
|
4153
|
+
this.rows = [...this.rows, ...data49];
|
|
4154
|
+
this.allData = [...this.allData, ...data49];
|
|
4130
4155
|
this.pagination.offset += this.pagination.limit;
|
|
4131
4156
|
this.currentPage++;
|
|
4132
4157
|
this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
|
|
@@ -4229,13 +4254,13 @@ const __vue2_script$z = {
|
|
|
4229
4254
|
params = this.renderParams(params);
|
|
4230
4255
|
}
|
|
4231
4256
|
const result = await this.dataApi(params);
|
|
4232
|
-
let
|
|
4257
|
+
let data49 = result.data.rows || result.data.records || [];
|
|
4233
4258
|
if (this.disablePage && result.data instanceof Array) {
|
|
4234
|
-
|
|
4259
|
+
data49 = result.data;
|
|
4235
4260
|
}
|
|
4236
|
-
this.rows =
|
|
4237
|
-
this.allData = [...
|
|
4238
|
-
this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (
|
|
4261
|
+
this.rows = data49;
|
|
4262
|
+
this.allData = [...data49];
|
|
4263
|
+
this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (data49 == null ? void 0 : data49.length) || 0 : 0);
|
|
4239
4264
|
if (!this.disablePage) {
|
|
4240
4265
|
this.pagination.total = this.total;
|
|
4241
4266
|
this.isFinished = this.pagination.limit >= this.pagination.total;
|
|
@@ -5108,14 +5133,14 @@ function emit(context2, eventName) {
|
|
|
5108
5133
|
}
|
|
5109
5134
|
}
|
|
5110
5135
|
}
|
|
5111
|
-
function mount(Component,
|
|
5136
|
+
function mount(Component, data49) {
|
|
5112
5137
|
var instance2 = new Vue$1({
|
|
5113
5138
|
el: document.createElement("div"),
|
|
5114
5139
|
props: Component.props,
|
|
5115
5140
|
render: function render83(h) {
|
|
5116
5141
|
return h(Component, _extends$2({
|
|
5117
5142
|
props: this.$props
|
|
5118
|
-
},
|
|
5143
|
+
}, data49));
|
|
5119
5144
|
}
|
|
5120
5145
|
});
|
|
5121
5146
|
document.body.appendChild(instance2.$el);
|
|
@@ -5521,7 +5546,7 @@ function PopupMixin(options) {
|
|
|
5521
5546
|
};
|
|
5522
5547
|
},
|
|
5523
5548
|
props: popupMixinProps,
|
|
5524
|
-
data: function
|
|
5549
|
+
data: function data49() {
|
|
5525
5550
|
this.onReopenCallback = [];
|
|
5526
5551
|
return {
|
|
5527
5552
|
inited: this.value
|
|
@@ -5973,11 +5998,11 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
5973
5998
|
}
|
|
5974
5999
|
}
|
|
5975
6000
|
function Description() {
|
|
5976
|
-
var
|
|
5977
|
-
if (
|
|
6001
|
+
var description2 = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
6002
|
+
if (description2) {
|
|
5978
6003
|
return h("div", {
|
|
5979
6004
|
"class": bem$1s("description")
|
|
5980
|
-
}, [
|
|
6005
|
+
}, [description2]);
|
|
5981
6006
|
}
|
|
5982
6007
|
}
|
|
5983
6008
|
return h(Popup, _mergeJSXProps([{
|
|
@@ -6372,7 +6397,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6372
6397
|
var _domProps;
|
|
6373
6398
|
var text = _this4.getOptionText(option2);
|
|
6374
6399
|
var disabled = isOptionDisabled(option2);
|
|
6375
|
-
var
|
|
6400
|
+
var data49 = {
|
|
6376
6401
|
style: optionStyle,
|
|
6377
6402
|
attrs: {
|
|
6378
6403
|
role: "button",
|
|
@@ -6392,7 +6417,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6392
6417
|
class: "van-ellipsis",
|
|
6393
6418
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
|
|
6394
6419
|
};
|
|
6395
|
-
return h("li", _mergeJSXProps([{},
|
|
6420
|
+
return h("li", _mergeJSXProps([{}, data49]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
|
|
6396
6421
|
});
|
|
6397
6422
|
}
|
|
6398
6423
|
},
|
|
@@ -8196,7 +8221,7 @@ function ParentMixin(parent) {
|
|
|
8196
8221
|
var _ref;
|
|
8197
8222
|
return _ref = {}, _ref[parent] = this, _ref;
|
|
8198
8223
|
},
|
|
8199
|
-
data: function
|
|
8224
|
+
data: function data49() {
|
|
8200
8225
|
return {
|
|
8201
8226
|
children: []
|
|
8202
8227
|
};
|
|
@@ -8462,7 +8487,7 @@ var VanDialog = createComponent$1r({
|
|
|
8462
8487
|
var message = this.message, messageAlign = this.messageAlign;
|
|
8463
8488
|
if (message) {
|
|
8464
8489
|
var _bem, _domProps;
|
|
8465
|
-
var
|
|
8490
|
+
var data49 = {
|
|
8466
8491
|
class: bem$1i("message", (_bem = {
|
|
8467
8492
|
"has-title": hasTitle
|
|
8468
8493
|
}, _bem[messageAlign] = messageAlign, _bem)),
|
|
@@ -8472,7 +8497,7 @@ var VanDialog = createComponent$1r({
|
|
|
8472
8497
|
"class": bem$1i("content", {
|
|
8473
8498
|
isolated: !hasTitle
|
|
8474
8499
|
})
|
|
8475
|
-
}, [h("div", _mergeJSXProps([{},
|
|
8500
|
+
}, [h("div", _mergeJSXProps([{}, data49]))]);
|
|
8476
8501
|
}
|
|
8477
8502
|
}
|
|
8478
8503
|
},
|
|
@@ -9061,7 +9086,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9061
9086
|
},
|
|
9062
9087
|
render: function render12(h) {
|
|
9063
9088
|
var _this5 = this;
|
|
9064
|
-
var
|
|
9089
|
+
var data49 = this.data, errorInfo = this.errorInfo, disableArea = this.disableArea, hideBottomFields2 = this.hideBottomFields;
|
|
9065
9090
|
var onFocus5 = function onFocus6(name2) {
|
|
9066
9091
|
return function() {
|
|
9067
9092
|
return _this5.onFocus(name2);
|
|
@@ -9082,9 +9107,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9082
9107
|
"focus": onFocus5("name")
|
|
9083
9108
|
},
|
|
9084
9109
|
"model": {
|
|
9085
|
-
value:
|
|
9110
|
+
value: data49.name,
|
|
9086
9111
|
callback: function callback2($$v) {
|
|
9087
|
-
_this5.$set(
|
|
9112
|
+
_this5.$set(data49, "name", $$v);
|
|
9088
9113
|
}
|
|
9089
9114
|
}
|
|
9090
9115
|
}), h(Field, {
|
|
@@ -9100,9 +9125,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9100
9125
|
"focus": onFocus5("tel")
|
|
9101
9126
|
},
|
|
9102
9127
|
"model": {
|
|
9103
|
-
value:
|
|
9128
|
+
value: data49.tel,
|
|
9104
9129
|
callback: function callback2($$v) {
|
|
9105
|
-
_this5.$set(
|
|
9130
|
+
_this5.$set(data49, "tel", $$v);
|
|
9106
9131
|
}
|
|
9107
9132
|
}
|
|
9108
9133
|
}), h(Field, {
|
|
@@ -9133,7 +9158,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9133
9158
|
}],
|
|
9134
9159
|
"attrs": {
|
|
9135
9160
|
"focused": this.detailFocused,
|
|
9136
|
-
"value":
|
|
9161
|
+
"value": data49.addressDetail,
|
|
9137
9162
|
"errorMessage": errorInfo.addressDetail,
|
|
9138
9163
|
"detailRows": this.detailRows,
|
|
9139
9164
|
"detailMaxlength": this.detailMaxlength,
|
|
@@ -9164,9 +9189,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9164
9189
|
"focus": onFocus5("postalCode")
|
|
9165
9190
|
},
|
|
9166
9191
|
"model": {
|
|
9167
|
-
value:
|
|
9192
|
+
value: data49.postalCode,
|
|
9168
9193
|
callback: function callback2($$v) {
|
|
9169
|
-
_this5.$set(
|
|
9194
|
+
_this5.$set(data49, "postalCode", $$v);
|
|
9170
9195
|
}
|
|
9171
9196
|
}
|
|
9172
9197
|
}), this.slots()]), this.genSetDefaultCell(h), h("div", {
|
|
@@ -9212,7 +9237,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9212
9237
|
}, [h(Area, {
|
|
9213
9238
|
"ref": "area",
|
|
9214
9239
|
"attrs": {
|
|
9215
|
-
"value":
|
|
9240
|
+
"value": data49.areaCode,
|
|
9216
9241
|
"loading": !this.areaListLoaded,
|
|
9217
9242
|
"areaList": this.areaList,
|
|
9218
9243
|
"columnsPlaceholder": this.areaColumnsPlaceholder
|
|
@@ -9494,16 +9519,16 @@ function AddressItem(h, props, slots2, ctx) {
|
|
|
9494
9519
|
}
|
|
9495
9520
|
}
|
|
9496
9521
|
function genContent6() {
|
|
9497
|
-
var
|
|
9522
|
+
var data49 = props.data;
|
|
9498
9523
|
var Info2 = [h("div", {
|
|
9499
9524
|
"class": bem$1b("name")
|
|
9500
|
-
}, [
|
|
9525
|
+
}, [data49.name + " " + data49.tel, genTag()]), h("div", {
|
|
9501
9526
|
"class": bem$1b("address")
|
|
9502
|
-
}, [
|
|
9527
|
+
}, [data49.address])];
|
|
9503
9528
|
if (switchable && !disabled) {
|
|
9504
9529
|
return h(Radio, {
|
|
9505
9530
|
"attrs": {
|
|
9506
|
-
"name":
|
|
9531
|
+
"name": data49.id,
|
|
9507
9532
|
"iconSize": 18
|
|
9508
9533
|
}
|
|
9509
9534
|
}, [Info2]);
|
|
@@ -12498,7 +12523,7 @@ var ContactEdit = createComponent$_({
|
|
|
12498
12523
|
render: function render30() {
|
|
12499
12524
|
var _this3 = this;
|
|
12500
12525
|
var h = arguments[0];
|
|
12501
|
-
var
|
|
12526
|
+
var data49 = this.data, errorInfo = this.errorInfo;
|
|
12502
12527
|
var onFocus5 = function onFocus6(name2) {
|
|
12503
12528
|
return function() {
|
|
12504
12529
|
return _this3.onFocus(name2);
|
|
@@ -12520,9 +12545,9 @@ var ContactEdit = createComponent$_({
|
|
|
12520
12545
|
"focus": onFocus5("name")
|
|
12521
12546
|
},
|
|
12522
12547
|
"model": {
|
|
12523
|
-
value:
|
|
12548
|
+
value: data49.name,
|
|
12524
12549
|
callback: function callback2($$v) {
|
|
12525
|
-
_this3.$set(
|
|
12550
|
+
_this3.$set(data49, "name", $$v);
|
|
12526
12551
|
}
|
|
12527
12552
|
}
|
|
12528
12553
|
}), h(Field, {
|
|
@@ -12537,9 +12562,9 @@ var ContactEdit = createComponent$_({
|
|
|
12537
12562
|
"focus": onFocus5("tel")
|
|
12538
12563
|
},
|
|
12539
12564
|
"model": {
|
|
12540
|
-
value:
|
|
12565
|
+
value: data49.tel,
|
|
12541
12566
|
callback: function callback2($$v) {
|
|
12542
|
-
_this3.$set(
|
|
12567
|
+
_this3.$set(data49, "tel", $$v);
|
|
12543
12568
|
}
|
|
12544
12569
|
}
|
|
12545
12570
|
})]), this.showSetDefault && h(Cell$1, {
|
|
@@ -12559,9 +12584,9 @@ var ContactEdit = createComponent$_({
|
|
|
12559
12584
|
}
|
|
12560
12585
|
},
|
|
12561
12586
|
"model": {
|
|
12562
|
-
value:
|
|
12587
|
+
value: data49.isDefault,
|
|
12563
12588
|
callback: function callback2($$v) {
|
|
12564
|
-
_this3.$set(
|
|
12589
|
+
_this3.$set(data49, "isDefault", $$v);
|
|
12565
12590
|
}
|
|
12566
12591
|
}
|
|
12567
12592
|
})]), h("div", {
|
|
@@ -12923,7 +12948,7 @@ var Coupon = createComponent$X({
|
|
|
12923
12948
|
render: function render32() {
|
|
12924
12949
|
var h = arguments[0];
|
|
12925
12950
|
var coupon = this.coupon, disabled = this.disabled;
|
|
12926
|
-
var
|
|
12951
|
+
var description2 = disabled && coupon.reason || coupon.description;
|
|
12927
12952
|
return h("div", {
|
|
12928
12953
|
"class": bem$Q({
|
|
12929
12954
|
disabled
|
|
@@ -12952,9 +12977,9 @@ var Coupon = createComponent$X({
|
|
|
12952
12977
|
"checkedColor": RED
|
|
12953
12978
|
},
|
|
12954
12979
|
"class": bem$Q("corner")
|
|
12955
|
-
})])]),
|
|
12980
|
+
})])]), description2 && h("p", {
|
|
12956
12981
|
"class": bem$Q("description")
|
|
12957
|
-
}, [
|
|
12982
|
+
}, [description2])]);
|
|
12958
12983
|
}
|
|
12959
12984
|
});
|
|
12960
12985
|
var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
|
|
@@ -13986,7 +14011,7 @@ var ClickOutsideMixin = function ClickOutsideMixin2(config2) {
|
|
|
13986
14011
|
default: true
|
|
13987
14012
|
}
|
|
13988
14013
|
},
|
|
13989
|
-
data: function
|
|
14014
|
+
data: function data49() {
|
|
13990
14015
|
var _this = this;
|
|
13991
14016
|
var clickOutsideHandler = function clickOutsideHandler2(event) {
|
|
13992
14017
|
if (_this.closeOnClickOutside && !_this.$el.contains(event.target)) {
|
|
@@ -14340,11 +14365,11 @@ var Empty = createComponent$O({
|
|
|
14340
14365
|
},
|
|
14341
14366
|
genDescription: function genDescription() {
|
|
14342
14367
|
var h = this.$createElement;
|
|
14343
|
-
var
|
|
14344
|
-
if (
|
|
14368
|
+
var description2 = this.slots("description") || this.description;
|
|
14369
|
+
if (description2) {
|
|
14345
14370
|
return h("p", {
|
|
14346
14371
|
"class": bem$J("description")
|
|
14347
|
-
}, [
|
|
14372
|
+
}, [description2]);
|
|
14348
14373
|
}
|
|
14349
14374
|
},
|
|
14350
14375
|
genBottom: function genBottom() {
|
|
@@ -15636,9 +15661,9 @@ var initInstance = function initInstance2() {
|
|
|
15636
15661
|
instance$1.onChange(index2);
|
|
15637
15662
|
}
|
|
15638
15663
|
});
|
|
15639
|
-
instance$1.$on("scale", function(
|
|
15664
|
+
instance$1.$on("scale", function(data49) {
|
|
15640
15665
|
if (instance$1.onScale) {
|
|
15641
|
-
instance$1.onScale(
|
|
15666
|
+
instance$1.onScale(data49);
|
|
15642
15667
|
}
|
|
15643
15668
|
});
|
|
15644
15669
|
};
|
|
@@ -17323,12 +17348,12 @@ var beforeRead = "beforeRead";
|
|
|
17323
17348
|
var read = "read";
|
|
17324
17349
|
var afterRead = "afterRead";
|
|
17325
17350
|
var beforeMain = "beforeMain";
|
|
17326
|
-
var main = "main";
|
|
17351
|
+
var main$1 = "main";
|
|
17327
17352
|
var afterMain = "afterMain";
|
|
17328
17353
|
var beforeWrite = "beforeWrite";
|
|
17329
17354
|
var write = "write";
|
|
17330
17355
|
var afterWrite = "afterWrite";
|
|
17331
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
17356
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, afterMain, beforeWrite, write, afterWrite];
|
|
17332
17357
|
function order(modifiers) {
|
|
17333
17358
|
var map = /* @__PURE__ */ new Map();
|
|
17334
17359
|
var visited = /* @__PURE__ */ new Set();
|
|
@@ -17964,16 +17989,16 @@ function distanceAndSkiddingToXY(placement, rects, offset22) {
|
|
|
17964
17989
|
function offset2(_ref2) {
|
|
17965
17990
|
var state = _ref2.state, options = _ref2.options, name2 = _ref2.name;
|
|
17966
17991
|
var _options$offset = options.offset, offset22 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
17967
|
-
var
|
|
17992
|
+
var data49 = placements.reduce(function(acc, placement) {
|
|
17968
17993
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset22);
|
|
17969
17994
|
return acc;
|
|
17970
17995
|
}, {});
|
|
17971
|
-
var _data$state$placement =
|
|
17996
|
+
var _data$state$placement = data49[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
|
|
17972
17997
|
if (state.modifiersData.popperOffsets != null) {
|
|
17973
17998
|
state.modifiersData.popperOffsets.x += x;
|
|
17974
17999
|
state.modifiersData.popperOffsets.y += y;
|
|
17975
18000
|
}
|
|
17976
|
-
state.modifiersData[name2] =
|
|
18001
|
+
state.modifiersData[name2] = data49;
|
|
17977
18002
|
}
|
|
17978
18003
|
var offset_default = {
|
|
17979
18004
|
name: "offset",
|
|
@@ -18851,17 +18876,17 @@ var ShareSheet = createComponent$p({
|
|
|
18851
18876
|
genHeader: function genHeader() {
|
|
18852
18877
|
var h = this.$createElement;
|
|
18853
18878
|
var title4 = this.slots("title") || this.title;
|
|
18854
|
-
var
|
|
18855
|
-
if (!title4 && !
|
|
18879
|
+
var description2 = this.slots("description") || this.description;
|
|
18880
|
+
if (!title4 && !description2) {
|
|
18856
18881
|
return;
|
|
18857
18882
|
}
|
|
18858
18883
|
return h("div", {
|
|
18859
18884
|
"class": bem$k("header")
|
|
18860
18885
|
}, [title4 && h("h2", {
|
|
18861
18886
|
"class": bem$k("title")
|
|
18862
|
-
}, [title4]),
|
|
18887
|
+
}, [title4]), description2 && h("span", {
|
|
18863
18888
|
"class": bem$k("description")
|
|
18864
|
-
}, [
|
|
18889
|
+
}, [description2])]);
|
|
18865
18890
|
},
|
|
18866
18891
|
genOptions: function genOptions2(options, showBorder) {
|
|
18867
18892
|
var _this = this;
|
|
@@ -20224,9 +20249,9 @@ var Uploader = createComponent$e({
|
|
|
20224
20249
|
return;
|
|
20225
20250
|
}
|
|
20226
20251
|
if (isPromise(response)) {
|
|
20227
|
-
response.then(function(
|
|
20228
|
-
if (
|
|
20229
|
-
_this.readFile(
|
|
20252
|
+
response.then(function(data49) {
|
|
20253
|
+
if (data49) {
|
|
20254
|
+
_this.readFile(data49);
|
|
20230
20255
|
} else {
|
|
20231
20256
|
_this.readFile(files2);
|
|
20232
20257
|
}
|
|
@@ -20682,11 +20707,11 @@ var SkuDateTimeField = createComponent$c({
|
|
|
20682
20707
|
this.showDatePicker = true;
|
|
20683
20708
|
},
|
|
20684
20709
|
onConfirm: function onConfirm4(val) {
|
|
20685
|
-
var
|
|
20710
|
+
var data49 = val;
|
|
20686
20711
|
if (this.type !== "time") {
|
|
20687
|
-
|
|
20712
|
+
data49 = dateToString(val, this.type);
|
|
20688
20713
|
}
|
|
20689
|
-
this.$emit("input",
|
|
20714
|
+
this.$emit("input", data49);
|
|
20690
20715
|
this.showDatePicker = false;
|
|
20691
20716
|
},
|
|
20692
20717
|
onCancel: function onCancel3() {
|
|
@@ -21411,11 +21436,11 @@ var Sku = createComponent$9({
|
|
|
21411
21436
|
}
|
|
21412
21437
|
});
|
|
21413
21438
|
},
|
|
21414
|
-
onOverLimit: function onOverLimit2(
|
|
21415
|
-
var action =
|
|
21439
|
+
onOverLimit: function onOverLimit2(data49) {
|
|
21440
|
+
var action = data49.action, limitType = data49.limitType, quota = data49.quota, quotaUsed = data49.quotaUsed;
|
|
21416
21441
|
var handleOverLimit = this.customStepperConfig.handleOverLimit;
|
|
21417
21442
|
if (handleOverLimit) {
|
|
21418
|
-
handleOverLimit(
|
|
21443
|
+
handleOverLimit(data49);
|
|
21419
21444
|
return;
|
|
21420
21445
|
}
|
|
21421
21446
|
if (action === "minus") {
|
|
@@ -21436,8 +21461,8 @@ var Sku = createComponent$9({
|
|
|
21436
21461
|
}
|
|
21437
21462
|
}
|
|
21438
21463
|
},
|
|
21439
|
-
onStepperState: function onStepperState(
|
|
21440
|
-
this.stepperError =
|
|
21464
|
+
onStepperState: function onStepperState(data49) {
|
|
21465
|
+
this.stepperError = data49.valid ? null : _extends$2({}, data49, {
|
|
21441
21466
|
action: "plus"
|
|
21442
21467
|
});
|
|
21443
21468
|
},
|
|
@@ -23017,10 +23042,10 @@ const __vue2_script$r = {
|
|
|
23017
23042
|
}
|
|
23018
23043
|
},
|
|
23019
23044
|
methods: {
|
|
23020
|
-
setLength(
|
|
23045
|
+
setLength(data49) {
|
|
23021
23046
|
var _a;
|
|
23022
23047
|
if (this.isTree) {
|
|
23023
|
-
let dataTmp = (
|
|
23048
|
+
let dataTmp = (data49 == null ? void 0 : data49.data) || data49;
|
|
23024
23049
|
let leafNodes = [];
|
|
23025
23050
|
deepEach({}, dataTmp, (d, p, idx) => {
|
|
23026
23051
|
var _a2;
|
|
@@ -23030,7 +23055,7 @@ const __vue2_script$r = {
|
|
|
23030
23055
|
});
|
|
23031
23056
|
this.dataLen = (leafNodes == null ? void 0 : leafNodes.length) || 0;
|
|
23032
23057
|
} else {
|
|
23033
|
-
this.dataLen = (
|
|
23058
|
+
this.dataLen = (data49 == null ? void 0 : data49.length) || ((_a = data49 == null ? void 0 : data49.data) == null ? void 0 : _a.length);
|
|
23034
23059
|
}
|
|
23035
23060
|
},
|
|
23036
23061
|
toggleCheckAll() {
|
|
@@ -23334,8 +23359,8 @@ const __vue2_script$q = {
|
|
|
23334
23359
|
clearSelected() {
|
|
23335
23360
|
this.selectedTitles = "";
|
|
23336
23361
|
},
|
|
23337
|
-
updateSearchNum(
|
|
23338
|
-
this.searchNum =
|
|
23362
|
+
updateSearchNum(data49) {
|
|
23363
|
+
this.searchNum = data49;
|
|
23339
23364
|
},
|
|
23340
23365
|
updateSelectedTitles() {
|
|
23341
23366
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -23955,7 +23980,7 @@ var render$i = function() {
|
|
|
23955
23980
|
var _h = _vm.$createElement;
|
|
23956
23981
|
var _c = _vm._self._c || _h;
|
|
23957
23982
|
return _c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" " + _vm._s(_vm.title) + " ")])]), _c("van-grid", { attrs: { "border": false } }, _vm._l(_vm.myAppList, function(menu) {
|
|
23958
|
-
return _c("van-grid-item", { key: menu.meta.permissionId, attrs: { "to": menu.uri } }, [_c("div", { staticStyle: { "height": "100%" } }, [_c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(menu.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", [_vm._v(_vm._s(menu.meta.title))])])])]);
|
|
23983
|
+
return _c("van-grid-item", { key: menu.meta.permissionId, attrs: { "to": menu.uri } }, [_c("div", { staticStyle: { "height": "100%" } }, [_c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(menu.meta.icon, menu) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", [_vm._v(_vm._s(menu.meta.title))])])])]);
|
|
23959
23984
|
}), 1)], 1);
|
|
23960
23985
|
};
|
|
23961
23986
|
var staticRenderFns$i = [];
|
|
@@ -23971,9 +23996,12 @@ const __vue2_script$i = {
|
|
|
23971
23996
|
this.myAppList = this.$store.getters.getMyAppsList;
|
|
23972
23997
|
},
|
|
23973
23998
|
methods: {
|
|
23974
|
-
getImg(uri) {
|
|
23975
|
-
|
|
23976
|
-
|
|
23999
|
+
getImg(uri, item2) {
|
|
24000
|
+
return getImgByPermission({
|
|
24001
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
24002
|
+
meta: { icon: uri },
|
|
24003
|
+
config: this.$config
|
|
24004
|
+
});
|
|
23977
24005
|
}
|
|
23978
24006
|
}
|
|
23979
24007
|
};
|
|
@@ -24011,12 +24039,12 @@ var render$h = function() {
|
|
|
24011
24039
|
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img", style: {
|
|
24012
24040
|
width: _vm.iconSize,
|
|
24013
24041
|
height: _vm.iconSize
|
|
24014
|
-
} }, [_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() {
|
|
24042
|
+
} }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon, _vm.item) } }), _c("van-badge", { staticClass: "ind-app-item-icon-imgbadge", attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
24015
24043
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
24016
24044
|
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img", style: {
|
|
24017
24045
|
width: _vm.iconSize,
|
|
24018
24046
|
height: _vm.iconSize
|
|
24019
|
-
} }, [_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) + " ")])]);
|
|
24047
|
+
} }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon, _vm.item) } })])]), _c("div", { class: ["ind-app-item-title", _vm.$config.ellipsis ? "ellipsis" : ""] }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])]);
|
|
24020
24048
|
};
|
|
24021
24049
|
var staticRenderFns$h = [];
|
|
24022
24050
|
const __vue2_script$h = {
|
|
@@ -24037,14 +24065,13 @@ const __vue2_script$h = {
|
|
|
24037
24065
|
}
|
|
24038
24066
|
},
|
|
24039
24067
|
methods: {
|
|
24040
|
-
getImg(uri) {
|
|
24041
|
-
|
|
24042
|
-
|
|
24043
|
-
|
|
24044
|
-
|
|
24045
|
-
|
|
24046
|
-
|
|
24047
|
-
}
|
|
24068
|
+
getImg(uri, item2) {
|
|
24069
|
+
return getImgByPermission({
|
|
24070
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
24071
|
+
meta: { icon: uri },
|
|
24072
|
+
config: this.$config,
|
|
24073
|
+
ossServerContext: this.ossServerContext
|
|
24074
|
+
});
|
|
24048
24075
|
},
|
|
24049
24076
|
ontouchstart(item2) {
|
|
24050
24077
|
item2.move = false;
|
|
@@ -24187,7 +24214,7 @@ function _iterableToArray(iter) {
|
|
|
24187
24214
|
function _nonIterableSpread() {
|
|
24188
24215
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24189
24216
|
}
|
|
24190
|
-
var version = "1.10.2";
|
|
24217
|
+
var version$1 = "1.10.2";
|
|
24191
24218
|
function userAgent$1(pattern) {
|
|
24192
24219
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24193
24220
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24635,14 +24662,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24635
24662
|
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;
|
|
24636
24663
|
}
|
|
24637
24664
|
var plugins$1 = [];
|
|
24638
|
-
var defaults$
|
|
24665
|
+
var defaults$4 = {
|
|
24639
24666
|
initializeByDefault: true
|
|
24640
24667
|
};
|
|
24641
24668
|
var PluginManager = {
|
|
24642
24669
|
mount: function mount2(plugin) {
|
|
24643
|
-
for (var option2 in defaults$
|
|
24644
|
-
if (defaults$
|
|
24645
|
-
plugin[option2] = defaults$
|
|
24670
|
+
for (var option2 in defaults$4) {
|
|
24671
|
+
if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24672
|
+
plugin[option2] = defaults$4[option2];
|
|
24646
24673
|
}
|
|
24647
24674
|
}
|
|
24648
24675
|
plugins$1.push(plugin);
|
|
@@ -24747,7 +24774,7 @@ function dispatchEvent(_ref) {
|
|
|
24747
24774
|
}
|
|
24748
24775
|
}
|
|
24749
24776
|
var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
24750
|
-
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt,
|
|
24777
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data49 = _objectWithoutProperties(_ref, ["evt"]);
|
|
24751
24778
|
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({
|
|
24752
24779
|
dragEl,
|
|
24753
24780
|
parentEl,
|
|
@@ -24780,7 +24807,7 @@ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
|
24780
24807
|
originalEvent
|
|
24781
24808
|
});
|
|
24782
24809
|
}
|
|
24783
|
-
},
|
|
24810
|
+
}, data49));
|
|
24784
24811
|
};
|
|
24785
24812
|
function _dispatchEvent(info) {
|
|
24786
24813
|
dispatchEvent(_objectSpread({
|
|
@@ -25964,7 +25991,7 @@ Sortable.mount = function() {
|
|
|
25964
25991
|
Sortable.create = function(el, options) {
|
|
25965
25992
|
return new Sortable(el, options);
|
|
25966
25993
|
};
|
|
25967
|
-
Sortable.version = version;
|
|
25994
|
+
Sortable.version = version$1;
|
|
25968
25995
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
25969
25996
|
function AutoScrollPlugin() {
|
|
25970
25997
|
function AutoScroll() {
|
|
@@ -26282,15 +26309,15 @@ function MultiDragPlugin() {
|
|
|
26282
26309
|
selectedClass: "sortable-selected",
|
|
26283
26310
|
multiDragKey: null,
|
|
26284
26311
|
setData: function setData(dataTransfer, dragEl2) {
|
|
26285
|
-
var
|
|
26312
|
+
var data49 = "";
|
|
26286
26313
|
if (multiDragElements.length && multiDragSortable === sortable) {
|
|
26287
26314
|
multiDragElements.forEach(function(multiDragElement, i) {
|
|
26288
|
-
|
|
26315
|
+
data49 += (!i ? "" : ", ") + multiDragElement.textContent;
|
|
26289
26316
|
});
|
|
26290
26317
|
} else {
|
|
26291
|
-
|
|
26318
|
+
data49 = dragEl2.textContent;
|
|
26292
26319
|
}
|
|
26293
|
-
dataTransfer.setData("Text",
|
|
26320
|
+
dataTransfer.setData("Text", data49);
|
|
26294
26321
|
}
|
|
26295
26322
|
};
|
|
26296
26323
|
}
|
|
@@ -26751,10 +26778,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26751
26778
|
Sortable,
|
|
26752
26779
|
Swap: SwapPlugin
|
|
26753
26780
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26754
|
-
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26781
|
+
var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26755
26782
|
(function(module2, exports2) {
|
|
26756
26783
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26757
|
-
module2.exports = factory(require$$0);
|
|
26784
|
+
module2.exports = factory(require$$0$1);
|
|
26758
26785
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26759
26786
|
return function(modules) {
|
|
26760
26787
|
var installedModules = {};
|
|
@@ -27129,7 +27156,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27129
27156
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27130
27157
|
return createDict();
|
|
27131
27158
|
};
|
|
27132
|
-
module3.exports = Object.create || function
|
|
27159
|
+
module3.exports = Object.create || function create2(O, Properties) {
|
|
27133
27160
|
var result;
|
|
27134
27161
|
if (O !== null) {
|
|
27135
27162
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27196,7 +27223,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27196
27223
|
};
|
|
27197
27224
|
},
|
|
27198
27225
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27199
|
-
var
|
|
27226
|
+
var create2 = __webpack_require__("2aeb");
|
|
27200
27227
|
var descriptor = __webpack_require__("4630");
|
|
27201
27228
|
var setToStringTag = __webpack_require__("7f20");
|
|
27202
27229
|
var IteratorPrototype = {};
|
|
@@ -27204,7 +27231,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27204
27231
|
return this;
|
|
27205
27232
|
});
|
|
27206
27233
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27207
|
-
Constructor.prototype =
|
|
27234
|
+
Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27208
27235
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27209
27236
|
};
|
|
27210
27237
|
},
|
|
@@ -28263,7 +28290,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28263
28290
|
name: "draggable",
|
|
28264
28291
|
inheritAttrs: false,
|
|
28265
28292
|
props,
|
|
28266
|
-
data: function
|
|
28293
|
+
data: function data49() {
|
|
28267
28294
|
return {
|
|
28268
28295
|
transitionMode: false,
|
|
28269
28296
|
noneFunctionalComponentMode: false
|
|
@@ -28909,7 +28936,7 @@ var render$e = function() {
|
|
|
28909
28936
|
var _h = _vm.$createElement;
|
|
28910
28937
|
var _c = _vm._self._c || _h;
|
|
28911
28938
|
return _c("div", { staticClass: "ind-myApp-slim" }, [_c("div", { staticClass: "ind-myApp-slim-content" }, [_c("div", { staticClass: "ind-myApp-slim-content-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("div", { staticClass: "ind-myApp-slim-content-center", on: { "click": _vm.open } }, [!_vm.expanded ? _c("div", { staticClass: "ind-myApp-slim-icon-group" }, [_vm._l(_vm.displayedIcons, function(icon, index2) {
|
|
28912
|
-
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon.meta.icon) } })]);
|
|
28939
|
+
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon.meta.icon, icon) } })]);
|
|
28913
28940
|
}), _vm.showMoreIcon ? _c("div", { staticClass: "ind-myApp-slim-icon" }, [_vm._v(" " + _vm._s("...") + " ")]) : _vm._e()], 2) : _vm._e(), _vm.icons.length !== 0 ? _c("van-icon", { staticClass: "ind-myApp-slim-toggle-icon", class: { "ind-myApp-slim-rotate-down": _vm.expanded }, attrs: { "name": "arrow" } }) : _vm._e()], 1), _c("div", { staticClass: "ind-myApp-slim-content-button" }, [_c("div", { staticClass: "ind-myApp-slim-content-button-btn", on: { "click": _vm.edit } }, [_vm._v("\u7F16\u8F91")])])]), _vm.expanded ? _c("div", { staticStyle: { "width": "100%", "height": "auto", "background-color": "#fff" } }, [_c("van-swipe", { attrs: { "show-indicators": true, "loop": false, "indicator-color": "#005aaf" } }, _vm._l(_vm.list, function(page, pageIdx) {
|
|
28914
28941
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.list.length > 1 ? "30px" : "0" } }, [_c("div", { staticClass: "ind-myApp-slim-content-content" }, _vm._l(page, function(item2, itemIdx) {
|
|
28915
28942
|
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item", style: {
|
|
@@ -28955,9 +28982,12 @@ const __vue2_script$e = {
|
|
|
28955
28982
|
}
|
|
28956
28983
|
},
|
|
28957
28984
|
methods: {
|
|
28958
|
-
getImg(uri) {
|
|
28959
|
-
|
|
28960
|
-
|
|
28985
|
+
getImg(uri, item2) {
|
|
28986
|
+
return getImgByPermission({
|
|
28987
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
28988
|
+
meta: { icon: uri },
|
|
28989
|
+
config: this.$config
|
|
28990
|
+
});
|
|
28961
28991
|
},
|
|
28962
28992
|
edit() {
|
|
28963
28993
|
this.$emit("edit");
|
|
@@ -30055,7 +30085,7 @@ var render$9 = function() {
|
|
|
30055
30085
|
var _h = _vm.$createElement;
|
|
30056
30086
|
var _c = _vm._self._c || _h;
|
|
30057
30087
|
return _c("IndMCard", { attrs: { "showHeader": false, "innerPadding": "0px" } }, [_c("div", { staticClass: "ind-myApp-slim-new-content" }, [_c("div", { staticClass: "ind-myApp-slim-new-content-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("div", { staticClass: "ind-myApp-slim-new-content-center", on: { "click": _vm.open } }, [!_vm.expanded ? _c("div", { staticClass: "ind-myApp-slim-new-icon-group" }, _vm._l(_vm.displayedIcons, function(icon, index2) {
|
|
30058
|
-
return _c("div", { key: index2, staticClass: "ind-myApp-slim-new-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "8px", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon.meta.icon) } })]);
|
|
30088
|
+
return _c("div", { key: index2, staticClass: "ind-myApp-slim-new-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "8px", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon.meta.icon, icon) } })]);
|
|
30059
30089
|
}), 0) : _vm._e(), _vm.icons.length !== 0 && !_vm.expanded ? _c("Icon", { staticClass: "ind-myApp-slim-new-toggle-icon", attrs: { "type": "ios-arrow-forward" } }) : _vm._e(), _vm.icons.length !== 0 && _vm.expanded ? _c("Icon", { staticClass: "ind-myApp-slim-new-toggle-icon", attrs: { "type": "ios-arrow-down" } }) : _vm._e()], 1), _c("div", { staticClass: "ind-myApp-slim-new-content-button" }, [_c("div", { staticClass: "ind-myApp-slim-new-content-button-btn", on: { "click": _vm.edit } }, [_vm._v("\u7F16\u8F91")])])]), _vm.expanded ? _c("div", { staticStyle: { "width": "100%", "height": "auto" } }, [_c("van-swipe", { staticClass: "ind-myApp-slim-new-content-swipe", attrs: { "show-indicators": true, "loop": false } }, _vm._l(_vm.list, function(page, pageIdx) {
|
|
30060
30090
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.list.length > 1 ? "30px" : "0" } }, [_c("div", { staticClass: "ind-myApp-slim-new-content-content" }, _vm._l(page, function(item2, itemIdx) {
|
|
30061
30091
|
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-new-content-content-item", style: {
|
|
@@ -30101,9 +30131,12 @@ const __vue2_script$9 = {
|
|
|
30101
30131
|
}
|
|
30102
30132
|
},
|
|
30103
30133
|
methods: {
|
|
30104
|
-
getImg(uri) {
|
|
30105
|
-
|
|
30106
|
-
|
|
30134
|
+
getImg(uri, item2) {
|
|
30135
|
+
return getImgByPermission({
|
|
30136
|
+
permission: item2 == null ? void 0 : item2.name,
|
|
30137
|
+
meta: { icon: uri },
|
|
30138
|
+
config: this.$config
|
|
30139
|
+
});
|
|
30107
30140
|
},
|
|
30108
30141
|
edit() {
|
|
30109
30142
|
this.$emit("edit");
|
|
@@ -30570,9 +30603,9 @@ function getMaxDepth(obj, currentDepth = 1) {
|
|
|
30570
30603
|
}
|
|
30571
30604
|
return maxDepth;
|
|
30572
30605
|
}
|
|
30573
|
-
function calculateMaxDepth(
|
|
30606
|
+
function calculateMaxDepth(data49) {
|
|
30574
30607
|
let maxDepth = 0;
|
|
30575
|
-
for (const item2 of
|
|
30608
|
+
for (const item2 of data49) {
|
|
30576
30609
|
const depth = getMaxDepth(item2);
|
|
30577
30610
|
if (depth > maxDepth) {
|
|
30578
30611
|
maxDepth = depth;
|
|
@@ -32129,8 +32162,7 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
|
|
|
32129
32162
|
columnNumber: this.columnNumber,
|
|
32130
32163
|
stack: this.stack,
|
|
32131
32164
|
config: this.config,
|
|
32132
|
-
code: this.code
|
|
32133
|
-
status: this.response && this.response.status ? this.response.status : null
|
|
32165
|
+
code: this.code
|
|
32134
32166
|
};
|
|
32135
32167
|
};
|
|
32136
32168
|
return error;
|
|
@@ -32286,14 +32318,6 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
32286
32318
|
return true;
|
|
32287
32319
|
};
|
|
32288
32320
|
}();
|
|
32289
|
-
function Cancel$3(message) {
|
|
32290
|
-
this.message = message;
|
|
32291
|
-
}
|
|
32292
|
-
Cancel$3.prototype.toString = function toString2() {
|
|
32293
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32294
|
-
};
|
|
32295
|
-
Cancel$3.prototype.__CANCEL__ = true;
|
|
32296
|
-
var Cancel_1 = Cancel$3;
|
|
32297
32321
|
var utils$6 = utils$d;
|
|
32298
32322
|
var settle2 = settle$1;
|
|
32299
32323
|
var cookies = cookies$1;
|
|
@@ -32302,22 +32326,11 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
32302
32326
|
var parseHeaders2 = parseHeaders$1;
|
|
32303
32327
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32304
32328
|
var createError2 = createError$2;
|
|
32305
|
-
var defaults$4 = defaults_1;
|
|
32306
|
-
var Cancel$2 = Cancel_1;
|
|
32307
32329
|
var xhr = function xhrAdapter(config2) {
|
|
32308
32330
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32309
32331
|
var requestData = config2.data;
|
|
32310
32332
|
var requestHeaders = config2.headers;
|
|
32311
32333
|
var responseType = config2.responseType;
|
|
32312
|
-
var onCanceled;
|
|
32313
|
-
function done() {
|
|
32314
|
-
if (config2.cancelToken) {
|
|
32315
|
-
config2.cancelToken.unsubscribe(onCanceled);
|
|
32316
|
-
}
|
|
32317
|
-
if (config2.signal) {
|
|
32318
|
-
config2.signal.removeEventListener("abort", onCanceled);
|
|
32319
|
-
}
|
|
32320
|
-
}
|
|
32321
32334
|
if (utils$6.isFormData(requestData)) {
|
|
32322
32335
|
delete requestHeaders["Content-Type"];
|
|
32323
32336
|
}
|
|
@@ -32344,13 +32357,7 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32344
32357
|
config: config2,
|
|
32345
32358
|
request: request2
|
|
32346
32359
|
};
|
|
32347
|
-
settle2(
|
|
32348
|
-
resolve(value17);
|
|
32349
|
-
done();
|
|
32350
|
-
}, function _reject(err) {
|
|
32351
|
-
reject(err);
|
|
32352
|
-
done();
|
|
32353
|
-
}, response);
|
|
32360
|
+
settle2(resolve, reject, response);
|
|
32354
32361
|
request2 = null;
|
|
32355
32362
|
}
|
|
32356
32363
|
if ("onloadend" in request2) {
|
|
@@ -32378,15 +32385,14 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32378
32385
|
request2 = null;
|
|
32379
32386
|
};
|
|
32380
32387
|
request2.ontimeout = function handleTimeout() {
|
|
32381
|
-
var timeoutErrorMessage =
|
|
32382
|
-
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
32388
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32383
32389
|
if (config2.timeoutErrorMessage) {
|
|
32384
32390
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32385
32391
|
}
|
|
32386
32392
|
reject(createError2(
|
|
32387
32393
|
timeoutErrorMessage,
|
|
32388
32394
|
config2,
|
|
32389
|
-
|
|
32395
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32390
32396
|
request2
|
|
32391
32397
|
));
|
|
32392
32398
|
request2 = null;
|
|
@@ -32418,19 +32424,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32418
32424
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32419
32425
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
32420
32426
|
}
|
|
32421
|
-
if (config2.cancelToken
|
|
32422
|
-
onCanceled
|
|
32427
|
+
if (config2.cancelToken) {
|
|
32428
|
+
config2.cancelToken.promise.then(function onCanceled(cancel2) {
|
|
32423
32429
|
if (!request2) {
|
|
32424
32430
|
return;
|
|
32425
32431
|
}
|
|
32426
|
-
reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
|
|
32427
32432
|
request2.abort();
|
|
32433
|
+
reject(cancel2);
|
|
32428
32434
|
request2 = null;
|
|
32429
|
-
};
|
|
32430
|
-
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
32431
|
-
if (config2.signal) {
|
|
32432
|
-
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
32433
|
-
}
|
|
32435
|
+
});
|
|
32434
32436
|
}
|
|
32435
32437
|
if (!requestData) {
|
|
32436
32438
|
requestData = null;
|
|
@@ -32478,33 +32480,33 @@ var defaults$3 = {
|
|
|
32478
32480
|
clarifyTimeoutError: false
|
|
32479
32481
|
},
|
|
32480
32482
|
adapter: getDefaultAdapter(),
|
|
32481
|
-
transformRequest: [function transformRequest(
|
|
32483
|
+
transformRequest: [function transformRequest(data49, headers) {
|
|
32482
32484
|
normalizeHeaderName2(headers, "Accept");
|
|
32483
32485
|
normalizeHeaderName2(headers, "Content-Type");
|
|
32484
|
-
if (utils$5.isFormData(
|
|
32485
|
-
return
|
|
32486
|
+
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)) {
|
|
32487
|
+
return data49;
|
|
32486
32488
|
}
|
|
32487
|
-
if (utils$5.isArrayBufferView(
|
|
32488
|
-
return
|
|
32489
|
+
if (utils$5.isArrayBufferView(data49)) {
|
|
32490
|
+
return data49.buffer;
|
|
32489
32491
|
}
|
|
32490
|
-
if (utils$5.isURLSearchParams(
|
|
32492
|
+
if (utils$5.isURLSearchParams(data49)) {
|
|
32491
32493
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32492
|
-
return
|
|
32494
|
+
return data49.toString();
|
|
32493
32495
|
}
|
|
32494
|
-
if (utils$5.isObject(
|
|
32496
|
+
if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
|
|
32495
32497
|
setContentTypeIfUnset(headers, "application/json");
|
|
32496
|
-
return stringifySafely(
|
|
32498
|
+
return stringifySafely(data49);
|
|
32497
32499
|
}
|
|
32498
|
-
return
|
|
32500
|
+
return data49;
|
|
32499
32501
|
}],
|
|
32500
|
-
transformResponse: [function transformResponse(
|
|
32501
|
-
var transitional2 = this.transitional
|
|
32502
|
+
transformResponse: [function transformResponse(data49) {
|
|
32503
|
+
var transitional2 = this.transitional;
|
|
32502
32504
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32503
32505
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32504
32506
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32505
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
32507
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32506
32508
|
try {
|
|
32507
|
-
return JSON.parse(
|
|
32509
|
+
return JSON.parse(data49);
|
|
32508
32510
|
} catch (e) {
|
|
32509
32511
|
if (strictJSONParsing) {
|
|
32510
32512
|
if (e.name === "SyntaxError") {
|
|
@@ -32514,7 +32516,7 @@ var defaults$3 = {
|
|
|
32514
32516
|
}
|
|
32515
32517
|
}
|
|
32516
32518
|
}
|
|
32517
|
-
return
|
|
32519
|
+
return data49;
|
|
32518
32520
|
}],
|
|
32519
32521
|
timeout: 0,
|
|
32520
32522
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -32523,11 +32525,11 @@ var defaults$3 = {
|
|
|
32523
32525
|
maxBodyLength: -1,
|
|
32524
32526
|
validateStatus: function validateStatus(status2) {
|
|
32525
32527
|
return status2 >= 200 && status2 < 300;
|
|
32526
|
-
}
|
|
32527
|
-
|
|
32528
|
-
|
|
32529
|
-
|
|
32530
|
-
|
|
32528
|
+
}
|
|
32529
|
+
};
|
|
32530
|
+
defaults$3.headers = {
|
|
32531
|
+
common: {
|
|
32532
|
+
"Accept": "application/json, text/plain, */*"
|
|
32531
32533
|
}
|
|
32532
32534
|
};
|
|
32533
32535
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -32539,12 +32541,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
32539
32541
|
var defaults_1 = defaults$3;
|
|
32540
32542
|
var utils$4 = utils$d;
|
|
32541
32543
|
var defaults$2 = defaults_1;
|
|
32542
|
-
var transformData$1 = function transformData(
|
|
32544
|
+
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32543
32545
|
var context2 = this || defaults$2;
|
|
32544
32546
|
utils$4.forEach(fns, function transform(fn2) {
|
|
32545
|
-
|
|
32547
|
+
data49 = fn2.call(context2, data49, headers);
|
|
32546
32548
|
});
|
|
32547
|
-
return
|
|
32549
|
+
return data49;
|
|
32548
32550
|
};
|
|
32549
32551
|
var isCancel$1 = function isCancel(value17) {
|
|
32550
32552
|
return !!(value17 && value17.__CANCEL__);
|
|
@@ -32553,14 +32555,10 @@ var utils$3 = utils$d;
|
|
|
32553
32555
|
var transformData2 = transformData$1;
|
|
32554
32556
|
var isCancel2 = isCancel$1;
|
|
32555
32557
|
var defaults$1 = defaults_1;
|
|
32556
|
-
var Cancel$1 = Cancel_1;
|
|
32557
32558
|
function throwIfCancellationRequested(config2) {
|
|
32558
32559
|
if (config2.cancelToken) {
|
|
32559
32560
|
config2.cancelToken.throwIfRequested();
|
|
32560
32561
|
}
|
|
32561
|
-
if (config2.signal && config2.signal.aborted) {
|
|
32562
|
-
throw new Cancel$1("canceled");
|
|
32563
|
-
}
|
|
32564
32562
|
}
|
|
32565
32563
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32566
32564
|
throwIfCancellationRequested(config2);
|
|
@@ -32611,6 +32609,34 @@ var utils$2 = utils$d;
|
|
|
32611
32609
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32612
32610
|
config2 = config2 || {};
|
|
32613
32611
|
var config3 = {};
|
|
32612
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32613
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32614
|
+
var defaultToConfig2Keys = [
|
|
32615
|
+
"baseURL",
|
|
32616
|
+
"transformRequest",
|
|
32617
|
+
"transformResponse",
|
|
32618
|
+
"paramsSerializer",
|
|
32619
|
+
"timeout",
|
|
32620
|
+
"timeoutMessage",
|
|
32621
|
+
"withCredentials",
|
|
32622
|
+
"adapter",
|
|
32623
|
+
"responseType",
|
|
32624
|
+
"xsrfCookieName",
|
|
32625
|
+
"xsrfHeaderName",
|
|
32626
|
+
"onUploadProgress",
|
|
32627
|
+
"onDownloadProgress",
|
|
32628
|
+
"decompress",
|
|
32629
|
+
"maxContentLength",
|
|
32630
|
+
"maxBodyLength",
|
|
32631
|
+
"maxRedirects",
|
|
32632
|
+
"transport",
|
|
32633
|
+
"httpAgent",
|
|
32634
|
+
"httpsAgent",
|
|
32635
|
+
"cancelToken",
|
|
32636
|
+
"socketPath",
|
|
32637
|
+
"responseEncoding"
|
|
32638
|
+
];
|
|
32639
|
+
var directMergeKeys = ["validateStatus"];
|
|
32614
32640
|
function getMergedValue(target2, source2) {
|
|
32615
32641
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32616
32642
|
return utils$2.merge(target2, source2);
|
|
@@ -32623,69 +32649,141 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
32623
32649
|
}
|
|
32624
32650
|
function mergeDeepProperties(prop) {
|
|
32625
32651
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32626
|
-
|
|
32652
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32627
32653
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32628
|
-
|
|
32654
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32629
32655
|
}
|
|
32630
32656
|
}
|
|
32631
|
-
function valueFromConfig2(prop) {
|
|
32657
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
32632
32658
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32633
|
-
|
|
32659
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32634
32660
|
}
|
|
32635
|
-
}
|
|
32636
|
-
|
|
32661
|
+
});
|
|
32662
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
32663
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32637
32664
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32638
|
-
|
|
32665
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32639
32666
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32640
|
-
|
|
32667
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32641
32668
|
}
|
|
32642
|
-
}
|
|
32643
|
-
function
|
|
32669
|
+
});
|
|
32670
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
32644
32671
|
if (prop in config2) {
|
|
32645
|
-
|
|
32672
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32646
32673
|
} else if (prop in config1) {
|
|
32647
|
-
|
|
32648
|
-
}
|
|
32649
|
-
}
|
|
32650
|
-
var
|
|
32651
|
-
|
|
32652
|
-
|
|
32653
|
-
"data": valueFromConfig2,
|
|
32654
|
-
"baseURL": defaultToConfig2,
|
|
32655
|
-
"transformRequest": defaultToConfig2,
|
|
32656
|
-
"transformResponse": defaultToConfig2,
|
|
32657
|
-
"paramsSerializer": defaultToConfig2,
|
|
32658
|
-
"timeout": defaultToConfig2,
|
|
32659
|
-
"timeoutMessage": defaultToConfig2,
|
|
32660
|
-
"withCredentials": defaultToConfig2,
|
|
32661
|
-
"adapter": defaultToConfig2,
|
|
32662
|
-
"responseType": defaultToConfig2,
|
|
32663
|
-
"xsrfCookieName": defaultToConfig2,
|
|
32664
|
-
"xsrfHeaderName": defaultToConfig2,
|
|
32665
|
-
"onUploadProgress": defaultToConfig2,
|
|
32666
|
-
"onDownloadProgress": defaultToConfig2,
|
|
32667
|
-
"decompress": defaultToConfig2,
|
|
32668
|
-
"maxContentLength": defaultToConfig2,
|
|
32669
|
-
"maxBodyLength": defaultToConfig2,
|
|
32670
|
-
"transport": defaultToConfig2,
|
|
32671
|
-
"httpAgent": defaultToConfig2,
|
|
32672
|
-
"httpsAgent": defaultToConfig2,
|
|
32673
|
-
"cancelToken": defaultToConfig2,
|
|
32674
|
-
"socketPath": defaultToConfig2,
|
|
32675
|
-
"responseEncoding": defaultToConfig2,
|
|
32676
|
-
"validateStatus": mergeDirectKeys
|
|
32677
|
-
};
|
|
32678
|
-
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
32679
|
-
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
32680
|
-
var configValue = merge2(prop);
|
|
32681
|
-
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
32674
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32675
|
+
}
|
|
32676
|
+
});
|
|
32677
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
32678
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
32679
|
+
return axiosKeys.indexOf(key) === -1;
|
|
32682
32680
|
});
|
|
32681
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32683
32682
|
return config3;
|
|
32684
32683
|
};
|
|
32685
|
-
|
|
32686
|
-
|
|
32684
|
+
const name = "axios";
|
|
32685
|
+
const version = "0.21.4";
|
|
32686
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
32687
|
+
const main = "index.js";
|
|
32688
|
+
const scripts = {
|
|
32689
|
+
test: "grunt test",
|
|
32690
|
+
start: "node ./sandbox/server.js",
|
|
32691
|
+
build: "NODE_ENV=production grunt build",
|
|
32692
|
+
preversion: "npm test",
|
|
32693
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32694
|
+
postversion: "git push && git push --tags",
|
|
32695
|
+
examples: "node ./examples/server.js",
|
|
32696
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32697
|
+
fix: "eslint --fix lib/**/*.js"
|
|
32698
|
+
};
|
|
32699
|
+
const repository = {
|
|
32700
|
+
type: "git",
|
|
32701
|
+
url: "https://github.com/axios/axios.git"
|
|
32702
|
+
};
|
|
32703
|
+
const keywords = [
|
|
32704
|
+
"xhr",
|
|
32705
|
+
"http",
|
|
32706
|
+
"ajax",
|
|
32707
|
+
"promise",
|
|
32708
|
+
"node"
|
|
32709
|
+
];
|
|
32710
|
+
const author = "Matt Zabriskie";
|
|
32711
|
+
const license = "MIT";
|
|
32712
|
+
const bugs = {
|
|
32713
|
+
url: "https://github.com/axios/axios/issues"
|
|
32714
|
+
};
|
|
32715
|
+
const homepage = "https://axios-http.com";
|
|
32716
|
+
const devDependencies = {
|
|
32717
|
+
coveralls: "^3.0.0",
|
|
32718
|
+
"es6-promise": "^4.2.4",
|
|
32719
|
+
grunt: "^1.3.0",
|
|
32720
|
+
"grunt-banner": "^0.6.0",
|
|
32721
|
+
"grunt-cli": "^1.2.0",
|
|
32722
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
32723
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
32724
|
+
"grunt-eslint": "^23.0.0",
|
|
32725
|
+
"grunt-karma": "^4.0.0",
|
|
32726
|
+
"grunt-mocha-test": "^0.13.3",
|
|
32727
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
32728
|
+
"grunt-webpack": "^4.0.2",
|
|
32729
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32730
|
+
"jasmine-core": "^2.4.1",
|
|
32731
|
+
karma: "^6.3.2",
|
|
32732
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
32733
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
32734
|
+
"karma-jasmine": "^1.1.1",
|
|
32735
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
32736
|
+
"karma-safari-launcher": "^1.0.0",
|
|
32737
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
32738
|
+
"karma-sinon": "^1.0.5",
|
|
32739
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
32740
|
+
"karma-webpack": "^4.0.2",
|
|
32741
|
+
"load-grunt-tasks": "^3.5.2",
|
|
32742
|
+
minimist: "^1.2.0",
|
|
32743
|
+
mocha: "^8.2.1",
|
|
32744
|
+
sinon: "^4.5.0",
|
|
32745
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
32746
|
+
typescript: "^4.0.5",
|
|
32747
|
+
"url-search-params": "^0.10.0",
|
|
32748
|
+
webpack: "^4.44.2",
|
|
32749
|
+
"webpack-dev-server": "^3.11.0"
|
|
32750
|
+
};
|
|
32751
|
+
const browser = {
|
|
32752
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32753
|
+
};
|
|
32754
|
+
const jsdelivr = "dist/axios.min.js";
|
|
32755
|
+
const unpkg = "dist/axios.min.js";
|
|
32756
|
+
const typings = "./index.d.ts";
|
|
32757
|
+
const dependencies = {
|
|
32758
|
+
"follow-redirects": "^1.14.0"
|
|
32759
|
+
};
|
|
32760
|
+
const bundlesize = [
|
|
32761
|
+
{
|
|
32762
|
+
path: "./dist/axios.min.js",
|
|
32763
|
+
threshold: "5kB"
|
|
32764
|
+
}
|
|
32765
|
+
];
|
|
32766
|
+
var require$$0 = {
|
|
32767
|
+
name,
|
|
32768
|
+
version,
|
|
32769
|
+
description,
|
|
32770
|
+
main,
|
|
32771
|
+
scripts,
|
|
32772
|
+
repository,
|
|
32773
|
+
keywords,
|
|
32774
|
+
author,
|
|
32775
|
+
license,
|
|
32776
|
+
bugs,
|
|
32777
|
+
homepage,
|
|
32778
|
+
devDependencies,
|
|
32779
|
+
browser,
|
|
32780
|
+
jsdelivr,
|
|
32781
|
+
unpkg,
|
|
32782
|
+
typings,
|
|
32783
|
+
dependencies,
|
|
32784
|
+
bundlesize
|
|
32687
32785
|
};
|
|
32688
|
-
var
|
|
32786
|
+
var pkg = require$$0;
|
|
32689
32787
|
var validators$1 = {};
|
|
32690
32788
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
32691
32789
|
validators$1[type2] = function validator4(thing) {
|
|
@@ -32693,15 +32791,29 @@ var validators$1 = {};
|
|
|
32693
32791
|
};
|
|
32694
32792
|
});
|
|
32695
32793
|
var deprecatedWarnings = {};
|
|
32794
|
+
var currentVerArr = pkg.version.split(".");
|
|
32795
|
+
function isOlderVersion(version2, thanVersion) {
|
|
32796
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32797
|
+
var destVer = version2.split(".");
|
|
32798
|
+
for (var i = 0; i < 3; i++) {
|
|
32799
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
32800
|
+
return true;
|
|
32801
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32802
|
+
return false;
|
|
32803
|
+
}
|
|
32804
|
+
}
|
|
32805
|
+
return false;
|
|
32806
|
+
}
|
|
32696
32807
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32808
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32697
32809
|
function formatMessage(opt, desc) {
|
|
32698
|
-
return "[Axios v" +
|
|
32810
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32699
32811
|
}
|
|
32700
32812
|
return function(value17, opt, opts) {
|
|
32701
32813
|
if (validator4 === false) {
|
|
32702
|
-
throw new Error(formatMessage(opt, " has been removed
|
|
32814
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
32703
32815
|
}
|
|
32704
|
-
if (
|
|
32816
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
32705
32817
|
deprecatedWarnings[opt] = true;
|
|
32706
32818
|
console.warn(
|
|
32707
32819
|
formatMessage(
|
|
@@ -32736,6 +32848,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
32736
32848
|
}
|
|
32737
32849
|
}
|
|
32738
32850
|
var validator$1 = {
|
|
32851
|
+
isOlderVersion,
|
|
32739
32852
|
assertOptions,
|
|
32740
32853
|
validators: validators$1
|
|
32741
32854
|
};
|
|
@@ -32771,9 +32884,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
32771
32884
|
var transitional2 = config2.transitional;
|
|
32772
32885
|
if (transitional2 !== void 0) {
|
|
32773
32886
|
validator3.assertOptions(transitional2, {
|
|
32774
|
-
silentJSONParsing: validators.transitional(validators.boolean),
|
|
32775
|
-
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
32776
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
32887
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32888
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32889
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
32777
32890
|
}, false);
|
|
32778
32891
|
}
|
|
32779
32892
|
var requestInterceptorChain = [];
|
|
@@ -32835,15 +32948,23 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
32835
32948
|
};
|
|
32836
32949
|
});
|
|
32837
32950
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32838
|
-
Axios$1.prototype[method] = function(url,
|
|
32951
|
+
Axios$1.prototype[method] = function(url, data49, config2) {
|
|
32839
32952
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
32840
32953
|
method,
|
|
32841
32954
|
url,
|
|
32842
|
-
data:
|
|
32955
|
+
data: data49
|
|
32843
32956
|
}));
|
|
32844
32957
|
};
|
|
32845
32958
|
});
|
|
32846
32959
|
var Axios_1 = Axios$1;
|
|
32960
|
+
function Cancel$1(message) {
|
|
32961
|
+
this.message = message;
|
|
32962
|
+
}
|
|
32963
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
32964
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32965
|
+
};
|
|
32966
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
32967
|
+
var Cancel_1 = Cancel$1;
|
|
32847
32968
|
var Cancel = Cancel_1;
|
|
32848
32969
|
function CancelToken(executor) {
|
|
32849
32970
|
if (typeof executor !== "function") {
|
|
@@ -32854,27 +32975,6 @@ function CancelToken(executor) {
|
|
|
32854
32975
|
resolvePromise = resolve;
|
|
32855
32976
|
});
|
|
32856
32977
|
var token = this;
|
|
32857
|
-
this.promise.then(function(cancel2) {
|
|
32858
|
-
if (!token._listeners)
|
|
32859
|
-
return;
|
|
32860
|
-
var i;
|
|
32861
|
-
var l = token._listeners.length;
|
|
32862
|
-
for (i = 0; i < l; i++) {
|
|
32863
|
-
token._listeners[i](cancel2);
|
|
32864
|
-
}
|
|
32865
|
-
token._listeners = null;
|
|
32866
|
-
});
|
|
32867
|
-
this.promise.then = function(onfulfilled) {
|
|
32868
|
-
var _resolve;
|
|
32869
|
-
var promise = new Promise(function(resolve) {
|
|
32870
|
-
token.subscribe(resolve);
|
|
32871
|
-
_resolve = resolve;
|
|
32872
|
-
}).then(onfulfilled);
|
|
32873
|
-
promise.cancel = function reject() {
|
|
32874
|
-
token.unsubscribe(_resolve);
|
|
32875
|
-
};
|
|
32876
|
-
return promise;
|
|
32877
|
-
};
|
|
32878
32978
|
executor(function cancel2(message) {
|
|
32879
32979
|
if (token.reason) {
|
|
32880
32980
|
return;
|
|
@@ -32888,26 +32988,6 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
32888
32988
|
throw this.reason;
|
|
32889
32989
|
}
|
|
32890
32990
|
};
|
|
32891
|
-
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
32892
|
-
if (this.reason) {
|
|
32893
|
-
listener(this.reason);
|
|
32894
|
-
return;
|
|
32895
|
-
}
|
|
32896
|
-
if (this._listeners) {
|
|
32897
|
-
this._listeners.push(listener);
|
|
32898
|
-
} else {
|
|
32899
|
-
this._listeners = [listener];
|
|
32900
|
-
}
|
|
32901
|
-
};
|
|
32902
|
-
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
32903
|
-
if (!this._listeners) {
|
|
32904
|
-
return;
|
|
32905
|
-
}
|
|
32906
|
-
var index2 = this._listeners.indexOf(listener);
|
|
32907
|
-
if (index2 !== -1) {
|
|
32908
|
-
this._listeners.splice(index2, 1);
|
|
32909
|
-
}
|
|
32910
|
-
};
|
|
32911
32991
|
CancelToken.source = function source() {
|
|
32912
32992
|
var cancel2;
|
|
32913
32993
|
var token = new CancelToken(function executor(c) {
|
|
@@ -32937,17 +33017,16 @@ function createInstance(defaultConfig2) {
|
|
|
32937
33017
|
var instance2 = bind2(Axios.prototype.request, context2);
|
|
32938
33018
|
utils.extend(instance2, Axios.prototype, context2);
|
|
32939
33019
|
utils.extend(instance2, context2);
|
|
32940
|
-
instance2.create = function create(instanceConfig) {
|
|
32941
|
-
return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
|
|
32942
|
-
};
|
|
32943
33020
|
return instance2;
|
|
32944
33021
|
}
|
|
32945
33022
|
var axios$1 = createInstance(defaults);
|
|
32946
33023
|
axios$1.Axios = Axios;
|
|
33024
|
+
axios$1.create = function create(instanceConfig) {
|
|
33025
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
33026
|
+
};
|
|
32947
33027
|
axios$1.Cancel = Cancel_1;
|
|
32948
33028
|
axios$1.CancelToken = CancelToken_1;
|
|
32949
33029
|
axios$1.isCancel = isCancel$1;
|
|
32950
|
-
axios$1.VERSION = data49.version;
|
|
32951
33030
|
axios$1.all = function all(promises) {
|
|
32952
33031
|
return Promise.all(promises);
|
|
32953
33032
|
};
|
|
@@ -33369,12 +33448,12 @@ var user = {
|
|
|
33369
33448
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
33370
33449
|
return userInfo;
|
|
33371
33450
|
}
|
|
33372
|
-
const { data:
|
|
33373
|
-
commit2("setAvatar",
|
|
33374
|
-
commit2("setUserName",
|
|
33375
|
-
commit2("setUserManageUnitId",
|
|
33376
|
-
setUserInfoCache(
|
|
33377
|
-
return
|
|
33451
|
+
const { data: data49 } = await getUserInfoApi();
|
|
33452
|
+
commit2("setAvatar", data49.userAvater);
|
|
33453
|
+
commit2("setUserName", data49.userName);
|
|
33454
|
+
commit2("setUserManageUnitId", data49.manageUnitId);
|
|
33455
|
+
setUserInfoCache(data49);
|
|
33456
|
+
return data49;
|
|
33378
33457
|
}
|
|
33379
33458
|
}
|
|
33380
33459
|
};
|
|
@@ -33556,8 +33635,8 @@ var app = {
|
|
|
33556
33635
|
async getAppListData({ commit: commit2, getters }) {
|
|
33557
33636
|
let appList = getters.getAppList;
|
|
33558
33637
|
if (!appList.length) {
|
|
33559
|
-
const { data:
|
|
33560
|
-
appList =
|
|
33638
|
+
const { data: data49 = [] } = await getAppListApi();
|
|
33639
|
+
appList = data49.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
33561
33640
|
commit2("setAppList", appList);
|
|
33562
33641
|
}
|
|
33563
33642
|
let appId = "";
|
|
@@ -33661,9 +33740,9 @@ var app = {
|
|
|
33661
33740
|
},
|
|
33662
33741
|
async getMyAppsList({ commit: commit2 }, payload) {
|
|
33663
33742
|
try {
|
|
33664
|
-
let { data:
|
|
33665
|
-
|
|
33666
|
-
commit2("setMyAppsList",
|
|
33743
|
+
let { data: data49 } = await getIndexPreset(payload);
|
|
33744
|
+
data49 = data49 || "[]";
|
|
33745
|
+
commit2("setMyAppsList", data49);
|
|
33667
33746
|
} catch (error) {
|
|
33668
33747
|
console.error("getMyAppsList:", error);
|
|
33669
33748
|
}
|
|
@@ -33689,8 +33768,8 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33689
33768
|
doChangeTheme(theme);
|
|
33690
33769
|
if (location.pathname.includes("scyxweb")) {
|
|
33691
33770
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
33692
|
-
axios$3.get(url).then((
|
|
33693
|
-
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {},
|
|
33771
|
+
axios$3.get(url).then((data49) => {
|
|
33772
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
33694
33773
|
});
|
|
33695
33774
|
}
|
|
33696
33775
|
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
@@ -33760,7 +33839,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33760
33839
|
install(window.Vue);
|
|
33761
33840
|
}
|
|
33762
33841
|
const API = {
|
|
33763
|
-
version: pkg.version,
|
|
33842
|
+
version: pkg$1.version,
|
|
33764
33843
|
install,
|
|
33765
33844
|
components,
|
|
33766
33845
|
plugins,
|
|
@@ -33768,4 +33847,4 @@ const API = {
|
|
|
33768
33847
|
doChangeTheme,
|
|
33769
33848
|
directives
|
|
33770
33849
|
};
|
|
33771
|
-
export { Apps, AppsEdit, AppsNew, basicLayout as BasicLayout, CHINESE_WEEKDAY_MAP, card as Card, cardItem as CardItem, datepicker as DatePicker, Debug, detailView as DetailView, EmptyLayout, ErrorContent, EventBus, form as Form, index as ImgLoad, configPlugin as IndConfigPlugin, routerPlugin as IndRouterPlugin, inputSelect as InputSelect, loadMore as LoadMore, loadingPanel as LoadingPanel, Login, MyApps, NotFound, pageView as PageView, popupView as PopupView, queryView as QueryView, search as Search, selectBtn as SelectBtn, selectPanel as SelectPanel, Setting, THEME_KEY, index$1 as UploadFile, User, user$1 as User1, addRouterGuards, appsItem as appItem, bindFocus, createMacroBasicRoutes, createMicroBasicRoutes, API as default, doChangeTheme, formatServerTime, generateConfigByXml, getBreadCrumbList, getDefaultTheme, getHomeRoute, getIconByPositionId, getMenuByRouter, getNewTagList, getNextRoute, getRouteTitleHandled, getStyle, getTagNavListFromLocalstorage, handleExpiredTime, install, permission, routeEqual, routeHasExist, routerOptions, scrollToCurInput, setTagNavListInLocalstorage, setTitle, showTitle, store, tabbar, transferIncrease, transferIndex };
|
|
33850
|
+
export { Apps, AppsEdit, AppsNew, basicLayout as BasicLayout, CHINESE_WEEKDAY_MAP, card as Card, cardItem as CardItem, datepicker as DatePicker, Debug, detailView as DetailView, EmptyLayout, ErrorContent, EventBus, form as Form, index as ImgLoad, configPlugin as IndConfigPlugin, routerPlugin as IndRouterPlugin, inputSelect as InputSelect, loadMore as LoadMore, loadingPanel as LoadingPanel, Login, MyApps, NotFound, pageView as PageView, popupView as PopupView, queryView as QueryView, search as Search, selectBtn as SelectBtn, selectPanel as SelectPanel, Setting, THEME_KEY, index$1 as UploadFile, User, user$1 as User1, addRouterGuards, appsItem as appItem, bindFocus, createMacroBasicRoutes, createMicroBasicRoutes, API as default, doChangeTheme, formatServerTime, generateConfigByXml, getBreadCrumbList, getDefaultTheme, getHomeRoute, getIconByPositionId, getImgByPermission, getMenuByRouter, getNewTagList, getNextRoute, getRouteTitleHandled, getStyle, getTagNavListFromLocalstorage, handleExpiredTime, install, permission, routeEqual, routeHasExist, routerOptions, scrollToCurInput, setTagNavListInLocalstorage, setTitle, showTitle, store, tabbar, transferIncrease, transferIndex };
|