接口列表

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'
})
}
export function findConnectorList(data) {
return request({
url: '/mart/connector/findConnectorList',
method: 'post',
data:data
})
}

View File

@ -1,26 +1,98 @@
<template>
<div>
<<el-row>
<el-col :span="8" :offset="index > 0 ? 2 : 0">
<el-card :body-style="{ padding: '10px' }">
<img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
<div style="padding: 14px;">
<span>手机号查询归属地</span>
<div class="bottom clearfix">
<time class="time">{{ currentDate }}</time>
<el-button type="text" class="button">操作按钮</el-button>
</div>
</div>
</el-card>
</el-col>
</el-row>
</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.connectorId }}</span>
</template>
</el-table-column>
<el-table-column
label="接口名称"
width="180">
<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>
<script>
//jsjsjson,
//import from ',
import {getPhonePlace} from "@/api/port/port";
import {findConnectorList} from "@/api/port/port";
export default {
//import使"
components: {},
@ -28,7 +100,10 @@ export default {
data() {
//"
return {};
return {
form:{},
tableData:[],
};
},
// data",
computed: {},
@ -36,10 +111,15 @@ export default {
watch: {},
//",
methods: {
findConnectorList(){
findConnectorList(this.form).then((res)=>{
this.tableData=res.data;
})
}
},
// - 访this",
created() {
this.findConnectorList();
},
// - 访DOM",
mounted() {
@ -61,24 +141,5 @@ export default {
};
</script>
<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>

View File

@ -38,7 +38,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_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,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''