增加数据源列表
parent
a40adc6b38
commit
003fc0264a
|
@ -8,3 +8,10 @@ export function selectSourceList(data){
|
|||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectSourceExport(){
|
||||
return request({
|
||||
url: "/source/source/export",
|
||||
method: "POST",
|
||||
})
|
||||
}
|
||||
|
|
|
@ -26,10 +26,21 @@
|
|||
<!-- >删除-->
|
||||
<!-- </el-button>-->
|
||||
|
||||
<el-button @click="findSelectSourceExport">
|
||||
导出
|
||||
</el-button>
|
||||
|
||||
<el-table
|
||||
:data="source"
|
||||
style="width: 100%">
|
||||
style="width: 100%"
|
||||
|
||||
@selection-change="handleSelectionChange">
|
||||
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column
|
||||
label="接入源名称"
|
||||
|
@ -116,6 +127,7 @@
|
|||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
//例如:import 《组件名称》 from '《组件路径》,
|
||||
import {selectSourceList} from "@/api/etl/switch";
|
||||
import {selectSourceExport} from "@/api/etl/switch";
|
||||
export default {
|
||||
//import引入的组件需要注入到对象中才能使用"
|
||||
components: {},
|
||||
|
@ -141,6 +153,12 @@ export default {
|
|||
this.source=res.data.rows;
|
||||
})
|
||||
},
|
||||
findSelectSourceExport(){
|
||||
selectSourceExport(this.SourceReq).then();
|
||||
},
|
||||
handleSelectionChange(row){
|
||||
|
||||
},
|
||||
},
|
||||
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||
created() {
|
||||
|
|
Loading…
Reference in New Issue