@fengzhongwen/kukan-ui 1.0.17 → 1.0.18

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.
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ "4ae5":
90
+ /***/ "0786":
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  // extracted by mini-css-extract-plugin
@@ -856,12 +856,12 @@ module.exports =
856
856
 
857
857
  /***/ }),
858
858
 
859
- /***/ "7b17":
859
+ /***/ "6bfd":
860
860
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
861
861
 
862
862
  "use strict";
863
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7674a44a_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4ae5");
864
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7674a44a_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7674a44a_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
863
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_61052c10_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0786");
864
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_61052c10_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_61052c10_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
865
865
  /* unused harmony reexport * */
866
866
 
867
867
 
@@ -883,6 +883,24 @@ module.exports =
883
883
 
884
884
  // extracted by mini-css-extract-plugin
885
885
 
886
+ /***/ }),
887
+
888
+ /***/ "d384":
889
+ /***/ (function(module, exports, __webpack_require__) {
890
+
891
+ // extracted by mini-css-extract-plugin
892
+
893
+ /***/ }),
894
+
895
+ /***/ "f7bf":
896
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
897
+
898
+ "use strict";
899
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2d21bcb8_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d384");
900
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2d21bcb8_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2d21bcb8_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
901
+ /* unused harmony reexport * */
902
+
903
+
886
904
  /***/ }),
887
905
 
888
906
  /***/ "fb15":
@@ -1068,12 +1086,12 @@ function addNewFileOfSubTitle(data, url) {
1068
1086
  });
1069
1087
  }
1070
1088
 
