eoss-ui 0.6.12 → 0.6.14

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.
Files changed (64) hide show
  1. package/lib/button-group.js +104 -88
  2. package/lib/button.js +104 -88
  3. package/lib/checkbox-group.js +104 -88
  4. package/lib/data-table-form.js +104 -88
  5. package/lib/data-table.js +104 -88
  6. package/lib/date-picker.js +104 -88
  7. package/lib/dialog.js +104 -88
  8. package/lib/eoss-ui.common.js +212 -168
  9. package/lib/flow-group.js +104 -88
  10. package/lib/flow-list.js +104 -88
  11. package/lib/flow.js +104 -88
  12. package/lib/form.js +104 -88
  13. package/lib/handle-user.js +104 -88
  14. package/lib/handler.js +104 -88
  15. package/lib/icon.js +113 -91
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +104 -88
  18. package/lib/input.js +104 -88
  19. package/lib/login.js +104 -88
  20. package/lib/main.js +164 -141
  21. package/lib/nav.js +104 -88
  22. package/lib/page.js +104 -88
  23. package/lib/pagination.js +104 -88
  24. package/lib/player.js +104 -88
  25. package/lib/qr-code.js +104 -88
  26. package/lib/radio-group.js +104 -88
  27. package/lib/retrial-auth.js +104 -88
  28. package/lib/select-ganged.js +104 -88
  29. package/lib/select.js +104 -88
  30. package/lib/selector-panel.js +104 -88
  31. package/lib/selector.js +104 -88
  32. package/lib/sizer.js +104 -88
  33. package/lib/steps.js +104 -88
  34. package/lib/switch.js +104 -88
  35. package/lib/table-form.js +104 -88
  36. package/lib/tabs.js +104 -88
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/main.css +1 -1
  39. package/lib/theme-chalk/simplicity.css +1 -1
  40. package/lib/tips.js +104 -88
  41. package/lib/tree-group.js +104 -88
  42. package/lib/tree.js +104 -88
  43. package/lib/upload.js +130 -99
  44. package/lib/utils/util.js +104 -88
  45. package/lib/wujie.js +104 -88
  46. package/lib/wxlogin.js +104 -88
  47. package/package.json +1 -1
  48. package/packages/.DS_Store +0 -0
  49. package/packages/dialog/.DS_Store +0 -0
  50. package/packages/icon/src/main.vue +7 -1
  51. package/packages/main/.DS_Store +0 -0
  52. package/packages/main/src/default/index.vue +4 -4
  53. package/packages/main/src/main.vue +16 -10
  54. package/packages/main/src/simplicity/avatar.vue +6 -2
  55. package/packages/main/src/simplicity/index.vue +4 -4
  56. package/packages/main/src/simplicity/message.vue +0 -1
  57. package/packages/theme-chalk/lib/index.css +1 -1
  58. package/packages/theme-chalk/lib/main.css +1 -1
  59. package/packages/theme-chalk/lib/simplicity.css +1 -1
  60. package/packages/theme-chalk/src/simplicity.scss +1 -0
  61. package/packages/upload/src/main.vue +28 -8
  62. package/src/.DS_Store +0 -0
  63. package/src/index.js +1 -1
  64. package/src/utils/util.js +12 -1
package/lib/upload.js CHANGED
@@ -554,7 +554,6 @@ var average = function average() {
554
554
 
555
555
  return average;
556
556
  };
557
-
558
557
  /**
559
558
  * browser
560
559
  * @desc:浏览器类型
@@ -569,6 +568,22 @@ var browser = function browser() {
569
568
  }
570
569
  }
571
570
  };
571
+ /**
572
+ * busEmit
573
+ * @desc:发送事件
574
+ * @author huangbo
575
+ * @date 2022年5月7日
576
+ **/
577
+ var busEmit = function busEmit() {
578
+ var vm = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this;
579
+ var _ref2 = arguments[1];
580
+ var method = _ref2.method,
581
+ args = _ref2.args;
582
+
583
+ var bus = win.$wujie ? win.$wujie.bus : vm.bus || vm.$root.Bus;
584
+ bus && bus.$emit(method, args);
585
+ window.postMessage({ method: method, query: args }, '*');
586
+ };
572
587
 
