@indfnd/common-mobile 1.0.56 → 1.0.58

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.
@@ -2,13 +2,13 @@ import _ from "lodash";
2
2
  import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$3, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, listItemTreeApi, getToken, MIME_TYPE, config as config$1, getSessionStorage, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, setConfig } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
- const name$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.55";
7
- const author$1 = "huxuetong";
5
+ const name = "@indfnd/common-mobile";
6
+ const version$1 = "1.0.57";
7
+ const author = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
10
10
  };
11
- const main$2 = "./dist/ind-common-mobile.umd.cjs";
11
+ const main$1 = "./dist/ind-common-mobile.umd.cjs";
12
12
  const module = "./dist/ind-common-mobile.es.js";
13
13
  const style = "./dist/styles/index.css";
14
14
  const types = "./types/index.d.ts";
@@ -32,7 +32,7 @@ const files = [
32
32
  "global.d.ts",
33
33
  "src/styles/variables"
34
34
  ];
35
- const scripts$1 = {
35
+ const scripts = {
36
36
  "build:prod": "vite build",
37
37
  "build:style": "gulp --gulpfile build/build-style.js",
38
38
  build: "yarn build:prod && yarn build:style",
@@ -44,11 +44,11 @@ const scripts$1 = {
44
44
  "release-patch": "standard-version --release-as patch",
45
45
  "re-publish": "yarn publish --access public"
46
46
  };
47
- const dependencies$1 = {
47
+ const dependencies = {
48
48
  classnames: "^2.5.1",
49
49
  vuedraggable: "^2.24.3"
50
50
  };
51
- const devDependencies$1 = {
51
+ const devDependencies = {
52
52
  lodash: "4.17.21",
53
53
  "@indfnd/utils": "^0.1.36",
54
54
  eslint: "^3.19.0",
@@ -82,20 +82,20 @@ const devDependencies$1 = {
82
82
  const engines = {
83
83
  node: ">= 16"
84
84
  };
85
- var pkg$1 = {
86
- name: name$1,
87
- version: version$2,
88
- author: author$1,
85
+ var pkg = {
86
+ name,
87
+ version: version$1,
88
+ author,
89
89
  publishConfig,
90
- main: main$2,
90
+ main: main$1,
91
91
  module,
92
92
  style,
93
93
  types,
94
94
  exports,
95
95
  files,
96
- scripts: scripts$1,
97
- dependencies: dependencies$1,
98
- devDependencies: devDependencies$1,
96
+ scripts,
97
+ dependencies,
98
+ devDependencies,
99
99
  engines
100
100
  };
101
101
  var render$L = function() {
@@ -3819,21 +3819,21 @@ const __vue2_script$A = {
3819
3819
  }
3820
3820
  this.loadingComp = false;
3821
3821
  }, 2),
3822
- setForm(table, data49) {
3822
+ setForm(table, data50) {
3823
3823
  let field = table.dataField;
3824
3824
  if (table.type == "form") {
3825
3825
  if (field) {
3826
- this.form[field] = data49;
3826
+ this.form[field] = data50;
3827
3827
  } else {
3828
- this.form = data49;
3828
+ this.form = data50;
3829
3829
  }
3830
3830
  } else if (table.type == "list") {
3831
3831
  let rowKey = table.rowKey || "id";
3832
3832
  let listTmp = _.cloneDeep(this.form[field]);
3833
3833
  let tmpRow = _.find(listTmp, (d) => {
3834
- return d[rowKey] == data49[rowKey];
3834
+ return d[rowKey] == data50[rowKey];
3835
3835
  });
3836
- _.merge(tmpRow, data49);
3836
+ _.merge(tmpRow, data50);
3837
3837
  this.form[field] = listTmp;
3838
3838
  }
3839
3839
  },
@@ -4121,12 +4121,12 @@ const __vue2_script$z = {
4121
4121
  params = this.renderParams(params);
4122
4122
  }
4123
4123
  const result = await this.dataApi(params);
4124
- let data49 = result.data.rows || result.data.records || [];
4124
+ let data50 = result.data.rows || result.data.records || [];
4125
4125
  if (this.disablePage && result.data instanceof Array) {
4126
- data49 = result.data;
4126
+ data50 = result.data;
4127
4127
  }
4128
- this.rows = [...this.rows, ...data49];
4129
- this.allData = [...this.allData, ...data49];
4128
+ this.rows = [...this.rows, ...data50];
4129
+ this.allData = [...this.allData, ...data50];
4130
4130
  this.pagination.offset += this.pagination.limit;
4131
4131
  this.currentPage++;
4132
4132
  this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
@@ -4229,13 +4229,13 @@ const __vue2_script$z = {
4229
4229
  params = this.renderParams(params);
4230
4230
  }
4231
4231
  const result = await this.dataApi(params);
4232
- let data49 = result.data.rows || result.data.records || [];
4232
+ let data50 = result.data.rows || result.data.records || [];
4233
4233
  if (this.disablePage && result.data instanceof Array) {
4234
- data49 = result.data;
4234
+ data50 = result.data;
4235
4235
  }
4236
- this.rows = data49;
4237
- this.allData = [...data49];
4238
- this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (data49 == null ? void 0 : data49.length) || 0 : 0);
4236
+ this.rows = data50;
4237
+ this.allData = [...data50];
4238
+ this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (data50 == null ? void 0 : data50.length) || 0 : 0);
4239
4239
  if (!this.disablePage) {
4240
4240
  this.pagination.total = this.total;
4241
4241
  this.isFinished = this.pagination.limit >= this.pagination.total;
@@ -5108,14 +5108,14 @@ function emit(context2, eventName) {
5108
5108
  }
5109
5109
  }
5110
5110
  }
5111
- function mount(Component, data49) {
5111
+ function mount(Component, data50) {
5112
5112
  var instance2 = new Vue$1({
5113
5113
  el: document.createElement("div"),
5114
5114
  props: Component.props,
5115
5115
  render: function render83(h) {
5116
5116
  return h(Component, _extends$2({
5117
5117
  props: this.$props
5118
- }, data49));
5118
+ }, data50));
5119
5119
  }
5120
5120
  });
5121
5121
  document.body.appendChild(instance2.$el);
@@ -5521,7 +5521,7 @@ function PopupMixin(options) {
5521
5521
  };
5522
5522
  },
5523
5523
  props: popupMixinProps,
5524
- data: function data49() {
5524
+ data: function data50() {
5525
5525
  this.onReopenCallback = [];
5526
5526
  return {
5527
5527
  inited: this.value
@@ -5973,11 +5973,11 @@ function ActionSheet(h, props, slots2, ctx) {
5973
5973
  }
5974
5974
  }
5975
5975
  function Description() {
5976
- var description2 = (slots2.description == null ? void 0 : slots2.description()) || props.description;
5977
- if (description2) {
5976
+ var description = (slots2.description == null ? void 0 : slots2.description()) || props.description;
5977
+ if (description) {
5978
5978
  return h("div", {
5979
5979
  "class": bem$1s("description")
5980
- }, [description2]);
5980
+ }, [description]);
5981
5981
  }
5982
5982
  }
5983
5983
  return h(Popup, _mergeJSXProps([{
@@ -6372,7 +6372,7 @@ var PickerColumn = createComponent$1A({
6372
6372
  var _domProps;
6373
6373
  var text = _this4.getOptionText(option2);
6374
6374
  var disabled = isOptionDisabled(option2);
6375
- var data49 = {
6375
+ var data50 = {
6376
6376
  style: optionStyle,
6377
6377
  attrs: {
6378
6378
  role: "button",
@@ -6392,7 +6392,7 @@ var PickerColumn = createComponent$1A({
6392
6392
  class: "van-ellipsis",
6393
6393
  domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
6394
6394
  };
6395
- return h("li", _mergeJSXProps([{}, data49]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
6395
+ return h("li", _mergeJSXProps([{}, data50]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
6396
6396
  });
6397
6397
  }
6398
6398
  },
@@ -8196,7 +8196,7 @@ function ParentMixin(parent) {
8196
8196
  var _ref;
8197
8197
  return _ref = {}, _ref[parent] = this, _ref;
8198
8198
  },
8199
- data: function data49() {
8199
+ data: function data50() {
8200
8200
  return {
8201
8201
  children: []
8202
8202
  };
@@ -8462,7 +8462,7 @@ var VanDialog = createComponent$1r({
8462
8462
  var message = this.message, messageAlign = this.messageAlign;
8463
8463
  if (message) {
8464
8464
  var _bem, _domProps;
8465
- var data49 = {
8465
+ var data50 = {
8466
8466
  class: bem$1i("message", (_bem = {
8467
8467
  "has-title": hasTitle
8468
8468
  }, _bem[messageAlign] = messageAlign, _bem)),
@@ -8472,7 +8472,7 @@ var VanDialog = createComponent$1r({
8472
8472
  "class": bem$1i("content", {
8473
8473
  isolated: !hasTitle
8474
8474
  })
8475
- }, [h("div", _mergeJSXProps([{}, data49]))]);
8475
+ }, [h("div", _mergeJSXProps([{}, data50]))]);
8476
8476
  }
8477
8477
  }
8478
8478
  },
@@ -9061,7 +9061,7 @@ var AddressEdit = createComponent$1o({
9061
9061
  },
9062
9062
  render: function render12(h) {
9063
9063
  var _this5 = this;
9064
- var data49 = this.data, errorInfo = this.errorInfo, disableArea = this.disableArea, hideBottomFields2 = this.hideBottomFields;
9064
+ var data50 = this.data, errorInfo = this.errorInfo, disableArea = this.disableArea, hideBottomFields2 = this.hideBottomFields;
9065
9065
  var onFocus5 = function onFocus6(name2) {
9066
9066
  return function() {
9067
9067
  return _this5.onFocus(name2);
@@ -9082,9 +9082,9 @@ var AddressEdit = createComponent$1o({
9082
9082
  "focus": onFocus5("name")
9083
9083
  },
9084
9084
  "model": {
9085
- value: data49.name,
9085
+ value: data50.name,
9086
9086
  callback: function callback2($$v) {
9087
- _this5.$set(data49, "name", $$v);
9087
+ _this5.$set(data50, "name", $$v);
9088
9088
  }
9089
9089
  }
9090
9090
  }), h(Field, {
@@ -9100,9 +9100,9 @@ var AddressEdit = createComponent$1o({
9100
9100
  "focus": onFocus5("tel")
9101
9101
  },
9102
9102
  "model": {
9103
- value: data49.tel,
9103
+ value: data50.tel,
9104
9104
  callback: function callback2($$v) {
9105
- _this5.$set(data49, "tel", $$v);
9105
+ _this5.$set(data50, "tel", $$v);
9106
9106
  }
9107
9107
  }
9108
9108
  }), h(Field, {
@@ -9133,7 +9133,7 @@ var AddressEdit = createComponent$1o({
9133
9133
  }],
9134
9134
  "attrs": {
9135
9135
  "focused": this.detailFocused,
9136
- "value": data49.addressDetail,
9136
+ "value": data50.addressDetail,
9137
9137
  "errorMessage": errorInfo.addressDetail,
9138
9138
  "detailRows": this.detailRows,
9139
9139
  "detailMaxlength": this.detailMaxlength,
@@ -9164,9 +9164,9 @@ var AddressEdit = createComponent$1o({
9164
9164
  "focus": onFocus5("postalCode")
9165
9165
  },
9166
9166
  "model": {
9167
- value: data49.postalCode,
9167
+ value: data50.postalCode,
9168
9168
  callback: function callback2($$v) {
9169
- _this5.$set(data49, "postalCode", $$v);
9169
+ _this5.$set(data50, "postalCode", $$v);
9170
9170
  }
9171
9171
  }
9172
9172
  }), this.slots()]), this.genSetDefaultCell(h), h("div", {
@@ -9212,7 +9212,7 @@ var AddressEdit = createComponent$1o({
9212
9212
  }, [h(Area, {
9213
9213
  "ref": "area",
9214
9214
  "attrs": {
9215
- "value": data49.areaCode,
9215
+ "value": data50.areaCode,
9216
9216
  "loading": !this.areaListLoaded,
9217
9217
  "areaList": this.areaList,
9218
9218
  "columnsPlaceholder": this.areaColumnsPlaceholder
@@ -9494,16 +9494,16 @@ function AddressItem(h, props, slots2, ctx) {
9494
9494
  }
9495
9495
  }
9496
9496
  function genContent6() {
9497
- var data49 = props.data;
9497
+ var data50 = props.data;
9498
9498
  var Info2 = [h("div", {
9499
9499
  "class": bem$1b("name")
9500
- }, [data49.name + " " + data49.tel, genTag()]), h("div", {
9500
+ }, [data50.name + " " + data50.tel, genTag()]), h("div", {
9501
9501
  "class": bem$1b("address")
9502
- }, [data49.address])];
9502
+ }, [data50.address])];
9503
9503
  if (switchable && !disabled) {
9504
9504
  return h(Radio, {
9505
9505
  "attrs": {
9506
- "name": data49.id,
9506
+ "name": data50.id,
9507
9507
  "iconSize": 18
9508
9508
  }
9509
9509
  }, [Info2]);
@@ -12498,7 +12498,7 @@ var ContactEdit = createComponent$_({
12498
12498
  render: function render30() {
12499
12499
  var _this3 = this;
12500
12500
  var h = arguments[0];
12501
- var data49 = this.data, errorInfo = this.errorInfo;
12501
+ var data50 = this.data, errorInfo = this.errorInfo;
12502
12502
  var onFocus5 = function onFocus6(name2) {
12503
12503
  return function() {
12504
12504
  return _this3.onFocus(name2);
@@ -12520,9 +12520,9 @@ var ContactEdit = createComponent$_({
12520
12520
  "focus": onFocus5("name")
12521
12521
  },
12522
12522
  "model": {
12523
- value: data49.name,
12523
+ value: data50.name,
12524
12524
  callback: function callback2($$v) {
12525
- _this3.$set(data49, "name", $$v);
12525
+ _this3.$set(data50, "name", $$v);
12526
12526
  }
12527
12527
  }
12528
12528
  }), h(Field, {
@@ -12537,9 +12537,9 @@ var ContactEdit = createComponent$_({
12537
12537
  "focus": onFocus5("tel")
12538
12538
  },
12539
12539
  "model": {
12540
- value: data49.tel,
12540
+ value: data50.tel,
12541
12541
  callback: function callback2($$v) {
12542
- _this3.$set(data49, "tel", $$v);
12542
+ _this3.$set(data50, "tel", $$v);
12543
12543
  }
12544
12544
  }
12545
12545
  })]), this.showSetDefault && h(Cell$1, {
@@ -12559,9 +12559,9 @@ var ContactEdit = createComponent$_({
12559
12559
  }
12560
12560
  },
12561
12561
  "model": {
12562
- value: data49.isDefault,
12562
+ value: data50.isDefault,
12563
12563
  callback: function callback2($$v) {
12564
- _this3.$set(data49, "isDefault", $$v);
12564
+ _this3.$set(data50, "isDefault", $$v);
12565
12565
  }
12566
12566
  }
12567
12567
  })]), h("div", {
@@ -12923,7 +12923,7 @@ var Coupon = createComponent$X({
12923
12923
  render: function render32() {
12924
12924
  var h = arguments[0];
12925
12925
  var coupon = this.coupon, disabled = this.disabled;
12926
- var description2 = disabled && coupon.reason || coupon.description;
12926
+ var description = disabled && coupon.reason || coupon.description;
12927
12927
  return h("div", {
12928
12928
  "class": bem$Q({
12929
12929
  disabled
@@ -12952,9 +12952,9 @@ var Coupon = createComponent$X({
12952
12952
  "checkedColor": RED
12953
12953
  },
12954
12954
  "class": bem$Q("corner")
12955
- })])]), description2 && h("p", {
12955
+ })])]), description && h("p", {
12956
12956
  "class": bem$Q("description")
12957
- }, [description2])]);
12957
+ }, [description])]);
12958
12958
  }
12959
12959
  });
12960
12960
  var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
@@ -13986,7 +13986,7 @@ var ClickOutsideMixin = function ClickOutsideMixin2(config2) {
13986
13986
  default: true
13987
13987
  }
13988
13988
  },
13989
- data: function data49() {
13989
+ data: function data50() {
13990
13990
  var _this = this;
13991
13991
  var clickOutsideHandler = function clickOutsideHandler2(event) {
13992
13992
  if (_this.closeOnClickOutside && !_this.$el.contains(event.target)) {
@@ -14340,11 +14340,11 @@ var Empty = createComponent$O({
14340
14340
  },
14341
14341
  genDescription: function genDescription() {
14342
14342
  var h = this.$createElement;
14343
- var description2 = this.slots("description") || this.description;
14344
- if (description2) {
14343
+ var description = this.slots("description") || this.description;
14344
+ if (description) {
14345
14345
  return h("p", {
14346
14346
  "class": bem$J("description")
14347
- }, [description2]);
14347
+ }, [description]);
14348
14348
  }
14349
14349
  },
14350
14350
  genBottom: function genBottom() {
@@ -15636,9 +15636,9 @@ var initInstance = function initInstance2() {
15636
15636
  instance$1.onChange(index2);
15637
15637
  }
15638
15638
  });
15639
- instance$1.$on("scale", function(data49) {
15639
+ instance$1.$on("scale", function(data50) {
15640
15640
  if (instance$1.onScale) {
15641
- instance$1.onScale(data49);
15641
+ instance$1.onScale(data50);
15642
15642
  }
15643
15643
  });
15644
15644
  };
@@ -17323,12 +17323,12 @@ var beforeRead = "beforeRead";
17323
17323
  var read = "read";
17324
17324
  var afterRead = "afterRead";
17325
17325
  var beforeMain = "beforeMain";
17326
- var main$1 = "main";
17326
+ var main = "main";
17327
17327
  var afterMain = "afterMain";
17328
17328
  var beforeWrite = "beforeWrite";
17329
17329
  var write = "write";
17330
17330
  var afterWrite = "afterWrite";
17331
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, afterMain, beforeWrite, write, afterWrite];
17331
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
17332
17332
  function order(modifiers) {
17333
17333
  var map = /* @__PURE__ */ new Map();
17334
17334
  var visited = /* @__PURE__ */ new Set();
@@ -17964,16 +17964,16 @@ function distanceAndSkiddingToXY(placement, rects, offset22) {
17964
17964
  function offset2(_ref2) {
17965
17965
  var state = _ref2.state, options = _ref2.options, name2 = _ref2.name;
17966
17966
  var _options$offset = options.offset, offset22 = _options$offset === void 0 ? [0, 0] : _options$offset;
17967
- var data49 = placements.reduce(function(acc, placement) {
17967
+ var data50 = placements.reduce(function(acc, placement) {
17968
17968
  acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset22);
17969
17969
  return acc;
17970
17970
  }, {});
17971
- var _data$state$placement = data49[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
17971
+ var _data$state$placement = data50[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
17972
17972
  if (state.modifiersData.popperOffsets != null) {
17973
17973
  state.modifiersData.popperOffsets.x += x;
17974
17974
  state.modifiersData.popperOffsets.y += y;
17975
17975
  }
17976
- state.modifiersData[name2] = data49;
17976
+ state.modifiersData[name2] = data50;
17977
17977
  }
17978
17978
  var offset_default = {
17979
17979
  name: "offset",
@@ -18851,17 +18851,17 @@ var ShareSheet = createComponent$p({
18851
18851
  genHeader: function genHeader() {
18852
18852
  var h = this.$createElement;
18853
18853
  var title4 = this.slots("title") || this.title;
18854
- var description2 = this.slots("description") || this.description;
18855
- if (!title4 && !description2) {
18854
+ var description = this.slots("description") || this.description;
18855
+ if (!title4 && !description) {
18856
18856
  return;
18857
18857
  }
18858
18858
  return h("div", {
18859
18859
  "class": bem$k("header")
18860
18860
  }, [title4 && h("h2", {
18861
18861
  "class": bem$k("title")
18862
- }, [title4]), description2 && h("span", {
18862
+ }, [title4]), description && h("span", {
18863
18863
  "class": bem$k("description")
18864
- }, [description2])]);
18864
+ }, [description])]);
18865
18865
  },
18866
18866
  genOptions: function genOptions2(options, showBorder) {
18867
18867
  var _this = this;
@@ -20224,9 +20224,9 @@ var Uploader = createComponent$e({
20224
20224
  return;
20225
20225
  }
20226
20226
  if (isPromise(response)) {
20227
- response.then(function(data49) {
20228
- if (data49) {
20229
- _this.readFile(data49);
20227
+ response.then(function(data50) {
20228
+ if (data50) {
20229
+ _this.readFile(data50);
20230
20230
  } else {
20231
20231
  _this.readFile(files2);
20232
20232
  }
@@ -20682,11 +20682,11 @@ var SkuDateTimeField = createComponent$c({
20682
20682
  this.showDatePicker = true;
20683
20683
  },
20684
20684
  onConfirm: function onConfirm4(val) {
20685
- var data49 = val;
20685
+ var data50 = val;
20686
20686
  if (this.type !== "time") {
20687
- data49 = dateToString(val, this.type);
20687
+ data50 = dateToString(val, this.type);
20688
20688
  }
20689
- this.$emit("input", data49);
20689
+ this.$emit("input", data50);
20690
20690
  this.showDatePicker = false;
20691
20691
  },
20692
20692
  onCancel: function onCancel3() {
@@ -21411,11 +21411,11 @@ var Sku = createComponent$9({
21411
21411
  }
21412
21412
  });
21413
21413
  },
21414
- onOverLimit: function onOverLimit2(data49) {
21415
- var action = data49.action, limitType = data49.limitType, quota = data49.quota, quotaUsed = data49.quotaUsed;
21414
+ onOverLimit: function onOverLimit2(data50) {
21415
+ var action = data50.action, limitType = data50.limitType, quota = data50.quota, quotaUsed = data50.quotaUsed;
21416
21416
  var handleOverLimit = this.customStepperConfig.handleOverLimit;
21417
21417
  if (handleOverLimit) {
21418
- handleOverLimit(data49);
21418
+ handleOverLimit(data50);
21419
21419
  return;
21420
21420
  }
21421
21421
  if (action === "minus") {
@@ -21436,8 +21436,8 @@ var Sku = createComponent$9({
21436
21436
  }
21437
21437
  }
21438
21438
  },
21439
- onStepperState: function onStepperState(data49) {
21440
- this.stepperError = data49.valid ? null : _extends$2({}, data49, {
21439
+ onStepperState: function onStepperState(data50) {
21440
+ this.stepperError = data50.valid ? null : _extends$2({}, data50, {
21441
21441
  action: "plus"
21442
21442
  });
21443
21443
  },
@@ -22647,6 +22647,25 @@ function install$1(Vue2) {
22647
22647
  if (typeof window !== "undefined" && window.Vue) {
22648
22648
  install$1(window.Vue);
22649
22649
  }
22650
+ const isHb$1 = location.pathname.includes("scyxweb");
22651
+ function getIndexPreset(params) {
22652
+ return axios$3.get(
22653
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
22654
+ { params }
22655
+ );
22656
+ }
22657
+ function saveIndexPreset(params) {
22658
+ return axios$3.post(
22659
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
22660
+ params
22661
+ );
22662
+ }
22663
+ function getUserDefaultUrl() {
22664
+ console.log("getUserDefaultUrl begin");
22665
+ return axios$3.get(
22666
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
22667
+ );
22668
+ }
22650
22669
  var render$v = function() {
22651
22670
  var _vm = this;
22652
22671
  var _h = _vm.$createElement;
@@ -22684,6 +22703,10 @@ const __vue2_script$v = {
22684
22703
  });
22685
22704
  }
22686
22705
  } else {
22706
+ getUserDefaultUrl().then((resp) => {
22707
+ location.href = resp.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
22708
+ return;
22709
+ });
22687
22710
  this.$router.push({ name: config.homeRouteName }, () => {
22688
22711
  this.loading = false;
22689
22712
  });
@@ -22994,10 +23017,10 @@ const __vue2_script$r = {
22994
23017
  }
22995
23018
  },
22996
23019
  methods: {
22997
- setLength(data49) {
23020
+ setLength(data50) {
22998
23021
  var _a;
22999
23022
  if (this.isTree) {
23000
- let dataTmp = (data49 == null ? void 0 : data49.data) || data49;
23023
+ let dataTmp = (data50 == null ? void 0 : data50.data) || data50;
23001
23024
  let leafNodes = [];
23002
23025
  deepEach({}, dataTmp, (d, p, idx) => {
23003
23026
  var _a2;
@@ -23007,7 +23030,7 @@ const __vue2_script$r = {
23007
23030
  });
23008
23031
  this.dataLen = (leafNodes == null ? void 0 : leafNodes.length) || 0;
23009
23032
  } else {
23010
- this.dataLen = (data49 == null ? void 0 : data49.length) || ((_a = data49 == null ? void 0 : data49.data) == null ? void 0 : _a.length);
23033
+ this.dataLen = (data50 == null ? void 0 : data50.length) || ((_a = data50 == null ? void 0 : data50.data) == null ? void 0 : _a.length);
23011
23034
  }
23012
23035
  },
23013
23036
  toggleCheckAll() {
@@ -23018,7 +23041,7 @@ const __vue2_script$r = {
23018
23041
  }
23019
23042
  },
23020
23043
  isRowSelectable(params) {
23021
- return this.enableSelectAll || this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
23044
+ return params.data.disabled ? false : this.enableSelectAll || this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
23022
23045
  },
23023
23046
  async initConfig() {
23024
23047
  this.dataInited = false;
@@ -23311,8 +23334,8 @@ const __vue2_script$q = {
23311
23334
  clearSelected() {
23312
23335
  this.selectedTitles = "";
23313
23336
  },
23314
- updateSearchNum(data49) {
23315
- this.searchNum = data49;
23337
+ updateSearchNum(data50) {
23338
+ this.searchNum = data50;
23316
23339
  },
23317
23340
  updateSelectedTitles() {
23318
23341
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -24001,7 +24024,11 @@ const __vue2_script$h = {
24001
24024
  props: {
24002
24025
  item: { type: Object, default: () => ({}) },
24003
24026
  state: { type: Boolean, default: false },
24004
- editStatus: { type: String, default: "off" }
24027
+ editStatus: { type: String, default: "off" },
24028
+ ossServerContext: {
24029
+ type: String,
24030
+ default: "/user-manage-server"
24031
+ }
24005
24032
  },
24006
24033
  computed: {
24007
24034
  iconSize: function() {
@@ -24012,7 +24039,12 @@ const __vue2_script$h = {
24012
24039
  methods: {
24013
24040
  getImg(uri) {
24014
24041
  const isHb2 = location.pathname.includes("scyxweb");
24015
- return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
24042
+ if (uri.slice(0, 3) == "oss" && uri.length >= 4) {
24043
+ let newUri = uri.slice(4);
24044
+ return `${this.ossServerContext}/oss/file/get/${newUri}`;
24045
+ } else {
24046
+ return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
24047
+ }
24016
24048
  },
24017
24049
  ontouchstart(item2) {
24018
24050
  item2.move = false;
@@ -24155,7 +24187,7 @@ function _iterableToArray(iter) {
24155
24187
  function _nonIterableSpread() {
24156
24188
  throw new TypeError("Invalid attempt to spread non-iterable instance");
24157
24189
  }
24158
- var version$1 = "1.10.2";
24190
+ var version = "1.10.2";
24159
24191
  function userAgent$1(pattern) {
24160
24192
  if (typeof window !== "undefined" && window.navigator) {
24161
24193
  return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
@@ -24603,14 +24635,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
24603
24635
  return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
24604
24636
  }
24605
24637
  var plugins$1 = [];
24606
- var defaults$4 = {
24638
+ var defaults$5 = {
24607
24639
  initializeByDefault: true
24608
24640
  };
24609
24641
  var PluginManager = {
24610
24642
  mount: function mount2(plugin) {
24611
- for (var option2 in defaults$4) {
24612
- if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
24613
- plugin[option2] = defaults$4[option2];
24643
+ for (var option2 in defaults$5) {
24644
+ if (defaults$5.hasOwnProperty(option2) && !(option2 in plugin)) {
24645
+ plugin[option2] = defaults$5[option2];
24614
24646
  }
24615
24647
  }
24616
24648
  plugins$1.push(plugin);
@@ -24715,7 +24747,7 @@ function dispatchEvent(_ref) {
24715
24747
  }
24716
24748
  }
24717
24749
  var pluginEvent2 = function pluginEvent3(eventName, sortable) {
24718
- var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data49 = _objectWithoutProperties(_ref, ["evt"]);
24750
+ var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data50 = _objectWithoutProperties(_ref, ["evt"]);
24719
24751
  PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({
24720
24752
  dragEl,
24721
24753
  parentEl,
@@ -24748,7 +24780,7 @@ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
24748
24780
  originalEvent
24749
24781
  });
24750
24782
  }
24751
- }, data49));
24783
+ }, data50));
24752
24784
  };
24753
24785
  function _dispatchEvent(info) {
24754
24786
  dispatchEvent(_objectSpread({
@@ -25932,7 +25964,7 @@ Sortable.mount = function() {
25932
25964
  Sortable.create = function(el, options) {
25933
25965
  return new Sortable(el, options);
25934
25966
  };
25935
- Sortable.version = version$1;
25967
+ Sortable.version = version;
25936
25968
  var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
25937
25969
  function AutoScrollPlugin() {
25938
25970
  function AutoScroll() {
@@ -26250,15 +26282,15 @@ function MultiDragPlugin() {
26250
26282
  selectedClass: "sortable-selected",
26251
26283
  multiDragKey: null,
26252
26284
  setData: function setData(dataTransfer, dragEl2) {
26253
- var data49 = "";
26285
+ var data50 = "";
26254
26286
  if (multiDragElements.length && multiDragSortable === sortable) {
26255
26287
  multiDragElements.forEach(function(multiDragElement, i) {
26256
- data49 += (!i ? "" : ", ") + multiDragElement.textContent;
26288
+ data50 += (!i ? "" : ", ") + multiDragElement.textContent;
26257
26289
  });
26258
26290
  } else {
26259
- data49 = dragEl2.textContent;
26291
+ data50 = dragEl2.textContent;
26260
26292
  }
26261
- dataTransfer.setData("Text", data49);
26293
+ dataTransfer.setData("Text", data50);
26262
26294
  }
26263
26295
  };
26264
26296
  }
@@ -26719,10 +26751,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
26719
26751
  Sortable,
26720
26752
  Swap: SwapPlugin
26721
26753
  }, Symbol.toStringTag, { value: "Module" }));
26722
- var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
26754
+ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
26723
26755
  (function(module2, exports2) {
26724
26756
  (function webpackUniversalModuleDefinition(root2, factory) {
26725
- module2.exports = factory(require$$0$1);
26757
+ module2.exports = factory(require$$0);
26726
26758
  })(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
26727
26759
  return function(modules) {
26728
26760
  var installedModules = {};
@@ -27097,7 +27129,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27097
27129
  delete createDict[PROTOTYPE][enumBugKeys[i]];
27098
27130
  return createDict();
27099
27131
  };
27100
- module3.exports = Object.create || function create2(O, Properties) {
27132
+ module3.exports = Object.create || function create(O, Properties) {
27101
27133
  var result;
27102
27134
  if (O !== null) {
27103
27135
  Empty2[PROTOTYPE] = anObject(O);
@@ -27164,7 +27196,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27164
27196
  };
27165
27197
  },
27166
27198
  "41a0": function(module3, exports3, __webpack_require__) {
27167
- var create2 = __webpack_require__("2aeb");
27199
+ var create = __webpack_require__("2aeb");
27168
27200
  var descriptor = __webpack_require__("4630");
27169
27201
  var setToStringTag = __webpack_require__("7f20");
27170
27202
  var IteratorPrototype = {};
@@ -27172,7 +27204,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27172
27204
  return this;
27173
27205
  });
27174
27206
  module3.exports = function(Constructor, NAME, next2) {
27175
- Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
27207
+ Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next2) });
27176
27208
  setToStringTag(Constructor, NAME + " Iterator");
27177
27209
  };
27178
27210
  },
@@ -28231,7 +28263,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
28231
28263
  name: "draggable",
28232
28264
  inheritAttrs: false,
28233
28265
  props,
28234
- data: function data49() {
28266
+ data: function data50() {
28235
28267
  return {
28236
28268
  transitionMode: false,
28237
28269
  noneFunctionalComponentMode: false
@@ -30538,9 +30570,9 @@ function getMaxDepth(obj, currentDepth = 1) {
30538
30570
  }
30539
30571
  return maxDepth;
30540
30572
  }
30541
- function calculateMaxDepth(data49) {
30573
+ function calculateMaxDepth(data50) {
30542
30574
  let maxDepth = 0;
30543
- for (const item2 of data49) {
30575
+ for (const item2 of data50) {
30544
30576
  const depth = getMaxDepth(item2);
30545
30577
  if (depth > maxDepth) {
30546
30578
  maxDepth = depth;
@@ -32097,7 +32129,8 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
32097
32129
  columnNumber: this.columnNumber,
32098
32130
  stack: this.stack,
32099
32131
  config: this.config,
32100
- code: this.code
32132
+ code: this.code,
32133
+ status: this.response && this.response.status ? this.response.status : null
32101
32134
  };
32102
32135
  };
32103
32136
  return error;
@@ -32253,6 +32286,14 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
32253
32286
  return true;
32254
32287
  };
32255
32288
  }();
32289
+ function Cancel$3(message) {
32290
+ this.message = message;
32291
+ }
32292
+ Cancel$3.prototype.toString = function toString2() {
32293
+ return "Cancel" + (this.message ? ": " + this.message : "");
32294
+ };
32295
+ Cancel$3.prototype.__CANCEL__ = true;
32296
+ var Cancel_1 = Cancel$3;
32256
32297
  var utils$6 = utils$d;
32257
32298
  var settle2 = settle$1;
32258
32299
  var cookies = cookies$1;
@@ -32261,11 +32302,22 @@ var buildFullPath2 = buildFullPath$1;
32261
32302
  var parseHeaders2 = parseHeaders$1;
32262
32303
  var isURLSameOrigin = isURLSameOrigin$1;
32263
32304
  var createError2 = createError$2;
32305
+ var defaults$4 = defaults_1;
32306
+ var Cancel$2 = Cancel_1;
32264
32307
  var xhr = function xhrAdapter(config2) {
32265
32308
  return new Promise(function dispatchXhrRequest(resolve, reject) {
32266
32309
  var requestData = config2.data;
32267
32310
  var requestHeaders = config2.headers;
32268
32311
  var responseType = config2.responseType;
32312
+ var onCanceled;
32313
+ function done() {
32314
+ if (config2.cancelToken) {
32315
+ config2.cancelToken.unsubscribe(onCanceled);
32316
+ }
32317
+ if (config2.signal) {
32318
+ config2.signal.removeEventListener("abort", onCanceled);
32319
+ }
32320
+ }
32269
32321
  if (utils$6.isFormData(requestData)) {
32270
32322
  delete requestHeaders["Content-Type"];
32271
32323
  }
@@ -32292,7 +32344,13 @@ var xhr = function xhrAdapter(config2) {
32292
32344
  config: config2,
32293
32345
  request: request2
32294
32346
  };
32295
- settle2(resolve, reject, response);
32347
+ settle2(function _resolve(value17) {
32348
+ resolve(value17);
32349
+ done();
32350
+ }, function _reject(err) {
32351
+ reject(err);
32352
+ done();
32353
+ }, response);
32296
32354
  request2 = null;
32297
32355
  }
32298
32356
  if ("onloadend" in request2) {
@@ -32320,14 +32378,15 @@ var xhr = function xhrAdapter(config2) {
32320
32378
  request2 = null;
32321
32379
  };
32322
32380
  request2.ontimeout = function handleTimeout() {
32323
- var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
32381
+ var timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
32382
+ var transitional2 = config2.transitional || defaults$4.transitional;
32324
32383
  if (config2.timeoutErrorMessage) {
32325
32384
  timeoutErrorMessage = config2.timeoutErrorMessage;
32326
32385
  }
32327
32386
  reject(createError2(
32328
32387
  timeoutErrorMessage,
32329
32388
  config2,
32330
- config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
32389
+ transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
32331
32390
  request2
32332
32391
  ));
32333
32392
  request2 = null;
@@ -32359,15 +32418,19 @@ var xhr = function xhrAdapter(config2) {
32359
32418
  if (typeof config2.onUploadProgress === "function" && request2.upload) {
32360
32419
  request2.upload.addEventListener("progress", config2.onUploadProgress);
32361
32420
  }
32362
- if (config2.cancelToken) {
32363
- config2.cancelToken.promise.then(function onCanceled(cancel2) {
32421
+ if (config2.cancelToken || config2.signal) {
32422
+ onCanceled = function(cancel2) {
32364
32423
  if (!request2) {
32365
32424
  return;
32366
32425
  }
32426
+ reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
32367
32427
  request2.abort();
32368
- reject(cancel2);
32369
32428
  request2 = null;
32370
- });
32429
+ };
32430
+ config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
32431
+ if (config2.signal) {
32432
+ config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
32433
+ }
32371
32434
  }
32372
32435
  if (!requestData) {
32373
32436
  requestData = null;
@@ -32415,33 +32478,33 @@ var defaults$3 = {
32415
32478
  clarifyTimeoutError: false
32416
32479
  },
32417
32480
  adapter: getDefaultAdapter(),
32418
- transformRequest: [function transformRequest(data49, headers) {
32481
+ transformRequest: [function transformRequest(data50, headers) {
32419
32482
  normalizeHeaderName2(headers, "Accept");
32420
32483
  normalizeHeaderName2(headers, "Content-Type");
32421
- if (utils$5.isFormData(data49) || utils$5.isArrayBuffer(data49) || utils$5.isBuffer(data49) || utils$5.isStream(data49) || utils$5.isFile(data49) || utils$5.isBlob(data49)) {
32422
- return data49;
32484
+ if (utils$5.isFormData(data50) || utils$5.isArrayBuffer(data50) || utils$5.isBuffer(data50) || utils$5.isStream(data50) || utils$5.isFile(data50) || utils$5.isBlob(data50)) {
32485
+ return data50;
32423
32486
  }
32424
- if (utils$5.isArrayBufferView(data49)) {
32425
- return data49.buffer;
32487
+ if (utils$5.isArrayBufferView(data50)) {
32488
+ return data50.buffer;
32426
32489
  }
32427
- if (utils$5.isURLSearchParams(data49)) {
32490
+ if (utils$5.isURLSearchParams(data50)) {
32428
32491
  setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
32429
- return data49.toString();
32492
+ return data50.toString();
32430
32493
  }
32431
- if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
32494
+ if (utils$5.isObject(data50) || headers && headers["Content-Type"] === "application/json") {
32432
32495
  setContentTypeIfUnset(headers, "application/json");
32433
- return stringifySafely(data49);
32496
+ return stringifySafely(data50);
32434
32497
  }
32435
- return data49;
32498
+ return data50;
32436
32499
  }],
32437
- transformResponse: [function transformResponse(data49) {
32438
- var transitional2 = this.transitional;
32500
+ transformResponse: [function transformResponse(data50) {
32501
+ var transitional2 = this.transitional || defaults$3.transitional;
32439
32502
  var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
32440
32503
  var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
32441
32504
  var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
32442
- if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
32505
+ if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data50) && data50.length) {
32443
32506
  try {
32444
- return JSON.parse(data49);
32507
+ return JSON.parse(data50);
32445
32508
  } catch (e) {
32446
32509
  if (strictJSONParsing) {
32447
32510
  if (e.name === "SyntaxError") {
@@ -32451,7 +32514,7 @@ var defaults$3 = {
32451
32514
  }
32452
32515
  }
32453
32516
  }
32454
- return data49;
32517
+ return data50;
32455
32518
  }],
32456
32519
  timeout: 0,
32457
32520
  xsrfCookieName: "XSRF-TOKEN",
@@ -32460,11 +32523,11 @@ var defaults$3 = {
32460
32523
  maxBodyLength: -1,
32461
32524
  validateStatus: function validateStatus(status2) {
32462
32525
  return status2 >= 200 && status2 < 300;
32463
- }
32464
- };
32465
- defaults$3.headers = {
32466
- common: {
32467
- "Accept": "application/json, text/plain, */*"
32526
+ },
32527
+ headers: {
32528
+ common: {
32529
+ "Accept": "application/json, text/plain, */*"
32530
+ }
32468
32531
  }
32469
32532
  };
32470
32533
  utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
@@ -32476,12 +32539,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
32476
32539
  var defaults_1 = defaults$3;
32477
32540
  var utils$4 = utils$d;
32478
32541
  var defaults$2 = defaults_1;
32479
- var transformData$1 = function transformData(data49, headers, fns) {
32542
+ var transformData$1 = function transformData(data50, headers, fns) {
32480
32543
  var context2 = this || defaults$2;
32481
32544
  utils$4.forEach(fns, function transform(fn2) {
32482
- data49 = fn2.call(context2, data49, headers);
32545
+ data50 = fn2.call(context2, data50, headers);
32483
32546
  });
32484
- return data49;
32547
+ return data50;
32485
32548
  };
32486
32549
  var isCancel$1 = function isCancel(value17) {
32487
32550
  return !!(value17 && value17.__CANCEL__);
@@ -32490,10 +32553,14 @@ var utils$3 = utils$d;
32490
32553
  var transformData2 = transformData$1;
32491
32554
  var isCancel2 = isCancel$1;
32492
32555
  var defaults$1 = defaults_1;
32556
+ var Cancel$1 = Cancel_1;
32493
32557
  function throwIfCancellationRequested(config2) {
32494
32558
  if (config2.cancelToken) {
32495
32559
  config2.cancelToken.throwIfRequested();
32496
32560
  }
32561
+ if (config2.signal && config2.signal.aborted) {
32562
+ throw new Cancel$1("canceled");
32563
+ }
32497
32564
  }
32498
32565
  var dispatchRequest$1 = function dispatchRequest(config2) {
32499
32566
  throwIfCancellationRequested(config2);
@@ -32544,34 +32611,6 @@ var utils$2 = utils$d;
32544
32611
  var mergeConfig$2 = function mergeConfig(config1, config2) {
32545
32612
  config2 = config2 || {};
32546
32613
  var config3 = {};
32547
- var valueFromConfig2Keys = ["url", "method", "data"];
32548
- var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
32549
- var defaultToConfig2Keys = [
32550
- "baseURL",
32551
- "transformRequest",
32552
- "transformResponse",
32553
- "paramsSerializer",
32554
- "timeout",
32555
- "timeoutMessage",
32556
- "withCredentials",
32557
- "adapter",
32558
- "responseType",
32559
- "xsrfCookieName",
32560
- "xsrfHeaderName",
32561
- "onUploadProgress",
32562
- "onDownloadProgress",
32563
- "decompress",
32564
- "maxContentLength",
32565
- "maxBodyLength",
32566
- "maxRedirects",
32567
- "transport",
32568
- "httpAgent",
32569
- "httpsAgent",
32570
- "cancelToken",
32571
- "socketPath",
32572
- "responseEncoding"
32573
- ];
32574
- var directMergeKeys = ["validateStatus"];
32575
32614
  function getMergedValue(target2, source2) {
32576
32615
  if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
32577
32616
  return utils$2.merge(target2, source2);
@@ -32584,141 +32623,69 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
32584
32623
  }
32585
32624
  function mergeDeepProperties(prop) {
32586
32625
  if (!utils$2.isUndefined(config2[prop])) {
32587
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
32626
+ return getMergedValue(config1[prop], config2[prop]);
32588
32627
  } else if (!utils$2.isUndefined(config1[prop])) {
32589
- config3[prop] = getMergedValue(void 0, config1[prop]);
32628
+ return getMergedValue(void 0, config1[prop]);
32590
32629
  }
32591
32630
  }
32592
- utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
32631
+ function valueFromConfig2(prop) {
32593
32632
  if (!utils$2.isUndefined(config2[prop])) {
32594
- config3[prop] = getMergedValue(void 0, config2[prop]);
32633
+ return getMergedValue(void 0, config2[prop]);
32595
32634
  }
32596
- });
32597
- utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
32598
- utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
32635
+ }
32636
+ function defaultToConfig2(prop) {
32599
32637
  if (!utils$2.isUndefined(config2[prop])) {
32600
- config3[prop] = getMergedValue(void 0, config2[prop]);
32638
+ return getMergedValue(void 0, config2[prop]);
32601
32639
  } else if (!utils$2.isUndefined(config1[prop])) {
32602
- config3[prop] = getMergedValue(void 0, config1[prop]);
32640
+ return getMergedValue(void 0, config1[prop]);
32603
32641
  }
32604
- });
32605
- utils$2.forEach(directMergeKeys, function merge2(prop) {
32642
+ }
32643
+ function mergeDirectKeys(prop) {
32606
32644
  if (prop in config2) {
32607
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
32645
+ return getMergedValue(config1[prop], config2[prop]);
32608
32646
  } else if (prop in config1) {
32609
- config3[prop] = getMergedValue(void 0, config1[prop]);
32610
- }
32611
- });
32612
- var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
32613
- var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
32614
- return axiosKeys.indexOf(key) === -1;
32647
+ return getMergedValue(void 0, config1[prop]);
32648
+ }
32649
+ }
32650
+ var mergeMap = {
32651
+ "url": valueFromConfig2,
32652
+ "method": valueFromConfig2,
32653
+ "data": valueFromConfig2,
32654
+ "baseURL": defaultToConfig2,
32655
+ "transformRequest": defaultToConfig2,
32656
+ "transformResponse": defaultToConfig2,
32657
+ "paramsSerializer": defaultToConfig2,
32658
+ "timeout": defaultToConfig2,
32659
+ "timeoutMessage": defaultToConfig2,
32660
+ "withCredentials": defaultToConfig2,
32661
+ "adapter": defaultToConfig2,
32662
+ "responseType": defaultToConfig2,
32663
+ "xsrfCookieName": defaultToConfig2,
32664
+ "xsrfHeaderName": defaultToConfig2,
32665
+ "onUploadProgress": defaultToConfig2,
32666
+ "onDownloadProgress": defaultToConfig2,
32667
+ "decompress": defaultToConfig2,
32668
+ "maxContentLength": defaultToConfig2,
32669
+ "maxBodyLength": defaultToConfig2,
32670
+ "transport": defaultToConfig2,
32671
+ "httpAgent": defaultToConfig2,
32672
+ "httpsAgent": defaultToConfig2,
32673
+ "cancelToken": defaultToConfig2,
32674
+ "socketPath": defaultToConfig2,
32675
+ "responseEncoding": defaultToConfig2,
32676
+ "validateStatus": mergeDirectKeys
32677
+ };
32678
+ utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
32679
+ var merge2 = mergeMap[prop] || mergeDeepProperties;
32680
+ var configValue = merge2(prop);
32681
+ utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
32615
32682
  });
32616
- utils$2.forEach(otherKeys, mergeDeepProperties);
32617
32683
  return config3;
32618
32684
  };
32619
- const name = "axios";
32620
- const version = "0.21.4";
32621
- const description = "Promise based HTTP client for the browser and node.js";
32622
- const main = "index.js";
32623
- const scripts = {
32624
- test: "grunt test",
32625
- start: "node ./sandbox/server.js",
32626
- build: "NODE_ENV=production grunt build",
32627
- preversion: "npm test",
32628
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
32629
- postversion: "git push && git push --tags",
32630
- examples: "node ./examples/server.js",
32631
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
32632
- fix: "eslint --fix lib/**/*.js"
32633
- };
32634
- const repository = {
32635
- type: "git",
32636
- url: "https://github.com/axios/axios.git"
32637
- };
32638
- const keywords = [
32639
- "xhr",
32640
- "http",
32641
- "ajax",
32642
- "promise",
32643
- "node"
32644
- ];
32645
- const author = "Matt Zabriskie";
32646
- const license = "MIT";
32647
- const bugs = {
32648
- url: "https://github.com/axios/axios/issues"
32649
- };
32650
- const homepage = "https://axios-http.com";
32651
- const devDependencies = {
32652
- coveralls: "^3.0.0",
32653
- "es6-promise": "^4.2.4",
32654
- grunt: "^1.3.0",
32655
- "grunt-banner": "^0.6.0",
32656
- "grunt-cli": "^1.2.0",
32657
- "grunt-contrib-clean": "^1.1.0",
32658
- "grunt-contrib-watch": "^1.0.0",
32659
- "grunt-eslint": "^23.0.0",
32660
- "grunt-karma": "^4.0.0",
32661
- "grunt-mocha-test": "^0.13.3",
32662
- "grunt-ts": "^6.0.0-beta.19",
32663
- "grunt-webpack": "^4.0.2",
32664
- "istanbul-instrumenter-loader": "^1.0.0",
32665
- "jasmine-core": "^2.4.1",
32666
- karma: "^6.3.2",
32667
- "karma-chrome-launcher": "^3.1.0",
32668
- "karma-firefox-launcher": "^2.1.0",
32669
- "karma-jasmine": "^1.1.1",
32670
- "karma-jasmine-ajax": "^0.1.13",
32671
- "karma-safari-launcher": "^1.0.0",
32672
- "karma-sauce-launcher": "^4.3.6",
32673
- "karma-sinon": "^1.0.5",
32674
- "karma-sourcemap-loader": "^0.3.8",
32675
- "karma-webpack": "^4.0.2",
32676
- "load-grunt-tasks": "^3.5.2",
32677
- minimist: "^1.2.0",
32678
- mocha: "^8.2.1",
32679
- sinon: "^4.5.0",
32680
- "terser-webpack-plugin": "^4.2.3",
32681
- typescript: "^4.0.5",
32682
- "url-search-params": "^0.10.0",
32683
- webpack: "^4.44.2",
32684
- "webpack-dev-server": "^3.11.0"
32685
- };
32686
- const browser = {
32687
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
32688
- };
32689
- const jsdelivr = "dist/axios.min.js";
32690
- const unpkg = "dist/axios.min.js";
32691
- const typings = "./index.d.ts";
32692
- const dependencies = {
32693
- "follow-redirects": "^1.14.0"
32694
- };
32695
- const bundlesize = [
32696
- {
32697
- path: "./dist/axios.min.js",
32698
- threshold: "5kB"
32699
- }
32700
- ];
32701
- var require$$0 = {
32702
- name,
32703
- version,
32704
- description,
32705
- main,
32706
- scripts,
32707
- repository,
32708
- keywords,
32709
- author,
32710
- license,
32711
- bugs,
32712
- homepage,
32713
- devDependencies,
32714
- browser,
32715
- jsdelivr,
32716
- unpkg,
32717
- typings,
32718
- dependencies,
32719
- bundlesize
32685
+ var data49 = {
32686
+ "version": "0.24.0"
32720
32687
  };
32721
- var pkg = require$$0;
32688
+ var VERSION = data49.version;
32722
32689
  var validators$1 = {};
32723
32690
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
32724
32691
  validators$1[type2] = function validator4(thing) {
@@ -32726,29 +32693,15 @@ var validators$1 = {};
32726
32693
  };
32727
32694
  });
32728
32695
  var deprecatedWarnings = {};
32729
- var currentVerArr = pkg.version.split(".");
32730
- function isOlderVersion(version2, thanVersion) {
32731
- var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
32732
- var destVer = version2.split(".");
32733
- for (var i = 0; i < 3; i++) {
32734
- if (pkgVersionArr[i] > destVer[i]) {
32735
- return true;
32736
- } else if (pkgVersionArr[i] < destVer[i]) {
32737
- return false;
32738
- }
32739
- }
32740
- return false;
32741
- }
32742
32696
  validators$1.transitional = function transitional(validator4, version2, message) {
32743
- var isDeprecated = version2 && isOlderVersion(version2);
32744
32697
  function formatMessage(opt, desc) {
32745
- return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
32698
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
32746
32699
  }
32747
32700
  return function(value17, opt, opts) {
32748
32701
  if (validator4 === false) {
32749
- throw new Error(formatMessage(opt, " has been removed in " + version2));
32702
+ throw new Error(formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")));
32750
32703
  }
32751
- if (isDeprecated && !deprecatedWarnings[opt]) {
32704
+ if (version2 && !deprecatedWarnings[opt]) {
32752
32705
  deprecatedWarnings[opt] = true;
32753
32706
  console.warn(
32754
32707
  formatMessage(
@@ -32783,7 +32736,6 @@ function assertOptions(options, schema, allowUnknown) {
32783
32736
  }
32784
32737
  }
32785
32738
  var validator$1 = {
32786
- isOlderVersion,
32787
32739
  assertOptions,
32788
32740
  validators: validators$1
32789
32741
  };
@@ -32819,9 +32771,9 @@ Axios$1.prototype.request = function request(config2) {
32819
32771
  var transitional2 = config2.transitional;
32820
32772
  if (transitional2 !== void 0) {
32821
32773
  validator3.assertOptions(transitional2, {
32822
- silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
32823
- forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
32824
- clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
32774
+ silentJSONParsing: validators.transitional(validators.boolean),
32775
+ forcedJSONParsing: validators.transitional(validators.boolean),
32776
+ clarifyTimeoutError: validators.transitional(validators.boolean)
32825
32777
  }, false);
32826
32778
  }
32827
32779
  var requestInterceptorChain = [];
@@ -32883,23 +32835,15 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
32883
32835
  };
32884
32836
  });
32885
32837
  utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
32886
- Axios$1.prototype[method] = function(url, data49, config2) {
32838
+ Axios$1.prototype[method] = function(url, data50, config2) {
32887
32839
  return this.request(mergeConfig$1(config2 || {}, {
32888
32840
  method,
32889
32841
  url,
32890
- data: data49
32842
+ data: data50
32891
32843
  }));
32892
32844
  };
32893
32845
  });
32894
32846
  var Axios_1 = Axios$1;
32895
- function Cancel$1(message) {
32896
- this.message = message;
32897
- }
32898
- Cancel$1.prototype.toString = function toString2() {
32899
- return "Cancel" + (this.message ? ": " + this.message : "");
32900
- };
32901
- Cancel$1.prototype.__CANCEL__ = true;
32902
- var Cancel_1 = Cancel$1;
32903
32847
  var Cancel = Cancel_1;
32904
32848
  function CancelToken(executor) {
32905
32849
  if (typeof executor !== "function") {
@@ -32910,6 +32854,27 @@ function CancelToken(executor) {
32910
32854
  resolvePromise = resolve;
32911
32855
  });
32912
32856
  var token = this;
32857
+ this.promise.then(function(cancel2) {
32858
+ if (!token._listeners)
32859
+ return;
32860
+ var i;
32861
+ var l = token._listeners.length;
32862
+ for (i = 0; i < l; i++) {
32863
+ token._listeners[i](cancel2);
32864
+ }
32865
+ token._listeners = null;
32866
+ });
32867
+ this.promise.then = function(onfulfilled) {
32868
+ var _resolve;
32869
+ var promise = new Promise(function(resolve) {
32870
+ token.subscribe(resolve);
32871
+ _resolve = resolve;
32872
+ }).then(onfulfilled);
32873
+ promise.cancel = function reject() {
32874
+ token.unsubscribe(_resolve);
32875
+ };
32876
+ return promise;
32877
+ };
32913
32878
  executor(function cancel2(message) {
32914
32879
  if (token.reason) {
32915
32880
  return;
@@ -32923,6 +32888,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
32923
32888
  throw this.reason;
32924
32889
  }
32925
32890
  };
32891
+ CancelToken.prototype.subscribe = function subscribe2(listener) {
32892
+ if (this.reason) {
32893
+ listener(this.reason);
32894
+ return;
32895
+ }
32896
+ if (this._listeners) {
32897
+ this._listeners.push(listener);
32898
+ } else {
32899
+ this._listeners = [listener];
32900
+ }
32901
+ };
32902
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
32903
+ if (!this._listeners) {
32904
+ return;
32905
+ }
32906
+ var index2 = this._listeners.indexOf(listener);
32907
+ if (index2 !== -1) {
32908
+ this._listeners.splice(index2, 1);
32909
+ }
32910
+ };
32926
32911
  CancelToken.source = function source() {
32927
32912
  var cancel2;
32928
32913
  var token = new CancelToken(function executor(c) {
@@ -32952,16 +32937,17 @@ function createInstance(defaultConfig2) {
32952
32937
  var instance2 = bind2(Axios.prototype.request, context2);
32953
32938
  utils.extend(instance2, Axios.prototype, context2);
32954
32939
  utils.extend(instance2, context2);
32940
+ instance2.create = function create(instanceConfig) {
32941
+ return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
32942
+ };
32955
32943
  return instance2;
32956
32944
  }
32957
32945
  var axios$1 = createInstance(defaults);
32958
32946
  axios$1.Axios = Axios;
32959
- axios$1.create = function create(instanceConfig) {
32960
- return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
32961
- };
32962
32947
  axios$1.Cancel = Cancel_1;
32963
32948
  axios$1.CancelToken = CancelToken_1;
32964
32949
  axios$1.isCancel = isCancel$1;
32950
+ axios$1.VERSION = data49.version;
32965
32951
  axios$1.all = function all(promises) {
32966
32952
  return Promise.all(promises);
32967
32953
  };
@@ -32970,24 +32956,6 @@ axios$1.isAxiosError = isAxiosError;
32970
32956
  axios$2.exports = axios$1;
32971
32957
  axios$2.exports.default = axios$1;
32972
32958
  var axios = axios$2.exports;
32973
- const isHb$1 = location.pathname.includes("scyxweb");
32974
- function getIndexPreset(params) {
32975
- return axios$3.get(
32976
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
32977
- { params }
32978
- );
32979
- }
32980
- function saveIndexPreset(params) {
32981
- return axios$3.post(
32982
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
32983
- params
32984
- );
32985
- }
32986
- function getUserDefaultUrl() {
32987
- return axios$3.post(
32988
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
32989
- );
32990
- }
32991
32959
  const isHb = location.pathname.includes("scyxweb");
32992
32960
  const userAgent = navigator.userAgent.toLowerCase();
32993
32961
  const isQywx = /wxwork/.test(userAgent) ? true : false;
@@ -33246,12 +33214,18 @@ const pluginLogin = (store2) => {
33246
33214
  let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
33247
33215
  axios$3.get(url).then(async (resp) => {
33248
33216
  setToken(resp.token);
33249
- resolve(resp.token);
33250
33217
  localStorage.setItem("v8-token", resp.token);
33251
33218
  sessionStorage.setItem("lambo-token", resp.token);
33252
- getUserDefaultUrl().then((resp2) => {
33253
- location.href = resp2.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
33254
- });
33219
+ setTimeout(() => {
33220
+ console.log("before getUserDefaultUrl");
33221
+ getUserDefaultUrl().then((resp1) => {
33222
+ console.log("getUserDefaultUrl data", resp1);
33223
+ location.href = resp1.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
33224
+ resolve(resp.token);
33225
+ console.log("location.href", location.href);
33226
+ return;
33227
+ });
33228
+ }, 0);
33255
33229
  }).catch((e) => {
33256
33230
  console.log("\u83B7\u53D6token\u5F02\u5E38", e);
33257
33231
  reject(0);
@@ -33317,11 +33291,13 @@ window.getQueryVariable = function getQueryVariable2(variable) {
33317
33291
  };
33318
33292
  const checkLogin = async () => {
33319
33293
  var _a, _b;
33294
+ console.log("checkLogin trigger");
33320
33295
  if (localStorage.getItem("whoisyourdaddy") == "1") {
33321
33296
  return Promise.resolve(true);
33322
33297
  }
33323
33298
  try {
33324
33299
  let token = getToken();
33300
+ console.log("checkLogin token", token);
33325
33301
  const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
33326
33302
  params: {},
33327
33303
  headers: {
@@ -33393,12 +33369,12 @@ var user = {
33393
33369
  commit2("setUserManageUnitId", userInfo.manageUnitId);
33394
33370
  return userInfo;
33395
33371
  }
33396
- const { data: data49 } = await getUserInfoApi();
33397
- commit2("setAvatar", data49.userAvater);
33398
- commit2("setUserName", data49.userName);
33399
- commit2("setUserManageUnitId", data49.manageUnitId);
33400
- setUserInfoCache(data49);
33401
- return data49;
33372
+ const { data: data50 } = await getUserInfoApi();
33373
+ commit2("setAvatar", data50.userAvater);
33374
+ commit2("setUserName", data50.userName);
33375
+ commit2("setUserManageUnitId", data50.manageUnitId);
33376
+ setUserInfoCache(data50);
33377
+ return data50;
33402
33378
  }
33403
33379
  }
33404
33380
  };
@@ -33580,8 +33556,8 @@ var app = {
33580
33556
  async getAppListData({ commit: commit2, getters }) {
33581
33557
  let appList = getters.getAppList;
33582
33558
  if (!appList.length) {
33583
- const { data: data49 = [] } = await getAppListApi();
33584
- appList = data49.filter((app2) => app2.basepath !== "/cmsadmin");
33559
+ const { data: data50 = [] } = await getAppListApi();
33560
+ appList = data50.filter((app2) => app2.basepath !== "/cmsadmin");
33585
33561
  commit2("setAppList", appList);
33586
33562
  }
33587
33563
  let appId = "";
@@ -33685,9 +33661,9 @@ var app = {
33685
33661
  },
33686
33662
  async getMyAppsList({ commit: commit2 }, payload) {
33687
33663
  try {
33688
- let { data: data49 } = await getIndexPreset(payload);
33689
- data49 = data49 || "[]";
33690
- commit2("setMyAppsList", data49);
33664
+ let { data: data50 } = await getIndexPreset(payload);
33665
+ data50 = data50 || "[]";
33666
+ commit2("setMyAppsList", data50);
33691
33667
  } catch (error) {
33692
33668
  console.error("getMyAppsList:", error);
33693
33669
  }
@@ -33713,8 +33689,8 @@ const install = function(Vue2, opts = { theme: "" }) {
33713
33689
  doChangeTheme(theme);
33714
33690
  if (location.pathname.includes("scyxweb")) {
33715
33691
  let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
33716
- axios$3.get(url).then((data49) => {
33717
- Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
33692
+ axios$3.get(url).then((data50) => {
33693
+ Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data50);
33718
33694
  });
33719
33695
  }
33720
33696
  Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
@@ -33784,7 +33760,7 @@ if (typeof window !== "undefined" && window.Vue) {
33784
33760
  install(window.Vue);
33785
33761
  }
33786
33762
  const API = {
33787
- version: pkg$1.version,
33763
+ version: pkg.version,
33788
33764
  install,
33789
33765
  components,
33790
33766
  plugins,