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,