hbte-saas-ui 1.6.9 → 1.7.1
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/hbte-ui.common.js +133 -20
- package/lib/hbte-ui.umd.js +133 -20
- package/lib/hbte-ui.umd.min.js +24 -24
- package/package.json +1 -1
package/lib/hbte-ui.common.js
CHANGED
|
@@ -37451,16 +37451,19 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
|
|
|
37451
37451
|
// ESM COMPAT FLAG
|
|
37452
37452
|
__webpack_require__.r(__webpack_exports__);
|
|
37453
37453
|
|
|
37454
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tool-group/src/main.vue?vue&type=template&id=
|
|
37455
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"hb-toolgroup"},[_c('div',{staticClass:"hb-toolgroup__prefix"},[_vm._t("before"),_vm._l((_vm.validIcons),function(item){return _c('el-button',{key:item.event,attrs:{"type":"primary","size":"mini","icon":item.icon},on:{"click":function($event){return _vm.handleClickIcon(item)}}},[_vm._v(_vm._s(item.text))])}),_c('div',{staticClass:"quick-filter flex"},[_vm._l((_vm.
|
|
37454
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tool-group/src/main.vue?vue&type=template&id=5bad93fa&
|
|
37455
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"hb-toolgroup"},[_c('div',{staticClass:"hb-toolgroup__prefix"},[_vm._t("before"),_vm._l((_vm.validIcons),function(item){return _c('el-button',{key:item.event,attrs:{"type":"primary","size":"mini","icon":item.icon},on:{"click":function($event){return _vm.handleClickIcon(item)}}},[_vm._v(_vm._s(item.text))])}),_c('div',{staticClass:"quick-filter flex"},[_vm._l((_vm.unfoldQuick),function(item,index){return _c('el-button',{key:index,attrs:{"type":"primary","plain":"","size":"mini"},on:{"click":function($event){return _vm.filter(item.data)}}},[_vm._v(" "+_vm._s(item.label)+" ")])}),(Boolean(_vm.foldQuick.length))?_c('el-dropdown',{staticClass:"ml10",attrs:{"size":"mini","plain":"","type":"primary","placement":"bottom-start"},on:{"command":_vm.filter}},[_c('el-button',{attrs:{"plain":"","type":"primary","size":"mini"}},[_vm._v(" 更多 "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.foldQuick),function(item,index){return _c('el-dropdown-item',{key:index,attrs:{"command":item.data}},[_vm._v(" "+_vm._s(item.label)+" ")])}),1)],1):_vm._e()],2),_vm._t("after")],2),_c('div',{staticClass:"hb-toolgroup__inner"},[_vm._t("default")],2),(_vm.useKw)?_c('div',{staticClass:"hb-toolgroup__suffix"},[_c('el-input',{attrs:{"placeholder":_vm.placeholder,"prefix-icon":"el-icon-search","size":"mini","clearable":""},nativeOn:{"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSearch.apply(null, arguments)}},model:{value:(_vm.params[_vm.kwkey]),callback:function ($$v) {_vm.$set(_vm.params, _vm.kwkey, $$v)},expression:"params[kwkey]"}},[_c('template',{slot:"append"},[_c('span',{staticClass:"append-text",on:{"click":_vm.handleSearch}},[_vm._v("搜索")])])],2)],1):_vm._e()])}
|
|
37456
37456
|
var staticRenderFns = []
|
|
37457
37457
|
|
|
37458
37458
|
|
|
37459
|
-
// CONCATENATED MODULE: ./packages/tool-group/src/main.vue?vue&type=template&id=
|
|
37459
|
+
// CONCATENATED MODULE: ./packages/tool-group/src/main.vue?vue&type=template&id=5bad93fa&
|
|
37460
37460
|
|
|
37461
37461
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
|
|
37462
37462
|
var toConsumableArray = __webpack_require__("2909");
|
|
37463
37463
|
|
|
37464
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
37465
|
+
var es_number_constructor = __webpack_require__("a9e3");
|
|
37466
|
+
|
|
37464
37467
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
37465
37468
|
var es_object_to_string = __webpack_require__("d3b7");
|
|
37466
37469
|
|
|
@@ -37473,6 +37476,9 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
37473
37476
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
37474
37477
|
var es_array_find = __webpack_require__("7db0");
|
|
37475
37478
|
|
|
37479
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
37480
|
+
var es_array_filter = __webpack_require__("4de4");
|
|
37481
|
+
|
|
37476
37482
|
// EXTERNAL MODULE: ./packages/tool-group/src/config.js
|
|
37477
37483
|
var config = __webpack_require__("9d9b");
|
|
37478
37484
|
|
|
@@ -37482,6 +37488,8 @@ var config = __webpack_require__("9d9b");
|
|
|
37482
37488
|
|
|
37483
37489
|
|
|
37484
37490
|
|
|
37491
|
+
|
|
37492
|
+
|
|
37485
37493
|
//
|
|
37486
37494
|
//
|
|
37487
37495
|
//
|
|
@@ -37562,6 +37570,10 @@ var config = __webpack_require__("9d9b");
|
|
|
37562
37570
|
return [];
|
|
37563
37571
|
}
|
|
37564
37572
|
},
|
|
37573
|
+
splitNum: {
|
|
37574
|
+
type: Number,
|
|
37575
|
+
default: 6
|
|
37576
|
+
},
|
|
37565
37577
|
customKey: {
|
|
37566
37578
|
type: String,
|
|
37567
37579
|
default: "authQuery"
|
|
@@ -37654,6 +37666,20 @@ var config = __webpack_require__("9d9b");
|
|
|
37654
37666
|
}
|
|
37655
37667
|
|
|
37656
37668
|
return targets;
|
|
37669
|
+
},
|
|
37670
|
+
unfoldQuick: function unfoldQuick() {
|
|
37671
|
+
var _this4 = this;
|
|
37672
|
+
|
|
37673
|
+
return this.quickFilter.filter(function (i, index) {
|
|
37674
|
+
return index <= _this4.splitNum;
|
|
37675
|
+
});
|
|
37676
|
+
},
|
|
37677
|
+
foldQuick: function foldQuick() {
|
|
37678
|
+
var _this5 = this;
|
|
37679
|
+
|
|
37680
|
+
return this.quickFilter.filter(function (i, index) {
|
|
37681
|
+
return index > _this5.splitNum;
|
|
37682
|
+
});
|
|
37657
37683
|
}
|
|
37658
37684
|
},
|
|
37659
37685
|
data: function data() {
|
|
@@ -58186,12 +58212,12 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
58186
58212
|
// ESM COMPAT FLAG
|
|
58187
58213
|
__webpack_require__.r(__webpack_exports__);
|
|
58188
58214
|
|
|
58189
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
58190
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(
|
|
58215
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=dd80c924&
|
|
58216
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(_vm.showCover)?_c('i',{staticClass:"icon-main-huanyuan mr10",on:{"click":function($event){$event.stopPropagation();return _vm.openCover(index)}}}):_vm._e(),(_vm.showDownLoad(item))?_c('i',{staticClass:"icon-main-xiazai mr10",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile(item)}}}):_vm._e(),(_vm.showRemove)?_c('i',{staticClass:"icon-main-shanchu",on:{"click":function($event){$event.stopPropagation();return _vm.remove(index, item.fileName)}}}):_vm._e()])])])],1),_vm._t("default",null,{"fileData":item})],2)}),(_vm.editAble)?_c('div',{staticClass:"upload unit-item"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.netDisc),expression:"netDisc"}],staticClass:"netdisc",on:{"click":_vm.openNetDisc}},[_vm._v(" 选择网盘地址 ")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.link),expression:"link"}],staticClass:"link",on:{"click":_vm.openLink}},[_vm._v("自定义链接")]),_c('div',{staticClass:"local-file",on:{"click":_vm.openFile}},[_c('i',{staticClass:"el-icon-plus"}),_vm._v(" 上传附件 "),_c('input',{ref:"input",staticClass:"hidden",attrs:{"type":"file","multiple":""},on:{"change":_vm.chooseFile}})])]):_vm._e(),_c('input',{ref:"coverInput",staticClass:"hidden",attrs:{"type":"file"},on:{"change":function (ev) { return _vm.coverFile(ev); }}})],2),_c('NetDisc',{ref:"netDisc",on:{"submit":_vm.addNet}}),_c('CustomLink',{ref:"customLink",on:{"submit":_vm.addLink}})],1)}
|
|
58191
58217
|
var staticRenderFns = []
|
|
58192
58218
|
|
|
58193
58219
|
|
|
58194
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
58220
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=dd80c924&
|
|
58195
58221
|
|
|
58196
58222
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
58197
58223
|
var es_array_iterator = __webpack_require__("e260");
|
|
@@ -58211,18 +58237,18 @@ var web_url = __webpack_require__("2b3d");
|
|
|
58211
58237
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
|
|
58212
58238
|
var web_url_search_params = __webpack_require__("9861");
|
|
58213
58239
|
|
|
58214
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
58215
|
-
var es_array_from = __webpack_require__("a630");
|
|
58216
|
-
|
|
58217
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
58218
|
-
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
58219
|
-
|
|
58220
58240
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
58221
58241
|
var es_array_map = __webpack_require__("d81d");
|
|
58222
58242
|
|
|
58223
58243
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
58224
58244
|
var es_array_splice = __webpack_require__("a434");
|
|
58225
58245
|
|
|
58246
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
58247
|
+
var es_array_from = __webpack_require__("a630");
|
|
58248
|
+
|
|
58249
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
58250
|
+
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
58251
|
+
|
|
58226
58252
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
58227
58253
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
58228
58254
|
|
|
@@ -58663,6 +58689,17 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58663
58689
|
//
|
|
58664
58690
|
//
|
|
58665
58691
|
//
|
|
58692
|
+
//
|
|
58693
|
+
//
|
|
58694
|
+
//
|
|
58695
|
+
//
|
|
58696
|
+
//
|
|
58697
|
+
//
|
|
58698
|
+
//
|
|
58699
|
+
//
|
|
58700
|
+
//
|
|
58701
|
+
//
|
|
58702
|
+
//
|
|
58666
58703
|
|
|
58667
58704
|
|
|
58668
58705
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
@@ -58670,7 +58707,9 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58670
58707
|
componentName: "HbUpload",
|
|
58671
58708
|
data: function data() {
|
|
58672
58709
|
return {
|
|
58673
|
-
key: Math.random()
|
|
58710
|
+
key: Math.random(),
|
|
58711
|
+
coverIndex: 0 // 要覆盖的文件索引
|
|
58712
|
+
|
|
58674
58713
|
};
|
|
58675
58714
|
},
|
|
58676
58715
|
props: {
|
|
@@ -58691,6 +58730,10 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58691
58730
|
link: {
|
|
58692
58731
|
type: Boolean,
|
|
58693
58732
|
default: true
|
|
58733
|
+
},
|
|
58734
|
+
oprationAuth: {
|
|
58735
|
+
type: Object,
|
|
58736
|
+
default: function _default() {}
|
|
58694
58737
|
}
|
|
58695
58738
|
},
|
|
58696
58739
|
methods: {
|
|
@@ -58719,6 +58762,42 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58719
58762
|
|
|
58720
58763
|
window.URL.revokeObjectURL(item.downUrl); // 释放掉blob对象
|
|
58721
58764
|
},
|
|
58765
|
+
openCover: function openCover(index) {
|
|
58766
|
+
this.coverIndex = index;
|
|
58767
|
+
this.$refs.coverInput.click();
|
|
58768
|
+
},
|
|
58769
|
+
coverFile: function coverFile(ev) {
|
|
58770
|
+
var _this = this;
|
|
58771
|
+
|
|
58772
|
+
console.log(ev.target.files[0]);
|
|
58773
|
+
var files = new FormData();
|
|
58774
|
+
files.append("files[0]", ev.target.files[0]);
|
|
58775
|
+
this.$http.post("/sysFiles/uploads", files).then(function (res) {
|
|
58776
|
+
_this.$message.success("上传成功"); //处理返回的数据
|
|
58777
|
+
|
|
58778
|
+
|
|
58779
|
+
var coverList = res.map(function (item) {
|
|
58780
|
+
return {
|
|
58781
|
+
fileName: item.fileName,
|
|
58782
|
+
fileType: "1",
|
|
58783
|
+
fileUrl: item.fileUrl,
|
|
58784
|
+
downUrl: item.downUrl,
|
|
58785
|
+
onlineUrl: item.onlineUrl,
|
|
58786
|
+
fileSize: item.fileSize
|
|
58787
|
+
};
|
|
58788
|
+
});
|
|
58789
|
+
|
|
58790
|
+
var coverOriginData = _this.$lodash.cloneDeep(_this.list[_this.coverIndex]);
|
|
58791
|
+
|
|
58792
|
+
_this.list.splice(_this.coverIndex, 1, coverList[0]);
|
|
58793
|
+
|
|
58794
|
+
_this.$emit("coverSuccess", {
|
|
58795
|
+
index: _this.coverIndex,
|
|
58796
|
+
fileList: _this.list,
|
|
58797
|
+
coverOriginData: coverOriginData
|
|
58798
|
+
});
|
|
58799
|
+
});
|
|
58800
|
+
},
|
|
58722
58801
|
openNetDisc: function openNetDisc() {
|
|
58723
58802
|
this.$refs.netDisc.open();
|
|
58724
58803
|
},
|
|
@@ -58729,7 +58808,7 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58729
58808
|
this.$refs.input.click();
|
|
58730
58809
|
},
|
|
58731
58810
|
chooseFile: function chooseFile(ev) {
|
|
58732
|
-
var
|
|
58811
|
+
var _this2 = this;
|
|
58733
58812
|
|
|
58734
58813
|
var fileList = Array.from(ev.target.files);
|
|
58735
58814
|
console.log(ev);
|
|
@@ -58738,7 +58817,7 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58738
58817
|
files.append("files[".concat(index, "]"), item);
|
|
58739
58818
|
});
|
|
58740
58819
|
this.$http.post("/sysFiles/uploads", files).then(function (res) {
|
|
58741
|
-
|
|
58820
|
+
_this2.$message.success("上传成功"); //处理返回的数据
|
|
58742
58821
|
|
|
58743
58822
|
|
|
58744
58823
|
var addList = res.map(function (item) {
|
|
@@ -58752,25 +58831,42 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58752
58831
|
};
|
|
58753
58832
|
});
|
|
58754
58833
|
addList.forEach(function (item) {
|
|
58755
|
-
|
|
58834
|
+
_this2.list.push(item);
|
|
58835
|
+
});
|
|
58836
|
+
|
|
58837
|
+
_this2.$emit("uploadSuccess", {
|
|
58838
|
+
fileList: _this2.list,
|
|
58839
|
+
addData: _this2.$lodash.cloneDeep(addList)
|
|
58756
58840
|
});
|
|
58757
58841
|
});
|
|
58758
58842
|
},
|
|
58759
58843
|
addLink: function addLink(data) {
|
|
58760
58844
|
this.list.push(data);
|
|
58845
|
+
this.$emit("addLinkSuccess", {
|
|
58846
|
+
fileList: this.list
|
|
58847
|
+
});
|
|
58761
58848
|
},
|
|
58762
58849
|
addNet: function addNet(arr) {
|
|
58763
|
-
var
|
|
58850
|
+
var _this3 = this;
|
|
58764
58851
|
|
|
58765
58852
|
arr.forEach(function (item) {
|
|
58766
|
-
|
|
58853
|
+
_this3.list.push(item);
|
|
58854
|
+
});
|
|
58855
|
+
this.$emit("addNetSuccess", {
|
|
58856
|
+
fileList: this.list,
|
|
58857
|
+
addData: arr
|
|
58767
58858
|
});
|
|
58768
58859
|
},
|
|
58769
58860
|
remove: function remove(index, fileName) {
|
|
58770
|
-
var
|
|
58861
|
+
var _this4 = this;
|
|
58771
58862
|
|
|
58772
58863
|
this.$confirm("\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u9644\u4EF6:".concat(fileName), "提示").then(function () {
|
|
58773
|
-
|
|
58864
|
+
_this4.list.splice(index, 1);
|
|
58865
|
+
|
|
58866
|
+
_this4.$emit("removeSuccess", {
|
|
58867
|
+
fileList: _this4.list,
|
|
58868
|
+
index: index
|
|
58869
|
+
});
|
|
58774
58870
|
}).catch(function () {});
|
|
58775
58871
|
},
|
|
58776
58872
|
rerendering: function rerendering() {
|
|
@@ -58789,6 +58885,23 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58789
58885
|
return "." + arr.pop();
|
|
58790
58886
|
}
|
|
58791
58887
|
};
|
|
58888
|
+
},
|
|
58889
|
+
showCover: function showCover() {
|
|
58890
|
+
var _this$oprationAuth;
|
|
58891
|
+
|
|
58892
|
+
return (_this$oprationAuth = this.oprationAuth) === null || _this$oprationAuth === void 0 ? void 0 : _this$oprationAuth.cover;
|
|
58893
|
+
},
|
|
58894
|
+
showDownLoad: function showDownLoad() {
|
|
58895
|
+
var _this5 = this;
|
|
58896
|
+
|
|
58897
|
+
return function (item) {
|
|
58898
|
+
if (_this5.oprationAuth) return _this5.oprationAuth.download;
|
|
58899
|
+
return item.fileType != "2";
|
|
58900
|
+
};
|
|
58901
|
+
},
|
|
58902
|
+
showRemove: function showRemove() {
|
|
58903
|
+
if (this.oprationAuth) return this.oprationAuth.remove && this.editAble;
|
|
58904
|
+
return this.editAble;
|
|
58792
58905
|
}
|
|
58793
58906
|
},
|
|
58794
58907
|
filters: {
|
package/lib/hbte-ui.umd.js
CHANGED
|
@@ -37460,16 +37460,19 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
|
|
|
37460
37460
|
// ESM COMPAT FLAG
|
|
37461
37461
|
__webpack_require__.r(__webpack_exports__);
|
|
37462
37462
|
|
|
37463
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tool-group/src/main.vue?vue&type=template&id=
|
|
37464
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"hb-toolgroup"},[_c('div',{staticClass:"hb-toolgroup__prefix"},[_vm._t("before"),_vm._l((_vm.validIcons),function(item){return _c('el-button',{key:item.event,attrs:{"type":"primary","size":"mini","icon":item.icon},on:{"click":function($event){return _vm.handleClickIcon(item)}}},[_vm._v(_vm._s(item.text))])}),_c('div',{staticClass:"quick-filter flex"},[_vm._l((_vm.
|
|
37463
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tool-group/src/main.vue?vue&type=template&id=5bad93fa&
|
|
37464
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"hb-toolgroup"},[_c('div',{staticClass:"hb-toolgroup__prefix"},[_vm._t("before"),_vm._l((_vm.validIcons),function(item){return _c('el-button',{key:item.event,attrs:{"type":"primary","size":"mini","icon":item.icon},on:{"click":function($event){return _vm.handleClickIcon(item)}}},[_vm._v(_vm._s(item.text))])}),_c('div',{staticClass:"quick-filter flex"},[_vm._l((_vm.unfoldQuick),function(item,index){return _c('el-button',{key:index,attrs:{"type":"primary","plain":"","size":"mini"},on:{"click":function($event){return _vm.filter(item.data)}}},[_vm._v(" "+_vm._s(item.label)+" ")])}),(Boolean(_vm.foldQuick.length))?_c('el-dropdown',{staticClass:"ml10",attrs:{"size":"mini","plain":"","type":"primary","placement":"bottom-start"},on:{"command":_vm.filter}},[_c('el-button',{attrs:{"plain":"","type":"primary","size":"mini"}},[_vm._v(" 更多 "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.foldQuick),function(item,index){return _c('el-dropdown-item',{key:index,attrs:{"command":item.data}},[_vm._v(" "+_vm._s(item.label)+" ")])}),1)],1):_vm._e()],2),_vm._t("after")],2),_c('div',{staticClass:"hb-toolgroup__inner"},[_vm._t("default")],2),(_vm.useKw)?_c('div',{staticClass:"hb-toolgroup__suffix"},[_c('el-input',{attrs:{"placeholder":_vm.placeholder,"prefix-icon":"el-icon-search","size":"mini","clearable":""},nativeOn:{"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSearch.apply(null, arguments)}},model:{value:(_vm.params[_vm.kwkey]),callback:function ($$v) {_vm.$set(_vm.params, _vm.kwkey, $$v)},expression:"params[kwkey]"}},[_c('template',{slot:"append"},[_c('span',{staticClass:"append-text",on:{"click":_vm.handleSearch}},[_vm._v("搜索")])])],2)],1):_vm._e()])}
|
|
37465
37465
|
var staticRenderFns = []
|
|
37466
37466
|
|
|
37467
37467
|
|
|
37468
|
-
// CONCATENATED MODULE: ./packages/tool-group/src/main.vue?vue&type=template&id=
|
|
37468
|
+
// CONCATENATED MODULE: ./packages/tool-group/src/main.vue?vue&type=template&id=5bad93fa&
|
|
37469
37469
|
|
|
37470
37470
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
|
|
37471
37471
|
var toConsumableArray = __webpack_require__("2909");
|
|
37472
37472
|
|
|
37473
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
37474
|
+
var es_number_constructor = __webpack_require__("a9e3");
|
|
37475
|
+
|
|
37473
37476
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
37474
37477
|
var es_object_to_string = __webpack_require__("d3b7");
|
|
37475
37478
|
|
|
@@ -37482,6 +37485,9 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
37482
37485
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
37483
37486
|
var es_array_find = __webpack_require__("7db0");
|
|
37484
37487
|
|
|
37488
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
37489
|
+
var es_array_filter = __webpack_require__("4de4");
|
|
37490
|
+
|
|
37485
37491
|
// EXTERNAL MODULE: ./packages/tool-group/src/config.js
|
|
37486
37492
|
var config = __webpack_require__("9d9b");
|
|
37487
37493
|
|
|
@@ -37491,6 +37497,8 @@ var config = __webpack_require__("9d9b");
|
|
|
37491
37497
|
|
|
37492
37498
|
|
|
37493
37499
|
|
|
37500
|
+
|
|
37501
|
+
|
|
37494
37502
|
//
|
|
37495
37503
|
//
|
|
37496
37504
|
//
|
|
@@ -37571,6 +37579,10 @@ var config = __webpack_require__("9d9b");
|
|
|
37571
37579
|
return [];
|
|
37572
37580
|
}
|
|
37573
37581
|
},
|
|
37582
|
+
splitNum: {
|
|
37583
|
+
type: Number,
|
|
37584
|
+
default: 6
|
|
37585
|
+
},
|
|
37574
37586
|
customKey: {
|
|
37575
37587
|
type: String,
|
|
37576
37588
|
default: "authQuery"
|
|
@@ -37663,6 +37675,20 @@ var config = __webpack_require__("9d9b");
|
|
|
37663
37675
|
}
|
|
37664
37676
|
|
|
37665
37677
|
return targets;
|
|
37678
|
+
},
|
|
37679
|
+
unfoldQuick: function unfoldQuick() {
|
|
37680
|
+
var _this4 = this;
|
|
37681
|
+
|
|
37682
|
+
return this.quickFilter.filter(function (i, index) {
|
|
37683
|
+
return index <= _this4.splitNum;
|
|
37684
|
+
});
|
|
37685
|
+
},
|
|
37686
|
+
foldQuick: function foldQuick() {
|
|
37687
|
+
var _this5 = this;
|
|
37688
|
+
|
|
37689
|
+
return this.quickFilter.filter(function (i, index) {
|
|
37690
|
+
return index > _this5.splitNum;
|
|
37691
|
+
});
|
|
37666
37692
|
}
|
|
37667
37693
|
},
|
|
37668
37694
|
data: function data() {
|
|
@@ -58195,12 +58221,12 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
58195
58221
|
// ESM COMPAT FLAG
|
|
58196
58222
|
__webpack_require__.r(__webpack_exports__);
|
|
58197
58223
|
|
|
58198
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
58199
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(
|
|
58224
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1415947d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=dd80c924&
|
|
58225
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(_vm.showCover)?_c('i',{staticClass:"icon-main-huanyuan mr10",on:{"click":function($event){$event.stopPropagation();return _vm.openCover(index)}}}):_vm._e(),(_vm.showDownLoad(item))?_c('i',{staticClass:"icon-main-xiazai mr10",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile(item)}}}):_vm._e(),(_vm.showRemove)?_c('i',{staticClass:"icon-main-shanchu",on:{"click":function($event){$event.stopPropagation();return _vm.remove(index, item.fileName)}}}):_vm._e()])])])],1),_vm._t("default",null,{"fileData":item})],2)}),(_vm.editAble)?_c('div',{staticClass:"upload unit-item"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.netDisc),expression:"netDisc"}],staticClass:"netdisc",on:{"click":_vm.openNetDisc}},[_vm._v(" 选择网盘地址 ")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.link),expression:"link"}],staticClass:"link",on:{"click":_vm.openLink}},[_vm._v("自定义链接")]),_c('div',{staticClass:"local-file",on:{"click":_vm.openFile}},[_c('i',{staticClass:"el-icon-plus"}),_vm._v(" 上传附件 "),_c('input',{ref:"input",staticClass:"hidden",attrs:{"type":"file","multiple":""},on:{"change":_vm.chooseFile}})])]):_vm._e(),_c('input',{ref:"coverInput",staticClass:"hidden",attrs:{"type":"file"},on:{"change":function (ev) { return _vm.coverFile(ev); }}})],2),_c('NetDisc',{ref:"netDisc",on:{"submit":_vm.addNet}}),_c('CustomLink',{ref:"customLink",on:{"submit":_vm.addLink}})],1)}
|
|
58200
58226
|
var staticRenderFns = []
|
|
58201
58227
|
|
|
58202
58228
|
|
|
58203
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
58229
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=dd80c924&
|
|
58204
58230
|
|
|
58205
58231
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
58206
58232
|
var es_array_iterator = __webpack_require__("e260");
|
|
@@ -58220,18 +58246,18 @@ var web_url = __webpack_require__("2b3d");
|
|
|
58220
58246
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
|
|
58221
58247
|
var web_url_search_params = __webpack_require__("9861");
|
|
58222
58248
|
|
|
58223
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
58224
|
-
var es_array_from = __webpack_require__("a630");
|
|
58225
|
-
|
|
58226
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
58227
|
-
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
58228
|
-
|
|
58229
58249
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
58230
58250
|
var es_array_map = __webpack_require__("d81d");
|
|
58231
58251
|
|
|
58232
58252
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
58233
58253
|
var es_array_splice = __webpack_require__("a434");
|
|
58234
58254
|
|
|
58255
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
58256
|
+
var es_array_from = __webpack_require__("a630");
|
|
58257
|
+
|
|
58258
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
58259
|
+
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
58260
|
+
|
|
58235
58261
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
58236
58262
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
58237
58263
|
|
|
@@ -58672,6 +58698,17 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58672
58698
|
//
|
|
58673
58699
|
//
|
|
58674
58700
|
//
|
|
58701
|
+
//
|
|
58702
|
+
//
|
|
58703
|
+
//
|
|
58704
|
+
//
|
|
58705
|
+
//
|
|
58706
|
+
//
|
|
58707
|
+
//
|
|
58708
|
+
//
|
|
58709
|
+
//
|
|
58710
|
+
//
|
|
58711
|
+
//
|
|
58675
58712
|
|
|
58676
58713
|
|
|
58677
58714
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
@@ -58679,7 +58716,9 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58679
58716
|
componentName: "HbUpload",
|
|
58680
58717
|
data: function data() {
|
|
58681
58718
|
return {
|
|
58682
|
-
key: Math.random()
|
|
58719
|
+
key: Math.random(),
|
|
58720
|
+
coverIndex: 0 // 要覆盖的文件索引
|
|
58721
|
+
|
|
58683
58722
|
};
|
|
58684
58723
|
},
|
|
58685
58724
|
props: {
|
|
@@ -58700,6 +58739,10 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58700
58739
|
link: {
|
|
58701
58740
|
type: Boolean,
|
|
58702
58741
|
default: true
|
|
58742
|
+
},
|
|
58743
|
+
oprationAuth: {
|
|
58744
|
+
type: Object,
|
|
58745
|
+
default: function _default() {}
|
|
58703
58746
|
}
|
|
58704
58747
|
},
|
|
58705
58748
|
methods: {
|
|
@@ -58728,6 +58771,42 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58728
58771
|
|
|
58729
58772
|
window.URL.revokeObjectURL(item.downUrl); // 释放掉blob对象
|
|
58730
58773
|
},
|
|
58774
|
+
openCover: function openCover(index) {
|
|
58775
|
+
this.coverIndex = index;
|
|
58776
|
+
this.$refs.coverInput.click();
|
|
58777
|
+
},
|
|
58778
|
+
coverFile: function coverFile(ev) {
|
|
58779
|
+
var _this = this;
|
|
58780
|
+
|
|
58781
|
+
console.log(ev.target.files[0]);
|
|
58782
|
+
var files = new FormData();
|
|
58783
|
+
files.append("files[0]", ev.target.files[0]);
|
|
58784
|
+
this.$http.post("/sysFiles/uploads", files).then(function (res) {
|
|
58785
|
+
_this.$message.success("上传成功"); //处理返回的数据
|
|
58786
|
+
|
|
58787
|
+
|
|
58788
|
+
var coverList = res.map(function (item) {
|
|
58789
|
+
return {
|
|
58790
|
+
fileName: item.fileName,
|
|
58791
|
+
fileType: "1",
|
|
58792
|
+
fileUrl: item.fileUrl,
|
|
58793
|
+
downUrl: item.downUrl,
|
|
58794
|
+
onlineUrl: item.onlineUrl,
|
|
58795
|
+
fileSize: item.fileSize
|
|
58796
|
+
};
|
|
58797
|
+
});
|
|
58798
|
+
|
|
58799
|
+
var coverOriginData = _this.$lodash.cloneDeep(_this.list[_this.coverIndex]);
|
|
58800
|
+
|
|
58801
|
+
_this.list.splice(_this.coverIndex, 1, coverList[0]);
|
|
58802
|
+
|
|
58803
|
+
_this.$emit("coverSuccess", {
|
|
58804
|
+
index: _this.coverIndex,
|
|
58805
|
+
fileList: _this.list,
|
|
58806
|
+
coverOriginData: coverOriginData
|
|
58807
|
+
});
|
|
58808
|
+
});
|
|
58809
|
+
},
|
|
58731
58810
|
openNetDisc: function openNetDisc() {
|
|
58732
58811
|
this.$refs.netDisc.open();
|
|
58733
58812
|
},
|
|
@@ -58738,7 +58817,7 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58738
58817
|
this.$refs.input.click();
|
|
58739
58818
|
},
|
|
58740
58819
|
chooseFile: function chooseFile(ev) {
|
|
58741
|
-
var
|
|
58820
|
+
var _this2 = this;
|
|
58742
58821
|
|
|
58743
58822
|
var fileList = Array.from(ev.target.files);
|
|
58744
58823
|
console.log(ev);
|
|
@@ -58747,7 +58826,7 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58747
58826
|
files.append("files[".concat(index, "]"), item);
|
|
58748
58827
|
});
|
|
58749
58828
|
this.$http.post("/sysFiles/uploads", files).then(function (res) {
|
|
58750
|
-
|
|
58829
|
+
_this2.$message.success("上传成功"); //处理返回的数据
|
|
58751
58830
|
|
|
58752
58831
|
|
|
58753
58832
|
var addList = res.map(function (item) {
|
|
@@ -58761,25 +58840,42 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58761
58840
|
};
|
|
58762
58841
|
});
|
|
58763
58842
|
addList.forEach(function (item) {
|
|
58764
|
-
|
|
58843
|
+
_this2.list.push(item);
|
|
58844
|
+
});
|
|
58845
|
+
|
|
58846
|
+
_this2.$emit("uploadSuccess", {
|
|
58847
|
+
fileList: _this2.list,
|
|
58848
|
+
addData: _this2.$lodash.cloneDeep(addList)
|
|
58765
58849
|
});
|
|
58766
58850
|
});
|
|
58767
58851
|
},
|
|
58768
58852
|
addLink: function addLink(data) {
|
|
58769
58853
|
this.list.push(data);
|
|
58854
|
+
this.$emit("addLinkSuccess", {
|
|
58855
|
+
fileList: this.list
|
|
58856
|
+
});
|
|
58770
58857
|
},
|
|
58771
58858
|
addNet: function addNet(arr) {
|
|
58772
|
-
var
|
|
58859
|
+
var _this3 = this;
|
|
58773
58860
|
|
|
58774
58861
|
arr.forEach(function (item) {
|
|
58775
|
-
|
|
58862
|
+
_this3.list.push(item);
|
|
58863
|
+
});
|
|
58864
|
+
this.$emit("addNetSuccess", {
|
|
58865
|
+
fileList: this.list,
|
|
58866
|
+
addData: arr
|
|
58776
58867
|
});
|
|
58777
58868
|
},
|
|
58778
58869
|
remove: function remove(index, fileName) {
|
|
58779
|
-
var
|
|
58870
|
+
var _this4 = this;
|
|
58780
58871
|
|
|
58781
58872
|
this.$confirm("\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u9644\u4EF6:".concat(fileName), "提示").then(function () {
|
|
58782
|
-
|
|
58873
|
+
_this4.list.splice(index, 1);
|
|
58874
|
+
|
|
58875
|
+
_this4.$emit("removeSuccess", {
|
|
58876
|
+
fileList: _this4.list,
|
|
58877
|
+
index: index
|
|
58878
|
+
});
|
|
58783
58879
|
}).catch(function () {});
|
|
58784
58880
|
},
|
|
58785
58881
|
rerendering: function rerendering() {
|
|
@@ -58798,6 +58894,23 @@ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
|
58798
58894
|
return "." + arr.pop();
|
|
58799
58895
|
}
|
|
58800
58896
|
};
|
|
58897
|
+
},
|
|
58898
|
+
showCover: function showCover() {
|
|
58899
|
+
var _this$oprationAuth;
|
|
58900
|
+
|
|
58901
|
+
return (_this$oprationAuth = this.oprationAuth) === null || _this$oprationAuth === void 0 ? void 0 : _this$oprationAuth.cover;
|
|
58902
|
+
},
|
|
58903
|
+
showDownLoad: function showDownLoad() {
|
|
58904
|
+
var _this5 = this;
|
|
58905
|
+
|
|
58906
|
+
return function (item) {
|
|
58907
|
+
if (_this5.oprationAuth) return _this5.oprationAuth.download;
|
|
58908
|
+
return item.fileType != "2";
|
|
58909
|
+
};
|
|
58910
|
+
},
|
|
58911
|
+
showRemove: function showRemove() {
|
|
58912
|
+
if (this.oprationAuth) return this.oprationAuth.remove && this.editAble;
|
|
58913
|
+
return this.editAble;
|
|
58801
58914
|
}
|
|
58802
58915
|
},
|
|
58803
58916
|
filters: {
|