1071
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0c625dac-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FileUpload/index.vue?vue&type=template&id=7674a44a&scoped=true
1072
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"upload-multiple"},[_c('input',{ref:"multiplePloadInput",staticStyle:{"display":"none"},attrs:{"type":"file","multiple":_vm.multiple,"accept":_vm.limitFileType},on:{"change":_vm.handleSelectedMultipleFiles}}),_c('div',{staticClass:"upload-multiple-box"},[_c('div',{ref:"upLoded_box",staticClass:"multiple_upload_area",class:_vm.multipleUploadAreaClass(),on:{"click":_vm.reviewUploadMultipleFiles,"dragover":function($event){$event.preventDefault();return _vm.onDragOver($event)},"dragleave":function($event){$event.preventDefault();return _vm.onDragLeave($event)},"drop":function($event){$event.preventDefault();return _vm.onDrop($event)}}},[(_vm.isUploading)?_c('div',{staticClass:"upload-loading-mask",style:(_vm.setUploadingLoadingMaskStyle())}):_vm._e(),(_vm.showIconTip)?_c('div',[_c('i',{staticClass:"el-icon-upload"})]):_vm._e(),_c('div',[_vm._v(_vm._s(_vm.startButtonText))]),_vm._t("tips")],2),(_vm.pictureConfig.show && _vm.showSuccessPicture)?_c('div',{staticClass:"upload-multiple-box-right"},[_c('div',{staticClass:"upload-multiple-box-close",on:{"click":function($event){$event.stopPropagation();return _vm.clearPicture($event)}}},[_c('i',{staticClass:"el-icon-close"})]),_c('img',{attrs:{"src":_vm.pictureConfig.url,"alt":_vm.pictureConfig.altText}})]):_vm._e()]),(_vm.isShowAllUploadButton)?_c('el-button',{staticClass:"upload_button",attrs:{"type":"primary","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":_vm.startUploadMultipleFiles}},[_vm._v(" 全部文件开始上传 ")]):_vm._e(),(_vm.model === 'info')?_c('div',{staticClass:"multiple_upload_list"},[_c('span',{staticClass:"tip_title"},[_c('span',{staticClass:"title"},[_c('div',[_vm._v("文件列表")]),_c('transition',{attrs:{"name":"totalProgress","mode":"out-in"}},[(_vm.needUploadFilesArr.length > 0)?_c('div',{staticClass:"total_progress"},[_c('div',{staticClass:"logo"}),_c('span',[_vm._v("总进度:")]),(_vm.fileConfig.uploadController)?_c('div',[_c('el-tag',{attrs:{"size":"mini","type":_vm.isDanger}},[_vm._v("上传错误:"+_vm._s(_vm.fileConfig.skipError_num))]),_c('el-tag',{attrs:{"size":"mini","type":""}},[_vm._v("上传成功:"+_vm._s(_vm.fileConfig.completed_num))]),_c('el-tag',{attrs:{"size":"mini","type":""}},[_vm._v("文件总数:"+_vm._s(_vm.fileConfig.filetotal_num))])],1):_vm._e()]):_vm._e()])],1),_c('span',[_c('el-button',{attrs:{"size":"mini","type":"","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":_vm.handleSelectAllFile}},[_vm._v("全选所有文件")]),_c('el-button',{attrs:{"size":"mini","type":"danger","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":_vm.delteSelectedFile}},[_vm._v("移除所选文件")])],1)]),_c('div',{staticClass:"selected_list_area"},[(_vm.needUploadFilesArr.length > 0)?_c('div',{staticClass:"selected_list"},_vm._l((_vm.needUploadFilesArr),function(item,index){return _c('Card_2',{key:index,attrs:{"index":index,"file-config":item},on:{"cancelFileUpload":_vm.cancelFileUpload,"resetFileUpload":_vm.resetFileUpload,"handleClickOnlyFile":_vm.handleClickOnlyFile}})}),1):_c('div',{staticClass:"no_file"},[_c('i',{staticClass:"el-icon-document"}),_c('div',[_vm._v("暂无文件,请点击或拖拽文件到上传区域")])])])]):_vm._e()],1)}
1089
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"11f08e80-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FileUpload/index.vue?vue&type=template&id=2d21bcb8&scoped=true
1090
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"upload-multiple"},[_c('input',{ref:"multiplePloadInput",staticStyle:{"display":"none"},attrs:{"type":"file","multiple":_vm.multiple,"accept":_vm.limitFileType},on:{"change":_vm.handleSelectedMultipleFiles}}),_c('div',{staticClass:"upload-multiple-box"},[_c('div',{ref:"upLoded_box",staticClass:"multiple_upload_area",class:_vm.multipleUploadAreaClass(),on:{"click":_vm.reviewUploadMultipleFiles,"dragover":function($event){$event.preventDefault();return _vm.onDragOver($event)},"dragleave":function($event){$event.preventDefault();return _vm.onDragLeave($event)},"drop":function($event){$event.preventDefault();return _vm.onDrop($event)}}},[(_vm.isUploading)?_c('div',{staticClass:"upload-loading-mask",style:(_vm.setUploadingLoadingMaskStyle())}):_vm._e(),(_vm.showIconTip)?_c('div',[_c('i',{staticClass:"el-icon-upload"})]):_vm._e(),_c('div',[_vm._v(_vm._s(_vm.startButtonText))]),_vm._t("tips")],2),(_vm.pictureConfig.show && _vm.showSuccessPicture)?_c('div',{staticClass:"upload-multiple-box-right"},[_c('div',{staticClass:"upload-multiple-box-close",on:{"click":function($event){$event.stopPropagation();return _vm.clearPicture($event)}}},[_c('i',{staticClass:"el-icon-close"})]),_c('img',{attrs:{"src":_vm.pictureConfig.url,"alt":_vm.pictureConfig.altText}})]):_vm._e()]),(_vm.isShowAllUploadButton)?_c('el-button',{staticClass:"upload_button",attrs:{"type":"primary","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":_vm.startUploadMultipleFiles}},[_vm._v(" 全部文件开始上传 ")]):_vm._e(),(_vm.model === 'table')?_c('div',{staticClass:"upload-multiple-table"},[_c('Upload_table',{attrs:{"needUploadFilesArr":_vm.needUploadFilesArr,"fileConfig":_vm.fileConfig,"fileType":_vm.addDataBaseLinkConfig.addFileType,"isUploading":_vm.isUploading},on:{"delteSelectedFile":_vm.delteSelectedFile,"cancelFileUpload":_vm.cancelFileUpload,"resetFileUpload":_vm.resetFileUpload,"handleSelectionChange":_vm.tableSelectionChange}})],1):_vm._e(),(_vm.model === 'info')?_c('div',{staticClass:"multiple_upload_list"},[_c('span',{staticClass:"tip_title"},[_c('span',{staticClass:"title"},[_c('div',[_vm._v("文件列表")]),_c('transition',{attrs:{"name":"totalProgress","mode":"out-in"}},[(_vm.needUploadFilesArr.length > 0)?_c('div',{staticClass:"total_progress"},[_c('div',{staticClass:"logo"}),_c('span',[_vm._v("总进度:")]),(_vm.fileConfig.uploadController)?_c('div',[_c('el-tag',{attrs:{"size":"mini","type":_vm.isDanger}},[_vm._v("上传错误:"+_vm._s(_vm.fileConfig.skipError_num))]),_c('el-tag',{attrs:{"size":"mini","type":""}},[_vm._v("上传成功:"+_vm._s(_vm.fileConfig.completed_num))]),_c('el-tag',{attrs:{"size":"mini","type":""}},[_vm._v("文件总数:"+_vm._s(_vm.fileConfig.filetotal_num))])],1):_vm._e()]):_vm._e()])],1),_c('span',[_c('el-button',{attrs:{"size":"mini","type":"","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":_vm.handleSelectAllFile}},[_vm._v("全选所有文件")]),_c('el-button',{attrs:{"size":"mini","type":"danger","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":_vm.delteSelectedFile}},[_vm._v("移除所选文件")])],1)]),_c('div',{staticClass:"selected_list_area"},[(_vm.needUploadFilesArr.length > 0)?_c('div',{staticClass:"selected_list"},_vm._l((_vm.needUploadFilesArr),function(item,index){return _c('Card_2',{key:index,attrs:{"index":index,"file-config":item},on:{"cancelFileUpload":_vm.cancelFileUpload,"resetFileUpload":_vm.resetFileUpload,"handleClickOnlyFile":_vm.handleClickOnlyFile}})}),1):_c('div',{staticClass:"no_file"},[_c('i',{staticClass:"el-icon-document"}),_c('div',[_vm._v("暂无文件,请点击或拖拽文件到上传区域")])])])]):_vm._e()],1)}
1073
1091
  var staticRenderFns = []
