ecinc-cloud-moabase 9.6.251 → 9.6.253

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.
@@ -1370,6 +1370,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-1343231e]{position:absol
1370
1370
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1371
1371
 
1372
1372
 
1373
+ /***/ }),
1374
+
1375
+ /***/ 3740:
1376
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1377
+
1378
+ "use strict";
1379
+ __webpack_require__.r(__webpack_exports__);
1380
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
1381
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
1382
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
1383
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
1384
+ // Imports
1385
+
1386
+
1387
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
1388
+ // Module
1389
+ ___CSS_LOADER_EXPORT___.push([module.id, ".breadcrumb[data-v-e919400c]{padding:10px 20px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;font-size:12px;background-color:#fff;overflow-x:auto}.breadcrumb[data-v-e919400c],.crumb-item-container[data-v-e919400c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.crumb-item-container .crumb-item[data-v-e919400c]{width:-webkit-max-content;width:-moz-max-content;width:max-content}.crumb-item[data-v-e919400c]{color:#666;cursor:pointer;border-radius:22px;background-color:#f7f8fa;padding:7px 12px}.last-item[data-v-e919400c]{color:#53a8ff;cursor:default;pointer-events:none;background-color:#edf6ff}.separator[data-v-e919400c]{margin:0 8px;color:#a2a6ad}.file-list[data-v-e919400c]{background:#fff;height:calc(100vh - 96px);overflow-y:auto}.item[data-v-e919400c]{padding:12px 20px;cursor:pointer;-webkit-transition:background .2s;transition:background .2s;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.icon[data-v-e919400c]{margin-right:10px}.icon img[data-v-e919400c],.icon svg[data-v-e919400c]{width:30px;height:30px;position:relative;top:2px}.folder[data-v-e919400c]{font-weight:500;color:#333;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.folder[data-v-e919400c],.folder .file-name[data-v-e919400c]{display:-webkit-box;display:-ms-flexbox;display:flex}.folder .file-name[data-v-e919400c]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-flex:1;-ms-flex:1;flex:1;gap:4px;font-size:14px;--line-clamp:2}.folder .file-name .file-time[data-v-e919400c]{font-size:12px;color:#999}.folder .file-name>div[data-v-e919400c]:first-child{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:var(--line-clamp);-webkit-line-clamp:var(--line-clamp);-webkit-box-orient:vertical}.folder .file-name.is-folder[data-v-e919400c]{font-size:16px;--line-clamp:1}.folder .van-icon[data-v-e919400c]{color:#d8d8d8}.empty-tip[data-v-e919400c]{padding:20px;text-align:center;color:#999}", ""]);
1390
+ // Exports
1391
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1392
+
1393
+
1373
1394
  /***/ }),
1374
1395
 
1375
1396
  /***/ 459:
@@ -26105,6 +26126,22 @@ var update = add("6dc94479", content, true, {"sourceMap":false,"shadowMode":fals
26105
26126
 
26106
26127
  /***/ }),
26107
26128
 
26129
+ /***/ 1608:
26130
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
26131
+
26132
+ // style-loader: Adds some css to the DOM by adding a <style> tag
26133
+
26134
+ // load the styles
26135
+ var content = __webpack_require__(3740);
26136
+ if(content.__esModule) content = content.default;
26137
+ if(typeof content === 'string') content = [[module.id, content, '']];
26138
+ if(content.locals) module.exports = content.locals;
26139
+ // add the styles to the DOM
26140
+ var add = (__webpack_require__(9548)/* ["default"] */ .A)
26141
+ var update = add("7f908a83", content, true, {"sourceMap":false,"shadowMode":false});
26142
+
26143
+ /***/ }),
26144
+
26108
26145
  /***/ 6903:
26109
26146
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
26110
26147
 
@@ -143907,6 +143944,443 @@ var viewContent_component = normalizeComponent(
143907
143944
  )
143908
143945
 
143909
143946
  /* harmony default export */ var viewContent = (viewContent_component.exports);
