ecinc-cloud-yoawjzx 9.7.3 → 9.7.4
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 +430 -304
- package/lib/ecyoawjzx.umd.js +428 -302
- 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,7 +268,7 @@ __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
|
|
|
@@ -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,19 +22256,19 @@ 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
|
|
|
@@ -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,11 +27369,11 @@ 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
|
)
|
|
@@ -30429,8 +30491,8 @@ var FileForm_component = normalizeComponent(
|
|
|
30429
30491
|
)
|
|
30430
30492
|
|
|
30431
30493
|
/* 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
|
|
30494
|
+
;// 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
|
|
30495
|
+
var FileListvue_type_template_id_2205a8a3_scoped_true_render = function render() {
|
|
30434
30496
|
var _vm = this,
|
|
30435
30497
|
_c = _vm._self._c;
|
|
30436
30498
|
return _c('div', {
|
|
@@ -31122,7 +31184,14 @@ var FileListvue_type_template_id_175a428e_scoped_true_render = function render()
|
|
|
31122
31184
|
})], 1)], 1)], 1)];
|
|
31123
31185
|
}
|
|
31124
31186
|
}], null, false, 4091563792)
|
|
31125
|
-
})], 1)])
|
|
31187
|
+
})], 1)]), _vm.maxFileSize ? _c('tr', [_c('td', {
|
|
31188
|
+
staticClass: "el-table__cell tdlbl tdw17"
|
|
31189
|
+
}, [_vm._v("备注")]), _c('td', {
|
|
31190
|
+
staticClass: "el-table__cell tdcont tdw83",
|
|
31191
|
+
staticStyle: {
|
|
31192
|
+
"text-align": "left"
|
|
31193
|
+
}
|
|
31194
|
+
}, [_vm._v("说明:上传文件大小不能超过" + _vm._s(_vm.maxFileSize) + "M")])]) : _vm._e()])])])])]), _c('span', {
|
|
31126
31195
|
staticClass: "dialog-footer",
|
|
31127
31196
|
attrs: {
|
|
31128
31197
|
"slot": "footer"
|
|
@@ -31498,7 +31567,7 @@ var FileListvue_type_template_id_175a428e_scoped_true_render = function render()
|
|
|
31498
31567
|
}
|
|
31499
31568
|
})], 1) : _vm._e()], 1);
|
|
31500
31569
|
};
|
|
31501
|
-
var
|
|
31570
|
+
var FileListvue_type_template_id_2205a8a3_scoped_true_staticRenderFns = [];
|
|
31502
31571
|
|
|
31503
31572
|
;// CONCATENATED MODULE: external {"commonjs":"jquery","commonjs2":"jquery","root":"$"}
|
|
31504
31573
|
var external_commonjs_jquery_commonjs2_jquery_root_$_namespaceObject = require("jquery");
|
|
@@ -32610,7 +32679,8 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32610
32679
|
// 文件夹路径数组
|
|
32611
32680
|
styleBagrand: '',
|
|
32612
32681
|
getBorder: false,
|
|
32613
|
-
accountId: ''
|
|
32682
|
+
accountId: '',
|
|
32683
|
+
maxFileSize: '' // 上传文件大小限制(M)
|
|
32614
32684
|
};
|
|
32615
32685
|
},
|
|
32616
32686
|
computed: components_FileListvue_type_script_lang_js_objectSpread({}, mapGetters(['routes', 'sidebar'])),
|
|
@@ -32659,6 +32729,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32659
32729
|
this.$bus.$on('setListDataUrl', this.setListDataUrl);
|
|
32660
32730
|
this.queryData();
|
|
32661
32731
|
this.styleBagrand = this.Cookies.get('uiStyle');
|
|
32732
|
+
this.getMaxFileSize();
|
|
32662
32733
|
},
|
|
32663
32734
|
beforeDestroy: function beforeDestroy() {
|
|
32664
32735
|
this.$bus.$off('selectTree', this.queryData);
|
|
@@ -32667,6 +32738,31 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32667
32738
|
},
|
|
32668
32739
|
mounted: function mounted() {},
|
|
32669
32740
|
methods: {
|
|
32741
|
+
// 获取上传文件大小限制参数(M)
|
|
32742
|
+
getMaxFileSize: function getMaxFileSize() {
|
|
32743
|
+
var _this2 = this;
|
|
32744
|
+
var data = [{
|
|
32745
|
+
compare: '=',
|
|
32746
|
+
field: 'orgCode',
|
|
32747
|
+
merge: true,
|
|
32748
|
+
value: this.loginUser.orgCode
|
|
32749
|
+
}, {
|
|
32750
|
+
compare: '=',
|
|
32751
|
+
field: 'paramName',
|
|
32752
|
+
merge: true,
|
|
32753
|
+
value: 'fileCenter.upload.maxFileSize'
|
|
32754
|
+
}];
|
|
32755
|
+
this.$http({
|
|
32756
|
+
method: 'POST',
|
|
32757
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
32758
|
+
data: data,
|
|
32759
|
+
url: 'base/paramConfig/querydata'
|
|
32760
|
+
}).then(function (res) {
|
|
32761
|
+
if (res.code === 'success' && res.body.listdata.length > 0) {
|
|
32762
|
+
_this2.maxFileSize = res.body.listdata[0].paramValue;
|
|
32763
|
+
}
|
|
32764
|
+
});
|
|
32765
|
+
},
|
|
32670
32766
|
// 选择部门、科室、班组
|
|
32671
32767
|
onSelectSuborgCompleted: function onSelectSuborgCompleted(selectedNodes, attr) {
|
|
32672
32768
|
var selected = '';
|
|
@@ -32732,7 +32828,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32732
32828
|
},
|
|
32733
32829
|
// render函数动态渲染图标
|
|
32734
32830
|
operateFormatter: function operateFormatter(h, row, column, cellValue, index) {
|
|
32735
|
-
var
|
|
32831
|
+
var _this3 = this;
|
|
32736
32832
|
// fiveStar 未收藏 已收藏 fiveStar3
|
|
32737
32833
|
var list = h('span', [h('a', {
|
|
32738
32834
|
attrs: {
|
|
@@ -32975,10 +33071,10 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32975
33071
|
this.$store.state.user.roles.forEach(function (res) {
|
|
32976
33072
|
if (res === 'wjzxDeptMgr') {
|
|
32977
33073
|
// 部门文件管理员
|
|
32978
|
-
|
|
33074
|
+
_this3.wjzxDeptMgr = true;
|
|
32979
33075
|
} else if (res === 'wjzxCompanyMgr') {
|
|
32980
33076
|
// 单位文件管理员
|
|
32981
|
-
|
|
33077
|
+
_this3.wjzxCompanyMgr = true;
|
|
32982
33078
|
}
|
|
32983
33079
|
});
|
|
32984
33080
|
if (this.wjzxDeptMgr && this.type === 1 || this.wjzxCompanyMgr && this.type === 2) {
|
|
@@ -32996,7 +33092,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
32996
33092
|
},
|
|
32997
33093
|
// 权限控制
|
|
32998
33094
|
permissionsControl: function permissionsControl() {
|
|
32999
|
-
var
|
|
33095
|
+
var _this4 = this;
|
|
33000
33096
|
var list = [{
|
|
33001
33097
|
btnName: '下载',
|
|
33002
33098
|
btnIcon: 'wjzx_downcopy.svg',
|
|
@@ -33075,10 +33171,10 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33075
33171
|
this.$store.state.user.roles.forEach(function (res) {
|
|
33076
33172
|
if (res === 'wjzxDeptMgr') {
|
|
33077
33173
|
// 部门文件管理员
|
|
33078
|
-
|
|
33174
|
+
_this4.wjzxDeptMgr = true;
|
|
33079
33175
|
} else if (res === 'wjzxCompanyMgr') {
|
|
33080
33176
|
// 单位文件管理员
|
|
33081
|
-
|
|
33177
|
+
_this4.wjzxCompanyMgr = true;
|
|
33082
33178
|
}
|
|
33083
33179
|
});
|
|
33084
33180
|
if (this.wjzxDeptMgr && this.type === 1 || this.wjzxCompanyMgr && this.type === 2) {
|
|
@@ -33102,11 +33198,11 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33102
33198
|
},
|
|
33103
33199
|
// 文件夹选择分类回调
|
|
33104
33200
|
selectFolderId: function selectFolderId(value) {
|
|
33105
|
-
var
|
|
33201
|
+
var _this5 = this;
|
|
33106
33202
|
this.folderVo.parentId = value[value.length - 1] !== '0' ? value[value.length - 1] : null;
|
|
33107
33203
|
this.treeDataList.forEach(function (item) {
|
|
33108
|
-
if (item.id ===
|
|
33109
|
-
|
|
33204
|
+
if (item.id === _this5.folderVo.parentId) {
|
|
33205
|
+
_this5.folderVo.fullName = item.folderName;
|
|
33110
33206
|
}
|
|
33111
33207
|
});
|
|
33112
33208
|
if (this.folderVo.folderId === '1') {
|
|
@@ -33115,14 +33211,14 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33115
33211
|
},
|
|
33116
33212
|
// 上传文件选择分类回调
|
|
33117
33213
|
selectUploadId: function selectUploadId(value) {
|
|
33118
|
-
var
|
|
33214
|
+
var _this6 = this;
|
|
33119
33215
|
this.uploadVo.folderId = value[value.length - 1];
|
|
33120
33216
|
this.uploadVo.busiDataId = value[value.length - 1];
|
|
33121
33217
|
this.treeDataList.forEach(function (item) {
|
|
33122
|
-
if (item.id ===
|
|
33123
|
-
|
|
33124
|
-
|
|
33125
|
-
|
|
33218
|
+
if (item.id === _this6.uploadVo.folderId) {
|
|
33219
|
+
_this6.uploadVo.fullName = item.folderName;
|
|
33220
|
+
_this6.uploadVo.deptId = item.deptId;
|
|
33221
|
+
_this6.uploadVo.deptName = item.deptName;
|
|
33126
33222
|
}
|
|
33127
33223
|
});
|
|
33128
33224
|
if (this.uploadVo.folderId === '1') {
|
|
@@ -33131,7 +33227,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33131
33227
|
}
|
|
33132
33228
|
},
|
|
33133
33229
|
queryData: function queryData() {
|
|
33134
|
-
var
|
|
33230
|
+
var _this7 = this;
|
|
33135
33231
|
// 加载类型节点数据
|
|
33136
33232
|
this.$http({
|
|
33137
33233
|
method: 'POST',
|
|
@@ -33154,14 +33250,14 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33154
33250
|
node.parentId = '1';
|
|
33155
33251
|
}
|
|
33156
33252
|
});
|
|
33157
|
-
|
|
33158
|
-
|
|
33159
|
-
|
|
33160
|
-
|
|
33161
|
-
|
|
33162
|
-
|
|
33253
|
+
_this7.root.zjfile[0].id = '1';
|
|
33254
|
+
_this7.root.zjfile[0].pId = '0';
|
|
33255
|
+
_this7.root.zjfile[0].value = '1';
|
|
33256
|
+
_this7.root.zjfile[0].parentId = '0';
|
|
33257
|
+
_this7.treeData1 = _this7.treeDataAdapter(_this7.root.zjfile.concat(res.body.diskFolders));
|
|
33258
|
+
_this7.treeDataList = _this7.root.zjfile.concat(res.body.diskFolders);
|
|
33163
33259
|
} else {
|
|
33164
|
-
|
|
33260
|
+
_this7.$alert(res.message, '操作提示', {
|
|
33165
33261
|
type: 'error'
|
|
33166
33262
|
});
|
|
33167
33263
|
}
|
|
@@ -33182,11 +33278,11 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33182
33278
|
return tree;
|
|
33183
33279
|
},
|
|
33184
33280
|
buildTree: function buildTree(data, parentId) {
|
|
33185
|
-
var
|
|
33281
|
+
var _this8 = this;
|
|
33186
33282
|
var tree = [];
|
|
33187
33283
|
data.forEach(function (node) {
|
|
33188
33284
|
if (node.pId === parentId) {
|
|
33189
|
-
var children =
|
|
33285
|
+
var children = _this8.buildTree(data, node.value);
|
|
33190
33286
|
if (children.length > 0) {
|
|
33191
33287
|
node.children = children;
|
|
33192
33288
|
}
|
|
@@ -33197,8 +33293,21 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33197
33293
|
},
|
|
33198
33294
|
// 选择上传文件成功回调
|
|
33199
33295
|
handleUploadChange: function handleUploadChange(file, fileList) {
|
|
33296
|
+
var validList = fileList;
|
|
33297
|
+
if (this.maxFileSize) {
|
|
33298
|
+
var limit = Number(this.maxFileSize) * 1024 * 1024;
|
|
33299
|
+
var overFiles = fileList.filter(function (res) {
|
|
33300
|
+
return res.raw && res.raw.size > limit;
|
|
33301
|
+
});
|
|
33302
|
+
if (overFiles.length > 0) {
|
|
33303
|
+
validList = fileList.filter(function (res) {
|
|
33304
|
+
return overFiles.indexOf(res) === -1;
|
|
33305
|
+
});
|
|
33306
|
+
this.$message.error('文件' + overFiles[0].name + '超过上传大小限制' + this.maxFileSize + 'M,禁止上传');
|
|
33307
|
+
}
|
|
33308
|
+
}
|
|
33200
33309
|
var name = '';
|
|
33201
|
-
|
|
33310
|
+
validList.forEach(function (res) {
|
|
33202
33311
|
if (name) {
|
|
33203
33312
|
name += ',' + res.name;
|
|
33204
33313
|
} else {
|
|
@@ -33206,11 +33315,11 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33206
33315
|
}
|
|
33207
33316
|
});
|
|
33208
33317
|
this.uploadVo.attachFileName = name;
|
|
33209
|
-
this.uploadVo.attach =
|
|
33318
|
+
this.uploadVo.attach = validList;
|
|
33210
33319
|
},
|
|
33211
33320
|
// 上传文件
|
|
33212
33321
|
upload: function upload() {
|
|
33213
|
-
var
|
|
33322
|
+
var _this9 = this;
|
|
33214
33323
|
console.log('上传');
|
|
33215
33324
|
this.dialogFormVisibleFolder = true;
|
|
33216
33325
|
this.isUpload = true;
|
|
@@ -33221,10 +33330,10 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33221
33330
|
// this.uploadVo.fullName1 = cascadeIds
|
|
33222
33331
|
console.log(cascadeIds, 'cascadeIds');
|
|
33223
33332
|
this.$nextTick(function () {
|
|
33224
|
-
console.log(
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
|
|
33333
|
+
console.log(_this9.$refs.cascader, 'this.$refs.cascader');
|
|
33334
|
+
_this9.$refs.cascader.inputValue = _this9.uploadVo.fullName;
|
|
33335
|
+
_this9.$refs.cascader.checkedNodes = cascadeIds;
|
|
33336
|
+
_this9.$refs.cascader.checkedValue = cascadeIds;
|
|
33228
33337
|
});
|
|
33229
33338
|
this.uploadVo.deptId = this.treeNode.deptId;
|
|
33230
33339
|
this.uploadVo.deptName = this.treeNode.deptName;
|
|
@@ -33256,43 +33365,60 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33256
33365
|
},
|
|
33257
33366
|
// 上传文件保存
|
|
33258
33367
|
groupingConfirmFolder: function groupingConfirmFolder() {
|
|
33259
|
-
var
|
|
33368
|
+
var _this10 = this;
|
|
33260
33369
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
33261
33370
|
var _this;
|
|
33262
33371
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33263
33372
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33264
33373
|
case 0:
|
|
33265
|
-
_this =
|
|
33266
|
-
|
|
33267
|
-
var index, element;
|
|
33374
|
+
_this = _this10;
|
|
33375
|
+
_this10.formValidate( /*#__PURE__*/components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
33376
|
+
var limit, overFile, index, element;
|
|
33268
33377
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33269
33378
|
while (1) switch (_context.prev = _context.next) {
|
|
33270
33379
|
case 0:
|
|
33271
|
-
|
|
33380
|
+
if (!_this10.maxFileSize) {
|
|
33381
|
+
_context.next = 6;
|
|
33382
|
+
break;
|
|
33383
|
+
}
|
|
33384
|
+
limit = Number(_this10.maxFileSize) * 1024 * 1024;
|
|
33385
|
+
overFile = _this.uploadVo.attach.find(function (res) {
|
|
33386
|
+
return res.raw && res.raw.size > limit;
|
|
33387
|
+
});
|
|
33388
|
+
if (!overFile) {
|
|
33389
|
+
_context.next = 6;
|
|
33390
|
+
break;
|
|
33391
|
+
}
|
|
33392
|
+
_this10.$alert('文件' + overFile.name + '超过上传大小限制' + _this10.maxFileSize + 'M,禁止上传', '操作提示', {
|
|
33393
|
+
type: 'warning'
|
|
33394
|
+
});
|
|
33395
|
+
return _context.abrupt("return");
|
|
33396
|
+
case 6:
|
|
33397
|
+
_this10.updateLoading = true;
|
|
33272
33398
|
// _this.uploadVo.attach.forEach(res => {
|
|
33273
33399
|
// this.uploadFile(res)
|
|
33274
33400
|
// })
|
|
33275
33401
|
index = 0;
|
|
33276
|
-
case
|
|
33402
|
+
case 8:
|
|
33277
33403
|
if (!(index < _this.uploadVo.attach.length)) {
|
|
33278
|
-
_context.next =
|
|
33404
|
+
_context.next = 17;
|
|
33279
33405
|
break;
|
|
33280
33406
|
}
|
|
33281
33407
|
element = _this.uploadVo.attach[index];
|
|
33282
|
-
|
|
33283
|
-
|
|
33284
|
-
_context.next =
|
|
33285
|
-
return
|
|
33286
|
-
case
|
|
33408
|
+
_this10.uploadVo.progress = 0;
|
|
33409
|
+
_this10.uploadVo.uploadingFile = element.name;
|
|
33410
|
+
_context.next = 14;
|
|
33411
|
+
return _this10.uploadFile(element, index);
|
|
33412
|
+
case 14:
|
|
33287
33413
|
index++;
|
|
33288
|
-
_context.next =
|
|
33414
|
+
_context.next = 8;
|
|
33289
33415
|
break;
|
|
33290
|
-
case
|
|
33291
|
-
|
|
33292
|
-
|
|
33416
|
+
case 17:
|
|
33417
|
+
_this10.updateLoading = false;
|
|
33418
|
+
_this10.dialogFormVisibleFolder = false;
|
|
33293
33419
|
// 刷新列表
|
|
33294
|
-
|
|
33295
|
-
case
|
|
33420
|
+
_this10.setListDataUrl();
|
|
33421
|
+
case 20:
|
|
33296
33422
|
case "end":
|
|
33297
33423
|
return _context.stop();
|
|
33298
33424
|
}
|
|
@@ -33307,7 +33433,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33307
33433
|
},
|
|
33308
33434
|
// 上传文件接口
|
|
33309
33435
|
uploadFile: function uploadFile(item, index) {
|
|
33310
|
-
var
|
|
33436
|
+
var _this11 = this;
|
|
33311
33437
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
33312
33438
|
var files, fd, config, url;
|
|
33313
33439
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -33318,35 +33444,35 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33318
33444
|
fd.append('file', files);
|
|
33319
33445
|
fd.append('module', 'disk');
|
|
33320
33446
|
// fd.append('attachsSize', val.size)
|
|
33321
|
-
fd.append('busiDataId',
|
|
33447
|
+
fd.append('busiDataId', _this11.uploadVo.folderId);
|
|
33322
33448
|
fd.append('attachsType', 'ATTACH');
|
|
33323
|
-
fd.append('fileDiffer',
|
|
33449
|
+
fd.append('fileDiffer', _this11.type);
|
|
33324
33450
|
fd.append('attachsName', item.name);
|
|
33325
|
-
fd.append('folderId',
|
|
33326
|
-
fd.append('deptId',
|
|
33327
|
-
fd.append('deptName',
|
|
33451
|
+
fd.append('folderId', _this11.uploadVo.folderId);
|
|
33452
|
+
fd.append('deptId', _this11.uploadVo.deptId);
|
|
33453
|
+
fd.append('deptName', _this11.uploadVo.deptName);
|
|
33328
33454
|
config = {
|
|
33329
33455
|
onUploadProgress: function onUploadProgress(progressEvent) {
|
|
33330
33456
|
var complete = progressEvent.loaded / progressEvent.total * 100 | 0;
|
|
33331
|
-
|
|
33332
|
-
|
|
33457
|
+
_this11.uploadVo.progress = complete;
|
|
33458
|
+
_this11.$forceUpdate();
|
|
33333
33459
|
},
|
|
33334
33460
|
timeout: 30 * 60 * 1000
|
|
33335
33461
|
};
|
|
33336
33462
|
url = '/disk/file/upload';
|
|
33337
33463
|
_context3.next = 15;
|
|
33338
|
-
return
|
|
33464
|
+
return _this11.$http(components_FileListvue_type_script_lang_js_objectSpread(components_FileListvue_type_script_lang_js_objectSpread({
|
|
33339
33465
|
method: 'POST',
|
|
33340
33466
|
url: url
|
|
33341
33467
|
}, config), {}, {
|
|
33342
33468
|
data: fd
|
|
33343
33469
|
})).then(function (res) {
|
|
33344
33470
|
if (res.code === 'success') {
|
|
33345
|
-
if (index ===
|
|
33346
|
-
|
|
33471
|
+
if (index === _this11.uploadVo.attach.length - 1) {
|
|
33472
|
+
_this11.$message.success(res.message);
|
|
33347
33473
|
}
|
|
33348
33474
|
} else {
|
|
33349
|
-
|
|
33475
|
+
_this11.$message.error(res.message);
|
|
33350
33476
|
return;
|
|
33351
33477
|
}
|
|
33352
33478
|
});
|
|
@@ -33359,7 +33485,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33359
33485
|
},
|
|
33360
33486
|
// 新建文件夹
|
|
33361
33487
|
addFolder: function addFolder() {
|
|
33362
|
-
var
|
|
33488
|
+
var _this12 = this;
|
|
33363
33489
|
this.addOrupdateContacts = true;
|
|
33364
33490
|
this.isUpload = false;
|
|
33365
33491
|
this.$http({
|
|
@@ -33367,88 +33493,88 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33367
33493
|
method: 'POST'
|
|
33368
33494
|
}).then(function (res) {
|
|
33369
33495
|
if (res.code === 'success') {
|
|
33370
|
-
|
|
33371
|
-
|
|
33372
|
-
|
|
33373
|
-
var cascadeIds =
|
|
33496
|
+
_this12.folderVo = res.body.vo;
|
|
33497
|
+
_this12.folderVo.parentId = _this12.treeNode.id !== '0' ? _this12.treeNode.id : null;
|
|
33498
|
+
_this12.folderVo.fullName = _this12.treeNode.folderName;
|
|
33499
|
+
var cascadeIds = _this12.findCascadeIds(_this12.treeData1, _this12.folderVo.fullName);
|
|
33374
33500
|
console.log(cascadeIds, 'cascadeIds');
|
|
33375
33501
|
// this.folderVo.fullName1 = cascadeIds
|
|
33376
|
-
|
|
33377
|
-
|
|
33378
|
-
|
|
33379
|
-
|
|
33380
|
-
|
|
33381
|
-
console.log(
|
|
33502
|
+
_this12.dialogFormVisible = true;
|
|
33503
|
+
_this12.$nextTick(function () {
|
|
33504
|
+
_this12.$refs.cascaderServer.inputValue = _this12.folderVo.fullName;
|
|
33505
|
+
_this12.$refs.cascaderServer.checkedNodes = cascadeIds;
|
|
33506
|
+
_this12.$refs.cascaderServer.checkedValue = cascadeIds;
|
|
33507
|
+
console.log(_this12.$refs.cascaderServer, 'this.$refs.cascaderServer');
|
|
33382
33508
|
});
|
|
33383
|
-
if (
|
|
33384
|
-
|
|
33385
|
-
|
|
33386
|
-
if (!
|
|
33387
|
-
|
|
33509
|
+
if (_this12.type === 1) {
|
|
33510
|
+
_this12.folderVo.deptId = _this12.treeNode.deptId;
|
|
33511
|
+
_this12.folderVo.deptName = _this12.treeNode.deptName;
|
|
33512
|
+
if (!_this12.treeNode.fullId) {
|
|
33513
|
+
_this12.folderVo.status = 3;
|
|
33388
33514
|
}
|
|
33389
33515
|
} else {
|
|
33390
|
-
|
|
33391
|
-
|
|
33516
|
+
_this12.folderVo.deptId = '';
|
|
33517
|
+
_this12.folderVo.deptName = '';
|
|
33392
33518
|
}
|
|
33393
33519
|
} else {
|
|
33394
|
-
|
|
33520
|
+
_this12.$message.error(res.message);
|
|
33395
33521
|
}
|
|
33396
33522
|
});
|
|
33397
33523
|
},
|
|
33398
33524
|
// 保存文件夹
|
|
33399
33525
|
groupingConfirm: function groupingConfirm() {
|
|
33400
|
-
var
|
|
33526
|
+
var _this13 = this;
|
|
33401
33527
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
33402
33528
|
var res;
|
|
33403
33529
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
33404
33530
|
while (1) switch (_context5.prev = _context5.next) {
|
|
33405
33531
|
case 0:
|
|
33406
33532
|
res = null;
|
|
33407
|
-
|
|
33533
|
+
_this13.formValidate( /*#__PURE__*/components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
33408
33534
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33409
33535
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33410
33536
|
case 0:
|
|
33411
|
-
|
|
33412
|
-
if (
|
|
33537
|
+
_this13.folderVo.folderType = _this13.type; // 文件类型 0个人 1部门 2单位
|
|
33538
|
+
if (_this13.folderVo.folderName) {
|
|
33413
33539
|
_context4.next = 5;
|
|
33414
33540
|
break;
|
|
33415
33541
|
}
|
|
33416
|
-
|
|
33542
|
+
_this13.$alert('请输入文件夹名称', '提示', {
|
|
33417
33543
|
type: 'warning'
|
|
33418
33544
|
});
|
|
33419
33545
|
_context4.next = 17;
|
|
33420
33546
|
break;
|
|
33421
33547
|
case 5:
|
|
33422
|
-
delete
|
|
33423
|
-
if (
|
|
33424
|
-
|
|
33548
|
+
delete _this13.folderVo.fullName1;
|
|
33549
|
+
if (_this13.folderVo.parentId === '1') {
|
|
33550
|
+
_this13.folderVo.parentId = null;
|
|
33425
33551
|
}
|
|
33426
|
-
if (!
|
|
33552
|
+
if (!_this13.addOrupdateContacts) {
|
|
33427
33553
|
_context4.next = 13;
|
|
33428
33554
|
break;
|
|
33429
33555
|
}
|
|
33430
33556
|
_context4.next = 10;
|
|
33431
|
-
return
|
|
33557
|
+
return _this13.$app.insert(_this13.fileMoudlueInfo.insertUrl, _this13.folderVo);
|
|
33432
33558
|
case 10:
|
|
33433
33559
|
res = _context4.sent;
|
|
33434
33560
|
_context4.next = 16;
|
|
33435
33561
|
break;
|
|
33436
33562
|
case 13:
|
|
33437
33563
|
_context4.next = 15;
|
|
33438
|
-
return
|
|
33564
|
+
return _this13.$app.update(_this13.fileMoudlueInfo.updateUrl, _this13.folderVo);
|
|
33439
33565
|
case 15:
|
|
33440
33566
|
res = _context4.sent;
|
|
33441
33567
|
case 16:
|
|
33442
33568
|
if (res.code === 'success') {
|
|
33443
|
-
|
|
33444
|
-
|
|
33445
|
-
|
|
33569
|
+
_this13.$message.success(res.message);
|
|
33570
|
+
_this13.dialogFormVisible = false;
|
|
33571
|
+
_this13.folderVo = {};
|
|
33446
33572
|
// 刷新树
|
|
33447
|
-
|
|
33573
|
+
_this13.$bus.emit('getTreeList', _this13.treeNode);
|
|
33448
33574
|
// 刷新选择分类
|
|
33449
|
-
|
|
33575
|
+
_this13.queryData();
|
|
33450
33576
|
} else {
|
|
33451
|
-
|
|
33577
|
+
_this13.$message.error(res.message);
|
|
33452
33578
|
}
|
|
33453
33579
|
case 17:
|
|
33454
33580
|
case "end":
|
|
@@ -33465,30 +33591,30 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33465
33591
|
},
|
|
33466
33592
|
// 编辑文件
|
|
33467
33593
|
editObjectFile: function editObjectFile(row) {
|
|
33468
|
-
var
|
|
33594
|
+
var _this14 = this;
|
|
33469
33595
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee6() {
|
|
33470
33596
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
33471
33597
|
while (1) switch (_context6.prev = _context6.next) {
|
|
33472
33598
|
case 0:
|
|
33473
33599
|
// 文件夹
|
|
33474
33600
|
if (Number(row.resoureType) === 1) {
|
|
33475
|
-
|
|
33601
|
+
_this14.$bus.emit('editMenu', '文件夹', row, '重命名');
|
|
33476
33602
|
} else {
|
|
33477
33603
|
// 文件
|
|
33478
|
-
|
|
33604
|
+
_this14.fileVo = components_FileListvue_type_script_lang_js_objectSpread({}, row);
|
|
33479
33605
|
// 重点在这
|
|
33480
|
-
|
|
33481
|
-
|
|
33482
|
-
if (!
|
|
33483
|
-
|
|
33606
|
+
_this14.fileVo.name = row.name.substring(0, row.name.lastIndexOf('.'));
|
|
33607
|
+
_this14.fileVo.oldType = row.name.substring(row.name.lastIndexOf('.'));
|
|
33608
|
+
if (!_this14.fileVo.permissionType) {
|
|
33609
|
+
_this14.fileVo.permissionType = 1;
|
|
33484
33610
|
}
|
|
33485
|
-
if (!
|
|
33486
|
-
|
|
33487
|
-
|
|
33488
|
-
|
|
33611
|
+
if (!_this14.fileVo.passenger.filePermission) {
|
|
33612
|
+
_this14.fileVo.passenger.filePermission = {};
|
|
33613
|
+
_this14.fileVo.passenger.filePermission.permissionName = '';
|
|
33614
|
+
_this14.fileVo.passenger.filePermission.permissionId = '';
|
|
33489
33615
|
}
|
|
33490
|
-
|
|
33491
|
-
|
|
33616
|
+
_this14.filePermissionName = _this14.fileVo.passenger.filePermission.permissionName || '';
|
|
33617
|
+
_this14.dialogFormVisibleFile = true;
|
|
33492
33618
|
}
|
|
33493
33619
|
case 1:
|
|
33494
33620
|
case "end":
|
|
@@ -33499,28 +33625,28 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33499
33625
|
},
|
|
33500
33626
|
// 重命名确定
|
|
33501
33627
|
fileConfirm: function fileConfirm() {
|
|
33502
|
-
var
|
|
33628
|
+
var _this15 = this;
|
|
33503
33629
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee8() {
|
|
33504
33630
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
33505
33631
|
while (1) switch (_context8.prev = _context8.next) {
|
|
33506
33632
|
case 0:
|
|
33507
|
-
|
|
33633
|
+
_this15.formValidate( /*#__PURE__*/components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee7() {
|
|
33508
33634
|
var res;
|
|
33509
33635
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
33510
33636
|
while (1) switch (_context7.prev = _context7.next) {
|
|
33511
33637
|
case 0:
|
|
33512
33638
|
res = null; // 组合文件名格式
|
|
33513
|
-
|
|
33639
|
+
_this15.fileVo.name = _this15.fileVo.name + _this15.fileVo.oldType;
|
|
33514
33640
|
_context7.next = 4;
|
|
33515
|
-
return
|
|
33641
|
+
return _this15.$app.update(_this15.moduleInfo.updateUrl, _this15.fileVo);
|
|
33516
33642
|
case 4:
|
|
33517
33643
|
res = _context7.sent;
|
|
33518
33644
|
if (res.code === 'success') {
|
|
33519
|
-
|
|
33520
|
-
|
|
33521
|
-
|
|
33645
|
+
_this15.$message.success(res.message);
|
|
33646
|
+
_this15.dialogFormVisibleFile = false;
|
|
33647
|
+
_this15.setListDataUrl();
|
|
33522
33648
|
} else {
|
|
33523
|
-
|
|
33649
|
+
_this15.$message.error(res.message);
|
|
33524
33650
|
}
|
|
33525
33651
|
case 6:
|
|
33526
33652
|
case "end":
|
|
@@ -33537,7 +33663,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33537
33663
|
},
|
|
33538
33664
|
// 批量分享文件
|
|
33539
33665
|
allShare: function allShare() {
|
|
33540
|
-
var
|
|
33666
|
+
var _this16 = this;
|
|
33541
33667
|
this.shareType = 'all';
|
|
33542
33668
|
if (this.rowsSelected.length < 1) {
|
|
33543
33669
|
this.$alert('请选择要分享的文件!', '操作提示', {
|
|
@@ -33546,7 +33672,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33546
33672
|
return;
|
|
33547
33673
|
}
|
|
33548
33674
|
this.$nextTick(function () {
|
|
33549
|
-
|
|
33675
|
+
_this16.$bus.emit('openBusiform', _this16.moduleInfoShare, null, 1);
|
|
33550
33676
|
});
|
|
33551
33677
|
},
|
|
33552
33678
|
// 操作列分享记录
|
|
@@ -33555,7 +33681,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33555
33681
|
},
|
|
33556
33682
|
// 转发邮件
|
|
33557
33683
|
writeMail: function writeMail() {
|
|
33558
|
-
var
|
|
33684
|
+
var _this17 = this;
|
|
33559
33685
|
if (this.rowsSelected.length < 1) {
|
|
33560
33686
|
this.$alert('请选择要转发的文件!', '操作提示', {
|
|
33561
33687
|
type: 'warning'
|
|
@@ -33565,7 +33691,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33565
33691
|
try {
|
|
33566
33692
|
this.rowsSelected.forEach(function (res) {
|
|
33567
33693
|
if (Number(res.resoureType) === 1) {
|
|
33568
|
-
|
|
33694
|
+
_this17.$alert('文件夹不可转发,请重新选择!', '操作提示', {
|
|
33569
33695
|
type: 'warning'
|
|
33570
33696
|
});
|
|
33571
33697
|
throw new Error(true);
|
|
@@ -33590,8 +33716,8 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33590
33716
|
fileType: 'ATTACH',
|
|
33591
33717
|
id: res.downId,
|
|
33592
33718
|
onlineFile: null,
|
|
33593
|
-
orgCode:
|
|
33594
|
-
orgName:
|
|
33719
|
+
orgCode: _this17.loginUser.orgCode,
|
|
33720
|
+
orgName: _this17.loginUser.orgName,
|
|
33595
33721
|
originalName: res.originalName,
|
|
33596
33722
|
updateBy: res.createName,
|
|
33597
33723
|
updateTime: res.createDate,
|
|
@@ -33603,7 +33729,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33603
33729
|
},
|
|
33604
33730
|
// 收藏
|
|
33605
33731
|
collection: function collection(val) {
|
|
33606
|
-
var
|
|
33732
|
+
var _this18 = this;
|
|
33607
33733
|
if (this.rowsSelected.length < 1) {
|
|
33608
33734
|
this.$alert('请选择要收藏的文件!', '操作提示', {
|
|
33609
33735
|
type: 'warning'
|
|
@@ -33622,18 +33748,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33622
33748
|
this.$confirm('确认要收藏选中的文件吗?', '确认操作', {
|
|
33623
33749
|
type: 'warning'
|
|
33624
33750
|
}).then(function () {
|
|
33625
|
-
|
|
33751
|
+
_this18.$http({
|
|
33626
33752
|
method: 'POST',
|
|
33627
33753
|
contentType: 'application/x-www-form-urlencoded',
|
|
33628
33754
|
data: list,
|
|
33629
33755
|
url: '/disk/collect/insert'
|
|
33630
33756
|
}).then(function (res) {
|
|
33631
33757
|
if (res.code === 'success') {
|
|
33632
|
-
|
|
33758
|
+
_this18.$message.success(res.message);
|
|
33633
33759
|
// 刷新列表
|
|
33634
|
-
|
|
33760
|
+
_this18.setListDataUrl();
|
|
33635
33761
|
} else {
|
|
33636
|
-
|
|
33762
|
+
_this18.$message.error(res.message);
|
|
33637
33763
|
}
|
|
33638
33764
|
});
|
|
33639
33765
|
}).catch(function (err) {
|
|
@@ -33644,7 +33770,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33644
33770
|
},
|
|
33645
33771
|
// 单个收藏
|
|
33646
33772
|
cancel: function cancel(row) {
|
|
33647
|
-
var
|
|
33773
|
+
var _this19 = this;
|
|
33648
33774
|
var list = [];
|
|
33649
33775
|
list.push({
|
|
33650
33776
|
fileId: row.id,
|
|
@@ -33655,18 +33781,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33655
33781
|
this.$confirm('确认要收藏选中的文件吗?', '确认操作', {
|
|
33656
33782
|
type: 'warning'
|
|
33657
33783
|
}).then(function () {
|
|
33658
|
-
|
|
33784
|
+
_this19.$http({
|
|
33659
33785
|
method: 'POST',
|
|
33660
33786
|
contentType: 'application/x-www-form-urlencoded',
|
|
33661
33787
|
data: list,
|
|
33662
33788
|
url: '/disk/collect/insert'
|
|
33663
33789
|
}).then(function (res) {
|
|
33664
33790
|
if (res.code === 'success') {
|
|
33665
|
-
|
|
33791
|
+
_this19.$message.success(res.message);
|
|
33666
33792
|
// 刷新列表
|
|
33667
|
-
|
|
33793
|
+
_this19.$bus.$emit('refreshListData');
|
|
33668
33794
|
} else {
|
|
33669
|
-
|
|
33795
|
+
_this19.$message.error(res.message);
|
|
33670
33796
|
}
|
|
33671
33797
|
});
|
|
33672
33798
|
}).catch(function (err) {
|
|
@@ -33677,7 +33803,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33677
33803
|
},
|
|
33678
33804
|
// 单个取消收藏
|
|
33679
33805
|
qxCancel: function qxCancel(row) {
|
|
33680
|
-
var
|
|
33806
|
+
var _this20 = this;
|
|
33681
33807
|
this.$confirm('确认取消该收藏文件吗?', '确认操作', {
|
|
33682
33808
|
type: 'warning'
|
|
33683
33809
|
}).then(function () {
|
|
@@ -33685,18 +33811,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33685
33811
|
ids: row.id,
|
|
33686
33812
|
status: 0
|
|
33687
33813
|
};
|
|
33688
|
-
|
|
33814
|
+
_this20.$http({
|
|
33689
33815
|
method: 'POST',
|
|
33690
33816
|
contentType: 'application/x-www-form-urlencoded',
|
|
33691
33817
|
params: params,
|
|
33692
33818
|
url: '/disk/vwcollectfile/updateCollect'
|
|
33693
33819
|
}).then(function (res) {
|
|
33694
33820
|
if (res.code === 'success') {
|
|
33695
|
-
|
|
33821
|
+
_this20.$message.success(res.message);
|
|
33696
33822
|
// 刷新列表
|
|
33697
|
-
|
|
33823
|
+
_this20.$bus.$emit('refreshListData');
|
|
33698
33824
|
} else {
|
|
33699
|
-
|
|
33825
|
+
_this20.$message.error(res.message);
|
|
33700
33826
|
}
|
|
33701
33827
|
});
|
|
33702
33828
|
}).catch(function (err) {
|
|
@@ -33707,7 +33833,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33707
33833
|
},
|
|
33708
33834
|
// 批量删除
|
|
33709
33835
|
allDeleteIds: function allDeleteIds() {
|
|
33710
|
-
var
|
|
33836
|
+
var _this21 = this;
|
|
33711
33837
|
if (this.rowsSelected.length < 1) {
|
|
33712
33838
|
this.$alert('请选择需要删除的文件!', '操作提示', {
|
|
33713
33839
|
type: 'warning'
|
|
@@ -33718,7 +33844,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33718
33844
|
type: 'warning'
|
|
33719
33845
|
}).then(function () {
|
|
33720
33846
|
var id = '';
|
|
33721
|
-
|
|
33847
|
+
_this21.rowsSelected.forEach(function (res) {
|
|
33722
33848
|
if (id) {
|
|
33723
33849
|
id += ',' + res.id;
|
|
33724
33850
|
} else {
|
|
@@ -33728,32 +33854,32 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33728
33854
|
var params = {
|
|
33729
33855
|
ids: id
|
|
33730
33856
|
};
|
|
33731
|
-
|
|
33732
|
-
url:
|
|
33857
|
+
_this21.$http({
|
|
33858
|
+
url: _this21.moduleInfo.delUrl,
|
|
33733
33859
|
method: 'DELETE',
|
|
33734
33860
|
contentType: 'application/x-www-form-urlencoded',
|
|
33735
33861
|
params: params
|
|
33736
33862
|
}).then(function (res) {
|
|
33737
33863
|
if (res.code === 'success') {
|
|
33738
|
-
|
|
33864
|
+
_this21.$message({
|
|
33739
33865
|
message: '删除成功',
|
|
33740
33866
|
type: 'success'
|
|
33741
33867
|
});
|
|
33742
33868
|
// 刷新树
|
|
33743
|
-
|
|
33869
|
+
_this21.$bus.emit('getTreeList', _this21.treeNode);
|
|
33744
33870
|
// 刷新选择分类
|
|
33745
|
-
|
|
33871
|
+
_this21.queryData();
|
|
33746
33872
|
// 刷新列表
|
|
33747
|
-
|
|
33873
|
+
_this21.$bus.$emit('refreshListData');
|
|
33748
33874
|
} else {
|
|
33749
|
-
|
|
33875
|
+
_this21.$message.error(res.message);
|
|
33750
33876
|
}
|
|
33751
33877
|
});
|
|
33752
33878
|
}).catch(function () {});
|
|
33753
33879
|
},
|
|
33754
33880
|
// 操作列删除
|
|
33755
33881
|
deleteIds: function deleteIds(row) {
|
|
33756
|
-
var
|
|
33882
|
+
var _this22 = this;
|
|
33757
33883
|
var text = '您是否确认删除该文件?';
|
|
33758
33884
|
if (Number(row.resoureType) === 1) {
|
|
33759
33885
|
text = '您是否确认删除该文件夹?';
|
|
@@ -33764,32 +33890,32 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33764
33890
|
var params = {
|
|
33765
33891
|
ids: row.id
|
|
33766
33892
|
};
|
|
33767
|
-
|
|
33768
|
-
url:
|
|
33893
|
+
_this22.$http({
|
|
33894
|
+
url: _this22.moduleInfo.delUrl,
|
|
33769
33895
|
method: 'DELETE',
|
|
33770
33896
|
contentType: 'application/x-www-form-urlencoded',
|
|
33771
33897
|
params: params
|
|
33772
33898
|
}).then(function (res) {
|
|
33773
33899
|
if (res.code === 'success') {
|
|
33774
|
-
|
|
33900
|
+
_this22.$message({
|
|
33775
33901
|
message: '删除成功',
|
|
33776
33902
|
type: 'success'
|
|
33777
33903
|
});
|
|
33778
33904
|
// 刷新树
|
|
33779
|
-
|
|
33905
|
+
_this22.$bus.emit('getTreeList', _this22.treeNode);
|
|
33780
33906
|
// 刷新选择分类
|
|
33781
|
-
|
|
33907
|
+
_this22.queryData();
|
|
33782
33908
|
// 刷新列表
|
|
33783
|
-
|
|
33909
|
+
_this22.$bus.$emit('refreshListData');
|
|
33784
33910
|
} else {
|
|
33785
|
-
|
|
33911
|
+
_this22.$message.error(res.message);
|
|
33786
33912
|
}
|
|
33787
33913
|
});
|
|
33788
33914
|
}).catch(function () {});
|
|
33789
33915
|
},
|
|
33790
33916
|
// 路由跳转
|
|
33791
33917
|
gotoPages: function gotoPages(code) {
|
|
33792
|
-
var
|
|
33918
|
+
var _this23 = this;
|
|
33793
33919
|
var toPath = this.getMenuCode(code);
|
|
33794
33920
|
if (toPath && toPath.path) {
|
|
33795
33921
|
var path;
|
|
@@ -33817,8 +33943,8 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33817
33943
|
fileType: 'ATTACH',
|
|
33818
33944
|
id: res.id,
|
|
33819
33945
|
onlineFile: null,
|
|
33820
|
-
orgCode:
|
|
33821
|
-
orgName:
|
|
33946
|
+
orgCode: _this23.loginUser.orgCode,
|
|
33947
|
+
orgName: _this23.loginUser.orgName,
|
|
33822
33948
|
originalName: res.originalName,
|
|
33823
33949
|
updateBy: res.createName,
|
|
33824
33950
|
updateTime: res.createDate,
|
|
@@ -33969,18 +34095,18 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33969
34095
|
},
|
|
33970
34096
|
// 请求接口前先判断是个人,部门,单位
|
|
33971
34097
|
isBeforeOpenSetListDataUrl: function isBeforeOpenSetListDataUrl() {
|
|
33972
|
-
var
|
|
34098
|
+
var _this24 = this;
|
|
33973
34099
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee9() {
|
|
33974
|
-
var
|
|
34100
|
+
var _this24$loginUser, staffList, orgCode, personId;
|
|
33975
34101
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
33976
34102
|
while (1) switch (_context9.prev = _context9.next) {
|
|
33977
34103
|
case 0:
|
|
33978
|
-
|
|
34104
|
+
_this24$loginUser = components_FileListvue_type_script_lang_js_objectSpread({}, _this24.loginUser), staffList = _this24$loginUser.staffList, orgCode = _this24$loginUser.orgCode, personId = _this24$loginUser.personId;
|
|
33979
34105
|
return _context9.abrupt("return", new Promise(function (resolve) {
|
|
33980
|
-
if (
|
|
34106
|
+
if (_this24.type === 0) {
|
|
33981
34107
|
// 个人
|
|
33982
|
-
|
|
33983
|
-
|
|
34108
|
+
_this24.accountId = '';
|
|
34109
|
+
_this24.$http({
|
|
33984
34110
|
method: 'GET',
|
|
33985
34111
|
url: '/disk/account/getByPersonId',
|
|
33986
34112
|
params: {
|
|
@@ -33988,13 +34114,13 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
33988
34114
|
}
|
|
33989
34115
|
}).then(function (resp) {
|
|
33990
34116
|
if (resp.code === 'success') {
|
|
33991
|
-
|
|
34117
|
+
_this24.accountId = resp.body.accountId;
|
|
33992
34118
|
} else {
|
|
33993
|
-
|
|
34119
|
+
_this24.accountId = '';
|
|
33994
34120
|
}
|
|
33995
|
-
resolve(";accountId:".concat(
|
|
34121
|
+
resolve(";accountId:".concat(_this24.accountId || ''));
|
|
33996
34122
|
});
|
|
33997
|
-
} else if (
|
|
34123
|
+
} else if (_this24.type === 1) {
|
|
33998
34124
|
// 部门
|
|
33999
34125
|
var str = '';
|
|
34000
34126
|
staffList.forEach(function (res) {
|
|
@@ -34005,7 +34131,7 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
34005
34131
|
}
|
|
34006
34132
|
});
|
|
34007
34133
|
resolve(";deptId:".concat(str));
|
|
34008
|
-
} else if (
|
|
34134
|
+
} else if (_this24.type === 2) {
|
|
34009
34135
|
// 单位
|
|
34010
34136
|
resolve(";orgCode:".concat(orgCode));
|
|
34011
34137
|
}
|
|
@@ -34023,58 +34149,58 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
34023
34149
|
},
|
|
34024
34150
|
// 请求接口
|
|
34025
34151
|
setListDataUrl: function setListDataUrl(id, row, type) {
|
|
34026
|
-
var
|
|
34152
|
+
var _this25 = this;
|
|
34027
34153
|
return components_FileListvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/components_FileListvue_type_script_lang_js_regeneratorRuntime().mark(function _callee10() {
|
|
34028
34154
|
return components_FileListvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
34029
34155
|
while (1) switch (_context10.prev = _context10.next) {
|
|
34030
34156
|
case 0:
|
|
34031
|
-
|
|
34157
|
+
_this25.isBeforeOpenSetListDataUrl().then(function (res) {
|
|
34032
34158
|
console.log(1530, res);
|
|
34033
|
-
var
|
|
34034
|
-
orgCode =
|
|
34159
|
+
var _this25$loginUser = components_FileListvue_type_script_lang_js_objectSpread({}, _this25.loginUser),
|
|
34160
|
+
orgCode = _this25$loginUser.orgCode;
|
|
34035
34161
|
var listDataUrl = '/disk/vwfilefolder/listdata';
|
|
34036
34162
|
var urlsearch = '';
|
|
34037
34163
|
if (id !== '0' && id) {
|
|
34038
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' + id + ';fileDiffer:' +
|
|
34164
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' + id + ';fileDiffer:' + _this25.type;
|
|
34039
34165
|
} 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(
|
|
34166
|
+
if (_this25.searchType === '0') {
|
|
34167
|
+
if (Number(_this25.treeNode.id) === 0) {
|
|
34168
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';fileDiffer:' + _this25.type + ';folderId:null'; // 全部
|
|
34169
|
+
} else if (Number(_this25.treeNode.id) === 1) {
|
|
34170
|
+
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
34171
|
} else {
|
|
34046
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' +
|
|
34172
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';folderId:' + _this25.treeNode.id + ';fileDiffer:' + _this25.type;
|
|
34047
34173
|
}
|
|
34048
|
-
} else if (
|
|
34049
|
-
urlsearch = 'status!:2;orgCode:' + orgCode + ';type:' +
|
|
34174
|
+
} else if (_this25.searchType === '1') {
|
|
34175
|
+
urlsearch = 'status!:2;orgCode:' + orgCode + ';type:' + _this25.flieType + ';fileDiffer:' + _this25.type;
|
|
34050
34176
|
}
|
|
34051
34177
|
}
|
|
34052
34178
|
urlsearch += res;
|
|
34053
|
-
|
|
34179
|
+
_this25.tableShow = false;
|
|
34054
34180
|
// 列表文件夹路径
|
|
34055
34181
|
if (id) {
|
|
34056
34182
|
if (!type) {
|
|
34057
|
-
|
|
34183
|
+
_this25.levelList.push({
|
|
34058
34184
|
name: row.name,
|
|
34059
34185
|
row: row,
|
|
34060
34186
|
id: id
|
|
34061
34187
|
});
|
|
34062
34188
|
} else {
|
|
34063
|
-
|
|
34189
|
+
_this25.levelList.splice(_this25.levelList.length - 1, 1);
|
|
34064
34190
|
}
|
|
34065
34191
|
} else {
|
|
34066
|
-
|
|
34067
|
-
name:
|
|
34068
|
-
id:
|
|
34192
|
+
_this25.levelList = [{
|
|
34193
|
+
name: _this25.treeNode.folderName,
|
|
34194
|
+
id: _this25.treeNode.id
|
|
34069
34195
|
}];
|
|
34070
34196
|
}
|
|
34071
34197
|
// 触发树节点
|
|
34072
|
-
|
|
34073
|
-
|
|
34074
|
-
|
|
34198
|
+
_this25.$bus.$emit('listOnTreeNodeClick', row);
|
|
34199
|
+
_this25.$nextTick(function () {
|
|
34200
|
+
_this25.tableShow = true;
|
|
34075
34201
|
});
|
|
34076
|
-
|
|
34077
|
-
|
|
34202
|
+
_this25.$set(_this25.moduleInfo, 'listDataUrl', listDataUrl);
|
|
34203
|
+
_this25.$set(_this25.moduleInfo, 'urlsearch', urlsearch);
|
|
34078
34204
|
});
|
|
34079
34205
|
case 1:
|
|
34080
34206
|
case "end":
|
|
@@ -34130,9 +34256,9 @@ var FileListvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
34130
34256
|
});
|
|
34131
34257
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=script&lang=js
|
|
34132
34258
|
/* 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=
|
|
34259
|
+
// 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
|
|
34260
|
+
var FileListvue_type_style_index_0_id_2205a8a3_prod_scoped_true_lang_scss = __webpack_require__(3609);
|
|
34261
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue?vue&type=style&index=0&id=2205a8a3&prod&scoped=true&lang=scss
|
|
34136
34262
|
|
|
34137
34263
|
;// CONCATENATED MODULE: ./packages/ecyoa/wjzx/src/wjgl/components/FileList.vue
|
|
34138
34264
|
|
|
@@ -34145,11 +34271,11 @@ var FileListvue_type_style_index_0_id_175a428e_prod_scoped_true_lang_scss = __we
|
|
|
34145
34271
|
|
|
34146
34272
|
var components_FileList_component = normalizeComponent(
|
|
34147
34273
|
src_wjgl_components_FileListvue_type_script_lang_js,
|
|
34148
|
-
|
|
34149
|
-
|
|
34274
|
+
FileListvue_type_template_id_2205a8a3_scoped_true_render,
|
|
34275
|
+
FileListvue_type_template_id_2205a8a3_scoped_true_staticRenderFns,
|
|
34150
34276
|
false,
|
|
34151
34277
|
null,
|
|
34152
|
-
"
|
|
34278
|
+
"2205a8a3",
|
|
34153
34279
|
null
|
|
34154
34280
|
|
|
34155
34281
|
)
|