如何做网站赚钱6,电子商务网站有哪些,公众号登录平台入口,天琥网页设计培训摘要#xff1a; el-select的数据比较多的时候#xff0c;必须要分页#xff0c;处理方案有全部数据回来#xff0c;或者添加搜索功能#xff0c;但是就有个问题就是编辑的时候回显问题#xff0c;必须要保证select的数据有对应的id与name匹配回显#xff01; el-fo…摘要 el-select的数据比较多的时候必须要分页处理方案有全部数据回来或者添加搜索功能但是就有个问题就是编辑的时候回显问题必须要保证select的数据有对应的id与name匹配回显 el-form-item label品牌 propgoodsSku.brandIdel-select :remote-methodqueryBrandList:loadingloadingchangehandleChangeBrandName v-modelformData.goodsSku.brandId remotefilterable placeholder请选择品牌 clearable class!w-240pxel-option v-foritem in brandList :keyitem.id :labelitem.brandName :valueitem.id //el-select
/el-form-itemconst loading ref(false)
queryBrandList(brandName)
const queryBrandList async (brandName?: string) {loading.value trueconst { list } await GoodsBrandApi.getGoodsBrandPage({brandName,pageNo: 1,pageSize: 10})brandList.value []brandList.value listloading.value false
}