datax前台页面

master
chenbingxuan 2023-12-14 18:34:19 +08:00
parent f2041b00a4
commit 1c4d4d7aa8
3 changed files with 779 additions and 639 deletions

View File

@ -0,0 +1,9 @@
import request from "@/utils/request";
import data from "@/views/sys/dict/data.vue";
export function listDatax() {
return request({
url: 'srt-cloud-datax/datax/stuList',
method: 'post',
data
})
}

View File

@ -0,0 +1,113 @@
<template>
<div>
<el-table :data="tableData" style="width: 100%">
<el-table-column label="id" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.id }}</span>
</template>
</el-table-column>
<el-table-column label="姓名" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="端口" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.post }}</span>
</template>
</el-table-column>
<el-table-column label="状态" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.status }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<el-table-column label="创建用户" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.createUser }}</span>
</template>
</el-table-column>
<el-table-column label="修改时间" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.updateTime }}</span>
</template>
</el-table-column>
<el-table-column label="修改用户" width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.updateUser }}</span>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
size="mini"
@click="handleEdit(scope.$index, scope.row)">编辑</el-button>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.$index, scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
//jsjsjson,
//import from ',
import { listDatax } from "@/api/data-datax/datax";
export default {
//import使"
components: {},
props: {},
data() {
//"
return {
tableData: []
};
},
// data",
computed: {},
//data",
watch: {},
//",
methods: {
show() {
listDatax().then(res => {
console.log(res)
this.tableData = res.data
})
}
},
// - 访this",
created() {
this.show()
},
// - 访DOM",
mounted() {
},
beforeCreate() {
}, // - ",
beforeMount() {
}, // - ",
beforeUpdate() {
}, // - ",
updated() {
}, // - ",
beforeDestroy() {
}, // - ",
destroyed() {
}, // - ",
activated() {
} //keep-alive",
};
</script>
<style scoped>
</style>

File diff suppressed because it is too large Load Diff