31 lines
510 B
Vue
31 lines
510 B
Vue
![]() |
<template>
|
||
|
<el-select v-model="partSelected" clearable filterable style="width: 45rem">
|
||
|
<el-option v-for="part in partList" :key="part.id" :label="part.name" :value="part.id"/>
|
||
|
</el-select>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "PartChoose",
|
||
|
data(){
|
||
|
return{
|
||
|
partSelected: undefined,
|
||
|
partList: null,
|
||
|
}
|
||
|
},
|
||
|
mounted() {
|
||
|
this.listPart()
|
||
|
},
|
||
|
methods:{
|
||
|
// TODO 获取商品信息
|
||
|
async listPart(){
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
|
||
|
</style>
|