@@ -49,10 +49,11 @@ export function getDept(deptId) {
}
// 查询部门下拉树结构
-export function treeselect() {
+export function treeselect(query) {
return request({
url: '/system/dept/treeselect',
- method: 'get'
+ method: 'get',
+ params: query
})
@@ -155,7 +155,7 @@ export default {
},
/** 查询部门下拉树结构 */
getTreeselect() {
- treeselect().then(response => {
+ treeselect({deptType:1}).then(response => {
console.log(response.data);
this.deptOptions = response.data;
});