<!--从后端接受来的数据展示,所以vo中有什么这里可以选择写什么,所以可以写自定义的一些name-->
<!--数据需要返回后端所以数据库后端需要什么样的数据绑什么样的数据,存的是教师id不是name-->
import {TreeSelect} from ‘@bestvike/components’
components: {BvTreeSelect:TreeSelect},
// outDate:'',
// dropOut:false,
// // clazzTransformList:this.transform(this.clazzList),
// getTreeClazz().then(res=>{
// this.clazzList = res
// console.log("--------------------clazzList-----------------");
// console.log(this.clazzList);
// })
// },
// transform(options) {
// options.forEach(item => {
// // 更新当前项的value为id,label为name
// item.id = item.value;
// item.name = item.label;
// // 如果当前项有children,则递归调用此函数
// if (item.children) {
// this.transform(item.children);
// }
// });
// },
后端
// if(studentDTO.getClazzId()!=null ){
// String[] list =studentDTO.getClazzId().split(“,”);
// String clazzId=list[0];
// if (list.length > 1) {clazzId = list[list.length - 1];}
// studentDTO.setClazzId(clazzId);
// }