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'
|
import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
|
||||||
|
|
||||||
const metaDataTypeTree = (params)=>getAction("/dataManager/getAllTable",params);
|
const metaDataTypeTree = (params)=>getAction("/dataManager/getAllTable",params);
|
||||||
|
const metaViewDataTypeTree = (params)=>getAction("/dataManager/getAllTableView",params);
|
||||||
const metaDatalist = (params)=>getAction("/dataManager/getTableColumns",params);
|
const metaDatalist = (params)=>getAction("/dataManager/getTableColumns",params);
|
||||||
const tableDataList = (params)=>getAction("/dataManager/getTableData",params);
|
const tableDataList = (params)=>getAction("/dataManager/getTableData",params);
|
||||||
const tableIndexes = (params)=>getAction("/tableIndex/getTableIndexes",params);
|
const tableIndexes = (params)=>getAction("/tableIndex/getTableIndexes",params);
|
||||||
|
@ -8,6 +9,7 @@ const DmExportTool = (params)=>postAction("/dataManager/DmExportTool",params);
|
||||||
|
|
||||||
export {
|
export {
|
||||||
metaDataTypeTree,
|
metaDataTypeTree,
|
||||||
|
metaViewDataTypeTree,
|
||||||
metaDatalist,
|
metaDatalist,
|
||||||
tableIndexes,
|
tableIndexes,
|
||||||
tableDataList,
|
tableDataList,
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
<div class="linese"></div>
|
<div class="linese"></div>
|
||||||
<!-- 查询区域 -->
|
<!-- 查询区域 -->
|
||||||
<div class="table-page-search-wrapper" style="background: #e6e9f1;padding:10px;">
|
<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 placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaMass" @change="getTables" style="width: 40%;">
|
||||||
<a-select-option v-for="d in dataTypedataSources" :key="d.enName">
|
<a-select-option v-for="d in dataTypedataSources" :key="d.cnName">
|
||||||
{{ d.cnName }}
|
{{ d.cnName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
@ -90,7 +90,7 @@ export default {
|
||||||
percent: 0,
|
percent: 0,
|
||||||
websock: {},
|
websock: {},
|
||||||
datatypequeryParam: {
|
datatypequeryParam: {
|
||||||
schemaName: "",
|
schemaMass: "",
|
||||||
sourceType: 1
|
sourceType: 1
|
||||||
},
|
},
|
||||||
queryParam: {
|
queryParam: {
|
||||||
|
@ -203,7 +203,7 @@ export default {
|
||||||
dataTypePageList(this.queryParam).then((res) => {
|
dataTypePageList(this.queryParam).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataTypedataSources = res.result.rows || res.result;
|
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();
|
this.getTables();
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
<div class="linese"></div>
|
<div class="linese"></div>
|
||||||
<!-- 查询区域 -->
|
<!-- 查询区域 -->
|
||||||
<div class="table-page-search-wrapper" style="background: #e6e9f1;padding:10px;">
|
<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 placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaMass" @change="getTables" style="width: 40%;">
|
||||||
<a-select-option v-for="d in dataTypedataSources" :key="d.enName">
|
<a-select-option v-for="d in dataTypedataSources" :key="d.cnName">
|
||||||
{{ d.cnName }}
|
{{ d.cnName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
percent:0,
|
percent:0,
|
||||||
websock:{},
|
websock:{},
|
||||||
datatypequeryParam: {
|
datatypequeryParam: {
|
||||||
schemaName:"",
|
schemaMass:"",
|
||||||
sourceType:2
|
sourceType:2
|
||||||
},
|
},
|
||||||
queryParam: {
|
queryParam: {
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
dataTypePageList(this.queryParam).then((res) => {
|
dataTypePageList(this.queryParam).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataTypedataSources = res.result.rows||res.result;
|
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();
|
this.getTables();
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { metaDataTypeTree, metaDatalist } from '@/api/metaData'
|
import {metaDataTypeTree, metaDatalist, metaViewDataTypeTree} from '@/api/metaData'
|
||||||
export default {
|
export default {
|
||||||
name: "metadata",
|
name: "metadata",
|
||||||
components: {
|
components: {
|
||||||
|
@ -150,7 +150,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMetaDataTypeTree() {
|
getMetaDataTypeTree() {
|
||||||
metaDataTypeTree(this.queryParam).then(res => {
|
metaViewDataTypeTree(this.queryParam).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.treeDate = []
|
this.treeDate = []
|
||||||
var keys = Object.keys(res.result)
|
var keys = Object.keys(res.result)
|
||||||
|
|
|
@ -215,7 +215,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
backup() {
|
backup() {
|
||||||
postAction("/idcDataBackup/dmExportByUserName?userName=data_conn_original",{}).then(res => {
|
postAction("/idcDataBackup/dmExportBySourceType?userName=data_conn_original",{}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
that.$message.success(res.message);
|
that.$message.success(res.message);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user