1074
1092
 
1075
1093
 
1076
- // CONCATENATED MODULE: ./src/components/FileUpload/index.vue?vue&type=template&id=7674a44a&scoped=true
1094
+ // CONCATENATED MODULE: ./src/components/FileUpload/index.vue?vue&type=template&id=2d21bcb8&scoped=true
1077
1095
 
1078
1096
  // CONCATENATED MODULE: ./src/components/FileUpload/util.js
1079
1097
  // 辅助函数:获取MIME类型
@@ -1148,7 +1166,7 @@ const fileTypeValidators = {
1148
1166
  // return /^(presentation))|text\/(plain|html|csv|xml|css|javascript|markdown))$/i.test(mime);
1149
1167
  },
1150
1168
  };
1151
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0c625dac-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FileUpload/components/UploadCard_Ver_Second/index.vue?vue&type=template&id=cdec1cec&scoped=true
1169
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"11f08e80-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FileUpload/components/UploadCard_Ver_Second/index.vue?vue&type=template&id=cdec1cec&scoped=true
1152
1170
  var UploadCard_Ver_Secondvue_type_template_id_cdec1cec_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.fileConfig.name + '_' + _vm.index,staticClass:"only_file_area",class:{
1153
1171
  only_file_area_isActive: _vm.fileConfig.isSelected,
1154
1172
  'fade-in-element': true,
@@ -1428,6 +1446,224 @@ var component = normalizeComponent(
1428
1446
  )
1429
1447
 
1430
1448
  /* harmony default export */ var UploadCard_Ver_Second = (component.exports);
1449
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"11f08e80-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FileUpload/components/Upload_table/index.vue?vue&type=template&id=61052c10&scoped=true
1450
+ var Upload_tablevue_type_template_id_61052c10_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"upload_table"},[_c('div',{staticClass:"header"},[_c('div',{staticClass:"total"},[_c('span',[_vm._v("已选择"+_vm._s(_vm.needUploadFilesArr.length)+"个文件")]),(_vm.needUploadFilesArr.length)?_c('el-tag',{attrs:{"type":"","size":"mini"}},[_vm._v("上传中"+_vm._s(_vm.totalNumber))]):_vm._e()],1),_c('div',{staticClass:"options"},[_c('el-button',{attrs:{"type":"danger","size":"mini","disabled":_vm.isUploading || _vm.needUploadFilesArr.length === 0},on:{"click":function($event){return _vm.handleClickOnlyFile()}}},[_vm._v("清除已选")])],1)]),_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.needUploadFilesArr,"default-sort":{ prop: 'fileName', order: 'descending' },"border":"","height":"400px"},on:{"sort-change":_vm.handleSortChange,"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"40"}}),_c('el-table-column',{attrs:{"type":"index","width":"40"}}),_c('el-table-column',{attrs:{"label":"文件名","width":"300"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"file_name"},[_c('div',{staticClass:"file_type"},[_vm._v(" "+_vm._s(_vm.getFileType(scope.row.name))+" ")]),_c('span',{staticClass:"file_name_text"},[_vm._v(_vm._s(scope.row.name))])])]}}])}),_c('el-table-column',{attrs:{"label":"大小","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"file_size"},[_c('span',{staticClass:"file_size_text"},[_vm._v(_vm._s(_vm.fileFormatValid(scope.row.file.size))+" mb")])])]}}])}),_c('el-table-column',{attrs:{"label":"状态","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"status_text"},[_c('span',{class:_vm.uploadingTextStyle(scope.row.tip)},[_vm._v(_vm._s(scope.row.tip))])])]}}])}),_c('el-table-column',{attrs:{"label":"进度","width":"auto"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"progress_area"},[_c('el-progress',{staticClass:"custom-progress",attrs:{"color":_vm.colors,"show-text":true,"percentage":scope.row.uploadProgress}})],1)]}}])}),_c('el-table-column',{attrs:{"label":"操作","width":"auto"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.tip === '上传中')?_c('div',{staticClass:"option_text",on:{"click":function($event){$event.stopPropagation();return _vm.cancelFileUpload(scope.row)}}},[_c('span',{staticStyle:{"color":"#f74444","cursor":"pointer"}},[_vm._v("取消上传")])]):_vm._e(),(
1451
+ scope.row.tip === '已取消' ||
1452
+ scope.row.tip === '上传出错' ||
1453
+ scope.row.tip === '未知出错'
1454
+ )?_c('div',{staticClass:"option_text",on:{"click":function($event){$event.stopPropagation();return _vm.resetFileUpload(scope.row)}}},[_c('span',{staticStyle:{"color":"#f74444","cursor":"pointer"}},[_vm._v("重试")])]):_vm._e()]}}])})],1)],1)}
1455
+ var Upload_tablevue_type_template_id_61052c10_scoped_true_staticRenderFns = []
1456
+
1457
+
1458
+ // CONCATENATED MODULE: ./src/components/FileUpload/components/Upload_table/index.vue?vue&type=template&id=61052c10&scoped=true
1459
+
1460
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FileUpload/components/Upload_table/index.vue?vue&type=script&lang=js
1461
+ //
1462
+ //
1463
+ //
1464
+ //
1465
+ //
1466
+ //
1467
+ //
1468
+ //
1469
+ //
1470
+ //
1471
+ //
1472
+ //
1473
+ //
1474
+ //
1475
+ //
1476
+ //
1477
+ //
1478
+ //
1479
+ //
1480
+ //
1481
+ //
1482
+ //
1483
+ //
1484
+ //
1485
+ //
1486
+ //
1487
+ //
1488
+ //
1489
+ //
1490
+ //
1491
+ //
1492
+ //
1493
+ //
1494
+ //
1495
+ //
1496
+ //
1497
+ //
1498
+ //
1499
+ //
1500
+ //
1501
+ //
1502
+ //
1503
+ //
1504
+ //
1505
+ //
1506
+ //
1507
+ //
1508
+ //
1509
+ //
1510
+ //
1511
+ //
1512
+ //
1513
+ //
1514
+ //
1515
+ //
1516
+ //
1517
+ //
1518
+ //
1519
+ //
1520
+ //
1521
+ //
1522
+ //
1523
+ //
1524
+ //
1525
+ //
1526
+ //
1527
+ //
1528
+ //
1529
+ //
1530
+ //
1531
+ //
1532
+ //
1533
+ //
1534
+ //
1535
+ //
1536
+ //
1537
+ //
1538
+ //
1539
+ //
1540
+ //
1541
+ //
1542
+ //
1543
+ //
1544
+ //
1545
+ //
1546
+ //
1547
+ //
1548
+ //
1549
+ //
1550
+ //
1551
+ //
1552
+ //
1553
+ //
1554
+ //
1555
+ //
1556
+ //
1557
+
1558
+ /* harmony default export */ var Upload_tablevue_type_script_lang_js = ({
1559
+ name: "Upload_Table",
1560
+ props: {
1561
+ needUploadFilesArr: {
1562
+ type: Array,
1563
+ default: () => [],
1564
+ },
1565
+ fileConfig: {
1566
+ type: Object,
1567
+ default: () => {},
1568
+ },
1569
+ fileType: {
1570
+ type: String,
1571
+ default: "",
1572
+ },
1573
+ isUploading: {
1574
+ type: Boolean,
1575
+ },
1576
+ },
1577
+ data() {
1578
+ return {
1579
+ colors: [
1580
+ { color: "#bae6fd", percentage: 20 }, // 浅天蓝:刚刚启动,轻快感
1581
+ { color: "#7dd3fc", percentage: 40 }, // 天蓝:平稳进行
1582
+ { color: "#38bdf8", percentage: 60 }, // 亮蓝:进入核心处理
1583
+ { color: "#2563eb", percentage: 80 }, // 宝蓝:即将完成的厚重感
1584
+ { color: "#6366f1", percentage: 100 }, // 靛紫:完成时的精致感
1585
+ ],
1586
+ };
1587
+ },
1588
+ computed: {
1589
+ totalNumber() {
1590
+ return (
1591
+ this.fileConfig.completed_num + "/" + this.needUploadFilesArr.length
1592
+ );
1593
+ },
1594
+ },
1595
+ methods: {
1596
+ handleSortChange(val) {
1597
+ this.$emit("sortChange", val);
1598
+ },
1599
+ uploadingTextStyle(text) {
1600
+ // 第一个未知,第二个stauts超时,第三个上传块超时
1601
+ if (
1602
+ text === "出错" ||
1603
+ text === "查询文件地址超时" ||
1604
+ text === "上传出错"
1605
+ ) {
1606
+ return "uploading_error";
1607
+ } else if (text === "已完成") {
1608
+ return "uploading_success";
1609
+ } else if (text === "等待上传") {
1610
+ return "uploading_wait";
1611
+ } else {
1612
+ return "";
1613
+ }
1614
+ },
1615
+ resetFileUpload(item) {
1616
+ this.$emit("resetFileUpload", item);
1617
+ },
1618
+ cancelFileUpload(item) {
1619
+ this.$emit("cancelFileUpload", item);
1620
+ },
1621
+ handleClickOnlyFile() {
1622
+ this.$emit("delteSelectedFile");
1623
+ },
1624
+ // 数字验证
1625
+ fileFormatValid(val) {
1626
+ const number = (val / (1024 * 1024)).toFixed(2);
1627
+
1628
+ return number;
1629
+ },
1630
+ getFileType(name) {
1631
+ return name.split(".")[1];
1632
+ },
1633
+ handleSelectionChange(selection) {
1634
+ const selecId = selection.map(item => item.index);
1635
+
1636
+ this.$emit("handleSelectionChange", selecId);
1637
+ },
1638
+ },
1639
+ });
1640
+
1641
+ // CONCATENATED MODULE: ./src/components/FileUpload/components/Upload_table/index.vue?vue&type=script&lang=js
1642
+ /* harmony default export */ var components_Upload_tablevue_type_script_lang_js = (Upload_tablevue_type_script_lang_js);
1643
+ // EXTERNAL MODULE: ./src/components/FileUpload/components/Upload_table/index.vue?vue&type=style&index=0&id=61052c10&prod&lang=scss&scoped=true
1644
+ var Upload_tablevue_type_style_index_0_id_61052c10_prod_lang_scss_scoped_true = __webpack_require__("6bfd");
1645
+
1646
+ // CONCATENATED MODULE: ./src/components/FileUpload/components/Upload_table/index.vue
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+ /* normalize component */
1654
+
1655
+ var Upload_table_component = normalizeComponent(
1656
+ components_Upload_tablevue_type_script_lang_js,
1657
+ Upload_tablevue_type_template_id_61052c10_scoped_true_render,
1658
+ Upload_tablevue_type_template_id_61052c10_scoped_true_staticRenderFns,
1659
+ false,
1660
+ null,
1661
+ "61052c10",
1662
+ null
1663
+
1664
+ )
1665
+
1666
+ /* harmony default export */ var Upload_table = (Upload_table_component.exports);
1431
1667
  // EXTERNAL MODULE: ./node_modules/spark-md5/spark-md5.js
