API布局格式

master
chaiyapeng 2024-09-04 00:29:01 +08:00
parent 9ca3055f7f
commit 267d30ac0f
1 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@
</el-form> </el-form>
<el-row :gutter="50"> <el-row :gutter="50">
<el-col :span="7" v-for="connector in connectorList" :key="connector.connectorId" v-if="connectorList.length !== 0"> <el-col :span="7" v-for="connector in connectorList" :key="connector.connectorId" v-if="connectorList.length !== 0">
<el-card class="box-card" style="margin-top: 15px;width: 400px; height: 600px;" shadow="hover"> <el-card class="box-card" style="margin-top: 15px;width: 350px; height: 600px;" shadow="hover">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<h1 style="font-weight: bold">{{connector.connectorName}}</h1> <h1 style="font-weight: bold">{{connector.connectorName}}</h1>
<el-button type="primary" style="float: right; padding: 10px 10px" @click="buy(connector)"></el-button> <el-button type="primary" style="float: right; padding: 10px 10px" @click="buy(connector)"></el-button>
@ -478,7 +478,8 @@ export default {
} }
}) })
}, },
findApiList(){ findApiList(connectorSort){
this.form.connectorSort = connectorSort;
findApiList(this.form,index).then((res)=>{ findApiList(this.form,index).then((res)=>{
this.connectorList=res.data; this.connectorList=res.data;
console.log(res.data); console.log(res.data);