API布局格式

master
chaiyapeng 2024-09-03 20:53:50 +08:00
parent 463bbd70d5
commit 326a190c1c
2 changed files with 18 additions and 8 deletions

View File

@ -94,3 +94,10 @@ export function findConnectorUserList(data) {
data:data
})
}
//API页面类型分类
export function findConnectSort() {
return request({
url: '/mart/connector/findConnectSort',
method: 'get'
})
}

View File

@ -6,14 +6,8 @@
<el-menu-item-group>
<span style="font-weight: bold;font-size: 25px;">全部类型</span>
</el-menu-item-group>
<el-menu-item-group>
<el-link type="primary" style="font-weight: bold;font-size: 20px;">电子商务</el-link>
</el-menu-item-group>
<el-menu-item-group>
<el-link type="primary" style="font-weight: bold;font-size: 20px;">应用开发</el-link>
</el-menu-item-group>
<el-menu-item-group>
<el-link type="primary" style="font-weight: bold;font-size: 20px;">生活服务</el-link>
<el-menu-item-group v-for="i in connectSort" :key="i.value" :label="i.connectorSort" :value="i.connectorSort" :disabled="item.disabled">>
<el-link type="primary" style="font-weight: bold;font-size: 20px;" v-model="connectSort.connectorSort"></el-link>
</el-menu-item-group>
</el-menu>
</el-aside>
@ -237,6 +231,7 @@ import {getPostcode} from "@/api/port/port";
import {getWeather} from "@/api/port/port";
import {doBuyInterface} from "@/api/port/port";
import {userBalance} from "@/api/system/user";
import {findConnectSort} from "@/api/port/port";
export default {
//import使"
components: {},
@ -254,6 +249,7 @@ export default {
children:"citys",
label:'provinceName',
},
connectSort:[],
connectorList:[],
gridData:[],
gridData2:[],
@ -483,12 +479,19 @@ export default {
this.connectorList=res.data;
console.log(res.data);
})
},
findConnectSort(){
findConnectSort().then((res)=>{
this.connectSort=res.data;
console.log(this.connectSort);
})
}
},
// - 访this",
created() {
this.fetchUserBalance();
this.findApiList();
this.findConnectSort()
},
// - 访DOM",
mounted() {