接口列表

master
chaiyapeng 2024-08-26 10:58:27 +08:00
parent ef8aed4036
commit 6f0b2c7489
3 changed files with 108 additions and 39 deletions

View File

@ -6,3 +6,11 @@ export function getPhonePlace(tel) {
method: 'get' method: 'get'
}) })
} }
export function findConnectorList(data) {
return request({
url: '/mart/connector/findConnectorList',
method: 'post',
data:data
})
}

View File

@ -1,26 +1,98 @@
<template> <template>
<div> <el-table
<<el-row> :data="tableData"
<el-col :span="8" :offset="index > 0 ? 2 : 0"> style="width: 100%">
<el-card :body-style="{ padding: '10px' }">
<img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image"> <el-table-column
<div style="padding: 14px;"> label="id"
<span>手机号查询归属地</span> width="180">
<div class="bottom clearfix"> <template slot-scope="scope">
<time class="time">{{ currentDate }}</time> <span style="margin-left: 10px">{{ scope.row.connectorId }}</span>
<el-button type="text" class="button">操作按钮</el-button> </template>
</div> </el-table-column>
</div>
</el-card> <el-table-column
</el-col> label="接口名称"
</el-row> width="180">
</div> <template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorName }}</span>
</template>
</el-table-column>
<el-table-column
label="接口描述"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorDescribe }}</span>
</template>
</el-table-column>
<el-table-column
label="接口图片"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorPicture }}</span>
</template>
</el-table-column>
<el-table-column
label="公司"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorCompany }}</span>
</template>
</el-table-column>
<el-table-column
label="更新时间"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorTime }}</span>
</template>
</el-table-column>
<el-table-column
label="剩余次数"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorResidueDegree }}</span>
</template>
</el-table-column>
<el-table-column
label="购买次数"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorFrequency }}</span>
</template>
</el-table-column>
<el-table-column
label="状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.connectorStatus }}</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>
</template> </template>
<script> <script>
//jsjsjson, //jsjsjson,
//import from ', //import from ',
import {getPhonePlace} from "@/api/port/port"; import {findConnectorList} from "@/api/port/port";
export default { export default {
//import使" //import使"
components: {}, components: {},
@ -28,7 +100,10 @@ export default {
data() { data() {
//" //"
return {}; return {
form:{},
tableData:[],
};
}, },
// data", // data",
computed: {}, computed: {},
@ -36,10 +111,15 @@ export default {
watch: {}, watch: {},
//", //",
methods: { methods: {
findConnectorList(){
findConnectorList(this.form).then((res)=>{
this.tableData=res.data;
})
}
}, },
// - 访this", // - 访this",
created() { created() {
this.findConnectorList();
}, },
// - 访DOM", // - 访DOM",
mounted() { mounted() {
@ -61,24 +141,5 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.box-card {
width: 480px;
}
</style> </style>

View File

@ -38,7 +38,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://172.13.1.1/prod-api`, target: `http://172.13.1.1/prod-api`,
// target: `http://127.0.0.1/8080`, // target: `http://127.0.0.1/8080`, `http://172.13.1.1/prod-api`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''