[fix]部门和用户下拉列表去除数据范围权限校验
This commit is contained in:
parent
eb2042c595
commit
f409897097
@ -126,7 +126,7 @@ export function updateAuthRole(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
// 查询部门下拉树结构,包含数据范围权限
|
||||
export function deptTreeSelect() {
|
||||
return request({
|
||||
url: '/system/user/deptTree',
|
||||
@ -134,6 +134,14 @@ export function deptTreeSelect() {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构,无数据范围权限,全部部门用于下拉框
|
||||
export function deptTreeOptionsSelect() {
|
||||
return request({
|
||||
url: '/system/user/deptTreeOption',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function userOptionsSelect() {
|
||||
return request({
|
||||
url: '/system/user/optionsSelect',
|
||||
|
||||
@ -86,7 +86,7 @@
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['equipment:consumables:add']"
|
||||
v-hasPermi="['equipments:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -97,7 +97,7 @@
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['equipment:consumables:edit']"
|
||||
v-hasPermi="['equipments:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -108,7 +108,7 @@
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['equipment:consumables:remove']"
|
||||
v-hasPermi="['equipments:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -118,7 +118,7 @@
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['equipment:consumables:export']"
|
||||
v-hasPermi="['equipments:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -180,7 +180,7 @@
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:consumables:edit']"
|
||||
v-hasPermi="['equipments:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
@ -188,7 +188,7 @@
|
||||
type="primary"
|
||||
icon="Delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:consumables:remove']"
|
||||
v-hasPermi="['equipments:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
|
||||
@ -225,7 +225,7 @@ import {
|
||||
addEquipments,
|
||||
updateEquipments,
|
||||
} from "@/api/equipments/equipments";
|
||||
import { deptTreeSelect } from "@/api/system/user";
|
||||
import { deptTreeOptionsSelect } from "@/api/system/user";
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const equipmentsList = ref([]);
|
||||
@ -242,7 +242,7 @@ const deptTreeOptions = ref([]);
|
||||
|
||||
/** 查询部门下拉树结构 */
|
||||
function getDeptTree() {
|
||||
deptTreeSelect().then((response) => {
|
||||
deptTreeOptionsSelect().then((response) => {
|
||||
deptTreeOptions.value = response.data;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user