统计图单位,文件接引接口对接
This commit is contained in:
parent
4254623a44
commit
41480298c9
|
@ -214,7 +214,7 @@
|
|||
},
|
||||
series: [
|
||||
{
|
||||
name: '占比',
|
||||
name: 'MB',
|
||||
type: 'pie',
|
||||
radius: '70%',
|
||||
data: this.catalogingStorageData,
|
||||
|
|
|
@ -28,6 +28,20 @@
|
|||
</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row>
|
||||
<a-col>
|
||||
<a-form-item label="数据类型">
|
||||
<a-select placeholder="选择数据库类型" option-filter-prop="children" size="large" v-model="dbType" style="width: 300px;">
|
||||
<a-select-option key="DM">
|
||||
达梦数据库
|
||||
</a-select-option>
|
||||
<a-select-option key="MYSQL">
|
||||
MySQL数据库
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div class="result-wrapper" :style="{minHeight: boxHeight + 'px'}" >
|
||||
<div class="item" v-for="(file,idx) in tableDate" :key="file.uid">
|
||||
<div class="content">
|
||||
|
@ -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
|
||||
},
|
||||
|
||||
|
|
|
@ -301,7 +301,7 @@ export default {
|
|||
},
|
||||
series: [
|
||||
{
|
||||
name: 'GB',
|
||||
name: 'MB',
|
||||
type: 'pie',
|
||||
radius: '80%',
|
||||
data: this.totalNumberCataloguesData,
|
||||
|
|
Loading…
Reference in New Issue
Block a user