Commit ebf9c885 authored by 李星剑's avatar 李星剑

add 风格树

parent 221fa0bc
export default {
methods:{
getStyleTreeList(){
function filterArray(data){
for (let i = 0; i < data.length; i++) {
let item = data[i];
if(item.children.length === 0){
delete item.children;
}else{
filterArray(item.children)
}
}
return data
}
this.$http("orderTicket.styleTreeList").then(res =>{
let {
code, data
} = res;
if(code === 200){
this.brandSelectList = filterArray(data);
}
})
},
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment