ecinc-cloud-yoawjzx 9.7.3 → 9.7.5
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/lib/ecyoawjzx.common.js +449 -320
- package/lib/ecyoawjzx.umd.js +447 -318
- package/lib/ecyoawjzx.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecyoawjzx.common.js
CHANGED
|
@@ -254,7 +254,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-c7ad17d2] .el-table__empty-tex
|
|
|
254
254
|
|
|
255
255
|
/***/ }),
|
|
256
256
|
|
|
257
|
-
/***/
|
|
257
|
+
/***/ 3203:
|
|
258
258
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
259
259
|
|
|
260
260
|
"use strict";
|
|
@@ -268,14 +268,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
268
268
|
|
|
269
269
|
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()));
|
|
270
270
|
// Module
|
|
271
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".item.item1[data-v-
|
|
271
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".item.item1[data-v-197c69b2]{cursor:pointer}.block[data-v-197c69b2]{height:100%}.block .content[data-v-197c69b2]{-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.block .content[data-v-197c69b2],.block .content .item[data-v-197c69b2]{display:-webkit-box;display:-ms-flexbox;display:flex}.block .content .item[data-v-197c69b2]{height:80px;-webkit-box-flex:0;-ms-flex:0 0 33%;flex:0 0 33%;border-bottom:1px solid #ebeef5;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.block .content .item .one_item_left[data-v-197c69b2]{margin-right:10px;line-height:85px;text-align:right}.block .content .item .one_item_right[data-v-197c69b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-top:20px}.block .content .item .one_item_right .top[data-v-197c69b2]{font-size:18px;color:#333}.block .content .item .one_item_right .bottom[data-v-197c69b2]{margin-top:3px;font-size:var(--portalFontSize12);color:#999}.block .content .item1[data-v-197c69b2],.block .content .item3[data-v-197c69b2]{border-right:1px solid #ebeef5}.block .progress[data-v-197c69b2]{margin:0 20px}.block .progress[data-v-197c69b2] .el-progress-bar{padding:0}.block .progress div[data-v-197c69b2]{font-size:var(--portalFontSize12);color:#999;margin-top:20px}.block .progress .btn[data-v-197c69b2]{background:var(--subjectColor);margin-top:20px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:4px}[data-v-197c69b2] .el-upload.el-upload--text{width:100%!important}[data-v-197c69b2] .el-progress{margin:20px auto}", ""]);
|
|
272
272
|
// Exports
|
|
273
273
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
/***/ }),
|
|
277
277
|
|
|
278
|
-
/***/
|
|
278
|
+
/***/ 3516:
|
|
279
279
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
280
280
|
|
|
281
281
|
"use strict";
|
|
@@ -289,7 +289,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289
289
|
|
|
290
290
|
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()));
|
|
291
291
|
// Module
|
|
292
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
292
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-5be3a749] .el-table__empty-text{line-height:10px}[data-v-5be3a749] .el-table .el-table__row{cursor:pointer}.block[data-v-5be3a749]{width:100%;height:100%}.block .header[data-v-5be3a749]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:17px;border-bottom:1px solid #e4e4e4}.block .header[data-v-5be3a749],.block .header .header_right[data-v-5be3a749]{display:-webkit-box;display:-ms-flexbox;display:flex}.block .header .header_right .switch[data-v-5be3a749]{margin-right:10px;cursor:pointer}.block .header .header_right .active[data-v-5be3a749]{color:var(--subjectColor)}.tabBox[data-v-5be3a749]{overflow:auto;overflow-x:hidden}.tabBox[data-v-5be3a749]::-webkit-scrollbar{background-color:#f5f5f5;width:4px}.tabBox[data-v-5be3a749]::-webkit-scrollbar-thumb{background-color:#d2d4da;border-radius:6px}.tabBox[data-v-5be3a749]::-webkit-scrollbar-thumb:hover{background-color:#d2d4da}[data-v-5be3a749] .el-table__body-wrapper::-webkit-scrollbar{width:4px}[data-v-5be3a749] .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.2)}[data-v-5be3a749] .el-table__body-wrapper::-webkit-scrollbar-track{border-radius:0}[data-v-5be3a749] .el-table th.el-table__cell>.cell{padding-left:20px!important}[data-v-5be3a749] .el-table--medium .el-table__cell{padding:0!important}[data-v-5be3a749] .has-gutter tr th{background-color:#fff!important}[data-v-5be3a749] .el-table:before{background-color:#fff;border-bottom:1px solid #ebeef5!important}[data-v-5be3a749] .el-table--border:after{background-color:#fff;border:none!important}[data-v-5be3a749] .el-table--border{background-color:#fff!important;border-left:none!important;border-color:#fff!important}.file-content[data-v-5be3a749]{width:7%;margin:2%;cursor:pointer;text-align:center}.file-content[data-v-5be3a749]:hover{background:#f5f7fa;border-radius:8px}.file-text[data-v-5be3a749]{margin-top:10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.svg-scroll[data-v-5be3a749]{overflow-y:scroll;overflow-x:hidden}.svg-scroll[data-v-5be3a749]::-webkit-scrollbar{width:4px}.svg-scroll[data-v-5be3a749]::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.2)}.svg-scroll[data-v-5be3a749]::-webkit-scrollbar-track{border-radius:0}.tabs[data-v-5be3a749]{display:-webkit-box;display:-ms-flexbox;display:flex}.tab[data-v-5be3a749]{margin:0 15px;cursor:pointer}.tab.active[data-v-5be3a749]{color:var(--subjectColor)}.search-input[data-v-5be3a749]{font-size:var(--portalFontSize13);width:170px;float:left;margin-right:5px}.search-input[data-v-5be3a749] .el-input__inner{padding:0 10px}.search-input[data-v-5be3a749] .el-input-group__append{padding:0 10px;font-size:var(--portalFontSize12);background:#f3f4f4}.search-input[data-v-5be3a749] .el-input-group__append .search-icon{width:12px;height:12px}", ""]);
|
|
293
293
|
// Exports
|
|
294
294
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
295
295
|
|
|
@@ -422,7 +422,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-table__body.el-table__body-no[data
|
|
|
422
422
|
|
|
423
423
|
/***/ }),
|
|
424
424
|
|
|
425
|
-
/***/
|
|
425
|
+
/***/ 9299:
|
|
426
426
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
427
427
|
|
|
428
428
|
"use strict";
|
|
@@ -436,7 +436,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
436
436
|
|
|
437
437
|
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()));
|
|
438
438
|
// Module
|
|
439
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
439
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-2205a8a3]:export{stdMenuBgcolor:var(--lmBgColor);stdMenuHover:var(--lmBgColorActive)!important;stdMenuText:var(--lmTextColor)!important;stdMenuAcitveText:var(--lmTextColorActive)!important;stdSubMenuBgcolor:var(--lmBgColor);stdSubMenuHover:hsla(193,8%,67%,.42);stdSubMenuActiveText:var(--lmTextColorActive)!important;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:var(--subjectColor)}.el-col-14[data-v-2205a8a3]{z-index:-1}[data-v-2205a8a3] .el-upload--text{width:100%}.tdw17[data-v-2205a8a3]{width:20%!important}.svg_stile[data-v-2205a8a3]{width:13px;height:13px;position:relative;top:2px;margin:0 5px 0 0}.buttonTitle[data-v-2205a8a3]{display:-webkit-box;display:-ms-flexbox;display:flex;height:32px}.app-breadcrumb.el-breadcrumb[data-v-2205a8a3]{display:inline-block;font-size:var(--portalFontSize14);line-height:40px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-2205a8a3]{color:#909399;cursor:text}.app-breadcrumb.el-breadcrumb[data-v-2205a8a3] .el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}[data-v-2205a8a3] .el-table-toolbar .el-row{line-height:30px}[data-v-2205a8a3] .el-progress{margin:20px auto}", ""]);
|
|
440
440
|
// Exports
|
|
441
441
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
442
442
|
|
|
@@ -527,7 +527,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".rowbg[data-v-40b93a43]{height:35px;-w
|
|
|
527
527
|
|
|
528
528
|
/***/ }),
|
|
529
529
|
|
|
530
|
-
/***/
|
|
530
|
+
/***/ 5528:
|
|
531
531
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
532
532
|
|
|
533
533
|
"use strict";
|
|
@@ -22256,35 +22256,35 @@ var update = add("583b8219", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
22256
22256
|
|
|
22257
22257
|
/***/ }),
|
|
22258
22258
|
|
|
22259
|
-
/***/
|
|
22259
|
+
/***/ 4189:
|
|
22260
22260
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22261
22261
|
|
|
22262
22262
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22263
22263
|
|
|
22264
22264
|
// load the styles
|
|
22265
|
-
var content = __webpack_require__(
|
|
22265
|
+
var content = __webpack_require__(3203);
|
|
22266
22266
|
if(content.__esModule) content = content.default;
|
|
22267
22267
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22268
22268
|
if(content.locals) module.exports = content.locals;
|
|
22269
22269
|
// add the styles to the DOM
|
|
22270
22270
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22271
|
-
var update = add("
|
|
22271
|
+
var update = add("7a445157", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22272
22272
|
|
|
22273
22273
|
/***/ }),
|
|
22274
22274
|
|
|
22275
|
-
/***/
|
|
22275
|
+
/***/ 2381:
|
|
22276
22276
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22277
22277
|
|
|
22278
22278
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22279
22279
|
|
|
22280
22280
|
// load the styles
|
|
22281
|
-
var content = __webpack_require__(
|
|
22281
|
+
var content = __webpack_require__(3516);
|
|
22282
22282
|
if(content.__esModule) content = content.default;
|
|
22283
22283
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22284
22284
|
if(content.locals) module.exports = content.locals;
|
|
22285
22285
|
// add the styles to the DOM
|
|
22286
22286
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22287
|
-
var update = add("
|
|
22287
|
+
var update = add("5275a334", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22288
22288
|
|
|
22289
22289
|
/***/ }),
|
|
22290
22290
|
|
|
@@ -22384,19 +22384,19 @@ var update = add("3c9d3609", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
22384
22384
|
|
|
22385
22385
|
/***/ }),
|
|
22386
22386
|
|
|
22387
|
-
/***/
|
|
22387
|
+
/***/ 3609:
|
|
22388
22388
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22389
22389
|
|
|
22390
22390
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22391
22391
|
|
|
22392
22392
|
// load the styles
|
|
22393
|
-
var content = __webpack_require__(
|
|
22393
|
+
var content = __webpack_require__(9299);
|
|
22394
22394
|
if(content.__esModule) content = content.default;
|
|
22395
22395
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22396
22396
|
if(content.locals) module.exports = content.locals;
|
|
22397
22397
|
// add the styles to the DOM
|
|
22398
22398
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22399
|
-
var update = add("
|
|
22399
|
+
var update = add("504780a8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22400
22400
|
|
|
22401
22401
|
/***/ }),
|
|
22402
22402
|
|
|
@@ -22470,7 +22470,7 @@ var update = add("30a8533c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
22470
22470
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22471
22471
|
|
|
22472
22472
|
// load the styles
|
|
22473
|
-
var content = __webpack_require__(
|
|
22473
|
+
var content = __webpack_require__(5528);
|
|
22474
22474
|
if(content.__esModule) content = content.default;
|
|
22475
22475
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22476
22476
|
if(content.locals) module.exports = content.locals;
|
|
@@ -25251,8 +25251,8 @@ var FileList_component = normalizeComponent(
|
|
|
25251
25251
|
)
|
|
25252
25252
|
|
|
25253
25253
|
/* harmony default export */ var FileList = (FileList_component.exports);
|
|
25254
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/wjzx/src/index/components/MyFilesInfo.vue?vue&type=template&id=
|
|
25255
|
-
var
|
|
25254
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/wjzx/src/index/components/MyFilesInfo.vue?vue&type=template&id=197c69b2&scoped=true
|
|
25255
|
+
var MyFilesInfovue_type_template_id_197c69b2_scoped_true_render = function render() {
|
|
25256
25256
|
var _vm = this,
|
|
25257
25257
|
_c = _vm._self._c;
|
|
25258
25258
|
return _c('div', {
|
|
@@ -25563,7 +25563,14 @@ var MyFilesInfovue_type_template_id_69c45cc2_scoped_true_render = function rende
|
|
|
25563
25563
|
})], 1)], 1)], 1)];
|
|
25564
25564
|
}
|
|
25565
25565
|
}], null, false, 3358109136)
|
|
25566
|
-
})], 1)])
|
|
25566
|
+
})], 1)]), _vm.maxFileSize ? _c('tr', [_c('td', {
|
|
25567
|
+
staticClass: "el-table__cell tdlbl tdw17"
|
|
25568
|
+
}, [_vm._v("备注")]), _c('td', {
|
|
25569
|
+
staticClass: "el-table__cell tdcont tdw83",
|
|
25570
|
+
staticStyle: {
|
|
25571
|
+
"text-align": "left"
|
|
25572
|
+
}
|
|
25573
|
+
}, [_vm._v("说明:上传文件大小不能超过" + _vm._s(_vm.maxFileSize) + "M")])]) : _vm._e()])])])])]), _c('span', {
|
|
25567
25574
|
staticClass: "dialog-footer",
|
|
25568
25575
|
attrs: {
|
|
25569
25576
|
"slot": "footer"
|
|
@@ -25613,7 +25620,7 @@ var MyFilesInfovue_type_template_id_69c45cc2_scoped_true_render = function rende
|
|
|
25613
25620
|
}
|
|
25614
25621
|
})], 1) : _vm._e()], 1);
|
|
25615
25622
|
};
|
|
25616
|
-
var
|
|
25623
|
+
var MyFilesInfovue_type_template_id_197c69b2_scoped_true_staticRenderFns = [];
|
|
25617
25624
|
|
|
25618
25625
|
;// CONCATENATED MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
25619
25626
|
/*!
|
|
@@ -26836,7 +26843,9 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
26836
26843
|
treeData: [],
|
|
26837
26844
|
used: '',
|
|
26838
26845
|
// 已用容量
|
|
26839
|
-
total: ''
|
|
26846
|
+
total: '',
|
|
26847
|
+
// 总容量
|
|
26848
|
+
maxFileSize: '' // 上传文件大小限制(M)
|
|
26840
26849
|
};
|
|
26841
26850
|
},
|
|
26842
26851
|
computed: MyFilesInfovue_type_script_lang_js_objectSpread({}, mapGetters(['routes'])),
|
|
@@ -26858,10 +26867,36 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
26858
26867
|
this.listDataNum();
|
|
26859
26868
|
this.usedStorage();
|
|
26860
26869
|
this.queryData();
|
|
26870
|
+
this.getMaxFileSize();
|
|
26861
26871
|
},
|
|
26862
26872
|
beforeDestroy: function beforeDestroy() {},
|
|
26863
26873
|
mounted: function mounted() {},
|
|
26864
26874
|
methods: {
|
|
26875
|
+
// 获取上传文件大小限制参数(M)
|
|
26876
|
+
getMaxFileSize: function getMaxFileSize() {
|
|
26877
|
+
var _this2 = this;
|
|
26878
|
+
var data = [{
|
|
26879
|
+
compare: '=',
|
|
26880
|
+
field: 'orgCode',
|
|
26881
|
+
merge: true,
|
|
26882
|
+
value: this.loginUser.orgCode
|
|
26883
|
+
}, {
|
|
26884
|
+
compare: '=',
|
|
26885
|
+
field: 'paramName',
|
|
26886
|
+
merge: true,
|
|
26887
|
+
value: 'fileCenter.upload.maxFileSize'
|
|
26888
|
+
}];
|
|
26889
|
+
this.$http({
|
|
26890
|
+
method: 'POST',
|
|
26891
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
26892
|
+
data: data,
|
|
26893
|
+
url: 'base/paramConfig/querydata'
|
|
26894
|
+
}).then(function (res) {
|
|
26895
|
+
if (res.code === 'success' && res.body.listdata.length > 0) {
|
|
26896
|
+
_this2.maxFileSize = res.body.listdata[0].paramValue;
|
|
26897
|
+
}
|
|
26898
|
+
});
|
|
26899
|
+
},
|
|
26865
26900
|
gotoUrl: function gotoUrl(val) {
|
|
26866
26901
|
var toPath = this.getMenuCode('wjzx_wjgl');
|
|
26867
26902
|
if (toPath && toPath.path) {
|
|
@@ -26917,14 +26952,14 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
26917
26952
|
}
|
|
26918
26953
|
},
|
|
26919
26954
|
selectUploadId: function selectUploadId(value) {
|
|
26920
|
-
var
|
|
26955
|
+
var _this3 = this;
|
|
26921
26956
|
this.uploadVo.folderId = value[value.length - 1];
|
|
26922
26957
|
this.uploadVo.busiDataId = value[value.length - 1];
|
|
26923
26958
|
this.treeDataList.forEach(function (item) {
|
|
26924
|
-
if (item.id ===
|
|
26959
|
+
if (item.id === _this3.uploadVo.folderId) {
|
|
26925
26960
|
// this.uploadVo.fullName = item.folderName
|
|
26926
|
-
|
|
26927
|
-
|
|
26961
|
+
_this3.uploadVo.deptId = item.deptId;
|
|
26962
|
+
_this3.uploadVo.deptName = item.deptName;
|
|
26928
26963
|
}
|
|
26929
26964
|
});
|
|
26930
26965
|
if (this.uploadVo.folderId === '1') {
|
|
@@ -26934,66 +26969,66 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
26934
26969
|
},
|
|
26935
26970
|
// 统计数据
|
|
26936
26971
|
listDataNum: function listDataNum() {
|
|
26937
|
-
var
|
|
26972
|
+
var _this4 = this;
|
|
26938
26973
|
return MyFilesInfovue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/MyFilesInfovue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
26939
26974
|
var list;
|
|
26940
26975
|
return MyFilesInfovue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26941
26976
|
while (1) switch (_context.prev = _context.next) {
|
|
26942
26977
|
case 0:
|
|
26943
|
-
if (!(
|
|
26978
|
+
if (!(_this4.appletData.interfaceStatus === 0 || window.openInterface)) {
|
|
26944
26979
|
_context.next = 12;
|
|
26945
26980
|
break;
|
|
26946
26981
|
}
|
|
26947
26982
|
_context.next = 3;
|
|
26948
|
-
return
|
|
26983
|
+
return _this4.$getDefaultData(_this4, _this4.appletData.id);
|
|
26949
26984
|
case 3:
|
|
26950
26985
|
list = _context.sent;
|
|
26951
|
-
if (!(
|
|
26986
|
+
if (!(_this4.appletData.name === '我的文件')) {
|
|
26952
26987
|
_context.next = 12;
|
|
26953
26988
|
break;
|
|
26954
26989
|
}
|
|
26955
|
-
|
|
26956
|
-
|
|
26957
|
-
|
|
26958
|
-
|
|
26959
|
-
|
|
26960
|
-
|
|
26990
|
+
_this4.totalCount = list.totalCount;
|
|
26991
|
+
_this4.docCount = list.docCount;
|
|
26992
|
+
_this4.picCount = list.picCount;
|
|
26993
|
+
_this4.videoCount = list.videoCount;
|
|
26994
|
+
_this4.zipCount = list.zipCount;
|
|
26995
|
+
_this4.otherCount = list.otherCount;
|
|
26961
26996
|
return _context.abrupt("return");
|
|
26962
26997
|
case 12:
|
|
26963
|
-
|
|
26998
|
+
_this4.$http({
|
|
26964
26999
|
method: 'get',
|
|
26965
27000
|
url: '/disk/file/queryAllFileTypeNum'
|
|
26966
27001
|
}).then(function (res) {
|
|
26967
27002
|
if (res.code === 'success') {
|
|
26968
27003
|
if (res.body.number.totalCount >= 99) {
|
|
26969
|
-
|
|
27004
|
+
_this4.totalCount = '99+';
|
|
26970
27005
|
} else {
|
|
26971
|
-
|
|
27006
|
+
_this4.totalCount = res.body.number.totalCount;
|
|
26972
27007
|
}
|
|
26973
27008
|
if (res.body.number.docCount >= 99) {
|
|
26974
|
-
|
|
27009
|
+
_this4.docCount = '99+';
|
|
26975
27010
|
} else {
|
|
26976
|
-
|
|
27011
|
+
_this4.docCount = res.body.number.docCount;
|
|
26977
27012
|
}
|
|
26978
27013
|
if (res.body.number.picCount >= 99) {
|
|
26979
|
-
|
|
27014
|
+
_this4.picCount = '99+';
|
|
26980
27015
|
} else {
|
|
26981
|
-
|
|
27016
|
+
_this4.picCount = res.body.number.picCount;
|
|
26982
27017
|
}
|
|
26983
27018
|
if (res.body.number.videoCount >= 99) {
|
|
26984
|
-
|
|
27019
|
+
_this4.videoCount = '99+';
|
|
26985
27020
|
} else {
|
|
26986
|
-
|
|
27021
|
+
_this4.videoCount = res.body.number.videoCount;
|
|
26987
27022
|
}
|
|
26988
27023
|
if (res.body.number.zipCount >= 99) {
|
|
26989
|
-
|
|
27024
|
+
_this4.zipCount = '99+';
|
|
26990
27025
|
} else {
|
|
26991
|
-
|
|
27026
|
+
_this4.zipCount = res.body.number.zipCount;
|
|
26992
27027
|
}
|
|
26993
27028
|
if (res.body.number.otherCount >= 99) {
|
|
26994
|
-
|
|
27029
|
+
_this4.otherCount = '99+';
|
|
26995
27030
|
} else {
|
|
26996
|
-
|
|
27031
|
+
_this4.otherCount = res.body.number.otherCount;
|
|
26997
27032
|
}
|
|
26998
27033
|
}
|
|
26999
27034
|
});
|
|
@@ -27016,52 +27051,52 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27016
27051
|
return '';
|
|
27017
27052
|
},
|
|
27018
27053
|
getAccountId: function getAccountId() {
|
|
27019
|
-
var
|
|
27054
|
+
var _this5 = this;
|
|
27020
27055
|
return new Promise(function (resolve) {
|
|
27021
27056
|
var accountId = '';
|
|
27022
|
-
|
|
27057
|
+
_this5.$http({
|
|
27023
27058
|
method: 'get',
|
|
27024
27059
|
url: '/disk/account/getByPersonId',
|
|
27025
27060
|
params: {
|
|
27026
|
-
personId:
|
|
27061
|
+
personId: _this5.loginUser.personId
|
|
27027
27062
|
}
|
|
27028
27063
|
}).then(function (res) {
|
|
27029
27064
|
if (res.code === 'success') {
|
|
27030
27065
|
accountId = res.body.accountId;
|
|
27031
27066
|
resolve(accountId);
|
|
27032
27067
|
} else {
|
|
27033
|
-
|
|
27068
|
+
_this5.$message.error(res.message);
|
|
27034
27069
|
}
|
|
27035
27070
|
});
|
|
27036
27071
|
});
|
|
27037
27072
|
},
|
|
27038
27073
|
usedStorage: function usedStorage() {
|
|
27039
|
-
var
|
|
27074
|
+
var _this6 = this;
|
|
27040
27075
|
return MyFilesInfovue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/MyFilesInfovue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
27041
27076
|
var list, _this;
|
|
27042
27077
|
return MyFilesInfovue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27043
27078
|
while (1) switch (_context2.prev = _context2.next) {
|
|
27044
27079
|
case 0:
|
|
27045
|
-
if (!(
|
|
27080
|
+
if (!(_this6.appletData.interfaceStatus === 0 || window.openInterface)) {
|
|
27046
27081
|
_context2.next = 9;
|
|
27047
27082
|
break;
|
|
27048
27083
|
}
|
|
27049
27084
|
_context2.next = 3;
|
|
27050
|
-
return
|
|
27085
|
+
return _this6.$getDefaultData(_this6, _this6.appletData.id);
|
|
27051
27086
|
case 3:
|
|
27052
27087
|
list = _context2.sent;
|
|
27053
|
-
if (!(
|
|
27088
|
+
if (!(_this6.appletData.name === '我的文件')) {
|
|
27054
27089
|
_context2.next = 9;
|
|
27055
27090
|
break;
|
|
27056
27091
|
}
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27092
|
+
_this6.used = list.used;
|
|
27093
|
+
_this6.total = list.total;
|
|
27094
|
+
_this6.percentage = list.percentage;
|
|
27060
27095
|
return _context2.abrupt("return");
|
|
27061
27096
|
case 9:
|
|
27062
|
-
_this =
|
|
27063
|
-
|
|
27064
|
-
|
|
27097
|
+
_this = _this6;
|
|
27098
|
+
_this6.getAccountId().then(function (accountId) {
|
|
27099
|
+
_this6.$http({
|
|
27065
27100
|
method: 'get',
|
|
27066
27101
|
url: '/disk/account/getById',
|
|
27067
27102
|
params: {
|
|
@@ -27108,7 +27143,7 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27108
27143
|
this.dialogFormVisibleFolder = true;
|
|
27109
27144
|
},
|
|
27110
27145
|
queryData: function queryData() {
|
|
27111
|
-
var
|
|
27146
|
+
var _this7 = this;
|
|
27112
27147
|
// 加载类型节点数据
|
|
27113
27148
|
this.$http({
|
|
27114
27149
|
method: 'POST',
|
|
@@ -27130,14 +27165,14 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27130
27165
|
node.parentId = '1';
|
|
27131
27166
|
}
|
|
27132
27167
|
});
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27138
|
-
|
|
27168
|
+
_this7.root.zjfile[0].id = '1';
|
|
27169
|
+
_this7.root.zjfile[0].pId = '0';
|
|
27170
|
+
_this7.root.zjfile[0].value = '1';
|
|
27171
|
+
_this7.root.zjfile[0].parentId = '0';
|
|
27172
|
+
_this7.treeData = _this7.treeDataAdapter(_this7.root.zjfile.concat(res.body.diskFolders));
|
|
27173
|
+
_this7.treeDataList = _this7.root.zjfile.concat(res.body.diskFolders);
|
|
27139
27174
|
} else {
|
|
27140
|
-
|
|
27175
|
+
_this7.$alert(res.message, '操作提示', {
|
|
27141
27176
|
type: 'error'
|
|
27142
27177
|
});
|
|
27143
27178
|
}
|
|
@@ -27158,11 +27193,11 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27158
27193
|
return tree;
|
|
27159
27194
|
},
|
|
27160
27195
|
buildTree: function buildTree(data, parentId) {
|
|
27161
|
-
var
|
|
27196
|
+
var _this8 = this;
|
|
27162
27197
|
var tree = [];
|
|
27163
27198
|
data.forEach(function (node) {
|
|
27164
27199
|
if (node.pId === parentId) {
|
|
27165
|
-
var children =
|
|
27200
|
+
var children = _this8.buildTree(data, node.value);
|
|
27166
27201
|
if (children.length > 0) {
|
|
27167
27202
|
node.children = children;
|
|
27168
27203
|
}
|
|
@@ -27173,8 +27208,21 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27173
27208
|
},
|
|
27174
27209
|
// 文件上传成功回调
|
|
27175
27210
|
handleUploadChange: function handleUploadChange(file, fileList) {
|
|
27211
|
+
var validList = fileList;
|
|
27212
|
+
if (this.maxFileSize) {
|
|
27213
|
+
var limit = Number(this.maxFileSize) * 1024 * 1024;
|
|
27214
|
+
var overFiles = fileList.filter(function (res) {
|
|
27215
|
+
return res.raw && res.raw.size > limit;
|
|
27216
|
+
});
|
|
27217
|
+
if (overFiles.length > 0) {
|
|
27218
|
+
validList = fileList.filter(function (res) {
|
|
27219
|
+
return overFiles.indexOf(res) === -1;
|
|
27220
|
+
});
|
|
27221
|
+
this.$message.error('文件' + overFiles[0].name + '超过上传大小限制' + this.maxFileSize + 'M,禁止上传');
|
|
27222
|
+
}
|
|
27223
|
+
}
|
|
27176
27224
|
var name = '';
|
|
27177
|
-
|
|
27225
|
+
validList.forEach(function (res) {
|
|
27178
27226
|
if (name) {
|
|
27179
27227
|
name += ',' + res.name;
|
|
27180
27228
|
} else {
|
|
@@ -27182,39 +27230,53 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27182
27230
|
}
|
|
27183
27231
|
});
|
|
27184
27232
|
this.uploadVo.attachFileName = name;
|
|
27185
|
-
this.uploadVo.attach =
|
|
27233
|
+
this.uploadVo.attach = validList;
|
|
27186
27234
|
// console.log(this.uploadVo.attach, fileList, '阿萨')
|
|
27187
27235
|
},
|
|
27188
27236
|
// 上传文件保存
|
|
27189
27237
|
groupingConfirmFolder: function groupingConfirmFolder() {
|
|
27190
|
-
var
|
|
27238
|
+
var _this9 = this;
|
|
27191
27239
|
var _this = this;
|
|
27192
27240
|
this.formValidate( /*#__PURE__*/MyFilesInfovue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/MyFilesInfovue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
27193
|
-
var _loop, index;
|
|
27241
|
+
var limit, overFile, _loop, index;
|
|
27194
27242
|
return MyFilesInfovue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context4) {
|
|
27195
27243
|
while (1) switch (_context4.prev = _context4.next) {
|
|
27196
27244
|
case 0:
|
|
27197
|
-
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
27245
|
+
if (!_this9.maxFileSize) {
|
|
27246
|
+
_context4.next = 6;
|
|
27247
|
+
break;
|
|
27248
|
+
}
|
|
27249
|
+
limit = Number(_this9.maxFileSize) * 1024 * 1024;
|
|
27250
|
+
overFile = _this.uploadVo.attach.find(function (res) {
|
|
27251
|
+
return res.raw && res.raw.size > limit;
|
|
27252
|
+
});
|
|
27253
|
+
if (!overFile) {
|
|
27254
|
+
_context4.next = 6;
|
|
27255
|
+
break;
|
|
27256
|
+
}
|
|
27257
|
+
_this9.$alert('文件' + overFile.name + '超过上传大小限制' + _this9.maxFileSize + 'M,禁止上传', '操作提示', {
|
|
27258
|
+
type: 'warning'
|
|
27259
|
+
});
|
|
27260
|
+
return _context4.abrupt("return");
|
|
27261
|
+
case 6:
|
|
27262
|
+
_this9.updateLoading = true;
|
|
27201
27263
|
_loop = /*#__PURE__*/MyFilesInfovue_type_script_lang_js_regeneratorRuntime().mark(function _loop(index) {
|
|
27202
27264
|
var element;
|
|
27203
27265
|
return MyFilesInfovue_type_script_lang_js_regeneratorRuntime().wrap(function _loop$(_context3) {
|
|
27204
27266
|
while (1) switch (_context3.prev = _context3.next) {
|
|
27205
27267
|
case 0:
|
|
27206
27268
|
element = _this.uploadVo.attach[index];
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
|
|
27269
|
+
_this9.uploadVo.progress = 0;
|
|
27270
|
+
_this9.uploadVo.uploadingFile = element.name;
|
|
27271
|
+
_this9.uploadFile(element, index).then(function (res) {
|
|
27210
27272
|
if (res.code !== 'success') {
|
|
27211
|
-
|
|
27273
|
+
_this9.$message.error(res.message);
|
|
27212
27274
|
return;
|
|
27213
27275
|
}
|
|
27214
|
-
if (index ===
|
|
27215
|
-
|
|
27216
|
-
|
|
27217
|
-
|
|
27276
|
+
if (index === _this9.uploadVo.attach.length - 1) {
|
|
27277
|
+
_this9.updateLoading = false;
|
|
27278
|
+
_this9.dialogFormVisibleFolder = false;
|
|
27279
|
+
_this9.listDataNum();
|
|
27218
27280
|
}
|
|
27219
27281
|
});
|
|
27220
27282
|
case 4:
|
|
@@ -27224,17 +27286,17 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27224
27286
|
}, _loop);
|
|
27225
27287
|
});
|
|
27226
27288
|
index = 0;
|
|
27227
|
-
case
|
|
27289
|
+
case 9:
|
|
27228
27290
|
if (!(index < _this.uploadVo.attach.length)) {
|
|
27229
|
-
_context4.next =
|
|
27291
|
+
_context4.next = 14;
|
|
27230
27292
|
break;
|
|
27231
27293
|
}
|
|
27232
|
-
return _context4.delegateYield(_loop(index), "t0",
|
|
27233
|
-
case
|
|
27294
|
+
return _context4.delegateYield(_loop(index), "t0", 11);
|
|
27295
|
+
case 11:
|
|
27234
27296
|
index++;
|
|
27235
|
-
_context4.next =
|
|
27297
|
+
_context4.next = 9;
|
|
27236
27298
|
break;
|
|
27237
|
-
case
|
|
27299
|
+
case 14:
|
|
27238
27300
|
case "end":
|
|
27239
27301
|
return _context4.stop();
|
|
27240
27302
|
}
|
|
@@ -27257,7 +27319,7 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27257
27319
|
},
|
|
27258
27320
|
// 上传文件接口
|
|
27259
27321
|
uploadFile: function uploadFile(item, index) {
|
|
27260
|
-
var
|
|
27322
|
+
var _this10 = this;
|
|
27261
27323
|
var files = item.raw;
|
|
27262
27324
|
var fd = new FormData();
|
|
27263
27325
|
fd.append('file', files);
|
|
@@ -27275,8 +27337,8 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27275
27337
|
var config = {
|
|
27276
27338
|
onUploadProgress: function onUploadProgress(progressEvent) {
|
|
27277
27339
|
var complete = progressEvent.loaded / progressEvent.total * 100 | 0;
|
|
27278
|
-
|
|
27279
|
-
|
|
27340
|
+
_this10.uploadVo.progress = complete;
|
|
27341
|
+
_this10.$forceUpdate();
|
|
27280
27342
|
},
|
|
27281
27343
|
timeout: 30 * 60 * 1000 //超时时长,30分钟
|
|
27282
27344
|
};
|
|
@@ -27292,9 +27354,9 @@ function MyFilesInfovue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
27292
27354
|
});
|
|
27293
27355
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/MyFilesInfo.vue?vue&type=script&lang=js
|
|
27294
27356
|
/* harmony default export */ var components_MyFilesInfovue_type_script_lang_js = (MyFilesInfovue_type_script_lang_js);
|
|
27295
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/index/components/MyFilesInfo.vue?vue&type=style&index=0&id=
|
|
27296
|
-
var
|
|
27297
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/MyFilesInfo.vue?vue&type=style&index=0&id=
|
|
27357
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/index/components/MyFilesInfo.vue?vue&type=style&index=0&id=197c69b2&prod&scoped=true&lang=scss
|
|
27358
|
+
var MyFilesInfovue_type_style_index_0_id_197c69b2_prod_scoped_true_lang_scss = __webpack_require__(4189);
|
|
27359
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/MyFilesInfo.vue?vue&type=style&index=0&id=197c69b2&prod&scoped=true&lang=scss
|
|
27298
27360
|
|
|
27299
27361
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/MyFilesInfo.vue
|
|
27300
27362
|
|
|
@@ -27307,18 +27369,18 @@ var MyFilesInfovue_type_style_index_0_id_69c45cc2_prod_scoped_true_lang_scss = _
|
|
|
27307
27369
|
|
|
27308
27370
|
var MyFilesInfo_component = normalizeComponent(
|
|
27309
27371
|
components_MyFilesInfovue_type_script_lang_js,
|
|
27310
|
-
|
|
27311
|
-
|
|
27372
|
+
MyFilesInfovue_type_template_id_197c69b2_scoped_true_render,
|
|
27373
|
+
MyFilesInfovue_type_template_id_197c69b2_scoped_true_staticRenderFns,
|
|
27312
27374
|
false,
|
|
27313
27375
|
null,
|
|
27314
|
-
"
|
|
27376
|
+
"197c69b2",
|
|
27315
27377
|
null
|
|
27316
27378
|
|
|
27317
27379
|
)
|
|
27318
27380
|
|
|
27319
27381
|
/* harmony default export */ var MyFilesInfo = (MyFilesInfo_component.exports);
|
|
27320
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/wjzx/src/index/components/RecentFilesList.vue?vue&type=template&id=
|
|
27321
|
-
var
|
|
27382
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/wjzx/src/index/components/RecentFilesList.vue?vue&type=template&id=5be3a749&scoped=true
|
|
27383
|
+
var RecentFilesListvue_type_template_id_5be3a749_scoped_true_render = function render() {
|
|
27322
27384
|
var _vm = this,
|
|
27323
27385
|
_c = _vm._self._c;
|
|
27324
27386
|
return _c('div', {
|
|
@@ -27593,7 +27655,7 @@ var RecentFilesListvue_type_template_id_009e4b43_scoped_true_render = function r
|
|
|
27593
27655
|
}
|
|
27594
27656
|
}, [_vm._v("暂无数据")])])]) : _vm._e()])], 1);
|
|
27595
27657
|
};
|
|
27596
|
-
var
|
|
27658
|
+
var RecentFilesListvue_type_template_id_5be3a749_scoped_true_staticRenderFns = [];
|
|
27597
27659
|
|
|
27598
27660
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue?vue&type=script&lang=js
|
|
27599
27661
|
function RecentFilesListvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return RecentFilesListvue_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; }, RecentFilesListvue_type_script_lang_js_typeof(o); }
|
|
@@ -27687,7 +27749,7 @@ var moment = __webpack_require__(5093);
|
|
|
27687
27749
|
active: false,
|
|
27688
27750
|
type: '2'
|
|
27689
27751
|
}, {
|
|
27690
|
-
name: '
|
|
27752
|
+
name: '压缩',
|
|
27691
27753
|
active: false,
|
|
27692
27754
|
type: '4'
|
|
27693
27755
|
}, {
|
|
@@ -27837,7 +27899,10 @@ var moment = __webpack_require__(5093);
|
|
|
27837
27899
|
this.contentWidth = this.$refs.personFileElement.offsetWidth;
|
|
27838
27900
|
},
|
|
27839
27901
|
refreshTableData: function refreshTableData() {
|
|
27840
|
-
//
|
|
27902
|
+
// 上传/删除等操作后,实时刷新当前分类列表
|
|
27903
|
+
if (this.checkType && this.checkType.name) {
|
|
27904
|
+
this.getListData(this.checkType, this.tabType, this.folderId);
|
|
27905
|
+
}
|
|
27841
27906
|
},
|
|
27842
27907
|
// 获取账号
|
|
27843
27908
|
getAccountId: function getAccountId() {
|
|
@@ -28301,9 +28366,9 @@ var moment = __webpack_require__(5093);
|
|
|
28301
28366
|
});
|
|
28302
28367
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue?vue&type=script&lang=js
|
|
28303
28368
|
/* harmony default export */ var components_RecentFilesListvue_type_script_lang_js = (RecentFilesListvue_type_script_lang_js);
|
|
28304
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue?vue&type=style&index=0&id=
|
|
28305
|
-
var
|
|
28306
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue?vue&type=style&index=0&id=
|
|
28369
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue?vue&type=style&index=0&id=5be3a749&prod&scoped=true&lang=scss
|
|
28370
|
+
var RecentFilesListvue_type_style_index_0_id_5be3a749_prod_scoped_true_lang_scss = __webpack_require__(2381);
|
|
28371
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue?vue&type=style&index=0&id=5be3a749&prod&scoped=true&lang=scss
|
|
28307
28372
|
|
|
28308
28373
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/index/components/RecentFilesList.vue
|
|
28309
28374
|
|
|
@@ -28316,11 +28381,11 @@ var RecentFilesListvue_type_style_index_0_id_009e4b43_prod_scoped_true_lang_scss
|
|
|
28316
28381
|
|
|
28317
28382
|
var RecentFilesList_component = normalizeComponent(
|
|
28318
28383
|
components_RecentFilesListvue_type_script_lang_js,
|
|
28319
|
-
|
|
28320
|
-
|
|
28384
|
+
RecentFilesListvue_type_template_id_5be3a749_scoped_true_render,
|
|
28385
|
+
RecentFilesListvue_type_template_id_5be3a749_scoped_true_staticRenderFns,
|
|
28321
28386
|
false,
|
|
28322
28387
|
null,
|
|
28323
|
-
"
|
|
28388
|
+
"5be3a749",
|
|
28324
28389
|
null
|
|
28325
28390
|
|
|
28326
28391
|
)
|
|
@@ -30429,8 +30494,8 @@ var FileForm_component = normalizeComponent(
|
|
|
30429
30494
|
)
|
|
30430
30495
|
|
|
30431
30496
|
/* harmony default export */ var FileForm = (FileForm_component.exports);
|
|
30432
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/wjzx/src/wjgl/components/FileList.vue?vue&type=template&id=
|
|
30433
|
-
var
|
|
30497
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/wjzx/src/wjgl/components/FileList.vue?vue&type=template&id=2205a8a3&scoped=true
|
|
30498
|
+
var FileListvue_type_template_id_2205a8a3_scoped_true_render = function render() {
|
|
30434
30499
|
var _vm = this,
|
|
30435
30500
|
_c = _vm._self._c;
|
|
30436
30501
|
return _c('div', {
|
|
@@ -31122,7 +31187,14 @@ var FileListvue_type_template_id_175a428e_scoped_true_render = function render()
|
|
|
31122
31187
|
})], 1)], 1)], 1)];
|
|
31123
31188
|
}
|
|
31124
31189
|
}], null, false, 4091563792)
|
|
31125
|
-
})], 1)])
|
|
31190
|
+
})], 1)]), _vm.maxFileSize ? _c('tr', [_c('td', {
|
|
31191
|
+
staticClass: "el-table__cell tdlbl tdw17"
|
|
31192
|
+
}, [_vm._v("备注")]), _c('td', {
|
|
31193
|
+
staticClass: "el-table__cell tdcont tdw83",
|
|
31194
|
+
staticStyle: {
|
|
31195
|
+
"text-align": "left"
|
|
31196
|
+
}
|
|
31197
|
+
}, [_vm._v("说明:上传文件大小不能超过" + _vm._s(_vm.maxFileSize) + "M")])]) : _vm._e()])])])])]), _c('span', {
|
|
31126
31198
|
staticClass: "dialog-footer",
|
|
31127
31199
|
attrs: {
|
|
31128
31200
|
"slot": "footer"
|
|
@@ -31498,7 +31570,7 @@ var FileListvue_type_template_id_175a428e_scoped_true_render = function render()
|
|
|
31498
31570
|
}
|
|
31499
31571
|
})], 1) : _vm._e()], 1);
|
|
31500
31572
|
};
|
|
31501
|
-
var
|
|
31573
|
+
var FileListvue_type_template_id_2205a8a3_scoped_true_staticRenderFns = [];
|
|
31502
31574
|
|
|
31503
31575
|
;// CONCATENATED MODULE: external {"commonjs":"jquery","commonjs2":"jquery","root":"$"}
|
|
31504
31576
|
var external_commonjs_jquery_commonjs2_jquery_root_$_namespaceObject = require("jquery");
|
|
@@ -32610,7 +32682,8 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32610
32682
|
// 文件夹路径数组
|
|
32611
32683
|
styleBagrand: '',
|
|
32612
32684
|
getBorder: false,
|
|
32613
|
-
accountId: ''
|
|
32685
|
+
accountId: '',
|
|
32686
|
+
maxFileSize: '' // 上传文件大小限制(M)
|
|
32614
32687
|
};
|
|
32615
32688
|
},
|
|
32616
32689
|
computed: components_FileListvue_type_script_lang_js_objectSpread({}, mapGetters(['routes', 'sidebar'])),
|
|
@@ -32659,6 +32732,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32659
32732
|
this.$bus.$on('setListDataUrl', this.setListDataUrl);
|
|
32660
32733
|
this.queryData();
|
|
32661
32734
|
this.styleBagrand = this.Cookies.get('uiStyle');
|
|
32735
|
+
this.getMaxFileSize();
|
|
32662
32736
|
},
|
|
32663
32737
|
beforeDestroy: function beforeDestroy() {
|
|
32664
32738
|
this.$bus.$off('selectTree', this.queryData);
|
|
@@ -32667,6 +32741,31 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32667
32741
|
},
|
|
32668
32742
|
mounted: function mounted() {},
|
|
32669
32743
|
methods: {
|
|
32744
|
+
// 获取上传文件大小限制参数(M)
|
|
32745
|
+
getMaxFileSize: function getMaxFileSize() {
|
|
32746
|
+
var _this2 = this;
|
|
32747
|
+
var data = [{
|
|
32748
|
+
compare: '=',
|
|
32749
|
+
field: 'orgCode',
|
|
32750
|
+
merge: true,
|
|
32751
|
+
value: this.loginUser.orgCode
|
|
32752
|
+
}, {
|
|
32753
|
+
compare: '=',
|
|
32754
|
+
field: 'paramName',
|
|
32755
|
+
merge: true,
|
|
32756
|
+
value: 'fileCenter.upload.maxFileSize'
|
|
32757
|
+
}];
|
|
32758
|
+
this.$http({
|
|
32759
|
+
method: 'POST',
|
|
32760
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
32761
|
+
data: data,
|
|
32762
|
+
url: 'base/paramConfig/querydata'
|
|
32763
|
+
}).then(function (res) {
|
|
32764
|
+
if (res.code === 'success' && res.body.listdata.length > 0) {
|
|
32765
|
+
_this2.maxFileSize = res.body.listdata[0].paramValue;
|
|
32766
|
+
}
|
|
32767
|
+
});
|
|
32768
|
+
},
|
|
32670
32769
|
// 选择部门、科室、班组
|
|
32671
32770
|
onSelectSuborgCompleted: function onSelectSuborgCompleted(selectedNodes, attr) {
|
|
32672
32771
|
var selected = '';
|
|
@@ -32732,7 +32831,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32732
32831
|
},
|
|
32733
32832
|
// render函数动态渲染图标
|
|
32734
32833
|
operateFormatter: function operateFormatter(h, row, column, cellValue, index) {
|
|
32735
|
-
var
|
|
32834
|
+
var _this3 = this;
|
|
32736
32835
|
// fiveStar 未收藏 已收藏 fiveStar3
|
|
32737
32836
|
var list = h('span', [h('a', {
|
|
32738
32837
|
attrs: {
|
|
@@ -32975,10 +33074,10 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32975
33074
|
this.$store.state.user.roles.forEach(function (res) {
|
|
32976
33075
|
if (res === 'wjzxDeptMgr') {
|
|
32977
33076
|
// 部门文件管理员
|
|
32978
|
-
|
|
33077
|
+
_this3.wjzxDeptMgr = true;
|
|
32979
33078
|
} else if (res === 'wjzxCompanyMgr') {
|
|
32980
33079
|
// 单位文件管理员
|
|
32981
|
-
|
|
33080
|
+
_this3.wjzxCompanyMgr = true;
|
|
32982
33081
|
}
|
|
32983
33082
|
});
|
|
32984
33083
|
if (this.wjzxDeptMgr && this.type === 1 || this.wjzxCompanyMgr && this.type === 2) {
|
|
@@ -32996,7 +33095,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32996
33095
|
},
|
|
32997
33096
|
// 权限控制
|
|
32998
33097
|
permissionsControl: function permissionsControl() {
|
|
32999
|
-
var
|
|
33098
|
+
var _this4 = this;
|
|
33000
33099
|
var list = [{
|
|
33001
33100
|
btnName: '下载',
|
|
33002
33101
|
btnIcon: 'wjzx_downcopy.svg',
|
|
@@ -33075,10 +33174,10 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33075
33174
|
this.$store.state.user.roles.forEach(function (res) {
|
|
33076
33175
|
if (res === 'wjzxDeptMgr') {
|
|
33077
33176
|
// 部门文件管理员
|
|
33078
|
-
|
|
33177
|
+
_this4.wjzxDeptMgr = true;
|
|
33079
33178
|
} else if (res === 'wjzxCompanyMgr') {
|
|
33080
33179
|
// 单位文件管理员
|
|
33081
|
-
|
|
33180
|
+
_this4.wjzxCompanyMgr = true;
|
|
33082
33181
|
}
|
|
33083
33182
|
});
|
|
33084
33183
|
if (this.wjzxDeptMgr && this.type === 1 || this.wjzxCompanyMgr && this.type === 2) {
|
|
@@ -33102,11 +33201,11 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33102
33201
|
},
|
|
33103
33202
|
// 文件夹选择分类回调
|
|
33104
33203
|
selectFolderId: function selectFolderId(value) {
|
|
33105
|
-
var
|
|
33204
|
+
var _this5 = this;
|
|
33106
33205
|
this.folderVo.parentId = value[value.length - 1] !== '0' ? value[value.length - 1] : null;
|
|
33107
33206
|
this.treeDataList.forEach(function (item) {
|
|
33108
|
-
if (item.id ===
|
|
33109
|
-
|
|
33207
|
+
if (item.id === _this5.folderVo.parentId) {
|
|
33208
|
+
_this5.folderVo.fullName = item.folderName;
|
|
33110
33209
|
}
|
|
33111
33210
|
});
|
|
33112
33211
|
if (this.folderVo.folderId === '1') {
|
|
@@ -33115,14 +33214,14 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33115
33214
|
},
|
|
33116
33215
|
// 上传文件选择分类回调
|
|
33117
33216
|
selectUploadId: function selectUploadId(value) {
|
|
33118
|
-
var
|
|
33217
|
+
var _this6 = this;
|
|
33119
33218
|
this.uploadVo.folderId = value[value.length - 1];
|
|
33120
33219
|
this.uploadVo.busiDataId = value[value.length - 1];
|
|
33121
33220
|
this.treeDataList.forEach(function (item) {
|
|
33122
|
-
if (item.id ===
|
|
33123
|
-
|
|
33124
|
-
|
|
33125
|
-
|
|
33221
|
+
if (item.id === _this6.uploadVo.folderId) {
|
|
33222
|
+
_this6.uploadVo.fullName = item.folderName;
|
|
33223
|
+
_this6.uploadVo.deptId = item.deptId;
|
|
33224
|
+
_this6.uploadVo.deptName = item.deptName;
|
|
33126
33225
|
}
|
|
33127
33226
|
});
|
|
33128
33227
|
if (this.uploadVo.folderId === '1') {
|
|
@@ -33131,7 +33230,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33131
33230
|
}
|
|
33132
33231
|
},
|
|
33133
33232
|
queryData: function queryData() {
|
|
33134
|
-
var
|
|
33233
|
+
var _this7 = this;
|
|
33135
33234
|
// 加载类型节点数据
|
|
33136
33235
|
this.$http({
|
|
33137
33236
|
method: 'POST',
|
|
@@ -33154,14 +33253,14 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33154
33253
|
node.parentId = '1';
|
|
33155
33254
|
}
|
|
33156
33255
|
});
|
|
33157
|
-
|
|
33158
|
-
|
|
33159
|
-
|
|
33160
|
-
|
|
33161
|
-
|
|
33162
|
-
|
|
33256
|
+
_this7.root.zjfile[0].id = '1';
|
|
33257
|
+
_this7.root.zjfile[0].pId = '0';
|
|
33258
|
+
_this7.root.zjfile[0].value = '1';
|
|
33259
|
+
_this7.root.zjfile[0].parentId = '0';
|
|
33260
|
+
_this7.treeData1 = _this7.treeDataAdapter(_this7.root.zjfile.concat(res.body.diskFolders));
|
|
33261
|
+
_this7.treeDataList = _this7.root.zjfile.concat(res.body.diskFolders);
|
|
33163
33262
|
} else {
|
|
33164
|
-
|
|
33263
|
+
_this7.$alert(res.message, '操作提示', {
|
|
33165
33264
|
type: 'error'
|
|
33166
33265
|
});
|
|
33167
33266
|
}
|
|
@@ -33182,11 +33281,11 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33182
33281
|
return tree;
|
|
33183
33282
|
},
|
|
33184
33283
|
buildTree: function buildTree(data, parentId) {
|
|
33185
|
-
var
|
|
33284
|
+
var _this8 = this;
|
|
33186
33285
|
var tree = [];
|
|
33187
33286
|
data.forEach(function (node) {
|
|
33188
33287
|
if (node.pId === parentId) {
|
|
33189
|
-
var children =
|
|
33288
|
+
var children = _this8.buildTree(data, node.value);
|
|
33190
33289
|
if (children.length > 0) {
|
|
33191
33290
|
node.children = children;
|
|
33192
33291
|
}
|
|
@@ -33197,8 +33296,21 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33197
33296
|
},
|
|
33198
33297
|
// 选择上传文件成功回调
|
|
33199
33298
|
handleUploadChange: function handleUploadChange(file, fileList) {
|
|
33299
|
+
var validList = fileList;
|
|
33300
|
+
if (this.maxFileSize) {
|
|
33301
|
+
var limit = Number(this.maxFileSize) * 1024 * 1024;
|
|
33302
|
+
var overFiles = fileList.filter(function (res) {
|
|
33303
|
+
return res.raw && res.raw.size > limit;
|
|
33304
|
+
});
|
|
33305
|
+
if (overFiles.length > 0) {
|
|
33306
|
+
validList = fileList.filter(function (res) {
|
|
33307
|
+
return overFiles.indexOf(res) === -1;
|
|
33308
|
+
});
|
|
33309
|
+
this.$message.error('文件' + overFiles[0].name + '超过上传大小限制' + this.maxFileSize + 'M,禁止上传');
|
|
33310
|
+
}
|
|
33311
|
+
}
|
|
33200
33312
|
var name = '';
|
|
33201
|
-
|
|
33313
|
+
validList.forEach(function (res) {
|
|
33202
33314
|
if (name) {
|
|
33203
33315
|
name += ',' + res.name;
|
|
33204
33316
|
} else {
|
|
@@ -33206,11 +33318,11 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33206
33318
|
}
|
|
33207
33319
|
});
|
|
33208
33320
|
this.uploadVo.attachFileName = name;
|
|
33209
|
-
this.uploadVo.attach =
|
|
33321
|
+
this.uploadVo.attach = validList;
|
|
33210
33322
|
},
|
|
33211
33323
|
// 上传文件
|
|
33212
33324
|
upload: function upload() {
|
|
33213
|
-
var
|
|
33325
|
+
var _this9 = this;
|
|
33214
33326
|
console.log('上传');
|
|
33215
33327
|
this.dialogFormVisibleFolder = true;
|
|
33216
33328
|
this.isUpload = true;
|
|
@@ -33221,10 +33333,10 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33221
33333
|
// this.uploadVo.fullName1 = cascadeIds
|
|
33222
33334
|
console.log(cascadeIds, 'cascadeIds');
|
|
33223
33335
|
this.$nextTick(function () {
|
|
33224
|
-
console.log(
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
|
|
33336
|
+
console.log(_this9.$refs.cascader, 'this.$refs.cascader');
|
|
33337
|
+
_this9.$refs.cascader.inputValue = _this9.uploadVo.fullName;
|
|
33338
|
+
_this9.$refs.cascader.checkedNodes = cascadeIds;
|
|
33339
|
+
_this9.$refs.cascader.checkedValue = cascadeIds;
|
|
33228
33340
|
});
|
|
33229
33341
|
this.uploadVo.deptId = this.treeNode.deptId;
|
|
33230
33342
|
this.uploadVo.deptName = this.treeNode.deptName;
|
|
@@ -33256,43 +33368,60 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33256
33368
|
},
|
|
33257
33369
|
// 上传文件保存
|
|
33258
33370
|
groupingConfirmFolder: function groupingConfirmFolder() {
|
|
33259
|
-
var
|
|
33371
|
+
var _this10 = this;
|
|
33260
33372
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
33261
33373
|
var _this;
|
|
33262
33374
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33263
33375
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33264
33376
|
case 0:
|
|
33265
|
-
_this =
|
|
33266
|
-
|
|
33267
|
-
var index, element;
|
|
33377
|
+
_this = _this10;
|
|
33378
|
+
_this10.formValidate( /*#__PURE__*/components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
33379
|
+
var limit, overFile, index, element;
|
|
33268
33380
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33269
33381
|
while (1) switch (_context.prev = _context.next) {
|
|
33270
33382
|
case 0:
|
|
33271
|
-
|
|
33383
|
+
if (!_this10.maxFileSize) {
|
|
33384
|
+
_context.next = 6;
|
|
33385
|
+
break;
|
|
33386
|
+
}
|
|
33387
|
+
limit = Number(_this10.maxFileSize) * 1024 * 1024;
|
|
33388
|
+
overFile = _this.uploadVo.attach.find(function (res) {
|
|
33389
|
+
return res.raw && res.raw.size > limit;
|
|
33390
|
+
});
|
|
33391
|
+
if (!overFile) {
|
|
33392
|
+
_context.next = 6;
|
|
33393
|
+
break;
|
|
33394
|
+
}
|
|
33395
|
+
_this10.$alert('文件' + overFile.name + '超过上传大小限制' + _this10.maxFileSize + 'M,禁止上传', '操作提示', {
|
|
33396
|
+
type: 'warning'
|
|
33397
|
+
});
|
|
33398
|
+
return _context.abrupt("return");
|
|
33399
|
+
case 6:
|
|
33400
|
+
_this10.updateLoading = true;
|
|
33272
33401
|
// _this.uploadVo.attach.forEach(res => {
|
|
33273
33402
|
// this.uploadFile(res)
|
|
33274
33403
|
// })
|
|
33275
33404
|
index = 0;
|
|
33276
|
-
case
|
|
33405
|
+
case 8:
|
|
33277
33406
|
if (!(index < _this.uploadVo.attach.length)) {
|
|
33278
|
-
_context.next =
|
|
33407
|
+
_context.next = 17;
|
|
33279
33408
|
break;
|
|
33280
33409
|
}
|
|
33281
33410
|
element = _this.uploadVo.attach[index];
|
|
33282
|
-
|
|
33283
|
-
|
|
33284
|
-
_context.next =
|
|
33285
|
-
return
|
|
33286
|
-
case
|
|
33411
|
+
_this10.uploadVo.progress = 0;
|
|
33412
|
+
_this10.uploadVo.uploadingFile = element.name;
|
|
33413
|
+
_context.next = 14;
|
|
33414
|
+
return _this10.uploadFile(element, index);
|
|
33415
|
+
case 14:
|
|
33287
33416
|
index++;
|
|
33288
|
-
_context.next =
|
|
33417
|
+
_context.next = 8;
|
|
33289
33418
|
break;
|
|
33290
|
-
case
|
|
33291
|
-
|
|
33292
|
-
|
|
33419
|
+
case 17:
|
|
33420
|
+
_this10.updateLoading = false;
|
|
33421
|
+
_this10.dialogFormVisibleFolder = false;
|
|
33293
33422
|
// 刷新列表
|
|
33294
|
-
|
|
33295
|
-
case
|
|
33423
|
+
_this10.setListDataUrl();
|
|
33424
|
+
case 20:
|
|
33296
33425
|
case "end":
|
|
33297
33426
|
return _context.stop();
|
|
33298
33427
|
}
|
|
@@ -33307,7 +33436,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33307
33436
|
},
|
|
33308
33437
|
// 上传文件接口
|
|
33309
33438
|
uploadFile: function uploadFile(item, index) {
|
|
33310
|
-
var
|
|
33439
|
+
var _this11 = this;
|
|
33311
33440
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
33312
33441
|
var files, fd, config, url;
|
|
33313
33442
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -33318,35 +33447,35 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33318
33447
|
fd.append('file', files);
|
|
33319
33448
|
fd.append('module', 'disk');
|
|
33320
33449
|
// fd.append('attachsSize', val.size)
|
|
33321
|
-
fd.append('busiDataId',
|
|
33450
|
+
fd.append('busiDataId', _this11.uploadVo.folderId);
|
|
33322
33451
|
fd.append('attachsType', 'ATTACH');
|
|
33323
|
-
fd.append('fileDiffer',
|
|
33452
|
+
fd.append('fileDiffer', _this11.type);
|
|
33324
33453
|
fd.append('attachsName', item.name);
|
|
33325
|
-
fd.append('folderId',
|
|
33326
|
-
fd.append('deptId',
|
|
33327
|
-
fd.append('deptName',
|
|
33454
|
+
fd.append('folderId', _this11.uploadVo.folderId);
|
|
33455
|
+
fd.append('deptId', _this11.uploadVo.deptId);
|
|
33456
|
+
fd.append('deptName', _this11.uploadVo.deptName);
|
|
33328
33457
|
config = {
|
|
33329
33458
|
onUploadProgress: function onUploadProgress(progressEvent) {
|
|
33330
33459
|
var complete = progressEvent.loaded / progressEvent.total * 100 | 0;
|
|
33331
|
-
|
|
33332
|
-
|
|
33460
|
+
_this11.uploadVo.progress = complete;
|
|
33461
|
+
_this11.$forceUpdate();
|
|
33333
33462
|
},
|
|
33334
33463
|
timeout: 30 * 60 * 1000
|
|
33335
33464
|
};
|
|
33336
33465
|
url = '/disk/file/upload';
|
|
33337
33466
|
_context3.next = 15;
|
|
33338
|
-
return
|
|
33467
|
+
return _this11.$http(components_FileListvue_type_script_lang_js_objectSpread(components_FileListvue_type_script_lang_js_objectSpread({
|
|
33339
33468
|
method: 'POST',
|
|
33340
33469
|
url: url
|
|
33341
33470
|
}, config), {}, {
|
|
33342
33471
|
data: fd
|
|
33343
33472
|
})).then(function (res) {
|
|
33344
33473
|
if (res.code === 'success') {
|
|
33345
|
-
if (index ===
|
|
33346
|
-
|
|
33474
|
+
if (index === _this11.uploadVo.attach.length - 1) {
|
|
33475
|
+
_this11.$message.success(res.message);
|
|
33347
33476
|
}
|
|
33348
33477
|
} else {
|
|
33349
|
-
|
|
33478
|
+
_this11.$message.error(res.message);
|
|
33350
33479
|
return;
|
|
33351
33480
|
}
|
|
33352
33481
|
});
|
|
@@ -33359,7 +33488,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33359
33488
|
},
|
|
33360
33489
|
// 新建文件夹
|
|
33361
33490
|
addFolder: function addFolder() {
|
|
33362
|
-
var
|
|
33491
|
+
var _this12 = this;
|
|
33363
33492
|
this.addOrupdateContacts = true;
|
|
33364
33493
|
this.isUpload = false;
|
|
33365
33494
|
this.$http({
|
|
@@ -33367,88 +33496,88 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33367
33496
|
method: 'POST'
|
|
33368
33497
|
}).then(function (res) {
|
|
33369
33498
|
if (res.code === 'success') {
|
|
33370
|
-
|
|
33371
|
-
|
|
33372
|
-
|
|
33373
|
-
var cascadeIds =
|
|
33499
|
+
_this12.folderVo = res.body.vo;
|
|
33500
|
+
_this12.folderVo.parentId = _this12.treeNode.id !== '0' ? _this12.treeNode.id : null;
|
|
33501
|
+
_this12.folderVo.fullName = _this12.treeNode.folderName;
|
|
33502
|
+
var cascadeIds = _this12.findCascadeIds(_this12.treeData1, _this12.folderVo.fullName);
|
|
33374
33503
|
console.log(cascadeIds, 'cascadeIds');
|
|
33375
33504
|
// this.folderVo.fullName1 = cascadeIds
|
|
33376
|
-
|
|
33377
|
-
|
|
33378
|
-
|
|
33379
|
-
|
|
33380
|
-
|
|
33381
|
-
console.log(
|
|
33505
|
+
_this12.dialogFormVisible = true;
|
|
33506
|
+
_this12.$nextTick(function () {
|
|
33507
|
+
_this12.$refs.cascaderServer.inputValue = _this12.folderVo.fullName;
|
|
33508
|
+
_this12.$refs.cascaderServer.checkedNodes = cascadeIds;
|
|
33509
|
+
_this12.$refs.cascaderServer.checkedValue = cascadeIds;
|
|
33510
|
+
console.log(_this12.$refs.cascaderServer, 'this.$refs.cascaderServer');
|
|
33382
33511
|
});
|
|
33383
|
-
if (
|
|
33384
|
-
|
|
33385
|
-
|
|
33386
|
-
if (!
|
|
33387
|
-
|
|
33512
|
+
if (_this12.type === 1) {
|
|
33513
|
+
_this12.folderVo.deptId = _this12.treeNode.deptId;
|
|
33514
|
+
_this12.folderVo.deptName = _this12.treeNode.deptName;
|
|
33515
|
+
if (!_this12.treeNode.fullId) {
|
|
33516
|
+
_this12.folderVo.status = 3;
|
|
33388
33517
|
}
|
|
33389
33518
|
} else {
|
|
33390
|
-
|
|
33391
|
-
|
|
33519
|
+
_this12.folderVo.deptId = '';
|
|
33520
|
+
_this12.folderVo.deptName = '';
|
|
33392
33521
|
}
|
|
33393
33522
|
} else {
|
|
33394
|
-
|
|
33523
|
+
_this12.$message.error(res.message);
|
|
33395
33524
|
}
|
|
33396
33525
|
});
|
|
33397
33526
|
},
|
|
33398
33527
|
// 保存文件夹
|
|
33399
33528
|
groupingConfirm: function groupingConfirm() {
|
|
33400
|
-
var
|
|
33529
|
+
var _this13 = this;
|
|
33401
33530
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
33402
33531
|
var res;
|
|
33403
33532
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
33404
33533
|
while (1) switch (_context5.prev = _context5.next) {
|
|
33405
33534
|
case 0:
|
|
33406
33535
|
res = null;
|
|
33407
|
-
|
|
33536
|
+
_this13.formValidate( /*#__PURE__*/components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
33408
33537
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33409
33538
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33410
33539
|
case 0:
|
|
33411
|
-
|
|
33412
|
-
if (
|
|
33540
|
+
_this13.folderVo.folderType = _this13.type; // 文件类型 0个人 1部门 2单位
|
|
33541
|
+
if (_this13.folderVo.folderName) {
|
|
33413
33542
|
_context4.next = 5;
|
|
33414
33543
|
break;
|
|
33415
33544
|
}
|
|
33416
|
-
|
|
33545
|
+
_this13.$alert('请输入文件夹名称', '提示', {
|
|
33417
33546
|
type: 'warning'
|
|
33418
33547
|
});
|
|
33419
33548
|
_context4.next = 17;
|
|
33420
33549
|
break;
|
|
33421
33550
|
case 5:
|
|
33422
|
-
delete
|
|
33423
|
-
if (
|
|
33424
|
-
|
|
33551
|
+
delete _this13.folderVo.fullName1;
|
|
33552
|
+
if (_this13.folderVo.parentId === '1') {
|
|
33553
|
+
_this13.folderVo.parentId = null;
|
|
33425
33554
|
}
|
|
33426
|
-
if (!
|
|
33555
|
+
if (!_this13.addOrupdateContacts) {
|
|
33427
33556
|
_context4.next = 13;
|
|
33428
33557
|
break;
|
|
33429
33558
|
}
|
|
33430
33559
|
_context4.next = 10;
|
|
33431
|
-
return
|
|
33560
|
+
return _this13.$app.insert(_this13.fileMoudlueInfo.insertUrl, _this13.folderVo);
|
|
33432
33561
|
case 10:
|
|
33433
33562
|
res = _context4.sent;
|
|
33434
33563
|
_context4.next = 16;
|
|
33435
33564
|
break;
|
|
33436
33565
|
case 13:
|
|
33437
33566
|
_context4.next = 15;
|
|
33438
|
-
return
|
|
33567
|
+
return _this13.$app.update(_this13.fileMoudlueInfo.updateUrl, _this13.folderVo);
|
|
33439
33568
|
case 15:
|
|
33440
33569
|
res = _context4.sent;
|
|
33441
33570
|
case 16:
|
|
33442
33571
|
if (res.code === 'success') {
|
|
33443
|
-
|
|
33444
|
-
|
|
33445
|
-
|
|
33572
|
+
_this13.$message.success(res.message);
|
|
33573
|
+
_this13.dialogFormVisible = false;
|
|
33574
|
+
_this13.folderVo = {};
|
|
33446
33575
|
// 刷新树
|
|
33447
|
-
|
|
33576
|
+
_this13.$bus.emit('getTreeList', _this13.treeNode);
|
|
33448
33577
|
// 刷新选择分类
|
|
33449
|
-
|
|
33578
|
+
_this13.queryData();
|
|
33450
33579
|
} else {
|
|
33451
|
-
|
|
33580
|
+
_this13.$message.error(res.message);
|
|
33452
33581
|
}
|
|
33453
33582
|
case 17:
|
|
33454
33583
|
case "end":
|
|
@@ -33465,30 +33594,30 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33465
33594
|
},
|
|
33466
33595
|
// 编辑文件
|
|
33467
33596
|
editObjectFile: function editObjectFile(row) {
|
|
33468
|
-
var
|
|
33597
|
+
var _this14 = this;
|
|
33469
33598
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee6() {
|
|
33470
33599
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
33471
33600
|
while (1) switch (_context6.prev = _context6.next) {
|
|
33472
33601
|
case 0:
|
|
33473
33602
|
// 文件夹
|
|
33474
33603
|
if (Number(row.resoureType) === 1) {
|
|
33475
|
-
|
|
33604
|
+
_this14.$bus.emit('editMenu', '文件夹', row, '重命名');
|
|
33476
33605
|
} else {
|
|
33477
33606
|
// 文件
|
|
33478
|
-
|
|
33607
|
+
_this14.fileVo = components_FileListvue_type_script_lang_js_objectSpread({}, row);
|
|
33479
33608
|
// 重点在这
|
|
33480
|
-
|
|
33481
|
-
|
|
33482
|
-
if (!
|
|
33483
|
-
|
|
33609
|
+
_this14.fileVo.name = row.name.substring(0, row.name.lastIndexOf('.'));
|
|
33610
|
+
_this14.fileVo.oldType = row.name.substring(row.name.lastIndexOf('.'));
|
|
33611
|
+
if (!_this14.fileVo.permissionType) {
|
|
33612
|
+
_this14.fileVo.permissionType = 1;
|
|
33484
33613
|
}
|
|
33485
|
-
if (!
|
|
33486
|
-
|
|
33487
|
-
|
|
33488
|
-
|
|
33614
|
+
if (!_this14.fileVo.passenger.filePermission) {
|
|
33615
|
+
_this14.fileVo.passenger.filePermission = {};
|
|
33616
|
+
_this14.fileVo.passenger.filePermission.permissionName = '';
|
|
33617
|
+
_this14.fileVo.passenger.filePermission.permissionId = '';
|
|
33489
33618
|
}
|
|
33490
|
-
|
|
33491
|
-
|
|
33619
|
+
_this14.filePermissionName = _this14.fileVo.passenger.filePermission.permissionName || '';
|
|
33620
|
+
_this14.dialogFormVisibleFile = true;
|
|
33492
33621
|
}
|
|
33493
33622
|
case 1:
|
|
33494
33623
|
case "end":
|
|
@@ -33499,28 +33628,28 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33499
33628
|
},
|
|
33500
33629
|
// 重命名确定
|
|
33501
33630
|
fileConfirm: function fileConfirm() {
|
|
33502
|
-
var
|
|
33631
|
+
var _this15 = this;
|
|
33503
33632
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee8() {
|
|
33504
33633
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
33505
33634
|
while (1) switch (_context8.prev = _context8.next) {
|
|
33506
33635
|
case 0:
|
|
33507
|
-
|
|
33636
|
+
_this15.formValidate( /*#__PURE__*/components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee7() {
|
|
33508
33637
|
var res;
|
|
33509
33638
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
33510
33639
|
while (1) switch (_context7.prev = _context7.next) {
|
|
33511
33640
|
case 0:
|
|
33512
33641
|
res = null; // 组合文件名格式
|
|
33513
|
-
|
|
33642
|
+
_this15.fileVo.name = _this15.fileVo.name + _this15.fileVo.oldType;
|
|
33514
33643
|
_context7.next = 4;
|
|
33515
|
-
return
|
|
33644
|
+
return _this15.$app.update(_this15.moduleInfo.updateUrl, _this15.fileVo);
|
|
33516
33645
|
case 4:
|
|
33517
33646
|
res = _context7.sent;
|
|
33518
33647
|
if (res.code === 'success') {
|
|
33519
|
-
|
|
33520
|
-
|
|
33521
|
-
|
|
33648
|
+
_this15.$message.success(res.message);
|
|
33649
|
+
_this15.dialogFormVisibleFile = false;
|
|
33650
|
+
_this15.setListDataUrl();
|
|
33522
33651
|
} else {
|
|
33523
|
-
|
|
33652
|
+
_this15.$message.error(res.message);
|
|
33524
33653
|
}
|
|
33525
33654
|
case 6:
|
|
33526
33655
|
case "end":
|
|
@@ -33537,7 +33666,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33537
33666
|
},
|
|
33538
33667
|
// 批量分享文件
|
|
33539
33668
|
allShare: function allShare() {
|
|
33540
|
-
var
|
|
33669
|
+
var _this16 = this;
|
|
33541
33670
|
this.shareType = 'all';
|
|
33542
33671
|
if (this.rowsSelected.length < 1) {
|
|
33543
33672
|
this.$alert('请选择要分享的文件!', '操作提示', {
|
|
@@ -33546,7 +33675,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33546
33675
|
return;
|
|
33547
33676
|
}
|
|
33548
33677
|
this.$nextTick(function () {
|
|
33549
|
-
|
|
33678
|
+
_this16.$bus.emit('openBusiform', _this16.moduleInfoShare, null, 1);
|
|
33550
33679
|
});
|
|
33551
33680
|
},
|
|
33552
33681
|
// 操作列分享记录
|
|
@@ -33555,7 +33684,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33555
33684
|
},
|
|
33556
33685
|
// 转发邮件
|
|
33557
33686
|
writeMail: function writeMail() {
|
|
33558
|
-
var
|
|
33687
|
+
var _this17 = this;
|
|
33559
33688
|
if (this.rowsSelected.length < 1) {
|
|
33560
33689
|
this.$alert('请选择要转发的文件!', '操作提示', {
|
|
33561
33690
|
type: 'warning'
|
|
@@ -33565,7 +33694,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33565
33694
|
try {
|
|
33566
33695
|
this.rowsSelected.forEach(function (res) {
|
|
33567
33696
|
if (Number(res.resoureType) === 1) {
|
|
33568
|
-
|
|
33697
|
+
_this17.$alert('文件夹不可转发,请重新选择!', '操作提示', {
|
|
33569
33698
|
type: 'warning'
|
|
33570
33699
|
});
|
|
33571
33700
|
throw new Error(true);
|
|
@@ -33590,8 +33719,8 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33590
33719
|
fileType: 'ATTACH',
|
|
33591
33720
|
id: res.downId,
|
|
33592
33721
|
onlineFile: null,
|
|
33593
|
-
orgCode:
|
|
33594
|
-
orgName:
|
|
33722
|
+
orgCode: _this17.loginUser.orgCode,
|
|
33723
|
+
orgName: _this17.loginUser.orgName,
|
|
33595
33724
|
originalName: res.originalName,
|
|
33596
33725
|
updateBy: res.createName,
|
|
33597
33726
|
updateTime: res.createDate,
|
|
@@ -33603,7 +33732,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33603
33732
|
},
|
|
33604
33733
|
// 收藏
|
|
33605
33734
|
collection: function collection(val) {
|
|
33606
|
-
var
|
|
33735
|
+
var _this18 = this;
|
|
33607
33736
|
if (this.rowsSelected.length < 1) {
|
|
33608
33737
|
this.$alert('请选择要收藏的文件!', '操作提示', {
|
|
33609
33738
|
type: 'warning'
|
|
@@ -33622,18 +33751,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33622
33751
|
this.$confirm('确认要收藏选中的文件吗?', '确认操作', {
|
|
33623
33752
|
type: 'warning'
|
|
33624
33753
|
}).then(function () {
|
|
33625
|
-
|
|
33754
|
+
_this18.$http({
|
|
33626
33755
|
method: 'POST',
|
|
33627
33756
|
contentType: 'application/x-www-form-urlencoded',
|
|
33628
33757
|
data: list,
|
|
33629
33758
|
url: '/disk/collect/insert'
|
|
33630
33759
|
}).then(function (res) {
|
|
33631
33760
|
if (res.code === 'success') {
|
|
33632
|
-
|
|
33761
|
+
_this18.$message.success(res.message);
|
|
33633
33762
|
// 刷新列表
|
|
33634
|
-
|
|
33763
|
+
_this18.setListDataUrl();
|
|
33635
33764
|
} else {
|
|
33636
|
-
|
|
33765
|
+
_this18.$message.error(res.message);
|
|
33637
33766
|
}
|
|
33638
33767
|
});
|
|
33639
33768
|
}).catch(function (err) {
|
|
@@ -33644,7 +33773,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33644
33773
|
},
|
|
33645
33774
|
// 单个收藏
|
|
33646
33775
|
cancel: function cancel(row) {
|
|
33647
|
-
var
|
|
33776
|
+
var _this19 = this;
|
|
33648
33777
|
var list = [];
|
|
33649
33778
|
list.push({
|
|
33650
33779
|
fileId: row.id,
|
|
@@ -33655,18 +33784,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33655
33784
|
this.$confirm('确认要收藏选中的文件吗?', '确认操作', {
|
|
33656
33785
|
type: 'warning'
|
|
33657
33786
|
}).then(function () {
|
|
33658
|
-
|
|
33787
|
+
_this19.$http({
|
|
33659
33788
|
method: 'POST',
|
|
33660
33789
|
contentType: 'application/x-www-form-urlencoded',
|
|
33661
33790
|
data: list,
|
|
33662
33791
|
url: '/disk/collect/insert'
|
|
33663
33792
|
}).then(function (res) {
|
|
33664
33793
|
if (res.code === 'success') {
|
|
33665
|
-
|
|
33794
|
+
_this19.$message.success(res.message);
|
|
33666
33795
|
// 刷新列表
|
|
33667
|
-
|
|
33796
|
+
_this19.$bus.$emit('refreshListData');
|
|
33668
33797
|
} else {
|
|
33669
|
-
|
|
33798
|
+
_this19.$message.error(res.message);
|
|
33670
33799
|
}
|
|
33671
33800
|
});
|
|
33672
33801
|
}).catch(function (err) {
|
|
@@ -33677,7 +33806,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33677
33806
|
},
|
|
33678
33807
|
// 单个取消收藏
|
|
33679
33808
|
qxCancel: function qxCancel(row) {
|
|
33680
|
-
var
|
|
33809
|
+
var _this20 = this;
|
|
33681
33810
|
this.$confirm('确认取消该收藏文件吗?', '确认操作', {
|
|
33682
33811
|
type: 'warning'
|
|
33683
33812
|
}).then(function () {
|
|
@@ -33685,18 +33814,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33685
33814
|
ids: row.id,
|
|
33686
33815
|
status: 0
|
|
33687
33816
|
};
|
|
33688
|
-
|
|
33817
|
+
_this20.$http({
|
|
33689
33818
|
method: 'POST',
|
|
33690
33819
|
contentType: 'application/x-www-form-urlencoded',
|
|
33691
33820
|
params: params,
|
|
33692
33821
|
url: '/disk/vwcollectfile/updateCollect'
|
|
33693
33822
|
}).then(function (res) {
|
|
33694
33823
|
if (res.code === 'success') {
|
|
33695
|
-
|
|
33824
|
+
_this20.$message.success(res.message);
|
|
33696
33825
|
// 刷新列表
|
|
33697
|
-
|
|
33826
|
+
_this20.$bus.$emit('refreshListData');
|
|
33698
33827
|
} else {
|
|
33699
|
-
|
|
33828
|
+
_this20.$message.error(res.message);
|
|
33700
33829
|
}
|
|
33701
33830
|
});
|
|
33702
33831
|
}).catch(function (err) {
|
|
@@ -33707,7 +33836,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33707
33836
|
},
|
|
33708
33837
|
// 批量删除
|
|
33709
33838
|
allDeleteIds: function allDeleteIds() {
|
|
33710
|
-
var
|
|
33839
|
+
var _this21 = this;
|
|
33711
33840
|
if (this.rowsSelected.length < 1) {
|
|
33712
33841
|
this.$alert('请选择需要删除的文件!', '操作提示', {
|
|
33713
33842
|
type: 'warning'
|
|
@@ -33718,7 +33847,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33718
33847
|
type: 'warning'
|
|
33719
33848
|
}).then(function () {
|
|
33720
33849
|
var id = '';
|
|
33721
|
-
|
|
33850
|
+
_this21.rowsSelected.forEach(function (res) {
|
|
33722
33851
|
if (id) {
|
|
33723
33852
|
id += ',' + res.id;
|
|
33724
33853
|
} else {
|
|
@@ -33728,32 +33857,32 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33728
33857
|
var params = {
|
|
33729
33858
|
ids: id
|
|
33730
33859
|
};
|
|
33731
|
-
|
|
33732
|
-
url:
|
|
33860
|
+
_this21.$http({
|
|
33861
|
+
url: _this21.moduleInfo.delUrl,
|
|
33733
33862
|
method: 'DELETE',
|
|
33734
33863
|
contentType: 'application/x-www-form-urlencoded',
|
|
33735
33864
|
params: params
|
|
33736
33865
|
}).then(function (res) {
|
|
33737
33866
|
if (res.code === 'success') {
|
|
33738
|
-
|
|
33867
|
+
_this21.$message({
|
|
33739
33868
|
message: '删除成功',
|
|
33740
33869
|
type: 'success'
|
|
33741
33870
|
});
|
|
33742
33871
|
// 刷新树
|
|
33743
|
-
|
|
33872
|
+
_this21.$bus.emit('getTreeList', _this21.treeNode);
|
|
33744
33873
|
// 刷新选择分类
|
|
33745
|
-
|
|
33874
|
+
_this21.queryData();
|
|
33746
33875
|
// 刷新列表
|
|
33747
|
-
|
|
33876
|
+
_this21.$bus.$emit('refreshListData');
|
|
33748
33877
|
} else {
|
|
33749
|
-
|
|
33878
|
+
_this21.$message.error(res.message);
|
|
33750
33879
|
}
|
|
33751
33880
|
});
|
|
33752
33881
|
}).catch(function () {});
|
|
33753
33882
|
},
|
|
33754
33883
|
// 操作列删除
|
|
33755
33884
|
deleteIds: function deleteIds(row) {
|
|
33756
|
-
var
|
|
33885
|
+
var _this22 = this;
|
|
33757
33886
|
var text = '您是否确认删除该文件?';
|
|
33758
33887
|
if (Number(row.resoureType) === 1) {
|
|
33759
33888
|
text = '您是否确认删除该文件夹?';
|
|
@@ -33764,32 +33893,32 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33764
33893
|
var params = {
|
|
33765
33894
|
ids: row.id
|
|
33766
33895
|
};
|
|
33767
|
-
|
|
33768
|
-
url:
|
|
33896
|
+
_this22.$http({
|
|
33897
|
+
url: _this22.moduleInfo.delUrl,
|
|
33769
33898
|
method: 'DELETE',
|
|
33770
33899
|
contentType: 'application/x-www-form-urlencoded',
|
|
33771
33900
|
params: params
|
|
33772
33901
|
}).then(function (res) {
|
|
33773
33902
|
if (res.code === 'success') {
|
|
33774
|
-
|
|
33903
|
+
_this22.$message({
|
|
33775
33904
|
message: '删除成功',
|
|
33776
33905
|
type: 'success'
|
|
33777
33906
|
});
|
|
33778
33907
|
// 刷新树
|
|
33779
|
-
|
|
33908
|
+
_this22.$bus.emit('getTreeList', _this22.treeNode);
|
|
33780
33909
|
// 刷新选择分类
|
|
33781
|
-
|
|
33910
|
+
_this22.queryData();
|
|
33782
33911
|
// 刷新列表
|
|
33783
|
-
|
|
33912
|
+
_this22.$bus.$emit('refreshListData');
|
|
33784
33913
|
} else {
|
|
33785
|
-
|
|
33914
|
+
_this22.$message.error(res.message);
|
|
33786
33915
|
}
|
|
33787
33916
|
});
|
|
33788
33917
|
}).catch(function () {});
|
|
33789
33918
|
},
|
|
33790
33919
|
// 路由跳转
|
|
33791
33920
|
gotoPages: function gotoPages(code) {
|
|
33792
|
-
var
|
|
33921
|
+
var _this23 = this;
|
|
33793
33922
|
var toPath = this.getMenuCode(code);
|
|
33794
33923
|
if (toPath && toPath.path) {
|
|
33795
33924
|
var path;
|
|
@@ -33817,8 +33946,8 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33817
33946
|
fileType: 'ATTACH',
|
|
33818
33947
|
id: res.id,
|
|
33819
33948
|
onlineFile: null,
|
|
33820
|
-
orgCode:
|
|
33821
|
-
orgName:
|
|
33949
|
+
orgCode: _this23.loginUser.orgCode,
|
|
33950
|
+
orgName: _this23.loginUser.orgName,
|
|
33822
33951
|
originalName: res.originalName,
|
|
33823
33952
|
updateBy: res.createName,
|
|
33824
33953
|
updateTime: res.createDate,
|
|
@@ -33969,18 +34098,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33969
34098
|
},
|
|
33970
34099
|
// 请求接口前先判断是个人,部门,单位
|
|
33971
34100
|
isBeforeOpenSetListDataUrl: function isBeforeOpenSetListDataUrl() {
|
|
33972
|
-
var
|
|
34101
|
+
var _this24 = this;
|
|
33973
34102
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee9() {
|
|
33974
|
-
var
|
|
34103
|
+
var _this24$loginUser, staffList, orgCode, personId;
|
|
33975
34104
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
33976
34105
|
while (1) switch (_context9.prev = _context9.next) {
|
|
33977
34106
|
case 0:
|
|
33978
|
-
|
|
34107
|
+
_this24$loginUser = components_FileListvue_type_script_lang_js_objectSpread({}, _this24.loginUser), staffList = _this24$loginUser.staffList, orgCode = _this24$loginUser.orgCode, personId = _this24$loginUser.personId;
|
|
33979
34108
|
return _context9.abrupt("return", new Promise(function (resolve) {
|
|
33980
|
-
if (
|
|
34109
|
+
if (_this24.type === 0) {
|
|
33981
34110
|
// 个人
|
|
33982
|
-
|
|
33983
|
-
|
|
34111
|
+
_this24.accountId = '';
|
|
34112
|
+
_this24.$http({
|
|
33984
34113
|
method: 'GET',
|
|
33985
34114
|
url: '/disk/account/getByPersonId',
|
|
33986
34115
|
params: {
|
|
@@ -33988,13 +34117,13 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33988
34117
|
}
|
|
33989
34118
|
}).then(function (resp) {
|
|
33990
34119
|
if (resp.code === 'success') {
|
|
33991
|
-
|
|
34120
|
+
_this24.accountId = resp.body.accountId;
|
|
33992
34121
|
} else {
|
|
33993
|
-
|
|
34122
|
+
_this24.accountId = '';
|
|
33994
34123
|
}
|
|
33995
|
-
resolve(";accountId:".concat(
|
|
34124
|
+
resolve(";accountId:".concat(_this24.accountId || ''));
|
|
33996
34125
|
});
|
|
33997
|
-
} else if (
|
|
34126
|
+
} else if (_this24.type === 1) {
|
|
33998
34127
|
// 部门
|
|
33999
34128
|
var str = '';
|
|
34000
34129
|
staffList.forEach(function (res) {
|
|
@@ -34005,7 +34134,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
34005
34134
|
}
|
|
34006
34135
|
});
|
|
34007
34136
|
resolve(";deptId:".concat(str));
|
|
34008
|
-
} else if (
|
|
34137
|
+
} else if (_this24.type === 2) {
|
|
34009
34138
|
// 单位
|
|
34010
34139
|
resolve(";orgCode:".concat(orgCode));
|
|
34011
34140
|
}
|
|
@@ -34023,58 +34152,58 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
34023
34152
|
},
|
|
34024
34153
|
// 请求接口
|
|
34025
34154
|
setListDataUrl: function setListDataUrl(id, row, type) {
|
|
34026
|
-
var
|
|
34155
|
+
var _this25 = this;
|
|
34027
34156
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee10() {
|
|
34028
34157
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
34029
34158
|
while (1) switch (_context10.prev = _context10.next) {
|
|
34030
34159
|
case 0:
|
|
34031
|
-
|
|
34160
|
+
_this25.isBeforeOpenSetListDataUrl().then(function (res) {
|
|
34032
34161
|
console.log(1530, res);
|
|
34033
|
-
var
|
|
34034
|
-
orgCode =
|
|
34162
|
+
var _this25$loginUser = components_FileListvue_type_script_lang_js_objectSpread({}, _this25.loginUser),
|
|
34163
|
+
orgCode = _this25$loginUser.orgCode;
|
|
34035
34164
|
var listDataUrl = '/disk/vwfilefolder/listdata';
|
|
34036
34165
|
var urlsearch = '';
|
|
34037
34166
|
if (id !== '0' && id) {
|
|
34038
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' + id + ';fileDiffer:' +
|
|
34167
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' + id + ';fileDiffer:' + _this25.type;
|
|
34039
34168
|
} else {
|
|
34040
|
-
if (
|
|
34041
|
-
if (Number(
|
|
34042
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';fileDiffer:' +
|
|
34043
|
-
} else if (Number(
|
|
34044
|
-
urlsearch = "status:1;orgCode:".concat(orgCode, ";fileDiffer:").concat(
|
|
34169
|
+
if (_this25.searchType === '0') {
|
|
34170
|
+
if (Number(_this25.treeNode.id) === 0) {
|
|
34171
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';fileDiffer:' + _this25.type + ';folderId:null'; // 全部
|
|
34172
|
+
} else if (Number(_this25.treeNode.id) === 1) {
|
|
34173
|
+
urlsearch = "status:1;orgCode:".concat(orgCode, ";fileDiffer:").concat(_this25.type, ";createDate<:").concat(FileListvue_type_script_lang_js_moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), ";createDate>:").concat(FileListvue_type_script_lang_js_moment(new Date()).subtract(1, 'months').format('YYYY-MM-DD HH:mm:ss'), ";resoureType:2"); // 最近
|
|
34045
34174
|
} else {
|
|
34046
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' +
|
|
34175
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' + _this25.treeNode.id + ';fileDiffer:' + _this25.type;
|
|
34047
34176
|
}
|
|
34048
|
-
} else if (
|
|
34049
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';type:' +
|
|
34177
|
+
} else if (_this25.searchType === '1') {
|
|
34178
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';type:' + _this25.flieType + ';fileDiffer:' + _this25.type;
|
|
34050
34179
|
}
|
|
34051
34180
|
}
|
|
34052
34181
|
urlsearch += res;
|
|
34053
|
-
|
|
34182
|
+
_this25.tableShow = false;
|
|
34054
34183
|
// 列表文件夹路径
|
|
34055
34184
|
if (id) {
|
|
34056
34185
|
if (!type) {
|
|
34057
|
-
|
|
34186
|
+
_this25.levelList.push({
|
|
34058
34187
|
name: row.name,
|
|
34059
34188
|
row: row,
|
|
34060
34189
|
id: id
|
|
34061
34190
|
});
|
|
34062
34191
|
} else {
|
|
34063
|
-
|
|
34192
|
+
_this25.levelList.splice(_this25.levelList.length - 1, 1);
|
|
34064
34193
|
}
|
|
34065
34194
|
} else {
|
|
34066
|
-
|
|
34067
|
-
name:
|
|
34068
|
-
id:
|
|
34195
|
+
_this25.levelList = [{
|
|
34196
|
+
name: _this25.treeNode.folderName,
|
|
34197
|
+
id: _this25.treeNode.id
|
|
34069
34198
|
}];
|
|
34070
34199
|
}
|
|
34071
34200
|
// 触发树节点
|
|
34072
|
-
|
|
34073
|
-
|
|
34074
|
-
|
|
34201
|
+
_this25.$bus.$emit('listOnTreeNodeClick', row);
|
|
34202
|
+
_this25.$nextTick(function () {
|
|
34203
|
+
_this25.tableShow = true;
|
|
34075
34204
|
});
|
|
34076
|
-
|
|
34077
|
-
|
|
34205
|
+
_this25.$set(_this25.moduleInfo, 'listDataUrl', listDataUrl);
|
|
34206
|
+
_this25.$set(_this25.moduleInfo, 'urlsearch', urlsearch);
|
|
34078
34207
|
});
|
|
34079
34208
|
case 1:
|
|
34080
34209
|
case "end":
|
|
@@ -34130,9 +34259,9 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
34130
34259
|
});
|
|
34131
34260
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=script&lang=js
|
|
34132
34261
|
/* harmony default export */ var src_wjgl_components_FileListvue_type_script_lang_js = (wjgl_components_FileListvue_type_script_lang_js);
|
|
34133
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=style&index=0&id=
|
|
34134
|
-
var
|
|
34135
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=style&index=0&id=
|
|
34262
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=style&index=0&id=2205a8a3&prod&scoped=true&lang=scss
|
|
34263
|
+
var FileListvue_type_style_index_0_id_2205a8a3_prod_scoped_true_lang_scss = __webpack_require__(3609);
|
|
34264
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=style&index=0&id=2205a8a3&prod&scoped=true&lang=scss
|
|
34136
34265
|
|
|
34137
34266
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue
|
|
34138
34267
|
|
|
@@ -34145,11 +34274,11 @@ var FileListvue_type_style_index_0_id_175a428e_prod_scoped_true_lang_scss = __we
|
|
|
34145
34274
|
|
|
34146
34275
|
var components_FileList_component = normalizeComponent(
|
|
34147
34276
|
src_wjgl_components_FileListvue_type_script_lang_js,
|
|
34148
|
-
|
|
34149
|
-
|
|
34277
|
+
FileListvue_type_template_id_2205a8a3_scoped_true_render,
|
|
34278
|
+
FileListvue_type_template_id_2205a8a3_scoped_true_staticRenderFns,
|
|
34150
34279
|
false,
|
|
34151
34280
|
null,
|
|
34152
|
-
"
|
|
34281
|
+
"2205a8a3",
|
|
34153
34282
|
null
|
|
34154
34283
|
|
|
34155
34284
|
)
|