@indfnd/common-m 0.0.6 → 0.0.7
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/dist/ind-common-m.es.js +534 -488
- package/dist/ind-common-m.umd.cjs +9 -9
- package/package.json +5 -5
package/dist/ind-common-m.es.js
CHANGED
|
@@ -2,13 +2,13 @@ import _ from "lodash";
|
|
|
2
2
|
import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Drawer$1, Dropdown as Dropdown$1, Modal as Modal$1, Form, FormItem, Select as Select$1, Option, Row, Col, Menu, MenuItem, Submenu, Badge, DropdownMenu, DropdownItem, Tag, Header, Layout, Content, Spin, Poptip as Poptip$1, CheckboxGroup, Checkbox, RadioGroup, Radio, Card, Message, LoadingBar } from "view-design";
|
|
3
3
|
import { isNil, useConfig, getQuarterNum, formatQuarter, str2Date, isDate as isDate$1, isArray as isArray$1, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, formatDate as formatDate$1, axios as axios$3, isFunction as isFunction$1, isString as isString$1, uuid, exportJsonToExcel, importJsonFromExcel, isEqual, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getLocalStorage, getPermissionCache, getSessionStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getPreviewUrlApi, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, listComTreeApi, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
|
|
4
4
|
import Vue$1 from "vue";
|
|
5
|
-
const name$
|
|
6
|
-
const version = "0.0.6";
|
|
7
|
-
const author = "huxuetong";
|
|
5
|
+
const name$2 = "@indfnd/common-m";
|
|
6
|
+
const version$1 = "0.0.6";
|
|
7
|
+
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
10
10
|
};
|
|
11
|
-
const main = "./dist/ind-common-m.umd.cjs";
|
|
11
|
+
const main$1 = "./dist/ind-common-m.umd.cjs";
|
|
12
12
|
const module = "./dist/ind-common-m.es.js";
|
|
13
13
|
const style = "./dist/styles/index.css";
|
|
14
14
|
const types = "./types/index.d.ts";
|
|
@@ -41,7 +41,7 @@ const files = [
|
|
|
41
41
|
"global.d.ts",
|
|
42
42
|
"src/styles"
|
|
43
43
|
];
|
|
44
|
-
const scripts = {
|
|
44
|
+
const scripts$1 = {
|
|
45
45
|
"build:prod": "vite build",
|
|
46
46
|
"build:style": "gulp --gulpfile build/build-style.js",
|
|
47
47
|
build: "yarn build:prod && yarn build:style",
|
|
@@ -53,7 +53,7 @@ const scripts = {
|
|
|
53
53
|
"release-patch": "standard-version --release-as patch",
|
|
54
54
|
"re-publish": "yarn publish --access public"
|
|
55
55
|
};
|
|
56
|
-
const dependencies = {
|
|
56
|
+
const dependencies$1 = {
|
|
57
57
|
classnames: "^2.5.1",
|
|
58
58
|
"file-saver": "^2.0.5",
|
|
59
59
|
signature_pad: "^4.1.7",
|
|
@@ -63,7 +63,7 @@ const dependencies = {
|
|
|
63
63
|
"xlsx-populate": "^1.11.0",
|
|
64
64
|
wangeditor: "^3.1.1"
|
|
65
65
|
};
|
|
66
|
-
const devDependencies = {
|
|
66
|
+
const devDependencies$1 = {
|
|
67
67
|
"@indfnd/utils": "^0.1.26",
|
|
68
68
|
"ag-grid-community": "^30.1.0",
|
|
69
69
|
"ag-grid-enterprise": "^30.1.0",
|
|
@@ -98,20 +98,20 @@ const devDependencies = {
|
|
|
98
98
|
const engines = {
|
|
99
99
|
node: ">= 16"
|
|
100
100
|
};
|
|
101
|
-
var pkg = {
|
|
102
|
-
name: name$
|
|
103
|
-
version,
|
|
104
|
-
author,
|
|
101
|
+
var pkg$1 = {
|
|
102
|
+
name: name$2,
|
|
103
|
+
version: version$1,
|
|
104
|
+
author: author$1,
|
|
105
105
|
publishConfig,
|
|
106
|
-
main,
|
|
106
|
+
main: main$1,
|
|
107
107
|
module,
|
|
108
108
|
style,
|
|
109
109
|
types,
|
|
110
110
|
exports,
|
|
111
111
|
files,
|
|
112
|
-
scripts,
|
|
113
|
-
dependencies,
|
|
114
|
-
devDependencies,
|
|
112
|
+
scripts: scripts$1,
|
|
113
|
+
dependencies: dependencies$1,
|
|
114
|
+
devDependencies: devDependencies$1,
|
|
115
115
|
engines
|
|
116
116
|
};
|
|
117
117
|
var render$1A = function() {
|
|
@@ -974,7 +974,7 @@ var popper = { exports: {} };
|
|
|
974
974
|
});
|
|
975
975
|
return arr.indexOf(match);
|
|
976
976
|
}
|
|
977
|
-
function runModifiers(modifiers2,
|
|
977
|
+
function runModifiers(modifiers2, data, ends) {
|
|
978
978
|
var modifiersToRun = ends === void 0 ? modifiers2 : modifiers2.slice(0, findIndex(modifiers2, "name", ends));
|
|
979
979
|
modifiersToRun.forEach(function(modifier) {
|
|
980
980
|
if (modifier["function"]) {
|
|
@@ -982,18 +982,18 @@ var popper = { exports: {} };
|
|
|
982
982
|
}
|
|
983
983
|
var fn = modifier["function"] || modifier.fn;
|
|
984
984
|
if (modifier.enabled && isFunction2(fn)) {
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
985
|
+
data.offsets.popper = getClientRect(data.offsets.popper);
|
|
986
|
+
data.offsets.reference = getClientRect(data.offsets.reference);
|
|
987
|
+
data = fn(data, modifier);
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
|
-
return
|
|
990
|
+
return data;
|
|
991
991
|
}
|
|
992
992
|
function update3() {
|
|
993
993
|
if (this.state.isDestroyed) {
|
|
994
994
|
return;
|
|
995
995
|
}
|
|
996
|
-
var
|
|
996
|
+
var data = {
|
|
997
997
|
instance: this,
|
|
998
998
|
styles: {},
|
|
999
999
|
arrowStyles: {},
|
|
@@ -1001,18 +1001,18 @@ var popper = { exports: {} };
|
|
|
1001
1001
|
flipped: false,
|
|
1002
1002
|
offsets: {}
|
|
1003
1003
|
};
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1004
|
+
data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);
|
|
1005
|
+
data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);
|
|
1006
|
+
data.originalPlacement = data.placement;
|
|
1007
|
+
data.positionFixed = this.options.positionFixed;
|
|
1008
|
+
data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);
|
|
1009
|
+
data.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute";
|
|
1010
|
+
data = runModifiers(this.modifiers, data);
|
|
1011
1011
|
if (!this.state.isCreated) {
|
|
1012
1012
|
this.state.isCreated = true;
|
|
1013
|
-
this.options.onCreate(
|
|
1013
|
+
this.options.onCreate(data);
|
|
1014
1014
|
} else {
|
|
1015
|
-
this.options.onUpdate(
|
|
1015
|
+
this.options.onUpdate(data);
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
function isModifierEnabled(modifiers2, modifierName) {
|
|
@@ -1117,13 +1117,13 @@ var popper = { exports: {} };
|
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
|
-
function applyStyle(
|
|
1121
|
-
setStyles(
|
|
1122
|
-
setAttributes(
|
|
1123
|
-
if (
|
|
1124
|
-
setStyles(
|
|
1120
|
+
function applyStyle(data) {
|
|
1121
|
+
setStyles(data.instance.popper, data.styles);
|
|
1122
|
+
setAttributes(data.instance.popper, data.attributes);
|
|
1123
|
+
if (data.arrowElement && Object.keys(data.arrowStyles).length) {
|
|
1124
|
+
setStyles(data.arrowElement, data.arrowStyles);
|
|
1125
1125
|
}
|
|
1126
|
-
return
|
|
1126
|
+
return data;
|
|
1127
1127
|
}
|
|
1128
1128
|
function applyStyleOnLoad(reference, popper2, options, modifierOptions, state) {
|
|
1129
1129
|
var referenceOffsets = getReferenceOffsets(state, popper2, reference, options.positionFixed);
|
|
@@ -1132,16 +1132,16 @@ var popper = { exports: {} };
|
|
|
1132
1132
|
setStyles(popper2, { position: options.positionFixed ? "fixed" : "absolute" });
|
|
1133
1133
|
return options;
|
|
1134
1134
|
}
|
|
1135
|
-
function getRoundedOffsets(
|
|
1136
|
-
var _data$offsets =
|
|
1135
|
+
function getRoundedOffsets(data, shouldRound) {
|
|
1136
|
+
var _data$offsets = data.offsets, popper2 = _data$offsets.popper, reference = _data$offsets.reference;
|
|
1137
1137
|
var round = Math.round, floor = Math.floor;
|
|
1138
1138
|
var noRound = function noRound2(v) {
|
|
1139
1139
|
return v;
|
|
1140
1140
|
};
|
|
1141
1141
|
var referenceWidth = round(reference.width);
|
|
1142
1142
|
var popperWidth = round(popper2.width);
|
|
1143
|
-
var isVertical = ["left", "right"].indexOf(
|
|
1144
|
-
var isVariation =
|
|
1143
|
+
var isVertical = ["left", "right"].indexOf(data.placement) !== -1;
|
|
1144
|
+
var isVariation = data.placement.indexOf("-") !== -1;
|
|
1145
1145
|
var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
|
|
1146
1146
|
var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;
|
|
1147
1147
|
var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
|
|
@@ -1154,22 +1154,22 @@ var popper = { exports: {} };
|
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
|
|
1157
|
-
function computeStyle(
|
|
1157
|
+
function computeStyle(data, options) {
|
|
1158
1158
|
var x = options.x, y = options.y;
|
|
1159
|
-
var popper2 =
|
|
1160
|
-
var legacyGpuAccelerationOption = find(
|
|
1159
|
+
var popper2 = data.offsets.popper;
|
|
1160
|
+
var legacyGpuAccelerationOption = find(data.instance.modifiers, function(modifier) {
|
|
1161
1161
|
return modifier.name === "applyStyle";
|
|
1162
1162
|
}).gpuAcceleration;
|
|
1163
1163
|
if (legacyGpuAccelerationOption !== void 0) {
|
|
1164
1164
|
console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
|
|
1165
1165
|
}
|
|
1166
1166
|
var gpuAcceleration = legacyGpuAccelerationOption !== void 0 ? legacyGpuAccelerationOption : options.gpuAcceleration;
|
|
1167
|
-
var offsetParent = getOffsetParent(
|
|
1167
|
+
var offsetParent = getOffsetParent(data.instance.popper);
|
|
1168
1168
|
var offsetParentRect = getBoundingClientRect(offsetParent);
|
|
1169
1169
|
var styles = {
|
|
1170
1170
|
position: popper2.position
|
|
1171
1171
|
};
|
|
1172
|
-
var offsets = getRoundedOffsets(
|
|
1172
|
+
var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);
|
|
1173
1173
|
var sideA = x === "bottom" ? "top" : "bottom";
|
|
1174
1174
|
var sideB = y === "right" ? "left" : "right";
|
|
1175
1175
|
var prefixedProperty = getSupportedPropertyName("transform");
|
|
@@ -1205,12 +1205,12 @@ var popper = { exports: {} };
|
|
|
1205
1205
|
styles.willChange = sideA + ", " + sideB;
|
|
1206
1206
|
}
|
|
1207
1207
|
var attributes = {
|
|
1208
|
-
"x-placement":
|
|
1208
|
+
"x-placement": data.placement
|
|
1209
1209
|
};
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
return
|
|
1210
|
+
data.attributes = _extends({}, attributes, data.attributes);
|
|
1211
|
+
data.styles = _extends({}, styles, data.styles);
|
|
1212
|
+
data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
|
|
1213
|
+
return data;
|
|
1214
1214
|
}
|
|
1215
1215
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
1216
1216
|
var requesting = find(modifiers2, function(_ref) {
|
|
@@ -1227,25 +1227,25 @@ var popper = { exports: {} };
|
|
|
1227
1227
|
}
|
|
1228
1228
|
return isRequired;
|
|
1229
1229
|
}
|
|
1230
|
-
function arrow(
|
|
1230
|
+
function arrow(data, options) {
|
|
1231
1231
|
var _data$offsets$arrow;
|
|
1232
|
-
if (!isModifierRequired(
|
|
1233
|
-
return
|
|
1232
|
+
if (!isModifierRequired(data.instance.modifiers, "arrow", "keepTogether")) {
|
|
1233
|
+
return data;
|
|
1234
1234
|
}
|
|
1235
1235
|
var arrowElement = options.element;
|
|
1236
1236
|
if (typeof arrowElement === "string") {
|
|
1237
|
-
arrowElement =
|
|
1237
|
+
arrowElement = data.instance.popper.querySelector(arrowElement);
|
|
1238
1238
|
if (!arrowElement) {
|
|
1239
|
-
return
|
|
1239
|
+
return data;
|
|
1240
1240
|
}
|
|
1241
1241
|
} else {
|
|
1242
|
-
if (!
|
|
1242
|
+
if (!data.instance.popper.contains(arrowElement)) {
|
|
1243
1243
|
console.warn("WARNING: `arrow.element` must be child of its popper element!");
|
|
1244
|
-
return
|
|
1244
|
+
return data;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
var placement =
|
|
1248
|
-
var _data$offsets =
|
|
1247
|
+
var placement = data.placement.split("-")[0];
|
|
1248
|
+
var _data$offsets = data.offsets, popper2 = _data$offsets.popper, reference = _data$offsets.reference;
|
|
1249
1249
|
var isVertical = ["left", "right"].indexOf(placement) !== -1;
|
|
1250
1250
|
var len = isVertical ? "height" : "width";
|
|
1251
1251
|
var sideCapitalized = isVertical ? "Top" : "Left";
|
|
@@ -1254,21 +1254,21 @@ var popper = { exports: {} };
|
|
|
1254
1254
|
var opSide = isVertical ? "bottom" : "right";
|
|
1255
1255
|
var arrowElementSize = getOuterSizes(arrowElement)[len];
|
|
1256
1256
|
if (reference[opSide] - arrowElementSize < popper2[side]) {
|
|
1257
|
-
|
|
1257
|
+
data.offsets.popper[side] -= popper2[side] - (reference[opSide] - arrowElementSize);
|
|
1258
1258
|
}
|
|
1259
1259
|
if (reference[side] + arrowElementSize > popper2[opSide]) {
|
|
1260
|
-
|
|
1260
|
+
data.offsets.popper[side] += reference[side] + arrowElementSize - popper2[opSide];
|
|
1261
1261
|
}
|
|
1262
|
-
|
|
1262
|
+
data.offsets.popper = getClientRect(data.offsets.popper);
|
|
1263
1263
|
var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;
|
|
1264
|
-
var css = getStyleComputedProperty(
|
|
1264
|
+
var css = getStyleComputedProperty(data.instance.popper);
|
|
1265
1265
|
var popperMarginSide = parseFloat(css["margin" + sideCapitalized]);
|
|
1266
1266
|
var popperBorderSide = parseFloat(css["border" + sideCapitalized + "Width"]);
|
|
1267
|
-
var sideValue = center -
|
|
1267
|
+
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
|
1268
1268
|
sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
return
|
|
1269
|
+
data.arrowElement = arrowElement;
|
|
1270
|
+
data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
|
|
1271
|
+
return data;
|
|
1272
1272
|
}
|
|
1273
1273
|
function getOppositeVariation(variation) {
|
|
1274
1274
|
if (variation === "end") {
|
|
@@ -1291,17 +1291,17 @@ var popper = { exports: {} };
|
|
|
1291
1291
|
CLOCKWISE: "clockwise",
|
|
1292
1292
|
COUNTERCLOCKWISE: "counterclockwise"
|
|
1293
1293
|
};
|
|
1294
|
-
function flip(
|
|
1295
|
-
if (isModifierEnabled(
|
|
1296
|
-
return
|
|
1294
|
+
function flip(data, options) {
|
|
1295
|
+
if (isModifierEnabled(data.instance.modifiers, "inner")) {
|
|
1296
|
+
return data;
|
|
1297
1297
|
}
|
|
1298
|
-
if (
|
|
1299
|
-
return
|
|
1298
|
+
if (data.flipped && data.placement === data.originalPlacement) {
|
|
1299
|
+
return data;
|
|
1300
1300
|
}
|
|
1301
|
-
var boundaries = getBoundaries(
|
|
1302
|
-
var placement =
|
|
1301
|
+
var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);
|
|
1302
|
+
var placement = data.placement.split("-")[0];
|
|
1303
1303
|
var placementOpposite = getOppositePlacement(placement);
|
|
1304
|
-
var variation =
|
|
1304
|
+
var variation = data.placement.split("-")[1] || "";
|
|
1305
1305
|
var flipOrder = [];
|
|
1306
1306
|
switch (options.behavior) {
|
|
1307
1307
|
case BEHAVIORS.FLIP:
|
|
@@ -1318,12 +1318,12 @@ var popper = { exports: {} };
|
|
|
1318
1318
|
}
|
|
1319
1319
|
flipOrder.forEach(function(step, index2) {
|
|
1320
1320
|
if (placement !== step || flipOrder.length === index2 + 1) {
|
|
1321
|
-
return
|
|
1321
|
+
return data;
|
|
1322
1322
|
}
|
|
1323
|
-
placement =
|
|
1323
|
+
placement = data.placement.split("-")[0];
|
|
1324
1324
|
placementOpposite = getOppositePlacement(placement);
|
|
1325
|
-
var popperOffsets =
|
|
1326
|
-
var refOffsets =
|
|
1325
|
+
var popperOffsets = data.offsets.popper;
|
|
1326
|
+
var refOffsets = data.offsets.reference;
|
|
1327
1327
|
var floor = Math.floor;
|
|
1328
1328
|
var overlapsRef = placement === "left" && floor(popperOffsets.right) > floor(refOffsets.left) || placement === "right" && floor(popperOffsets.left) < floor(refOffsets.right) || placement === "top" && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === "bottom" && floor(popperOffsets.top) < floor(refOffsets.bottom);
|
|
1329
1329
|
var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
|
|
@@ -1336,35 +1336,35 @@ var popper = { exports: {} };
|
|
|
1336
1336
|
var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === "start" && overflowsRight || isVertical && variation === "end" && overflowsLeft || !isVertical && variation === "start" && overflowsBottom || !isVertical && variation === "end" && overflowsTop);
|
|
1337
1337
|
var flippedVariation = flippedVariationByRef || flippedVariationByContent;
|
|
1338
1338
|
if (overlapsRef || overflowsBoundaries || flippedVariation) {
|
|
1339
|
-
|
|
1339
|
+
data.flipped = true;
|
|
1340
1340
|
if (overlapsRef || overflowsBoundaries) {
|
|
1341
1341
|
placement = flipOrder[index2 + 1];
|
|
1342
1342
|
}
|
|
1343
1343
|
if (flippedVariation) {
|
|
1344
1344
|
variation = getOppositeVariation(variation);
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1346
|
+
data.placement = placement + (variation ? "-" + variation : "");
|
|
1347
|
+
data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
|
1348
|
+
data = runModifiers(data.instance.modifiers, data, "flip");
|
|
1349
1349
|
}
|
|
1350
1350
|
});
|
|
1351
|
-
return
|
|
1351
|
+
return data;
|
|
1352
1352
|
}
|
|
1353
|
-
function keepTogether(
|
|
1354
|
-
var _data$offsets =
|
|
1355
|
-
var placement =
|
|
1353
|
+
function keepTogether(data) {
|
|
1354
|
+
var _data$offsets = data.offsets, popper2 = _data$offsets.popper, reference = _data$offsets.reference;
|
|
1355
|
+
var placement = data.placement.split("-")[0];
|
|
1356
1356
|
var floor = Math.floor;
|
|
1357
1357
|
var isVertical = ["top", "bottom"].indexOf(placement) !== -1;
|
|
1358
1358
|
var side = isVertical ? "right" : "bottom";
|
|
1359
1359
|
var opSide = isVertical ? "left" : "top";
|
|
1360
1360
|
var measurement = isVertical ? "width" : "height";
|
|
1361
1361
|
if (popper2[side] < floor(reference[opSide])) {
|
|
1362
|
-
|
|
1362
|
+
data.offsets.popper[opSide] = floor(reference[opSide]) - popper2[measurement];
|
|
1363
1363
|
}
|
|
1364
1364
|
if (popper2[opSide] > floor(reference[side])) {
|
|
1365
|
-
|
|
1365
|
+
data.offsets.popper[opSide] = floor(reference[side]);
|
|
1366
1366
|
}
|
|
1367
|
-
return
|
|
1367
|
+
return data;
|
|
1368
1368
|
}
|
|
1369
1369
|
function toValue(str, measurement, popperOffsets, referenceOffsets) {
|
|
1370
1370
|
var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
|
|
@@ -1440,9 +1440,9 @@ var popper = { exports: {} };
|
|
|
1440
1440
|
});
|
|
1441
1441
|
return offsets;
|
|
1442
1442
|
}
|
|
1443
|
-
function offset(
|
|
1443
|
+
function offset(data, _ref) {
|
|
1444
1444
|
var offset2 = _ref.offset;
|
|
1445
|
-
var placement =
|
|
1445
|
+
var placement = data.placement, _data$offsets = data.offsets, popper2 = _data$offsets.popper, reference = _data$offsets.reference;
|
|
1446
1446
|
var basePlacement = placement.split("-")[0];
|
|
1447
1447
|
var offsets = void 0;
|
|
1448
1448
|
if (isNumeric(+offset2)) {
|
|
@@ -1463,27 +1463,27 @@ var popper = { exports: {} };
|
|
|
1463
1463
|
popper2.left += offsets[0];
|
|
1464
1464
|
popper2.top += offsets[1];
|
|
1465
1465
|
}
|
|
1466
|
-
|
|
1467
|
-
return
|
|
1466
|
+
data.popper = popper2;
|
|
1467
|
+
return data;
|
|
1468
1468
|
}
|
|
1469
|
-
function preventOverflow(
|
|
1470
|
-
var boundariesElement = options.boundariesElement || getOffsetParent(
|
|
1471
|
-
if (
|
|
1469
|
+
function preventOverflow(data, options) {
|
|
1470
|
+
var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);
|
|
1471
|
+
if (data.instance.reference === boundariesElement) {
|
|
1472
1472
|
boundariesElement = getOffsetParent(boundariesElement);
|
|
1473
1473
|
}
|
|
1474
1474
|
var transformProp = getSupportedPropertyName("transform");
|
|
1475
|
-
var popperStyles =
|
|
1475
|
+
var popperStyles = data.instance.popper.style;
|
|
1476
1476
|
var top2 = popperStyles.top, left = popperStyles.left, transform = popperStyles[transformProp];
|
|
1477
1477
|
popperStyles.top = "";
|
|
1478
1478
|
popperStyles.left = "";
|
|
1479
1479
|
popperStyles[transformProp] = "";
|
|
1480
|
-
var boundaries = getBoundaries(
|
|
1480
|
+
var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);
|
|
1481
1481
|
popperStyles.top = top2;
|
|
1482
1482
|
popperStyles.left = left;
|
|
1483
1483
|
popperStyles[transformProp] = transform;
|
|
1484
1484
|
options.boundaries = boundaries;
|
|
1485
1485
|
var order = options.priority;
|
|
1486
|
-
var popper2 =
|
|
1486
|
+
var popper2 = data.offsets.popper;
|
|
1487
1487
|
var check = {
|
|
1488
1488
|
primary: function primary(placement) {
|
|
1489
1489
|
var value = popper2[placement];
|
|
@@ -1505,15 +1505,15 @@ var popper = { exports: {} };
|
|
|
1505
1505
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
1506
1506
|
popper2 = _extends({}, popper2, check[side](placement));
|
|
1507
1507
|
});
|
|
1508
|
-
|
|
1509
|
-
return
|
|
1508
|
+
data.offsets.popper = popper2;
|
|
1509
|
+
return data;
|
|
1510
1510
|
}
|
|
1511
|
-
function shift(
|
|
1512
|
-
var placement =
|
|
1511
|
+
function shift(data) {
|
|
1512
|
+
var placement = data.placement;
|
|
1513
1513
|
var basePlacement = placement.split("-")[0];
|
|
1514
1514
|
var shiftvariation = placement.split("-")[1];
|
|
1515
1515
|
if (shiftvariation) {
|
|
1516
|
-
var _data$offsets =
|
|
1516
|
+
var _data$offsets = data.offsets, reference = _data$offsets.reference, popper2 = _data$offsets.popper;
|
|
1517
1517
|
var isVertical = ["bottom", "top"].indexOf(basePlacement) !== -1;
|
|
1518
1518
|
var side = isVertical ? "left" : "top";
|
|
1519
1519
|
var measurement = isVertical ? "width" : "height";
|
|
@@ -1521,43 +1521,43 @@ var popper = { exports: {} };
|
|
|
1521
1521
|
start: defineProperty({}, side, reference[side]),
|
|
1522
1522
|
end: defineProperty({}, side, reference[side] + reference[measurement] - popper2[measurement])
|
|
1523
1523
|
};
|
|
1524
|
-
|
|
1524
|
+
data.offsets.popper = _extends({}, popper2, shiftOffsets[shiftvariation]);
|
|
1525
1525
|
}
|
|
1526
|
-
return
|
|
1526
|
+
return data;
|
|
1527
1527
|
}
|
|
1528
|
-
function hide(
|
|
1529
|
-
if (!isModifierRequired(
|
|
1530
|
-
return
|
|
1528
|
+
function hide(data) {
|
|
1529
|
+
if (!isModifierRequired(data.instance.modifiers, "hide", "preventOverflow")) {
|
|
1530
|
+
return data;
|
|
1531
1531
|
}
|
|
1532
|
-
var refRect =
|
|
1533
|
-
var bound = find(
|
|
1532
|
+
var refRect = data.offsets.reference;
|
|
1533
|
+
var bound = find(data.instance.modifiers, function(modifier) {
|
|
1534
1534
|
return modifier.name === "preventOverflow";
|
|
1535
1535
|
}).boundaries;
|
|
1536
1536
|
if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {
|
|
1537
|
-
if (
|
|
1538
|
-
return
|
|
1537
|
+
if (data.hide === true) {
|
|
1538
|
+
return data;
|
|
1539
1539
|
}
|
|
1540
|
-
|
|
1541
|
-
|
|
1540
|
+
data.hide = true;
|
|
1541
|
+
data.attributes["x-out-of-boundaries"] = "";
|
|
1542
1542
|
} else {
|
|
1543
|
-
if (
|
|
1544
|
-
return
|
|
1543
|
+
if (data.hide === false) {
|
|
1544
|
+
return data;
|
|
1545
1545
|
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1546
|
+
data.hide = false;
|
|
1547
|
+
data.attributes["x-out-of-boundaries"] = false;
|
|
1548
1548
|
}
|
|
1549
|
-
return
|
|
1549
|
+
return data;
|
|
1550
1550
|
}
|
|
1551
|
-
function inner(
|
|
1552
|
-
var placement =
|
|
1551
|
+
function inner(data) {
|
|
1552
|
+
var placement = data.placement;
|
|
1553
1553
|
var basePlacement = placement.split("-")[0];
|
|
1554
|
-
var _data$offsets =
|
|
1554
|
+
var _data$offsets = data.offsets, popper2 = _data$offsets.popper, reference = _data$offsets.reference;
|
|
1555
1555
|
var isHoriz = ["left", "right"].indexOf(basePlacement) !== -1;
|
|
1556
1556
|
var subtractLength = ["top", "left"].indexOf(basePlacement) === -1;
|
|
1557
1557
|
popper2[isHoriz ? "left" : "top"] = reference[basePlacement] - (subtractLength ? popper2[isHoriz ? "width" : "height"] : 0);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
return
|
|
1558
|
+
data.placement = getOppositePlacement(placement);
|
|
1559
|
+
data.offsets.popper = getClientRect(popper2);
|
|
1560
|
+
return data;
|
|
1561
1561
|
}
|
|
1562
1562
|
var modifiers = {
|
|
1563
1563
|
shift: {
|
|
@@ -2928,9 +2928,9 @@ class Print {
|
|
|
2928
2928
|
const ignoreNodes = copy.querySelectorAll("." + this.settings.ignoreClass);
|
|
2929
2929
|
console.log(ignoreNodes);
|
|
2930
2930
|
const nodes = copy.childNodes;
|
|
2931
|
-
const reducer = (el,
|
|
2932
|
-
for (let i = 0; i <
|
|
2933
|
-
const item2 =
|
|
2931
|
+
const reducer = (el, data, ignoreNode) => {
|
|
2932
|
+
for (let i = 0; i < data.length; i++) {
|
|
2933
|
+
const item2 = data[i];
|
|
2934
2934
|
if (item2 == ignoreNode) {
|
|
2935
2935
|
el.removeChild(ignoreNode);
|
|
2936
2936
|
break;
|
|
@@ -3280,23 +3280,23 @@ function typeOf(obj) {
|
|
|
3280
3280
|
};
|
|
3281
3281
|
return map[toString3.call(obj)];
|
|
3282
3282
|
}
|
|
3283
|
-
function deepCopy(
|
|
3284
|
-
const t2 = typeOf(
|
|
3283
|
+
function deepCopy(data) {
|
|
3284
|
+
const t2 = typeOf(data);
|
|
3285
3285
|
let o;
|
|
3286
3286
|
if (t2 === "array") {
|
|
3287
3287
|
o = [];
|
|
3288
3288
|
} else if (t2 === "object") {
|
|
3289
3289
|
o = {};
|
|
3290
3290
|
} else {
|
|
3291
|
-
return
|
|
3291
|
+
return data;
|
|
3292
3292
|
}
|
|
3293
3293
|
if (t2 === "array") {
|
|
3294
|
-
for (let i = 0; i <
|
|
3295
|
-
o.push(deepCopy(
|
|
3294
|
+
for (let i = 0; i < data.length; i++) {
|
|
3295
|
+
o.push(deepCopy(data[i]));
|
|
3296
3296
|
}
|
|
3297
3297
|
} else if (t2 === "object") {
|
|
3298
|
-
for (let i in
|
|
3299
|
-
o[i] = deepCopy(
|
|
3298
|
+
for (let i in data) {
|
|
3299
|
+
o[i] = deepCopy(data[i]);
|
|
3300
3300
|
}
|
|
3301
3301
|
}
|
|
3302
3302
|
return o;
|
|
@@ -5193,8 +5193,8 @@ const __vue2_script$1C = {
|
|
|
5193
5193
|
handleClick(type, cell) {
|
|
5194
5194
|
if (cell.disabled)
|
|
5195
5195
|
return;
|
|
5196
|
-
const
|
|
5197
|
-
this.emitChange(
|
|
5196
|
+
const data = { [type]: cell.text };
|
|
5197
|
+
this.emitChange(data);
|
|
5198
5198
|
},
|
|
5199
5199
|
emitChange(changes) {
|
|
5200
5200
|
this.$emit("on-change", changes);
|
|
@@ -8817,8 +8817,8 @@ const __vue2_script$1l = {
|
|
|
8817
8817
|
type = "20";
|
|
8818
8818
|
}
|
|
8819
8819
|
let param = { type };
|
|
8820
|
-
const { data
|
|
8821
|
-
this.opinionList =
|
|
8820
|
+
const { data } = await getCommonOpinion(param);
|
|
8821
|
+
this.opinionList = data || [];
|
|
8822
8822
|
} catch (error) {
|
|
8823
8823
|
console.error(error);
|
|
8824
8824
|
}
|
|
@@ -9150,10 +9150,10 @@ var Tooltip = /* @__PURE__ */ function() {
|
|
|
9150
9150
|
function tableTooltipRender(h, value, opts = {}) {
|
|
9151
9151
|
const { clickable, params, onClick } = opts;
|
|
9152
9152
|
const colDef = params.colDef || {};
|
|
9153
|
-
const
|
|
9153
|
+
const data = params.data;
|
|
9154
9154
|
const cellRendererParams = colDef.cellRendererParams || {};
|
|
9155
9155
|
const tooltipContentDef = cellRendererParams.tooltipContent;
|
|
9156
|
-
const tooltipContent = tooltipContentDef instanceof Function ? tooltipContentDef(
|
|
9156
|
+
const tooltipContent = tooltipContentDef instanceof Function ? tooltipContentDef(data) : tooltipContentDef;
|
|
9157
9157
|
let text_render;
|
|
9158
9158
|
if (clickable) {
|
|
9159
9159
|
text_render = h(
|
|
@@ -9225,11 +9225,11 @@ var AgTooltip = /* @__PURE__ */ function() {
|
|
|
9225
9225
|
const __vue2_script$1i = {
|
|
9226
9226
|
name: "IndAgInput",
|
|
9227
9227
|
render(h) {
|
|
9228
|
-
const { value, data
|
|
9228
|
+
const { value, data, colDef, scaleFn, api, node, column } = this.params;
|
|
9229
9229
|
const { props } = (colDef == null ? void 0 : colDef.cellRendererParams) || {};
|
|
9230
9230
|
const { type, disabled: disabledDef, textCondition } = props || {};
|
|
9231
|
-
const disabled = disabledDef instanceof Function ? disabledDef(
|
|
9232
|
-
const isText = textCondition instanceof Function ? textCondition(
|
|
9231
|
+
const disabled = disabledDef instanceof Function ? disabledDef(data) : disabledDef;
|
|
9232
|
+
const isText = textCondition instanceof Function ? textCondition(data) : textCondition;
|
|
9233
9233
|
let renderVal = value;
|
|
9234
9234
|
const scale = scaleFn();
|
|
9235
9235
|
if (scale === 0) {
|
|
@@ -9325,16 +9325,16 @@ var AgInput = /* @__PURE__ */ function() {
|
|
|
9325
9325
|
const __vue2_script$1h = {
|
|
9326
9326
|
name: "IndAgSelect",
|
|
9327
9327
|
render(h) {
|
|
9328
|
-
const { value, data
|
|
9328
|
+
const { value, data, colDef } = this.params;
|
|
9329
9329
|
const { datas, multiple, props } = colDef.cellRendererParams || {};
|
|
9330
9330
|
let selectList = [];
|
|
9331
9331
|
if (datas && isArray$1(datas) && datas.length) {
|
|
9332
9332
|
selectList = datas;
|
|
9333
9333
|
} else if (datas && isFunction$1(datas)) {
|
|
9334
|
-
selectList = datas(
|
|
9334
|
+
selectList = datas(data) || [];
|
|
9335
9335
|
}
|
|
9336
9336
|
const { textCondition } = props || {};
|
|
9337
|
-
const isText = textCondition instanceof Function ? textCondition(
|
|
9337
|
+
const isText = textCondition instanceof Function ? textCondition(data) : textCondition;
|
|
9338
9338
|
if (isText) {
|
|
9339
9339
|
let tmp = _.find(selectList, { K: value });
|
|
9340
9340
|
return h("span", tmp.V);
|
|
@@ -9449,13 +9449,13 @@ var AgDate = /* @__PURE__ */ function() {
|
|
|
9449
9449
|
const __vue2_script$1f = {
|
|
9450
9450
|
name: "IndAgTreeSelect",
|
|
9451
9451
|
render(h) {
|
|
9452
|
-
const { value, data
|
|
9452
|
+
const { value, data, colDef } = this.params;
|
|
9453
9453
|
const { leafOnly, datas, multiple, props } = colDef.cellRendererParams || {};
|
|
9454
9454
|
let treeList = [];
|
|
9455
9455
|
if (datas && isArray$1(datas) && datas.length) {
|
|
9456
9456
|
treeList = datas;
|
|
9457
9457
|
} else if (datas && isFunction$1(datas)) {
|
|
9458
|
-
treeList = datas(
|
|
9458
|
+
treeList = datas(data) || [];
|
|
9459
9459
|
}
|
|
9460
9460
|
return h("IndTreeSelect", {
|
|
9461
9461
|
props: {
|
|
@@ -9499,13 +9499,13 @@ var AgTreeSelect = /* @__PURE__ */ function() {
|
|
|
9499
9499
|
const __vue2_script$1e = {
|
|
9500
9500
|
name: "IndAgButton",
|
|
9501
9501
|
render(h) {
|
|
9502
|
-
const { data
|
|
9502
|
+
const { data, colDef } = this.params;
|
|
9503
9503
|
const { datas } = colDef.cellRendererParams || {};
|
|
9504
9504
|
let btnList = [];
|
|
9505
9505
|
if (datas && isArray$1(datas) && datas.length) {
|
|
9506
9506
|
btnList = datas;
|
|
9507
9507
|
} else if (datas && isFunction$1(datas)) {
|
|
9508
|
-
btnList = datas(
|
|
9508
|
+
btnList = datas(data) || [];
|
|
9509
9509
|
}
|
|
9510
9510
|
return h(
|
|
9511
9511
|
"div",
|
|
@@ -9522,7 +9522,7 @@ const __vue2_script$1e = {
|
|
|
9522
9522
|
style: { margin: "0 3px" },
|
|
9523
9523
|
on: {
|
|
9524
9524
|
click: (event) => {
|
|
9525
|
-
d.btnClick && d.btnClick(
|
|
9525
|
+
d.btnClick && d.btnClick(data);
|
|
9526
9526
|
event.preventDefault();
|
|
9527
9527
|
return false;
|
|
9528
9528
|
}
|
|
@@ -9557,7 +9557,7 @@ var AgButton = /* @__PURE__ */ function() {
|
|
|
9557
9557
|
const __vue2_script$1d = {
|
|
9558
9558
|
name: "IndAgLink",
|
|
9559
9559
|
render(h) {
|
|
9560
|
-
const { value, data
|
|
9560
|
+
const { value, data, colDef } = this.params;
|
|
9561
9561
|
const { tooltip, onClick, dateFormat } = colDef.cellRendererParams || {};
|
|
9562
9562
|
let renderVal = value;
|
|
9563
9563
|
if (dateFormat) {
|
|
@@ -9576,7 +9576,7 @@ const __vue2_script$1d = {
|
|
|
9576
9576
|
style: { color: "var(--ind-primary-color)", cursor: "pointer" },
|
|
9577
9577
|
on: {
|
|
9578
9578
|
click: (event) => {
|
|
9579
|
-
onClick && onClick(
|
|
9579
|
+
onClick && onClick(data);
|
|
9580
9580
|
event.preventDefault();
|
|
9581
9581
|
}
|
|
9582
9582
|
}
|
|
@@ -9781,7 +9781,7 @@ var AgTime = /* @__PURE__ */ function() {
|
|
|
9781
9781
|
const __vue2_script$18 = {
|
|
9782
9782
|
name: "IndAgProgress",
|
|
9783
9783
|
render(h) {
|
|
9784
|
-
const { value, data
|
|
9784
|
+
const { value, data, colDef } = this.params;
|
|
9785
9785
|
const { onClick, props } = colDef.cellRendererParams || {};
|
|
9786
9786
|
return h("Progress", {
|
|
9787
9787
|
props: {
|
|
@@ -9790,7 +9790,7 @@ const __vue2_script$18 = {
|
|
|
9790
9790
|
},
|
|
9791
9791
|
on: {
|
|
9792
9792
|
click: () => {
|
|
9793
|
-
onClick && onClick(
|
|
9793
|
+
onClick && onClick(data);
|
|
9794
9794
|
}
|
|
9795
9795
|
}
|
|
9796
9796
|
});
|
|
@@ -9819,9 +9819,9 @@ var AgProgress = /* @__PURE__ */ function() {
|
|
|
9819
9819
|
const __vue2_script$17 = {
|
|
9820
9820
|
name: "IndAgCustom",
|
|
9821
9821
|
render(h) {
|
|
9822
|
-
const { value, data
|
|
9822
|
+
const { value, data, colDef, scopedSlots } = this.params;
|
|
9823
9823
|
return scopedSlots[colDef.key || colDef.field] ? scopedSlots[colDef.key || colDef.field]({
|
|
9824
|
-
data
|
|
9824
|
+
data,
|
|
9825
9825
|
colDef
|
|
9826
9826
|
}) : h("span", {}, [value]);
|
|
9827
9827
|
}
|
|
@@ -10315,9 +10315,9 @@ const genAst = function genAst2(input) {
|
|
|
10315
10315
|
var ast = analysis(parse(input));
|
|
10316
10316
|
return ast;
|
|
10317
10317
|
};
|
|
10318
|
-
const doCalc = function doCalc2(ast,
|
|
10318
|
+
const doCalc = function doCalc2(ast, data, errRtn) {
|
|
10319
10319
|
try {
|
|
10320
|
-
let rlt = traverTreeCalc(ast,
|
|
10320
|
+
let rlt = traverTreeCalc(ast, data, errRtn);
|
|
10321
10321
|
return rlt;
|
|
10322
10322
|
} catch (err) {
|
|
10323
10323
|
if (err == "dividzero") {
|
|
@@ -10351,7 +10351,7 @@ const calcDatas = function(datas, options) {
|
|
|
10351
10351
|
});
|
|
10352
10352
|
}
|
|
10353
10353
|
};
|
|
10354
|
-
const calcData = function(
|
|
10354
|
+
const calcData = function(data, options) {
|
|
10355
10355
|
var astHash = {};
|
|
10356
10356
|
var precisionHash = {};
|
|
10357
10357
|
var errRtnHash = {};
|
|
@@ -10362,15 +10362,15 @@ const calcData = function(data2, options) {
|
|
|
10362
10362
|
errRtnHash[n.rltKey] = n.errRtn || 0;
|
|
10363
10363
|
});
|
|
10364
10364
|
Object.keys(astHash).forEach((k) => {
|
|
10365
|
-
|
|
10366
|
-
if (isNaN(
|
|
10367
|
-
|
|
10365
|
+
data[k] = doCalc(astHash[k], data, errRtnHash[k]);
|
|
10366
|
+
if (isNaN(data[k])) {
|
|
10367
|
+
data[k] = "-";
|
|
10368
10368
|
return;
|
|
10369
10369
|
}
|
|
10370
10370
|
if (precisionHash[k]) {
|
|
10371
|
-
|
|
10371
|
+
data[k] = !!data[k] ? data[k].toFixed(precisionHash[k]) : data[k];
|
|
10372
10372
|
} else {
|
|
10373
|
-
|
|
10373
|
+
data[k] = parseInt(data[k]);
|
|
10374
10374
|
}
|
|
10375
10375
|
});
|
|
10376
10376
|
}
|
|
@@ -10854,8 +10854,8 @@ const __vue2_script$15 = {
|
|
|
10854
10854
|
pinnedTopRowDataWithUnit: this.pinnedTopRowData || null,
|
|
10855
10855
|
topRows: this.pinnedTopRowData || null,
|
|
10856
10856
|
treeData: false,
|
|
10857
|
-
getDataPath: (
|
|
10858
|
-
return
|
|
10857
|
+
getDataPath: (data) => {
|
|
10858
|
+
return data.treeLevelFlag;
|
|
10859
10859
|
},
|
|
10860
10860
|
autoGroupColumnDef: null,
|
|
10861
10861
|
groupDisplayType: "",
|
|
@@ -11717,16 +11717,16 @@ const __vue2_script$15 = {
|
|
|
11717
11717
|
agColumn.valueSetter = column.valueSetter;
|
|
11718
11718
|
} else if (column.valueSetter) {
|
|
11719
11719
|
agColumn.valueSetter = (params) => {
|
|
11720
|
-
const { newValue, data
|
|
11720
|
+
const { newValue, data, colDef } = params;
|
|
11721
11721
|
if (this.isRevertingOldValue) {
|
|
11722
|
-
|
|
11722
|
+
data[colDef.field || colDef.key] = newValue;
|
|
11723
11723
|
return true;
|
|
11724
11724
|
}
|
|
11725
11725
|
const isValid = column.valueSetter(params);
|
|
11726
11726
|
if (!isValid) {
|
|
11727
11727
|
const { oldValue, column: agValueSetterColumn } = params;
|
|
11728
11728
|
this.isRevertingOldValue = true;
|
|
11729
|
-
|
|
11729
|
+
data[colDef.field || colDef.key] = newValue;
|
|
11730
11730
|
setTimeout(() => {
|
|
11731
11731
|
params.node.setDataValue(agValueSetterColumn, oldValue);
|
|
11732
11732
|
this.isRevertingOldValue = false;
|
|
@@ -11855,10 +11855,10 @@ const __vue2_script$15 = {
|
|
|
11855
11855
|
this.checkAllGroup = [];
|
|
11856
11856
|
}
|
|
11857
11857
|
},
|
|
11858
|
-
checkAllGroupChange(
|
|
11859
|
-
if (
|
|
11858
|
+
checkAllGroupChange(data) {
|
|
11859
|
+
if (data.length === this.columnNameArr.length) {
|
|
11860
11860
|
this.checkAll = true;
|
|
11861
|
-
} else if (
|
|
11861
|
+
} else if (data.length > 0) {
|
|
11862
11862
|
this.checkAll = false;
|
|
11863
11863
|
} else {
|
|
11864
11864
|
this.checkAll = false;
|
|
@@ -12064,24 +12064,24 @@ const __vue2_script$15 = {
|
|
|
12064
12064
|
if (result) {
|
|
12065
12065
|
this.overlayNoRowsTemplate = '<span style="padding: 10px;">\u6570\u636E\u4E3A\u7A7A</span>';
|
|
12066
12066
|
this.$emit("on-data-load", result);
|
|
12067
|
-
let
|
|
12067
|
+
let data = result.data.rows || result.data.records || [];
|
|
12068
12068
|
if (this.disablePage && result.data instanceof Array) {
|
|
12069
|
-
|
|
12069
|
+
data = result.data;
|
|
12070
12070
|
}
|
|
12071
12071
|
if (this.renderDataFn) {
|
|
12072
|
-
|
|
12072
|
+
data = this.renderDataFn(data);
|
|
12073
12073
|
}
|
|
12074
|
-
|
|
12074
|
+
data.forEach((d, idx) => {
|
|
12075
12075
|
d["_initialseq"] = idx;
|
|
12076
12076
|
});
|
|
12077
12077
|
if (this.unitType != this.defaultUnitType) {
|
|
12078
|
-
|
|
12078
|
+
data.forEach((d) => {
|
|
12079
12079
|
this.switchCols.forEach((dd) => {
|
|
12080
12080
|
changeCellUnit(this.defaultUnitType, this.unitType, d, dd);
|
|
12081
12081
|
});
|
|
12082
12082
|
});
|
|
12083
12083
|
}
|
|
12084
|
-
this.tableData = await this.renderTreeData(
|
|
12084
|
+
this.tableData = await this.renderTreeData(data);
|
|
12085
12085
|
this.totalNumber = result.data.total || 0;
|
|
12086
12086
|
this.$emit("on-data-format-load", result);
|
|
12087
12087
|
}
|
|
@@ -12224,9 +12224,9 @@ const __vue2_script$15 = {
|
|
|
12224
12224
|
return datasTmp;
|
|
12225
12225
|
}
|
|
12226
12226
|
},
|
|
12227
|
-
flattenData(
|
|
12227
|
+
flattenData(data) {
|
|
12228
12228
|
return _.reduce(
|
|
12229
|
-
|
|
12229
|
+
data,
|
|
12230
12230
|
(rlt, item2) => {
|
|
12231
12231
|
let children = item2.children && item2.children.length ? this.flattenData(item2.children) : [];
|
|
12232
12232
|
return [...rlt, item2, ...children];
|
|
@@ -13081,8 +13081,8 @@ const __vue2_script$11 = {
|
|
|
13081
13081
|
pinnedTopRowDataWithUnit: this.pinnedTopRowData || null,
|
|
13082
13082
|
topRows: this.pinnedTopRowData || null,
|
|
13083
13083
|
treeData: false,
|
|
13084
|
-
getDataPath: (
|
|
13085
|
-
return
|
|
13084
|
+
getDataPath: (data) => {
|
|
13085
|
+
return data.treeLevelFlag;
|
|
13086
13086
|
},
|
|
13087
13087
|
autoGroupColumnDef: null,
|
|
13088
13088
|
groupDisplayType: ""
|
|
@@ -13566,7 +13566,7 @@ const __vue2_script$11 = {
|
|
|
13566
13566
|
} else {
|
|
13567
13567
|
let a2 = a[this.sortParams.sort] || "";
|
|
13568
13568
|
let b2 = b[this.sortParams.sort] || "";
|
|
13569
|
-
return this.sortParams.order === "asc" ? a2.localeCompare(b2, "zh-CN") : b2.localeCompare(a2, "zh-CN");
|
|
13569
|
+
return this.sortParams.order === "asc" ? String(a2 || "").localeCompare(String(b2 || ""), "zh-CN") : String(b2 || "").localeCompare(String(a2 || ""), "zh-CN");
|
|
13570
13570
|
}
|
|
13571
13571
|
});
|
|
13572
13572
|
if (this.noSortLine > -1) {
|
|
@@ -13910,16 +13910,16 @@ const __vue2_script$11 = {
|
|
|
13910
13910
|
agColumn.valueSetter = column.valueSetter;
|
|
13911
13911
|
} else if (column.valueSetter) {
|
|
13912
13912
|
agColumn.valueSetter = (params) => {
|
|
13913
|
-
const { newValue, data
|
|
13913
|
+
const { newValue, data, colDef } = params;
|
|
13914
13914
|
if (this.isRevertingOldValue) {
|
|
13915
|
-
|
|
13915
|
+
data[colDef.field || colDef.key] = newValue;
|
|
13916
13916
|
return true;
|
|
13917
13917
|
}
|
|
13918
13918
|
const isValid = column.valueSetter(params);
|
|
13919
13919
|
if (!isValid) {
|
|
13920
13920
|
const { oldValue, column: agValueSetterColumn } = params;
|
|
13921
13921
|
this.isRevertingOldValue = true;
|
|
13922
|
-
|
|
13922
|
+
data[colDef.field || colDef.key] = newValue;
|
|
13923
13923
|
setTimeout(() => {
|
|
13924
13924
|
params.node.setDataValue(agValueSetterColumn, oldValue);
|
|
13925
13925
|
this.isRevertingOldValue = false;
|
|
@@ -14048,10 +14048,10 @@ const __vue2_script$11 = {
|
|
|
14048
14048
|
this.checkAllGroup = [];
|
|
14049
14049
|
}
|
|
14050
14050
|
},
|
|
14051
|
-
checkAllGroupChange(
|
|
14052
|
-
if (
|
|
14051
|
+
checkAllGroupChange(data) {
|
|
14052
|
+
if (data.length === this.columnNameArr.length) {
|
|
14053
14053
|
this.checkAll = true;
|
|
14054
|
-
} else if (
|
|
14054
|
+
} else if (data.length > 0) {
|
|
14055
14055
|
this.checkAll = false;
|
|
14056
14056
|
} else {
|
|
14057
14057
|
this.checkAll = false;
|
|
@@ -14253,24 +14253,24 @@ const __vue2_script$11 = {
|
|
|
14253
14253
|
if (result) {
|
|
14254
14254
|
this.overlayNoRowsTemplate = '<span style="padding: 10px;">\u6570\u636E\u4E3A\u7A7A</span>';
|
|
14255
14255
|
this.$emit("on-data-load", result);
|
|
14256
|
-
let
|
|
14256
|
+
let data = result.data.rows || result.data.records || [];
|
|
14257
14257
|
if (this.disablePage && result.data instanceof Array) {
|
|
14258
|
-
|
|
14258
|
+
data = result.data;
|
|
14259
14259
|
}
|
|
14260
14260
|
if (this.renderDataFn) {
|
|
14261
|
-
|
|
14261
|
+
data = this.renderDataFn(data);
|
|
14262
14262
|
}
|
|
14263
|
-
|
|
14263
|
+
data.forEach((d, idx) => {
|
|
14264
14264
|
d["_initialseq"] = idx;
|
|
14265
14265
|
});
|
|
14266
14266
|
if (this.unitType != this.defaultUnitType) {
|
|
14267
|
-
|
|
14267
|
+
data.forEach((d) => {
|
|
14268
14268
|
this.switchCols.forEach((dd) => {
|
|
14269
14269
|
changeCellUnit(this.defaultUnitType, this.unitType, d, dd);
|
|
14270
14270
|
});
|
|
14271
14271
|
});
|
|
14272
14272
|
}
|
|
14273
|
-
this.tableData = await this.renderTreeData(
|
|
14273
|
+
this.tableData = await this.renderTreeData(data);
|
|
14274
14274
|
this.totalNumber = result.data.total || 0;
|
|
14275
14275
|
this.$emit("on-data-format-load", result);
|
|
14276
14276
|
}
|
|
@@ -14589,8 +14589,8 @@ const __vue2_script$10 = {
|
|
|
14589
14589
|
},
|
|
14590
14590
|
methods: {
|
|
14591
14591
|
async query() {
|
|
14592
|
-
let
|
|
14593
|
-
this.tableData =
|
|
14592
|
+
let data = await this.getAuditLog();
|
|
14593
|
+
this.tableData = data.data;
|
|
14594
14594
|
},
|
|
14595
14595
|
getAuditLog() {
|
|
14596
14596
|
this.dataUrl = `${this.serverContext}${this.baseUrl}?busiPk=${this.busiPk}&busiType=${this.busiType}`;
|
|
@@ -14685,8 +14685,8 @@ const __vue2_script$$ = {
|
|
|
14685
14685
|
});
|
|
14686
14686
|
console.log("rlt", rlt);
|
|
14687
14687
|
if (this.updateApi) {
|
|
14688
|
-
const { data
|
|
14689
|
-
this.serverData =
|
|
14688
|
+
const { data } = await this.updateApi(rlt, this.fileList);
|
|
14689
|
+
this.serverData = data;
|
|
14690
14690
|
}
|
|
14691
14691
|
} else if (this.currentStepIndex === 1) {
|
|
14692
14692
|
if (this.submitApi) {
|
|
@@ -15106,8 +15106,8 @@ const __vue2_script$Z = {
|
|
|
15106
15106
|
async fetchStatusData() {
|
|
15107
15107
|
if (this.statusDataApi) {
|
|
15108
15108
|
try {
|
|
15109
|
-
const { data
|
|
15110
|
-
return
|
|
15109
|
+
const { data } = await this.statusDataApi(this.statusUrlParams);
|
|
15110
|
+
return data;
|
|
15111
15111
|
} catch (error) {
|
|
15112
15112
|
}
|
|
15113
15113
|
} else if (this.statusData.length) {
|
|
@@ -15357,24 +15357,24 @@ const __vue2_script$Z = {
|
|
|
15357
15357
|
}
|
|
15358
15358
|
});
|
|
15359
15359
|
},
|
|
15360
|
-
renderContent(h, { data
|
|
15361
|
-
if (
|
|
15360
|
+
renderContent(h, { data }) {
|
|
15361
|
+
if (data.status) {
|
|
15362
15362
|
return h(
|
|
15363
15363
|
"div",
|
|
15364
15364
|
{
|
|
15365
15365
|
attrs: {
|
|
15366
|
-
id: "tree-node-" +
|
|
15366
|
+
id: "tree-node-" + data.id
|
|
15367
15367
|
},
|
|
15368
|
-
class: { "custom-title": true, weak:
|
|
15368
|
+
class: { "custom-title": true, weak: data.weak, important: data.important }
|
|
15369
15369
|
},
|
|
15370
15370
|
[
|
|
15371
|
-
h("span",
|
|
15371
|
+
h("span", data.title),
|
|
15372
15372
|
h(
|
|
15373
15373
|
"span",
|
|
15374
15374
|
{
|
|
15375
|
-
class: ["title-status",
|
|
15375
|
+
class: ["title-status", data.statusColor]
|
|
15376
15376
|
},
|
|
15377
|
-
`[${
|
|
15377
|
+
`[${data.statusName}]`
|
|
15378
15378
|
)
|
|
15379
15379
|
]
|
|
15380
15380
|
);
|
|
@@ -15383,11 +15383,11 @@ const __vue2_script$Z = {
|
|
|
15383
15383
|
"span",
|
|
15384
15384
|
{
|
|
15385
15385
|
attrs: {
|
|
15386
|
-
id: "tree-node-" +
|
|
15386
|
+
id: "tree-node-" + data.id
|
|
15387
15387
|
},
|
|
15388
|
-
class: { "custom-title": true, weak:
|
|
15388
|
+
class: { "custom-title": true, weak: data.weak, important: data.important }
|
|
15389
15389
|
},
|
|
15390
|
-
|
|
15390
|
+
data.title
|
|
15391
15391
|
);
|
|
15392
15392
|
},
|
|
15393
15393
|
onCheckChange(nodes, curNode) {
|
|
@@ -15678,9 +15678,9 @@ const __vue2_script$Z = {
|
|
|
15678
15678
|
return false;
|
|
15679
15679
|
}
|
|
15680
15680
|
let num = 0;
|
|
15681
|
-
let
|
|
15681
|
+
let data = _.cloneDeep(this.backupTreeData);
|
|
15682
15682
|
if (Array.isArray(selectedTitles) && selectedTitles.length) {
|
|
15683
|
-
deepEach$2(
|
|
15683
|
+
deepEach$2(data, (node) => {
|
|
15684
15684
|
let matched = false;
|
|
15685
15685
|
if (selectedTitles.some((title) => node.title.includes(title)) || node.selected || node.checked) {
|
|
15686
15686
|
if (node.children) {
|
|
@@ -15696,7 +15696,7 @@ const __vue2_script$Z = {
|
|
|
15696
15696
|
});
|
|
15697
15697
|
node.matched = matched;
|
|
15698
15698
|
});
|
|
15699
|
-
deepEach$2(
|
|
15699
|
+
deepEach$2(data, (node) => {
|
|
15700
15700
|
if (node.matched) {
|
|
15701
15701
|
node.expand = true;
|
|
15702
15702
|
} else {
|
|
@@ -15705,7 +15705,7 @@ const __vue2_script$Z = {
|
|
|
15705
15705
|
});
|
|
15706
15706
|
}
|
|
15707
15707
|
let checkedNodes = this.getCheckedNodes(true);
|
|
15708
|
-
this.treeData = _.cloneDeep(this.deleteNoMatchedNodes(
|
|
15708
|
+
this.treeData = _.cloneDeep(this.deleteNoMatchedNodes(data));
|
|
15709
15709
|
this.$nextTick(() => {
|
|
15710
15710
|
this.$emit("on-check-change", checkedNodes);
|
|
15711
15711
|
});
|
|
@@ -15850,8 +15850,8 @@ const __vue2_script$Y = {
|
|
|
15850
15850
|
this.$refs.tree.clearCheckedAndSelectedNodes();
|
|
15851
15851
|
this.selectedTitles = "";
|
|
15852
15852
|
},
|
|
15853
|
-
updateSearchNum(
|
|
15854
|
-
this.searchNum =
|
|
15853
|
+
updateSearchNum(data) {
|
|
15854
|
+
this.searchNum = data;
|
|
15855
15855
|
},
|
|
15856
15856
|
updateSelectedTitles() {
|
|
15857
15857
|
let tempNodes = this.getCheckedNodes(true);
|
|
@@ -16189,19 +16189,19 @@ const __vue2_script$W = {
|
|
|
16189
16189
|
},
|
|
16190
16190
|
methods: {
|
|
16191
16191
|
getAppMenu() {
|
|
16192
|
-
let
|
|
16193
|
-
console.log("appList changed",
|
|
16194
|
-
_.forEach(
|
|
16192
|
+
let data = _.cloneDeep(this.appList);
|
|
16193
|
+
console.log("appList changed", data);
|
|
16194
|
+
_.forEach(data, (app2) => {
|
|
16195
16195
|
var _a;
|
|
16196
16196
|
let extendProps = app2.extendProps;
|
|
16197
16197
|
let extendPropsL2 = extendProps == null ? void 0 : extendProps.extendProps;
|
|
16198
16198
|
app2.parentName = extendPropsL2 ? (_a = JSON.parse(extendPropsL2)) == null ? void 0 : _a.parentName : "";
|
|
16199
16199
|
});
|
|
16200
|
-
console.log("data",
|
|
16201
|
-
if (_.some(
|
|
16200
|
+
console.log("data", data);
|
|
16201
|
+
if (_.some(data, (app2) => app2.parentName)) {
|
|
16202
16202
|
console.log("render group");
|
|
16203
16203
|
let rlt = _.reduce(
|
|
16204
|
-
|
|
16204
|
+
data,
|
|
16205
16205
|
(acc, cur) => {
|
|
16206
16206
|
if (cur.parentName) {
|
|
16207
16207
|
let curApp = _.find(acc, { name: cur.parentName });
|
|
@@ -16222,7 +16222,7 @@ const __vue2_script$W = {
|
|
|
16222
16222
|
);
|
|
16223
16223
|
this.navList = rlt;
|
|
16224
16224
|
} else {
|
|
16225
|
-
this.navList =
|
|
16225
|
+
this.navList = data;
|
|
16226
16226
|
}
|
|
16227
16227
|
this.lastTopMenuNum = this.topMenuNum;
|
|
16228
16228
|
if (this.navList.length > this.topMenuNum) {
|
|
@@ -18595,9 +18595,9 @@ const __vue2_script$C = {
|
|
|
18595
18595
|
let res = await getIndexPreset(params);
|
|
18596
18596
|
if (res.code == "1") {
|
|
18597
18597
|
if (res.data != "") {
|
|
18598
|
-
let
|
|
18599
|
-
this.functionDesc =
|
|
18600
|
-
this.indexDesc =
|
|
18598
|
+
let data = JSON.parse(res.data);
|
|
18599
|
+
this.functionDesc = data.functionDesc;
|
|
18600
|
+
this.indexDesc = data.indexDesc;
|
|
18601
18601
|
} else {
|
|
18602
18602
|
this.functionDesc = "";
|
|
18603
18603
|
}
|
|
@@ -18956,8 +18956,8 @@ const __vue2_script$y = {
|
|
|
18956
18956
|
this.selectedTitles = "";
|
|
18957
18957
|
this.$emit("input", []);
|
|
18958
18958
|
},
|
|
18959
|
-
updateSearchNum(
|
|
18960
|
-
this.searchNum =
|
|
18959
|
+
updateSearchNum(data) {
|
|
18960
|
+
this.searchNum = data;
|
|
18961
18961
|
},
|
|
18962
18962
|
updateSelectedTitles() {
|
|
18963
18963
|
let tempNodes = this.getCheckedNodes(true);
|
|
@@ -19870,8 +19870,8 @@ const __vue2_script$u = {
|
|
|
19870
19870
|
if (!multiple && (typeof initialValue[0] === "undefined" || String(initialValue[0]).trim() === "" && !Number.isFinite(initialValue[0])))
|
|
19871
19871
|
initialValue = [];
|
|
19872
19872
|
if (remote && !multiple && value) {
|
|
19873
|
-
const
|
|
19874
|
-
this.query =
|
|
19873
|
+
const data = this.getOptionData(value);
|
|
19874
|
+
this.query = data ? data.label : String(value);
|
|
19875
19875
|
}
|
|
19876
19876
|
return initialValue.filter((item2) => {
|
|
19877
19877
|
return Boolean(item2) || item2 === 0;
|
|
@@ -21234,8 +21234,8 @@ const __vue2_script$m = {
|
|
|
21234
21234
|
async getPriceInfo() {
|
|
21235
21235
|
this.loading = true;
|
|
21236
21236
|
try {
|
|
21237
|
-
const { data
|
|
21238
|
-
this.priceInfo =
|
|
21237
|
+
const { data } = await getPriceInfo();
|
|
21238
|
+
this.priceInfo = data || {};
|
|
21239
21239
|
} catch (error) {
|
|
21240
21240
|
console.log(error);
|
|
21241
21241
|
}
|
|
@@ -21869,7 +21869,7 @@ const __vue2_script$l = {
|
|
|
21869
21869
|
},
|
|
21870
21870
|
resize() {
|
|
21871
21871
|
if (this.signPad) {
|
|
21872
|
-
const
|
|
21872
|
+
const data = this.signPad.toData() || [];
|
|
21873
21873
|
const oldWidth = this.canvasWidth;
|
|
21874
21874
|
const oldHeight = this.canvasHeight;
|
|
21875
21875
|
this.init();
|
|
@@ -21877,14 +21877,14 @@ const __vue2_script$l = {
|
|
|
21877
21877
|
const newHeight = this.canvasHeight;
|
|
21878
21878
|
const widthRatio = oldWidth && newWidth ? newWidth / oldWidth : 1;
|
|
21879
21879
|
const heightRatio = oldHeight && newHeight ? newHeight / oldHeight : 1;
|
|
21880
|
-
|
|
21880
|
+
data.forEach((line) => {
|
|
21881
21881
|
var _a;
|
|
21882
21882
|
(_a = line == null ? void 0 : line.points) == null ? void 0 : _a.forEach((point) => {
|
|
21883
21883
|
point.x *= widthRatio;
|
|
21884
21884
|
point.y *= heightRatio;
|
|
21885
21885
|
});
|
|
21886
21886
|
});
|
|
21887
|
-
this.signPad.fromData(
|
|
21887
|
+
this.signPad.fromData(data);
|
|
21888
21888
|
}
|
|
21889
21889
|
},
|
|
21890
21890
|
getImageDataUrl() {
|
|
@@ -21917,8 +21917,8 @@ const __vue2_script$l = {
|
|
|
21917
21917
|
}
|
|
21918
21918
|
},
|
|
21919
21919
|
async uploadImage(blob, filename) {
|
|
21920
|
-
const { data
|
|
21921
|
-
const fileId = (
|
|
21920
|
+
const { data } = await putOssFileApi(filename, blob);
|
|
21921
|
+
const fileId = (data == null ? void 0 : data[0].fileId) || "";
|
|
21922
21922
|
if (!fileId) {
|
|
21923
21923
|
throw new Error("\u6CA1\u6709fileId?");
|
|
21924
21924
|
}
|
|
@@ -22297,8 +22297,8 @@ const __vue2_script$j = {
|
|
|
22297
22297
|
async initSrc() {
|
|
22298
22298
|
var _a, _b;
|
|
22299
22299
|
if (this.dataApi) {
|
|
22300
|
-
const { data
|
|
22301
|
-
this.indexesSouce =
|
|
22300
|
+
const { data } = await this.dataApi(this.searchParams);
|
|
22301
|
+
this.indexesSouce = data;
|
|
22302
22302
|
} else {
|
|
22303
22303
|
this.indexesSouce = this.options;
|
|
22304
22304
|
}
|
|
@@ -22619,8 +22619,8 @@ const __vue2_script$g = {
|
|
|
22619
22619
|
this.query();
|
|
22620
22620
|
},
|
|
22621
22621
|
methods: {
|
|
22622
|
-
selectChage(
|
|
22623
|
-
this.selection =
|
|
22622
|
+
selectChage(data) {
|
|
22623
|
+
this.selection = data;
|
|
22624
22624
|
},
|
|
22625
22625
|
onOk() {
|
|
22626
22626
|
const selectStore = this.selection;
|
|
@@ -22667,8 +22667,8 @@ const __vue2_script$g = {
|
|
|
22667
22667
|
return axios$3.get(dataUrl);
|
|
22668
22668
|
},
|
|
22669
22669
|
async query() {
|
|
22670
|
-
let
|
|
22671
|
-
this.data =
|
|
22670
|
+
let data = await this.getData();
|
|
22671
|
+
this.data = data.data;
|
|
22672
22672
|
if (this.itemType == "3") {
|
|
22673
22673
|
this.data.reverse();
|
|
22674
22674
|
}
|
|
@@ -22849,8 +22849,8 @@ const __vue2_script$f = {
|
|
|
22849
22849
|
comLevelSel: "0"
|
|
22850
22850
|
};
|
|
22851
22851
|
},
|
|
22852
|
-
selectChage(
|
|
22853
|
-
this.selection =
|
|
22852
|
+
selectChage(data) {
|
|
22853
|
+
this.selection = data;
|
|
22854
22854
|
},
|
|
22855
22855
|
onOk() {
|
|
22856
22856
|
const selectStore = this.selection;
|
|
@@ -22932,8 +22932,8 @@ const __vue2_script$f = {
|
|
|
22932
22932
|
return axios$3.get(dataUrl);
|
|
22933
22933
|
},
|
|
22934
22934
|
async query() {
|
|
22935
|
-
let
|
|
22936
|
-
this.data =
|
|
22935
|
+
let data = await this.getData();
|
|
22936
|
+
this.data = data.data;
|
|
22937
22937
|
this.tableData = _.cloneDeep(this.data);
|
|
22938
22938
|
},
|
|
22939
22939
|
filterCom(dataList) {
|
|
@@ -23095,8 +23095,8 @@ const __vue2_script$e = {
|
|
|
23095
23095
|
this.query();
|
|
23096
23096
|
},
|
|
23097
23097
|
methods: {
|
|
23098
|
-
selectChage(
|
|
23099
|
-
this.selection =
|
|
23098
|
+
selectChage(data) {
|
|
23099
|
+
this.selection = data;
|
|
23100
23100
|
},
|
|
23101
23101
|
onOk() {
|
|
23102
23102
|
const selectStore = this.selection;
|
|
@@ -23141,8 +23141,8 @@ const __vue2_script$e = {
|
|
|
23141
23141
|
return axios$3.get(dataUrl);
|
|
23142
23142
|
},
|
|
23143
23143
|
async query() {
|
|
23144
|
-
let
|
|
23145
|
-
this.data =
|
|
23144
|
+
let data = await this.getData();
|
|
23145
|
+
this.data = data.data;
|
|
23146
23146
|
this.tableData = this.finTableData = _.cloneDeep(this.data);
|
|
23147
23147
|
console.log("query this.tableData", this.tableData);
|
|
23148
23148
|
if (this.defaultValue.length > 0) {
|
|
@@ -23444,8 +23444,8 @@ const __vue2_script$d = {
|
|
|
23444
23444
|
async fetchStatusData() {
|
|
23445
23445
|
if (this.statusDataApi) {
|
|
23446
23446
|
try {
|
|
23447
|
-
const { data
|
|
23448
|
-
return
|
|
23447
|
+
const { data } = await this.statusDataApi(this.statusUrlParams);
|
|
23448
|
+
return data;
|
|
23449
23449
|
} catch (error) {
|
|
23450
23450
|
}
|
|
23451
23451
|
} else if (this.statusData.length) {
|
|
@@ -23639,27 +23639,27 @@ const __vue2_script$d = {
|
|
|
23639
23639
|
}
|
|
23640
23640
|
});
|
|
23641
23641
|
},
|
|
23642
|
-
renderContent(h, { root, node, data
|
|
23642
|
+
renderContent(h, { root, node, data }) {
|
|
23643
23643
|
if (this.leafRender) {
|
|
23644
|
-
return this.leafRender(h,
|
|
23644
|
+
return this.leafRender(h, data, node, root);
|
|
23645
23645
|
}
|
|
23646
|
-
if (
|
|
23646
|
+
if (data.status) {
|
|
23647
23647
|
return h(
|
|
23648
23648
|
"div",
|
|
23649
23649
|
{
|
|
23650
23650
|
attrs: {
|
|
23651
|
-
id: "tree-node-" +
|
|
23651
|
+
id: "tree-node-" + data.id
|
|
23652
23652
|
},
|
|
23653
|
-
class: { "custom-title": true, weak:
|
|
23653
|
+
class: { "custom-title": true, weak: data.weak, important: data.important }
|
|
23654
23654
|
},
|
|
23655
23655
|
[
|
|
23656
|
-
h("span",
|
|
23656
|
+
h("span", data.title),
|
|
23657
23657
|
h(
|
|
23658
23658
|
"span",
|
|
23659
23659
|
{
|
|
23660
|
-
class: ["title-status",
|
|
23660
|
+
class: ["title-status", data.statusColor]
|
|
23661
23661
|
},
|
|
23662
|
-
`[${
|
|
23662
|
+
`[${data.statusName}]`
|
|
23663
23663
|
)
|
|
23664
23664
|
]
|
|
23665
23665
|
);
|
|
@@ -23668,11 +23668,11 @@ const __vue2_script$d = {
|
|
|
23668
23668
|
"span",
|
|
23669
23669
|
{
|
|
23670
23670
|
attrs: {
|
|
23671
|
-
id: "tree-node-" +
|
|
23671
|
+
id: "tree-node-" + data.id
|
|
23672
23672
|
},
|
|
23673
|
-
class: { "custom-title": true, weak:
|
|
23673
|
+
class: { "custom-title": true, weak: data.weak, important: data.important }
|
|
23674
23674
|
},
|
|
23675
|
-
|
|
23675
|
+
data.title
|
|
23676
23676
|
);
|
|
23677
23677
|
},
|
|
23678
23678
|
onCheckChange(nodes, curNode) {
|
|
@@ -23939,9 +23939,9 @@ const __vue2_script$d = {
|
|
|
23939
23939
|
return false;
|
|
23940
23940
|
}
|
|
23941
23941
|
let num = 0;
|
|
23942
|
-
let
|
|
23942
|
+
let data = _.cloneDeep(this.backupTreeData);
|
|
23943
23943
|
if (Array.isArray(selectedTitles) && selectedTitles.length) {
|
|
23944
|
-
deepEach(
|
|
23944
|
+
deepEach(data, (node) => {
|
|
23945
23945
|
let matched = false;
|
|
23946
23946
|
if (selectedTitles.some((title) => node.title.includes(title)) || this.alwaysShowSelected && (node.selected || node.checked)) {
|
|
23947
23947
|
if (node.children) {
|
|
@@ -23957,7 +23957,7 @@ const __vue2_script$d = {
|
|
|
23957
23957
|
});
|
|
23958
23958
|
node.matched = matched;
|
|
23959
23959
|
});
|
|
23960
|
-
deepEach(
|
|
23960
|
+
deepEach(data, (node) => {
|
|
23961
23961
|
if (node.matched) {
|
|
23962
23962
|
node.expand = true;
|
|
23963
23963
|
} else {
|
|
@@ -23965,7 +23965,7 @@ const __vue2_script$d = {
|
|
|
23965
23965
|
}
|
|
23966
23966
|
});
|
|
23967
23967
|
}
|
|
23968
|
-
this.treeData = this.deleteNoMatchedNodes(
|
|
23968
|
+
this.treeData = this.deleteNoMatchedNodes(data);
|
|
23969
23969
|
if (typeof callback === "function") {
|
|
23970
23970
|
callback(num);
|
|
23971
23971
|
}
|
|
@@ -24171,8 +24171,8 @@ const __vue2_script$c = {
|
|
|
24171
24171
|
);
|
|
24172
24172
|
this.$emit("confirm", this.checkedNodeList);
|
|
24173
24173
|
},
|
|
24174
|
-
updateSearchNum(
|
|
24175
|
-
this.searchNum =
|
|
24174
|
+
updateSearchNum(data) {
|
|
24175
|
+
this.searchNum = data;
|
|
24176
24176
|
},
|
|
24177
24177
|
updateSelectedTitles() {
|
|
24178
24178
|
this.selectedTitles = _.join(_.map(this.checkedNodeList, "title"), "\uFF0C");
|
|
@@ -24998,8 +24998,8 @@ const __vue2_script$3 = {
|
|
|
24998
24998
|
},
|
|
24999
24999
|
async handleSuccess(res, file) {
|
|
25000
25000
|
try {
|
|
25001
|
-
const { data
|
|
25002
|
-
const fileInfo = (
|
|
25001
|
+
const { data } = await responseInterceptors({ data: res });
|
|
25002
|
+
const fileInfo = (data == null ? void 0 : data[0]) || {};
|
|
25003
25003
|
const item2 = {
|
|
25004
25004
|
fileUrl: getOssFileUrl(fileInfo.fileId),
|
|
25005
25005
|
fileId: fileInfo.fileId,
|
|
@@ -25238,8 +25238,8 @@ const __vue2_script$2 = {
|
|
|
25238
25238
|
},
|
|
25239
25239
|
async handleSuccess(res, file) {
|
|
25240
25240
|
try {
|
|
25241
|
-
const { data
|
|
25242
|
-
const fileInfo = (
|
|
25241
|
+
const { data } = await responseInterceptors({ data: res });
|
|
25242
|
+
const fileInfo = (data == null ? void 0 : data[0]) || {};
|
|
25243
25243
|
const item2 = {
|
|
25244
25244
|
fileUrl: getOssFileUrl(fileInfo.fileId),
|
|
25245
25245
|
fileId: fileInfo.fileId,
|
|
@@ -25288,14 +25288,14 @@ const CONTEXT$1 = `${config.imgServerContext}/system/auths`;
|
|
|
25288
25288
|
function getRoleListApi(params) {
|
|
25289
25289
|
return axios$3.get(`${CONTEXT$1}/getRoleList`, { params });
|
|
25290
25290
|
}
|
|
25291
|
-
function addRoleApi(
|
|
25292
|
-
return axios$3.post(`${CONTEXT$1}/addRole`,
|
|
25291
|
+
function addRoleApi(data) {
|
|
25292
|
+
return axios$3.post(`${CONTEXT$1}/addRole`, data);
|
|
25293
25293
|
}
|
|
25294
|
-
function updateRoleApi(
|
|
25295
|
-
return axios$3.post(`${CONTEXT$1}/updateRole`,
|
|
25294
|
+
function updateRoleApi(data) {
|
|
25295
|
+
return axios$3.post(`${CONTEXT$1}/updateRole`, data);
|
|
25296
25296
|
}
|
|
25297
|
-
function deleteRoleApi(
|
|
25298
|
-
return axios$3.post(`${CONTEXT$1}/deleteRole`,
|
|
25297
|
+
function deleteRoleApi(data) {
|
|
25298
|
+
return axios$3.post(`${CONTEXT$1}/deleteRole`, data);
|
|
25299
25299
|
}
|
|
25300
25300
|
function detailAuthsUsersApi(params) {
|
|
25301
25301
|
return axios$3.get(`${CONTEXT$1}/getDetailAuthsUsers`, { params });
|
|
@@ -25303,8 +25303,8 @@ function detailAuthsUsersApi(params) {
|
|
|
25303
25303
|
function listUserRolesApi(params) {
|
|
25304
25304
|
return axios$3.get(`${CONTEXT$1}/getListUserRoles`, { params });
|
|
25305
25305
|
}
|
|
25306
|
-
function saveAuthsUsersApi(
|
|
25307
|
-
return axios$3.post(`${CONTEXT$1}/saveAuthsUsers`,
|
|
25306
|
+
function saveAuthsUsersApi(data) {
|
|
25307
|
+
return axios$3.post(`${CONTEXT$1}/saveAuthsUsers`, data);
|
|
25308
25308
|
}
|
|
25309
25309
|
var render$1 = function() {
|
|
25310
25310
|
var _vm = this;
|
|
@@ -25509,8 +25509,8 @@ const __vue2_script$1 = {
|
|
|
25509
25509
|
authDetaileType
|
|
25510
25510
|
};
|
|
25511
25511
|
},
|
|
25512
|
-
async tableDataLoad(
|
|
25513
|
-
this.tableDataSize =
|
|
25512
|
+
async tableDataLoad(data) {
|
|
25513
|
+
this.tableDataSize = data.data.length || 0;
|
|
25514
25514
|
this.tableLoading = false;
|
|
25515
25515
|
await this.$nextTick();
|
|
25516
25516
|
},
|
|
@@ -25557,16 +25557,16 @@ const __vue2_script$1 = {
|
|
|
25557
25557
|
},
|
|
25558
25558
|
async getUserTreeData() {
|
|
25559
25559
|
try {
|
|
25560
|
-
const { data
|
|
25561
|
-
return
|
|
25560
|
+
const { data } = await listUserTreeApi({ orgCode: UC_ENUM.ORG_CODE_MKT });
|
|
25561
|
+
return data;
|
|
25562
25562
|
} catch (error) {
|
|
25563
25563
|
console.log(error);
|
|
25564
25564
|
}
|
|
25565
25565
|
},
|
|
25566
25566
|
async getAuthTreeData() {
|
|
25567
25567
|
try {
|
|
25568
|
-
const { data
|
|
25569
|
-
return
|
|
25568
|
+
const { data } = await this.authTreeApi(this.authTreeApiParams);
|
|
25569
|
+
return data;
|
|
25570
25570
|
} catch (error) {
|
|
25571
25571
|
console.log("\u83B7\u53D6\u6743\u9650\u6811\u6570\u636E\u5931\u8D25: ", error);
|
|
25572
25572
|
return [];
|
|
@@ -25581,8 +25581,8 @@ const __vue2_script$1 = {
|
|
|
25581
25581
|
authType: this.authType,
|
|
25582
25582
|
authDetaileType
|
|
25583
25583
|
};
|
|
25584
|
-
const { data
|
|
25585
|
-
return
|
|
25584
|
+
const { data } = await listUserRolesApi(params);
|
|
25585
|
+
return data;
|
|
25586
25586
|
} catch (error) {
|
|
25587
25587
|
console.log(error);
|
|
25588
25588
|
}
|
|
@@ -25637,8 +25637,8 @@ const __vue2_script$1 = {
|
|
|
25637
25637
|
authType: this.authType,
|
|
25638
25638
|
authDetaileType
|
|
25639
25639
|
};
|
|
25640
|
-
const { data
|
|
25641
|
-
return
|
|
25640
|
+
const { data } = await detailAuthsUsersApi(params);
|
|
25641
|
+
return data;
|
|
25642
25642
|
} catch (error) {
|
|
25643
25643
|
console.log(error);
|
|
25644
25644
|
}
|
|
@@ -25788,8 +25788,8 @@ const CONTEXT = `${config.imgServerContext}/system/auths`;
|
|
|
25788
25788
|
function getUserAuthsApi(params) {
|
|
25789
25789
|
return axios$3.get(`${CONTEXT}/getUserAuths`, { params });
|
|
25790
25790
|
}
|
|
25791
|
-
function saveUserAuthsApi(
|
|
25792
|
-
return axios$3.post(`${CONTEXT}/saveUserAuths`,
|
|
25791
|
+
function saveUserAuthsApi(data) {
|
|
25792
|
+
return axios$3.post(`${CONTEXT}/saveUserAuths`, data);
|
|
25793
25793
|
}
|
|
25794
25794
|
var render = function() {
|
|
25795
25795
|
var _vm = this;
|
|
@@ -25895,8 +25895,8 @@ const __vue2_script = {
|
|
|
25895
25895
|
},
|
|
25896
25896
|
async getAuthTreeData() {
|
|
25897
25897
|
try {
|
|
25898
|
-
const { data
|
|
25899
|
-
return
|
|
25898
|
+
const { data } = await this.authTreeApi(this.authTreeApiParams);
|
|
25899
|
+
return data;
|
|
25900
25900
|
} catch (error) {
|
|
25901
25901
|
console.log("\u83B7\u53D6\u6743\u9650\u6811\u6570\u636E\u5931\u8D25: ", error);
|
|
25902
25902
|
return [];
|
|
@@ -25912,8 +25912,8 @@ const __vue2_script = {
|
|
|
25912
25912
|
authType: this.authType,
|
|
25913
25913
|
authDetaileType
|
|
25914
25914
|
};
|
|
25915
|
-
const { data
|
|
25916
|
-
return
|
|
25915
|
+
const { data } = await getUserAuthsApi(params);
|
|
25916
|
+
return data;
|
|
25917
25917
|
} catch (error) {
|
|
25918
25918
|
console.log(error);
|
|
25919
25919
|
}
|
|
@@ -26619,12 +26619,12 @@ var user = {
|
|
|
26619
26619
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
26620
26620
|
return userInfo;
|
|
26621
26621
|
}
|
|
26622
|
-
const { data
|
|
26623
|
-
commit2("setAvatar",
|
|
26624
|
-
commit2("setUserName",
|
|
26625
|
-
commit2("setUserManageUnitId",
|
|
26626
|
-
setUserInfoCache(
|
|
26627
|
-
return
|
|
26622
|
+
const { data } = await getUserInfoApi();
|
|
26623
|
+
commit2("setAvatar", data.userAvater);
|
|
26624
|
+
commit2("setUserName", data.userName);
|
|
26625
|
+
commit2("setUserManageUnitId", data.manageUnitId);
|
|
26626
|
+
setUserInfoCache(data);
|
|
26627
|
+
return data;
|
|
26628
26628
|
}
|
|
26629
26629
|
}
|
|
26630
26630
|
};
|
|
@@ -26807,8 +26807,8 @@ var app = {
|
|
|
26807
26807
|
var _a;
|
|
26808
26808
|
let appList = getters.getAppList;
|
|
26809
26809
|
if (!appList.length) {
|
|
26810
|
-
const { data
|
|
26811
|
-
appList =
|
|
26810
|
+
const { data = [] } = await getAppListApi();
|
|
26811
|
+
appList = data.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
26812
26812
|
commit2("setAppList", appList);
|
|
26813
26813
|
}
|
|
26814
26814
|
let appId = "";
|
|
@@ -26908,9 +26908,9 @@ var app = {
|
|
|
26908
26908
|
);
|
|
26909
26909
|
return indexDesc;
|
|
26910
26910
|
}
|
|
26911
|
-
const { data
|
|
26912
|
-
setIndexDescCache(
|
|
26913
|
-
indexDesc =
|
|
26911
|
+
const { data } = await listIndexDescApi();
|
|
26912
|
+
setIndexDescCache(data);
|
|
26913
|
+
indexDesc = data;
|
|
26914
26914
|
commit2(
|
|
26915
26915
|
"setIndexDesc",
|
|
26916
26916
|
_.reduce(
|
|
@@ -26922,7 +26922,7 @@ var app = {
|
|
|
26922
26922
|
{}
|
|
26923
26923
|
)
|
|
26924
26924
|
);
|
|
26925
|
-
return
|
|
26925
|
+
return data;
|
|
26926
26926
|
},
|
|
26927
26927
|
updateIsFullSreen({ commit: commit2 }, value) {
|
|
26928
26928
|
commit2("setIsFullSreen", value);
|
|
@@ -27189,8 +27189,7 @@ var enhanceError$2 = function enhanceError(error, config2, code, request2, respo
|
|
|
27189
27189
|
columnNumber: this.columnNumber,
|
|
27190
27190
|
stack: this.stack,
|
|
27191
27191
|
config: this.config,
|
|
27192
|
-
code: this.code
|
|
27193
|
-
status: this.response && this.response.status ? this.response.status : null
|
|
27192
|
+
code: this.code
|
|
27194
27193
|
};
|
|
27195
27194
|
};
|
|
27196
27195
|
return error;
|
|
@@ -27346,14 +27345,6 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
27346
27345
|
return true;
|
|
27347
27346
|
};
|
|
27348
27347
|
}();
|
|
27349
|
-
function Cancel$3(message) {
|
|
27350
|
-
this.message = message;
|
|
27351
|
-
}
|
|
27352
|
-
Cancel$3.prototype.toString = function toString2() {
|
|
27353
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
27354
|
-
};
|
|
27355
|
-
Cancel$3.prototype.__CANCEL__ = true;
|
|
27356
|
-
var Cancel_1 = Cancel$3;
|
|
27357
27348
|
var utils$6 = utils$d;
|
|
27358
27349
|
var settle2 = settle$1;
|
|
27359
27350
|
var cookies = cookies$1;
|
|
@@ -27362,22 +27353,11 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
27362
27353
|
var parseHeaders2 = parseHeaders$1;
|
|
27363
27354
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
27364
27355
|
var createError2 = createError$2;
|
|
27365
|
-
var defaults$4 = defaults_1;
|
|
27366
|
-
var Cancel$2 = Cancel_1;
|
|
27367
27356
|
var xhr = function xhrAdapter(config2) {
|
|
27368
27357
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
27369
27358
|
var requestData = config2.data;
|
|
27370
27359
|
var requestHeaders = config2.headers;
|
|
27371
27360
|
var responseType = config2.responseType;
|
|
27372
|
-
var onCanceled;
|
|
27373
|
-
function done() {
|
|
27374
|
-
if (config2.cancelToken) {
|
|
27375
|
-
config2.cancelToken.unsubscribe(onCanceled);
|
|
27376
|
-
}
|
|
27377
|
-
if (config2.signal) {
|
|
27378
|
-
config2.signal.removeEventListener("abort", onCanceled);
|
|
27379
|
-
}
|
|
27380
|
-
}
|
|
27381
27361
|
if (utils$6.isFormData(requestData)) {
|
|
27382
27362
|
delete requestHeaders["Content-Type"];
|
|
27383
27363
|
}
|
|
@@ -27404,13 +27384,7 @@ var xhr = function xhrAdapter(config2) {
|
|
|
27404
27384
|
config: config2,
|
|
27405
27385
|
request: request2
|
|
27406
27386
|
};
|
|
27407
|
-
settle2(
|
|
27408
|
-
resolve(value);
|
|
27409
|
-
done();
|
|
27410
|
-
}, function _reject(err) {
|
|
27411
|
-
reject(err);
|
|
27412
|
-
done();
|
|
27413
|
-
}, response);
|
|
27387
|
+
settle2(resolve, reject, response);
|
|
27414
27388
|
request2 = null;
|
|
27415
27389
|
}
|
|
27416
27390
|
if ("onloadend" in request2) {
|
|
@@ -27438,15 +27412,14 @@ var xhr = function xhrAdapter(config2) {
|
|
|
27438
27412
|
request2 = null;
|
|
27439
27413
|
};
|
|
27440
27414
|
request2.ontimeout = function handleTimeout() {
|
|
27441
|
-
var timeoutErrorMessage =
|
|
27442
|
-
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
27415
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
27443
27416
|
if (config2.timeoutErrorMessage) {
|
|
27444
27417
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
27445
27418
|
}
|
|
27446
27419
|
reject(createError2(
|
|
27447
27420
|
timeoutErrorMessage,
|
|
27448
27421
|
config2,
|
|
27449
|
-
|
|
27422
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
27450
27423
|
request2
|
|
27451
27424
|
));
|
|
27452
27425
|
request2 = null;
|
|
@@ -27478,19 +27451,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
27478
27451
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
27479
27452
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
27480
27453
|
}
|
|
27481
|
-
if (config2.cancelToken
|
|
27482
|
-
onCanceled
|
|
27454
|
+
if (config2.cancelToken) {
|
|
27455
|
+
config2.cancelToken.promise.then(function onCanceled(cancel) {
|
|
27483
27456
|
if (!request2) {
|
|
27484
27457
|
return;
|
|
27485
27458
|
}
|
|
27486
|
-
reject(!cancel || cancel && cancel.type ? new Cancel$2("canceled") : cancel);
|
|
27487
27459
|
request2.abort();
|
|
27460
|
+
reject(cancel);
|
|
27488
27461
|
request2 = null;
|
|
27489
|
-
};
|
|
27490
|
-
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
27491
|
-
if (config2.signal) {
|
|
27492
|
-
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
27493
|
-
}
|
|
27462
|
+
});
|
|
27494
27463
|
}
|
|
27495
27464
|
if (!requestData) {
|
|
27496
27465
|
requestData = null;
|
|
@@ -27538,33 +27507,33 @@ var defaults$3 = {
|
|
|
27538
27507
|
clarifyTimeoutError: false
|
|
27539
27508
|
},
|
|
27540
27509
|
adapter: getDefaultAdapter(),
|
|
27541
|
-
transformRequest: [function transformRequest(
|
|
27510
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
27542
27511
|
normalizeHeaderName2(headers, "Accept");
|
|
27543
27512
|
normalizeHeaderName2(headers, "Content-Type");
|
|
27544
|
-
if (utils$5.isFormData(
|
|
27545
|
-
return
|
|
27513
|
+
if (utils$5.isFormData(data) || utils$5.isArrayBuffer(data) || utils$5.isBuffer(data) || utils$5.isStream(data) || utils$5.isFile(data) || utils$5.isBlob(data)) {
|
|
27514
|
+
return data;
|
|
27546
27515
|
}
|
|
27547
|
-
if (utils$5.isArrayBufferView(
|
|
27548
|
-
return
|
|
27516
|
+
if (utils$5.isArrayBufferView(data)) {
|
|
27517
|
+
return data.buffer;
|
|
27549
27518
|
}
|
|
27550
|
-
if (utils$5.isURLSearchParams(
|
|
27519
|
+
if (utils$5.isURLSearchParams(data)) {
|
|
27551
27520
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
27552
|
-
return
|
|
27521
|
+
return data.toString();
|
|
27553
27522
|
}
|
|
27554
|
-
if (utils$5.isObject(
|
|
27523
|
+
if (utils$5.isObject(data) || headers && headers["Content-Type"] === "application/json") {
|
|
27555
27524
|
setContentTypeIfUnset(headers, "application/json");
|
|
27556
|
-
return stringifySafely(
|
|
27525
|
+
return stringifySafely(data);
|
|
27557
27526
|
}
|
|
27558
|
-
return
|
|
27527
|
+
return data;
|
|
27559
27528
|
}],
|
|
27560
|
-
transformResponse: [function transformResponse(
|
|
27561
|
-
var transitional2 = this.transitional
|
|
27529
|
+
transformResponse: [function transformResponse(data) {
|
|
27530
|
+
var transitional2 = this.transitional;
|
|
27562
27531
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
27563
27532
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
27564
27533
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
27565
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
27534
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data) && data.length) {
|
|
27566
27535
|
try {
|
|
27567
|
-
return JSON.parse(
|
|
27536
|
+
return JSON.parse(data);
|
|
27568
27537
|
} catch (e) {
|
|
27569
27538
|
if (strictJSONParsing) {
|
|
27570
27539
|
if (e.name === "SyntaxError") {
|
|
@@ -27574,7 +27543,7 @@ var defaults$3 = {
|
|
|
27574
27543
|
}
|
|
27575
27544
|
}
|
|
27576
27545
|
}
|
|
27577
|
-
return
|
|
27546
|
+
return data;
|
|
27578
27547
|
}],
|
|
27579
27548
|
timeout: 0,
|
|
27580
27549
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -27583,11 +27552,11 @@ var defaults$3 = {
|
|
|
27583
27552
|
maxBodyLength: -1,
|
|
27584
27553
|
validateStatus: function validateStatus(status) {
|
|
27585
27554
|
return status >= 200 && status < 300;
|
|
27586
|
-
}
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
|
|
27590
|
-
|
|
27555
|
+
}
|
|
27556
|
+
};
|
|
27557
|
+
defaults$3.headers = {
|
|
27558
|
+
common: {
|
|
27559
|
+
"Accept": "application/json, text/plain, */*"
|
|
27591
27560
|
}
|
|
27592
27561
|
};
|
|
27593
27562
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -27599,12 +27568,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
27599
27568
|
var defaults_1 = defaults$3;
|
|
27600
27569
|
var utils$4 = utils$d;
|
|
27601
27570
|
var defaults$2 = defaults_1;
|
|
27602
|
-
var transformData$1 = function transformData(
|
|
27571
|
+
var transformData$1 = function transformData(data, headers, fns) {
|
|
27603
27572
|
var context = this || defaults$2;
|
|
27604
27573
|
utils$4.forEach(fns, function transform(fn) {
|
|
27605
|
-
|
|
27574
|
+
data = fn.call(context, data, headers);
|
|
27606
27575
|
});
|
|
27607
|
-
return
|
|
27576
|
+
return data;
|
|
27608
27577
|
};
|
|
27609
27578
|
var isCancel$1 = function isCancel(value) {
|
|
27610
27579
|
return !!(value && value.__CANCEL__);
|
|
@@ -27613,14 +27582,10 @@ var utils$3 = utils$d;
|
|
|
27613
27582
|
var transformData2 = transformData$1;
|
|
27614
27583
|
var isCancel2 = isCancel$1;
|
|
27615
27584
|
var defaults$1 = defaults_1;
|
|
27616
|
-
var Cancel$1 = Cancel_1;
|
|
27617
27585
|
function throwIfCancellationRequested(config2) {
|
|
27618
27586
|
if (config2.cancelToken) {
|
|
27619
27587
|
config2.cancelToken.throwIfRequested();
|
|
27620
27588
|
}
|
|
27621
|
-
if (config2.signal && config2.signal.aborted) {
|
|
27622
|
-
throw new Cancel$1("canceled");
|
|
27623
|
-
}
|
|
27624
27589
|
}
|
|
27625
27590
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
27626
27591
|
throwIfCancellationRequested(config2);
|
|
@@ -27671,6 +27636,34 @@ var utils$2 = utils$d;
|
|
|
27671
27636
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
27672
27637
|
config2 = config2 || {};
|
|
27673
27638
|
var config3 = {};
|
|
27639
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
27640
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
27641
|
+
var defaultToConfig2Keys = [
|
|
27642
|
+
"baseURL",
|
|
27643
|
+
"transformRequest",
|
|
27644
|
+
"transformResponse",
|
|
27645
|
+
"paramsSerializer",
|
|
27646
|
+
"timeout",
|
|
27647
|
+
"timeoutMessage",
|
|
27648
|
+
"withCredentials",
|
|
27649
|
+
"adapter",
|
|
27650
|
+
"responseType",
|
|
27651
|
+
"xsrfCookieName",
|
|
27652
|
+
"xsrfHeaderName",
|
|
27653
|
+
"onUploadProgress",
|
|
27654
|
+
"onDownloadProgress",
|
|
27655
|
+
"decompress",
|
|
27656
|
+
"maxContentLength",
|
|
27657
|
+
"maxBodyLength",
|
|
27658
|
+
"maxRedirects",
|
|
27659
|
+
"transport",
|
|
27660
|
+
"httpAgent",
|
|
27661
|
+
"httpsAgent",
|
|
27662
|
+
"cancelToken",
|
|
27663
|
+
"socketPath",
|
|
27664
|
+
"responseEncoding"
|
|
27665
|
+
];
|
|
27666
|
+
var directMergeKeys = ["validateStatus"];
|
|
27674
27667
|
function getMergedValue(target2, source2) {
|
|
27675
27668
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
27676
27669
|
return utils$2.merge(target2, source2);
|
|
@@ -27683,69 +27676,141 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
27683
27676
|
}
|
|
27684
27677
|
function mergeDeepProperties(prop) {
|
|
27685
27678
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
27686
|
-
|
|
27679
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
27687
27680
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
27688
|
-
|
|
27681
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
27689
27682
|
}
|
|
27690
27683
|
}
|
|
27691
|
-
function valueFromConfig2(prop) {
|
|
27684
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
27692
27685
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
27693
|
-
|
|
27686
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
27694
27687
|
}
|
|
27695
|
-
}
|
|
27696
|
-
|
|
27688
|
+
});
|
|
27689
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
27690
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
27697
27691
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
27698
|
-
|
|
27692
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
27699
27693
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
27700
|
-
|
|
27694
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
27701
27695
|
}
|
|
27702
|
-
}
|
|
27703
|
-
function
|
|
27696
|
+
});
|
|
27697
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
27704
27698
|
if (prop in config2) {
|
|
27705
|
-
|
|
27699
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
27706
27700
|
} else if (prop in config1) {
|
|
27707
|
-
|
|
27708
|
-
}
|
|
27709
|
-
}
|
|
27710
|
-
var mergeMap = {
|
|
27711
|
-
"url": valueFromConfig2,
|
|
27712
|
-
"method": valueFromConfig2,
|
|
27713
|
-
"data": valueFromConfig2,
|
|
27714
|
-
"baseURL": defaultToConfig2,
|
|
27715
|
-
"transformRequest": defaultToConfig2,
|
|
27716
|
-
"transformResponse": defaultToConfig2,
|
|
27717
|
-
"paramsSerializer": defaultToConfig2,
|
|
27718
|
-
"timeout": defaultToConfig2,
|
|
27719
|
-
"timeoutMessage": defaultToConfig2,
|
|
27720
|
-
"withCredentials": defaultToConfig2,
|
|
27721
|
-
"adapter": defaultToConfig2,
|
|
27722
|
-
"responseType": defaultToConfig2,
|
|
27723
|
-
"xsrfCookieName": defaultToConfig2,
|
|
27724
|
-
"xsrfHeaderName": defaultToConfig2,
|
|
27725
|
-
"onUploadProgress": defaultToConfig2,
|
|
27726
|
-
"onDownloadProgress": defaultToConfig2,
|
|
27727
|
-
"decompress": defaultToConfig2,
|
|
27728
|
-
"maxContentLength": defaultToConfig2,
|
|
27729
|
-
"maxBodyLength": defaultToConfig2,
|
|
27730
|
-
"transport": defaultToConfig2,
|
|
27731
|
-
"httpAgent": defaultToConfig2,
|
|
27732
|
-
"httpsAgent": defaultToConfig2,
|
|
27733
|
-
"cancelToken": defaultToConfig2,
|
|
27734
|
-
"socketPath": defaultToConfig2,
|
|
27735
|
-
"responseEncoding": defaultToConfig2,
|
|
27736
|
-
"validateStatus": mergeDirectKeys
|
|
27737
|
-
};
|
|
27738
|
-
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
27739
|
-
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
27740
|
-
var configValue = merge2(prop);
|
|
27741
|
-
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
27701
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
27702
|
+
}
|
|
27742
27703
|
});
|
|
27704
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
27705
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
27706
|
+
return axiosKeys.indexOf(key) === -1;
|
|
27707
|
+
});
|
|
27708
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
27743
27709
|
return config3;
|
|
27744
27710
|
};
|
|
27745
|
-
|
|
27746
|
-
|
|
27711
|
+
const name$1 = "axios";
|
|
27712
|
+
const version = "0.21.4";
|
|
27713
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
27714
|
+
const main = "index.js";
|
|
27715
|
+
const scripts = {
|
|
27716
|
+
test: "grunt test",
|
|
27717
|
+
start: "node ./sandbox/server.js",
|
|
27718
|
+
build: "NODE_ENV=production grunt build",
|
|
27719
|
+
preversion: "npm test",
|
|
27720
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
27721
|
+
postversion: "git push && git push --tags",
|
|
27722
|
+
examples: "node ./examples/server.js",
|
|
27723
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
27724
|
+
fix: "eslint --fix lib/**/*.js"
|
|
27725
|
+
};
|
|
27726
|
+
const repository = {
|
|
27727
|
+
type: "git",
|
|
27728
|
+
url: "https://github.com/axios/axios.git"
|
|
27729
|
+
};
|
|
27730
|
+
const keywords = [
|
|
27731
|
+
"xhr",
|
|
27732
|
+
"http",
|
|
27733
|
+
"ajax",
|
|
27734
|
+
"promise",
|
|
27735
|
+
"node"
|
|
27736
|
+
];
|
|
27737
|
+
const author = "Matt Zabriskie";
|
|
27738
|
+
const license = "MIT";
|
|
27739
|
+
const bugs = {
|
|
27740
|
+
url: "https://github.com/axios/axios/issues"
|
|
27741
|
+
};
|
|
27742
|
+
const homepage = "https://axios-http.com";
|
|
27743
|
+
const devDependencies = {
|
|
27744
|
+
coveralls: "^3.0.0",
|
|
27745
|
+
"es6-promise": "^4.2.4",
|
|
27746
|
+
grunt: "^1.3.0",
|
|
27747
|
+
"grunt-banner": "^0.6.0",
|
|
27748
|
+
"grunt-cli": "^1.2.0",
|
|
27749
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
27750
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
27751
|
+
"grunt-eslint": "^23.0.0",
|
|
27752
|
+
"grunt-karma": "^4.0.0",
|
|
27753
|
+
"grunt-mocha-test": "^0.13.3",
|
|
27754
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
27755
|
+
"grunt-webpack": "^4.0.2",
|
|
27756
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
27757
|
+
"jasmine-core": "^2.4.1",
|
|
27758
|
+
karma: "^6.3.2",
|
|
27759
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
27760
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
27761
|
+
"karma-jasmine": "^1.1.1",
|
|
27762
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
27763
|
+
"karma-safari-launcher": "^1.0.0",
|
|
27764
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
27765
|
+
"karma-sinon": "^1.0.5",
|
|
27766
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
27767
|
+
"karma-webpack": "^4.0.2",
|
|
27768
|
+
"load-grunt-tasks": "^3.5.2",
|
|
27769
|
+
minimist: "^1.2.0",
|
|
27770
|
+
mocha: "^8.2.1",
|
|
27771
|
+
sinon: "^4.5.0",
|
|
27772
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
27773
|
+
typescript: "^4.0.5",
|
|
27774
|
+
"url-search-params": "^0.10.0",
|
|
27775
|
+
webpack: "^4.44.2",
|
|
27776
|
+
"webpack-dev-server": "^3.11.0"
|
|
27777
|
+
};
|
|
27778
|
+
const browser = {
|
|
27779
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
27780
|
+
};
|
|
27781
|
+
const jsdelivr = "dist/axios.min.js";
|
|
27782
|
+
const unpkg = "dist/axios.min.js";
|
|
27783
|
+
const typings = "./index.d.ts";
|
|
27784
|
+
const dependencies = {
|
|
27785
|
+
"follow-redirects": "^1.14.0"
|
|
27747
27786
|
};
|
|
27748
|
-
|
|
27787
|
+
const bundlesize = [
|
|
27788
|
+
{
|
|
27789
|
+
path: "./dist/axios.min.js",
|
|
27790
|
+
threshold: "5kB"
|
|
27791
|
+
}
|
|
27792
|
+
];
|
|
27793
|
+
var require$$0 = {
|
|
27794
|
+
name: name$1,
|
|
27795
|
+
version,
|
|
27796
|
+
description,
|
|
27797
|
+
main,
|
|
27798
|
+
scripts,
|
|
27799
|
+
repository,
|
|
27800
|
+
keywords,
|
|
27801
|
+
author,
|
|
27802
|
+
license,
|
|
27803
|
+
bugs,
|
|
27804
|
+
homepage,
|
|
27805
|
+
devDependencies,
|
|
27806
|
+
browser,
|
|
27807
|
+
jsdelivr,
|
|
27808
|
+
unpkg,
|
|
27809
|
+
typings,
|
|
27810
|
+
dependencies,
|
|
27811
|
+
bundlesize
|
|
27812
|
+
};
|
|
27813
|
+
var pkg = require$$0;
|
|
27749
27814
|
var validators$1 = {};
|
|
27750
27815
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
|
|
27751
27816
|
validators$1[type] = function validator2(thing) {
|
|
@@ -27753,15 +27818,29 @@ var validators$1 = {};
|
|
|
27753
27818
|
};
|
|
27754
27819
|
});
|
|
27755
27820
|
var deprecatedWarnings = {};
|
|
27821
|
+
var currentVerArr = pkg.version.split(".");
|
|
27822
|
+
function isOlderVersion(version2, thanVersion) {
|
|
27823
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
27824
|
+
var destVer = version2.split(".");
|
|
27825
|
+
for (var i = 0; i < 3; i++) {
|
|
27826
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
27827
|
+
return true;
|
|
27828
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
27829
|
+
return false;
|
|
27830
|
+
}
|
|
27831
|
+
}
|
|
27832
|
+
return false;
|
|
27833
|
+
}
|
|
27756
27834
|
validators$1.transitional = function transitional(validator2, version2, message) {
|
|
27835
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
27757
27836
|
function formatMessage(opt, desc) {
|
|
27758
|
-
return "[Axios v" +
|
|
27837
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
27759
27838
|
}
|
|
27760
27839
|
return function(value, opt, opts) {
|
|
27761
27840
|
if (validator2 === false) {
|
|
27762
|
-
throw new Error(formatMessage(opt, " has been removed
|
|
27841
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
27763
27842
|
}
|
|
27764
|
-
if (
|
|
27843
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
27765
27844
|
deprecatedWarnings[opt] = true;
|
|
27766
27845
|
console.warn(
|
|
27767
27846
|
formatMessage(
|
|
@@ -27796,6 +27875,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
27796
27875
|
}
|
|
27797
27876
|
}
|
|
27798
27877
|
var validator$1 = {
|
|
27878
|
+
isOlderVersion,
|
|
27799
27879
|
assertOptions,
|
|
27800
27880
|
validators: validators$1
|
|
27801
27881
|
};
|
|
@@ -27831,9 +27911,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
27831
27911
|
var transitional2 = config2.transitional;
|
|
27832
27912
|
if (transitional2 !== void 0) {
|
|
27833
27913
|
validator.assertOptions(transitional2, {
|
|
27834
|
-
silentJSONParsing: validators.transitional(validators.boolean),
|
|
27835
|
-
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
27836
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
27914
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
27915
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
27916
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
27837
27917
|
}, false);
|
|
27838
27918
|
}
|
|
27839
27919
|
var requestInterceptorChain = [];
|
|
@@ -27895,15 +27975,23 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
27895
27975
|
};
|
|
27896
27976
|
});
|
|
27897
27977
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
27898
|
-
Axios$1.prototype[method] = function(url,
|
|
27978
|
+
Axios$1.prototype[method] = function(url, data, config2) {
|
|
27899
27979
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
27900
27980
|
method,
|
|
27901
27981
|
url,
|
|
27902
|
-
data
|
|
27982
|
+
data
|
|
27903
27983
|
}));
|
|
27904
27984
|
};
|
|
27905
27985
|
});
|
|
27906
27986
|
var Axios_1 = Axios$1;
|
|
27987
|
+
function Cancel$1(message) {
|
|
27988
|
+
this.message = message;
|
|
27989
|
+
}
|
|
27990
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
27991
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
27992
|
+
};
|
|
27993
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
27994
|
+
var Cancel_1 = Cancel$1;
|
|
27907
27995
|
var Cancel = Cancel_1;
|
|
27908
27996
|
function CancelToken(executor) {
|
|
27909
27997
|
if (typeof executor !== "function") {
|
|
@@ -27914,27 +28002,6 @@ function CancelToken(executor) {
|
|
|
27914
28002
|
resolvePromise = resolve;
|
|
27915
28003
|
});
|
|
27916
28004
|
var token = this;
|
|
27917
|
-
this.promise.then(function(cancel) {
|
|
27918
|
-
if (!token._listeners)
|
|
27919
|
-
return;
|
|
27920
|
-
var i;
|
|
27921
|
-
var l = token._listeners.length;
|
|
27922
|
-
for (i = 0; i < l; i++) {
|
|
27923
|
-
token._listeners[i](cancel);
|
|
27924
|
-
}
|
|
27925
|
-
token._listeners = null;
|
|
27926
|
-
});
|
|
27927
|
-
this.promise.then = function(onfulfilled) {
|
|
27928
|
-
var _resolve;
|
|
27929
|
-
var promise = new Promise(function(resolve) {
|
|
27930
|
-
token.subscribe(resolve);
|
|
27931
|
-
_resolve = resolve;
|
|
27932
|
-
}).then(onfulfilled);
|
|
27933
|
-
promise.cancel = function reject() {
|
|
27934
|
-
token.unsubscribe(_resolve);
|
|
27935
|
-
};
|
|
27936
|
-
return promise;
|
|
27937
|
-
};
|
|
27938
28005
|
executor(function cancel(message) {
|
|
27939
28006
|
if (token.reason) {
|
|
27940
28007
|
return;
|
|
@@ -27948,26 +28015,6 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
27948
28015
|
throw this.reason;
|
|
27949
28016
|
}
|
|
27950
28017
|
};
|
|
27951
|
-
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
27952
|
-
if (this.reason) {
|
|
27953
|
-
listener(this.reason);
|
|
27954
|
-
return;
|
|
27955
|
-
}
|
|
27956
|
-
if (this._listeners) {
|
|
27957
|
-
this._listeners.push(listener);
|
|
27958
|
-
} else {
|
|
27959
|
-
this._listeners = [listener];
|
|
27960
|
-
}
|
|
27961
|
-
};
|
|
27962
|
-
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
27963
|
-
if (!this._listeners) {
|
|
27964
|
-
return;
|
|
27965
|
-
}
|
|
27966
|
-
var index2 = this._listeners.indexOf(listener);
|
|
27967
|
-
if (index2 !== -1) {
|
|
27968
|
-
this._listeners.splice(index2, 1);
|
|
27969
|
-
}
|
|
27970
|
-
};
|
|
27971
28018
|
CancelToken.source = function source() {
|
|
27972
28019
|
var cancel;
|
|
27973
28020
|
var token = new CancelToken(function executor(c) {
|
|
@@ -27997,17 +28044,16 @@ function createInstance(defaultConfig) {
|
|
|
27997
28044
|
var instance = bind2(Axios.prototype.request, context);
|
|
27998
28045
|
utils.extend(instance, Axios.prototype, context);
|
|
27999
28046
|
utils.extend(instance, context);
|
|
28000
|
-
instance.create = function create(instanceConfig) {
|
|
28001
|
-
return createInstance(mergeConfig2(defaultConfig, instanceConfig));
|
|
28002
|
-
};
|
|
28003
28047
|
return instance;
|
|
28004
28048
|
}
|
|
28005
28049
|
var axios$1 = createInstance(defaults);
|
|
28006
28050
|
axios$1.Axios = Axios;
|
|
28051
|
+
axios$1.create = function create(instanceConfig) {
|
|
28052
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
28053
|
+
};
|
|
28007
28054
|
axios$1.Cancel = Cancel_1;
|
|
28008
28055
|
axios$1.CancelToken = CancelToken_1;
|
|
28009
28056
|
axios$1.isCancel = isCancel$1;
|
|
28010
|
-
axios$1.VERSION = data.version;
|
|
28011
28057
|
axios$1.all = function all(promises) {
|
|
28012
28058
|
return Promise.all(promises);
|
|
28013
28059
|
};
|
|
@@ -28027,16 +28073,16 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
28027
28073
|
doChangeTheme(theme);
|
|
28028
28074
|
if (!location.pathname.includes("scyxweb")) {
|
|
28029
28075
|
let url = location.protocol + "//" + location.host + "/ibp-sc/manage/global?t=" + new Date().getTime();
|
|
28030
|
-
axios.get(url).then(({ data
|
|
28031
|
-
if (
|
|
28076
|
+
axios.get(url).then(({ data }) => {
|
|
28077
|
+
if (data.smallTheme) {
|
|
28032
28078
|
let smallThemeDom = document.getElementsByClassName("ind-small-theme")[0];
|
|
28033
28079
|
if (smallThemeDom) {
|
|
28034
|
-
_.forIn(
|
|
28080
|
+
_.forIn(data.smallTheme, (v, k) => {
|
|
28035
28081
|
smallThemeDom.style.setProperty(k, v);
|
|
28036
28082
|
});
|
|
28037
28083
|
}
|
|
28038
28084
|
}
|
|
28039
|
-
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {},
|
|
28085
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data);
|
|
28040
28086
|
});
|
|
28041
28087
|
}
|
|
28042
28088
|
if (!((_a = Vue2.prototype.$config) == null ? void 0 : _a.systemDefaultConfig)) {
|
|
@@ -28106,7 +28152,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
28106
28152
|
window.addEventListener("orientationchange", () => EventBus.$on("resize"), { passive: true });
|
|
28107
28153
|
}
|
|
28108
28154
|
const API = {
|
|
28109
|
-
version: pkg.version,
|
|
28155
|
+
version: pkg$1.version,
|
|
28110
28156
|
install,
|
|
28111
28157
|
components,
|
|
28112
28158
|
directives,
|