Skip to content

使用select下拉选项找不到方法loadOptions #37

@zhouzzzzzzzzzz

Description

@zhouzzzzzzzzzz

代码如下:form.onFormMounted() {
let selectSchool=this.getFormRef('select54843');

axios.get("../index/schoolList").then(function(res){
debugger;
let data =res.data.data.map(function(item) {
// return ${item.code},${item.name}
return {
label: item.name,
value: item.code
};
})
selectSchool.loadOptions(data);
}).catch(function(e){
console.log(e)
})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions