Compare commits

..

2 Commits

Author SHA1 Message Date
hekaiyu
8334e74a2a Merge remote-tracking branch 'origin/main' 2025-05-26 00:05:41 +08:00
hekaiyu
1eb785dfca 导出csv、txt 2025-05-26 00:05:21 +08:00

View File

@ -105,13 +105,17 @@ import { metaDataTypeTree } from '@/api/metaData'
this.$message.warning("至少选择一个需要导出的表"); this.$message.warning("至少选择一个需要导出的表");
return; return;
} }
postAction("/dataManager/DmExportTable?schemaMass="+this.queryParam.schemaMass+"&tableNames="+this.selectedRowKeys+"&exportType="+exportType,{}).then(res => {
if (res.code == 200) { let apiBaseUrl = window._CONFIG['domianURL'] || '/jeecg-boot'
this.$message.success(res.result); window.open(apiBaseUrl + "/file/DmExportTable?schemaMass="+this.queryParam.schemaMass+"&tableNames="+this.selectedRowKeys+"&exportType="+exportType)
}else{
this.$message.warning(res.message) // postAction("/dataManager/DmExportTable?schemaMass="+this.queryParam.schemaMass+"&tableNames="+this.selectedRowKeys+"&exportType="+exportType,{}).then(res => {
} // if (res.code == 200) {
}) // this.$message.success(res.result);
// }else{
// this.$message.warning(res.message)
// }
// })
}, },
onOk(value) { onOk(value) {
this.$emit('ok'); this.$emit('ok');