Commit 6f87fa5f by 李耀琨

断开资源库

parent c4277ba7
......@@ -309,6 +309,14 @@ export function newStep(data){
//断开资源库
export function logout(data){
return request({
url: 'etlweb/repository/logout',
data,
method: 'post'
})
}
......@@ -917,6 +917,7 @@ export default {
xmlDocuments: "", //获取解码的xml
boxInformation: "", //弹框信息
toolItemData:{},//新增节点时的值
doubleClickCell:{},//双击节点
// mxl=================================
InsertOrUpdateVisible: false,
......
......@@ -41,7 +41,7 @@
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="showModalOne()">连接资源库</el-dropdown-item>
<el-dropdown-item >管理资源库</el-dropdown-item>
<el-dropdown-item >断开资源库</el-dropdown-item>
<el-dropdown-item @click.native="disconnect()" >断开资源库</el-dropdown-item>
<el-dropdown-item @click.native="exportTreeDialog()">导出资源库</el-dropdown-item>
<el-dropdown-item>导入资源库</el-dropdown-item>
</el-dropdown-menu>
......@@ -356,7 +356,8 @@ import {
check,//编辑数据库
loginRepository,//连接数据库
addRepository,//资源库信息
open
open,
logout
} from "@/api/kettle/link";
// import Establish from '../dialogs-components/establish.vue'
// import Scan from '../dialogs-components/scan.vue'
......@@ -678,6 +679,20 @@ props: ["dragItem"],
methods: {
disconnect(){
logout().then(res => {
console.log(res);
if (res.success) {
this.$message.success(res.message)
this.explorer('');
this.$forceUpdate();
}else{
this.$message.error(res.errMsg)
}
})
},
//接收子组件显示画布
shooStatus(e){
console.log(e,'接收子组件显示画布')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment