fix 用户列表部门权限
This commit is contained in:
parent
c905456c10
commit
25b352d3c3
@ -36,10 +36,11 @@ export function getUserSelector(query:Object) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDeptTree() {
|
export function getDeptTree(showOwner?:boolean) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/system/dept/treeSelect',
|
url: '/api/v1/system/dept/treeSelect',
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params:{showOwner}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,11 +100,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {toRefs, reactive, onMounted, ref, defineComponent, watch, getCurrentInstance} from 'vue';
|
import {toRefs, reactive, onMounted, ref, watch, getCurrentInstance} from 'vue';
|
||||||
import {ElTree,FormInstance} from 'element-plus';
|
import {ElTree,FormInstance} from 'element-plus';
|
||||||
import { Search } from '@element-plus/icons-vue'
|
import { Search } from '@element-plus/icons-vue'
|
||||||
import UserList from '/@/views/system/user/component/userList.vue';
|
import UserList from '/@/views/system/user/component/userList.vue';
|
||||||
import {getDeptTree} from '/@/api/system/user/index';
|
import {getDeptTree} from '/@/api/system/user';
|
||||||
|
|
||||||
interface QueryParam {
|
interface QueryParam {
|
||||||
ids:number[];
|
ids:number[];
|
||||||
@ -165,7 +165,7 @@ const state = reactive<QueryParam>({
|
|||||||
const { deptData,deptProps,param}=toRefs(state)
|
const { deptData,deptProps,param}=toRefs(state)
|
||||||
// 初始化表格数据
|
// 初始化表格数据
|
||||||
const initTableData = () => {
|
const initTableData = () => {
|
||||||
getDeptTree().then((res:any)=>{
|
getDeptTree(true).then((res:any)=>{
|
||||||
state.deptData = res.data.deps
|
state.deptData = res.data.deps
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user