This commit is contained in:
RenCheng 2025-04-21 23:11:00 +08:00
commit bf09962402
5 changed files with 13 additions and 11 deletions

View File

@ -1,6 +1,7 @@
import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
const metaDataTypeTree = (params)=>getAction("/dataManager/getAllTable",params);
const metaViewDataTypeTree = (params)=>getAction("/dataManager/getAllTableView",params);
const metaDatalist = (params)=>getAction("/dataManager/getTableColumns",params);
const tableDataList = (params)=>getAction("/dataManager/getTableData",params);
const tableIndexes = (params)=>getAction("/tableIndex/getTableIndexes",params);
@ -8,6 +9,7 @@ const DmExportTool = (params)=>postAction("/dataManager/DmExportTool",params);
export {
metaDataTypeTree,
metaViewDataTypeTree,
metaDatalist,
tableIndexes,
tableDataList,

View File

@ -4,8 +4,8 @@
<div class="linese"></div>
<!-- 查询区域 -->
<div class="table-page-search-wrapper" style="background: #e6e9f1;padding:10px;">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaName" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.enName">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaMass" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.cnName">
{{ d.cnName }}
</a-select-option>
</a-select>
@ -90,7 +90,7 @@ export default {
percent: 0,
websock: {},
datatypequeryParam: {
schemaName: "",
schemaMass: "",
sourceType: 1
},
queryParam: {
@ -203,7 +203,7 @@ export default {
dataTypePageList(this.queryParam).then((res) => {
if (res.success) {
this.dataTypedataSources = res.result.rows || res.result;
this.datatypequeryParam.schemaName = res.result.rows[0].cnName
this.datatypequeryParam.schemaMass = res.result.rows[0].cnName
this.getTables();
} else {
this.$message.warning(res.message);

View File

@ -4,8 +4,8 @@
<div class="linese"></div>
<!-- 查询区域 -->
<div class="table-page-search-wrapper" style="background: #e6e9f1;padding:10px;">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaName" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.enName">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaMass" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.cnName">
{{ d.cnName }}
</a-select-option>
</a-select>
@ -97,7 +97,7 @@
percent:0,
websock:{},
datatypequeryParam: {
schemaName:"",
schemaMass:"",
sourceType:2
},
queryParam: {
@ -211,7 +211,7 @@
dataTypePageList(this.queryParam).then((res) => {
if (res.success) {
this.dataTypedataSources = res.result.rows||res.result;
this.datatypequeryParam.schemaName = res.result.rows[0].cnName
this.datatypequeryParam.schemaMass = res.result.rows[0].cnName
this.getTables();
} else {
this.$message.warning(res.message);

View File

@ -78,7 +78,7 @@
</a-card>
</template>
<script>
import { metaDataTypeTree, metaDatalist } from '@/api/metaData'
import {metaDataTypeTree, metaDatalist, metaViewDataTypeTree} from '@/api/metaData'
export default {
name: "metadata",
components: {
@ -150,7 +150,7 @@ export default {
},
methods: {
getMetaDataTypeTree() {
metaDataTypeTree(this.queryParam).then(res => {
metaViewDataTypeTree(this.queryParam).then(res => {
if (res.code == 200) {
this.treeDate = []
var keys = Object.keys(res.result)

View File

@ -215,7 +215,7 @@ export default {
});
},
backup() {
postAction("/idcDataBackup/dmExportByUserName?userName=data_conn_original",{}).then(res => {
postAction("/idcDataBackup/dmExportBySourceType?userName=data_conn_original",{}).then(res => {
if (res.success) {
that.$message.success(res.message);
} else {