143947
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/ZipViewer/index.vue?vue&type=template&id=5bd9dee7&scoped=true
143948
+ var ZipViewervue_type_template_id_5bd9dee7_scoped_true_render = function render() {
143949
+ var _vm = this,
143950
+ _c = _vm._self._c;
143951
+ return _c('PopupDialog', {
143952
+ attrs: {
143953
+ "showpop": _vm.isShow,
143954
+ "title": "压缩文件预览"
143955
+ },
143956
+ on: {
143957
+ "update:showpop": function updateShowpop($event) {
143958
+ _vm.isShow = $event;
143959
+ }
143960
+ }
143961
+ }, [_c('div', {
143962
+ directives: [{
143963
+ name: "loading",
143964
+ rawName: "v-loading",
143965
+ value: _vm.loading,
143966
+ expression: "loading"
143967
+ }]
143968
+ }, [!_vm.loading ? _c('FileTree', {
143969
+ attrs: {
143970
+ "treeData": _vm.treeData,
143971
+ "root-name": _vm.rootName
143972
+ },
143973
+ on: {
143974
+ "preview": _vm.preview
143975
+ }
143976
+ }) : _vm._e()], 1)]);
143977
+ };
143978
+ var ZipViewervue_type_template_id_5bd9dee7_scoped_true_staticRenderFns = [];
143979
+
143980
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/ZipViewer/FileTree.vue?vue&type=template&id=e919400c&scoped=true
143981
+ var FileTreevue_type_template_id_e919400c_scoped_true_render = function render() {
143982
+ var _vm = this,
143983
+ _c = _vm._self._c;
143984
+ return _c('div', {
143985
+ staticClass: "file-tree-container"
143986
+ }, [_c('div', {
143987
+ staticClass: "breadcrumb"
143988
+ }, [_c('div', {
143989
+ staticClass: "crumb-item",
143990
+ class: {
143991
+ 'last-item': _vm.pathStack.length == 0
143992
+ },
143993
+ on: {
143994
+ "click": function click($event) {
143995
+ $event.stopPropagation();
143996
+ return _vm.jumpTo(-1);
143997
+ }
143998
+ }
143999
+ }, [_vm._v(_vm._s(_vm.rootName))]), _vm._l(_vm.pathStack, function (folder, index) {
144000
+ return _c('div', {
144001
+ key: folder.id,
144002
+ staticClass: "crumb-item-container"
144003
+ }, [_c('van-icon', {
144004
+ staticClass: "separator",
144005
+ attrs: {
144006
+ "name": "arrow"
144007
+ }
144008
+ }), _c('div', {
144009
+ staticClass: "crumb-item",
144010
+ class: {
144011
+ 'last-item': index == _vm.pathStack.length - 1
144012
+ },
144013
+ on: {
144014
+ "click": function click($event) {
144015
+ $event.stopPropagation();
144016
+ return _vm.jumpTo(index);
144017
+ }
144018
+ }
144019
+ }, [_vm._v(_vm._s(folder.fileName))])], 1);
144020
+ })], 2), _c('div', {
144021
+ staticClass: "file-list"
144022
+ }, [_vm.currentList.length === 0 ? _c('div', {
144023
+ staticClass: "empty-tip"
144024
+ }, [_vm._v("文件夹为空")]) : _vm._e(), _vm._l(_vm.currentList, function (item) {
144025
+ return _c('div', {
144026
+ key: item.id,
144027
+ staticClass: "item",
144028
+ on: {
144029
+ "click": function click($event) {
144030
+ return _vm.handleItemClick(item);
144031
+ }
144032
+ }
144033
+ }, [_c('div', {
144034
+ staticClass: "folder"
144035
+ }, [_c('div', {
144036
+ staticClass: "icon"
144037
+ }, [item.fileType == 1 ? _c('svg', {
144038
+ attrs: {
144039
+ "aria-hidden": "true",
144040
+ "fill": "#333"
144041
+ }
144042
+ }, [_c('use', {
144043
+ attrs: {
144044
+ "xlink:href": '#icon-folder'
144045
+ }
144046
+ })]) : _vm.iconUrl(item.fileName) ? _c('img', {
144047
+ attrs: {
144048
+ "src": _vm.iconUrl(item.fileName)
144049
+ }
144050
+ }) : _vm._e()]), _c('div', {
144051
+ staticClass: "file-name",
144052
+ class: {
144053
+ 'is-folder': item.fileType == 1
144054
+ }
144055
+ }, [_c('div', [_vm._v(_vm._s(item.fileName))]), item.fileType == 1 ? _c('div', {
144056
+ staticClass: "file-time"
144057
+ }, [_vm._v(_vm._s(item.fileTime))]) : _vm._e()]), item.fileType == 1 ? _c('van-icon', {
144058
+ attrs: {
144059
+ "name": "arrow"
144060
+ }
144061
+ }) : _vm._e()], 1)]);
144062
+ })], 2)]);
144063
+ };
144064
+ var FileTreevue_type_template_id_e919400c_scoped_true_staticRenderFns = [];
144065
+
144066
+ // EXTERNAL MODULE: ./src/global/utils/index.js
144067
+ var utils = __webpack_require__(904);
144068
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/ZipViewer/FileTree.vue?vue&type=script&lang=js
144069
+
144070
+ /* harmony default export */ var FileTreevue_type_script_lang_js = ({
144071
+ name: "FileTree",
144072
+ props: {
144073
+ treeData: {
144074
+ type: Array,
144075
+ default: function _default() {
144076
+ return [];
144077
+ }
144078
+ },
144079
+ rootName: {
144080
+ type: String,
144081
+ default: ''
144082
+ }
144083
+ },
144084
+ data: function data() {
144085
+ return {
144086
+ pathStack: [] // 存储路径对象数组
144087
+ };
144088
+ },
144089
+ computed: {
144090
+ // 动态计算当前显示内容
144091
+ currentList: function currentList() {
144092
+ if (this.pathStack.length === 0) return this.treeData;
144093
+ return this.pathStack[this.pathStack.length - 1].children || [];
144094
+ }
144095
+ },
144096
+ methods: {
144097
+ // 进入文件夹
144098
+ handleItemClick: function handleItemClick(item) {
144099
+ if (item.fileType == 1) {
144100
+ this.pathStack.push(item);
144101
+ } else {
144102
+ this.$emit('preview', item);
144103
+ }
144104
+ },
144105
+ jumpTo: function jumpTo(index) {
144106
+ this.pathStack = this.pathStack.slice(0, index + 1);
144107
+ },
144108
+ iconUrl: function iconUrl(fileName) {
144109
+ if (typeof utils.attachIconUrl == 'function') {
144110
+ return (0,utils.attachIconUrl)(fileName);
144111
+ }
144112
+ return null;
144113
+ }
144114
+ }
144115
+ });
144116
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/ZipViewer/FileTree.vue?vue&type=script&lang=js
144117
+ /* harmony default export */ var ZipViewer_FileTreevue_type_script_lang_js = (FileTreevue_type_script_lang_js);
144118
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/ZipViewer/FileTree.vue?vue&type=style&index=0&id=e919400c&prod&scoped=true&lang=scss
144119
+ var FileTreevue_type_style_index_0_id_e919400c_prod_scoped_true_lang_scss = __webpack_require__(1608);
144120
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/ZipViewer/FileTree.vue?vue&type=style&index=0&id=e919400c&prod&scoped=true&lang=scss
144121
+
144122
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/ZipViewer/FileTree.vue
144123
+
144124
+
144125
+
144126
+ ;
144127
+
144128
+
144129
+ /* normalize component */
144130
+
144131
+ var FileTree_component = normalizeComponent(
144132
+ ZipViewer_FileTreevue_type_script_lang_js,
144133
+ FileTreevue_type_template_id_e919400c_scoped_true_render,
144134
+ FileTreevue_type_template_id_e919400c_scoped_true_staticRenderFns,
144135
+ false,
144136
+ null,
144137
+ "e919400c",
144138
+ null
144139
+
144140
+ )
144141
+
144142
+ /* harmony default export */ var FileTree = (FileTree_component.exports);
144143
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/ZipViewer/index.vue?vue&type=script&lang=js
144144
+ function ZipViewervue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return ZipViewervue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ZipViewervue_type_script_lang_js_typeof(o); }
144145
+ function ZipViewervue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
144146
+ function ZipViewervue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ZipViewervue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { ZipViewervue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ZipViewervue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
144147
+ function ZipViewervue_type_script_lang_js_defineProperty(e, r, t) { return (r = ZipViewervue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
144148
+ function ZipViewervue_type_script_lang_js_toPropertyKey(t) { var i = ZipViewervue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == ZipViewervue_type_script_lang_js_typeof(i) ? i : i + ""; }
144149
+ function ZipViewervue_type_script_lang_js_toPrimitive(t, r) { if ("object" != ZipViewervue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ZipViewervue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
144150
+ function ZipViewervue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ ZipViewervue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == ZipViewervue_type_script_lang_js_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(ZipViewervue_type_script_lang_js_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
144151
+ function ZipViewervue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
144152
+ function ZipViewervue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { ZipViewervue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { ZipViewervue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
144153
+
144154
+
144155
+ /* harmony default export */ var ZipViewervue_type_script_lang_js = ({
144156
+ components: {
144157
+ FileTree: FileTree
144158
+ },
144159
+ props: {
144160
+ show: {
144161
+ type: Boolean,
144162
+ default: function _default() {
144163
+ return false;
144164
+ }
144165
+ },
144166
+ productCode: {
144167
+ type: String,
144168
+ default: function _default() {
144169
+ return '';
144170
+ }
144171
+ },
144172
+ // 直接传入attach就不用传attachId和attachName
144173
+ attach: {
144174
+ type: Object,
144175
+ default: null
144176
+ },
144177
+ // attachId,attachName的优先级高于attach
144178
+ attachId: {
144179
+ type: String,
144180
+ default: function _default() {
144181
+ return '';
144182
+ }
144183
+ },
144184
+ attachName: {
144185
+ type: String,
144186
+ default: function _default() {
144187
+ return '';
144188
+ }
144189
+ },
144190
+ onPreview: {
144191
+ type: Function,
144192
+ default: null
144193
+ },
144194
+ toPdf: {
144195
+ type: Boolean,
144196
+ default: true
144197
+ },
144198
+ canDownload: {
144199
+ type: Number,
144200
+ default: 1
144201
+ }
144202
+ },
144203
+ computed: {
144204
+ isShow: {
144205
+ get: function get() {
144206
+ return this.show;
144207
+ },
144208
+ set: function set(val) {
144209
+ this.$emit('update:show', val);
144210
+ }
144211
+ }
144212
+ },
144213
+ watch: {
144214
+ show: function show(val) {
144215
+ if (val) {
144216
+ this.init();
144217
+ }
144218
+ }
144219
+ },
144220
+ data: function data() {
144221
+ return {
144222
+ treeData: [],
144223
+ rootName: '根目录',
144224
+ loading: false
144225
+ };
144226
+ },
144227
+ methods: {
144228
+ init: function init() {
144229
+ var _this = this;
144230
+ return ZipViewervue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/ZipViewervue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
144231
+ var _this$getArg, attachName, attachId, _yield$_this$$http, body, code, message;
144232
+ return ZipViewervue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
144233
+ while (1) switch (_context.prev = _context.next) {
144234
+ case 0:
144235
+ // 调用接口请求fileUrl获取文件
144236
+ _this.loading = true;
144237
+ _this$getArg = _this.getArg(), attachName = _this$getArg.attachName, attachId = _this$getArg.attachId;
144238
+ _this.rootName = attachName || '根目录';
144239
+ _context.next = 5;
144240
+ return _this.$http({
144241
+ method: 'get',
144242
+ url: "".concat(_this.productCode, "/webForm/findZipFileFolder?fileId=").concat(attachId)
144243
+ });
144244
+ case 5:
144245
+ _yield$_this$$http = _context.sent;
144246
+ body = _yield$_this$$http.body;
144247
+ code = _yield$_this$$http.code;
144248
+ message = _yield$_this$$http.message;
144249
+ if (!(code != 'success')) {
144250
+ _context.next = 12;
144251
+ break;
144252
+ }
144253
+ _this.$message.error(message);
144254
+ return _context.abrupt("return");
144255
+ case 12:
144256
+ body.folders.forEach(function (item) {
144257
+ item.id = item.fileId;
144258
+ });
144259
+ _this.treeData = _this.arrayToTree(body.folders);
144260
+ _this.loading = false;
144261
+ case 15:
144262
+ case "end":
144263
+ return _context.stop();
144264
+ }
144265
+ }, _callee);
144266
+ }))();
144267
+ },
144268
+ arrayToTree: function arrayToTree(list) {
144269
+ var map = {};
144270
+ var tree = [];
144271
+ list.forEach(function (item) {
144272
+ map[item.id] = ZipViewervue_type_script_lang_js_objectSpread(ZipViewervue_type_script_lang_js_objectSpread({}, item), {}, {
144273
+ children: []
144274
+ });
144275
+ });
144276
+ list.forEach(function (item) {
144277
+ var node = map[item.id];
144278
+ if (item.parentId && map[item.parentId]) {
144279
+ map[item.parentId].children.push(node);
144280
+ } else {
144281
+ tree.push(node);
144282
+ }
144283
+ });
144284
+ return tree;
144285
+ },
144286
+ preview: function preview(file) {
144287
+ var _this2 = this;
144288
+ return ZipViewervue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/ZipViewervue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
144289
+ var fileName, extension, appUrl, _this2$getArg, attachId, downloadUrl, canToPdf, isImg, device, canPreview;
144290
+ return ZipViewervue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
144291
+ while (1) switch (_context2.prev = _context2.next) {
144292
+ case 0:
144293
+ if (!_this2.onPreview) {
144294
+ _context2.next = 3;
144295
+ break;
144296
+ }
144297
+ _this2.onPreview(file);
144298
+ return _context2.abrupt("return");
144299
+ case 3:
144300
+ fileName = file.fileName;
144301
+ extension = fileName.split('.').pop();
144302
+ appUrl = location.href.split('#')[0].split('mindex.html')[0];
144303
+ _this2$getArg = _this2.getArg(), attachId = _this2$getArg.attachId;
144304
+ downloadUrl = "".concat(appUrl, "apigw/").concat(_this2.productCode, "/webForm/downloadZipInnerFile?fileId=").concat(attachId, "&fullPath=").concat(encodeURIComponent(file.fullId), "&fileName=&csrfToken=").concat(window.$auth.getCsrfToken());
144305
+ canToPdf = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'wps', 'ofd', 'tif', 'tiff'];
144306
+ isImg = ['jpg', 'png', 'gif', 'jpeg', 'bmp'];
144307
+ device = js_cookie_default().get('device');
144308
+ canPreview = _this2.canDownload;
144309
+ if (canToPdf.includes(extension) && _this2.toPdf && !['qywx', 'zwwx'].includes(device)) {
144310
+ downloadUrl += '&topdf=true';
144311
+ canPreview = 1;
144312
+ }
144313
+ if (isImg.includes(extension)) {
144314
+ downloadUrl += '&img=true';
144315
+ canPreview = 1;
144316
+ }
144317
+ if (!(extension !== 'pdf')) {
144318
+ _context2.next = 18;
144319
+ break;
144320
+ }
144321
+ if (canPreview) {
144322
+ _context2.next = 18;
144323
+ break;
144324
+ }
144325
+ //只能在线预览、不能下载到本地
144326
+ _this2.$toast.fail('文件格式“' + extension + '”不支持在线预览');
144327
+ return _context2.abrupt("return");
144328
+ case 18:
144329
+ downloadUrl += '&attachH5CanDownload=' + _this2.canDownload;
144330
+ _this2.$mappUtils.downLoadAndOpenFile(null, downloadUrl, fileName, null);
144331
+ case 20:
144332
+ case "end":
144333
+ return _context2.stop();
144334
+ }
144335
+ }, _callee2);
144336
+ }))();
144337
+ },
144338
+ getArg: function getArg() {
144339
+ var attachId = '',
144340
+ attachName = '';
144341
+ if (this.attach) {
144342
+ attachId = this.attach.id;
144343
+ if (typeof this.attach.fileName == 'string') {
144344
+ var name = this.attach.fileName.split('.');
144345
+ name.pop();
144346
+ attachName = name.join('.');
144347
+ }
144348
+ }
144349
+ if (this.attachId) {
144350
+ attachId = this.attachId;
144351
+ }
144352
+ if (this.attachName) {
144353
+ attachName = this.attachName;
144354
+ }
144355
+ return {
144356
+ attachName: attachName,
144357
+ attachId: attachId
144358
+ };
144359
+ }
144360
+ }
144361
+ });
144362
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/ZipViewer/index.vue?vue&type=script&lang=js
144363
+ /* harmony default export */ var components_ZipViewervue_type_script_lang_js = (ZipViewervue_type_script_lang_js);
144364
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/ZipViewer/index.vue
144365
+
144366
+
144367
+
144368
+
144369
+
144370
+ /* normalize component */
144371
+ ;
144372
+ var ZipViewer_component = normalizeComponent(
144373
+ components_ZipViewervue_type_script_lang_js,
144374
+ ZipViewervue_type_template_id_5bd9dee7_scoped_true_render,
144375
+ ZipViewervue_type_template_id_5bd9dee7_scoped_true_staticRenderFns,
144376
+ false,
144377
+ null,
144378
+ "5bd9dee7",
144379
+ null
144380
+
144381
+ )
144382
+
144383
+ /* harmony default export */ var ZipViewer = (ZipViewer_component.exports);
143910
144384
  ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/index.js
143911
144385
  function moabase_typeof(o) { "@babel/helpers - typeof"; return moabase_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, moabase_typeof(o); }
143912
144386
  function moabase_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -143953,6 +144427,8 @@ var BbzxIndex = exportor.BbzxIndex,
143953
144427
 
143954
144428
  //wfInstance/viewContent
143955
144429
 
144430
+
144431
+
143956
144432
  // 以对象的结构保存组件,便于遍历
143957
144433
  var components = {
143958
144434
  BbzxFrameLoader: BbzxFrameLoader,
@@ -143988,7 +144464,8 @@ var components = {
143988
144464
  handovernote: handovernote,
143989
144465
  RelatedArticle: RelatedArticle,
143990
144466
  SendFile: SendFile,
143991
- Submission: Submission
144467
+ Submission: Submission,
144468
+ ZipViewer: ZipViewer
143992
144469
  };
143993
144470
  // 定义 install 方法
143994
144471
  var moabase_install = function install(Vue) {