Merge branch 'main' of http://git.hivekion.com:3000/IDCDatasync/IDCDatasync-vue
This commit is contained in:
commit
bf09962402
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user