From 41480298c9df535a88038b741367c08ef717cf16 Mon Sep 17 00:00:00 2001 From: hekaiyu <13673834656@163.com> Date: Thu, 12 Jun 2025 22:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=9B=BE=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=EF=BC=8C=E6=96=87=E4=BB=B6=E6=8E=A5=E5=BC=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/statistics.vue | 2 +- src/views/datalink/modules/SliceUpload.vue | 23 +++++++++++++++++++++- src/views/task/statistics.vue | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/views/data/statistics.vue b/src/views/data/statistics.vue index 51de7f5..f2aa2f3 100644 --- a/src/views/data/statistics.vue +++ b/src/views/data/statistics.vue @@ -214,7 +214,7 @@ }, series: [ { - name: '占比', + name: 'MB', type: 'pie', radius: '70%', data: this.catalogingStorageData, diff --git a/src/views/datalink/modules/SliceUpload.vue b/src/views/datalink/modules/SliceUpload.vue index 950428d..b055016 100644 --- a/src/views/datalink/modules/SliceUpload.vue +++ b/src/views/datalink/modules/SliceUpload.vue @@ -2,7 +2,7 @@
- + {{ d }} @@ -28,6 +28,20 @@ + + + + + + 达梦数据库 + + + MySQL数据库 + + + + +
@@ -101,6 +115,7 @@ export default { fileList: [], tableDate: [], schemaName:"", + dbType:"", allSchemaName:[] } }, @@ -137,6 +152,7 @@ export default { this.fileList = [] this.tableDate = [] this.schemaName ="" + this.dbType ="" }, getAllSchemaName(){ getAction("/fileDataLink/getAllSchemaName").then((res) => { @@ -200,6 +216,10 @@ export default { this.$message.warning("请先选择上传的模式"); return } + if(this.dbType ==""){ + this.$message.warning("请先选择上传文件的数据库类型"); + return + } const isValidExtension = this.accept.split(',').some(ext => file.name.toLowerCase().endsWith(ext) ); @@ -295,6 +315,7 @@ export default { formData.append('file', file) formData.append("dataLinkType",this.dataLinkType); formData.append("schemaName",this.schemaName); + formData.append("dbType",this.dbType); return formData }, diff --git a/src/views/task/statistics.vue b/src/views/task/statistics.vue index 5a5c70f..ffd980b 100644 --- a/src/views/task/statistics.vue +++ b/src/views/task/statistics.vue @@ -301,7 +301,7 @@ export default { }, series: [ { - name: 'GB', + name: 'MB', type: 'pie', radius: '80%', data: this.totalNumberCataloguesData,