@fengzhongwen/kukan-ui 1.0.19 → 1.0.20

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.
@@ -92,17 +92,6 @@ module.exports =
92
92
 
93
93
  // extracted by mini-css-extract-plugin
94
94
 
95
- /***/ }),
96
-
97
- /***/ "3626":
98
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
-
100
- "use strict";
101
- /* 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_5bd93bb8_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("98cc");
102
- /* 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_5bd93bb8_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_5bd93bb8_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
103
- /* unused harmony reexport * */
104
-
105
-
106
95
  /***/ }),
107
96
 
108
97
  /***/ "5554":
@@ -896,11 +885,22 @@ module.exports =
896
885
 
897
886
  /***/ }),
898
887
 
899
- /***/ "98cc":
888
+ /***/ "c1a8":
900
889
  /***/ (function(module, exports, __webpack_require__) {
901
890
 
902
891
  // extracted by mini-css-extract-plugin
903
892
 
893
+ /***/ }),
894
+
895
+ /***/ "ce57":
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_7c0b3ed0_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c1a8");
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_7c0b3ed0_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_7c0b3ed0_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
901
+ /* unused harmony reexport * */
902
+
903
+
904
904
  /***/ }),
905
905
 
906
906
  /***/ "fb15":
@@ -1086,12 +1086,12 @@ function addNewFileOfSubTitle(data, url) {
1086
1086
  });
1087
1087
  }
1088
1088
 
1089
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7f750f50-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=5bd93bb8&scoped=true
1089
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78fe9ce9-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=7c0b3ed0&scoped=true
1090
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)}
1091
1091
  var staticRenderFns = []
1092
1092
 
1093
1093
 
1094
- // CONCATENATED MODULE: ./src/components/FileUpload/index.vue?vue&type=template&id=5bd93bb8&scoped=true
1094
+ // CONCATENATED MODULE: ./src/components/FileUpload/index.vue?vue&type=template&id=7c0b3ed0&scoped=true
1095
1095
 
1096
1096
  // CONCATENATED MODULE: ./src/components/FileUpload/util.js
1097
1097
  // 辅助函数:获取MIME类型
@@ -1166,7 +1166,7 @@ const fileTypeValidators = {
1166
1166
  // return /^(presentation))|text\/(plain|html|csv|xml|css|javascript|markdown))$/i.test(mime);
1167
1167
  },
1168
1168
  };
