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