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 data:data
}) })
} }
//API页面类型分类
export function findConnectSort() {
return request({
url: '/mart/connector/findConnectSort',
method: 'get'
})
}

View File

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