增加数据源列表

wangxinyuan
lwj 2024-08-22 17:19:12 +08:00
parent a40adc6b38
commit 003fc0264a
2 changed files with 26 additions and 1 deletions

View File

@ -8,3 +8,10 @@ export function selectSourceList(data){
data:data data:data
}) })
} }
export function selectSourceExport(){
return request({
url: "/source/source/export",
method: "POST",
})
}

View File

@ -26,10 +26,21 @@
<!-- >删除--> <!-- >删除-->
<!-- </el-button>--> <!-- </el-button>-->
<el-button @click="findSelectSourceExport">
导出
</el-button>
<el-table <el-table
:data="source" :data="source"
style="width: 100%"> style="width: 100%"
@selection-change="handleSelectionChange">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column <el-table-column
label="接入源名称" label="接入源名称"
@ -116,6 +127,7 @@
//jsjsjson, //jsjsjson,
//import from ', //import from ',
import {selectSourceList} from "@/api/etl/switch"; import {selectSourceList} from "@/api/etl/switch";
import {selectSourceExport} from "@/api/etl/switch";
export default { export default {
//import使" //import使"
components: {}, components: {},
@ -141,6 +153,12 @@ export default {
this.source=res.data.rows; this.source=res.data.rows;
}) })
}, },
findSelectSourceExport(){
selectSourceExport(this.SourceReq).then();
},
handleSelectionChange(row){
},
}, },
// - 访this", // - 访this",
created() { created() {