1432
1668
  var spark_md5 = __webpack_require__("69a0");
1433
1669
  var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
@@ -2615,6 +2851,20 @@ async function addNewFileId(id, version_id, fileType) {
2615
2851
  //
2616
2852
  //
2617
2853
  //
2854
+ //
2855
+ //
2856
+ //
2857
+ //
2858
+ //
2859
+ //
2860
+ //
2861
+ //
2862
+ //
2863
+ //
2864
+ //
2865
+ //
2866
+ //
2867
+
2618
2868
 
2619
2869
 
2620
2870
 
@@ -2624,6 +2874,7 @@ async function addNewFileId(id, version_id, fileType) {
2624
2874
  name: "KukanUpload",
2625
2875
  components: {
2626
2876
  Card_2: UploadCard_Ver_Second,
2877
+ Upload_table: Upload_table,
2627
2878
  },
2628
2879
  props: {
2629
2880
  // 秒传(文件已存在则跳过上传);待做
@@ -2805,6 +3056,13 @@ async function addNewFileId(id, version_id, fileType) {
2805
3056
  uploadStart() {
2806
3057
  this.$emit("uploadStart");
2807
3058
  },
3059
+
3060
+ tableSelectionChange(selectIds) {
3061
+ this.needUploadFilesArr.forEach(item => {
3062
+ item.isSelected = selectIds.includes(item.index);
3063
+ });
3064
+ },
3065
+
2808
3066
  // 上传开始后制定其他的文件筛选逻辑
2809
3067
  // 返回 Promise,父组件通过回调在需要时调用 `done(filterFiles)` 来决议
2810
3068
  uploadingOtherFilterFun(needUploadFilesArr) {
@@ -3093,6 +3351,7 @@ async function addNewFileId(id, version_id, fileType) {
3093
3351
 
3094
3352
  if (this.needUploadFilesArr.length === _neerUploadFilesArr.length) {
3095
3353
  this.$message("没有需要移除的文件");
3354
+ return
3096
3355
  }
3097
3356
 
3098
3357
  // 需要添加移除文件的钩子函数
@@ -3399,8 +3658,8 @@ async function addNewFileId(id, version_id, fileType) {
3399
3658
 
3400
3659
  // CONCATENATED MODULE: ./src/components/FileUpload/index.vue?vue&type=script&lang=js
3401
3660
  /* harmony default export */ var components_FileUploadvue_type_script_lang_js = (FileUploadvue_type_script_lang_js);
3402
- // EXTERNAL MODULE: ./src/components/FileUpload/index.vue?vue&type=style&index=0&id=7674a44a&prod&scoped=true&lang=scss
3403
- var FileUploadvue_type_style_index_0_id_7674a44a_prod_scoped_true_lang_scss = __webpack_require__("7b17");
3661
+ // EXTERNAL MODULE: ./src/components/FileUpload/index.vue?vue&type=style&index=0&id=2d21bcb8&prod&scoped=true&lang=scss
3662
+ var FileUploadvue_type_style_index_0_id_2d21bcb8_prod_scoped_true_lang_scss = __webpack_require__("f7bf");
3404
3663
 
3405
3664
  // CONCATENATED MODULE: ./src/components/FileUpload/index.vue
3406
3665
 
@@ -3417,7 +3676,7 @@ var FileUpload_component = normalizeComponent(
3417
3676
  staticRenderFns,
3418
3677
  false,
3419
3678
  null,
3420
- "7674a44a",
3679
+ "2d21bcb8",
3421
3680
  null
3422
3681
 
3423
3682
  )
@@ -3432,7 +3691,7 @@ FileUpload.install = function(Vue) {
3432
3691
  };
3433
3692
 
3434
3693
  /* harmony default export */ var components_FileUpload = (FileUpload);
3435
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0c625dac-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VideoPreviewDialog/index.vue?vue&type=template&id=419a04c7&scoped=true
3694
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"11f08e80-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VideoPreviewDialog/index.vue?vue&type=template&id=419a04c7&scoped=true
3436
3695
  var VideoPreviewDialogvue_type_template_id_419a04c7_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{"visible":_vm.dialogVisible,"show-close":false,"modal":true,"width":_vm.width,"top":_vm.topMargin,"custom-class":"modern-video-review-dialog","append-to-body":"","before-close":_vm.closePreview},on:{"update:visible":function($event){_vm.dialogVisible=$event},"opened":_vm.onOpened}},[_c('div',{staticClass:"video-review-container",style:({ height: _vm.height }),on:{"mousemove":_vm.onDrag,"mouseup":_vm.stopDrag,"mouseleave":_vm.stopDrag}},[_c('div',{staticClass:"video-review-header"},[_c('div',{staticClass:"file-info"},[_c('span',{staticClass:"file-name",attrs:{"title":_vm.fileName}},[_vm._v(_vm._s(_vm.fileName || "视频预览"))]),(!_vm.loading && !_vm.loadError && _vm.videoWidth)?_c('span',{staticClass:"file-size"},[_vm._v(" "+_vm._s(_vm.videoWidth)+" × "+_vm._s(_vm.videoHeight)+" px | "+_vm._s(_vm.duration)+" ")]):_vm._e()]),_c('div',{staticClass:"video-review-controls"},[_c('button',{staticClass:"control-icon-btn",attrs:{"disabled":_vm.scale <= _vm.minScale},on:{"click":_vm.zoomOut}},[_c('i',{staticClass:"el-icon-zoom-out"})]),_c('span',{staticClass:"zoom-display"},[_vm._v(_vm._s(Math.round(_vm.scale * 100))+"%")]),_c('button',{staticClass:"control-icon-btn",attrs:{"disabled":_vm.scale >= _vm.maxScale},on:{"click":_vm.zoomIn}},[_c('i',{staticClass:"el-icon-zoom-in"})]),_c('div',{staticClass:"control-divider"}),_c('button',{staticClass:"control-icon-btn",attrs:{"title":"原始尺寸/重置位置"},on:{"click":_vm.resetZoom}},[_c('i',{staticClass:"el-icon-refresh-right"})]),_c('button',{staticClass:"control-icon-btn close-btn",on:{"click":_vm.closePreview}},[_c('i',{staticClass:"el-icon-close"})])])]),_c('div',{staticClass:"video-review-content",on:{"wheel":function($event){$event.preventDefault();return _vm.handleWheel($event)},"mousedown":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.startDrag($event)},"!click":function($event){return _vm.handleCaptureClick($event)}}},[_c('transition',{attrs:{"name":"fade"}},[(_vm.loading && !_vm.loadError)?_c('div',{staticClass:"status-overlay"},[_c('i',{staticClass:"el-icon-loading"}),_c('p',[_vm._v("视频加载中...")])]):_vm._e()]),(_vm.loadError)?_c('div',{staticClass:"status-overlay error"},[_c('i',{staticClass:"el-icon-video-camera"}),_c('p',[_vm._v("视频加载失败")])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.loading && !_vm.loadError),expression:"!loading && !loadError"}],staticClass:"video-transform-wrapper",style:(_vm.videoStyle),on:{"mousedown":_vm.startDrag}},[(_vm.videoUrl)?_c('video',{key:_vm.videoUrl,ref:"videoPlayer",staticClass:"main-preview-video",attrs:{"src":_vm.videoUrl,"autoplay":"","muted":"","loop":"","playsinline":"","controls":""},domProps:{"muted":true},on:{"loadedmetadata":_vm.onMetadataLoad,"error":_vm.onVideoError,"canplay":_vm.onCanPlay}}):_vm._e()])],1),_c('div',{staticClass:"video-review-hint"},[_c('span',[_vm._v("鼠标拖拽背景移动,滚轮缩放查看细节")])])])])}
3437
3696
  var VideoPreviewDialogvue_type_template_id_419a04c7_scoped_true_staticRenderFns = []
3438
3697