统计图单位,文件接引接口对接
This commit is contained in:
parent
4254623a44
commit
41480298c9
|
@ -214,7 +214,7 @@
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '占比',
|
name: 'MB',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: '70%',
|
radius: '70%',
|
||||||
data: this.catalogingStorageData,
|
data: this.catalogingStorageData,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row type="flex">
|
<a-row type="flex">
|
||||||
<a-col flex="auto">
|
<a-col flex="auto">
|
||||||
<a-select placeholder="选择模式" option-filter-prop="children" size="large" v-model="schemaName" style="width: 300px;">
|
<a-select placeholder="选择模式" option-filter-prop="children" size="large" v-model="schemaName" style="width: 300px;">
|
||||||
<a-select-option v-for="d in allSchemaName" :key="d">
|
<a-select-option v-for="d in allSchemaName" :key="d">
|
||||||
{{ d }}
|
{{ d }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
|
@ -28,6 +28,20 @@
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</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="result-wrapper" :style="{minHeight: boxHeight + 'px'}" >
|
||||||
<div class="item" v-for="(file,idx) in tableDate" :key="file.uid">
|
<div class="item" v-for="(file,idx) in tableDate" :key="file.uid">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -101,6 +115,7 @@ export default {
|
||||||
fileList: [],
|
fileList: [],
|
||||||
tableDate: [],
|
tableDate: [],
|
||||||
schemaName:"",
|
schemaName:"",
|
||||||
|
dbType:"",
|
||||||
allSchemaName:[]
|
allSchemaName:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -137,6 +152,7 @@ export default {
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
this.tableDate = []
|
this.tableDate = []
|
||||||
this.schemaName =""
|
this.schemaName =""
|
||||||
|
this.dbType =""
|
||||||
},
|
},
|
||||||
getAllSchemaName(){
|
getAllSchemaName(){
|
||||||
getAction("/fileDataLink/getAllSchemaName").then((res) => {
|
getAction("/fileDataLink/getAllSchemaName").then((res) => {
|
||||||
|
@ -200,6 +216,10 @@ export default {
|
||||||
this.$message.warning("请先选择上传的模式");
|
this.$message.warning("请先选择上传的模式");
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if(this.dbType ==""){
|
||||||
|
this.$message.warning("请先选择上传文件的数据库类型");
|
||||||
|
return
|
||||||
|
}
|
||||||
const isValidExtension = this.accept.split(',').some(ext =>
|
const isValidExtension = this.accept.split(',').some(ext =>
|
||||||
file.name.toLowerCase().endsWith(ext)
|
file.name.toLowerCase().endsWith(ext)
|
||||||
);
|
);
|
||||||
|
@ -295,6 +315,7 @@ export default {
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
formData.append("dataLinkType",this.dataLinkType);
|
formData.append("dataLinkType",this.dataLinkType);
|
||||||
formData.append("schemaName",this.schemaName);
|
formData.append("schemaName",this.schemaName);
|
||||||
|
formData.append("dbType",this.dbType);
|
||||||
return formData
|
return formData
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -301,7 +301,7 @@ export default {
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: 'GB',
|
name: 'MB',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: '80%',
|
radius: '80%',
|
||||||
data: this.totalNumberCataloguesData,
|
data: this.totalNumberCataloguesData,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user