573
588
  /**
574
589
  * calculateNetworkDays
@@ -793,9 +808,9 @@ var debounce = function debounce(callback, wait) {
793
808
  * @param {String} [url] - url地址
794
809
  * @param {String,Array} [key] - 参数名
795
810
  **/
796
- var delUrlParam = function delUrlParam(_ref2) {
797
- var url = _ref2.url,
798
- key = _ref2.key;
811
+ var delUrlParam = function delUrlParam(_ref3) {
812
+ var url = _ref3.url,
813
+ key = _ref3.key;
799
814
 
800
815
  var pUrl = '';
801
816
  try {
@@ -921,10 +936,10 @@ var esDecode = function esDecode(value) {
921
936
  * @param {string} [data] - 被加密的字符串
922
937
  * @param {string} [key] - 公钥
923
938
  **/
924
- var esmEncrypt = function esmEncrypt(_ref3) {
925
- var data = _ref3.data,
926
- key = _ref3.key,
927
- mode = _ref3.mode;
939
+ var esmEncrypt = function esmEncrypt(_ref4) {
940
+ var data = _ref4.data,
941
+ key = _ref4.key,
942
+ mode = _ref4.mode;
928
943
 
929
944
  var cipherMode = mode ? mode : 1;
930
945
  if (!new RegExp('^04').test(key)) {
@@ -942,10 +957,10 @@ var esmEncrypt = function esmEncrypt(_ref3) {
942
957
  * @param {string} [data] - 被解密的加密字符串
943
958
  * @param {string} [key] - 私钥
944
959
  **/
945
- var esmDecode = function esmDecode(_ref4) {
946
- var data = _ref4.data,
947
- key = _ref4.key,
948
- mode = _ref4.mode;
960
+ var esmDecode = function esmDecode(_ref5) {
961
+ var data = _ref5.data,
962
+ key = _ref5.key,
963
+ mode = _ref5.mode;
949
964
 
950
965
  var cipherMode = mode ? mode : 1;
951
966
  if (new RegExp('^04').test(key)) {
@@ -962,10 +977,10 @@ var esmDecode = function esmDecode(_ref4) {
962
977
  * @date 2022年5月7日
963
978
  * @param {String/Array} [attrs] - 要排除的属性
964
979
  **/
965
- var exclAttribute = function exclAttribute(_ref5) {
966
- var _ref5$attrs = _ref5.attrs,
967
- attrs = _ref5$attrs === undefined ? 'value' : _ref5$attrs,
968
- data = _ref5.data;
980
+ var exclAttribute = function exclAttribute(_ref6) {
981
+ var _ref6$attrs = _ref6.attrs,
982
+ attrs = _ref6$attrs === undefined ? 'value' : _ref6$attrs,
983
+ data = _ref6.data;
969
984
 
970
985
  var obj = extend(true, {}, data);
971
986
  if (Array.isArray(attrs)) {
@@ -990,14 +1005,14 @@ var exclAttribute = function exclAttribute(_ref5) {
990
1005
  * @param {name} [string] - 导出文件名
991
1006
  * @param {numbers} [boolean] - 序号
992
1007
  **/
993
- var exportXls = function exportXls(_ref6) {
994
- var _ref6$thead = _ref6.thead,
995
- thead = _ref6$thead === undefined ? [] : _ref6$thead,
996
- _ref6$data = _ref6.data,
997
- data = _ref6$data === undefined ? [] : _ref6$data,
998
- name = _ref6.name,
999
- numbers = _ref6.numbers,
1000
- option = _ref6.option;
1008
+ var exportXls = function exportXls(_ref7) {
1009
+ var _ref7$thead = _ref7.thead,
1010
+ thead = _ref7$thead === undefined ? [] : _ref7$thead,
1011
+ _ref7$data = _ref7.data,
1012
+ data = _ref7$data === undefined ? [] : _ref7$data,
1013
+ name = _ref7.name,
1014
+ numbers = _ref7.numbers,
1015
+ option = _ref7.option;
1001
1016
 
1002
1017
  var tbody = '';
1003
1018
  var aligns = [];
@@ -1046,15 +1061,15 @@ var exportXls = function exportXls(_ref6) {
1046
1061
  var _loop2 = function _loop2(_i5) {
1047
1062
  tbody += '<tr>';
1048
1063
 
1049
- var _loop3 = function _loop3(_x2) {
1064
+ var _loop3 = function _loop3(_x3) {
1050
1065
  var field = '';
1051
- var valueKey = keys[fields[_x2]] && keys[fields[_x2]].valueKey ? keys[fields[_x2]].valueKey : 'value';
1052
- var labelKey = keys[fields[_x2]] && keys[fields[_x2]].labelKey ? keys[fields[_x2]].labelKey : 'name';
1053
- if (option[fields[_x2]]) {
1054
- if (Array.isArray(data[_i5][fields[_x2]])) {
1066
+ var valueKey = keys[fields[_x3]] && keys[fields[_x3]].valueKey ? keys[fields[_x3]].valueKey : 'value';
1067
+ var labelKey = keys[fields[_x3]] && keys[fields[_x3]].labelKey ? keys[fields[_x3]].labelKey : 'name';
1068
+ if (option[fields[_x3]]) {
1069
+ if (Array.isArray(data[_i5][fields[_x3]])) {
1055
1070
  field = [];
1056
- data[_i5][fields[_x2]].forEach(function (ele) {
1057
- option[fields[_x2]].forEach(function (item) {
1071
+ data[_i5][fields[_x3]].forEach(function (ele) {
1072
+ option[fields[_x3]].forEach(function (item) {
1058
1073
  // eslint-disable-next-line eqeqeq
1059
1074
  if (item[valueKey] == ele) {
1060
1075
  field.push(item[labelKey]);
@@ -1063,10 +1078,10 @@ var exportXls = function exportXls(_ref6) {
1063
1078
  });
1064
1079
  });
1065
1080
  field = field.join(' ');
1066
- } else if (typeof data[_i5][fields[_x2]] === 'string' && keys[fields[_x2]] && keys[fields[_x2]].multiple) {
1081
+ } else if (typeof data[_i5][fields[_x3]] === 'string' && keys[fields[_x3]] && keys[fields[_x3]].multiple) {
1067
1082
  field = [];
1068
- data[_i5][fields[_x2]].split(',').forEach(function (ele) {
1069
- option[fields[_x2]].forEach(function (item) {
1083
+ data[_i5][fields[_x3]].split(',').forEach(function (ele) {
1084
+ option[fields[_x3]].forEach(function (item) {
1070
1085
  // eslint-disable-next-line eqeqeq
1071
1086
  if (item[valueKey] == ele) {
1072
1087
  field.push(item[labelKey]);
@@ -1076,32 +1091,32 @@ var exportXls = function exportXls(_ref6) {
1076
1091
  });
1077
1092
  field = field.join(' ');
1078
1093
  } else {
1079
- option[fields[_x2]].forEach(function (item) {
1094
+ option[fields[_x3]].forEach(function (item) {
1080
1095
  // eslint-disable-next-line eqeqeq
1081
- if (item[valueKey] == data[_i5][fields[_x2]]) {
1096
+ if (item[valueKey] == data[_i5][fields[_x3]]) {
1082
1097
  field = item[labelKey];
1083
1098
  return;
1084
1099
  }
1085
1100
  });
1086
1101
  }
1087
- } else if (_typeof(data[_i5][fields[_x2]]) === 'object' && keys[fields[_x2]]) {
1088
- if (Array.isArray(data[_i5][fields[_x2]])) {
1089
- data[_i5][fields[_x2]].forEach(function (item) {
1102
+ } else if (_typeof(data[_i5][fields[_x3]]) === 'object' && keys[fields[_x3]]) {
1103
+ if (Array.isArray(data[_i5][fields[_x3]])) {
1104
+ data[_i5][fields[_x3]].forEach(function (item) {
1090
1105
  field = [];
1091
1106
  field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
1092
1107
  });
1093
1108
  field = field.join(' ');
1094
1109
  } else {
1095
- field = data[_i5][fields[_x2]][labelKey];
1110
+ field = data[_i5][fields[_x3]][labelKey];
1096
1111
  }
1097
1112
  } else {
1098
- field = data[_i5][fields[_x2]];
1113
+ field = data[_i5][fields[_x3]];
1099
1114
  }
1100
- tbody += '<td align="' + aligns[_x2] + '">' + field + '</td>';
1115
+ tbody += '<td align="' + aligns[_x3] + '">' + field + '</td>';
1101
1116
  };
1102
1117
 
1103
- for (var _x2 in fields) {
1104
- _loop3(_x2);
1118
+ for (var _x3 in fields) {
1119
+ _loop3(_x3);
1105
1120
  }
1106
1121
  tbody += '</tr>';
1107
1122
  };
@@ -1985,11 +2000,11 @@ var hsvTorgb = function hsvTorgb($h, $s, $v) {
1985
2000
  * @param {value} [array] - 需要对比的值的数组集合
1986
2001
  * @param {callback} [function] - 回调函数
1987
2002
  **/
1988
- var identical = function identical(_ref7) {
1989
- var value = _ref7.value,
1990
- callback = _ref7.callback,
1991
- _ref7$msg = _ref7.msg,
1992
- msg = _ref7$msg === undefined ? ['请输入值', '请再次输入', '输入不一致!'] : _ref7$msg;
2003
+ var identical = function identical(_ref8) {
2004
+ var value = _ref8.value,
2005
+ callback = _ref8.callback,
2006
+ _ref8$msg = _ref8.msg,
2007
+ msg = _ref8$msg === undefined ? ['请输入值', '请再次输入', '输入不一致!'] : _ref8$msg;
1993
2008
 
1994
2009
  if (value && value.length > 1) {
1995
2010
  var val = value[0];
@@ -2126,15 +2141,15 @@ var isFunction = function isFunction(obj) {
2126
2141
  * @param {sting} [loginPage] - 第三方登录页面地址
2127
2142
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
2128
2143
  **/
2129
- var isLogined = function isLogined(_ref8) {
2130
- var to = _ref8.to,
2131
- from = _ref8.from,
2132
- next = _ref8.next,
2133
- _ref8$exclude = _ref8.exclude,
2134
- exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
2135
- cookie = _ref8.cookie,
2136
- loginPage = _ref8.loginPage,
2137
- redirect = _ref8.redirect;
2144
+ var isLogined = function isLogined(_ref9) {
2145
+ var to = _ref9.to,
2146
+ from = _ref9.from,
2147
+ next = _ref9.next,
2148
+ _ref9$exclude = _ref9.exclude,
2149
+ exclude = _ref9$exclude === undefined ? [] : _ref9$exclude,
2150
+ cookie = _ref9.cookie,
2151
+ loginPage = _ref9.loginPage,
2152
+ redirect = _ref9.redirect;
2138
2153
 
2139
2154
  if (cookie === undefined) {
2140
2155
  cookie = getParams({ name: 'cookie' });
@@ -2362,9 +2377,9 @@ var isObjectEqual = function isObjectEqual(obj, _obj) {
2362
2377
  * @param {string/array} [url] - 地址
2363
2378
  * @param {boolean} [single] - 是否做js沙箱隔离
2364
2379
  **/
2365
- var jointUrl = function jointUrl(_ref9) {
2366
- var url = _ref9.url,
2367
- reg = _ref9.reg;
2380
+ var jointUrl = function jointUrl(_ref10) {
2381
+ var url = _ref10.url,
2382
+ reg = _ref10.reg;
2368
2383
 
2369
2384
  if (startWith(url, ['https', 'http', 'blob:'], true) || !reg || !reg.length) {
2370
2385
  return url;
@@ -2379,13 +2394,13 @@ var jointUrl = function jointUrl(_ref9) {
2379
2394
  return startWith(url, reg) ? url : reg + url;
2380
2395
  };
2381
2396
 
2382
- var loadJs = function loadJs(_ref10) {
2383
- var url = _ref10.url,
2384
- _ref10$type = _ref10.type,
2385
- type = _ref10$type === undefined ? 'text/javascript' : _ref10$type,
2386
- id = _ref10.id,
2387
- _ref10$single = _ref10.single,
2388
- single = _ref10$single === undefined ? true : _ref10$single;
2397
+ var loadJs = function loadJs(_ref11) {
2398
+ var url = _ref11.url,
2399
+ _ref11$type = _ref11.type,
2400
+ type = _ref11$type === undefined ? 'text/javascript' : _ref11$type,
2401
+ id = _ref11.id,
2402
+ _ref11$single = _ref11.single,
2403
+ single = _ref11$single === undefined ? true : _ref11$single;
2389
2404
 
2390
2405
  return new Promise(function (resolve, reject) {
2391
2406
  var script = document.getElementById(id) || document.createElement('script');
@@ -2520,11 +2535,11 @@ var queryParams = function queryParams(obj) {
2520
2535
  * @param {string} [url] - 消息源的 URI
2521
2536
  * @param {function} [callback] - 回调函数
2522
2537
  **/
2523
- var receiveMessage = function receiveMessage(_ref11) {
2524
- var _ref11$data = _ref11.data,
2525
- data = _ref11$data === undefined ? {} : _ref11$data,
2526
- url = _ref11.url,
2527
- callback = _ref11.callback;
2538
+ var receiveMessage = function receiveMessage(_ref12) {
2539
+ var _ref12$data = _ref12.data,
2540
+ data = _ref12$data === undefined ? {} : _ref12$data,
2541
+ url = _ref12.url,
2542
+ callback = _ref12.callback;
2528
2543
 
2529
2544
  win.addEventListener('message', function (e) {
2530
2545
  if (url !== undefined) {
@@ -2568,9 +2583,9 @@ var removeStorage = function removeStorage(key) {
2568
2583
  * @param {string、number} [data] - 数字或字符串型数字
2569
2584
  * @param {number} [precision] - 需要的小数位数
2570
2585
  **/
2571
- var replenish = function replenish(_ref12) {
2572
- var data = _ref12.data,
2573
- precision = _ref12.precision;
2586
+ var replenish = function replenish(_ref13) {
2587
+ var data = _ref13.data,
2588
+ precision = _ref13.precision;
2574
2589
 
2575
2590
  if (data && precision && precision > 0) {
2576
2591
  var power = Math.pow(10, precision);
@@ -2716,10 +2731,10 @@ var setScale = function setScale() {
2716
2731
  * @param {object} [data] - 数据---其中type必须表示操作类型
2717
2732
  * @param {string} [url] - 指定的消息发送URI地址
2718
2733
  **/
2719
- var sendMessage = function sendMessage(_ref13) {
2720
- var _ref13$data = _ref13.data,
2721
- data = _ref13$data === undefined ? {} : _ref13$data,
2722
- url = _ref13.url;
2734
+ var sendMessage = function sendMessage(_ref14) {
2735
+ var _ref14$data = _ref14.data,
2736
+ data = _ref14$data === undefined ? {} : _ref14$data,
2737
+ url = _ref14.url;
2723
2738
 
2724
2739
  var iframes = document.getElementsByTagName('iframe');
2725
2740
  for (var i = 0; i < iframes.length; i++) {
@@ -2763,10 +2778,10 @@ var setFavicon = function setFavicon(url) {
2763
2778
  * @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
2764
2779
  * @param {String} [value] - 数据的值
2765
2780
  **/
2766
- var setStorage = function setStorage(_ref14) {
2767
- var type = _ref14.type,
2768
- key = _ref14.key,
2769
- value = _ref14.value;
2781
+ var setStorage = function setStorage(_ref15) {
2782
+ var type = _ref15.type,
2783
+ key = _ref15.key,
2784
+ value = _ref15.value;
2770
2785
 
2771
2786
  if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
2772
2787
  value = JSON.stringify(value);
@@ -3060,10 +3075,10 @@ var upperCase = function upperCase(text) {
3060
3075
  * @param {Object} [url] - url地址
3061
3076
  * @param {Object} [param] - 被转换的对象
3062
3077
  **/
3063
- var urlJoinParams = function urlJoinParams(_ref15) {
3064
- var url = _ref15.url,
3065
- param = _ref15.param,
3066
- timestamp = _ref15.timestamp;
3078
+ var urlJoinParams = function urlJoinParams(_ref16) {
3079
+ var url = _ref16.url,
3080
+ param = _ref16.param,
3081
+ timestamp = _ref16.timestamp;
3067
3082
 
3068
3083
  var arry = decodeURI(url).split('?');
3069
3084
  var times = new Date().getTime();
@@ -3184,6 +3199,7 @@ var watermark = function watermark(option) {
3184
3199
  arrUnique: arrUnique,
3185
3200
  average: average,
3186
3201
  browser: browser,
3202
+ busEmit: busEmit,
3187
3203
  calculateNetworkDays: calculateNetworkDays,
3188
3204
  concatenate: concatenate,
3189
3205
  dateAddDays: dateAddDays,
@@ -3980,8 +3996,8 @@ module.exports = require("js-base64");
3980
3996
  // ESM COMPAT FLAG
3981
3997
  __webpack_require__.r(__webpack_exports__);
3982
3998
 
3983
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
3984
- var mainvue_type_template_id_2842c2fa_render = function () {
3999
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=6866ee20&
4000
+ var mainvue_type_template_id_6866ee20_render = function () {
3985
4001
  var _vm = this
3986
4002
  var _h = _vm.$createElement
3987
4003
  var _c = _vm._self._c || _h
@@ -4362,10 +4378,10 @@ var mainvue_type_template_id_2842c2fa_render = function () {
4362
4378
  : _vm._e()
4363
4379
  }
4364
4380
  var staticRenderFns = []
4365
- mainvue_type_template_id_2842c2fa_render._withStripped = true
4381
+ mainvue_type_template_id_6866ee20_render._withStripped = true
4366
4382
 
4367
4383
 
4368
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
4384
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=6866ee20&
4369
4385
 
4370
4386
  // EXTERNAL MODULE: ./src/config/api.js
4371
4387
  var api = __webpack_require__(1);
@@ -4650,6 +4666,8 @@ var _props;
4650
4666
  code: String,
4651
4667
  // 业务id
4652
4668
  ownId: String,
4669
+ //附件文档id
4670
+ documentId: String,
4653
4671
  requiredOwnId: {
4654
4672
  type: Boolean,
4655
4673
  default: true
@@ -4727,6 +4745,10 @@ var _props;
4727
4745
  },
4728
4746
  // 上传的文件列表
4729
4747
  fileList: [Array, String],
4748
+ requestFiles: {
4749
+ type: Boolean,
4750
+ default: true
4751
+ },
4730
4752
  filesParam: {
4731
4753
  type: Object,
4732
4754
  default: function _default() {
@@ -5031,6 +5053,10 @@ var _props;
5031
5053
  });
5032
5054
  },
5033
5055
  created: function created() {
5056
+ var dochubConfig = sessionStorage.getItem('dochubConfig');
5057
+ if (dochubConfig) {
5058
+ this.dochubConfig = JSON.parse(dochubConfig);
5059
+ }
5034
5060
  this.getAdjunctPropertie();
5035
5061
  },
5036
5062
  mounted: function mounted() {
@@ -5061,9 +5087,11 @@ var _props;
5061
5087
  this.fileAccept = config.accept;
5062
5088
  this.fileSize = config.size;
5063
5089
  this.fileTotalSize = config.totalSize;
5064
- this.dochubConfig = config.dochubConfig || {};
5090
+ if (config.dochubConfig) {
5091
+ this.dochubConfig = config.dochubConfig;
5092
+ }
5065
5093
 
5066
- var url = this.portrait ? this.dochubConfig.reuploadDocumentUrl || api["bc" /* uploadOnlyOne */] : this.dochubConfig.uploadDocumentUrl || api["dc" /* uploads */];
5094
+ var url = this.portrait || this.documentId ? this.dochubConfig.reuploadDocumentUrl || api["bc" /* uploadOnlyOne */] : this.dochubConfig.uploadDocumentUrl || api["dc" /* uploads */];
5067
5095
  this.uploadUrl = url.indexOf(this.host) > -1 ? url : this.host + url;
5068
5096
  } else {
5069
5097
  util["a" /* default */].ajax({
@@ -5081,7 +5109,10 @@ var _props;
5081
5109
  return item;
5082
5110
  }).join(',');
5083
5111
  }
5084
- _this3.dochubConfig = res.results.dochubConfig || {};
5112
+ if (res.results.dochubConfig) {
5113
+ _this3.dochubConfig = res.results.dochubConfig;
5114
+ sessionStorage.setItem('dochubConfig', JSON.stringify(res.results.dochubConfig));
5115
+ }
5085
5116
  var _url = _this3.portrait ? _this3.dochubConfig.reuploadDocumentUrl || api["bc" /* uploadOnlyOne */] : _this3.dochubConfig.uploadDocumentUrl || api["dc" /* uploads */];
5086
5117
  _this3.uploadUrl = _url.indexOf(_this3.host) > -1 ? _url : _this3.host + _url;
5087
5118
  if (res.results.kkViewRootPath) {
@@ -5096,7 +5127,7 @@ var _props;
5096
5127
  dochubConfig: _this3.dochubConfig
5097
5128
  });
5098
5129
  }
5099
- _this3.getFiles(_this3.params);
5130
+ _this3.requestFiles && _this3.getFiles(_this3.params);
5100
5131
  }
5101
5132
  }).catch(function (err) {
5102
5133
  if (err.message && err.message !== 'canceled') {
@@ -5453,8 +5484,8 @@ var _props;
5453
5484
  }
5454
5485
  var se = this.filesTotalSize + (this.resultFile ? Math.round(file.size / 1024 * 10) / 10 : 0);
5455
5486
  this.filesTotalSize = se;
5456
- this.onSuccess && this.onSuccess(response, file, fileList);
5457
- this.$emit('success', response, file, fileList);
5487
+ this.onSuccess && this.onSuccess(response, file, fileList, this.dochubConfig);
5488
+ this.$emit('success', response, file, fileList, this.dochubConfig);
5458
5489
  if (this.resultFile) {
5459
5490
  if (this.portrait) {
5460
5491
  this.$emit('input', file);
@@ -5510,7 +5541,7 @@ var componentNormalizer = __webpack_require__(3);
5510
5541
 
5511
5542
  var component = Object(componentNormalizer["a" /* default */])(
5512
5543
  src_mainvue_type_script_lang_js_,
5513
- mainvue_type_template_id_2842c2fa_render,
5544
+ mainvue_type_template_id_6866ee20_render,
5514
5545
  staticRenderFns,
5515
5546
  false,
5516
5547
  null,