前端代码如下:

<template>
<div>
{{ msg }}
<j-select-depart v-model="value" :multi="true" :rootOpened="false"></j-select-depart>
value:{{value}}
</div>
</template>

<script>
import {getAction} from '@/api/manage'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
export default{
name:'Demo',
components:{
JSelectDepart
},
data(){
return {
msg: "",
value:""
}
},
methods:{
hello () {
var url = "/test/jeecgDemo/hello"
getAction(url).then((res) => {
if (res.success) {
this.msg = res.result;
}
})
}
},
created(){
this.hello();
}
}
</script>

效果如下:

jeecgBoot 的JSelectDepart 部门选择组件使用_jeecg