ecinc-cloud-yoabase 9.6.312 → 9.6.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -2
- package/lib/ecyoabase.common.js +526 -16
- package/lib/ecyoabase.umd.js +526 -16
- package/lib/ecyoabase.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecyoabase.umd.js
CHANGED
|
@@ -14448,6 +14448,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tinymce-container[data-v-5acdb42b]{po
|
|
|
14448
14448
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
14449
14449
|
|
|
14450
14450
|
|
|
14451
|
+
/***/ }),
|
|
14452
|
+
|
|
14453
|
+
/***/ 5344:
|
|
14454
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14455
|
+
|
|
14456
|
+
"use strict";
|
|
14457
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14458
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
14459
|
+
/* 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__);
|
|
14460
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
14461
|
+
/* 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__);
|
|
14462
|
+
// Imports
|
|
14463
|
+
|
|
14464
|
+
|
|
14465
|
+
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()));
|
|
14466
|
+
// Module
|
|
14467
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".breadcrumb[data-v-adf6684e]{padding:10px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:14px;border-bottom:1px solid #efeff0}.crumb-item[data-v-adf6684e]{color:#666;cursor:pointer}.crumb-item[data-v-adf6684e]:hover{text-decoration:underline}.last-item[data-v-adf6684e]{color:#333;cursor:default;pointer-events:none}.separator[data-v-adf6684e]{margin:0 8px;color:#333}.file-list[data-v-adf6684e]{background:#fff;height:50vh;overflow-y:auto}.item[data-v-adf6684e]{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;border-bottom:1px solid #f0f0f0}.item[data-v-adf6684e]:last-child{border-bottom:none}.item[data-v-adf6684e]:hover{background:#f0f7ff}.icon[data-v-adf6684e]{margin-right:10px;img[data-v-adf6684e]{position:relative;top:2px;width:14px;height:14px}}.folder[data-v-adf6684e]{font-weight:500;color:#333}.file[data-v-adf6684e]{color:#555}.empty-tip[data-v-adf6684e]{padding:20px;text-align:center;color:#999}", ""]);
|
|
14468
|
+
// Exports
|
|
14469
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
14470
|
+
|
|
14471
|
+
|
|
14451
14472
|
/***/ }),
|
|
14452
14473
|
|
|
14453
14474
|
/***/ 2994:
|
|
@@ -14513,7 +14534,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-dialog__body{min-height:auto!impor
|
|
|
14513
14534
|
|
|
14514
14535
|
/***/ }),
|
|
14515
14536
|
|
|
14516
|
-
/***/
|
|
14537
|
+
/***/ 1318:
|
|
14517
14538
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14518
14539
|
|
|
14519
14540
|
"use strict";
|
|
@@ -14527,7 +14548,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14527
14548
|
|
|
14528
14549
|
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()));
|
|
14529
14550
|
// Module
|
|
14530
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
14551
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-155cf786] .el-table__body-wrapper::-webkit-scrollbar{height:8px!important}[data-v-155cf786] .el-table__body-wrapper::-webkit-scrollbar-track{border-radius:12px}[data-v-155cf786] .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:12px;background-color:#f2f5fb}[data-v-155cf786] .el-form .el-table__body .tdlbl{background:#f2f5fb!important}#new-busi-form[data-v-155cf786]{height:100%;background:#f0f2f5}#new-busi-form .new-head[data-v-155cf786]{height:68px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;background:#fff;border-bottom:1px solid #e2e7ed}#new-busi-form .new-head[data-v-155cf786],#new-busi-form .new-head .head-left[data-v-155cf786]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#new-busi-form .new-head .head-left img[data-v-155cf786]{width:44px;height:44px}#new-busi-form .new-head .head-left .head-title[data-v-155cf786]{margin-left:10px;margin-top:10px;font-size:var(--portalFontSize13);color:#999;font-weight:400}#new-busi-form .new-head .head-left .head-title .moduleTitle[data-v-155cf786]{font-size:22px;line-height:29px}#new-busi-form .new-head .head-left .head-title .moduleT[data-v-155cf786]{position:relative;font-weight:400;color:#999}#new-busi-form .new-head .head-left .head-title .sidebar-divide[data-v-155cf786]{border-right:1px solid #ccc;margin:0 10px;height:14px}#new-busi-form .new-head .head-left .head-title .formTapBtn[data-v-155cf786]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:10px;font-family:MicrosoftYaHei;color:#000;font-size:var(--portalFontSize13)}#new-busi-form .new-head .head-left .head-title .formTapBtn .tapItemBtn[data-v-155cf786]{position:relative;margin-right:15px}#new-busi-form .new-head .head-left .head-title .formTapBtn .active[data-v-155cf786]{position:relative;color:var(--subjectColor);font-weight:700}#new-busi-form .new-head .head-left .head-title .formTapBtn .active[data-v-155cf786]:after{content:\"\";position:absolute;bottom:-12px;left:0;width:100%;height:2px;background:var(--subjectColor)}#new-busi-form .new-head .head-left .head-title .formTapBtn .tapItemBtn[data-v-155cf786]:hover{cursor:pointer;color:var(--subjectColor)}#new-busi-form .busi-box[data-v-155cf786]{height:calc(100% - 68px);overflow-y:auto}#new-busi-form .busi-box .busi-content[data-v-155cf786]{width:calc(100% - 40px);background:#fff;min-height:100%;margin:20px auto;-webkit-box-shadow:0 0 6px 0 rgba(0,0,0,.06);box-shadow:0 0 6px 0 rgba(0,0,0,.06)}#new-busi-form .busi-box .busi-content .title-info[data-v-155cf786]{height:93px;text-align:center;line-height:93px;font-size:24px;color:#000}#new-busi-form .busi-box .busi-content .busi-components[data-v-155cf786]{width:87%;margin:0 auto;padding:0}@media (max-width:1600px){#new-busi-form .busi-box .busi-content[data-v-155cf786]{width:calc(100% - 40px)}}@media (min-width:2120px){#new-busi-form .busi-box .busi-content[data-v-155cf786]{width:calc(100% - 40px)}}#new-busi-form .busi-box[data-v-155cf786]::-webkit-scrollbar{background-color:#f0f2f5;width:8px}#new-busi-form .busi-box[data-v-155cf786]::-webkit-scrollbar-thumb{border-radius:12px}#new-busi-form .busi-box:hover.busi-box[data-v-155cf786]::-webkit-scrollbar-thumb{background-color:#d5d6d8}#new-busi-form[data-v-155cf786] .el-table .el-table__header-wrapper .el-table__header thead th{background:transparent!important}#new-busi-form[data-v-155cf786] .el-form .el-table__body .tdlbl .required{position:absolute;left:6px}#new-busi-form[data-v-155cf786] .el-table__cell.tdlbl{padding:4px 6px 4px 15px!important}#new-busi-form[data-v-155cf786] .el-form .el-table__body .tdlbl{text-align:left}#new-busi-form[data-v-155cf786] .el-form .el-table__body td.tdw17{width:15.6%}#new-busi-form[data-v-155cf786] .el-form .el-table__body td.tdw33{width:34.4%}#new-busi-form[data-v-155cf786] .el-form .el-table__body td.tdw83{width:84.4%}#new-busi-form[data-v-155cf786] .el-form .el-table__body td.tdw13{width:10.4%}#new-busi-form[data-v-155cf786] .el-form .el-table__body td.tdw20{width:22.9%}#new-busi-form[data-v-155cf786] .el-form .el-table.el-table--border td{border-right-color:#999!important;border-bottom-color:#999!important}#new-busi-form[data-v-155cf786] .el-table--border .el-table__cell{border-right:1px solid #999}#new-busi-form[data-v-155cf786] .el-form .el-table.el-table--border{border-color:#999}#new-busi-form .el-table--group[data-v-155cf786]:after,#new-busi-form[data-v-155cf786] .el-form .el-table:before,#new-busi-form[data-v-155cf786] .el-table--border:after,#new-busi-form[data-v-155cf786] .el-table:before{background-color:#999}#new-busi-form[data-v-155cf786] .title-container{border-color:#fff!important}#new-busi-form[data-v-155cf786] .title-container .has-bottom{border:1px solid #999;border-bottom:0}#new-busi-form[data-v-155cf786] .el-form .el-table:after{background-color:#999}#new-busi-form[data-v-155cf786] .el-table--border{border-color:#999}#new-busi-form[data-v-155cf786] .el-tabs .el-tabs__header{width:60%;background-color:unset}#new-busi-form[data-v-155cf786] .el-tabs__nav-wrap:after{height:0}#new-busi-form[data-v-155cf786] .el-table td.el-table__cell,#new-busi-form[data-v-155cf786] .el-table th.el-table__cell.is-leaf{border-bottom:1px solid #999}#new-busi-form[data-v-155cf786] .toolbar-box .el-button{border:1px solid #999}#new-busi-form[data-v-155cf786] .el-popover__reference-wrapper .el-button-group .toolbar-box{padding:0 1px 0 0}#new-busi-form[data-v-155cf786] .inner-table-toolbar{display:none}#new-busi-form.full-screen .busi-content[data-v-155cf786]{width:calc(100% - 40px);min-width:1000px}#new-busi-form.full-screen .busi-content .busi-components[data-v-155cf786]{width:87%;margin:0 auto;padding:0}@media (min-width:3840px){#new-busi-form.full-screen .busi-content[data-v-155cf786]{width:3200px}}", ""]);
|
|
14531
14552
|
// Exports
|
|
14532
14553
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
14533
14554
|
|
|
@@ -15398,6 +15419,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-4cb05072]{position:absol
|
|
|
15398
15419
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
15399
15420
|
|
|
15400
15421
|
|
|
15422
|
+
/***/ }),
|
|
15423
|
+
|
|
15424
|
+
/***/ 6377:
|
|
15425
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15426
|
+
|
|
15427
|
+
"use strict";
|
|
15428
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15429
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
15430
|
+
/* 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__);
|
|
15431
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
15432
|
+
/* 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__);
|
|
15433
|
+
// Imports
|
|
15434
|
+
|
|
15435
|
+
|
|
15436
|
+
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()));
|
|
15437
|
+
// Module
|
|
15438
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-c4f48a48] .el-dialog__body{padding:0!important}", ""]);
|
|
15439
|
+
// Exports
|
|
15440
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
15441
|
+
|
|
15442
|
+
|
|
15401
15443
|
/***/ }),
|
|
15402
15444
|
|
|
15403
15445
|
/***/ 5966:
|
|
@@ -77614,6 +77656,22 @@ var update = add("2c57cb48", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
77614
77656
|
|
|
77615
77657
|
/***/ }),
|
|
77616
77658
|
|
|
77659
|
+
/***/ 4323:
|
|
77660
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
77661
|
+
|
|
77662
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
77663
|
+
|
|
77664
|
+
// load the styles
|
|
77665
|
+
var content = __webpack_require__(5344);
|
|
77666
|
+
if(content.__esModule) content = content.default;
|
|
77667
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
77668
|
+
if(content.locals) module.exports = content.locals;
|
|
77669
|
+
// add the styles to the DOM
|
|
77670
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
77671
|
+
var update = add("7cd1eca3", content, true, {"sourceMap":false,"shadowMode":false});
|
|
77672
|
+
|
|
77673
|
+
/***/ }),
|
|
77674
|
+
|
|
77617
77675
|
/***/ 5267:
|
|
77618
77676
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
77619
77677
|
|
|
@@ -77662,19 +77720,19 @@ var update = add("4060d278", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
77662
77720
|
|
|
77663
77721
|
/***/ }),
|
|
77664
77722
|
|
|
77665
|
-
/***/
|
|
77723
|
+
/***/ 1146:
|
|
77666
77724
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
77667
77725
|
|
|
77668
77726
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
77669
77727
|
|
|
77670
77728
|
// load the styles
|
|
77671
|
-
var content = __webpack_require__(
|
|
77729
|
+
var content = __webpack_require__(1318);
|
|
77672
77730
|
if(content.__esModule) content = content.default;
|
|
77673
77731
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
77674
77732
|
if(content.locals) module.exports = content.locals;
|
|
77675
77733
|
// add the styles to the DOM
|
|
77676
77734
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
77677
|
-
var update = add("
|
|
77735
|
+
var update = add("65877290", content, true, {"sourceMap":false,"shadowMode":false});
|
|
77678
77736
|
|
|
77679
77737
|
/***/ }),
|
|
77680
77738
|
|
|
@@ -78334,6 +78392,22 @@ var update = add("2141f28e", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
78334
78392
|
|
|
78335
78393
|
/***/ }),
|
|
78336
78394
|
|
|
78395
|
+
/***/ 9605:
|
|
78396
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
78397
|
+
|
|
78398
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
78399
|
+
|
|
78400
|
+
// load the styles
|
|
78401
|
+
var content = __webpack_require__(6377);
|
|
78402
|
+
if(content.__esModule) content = content.default;
|
|
78403
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
78404
|
+
if(content.locals) module.exports = content.locals;
|
|
78405
|
+
// add the styles to the DOM
|
|
78406
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
78407
|
+
var update = add("01692394", content, true, {"sourceMap":false,"shadowMode":false});
|
|
78408
|
+
|
|
78409
|
+
/***/ }),
|
|
78410
|
+
|
|
78337
78411
|
/***/ 3442:
|
|
78338
78412
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
78339
78413
|
|
|
@@ -235580,6 +235654,440 @@ var echartR_component = normalizeComponent(
|
|
|
235580
235654
|
MappWorkEchartZ: echartZ,
|
|
235581
235655
|
MappWorkEchartR: echartR
|
|
235582
235656
|
});
|
|
235657
|
+
;// 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/ecyoa/yoabase/src/common/components/ZipViewer/index.vue?vue&type=template&id=c4f48a48&scoped=true
|
|
235658
|
+
var ZipViewervue_type_template_id_c4f48a48_scoped_true_render = function render() {
|
|
235659
|
+
var _vm = this,
|
|
235660
|
+
_c = _vm._self._c;
|
|
235661
|
+
return _c('el-dialog', {
|
|
235662
|
+
directives: [{
|
|
235663
|
+
name: "el-drag-dialog",
|
|
235664
|
+
rawName: "v-el-drag-dialog"
|
|
235665
|
+
}],
|
|
235666
|
+
attrs: {
|
|
235667
|
+
"visible": _vm.isShow,
|
|
235668
|
+
"title": "压缩包预览",
|
|
235669
|
+
"width": "1000px",
|
|
235670
|
+
"close-on-click-modal": false,
|
|
235671
|
+
"destroy-on-close": ""
|
|
235672
|
+
},
|
|
235673
|
+
on: {
|
|
235674
|
+
"update:visible": function updateVisible($event) {
|
|
235675
|
+
_vm.isShow = $event;
|
|
235676
|
+
}
|
|
235677
|
+
}
|
|
235678
|
+
}, [_c('div', {
|
|
235679
|
+
directives: [{
|
|
235680
|
+
name: "loading",
|
|
235681
|
+
rawName: "v-loading",
|
|
235682
|
+
value: _vm.loading,
|
|
235683
|
+
expression: "loading"
|
|
235684
|
+
}]
|
|
235685
|
+
}, [!_vm.loading ? _c('FileTree', {
|
|
235686
|
+
attrs: {
|
|
235687
|
+
"treeData": _vm.treeData,
|
|
235688
|
+
"root-name": _vm.rootName
|
|
235689
|
+
},
|
|
235690
|
+
on: {
|
|
235691
|
+
"preview": _vm.preview
|
|
235692
|
+
}
|
|
235693
|
+
}) : _vm._e()], 1), _c('span', {
|
|
235694
|
+
staticClass: "dialog-footer",
|
|
235695
|
+
attrs: {
|
|
235696
|
+
"slot": "footer"
|
|
235697
|
+
},
|
|
235698
|
+
slot: "footer"
|
|
235699
|
+
}, [_c('el-button', {
|
|
235700
|
+
on: {
|
|
235701
|
+
"click": function click($event) {
|
|
235702
|
+
_vm.isShow = false;
|
|
235703
|
+
}
|
|
235704
|
+
}
|
|
235705
|
+
}, [_vm._v("关 闭")])], 1)]);
|
|
235706
|
+
};
|
|
235707
|
+
var ZipViewervue_type_template_id_c4f48a48_scoped_true_staticRenderFns = [];
|
|
235708
|
+
|
|
235709
|
+
;// 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/ecyoa/yoabase/src/common/components/ZipViewer/FileTree.vue?vue&type=template&id=adf6684e&scoped=true
|
|
235710
|
+
var FileTreevue_type_template_id_adf6684e_scoped_true_render = function render() {
|
|
235711
|
+
var _vm = this,
|
|
235712
|
+
_c = _vm._self._c;
|
|
235713
|
+
return _c('div', {
|
|
235714
|
+
staticClass: "file-tree-container"
|
|
235715
|
+
}, [_c('div', {
|
|
235716
|
+
staticClass: "breadcrumb"
|
|
235717
|
+
}, [_c('span', {
|
|
235718
|
+
staticClass: "crumb-item",
|
|
235719
|
+
on: {
|
|
235720
|
+
"click": function click($event) {
|
|
235721
|
+
$event.stopPropagation();
|
|
235722
|
+
return _vm.jumpTo(-1);
|
|
235723
|
+
}
|
|
235724
|
+
}
|
|
235725
|
+
}, [_vm._v(_vm._s(_vm.rootName))]), _vm._l(_vm.pathStack, function (folder, index) {
|
|
235726
|
+
return _c('span', {
|
|
235727
|
+
key: folder.id
|
|
235728
|
+
}, [_c('span', {
|
|
235729
|
+
staticClass: "separator"
|
|
235730
|
+
}, [_vm._v(">")]), _c('span', {
|
|
235731
|
+
staticClass: "crumb-item",
|
|
235732
|
+
class: {
|
|
235733
|
+
'last-item': index == _vm.pathStack.length - 1
|
|
235734
|
+
},
|
|
235735
|
+
on: {
|
|
235736
|
+
"click": function click($event) {
|
|
235737
|
+
$event.stopPropagation();
|
|
235738
|
+
return _vm.jumpTo(index);
|
|
235739
|
+
}
|
|
235740
|
+
}
|
|
235741
|
+
}, [_vm._v(_vm._s(folder.fileName))])]);
|
|
235742
|
+
})], 2), _c('div', {
|
|
235743
|
+
staticClass: "file-list"
|
|
235744
|
+
}, [_vm.currentList.length === 0 ? _c('div', {
|
|
235745
|
+
staticClass: "empty-tip"
|
|
235746
|
+
}, [_vm._v("文件夹为空")]) : _vm._e(), _vm._l(_vm.currentList, function (item) {
|
|
235747
|
+
return _c('div', {
|
|
235748
|
+
key: item.id,
|
|
235749
|
+
staticClass: "item",
|
|
235750
|
+
on: {
|
|
235751
|
+
"click": function click($event) {
|
|
235752
|
+
return _vm.handleItemClick(item);
|
|
235753
|
+
}
|
|
235754
|
+
}
|
|
235755
|
+
}, [item.fileType == 1 ? _c('span', {
|
|
235756
|
+
staticClass: "folder"
|
|
235757
|
+
}, [_c('span', {
|
|
235758
|
+
staticClass: "icon"
|
|
235759
|
+
}, [_c('svg-icon', {
|
|
235760
|
+
attrs: {
|
|
235761
|
+
"icon-class": "folder"
|
|
235762
|
+
}
|
|
235763
|
+
})], 1), _vm._v(" " + _vm._s(item.fileName) + " ")]) : _c('span', {
|
|
235764
|
+
staticClass: "file"
|
|
235765
|
+
}, [_c('span', {
|
|
235766
|
+
staticClass: "icon"
|
|
235767
|
+
}, [_c('img', {
|
|
235768
|
+
attrs: {
|
|
235769
|
+
"src": _vm.iconUrl(item.fileName)
|
|
235770
|
+
}
|
|
235771
|
+
})]), _vm._v(" " + _vm._s(item.fileName) + " ")]), _c('span', {
|
|
235772
|
+
staticStyle: {
|
|
235773
|
+
"color": "#999999"
|
|
235774
|
+
}
|
|
235775
|
+
}, [_vm._v(_vm._s(item.fileTime))])]);
|
|
235776
|
+
})], 2)]);
|
|
235777
|
+
};
|
|
235778
|
+
var FileTreevue_type_template_id_adf6684e_scoped_true_staticRenderFns = [];
|
|
235779
|
+
|
|
235780
|
+
;// 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/ecyoa/yoabase/src/common/components/ZipViewer/FileTree.vue?vue&type=script&lang=js
|
|
235781
|
+
|
|
235782
|
+
/* harmony default export */ var FileTreevue_type_script_lang_js = ({
|
|
235783
|
+
name: "FileTree",
|
|
235784
|
+
props: {
|
|
235785
|
+
treeData: {
|
|
235786
|
+
type: Array,
|
|
235787
|
+
default: function _default() {
|
|
235788
|
+
return [];
|
|
235789
|
+
}
|
|
235790
|
+
},
|
|
235791
|
+
rootName: {
|
|
235792
|
+
type: String,
|
|
235793
|
+
default: ''
|
|
235794
|
+
}
|
|
235795
|
+
},
|
|
235796
|
+
data: function data() {
|
|
235797
|
+
return {
|
|
235798
|
+
pathStack: [] // 存储路径对象数组
|
|
235799
|
+
};
|
|
235800
|
+
},
|
|
235801
|
+
computed: {
|
|
235802
|
+
// 动态计算当前显示内容
|
|
235803
|
+
currentList: function currentList() {
|
|
235804
|
+
if (this.pathStack.length === 0) return this.treeData;
|
|
235805
|
+
return this.pathStack[this.pathStack.length - 1].children || [];
|
|
235806
|
+
}
|
|
235807
|
+
},
|
|
235808
|
+
methods: {
|
|
235809
|
+
// 进入文件夹
|
|
235810
|
+
handleItemClick: function handleItemClick(item) {
|
|
235811
|
+
if (item.fileType == 1) {
|
|
235812
|
+
this.pathStack.push(item);
|
|
235813
|
+
} else {
|
|
235814
|
+
this.$emit('preview', item);
|
|
235815
|
+
}
|
|
235816
|
+
},
|
|
235817
|
+
jumpTo: function jumpTo(index) {
|
|
235818
|
+
this.pathStack = this.pathStack.slice(0, index + 1);
|
|
235819
|
+
},
|
|
235820
|
+
iconUrl: function iconUrl(fileName) {
|
|
235821
|
+
return (0,utils.attachIconUrl)({
|
|
235822
|
+
fileName: fileName
|
|
235823
|
+
});
|
|
235824
|
+
}
|
|
235825
|
+
}
|
|
235826
|
+
});
|
|
235827
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/ZipViewer/FileTree.vue?vue&type=script&lang=js
|
|
235828
|
+
/* harmony default export */ var ZipViewer_FileTreevue_type_script_lang_js = (FileTreevue_type_script_lang_js);
|
|
235829
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/common/components/ZipViewer/FileTree.vue?vue&type=style&index=0&id=adf6684e&prod&scoped=true&lang=css
|
|
235830
|
+
var FileTreevue_type_style_index_0_id_adf6684e_prod_scoped_true_lang_css = __webpack_require__(4323);
|
|
235831
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/ZipViewer/FileTree.vue?vue&type=style&index=0&id=adf6684e&prod&scoped=true&lang=css
|
|
235832
|
+
|
|
235833
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/ZipViewer/FileTree.vue
|
|
235834
|
+
|
|
235835
|
+
|
|
235836
|
+
|
|
235837
|
+
;
|
|
235838
|
+
|
|
235839
|
+
|
|
235840
|
+
/* normalize component */
|
|
235841
|
+
|
|
235842
|
+
var FileTree_component = normalizeComponent(
|
|
235843
|
+
ZipViewer_FileTreevue_type_script_lang_js,
|
|
235844
|
+
FileTreevue_type_template_id_adf6684e_scoped_true_render,
|
|
235845
|
+
FileTreevue_type_template_id_adf6684e_scoped_true_staticRenderFns,
|
|
235846
|
+
false,
|
|
235847
|
+
null,
|
|
235848
|
+
"adf6684e",
|
|
235849
|
+
null
|
|
235850
|
+
|
|
235851
|
+
)
|
|
235852
|
+
|
|
235853
|
+
/* harmony default export */ var FileTree = (FileTree_component.exports);
|
|
235854
|
+
;// 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/ecyoa/yoabase/src/common/components/ZipViewer/index.vue?vue&type=script&lang=js
|
|
235855
|
+
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); }
|
|
235856
|
+
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; }
|
|
235857
|
+
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; }
|
|
235858
|
+
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; }
|
|
235859
|
+
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 + ""; }
|
|
235860
|
+
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); }
|
|
235861
|
+
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; }
|
|
235862
|
+
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); }
|
|
235863
|
+
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); }); }; }
|
|
235864
|
+
|
|
235865
|
+
/* harmony default export */ var ZipViewervue_type_script_lang_js = ({
|
|
235866
|
+
components: {
|
|
235867
|
+
FileTree: FileTree
|
|
235868
|
+
},
|
|
235869
|
+
props: {
|
|
235870
|
+
show: {
|
|
235871
|
+
type: Boolean,
|
|
235872
|
+
default: function _default() {
|
|
235873
|
+
return false;
|
|
235874
|
+
}
|
|
235875
|
+
},
|
|
235876
|
+
productCode: {
|
|
235877
|
+
type: String,
|
|
235878
|
+
default: function _default() {
|
|
235879
|
+
return '';
|
|
235880
|
+
}
|
|
235881
|
+
},
|
|
235882
|
+
// 直接传入attach就不用传attachId和attachName
|
|
235883
|
+
attach: {
|
|
235884
|
+
type: Object,
|
|
235885
|
+
default: null
|
|
235886
|
+
},
|
|
235887
|
+
// attachId,attachName的优先级高于attach
|
|
235888
|
+
attachId: {
|
|
235889
|
+
type: String,
|
|
235890
|
+
default: function _default() {
|
|
235891
|
+
return '';
|
|
235892
|
+
}
|
|
235893
|
+
},
|
|
235894
|
+
attachName: {
|
|
235895
|
+
type: String,
|
|
235896
|
+
default: function _default() {
|
|
235897
|
+
return '';
|
|
235898
|
+
}
|
|
235899
|
+
},
|
|
235900
|
+
onPreview: {
|
|
235901
|
+
type: Function,
|
|
235902
|
+
default: null
|
|
235903
|
+
},
|
|
235904
|
+
toPdf: {
|
|
235905
|
+
type: Boolean,
|
|
235906
|
+
default: true
|
|
235907
|
+
}
|
|
235908
|
+
},
|
|
235909
|
+
computed: {
|
|
235910
|
+
isShow: {
|
|
235911
|
+
get: function get() {
|
|
235912
|
+
return this.show;
|
|
235913
|
+
},
|
|
235914
|
+
set: function set(val) {
|
|
235915
|
+
this.$emit('update:show', val);
|
|
235916
|
+
}
|
|
235917
|
+
}
|
|
235918
|
+
},
|
|
235919
|
+
watch: {
|
|
235920
|
+
show: function show(val) {
|
|
235921
|
+
if (val) {
|
|
235922
|
+
this.init();
|
|
235923
|
+
}
|
|
235924
|
+
}
|
|
235925
|
+
},
|
|
235926
|
+
data: function data() {
|
|
235927
|
+
return {
|
|
235928
|
+
treeData: [],
|
|
235929
|
+
rootName: '根目录',
|
|
235930
|
+
loading: false
|
|
235931
|
+
};
|
|
235932
|
+
},
|
|
235933
|
+
methods: {
|
|
235934
|
+
init: function init() {
|
|
235935
|
+
var _this = this;
|
|
235936
|
+
return ZipViewervue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/ZipViewervue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
235937
|
+
var _this$getArg, attachId, attachName, _yield$_this$$http, body, code, message;
|
|
235938
|
+
return ZipViewervue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
235939
|
+
while (1) switch (_context.prev = _context.next) {
|
|
235940
|
+
case 0:
|
|
235941
|
+
// 调用接口请求fileUrl获取文件
|
|
235942
|
+
_this.loading = true;
|
|
235943
|
+
_this$getArg = _this.getArg(), attachId = _this$getArg.attachId, attachName = _this$getArg.attachName;
|
|
235944
|
+
_this.rootName = attachName;
|
|
235945
|
+
_context.next = 5;
|
|
235946
|
+
return _this.$http({
|
|
235947
|
+
method: 'get',
|
|
235948
|
+
url: "".concat(_this.productCode, "/webForm/findZipFileFolder?fileId=").concat(attachId)
|
|
235949
|
+
});
|
|
235950
|
+
case 5:
|
|
235951
|
+
_yield$_this$$http = _context.sent;
|
|
235952
|
+
body = _yield$_this$$http.body;
|
|
235953
|
+
code = _yield$_this$$http.code;
|
|
235954
|
+
message = _yield$_this$$http.message;
|
|
235955
|
+
if (!(code != 'success')) {
|
|
235956
|
+
_context.next = 12;
|
|
235957
|
+
break;
|
|
235958
|
+
}
|
|
235959
|
+
_this.$message.error(message);
|
|
235960
|
+
return _context.abrupt("return");
|
|
235961
|
+
case 12:
|
|
235962
|
+
body.folders.forEach(function (item) {
|
|
235963
|
+
item.id = item.fileId;
|
|
235964
|
+
});
|
|
235965
|
+
_this.treeData = _this.arrayToTree(body.folders);
|
|
235966
|
+
_this.loading = false;
|
|
235967
|
+
case 15:
|
|
235968
|
+
case "end":
|
|
235969
|
+
return _context.stop();
|
|
235970
|
+
}
|
|
235971
|
+
}, _callee);
|
|
235972
|
+
}))();
|
|
235973
|
+
},
|
|
235974
|
+
arrayToTree: function arrayToTree(list) {
|
|
235975
|
+
var map = {};
|
|
235976
|
+
var tree = [];
|
|
235977
|
+
list.forEach(function (item) {
|
|
235978
|
+
map[item.id] = ZipViewervue_type_script_lang_js_objectSpread(ZipViewervue_type_script_lang_js_objectSpread({}, item), {}, {
|
|
235979
|
+
children: []
|
|
235980
|
+
});
|
|
235981
|
+
});
|
|
235982
|
+
list.forEach(function (item) {
|
|
235983
|
+
var node = map[item.id];
|
|
235984
|
+
if (item.parentId && map[item.parentId]) {
|
|
235985
|
+
map[item.parentId].children.push(node);
|
|
235986
|
+
} else {
|
|
235987
|
+
tree.push(node);
|
|
235988
|
+
}
|
|
235989
|
+
});
|
|
235990
|
+
return tree;
|
|
235991
|
+
},
|
|
235992
|
+
preview: function preview(file) {
|
|
235993
|
+
var _this2 = this;
|
|
235994
|
+
return ZipViewervue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/ZipViewervue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
235995
|
+
var _this2$getArg, attachId, fileName, extension, downloadUrl, canToPdf, isImg, toPdf;
|
|
235996
|
+
return ZipViewervue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
235997
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
235998
|
+
case 0:
|
|
235999
|
+
if (!_this2.onPreview) {
|
|
236000
|
+
_context2.next = 3;
|
|
236001
|
+
break;
|
|
236002
|
+
}
|
|
236003
|
+
_this2.onPreview(file);
|
|
236004
|
+
return _context2.abrupt("return");
|
|
236005
|
+
case 3:
|
|
236006
|
+
_this2$getArg = _this2.getArg(), attachId = _this2$getArg.attachId;
|
|
236007
|
+
fileName = file.fileName;
|
|
236008
|
+
extension = fileName.split('.').pop();
|
|
236009
|
+
downloadUrl = "/apigw/".concat(_this2.productCode, "/webForm/downloadZipInnerFile?fileId=").concat(attachId, "&fullPath=").concat(file.fullId, "&csrfToken=").concat(window.$auth.getCsrfToken());
|
|
236010
|
+
canToPdf = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'wps', 'ofd', 'tif', 'tiff'];
|
|
236011
|
+
isImg = ['jpg', 'png', 'jpeg'];
|
|
236012
|
+
toPdf = false;
|
|
236013
|
+
if (canToPdf.includes(extension) && _this2.toPdf) {
|
|
236014
|
+
downloadUrl += '&topdf=true';
|
|
236015
|
+
toPdf = true;
|
|
236016
|
+
}
|
|
236017
|
+
if (toPdf || extension == 'pdf' || extension == 'pdfx') {
|
|
236018
|
+
downloadUrl += "&fileName=".concat(encodeURI(fileName));
|
|
236019
|
+
window.open('/plugins/PDFjs/web/viewer.html?file=' + encodeURIComponent(downloadUrl));
|
|
236020
|
+
} else if (extension == 'ofd') {
|
|
236021
|
+
downloadUrl += "&fileName=".concat(encodeURI(fileName));
|
|
236022
|
+
window.open('./plugins/OfdJs/view.html?file=' + encodeURIComponent(downloadUrl));
|
|
236023
|
+
} else if (isImg.includes(extension) && window.openImgView) {
|
|
236024
|
+
sessionStorage.setItem('IMG_VIEW_LIST_' + attachId, JSON.stringify([{
|
|
236025
|
+
downLoadPath: downloadUrl,
|
|
236026
|
+
index: 0
|
|
236027
|
+
}]));
|
|
236028
|
+
sessionStorage.setItem('IMG_INDEX_' + attachId, 0);
|
|
236029
|
+
window.open("#/imgView?busiDataId=".concat(attachId));
|
|
236030
|
+
} else {
|
|
236031
|
+
window.open(downloadUrl);
|
|
236032
|
+
}
|
|
236033
|
+
case 12:
|
|
236034
|
+
case "end":
|
|
236035
|
+
return _context2.stop();
|
|
236036
|
+
}
|
|
236037
|
+
}, _callee2);
|
|
236038
|
+
}))();
|
|
236039
|
+
},
|
|
236040
|
+
getArg: function getArg() {
|
|
236041
|
+
var attachId = '',
|
|
236042
|
+
attachName = '';
|
|
236043
|
+
if (this.attach) {
|
|
236044
|
+
attachId = this.attach.id;
|
|
236045
|
+
if (typeof this.attach.fileName == 'string') {
|
|
236046
|
+
var name = this.attach.fileName.split('.');
|
|
236047
|
+
name.pop();
|
|
236048
|
+
attachName = name.join('.');
|
|
236049
|
+
}
|
|
236050
|
+
}
|
|
236051
|
+
if (this.attachId) {
|
|
236052
|
+
attachId = this.attachId;
|
|
236053
|
+
}
|
|
236054
|
+
if (this.attachName) {
|
|
236055
|
+
attachName = this.attachName;
|
|
236056
|
+
}
|
|
236057
|
+
return {
|
|
236058
|
+
attachId: attachId,
|
|
236059
|
+
attachName: attachName
|
|
236060
|
+
};
|
|
236061
|
+
}
|
|
236062
|
+
}
|
|
236063
|
+
});
|
|
236064
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/ZipViewer/index.vue?vue&type=script&lang=js
|
|
236065
|
+
/* harmony default export */ var components_ZipViewervue_type_script_lang_js = (ZipViewervue_type_script_lang_js);
|
|
236066
|
+
// 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/ecyoa/yoabase/src/common/components/ZipViewer/index.vue?vue&type=style&index=0&id=c4f48a48&prod&lang=scss&scoped=true
|
|
236067
|
+
var ZipViewervue_type_style_index_0_id_c4f48a48_prod_lang_scss_scoped_true = __webpack_require__(9605);
|
|
236068
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/ZipViewer/index.vue?vue&type=style&index=0&id=c4f48a48&prod&lang=scss&scoped=true
|
|
236069
|
+
|
|
236070
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/ZipViewer/index.vue
|
|
236071
|
+
|
|
236072
|
+
|
|
236073
|
+
|
|
236074
|
+
;
|
|
236075
|
+
|
|
236076
|
+
|
|
236077
|
+
/* normalize component */
|
|
236078
|
+
|
|
236079
|
+
var ZipViewer_component = normalizeComponent(
|
|
236080
|
+
components_ZipViewervue_type_script_lang_js,
|
|
236081
|
+
ZipViewervue_type_template_id_c4f48a48_scoped_true_render,
|
|
236082
|
+
ZipViewervue_type_template_id_c4f48a48_scoped_true_staticRenderFns,
|
|
236083
|
+
false,
|
|
236084
|
+
null,
|
|
236085
|
+
"c4f48a48",
|
|
236086
|
+
null
|
|
236087
|
+
|
|
236088
|
+
)
|
|
236089
|
+
|
|
236090
|
+
/* harmony default export */ var ZipViewer = (ZipViewer_component.exports);
|
|
235583
236091
|
;// 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/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/AddCalendar.vue?vue&type=template&id=6d0a5f30&scoped=true
|
|
235584
236092
|
var AddCalendarvue_type_template_id_6d0a5f30_scoped_true_render = function render() {
|
|
235585
236093
|
var _vm = this,
|
|
@@ -243726,8 +244234,8 @@ var WformLayoutSetting_component = normalizeComponent(
|
|
|
243726
244234
|
)
|
|
243727
244235
|
|
|
243728
244236
|
/* harmony default export */ var WformLayoutSetting = (WformLayoutSetting_component.exports);
|
|
243729
|
-
;// 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/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=template&id=
|
|
243730
|
-
var
|
|
244237
|
+
;// 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/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=template&id=155cf786&scoped=true
|
|
244238
|
+
var newBusiFormvue_type_template_id_155cf786_scoped_true_render = function render() {
|
|
243731
244239
|
var _vm = this,
|
|
243732
244240
|
_c = _vm._self._c;
|
|
243733
244241
|
return _c('div', {
|
|
@@ -243883,7 +244391,7 @@ var newBusiFormvue_type_template_id_b1877438_scoped_true_render = function rende
|
|
|
243883
244391
|
name: "show",
|
|
243884
244392
|
rawName: "v-show",
|
|
243885
244393
|
value: _vm.canEdit === 0 && _vm.isEdit == 1,
|
|
243886
|
-
expression: "canEdit === 0&&isEdit==1"
|
|
244394
|
+
expression: "canEdit === 0 && isEdit == 1"
|
|
243887
244395
|
}, {
|
|
243888
244396
|
name: "pageBtn-lbl",
|
|
243889
244397
|
rawName: "v-pageBtn-lbl",
|
|
@@ -244046,7 +244554,7 @@ var newBusiFormvue_type_template_id_b1877438_scoped_true_render = function rende
|
|
|
244046
244554
|
}
|
|
244047
244555
|
})], 1)]) : _vm._e()]) : _vm._e(), _c('select-dialog')], 1);
|
|
244048
244556
|
};
|
|
244049
|
-
var
|
|
244557
|
+
var newBusiFormvue_type_template_id_155cf786_scoped_true_staticRenderFns = [];
|
|
244050
244558
|
|
|
244051
244559
|
// EXTERNAL MODULE: ./src/wapp/settings.js
|
|
244052
244560
|
var settings = __webpack_require__(3844);
|
|
@@ -244559,9 +245067,9 @@ var settings = __webpack_require__(3844);
|
|
|
244559
245067
|
});
|
|
244560
245068
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=script&lang=js
|
|
244561
245069
|
/* harmony default export */ var BasicformOpenPage_newBusiFormvue_type_script_lang_js = (newBusiFormvue_type_script_lang_js);
|
|
244562
|
-
// 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/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=
|
|
244563
|
-
var
|
|
244564
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=
|
|
245070
|
+
// 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/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=155cf786&prod&scoped=true&lang=scss
|
|
245071
|
+
var newBusiFormvue_type_style_index_0_id_155cf786_prod_scoped_true_lang_scss = __webpack_require__(1146);
|
|
245072
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=155cf786&prod&scoped=true&lang=scss
|
|
244565
245073
|
|
|
244566
245074
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue
|
|
244567
245075
|
|
|
@@ -244574,11 +245082,11 @@ var newBusiFormvue_type_style_index_0_id_b1877438_prod_scoped_true_lang_scss = _
|
|
|
244574
245082
|
|
|
244575
245083
|
var newBusiForm_component = normalizeComponent(
|
|
244576
245084
|
BasicformOpenPage_newBusiFormvue_type_script_lang_js,
|
|
244577
|
-
|
|
244578
|
-
|
|
245085
|
+
newBusiFormvue_type_template_id_155cf786_scoped_true_render,
|
|
245086
|
+
newBusiFormvue_type_template_id_155cf786_scoped_true_staticRenderFns,
|
|
244579
245087
|
false,
|
|
244580
245088
|
null,
|
|
244581
|
-
"
|
|
245089
|
+
"155cf786",
|
|
244582
245090
|
null
|
|
244583
245091
|
|
|
244584
245092
|
)
|
|
@@ -245023,6 +245531,7 @@ var PSAreaUser = platStatistics_exportor.PSAreaUser,
|
|
|
245023
245531
|
|
|
245024
245532
|
// common
|
|
245025
245533
|
|
|
245534
|
+
|
|
245026
245535
|
var CCApply = common_exportor.CCApply,
|
|
245027
245536
|
CCAreaSelect = common_exportor.CCAreaSelect,
|
|
245028
245537
|
CCToolAPI = common_exportor.CCToolAPI,
|
|
@@ -245271,7 +245780,8 @@ var yoabase_components = {
|
|
|
245271
245780
|
wfhandovernote: handovernote,
|
|
245272
245781
|
BasicformOpenPage: newBusiForm,
|
|
245273
245782
|
importProductConfig: importFile,
|
|
245274
|
-
WformLayoutSetting: WformLayoutSetting
|
|
245783
|
+
WformLayoutSetting: WformLayoutSetting,
|
|
245784
|
+
ZipViewer: ZipViewer
|
|
245275
245785
|
};
|
|
245276
245786
|
// 定义 install 方法
|
|
245277
245787
|
var yoabase_install = function install(Vue) {
|