1169
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7f750f50-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":"78fe9ce9-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
1170
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:{
1171
1171
  only_file_area_isActive: _vm.fileConfig.isSelected,
1172
1172
  'fade-in-element': true,
@@ -1446,7 +1446,7 @@ var component = normalizeComponent(
1446
1446
  )
1447
1447
 
1448
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":"7f750f50-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
1449
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78fe9ce9-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
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
1451
  scope.row.tip === '已取消' ||
1452
1452
  scope.row.tip === '上传出错' ||
@@ -1686,7 +1686,7 @@ const chunkSegmentationSize = 1024 * 1024 * 5;
1686
1686
  let api = {};
1687
1687
  // 默认配置内容管理api
1688
1688
  const contentManagement = {
1689
- checkfileStatusUrl: "/zt-api/resources/upload/status",
1689
+ checkfileStatusUrl: "/zt-api/resources/check",
1690
1690
  filesAllUoloadedUrl: "/zt-api/resources/chunk/merge",
1691
1691
  searchFileIsUploadedUrl: "/zt-api/resources/check",
1692
1692
  searchChunkIsUploadedUrl: "/zt-api/resources/check/chunk",
@@ -1805,10 +1805,10 @@ function createConcurrentController(maxConcurrent, onProgress) {
1805
1805
  ) {
1806
1806
  console.log("重要:进度条强制不更新", errorTasks.length);
1807
1807
  } else {
1808
- console.log(
1809
- "2.进度条为成功状态(异步工具内部更新),错误个数",
1810
- errorTasks.length,
1811
- );
1808
+ // console.log(
1809
+ // "2.进度条为成功状态(异步工具内部更新),错误个数",
1810
+ // errorTasks.length,
1811
+ // );
1812
1812
 
1813
1813
  onProgress({
1814
1814
  percentage: progress,
@@ -1916,7 +1916,6 @@ function createConcurrentController(maxConcurrent, onProgress) {
1916
1916
  runTasks(taskOption) {
1917
1917
  return new Promise((resolve, reject) => {
1918
1918
  const allResults = [];
1919
- let Count = 0;
1920
1919
  let hasError = false;
1921
1920
  totalTasks = taskOption.length;
1922
1921
 
@@ -1925,13 +1924,13 @@ function createConcurrentController(maxConcurrent, onProgress) {
1925
1924
  this.add(false, item)
1926
1925
  .then(result => {
1927
1926
  allResults[index] = result;
1928
- Count++;
1929
1927
  // 有结果出错是否停止所有任务,暂时采取停止所有任务
1930
1928
  if (
1931
- (Count === taskOption.length && !hasError) ||
1929
+ (completedCount + cancleTasks.length === taskOption.length &&
1930
+ !hasError) ||
1932
1931
  (result.status === false && !result.skip)
1933
1932
  ) {
1934
- resolve(allResults); // 当队列结束或者块队列出现文件错误则立马返回数据!
1933
+ resolve(allResults); // 当队列结束或者块队列出现文件错误(且结果为不跳过任务时)则立马返回数据!
1935
1934
  }
1936
1935
  })
1937
1936
  .catch(error => {
@@ -2006,11 +2005,11 @@ function createConcurrentController(maxConcurrent, onProgress) {
2006
2005
  // 需要处理块任务和文件任务的结果
2007
2006
  task()
2008
2007
  .then(result => {
2009
- console.log(
2010
- "1.任务执行完成的返回结果(异步工具函数队列中一个)",
2011
- result,
2012
- isErrorReset,
2013
- );
2008
+ // console.log(
2009
+ // "1.任务执行完成的返回结果(异步工具函数队列中一个)",
2010
+ // result,
2011
+ // isErrorReset,
2012
+ // );
2014
2013
  if (result.status) {
2015
2014
  if (isErrorReset) {
2016
2015
  completedCount++;
@@ -2145,6 +2144,9 @@ async function handleFileExistOrNo(fileConfig, addDataBaseLinkConfig) {
2145
2144
  );
2146
2145
 
2147
2146
  if (add_result.status) {
2147
+ // 步骤2:文件存在,直接新增文件链接
2148
+ console.log("文件已经存在,直接创建新链接");
2149
+
2148
2150
  return {
2149
2151
  fileIsExist: true,
2150
2152
  status: true,
@@ -2202,22 +2204,24 @@ async function uploadSingleFile(
2202
2204
  try {
2203
2205
  setStep(0, false, "解析中");
2204
2206
 
2207
+ console.log(
2208
+ "%c 文件上传中:",
2209
+ "color: #2196F3; font-weight: bold;",
2210
+ fileName,
2211
+ );
2212
+
2205
2213
  // 步骤1:检查文件是否存在
2206
2214
  const fileStorageResult = await handleFileExistOrNo(
2207
2215
  { uploadId, fileHash, fileSize, fileName },
2208
2216
  addDataBaseLinkConfig,
2209
2217
  );
2210
2218
 
2211
- console.log("检查文件是否存在", fileStorageResult);
2219
+ console.log("是否分块上传?", !fileStorageResult.fileIsExist);
2212
2220
 
2213
2221
  // 文件存在或者内部错误时返回
2214
2222
  if (fileStorageResult.fileIsExist || fileStorageResult.error) {
2215
2223
  if (fileStorageResult.status) {
2216
- updateProgress({
2217
- percentage: 100,
2218
- notShowTip: false,
2219
- tip: "已完成",
2220
- });
2224
+ setStep(100, false, "已完成");
2221
2225
  return fileStorageResult;
2222
2226
  } else {
2223
2227
  progress_error();
@@ -2230,7 +2234,11 @@ async function uploadSingleFile(
2230
2234
  // 步骤2:上传所有切片
2231
2235
  // 准备切片
2232
2236
  const chunks = await createChunks(file, [], chunkSegmentationSize);
2233
- console.log("进入分片上传流程,切片列表", chunks);
2237
+ console.groupCollapsed(
2238
+ "%c 分片上传流程",
2239
+ "color: #2196F3; font-weight: bold;",
2240
+ );
2241
+ console.log("切片列表", chunks);
2234
2242
 
2235
2243
  // 上传切片
2236
2244
  // 1:此处错误处理一部分在并发控制器里面进行(控制自己本身),逻辑:直接改变文件的进度条,进行错误状态,数字文字等回显
@@ -2262,6 +2270,7 @@ async function uploadSingleFile(
2262
2270
 
2263
2271
  // 步骤3:请求后端合并切片
2264
2272
  const uploadedFileIsMerge = await informServeUploaded(fileHash, fileSize);
2273
+ console.log("合并切片,结果:", uploadedFileIsMerge);
2265
2274
 
2266
2275
  if (!uploadedFileIsMerge) {
2267
2276
  setStep(0, false, "文件合并失败");
@@ -2275,7 +2284,7 @@ async function uploadSingleFile(
2275
2284
  };
2276
2285
  }
2277
2286
 
2278
- console.log("结束分片上传流程");
2287
+ console.groupEnd();
2279
2288
 
2280
2289
  // 步骤4:轮询检查文件落盘状态
2281
2290
  const resultFile = await startCheckfileStatus(
@@ -2296,6 +2305,7 @@ async function uploadSingleFile(
2296
2305
  };
2297
2306
  }
2298
2307
 
2308
+ // 步骤5:是否自动创建数据库路径
2299
2309
  if (!createLink) {
2300
2310
  setStep(100, false, "已完成");
2301
2311
 
@@ -2307,7 +2317,7 @@ async function uploadSingleFile(
2307
2317
  };
2308
2318
  }
2309
2319
 
2310
- // 步骤5:请求数据库创建新的文件路径
2320
+ // 步骤6:请求数据库创建新的文件路径
2311
2321
  const add_result = await addNewFileId(
2312
2322
  resultFile.fileId,
2313
2323
  programVersion,
@@ -2523,11 +2533,7 @@ async function uploadChunks(chunks, fileHash, fileName, uploadId, controller) {
2523
2533
 
2524
2534
  const result = await Promise.race([uplodChunkPromise, timerPromise]);
2525
2535
 
2526
- console.log(
2527
- "块上传(一个块成功打印,有失败打印,并且直接停止运行上传队列),结果",
2528
- index,
2529
- result,
2530
- );
2536
+ console.log("块上传,序号:", index, result);
2531
2537
 
2532
2538
  return result;
2533
2539
  };
@@ -3415,8 +3421,8 @@ async function addNewFileId(id, version_id, fileType) {
3415
3421
  queued,
3416
3422
  skipError,
3417
3423
  }) => {
3418
- console.debug(
3419
- `3.文件总进度:已完成 ${completed}/${total},正在上传 ${active},排队中 ${queued}, 出错数量 ${skipError} 个(主要控制进度条)`,
3424
+ console.log(
3425
+ "%c 文件总进度:", "color: #2196F3; font-weight: bold;", `已完成 ${completed}/${total},正在上传 ${active},排队中 ${queued}, 出错数量 ${skipError} 个`
3420
3426
  );
3421
3427
  this.fileConfig.overallProgress = percentage;
3422
3428
  this.fileConfig.notShowTip = notShowTip;
@@ -3668,8 +3674,8 @@ async function addNewFileId(id, version_id, fileType) {
3668
3674
 
3669
3675
  // CONCATENATED MODULE: ./src/components/FileUpload/index.vue?vue&type=script&lang=js
3670
3676
  /* harmony default export */ var components_FileUploadvue_type_script_lang_js = (FileUploadvue_type_script_lang_js);
3671
- // EXTERNAL MODULE: ./src/components/FileUpload/index.vue?vue&type=style&index=0&id=5bd93bb8&prod&scoped=true&lang=scss
3672
- var FileUploadvue_type_style_index_0_id_5bd93bb8_prod_scoped_true_lang_scss = __webpack_require__("3626");
3677
+ // EXTERNAL MODULE: ./src/components/FileUpload/index.vue?vue&type=style&index=0&id=7c0b3ed0&prod&scoped=true&lang=scss
3678
+ var FileUploadvue_type_style_index_0_id_7c0b3ed0_prod_scoped_true_lang_scss = __webpack_require__("ce57");
3673
3679
 
3674
3680
  // CONCATENATED MODULE: ./src/components/FileUpload/index.vue
3675
3681
 
@@ -3686,7 +3692,7 @@ var FileUpload_component = normalizeComponent(
3686
3692
  staticRenderFns,
3687
3693
  false,
3688
3694
  null,
3689
- "5bd93bb8",
3695
+ "7c0b3ed0",
3690
3696
  null
3691
3697
 
3692
3698
  )
@@ -3701,7 +3707,7 @@ FileUpload.install = function(Vue) {
3701
3707
  };
3702
3708
 
3703
3709
  /* harmony default export */ var components_FileUpload = (FileUpload);
3704
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7f750f50-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
3710
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78fe9ce9-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
3705
3711
  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("鼠标拖拽背景移动,滚轮缩放查看细节")])])])])}
3706
3712
  var VideoPreviewDialogvue_type_template_id_419a04c7_scoped_true_staticRenderFns = []
3707
3713