frontend/src/views/authority/role/components/permissionUnit.vue
This commit is contained in:
@@ -18,12 +18,12 @@ export const addPqDev = (params: Device.ResPqDev) => {
|
|||||||
|
|
||||||
//编辑被检设备
|
//编辑被检设备
|
||||||
export const updatePqDev = (params: Device.ResPqDev) => {
|
export const updatePqDev = (params: Device.ResPqDev) => {
|
||||||
return http.post(`/pqDev/update`, params)
|
return http.put(`/pqDev/update`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除被检设备
|
//删除被检设备
|
||||||
export const deletePqDev = (params: string[]) => {
|
export const deletePqDev = (params: string[]) => {
|
||||||
return http.post(`/pqDev/delete`, params)
|
return http.delete(`/pqDev/delete`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//导出被检设备
|
//导出被检设备
|
||||||
|
|||||||
@@ -14,12 +14,12 @@ export const addDictData = (params: Dict.ResDictData) => {
|
|||||||
|
|
||||||
//编辑字典数据
|
//编辑字典数据
|
||||||
export const updateDictData = (params: Dict.ResDictData) => {
|
export const updateDictData = (params: Dict.ResDictData) => {
|
||||||
return http.post(`/dictData/update`, params)
|
return http.put(`/dictData/update`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除字典数据
|
//删除字典数据
|
||||||
export const deleteDictData = (params: string[]) => {
|
export const deleteDictData = (params: string[]) => {
|
||||||
return http.post(`/dictData/delete`, params)
|
return http.delete(`/dictData/delete`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getDicDataById = (params: string) => {
|
export const getDicDataById = (params: string) => {
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ export const addDictPq = (params: Dict.ResDictPq) => {
|
|||||||
|
|
||||||
//编辑字典类型
|
//编辑字典类型
|
||||||
export const updateDictPq = (params: Dict.ResDictPq) => {
|
export const updateDictPq = (params: Dict.ResDictPq) => {
|
||||||
return http.post(`/dictPq/update`, params)
|
return http.put(`/dictPq/update`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除字典类型
|
//删除字典类型
|
||||||
export const deleteDictPq = (params: string[]) => {
|
export const deleteDictPq = (params: string[]) => {
|
||||||
return http.post(`/dictPq/delete`, params)
|
return http.delete(`/dictPq/delete`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ export const addDictType = (params: Dict.ResDictType) => {
|
|||||||
|
|
||||||
//编辑字典类型
|
//编辑字典类型
|
||||||
export const updateDictType = (params: Dict.ResDictType) => {
|
export const updateDictType = (params: Dict.ResDictType) => {
|
||||||
return http.post(`/dictType/update`, params)
|
return http.put(`/dictType/update`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除字典类型
|
//删除字典类型
|
||||||
export const deleteDictType = (params: string[]) => {
|
export const deleteDictType = (params: string[]) => {
|
||||||
return http.post(`/dictType/delete`, params)
|
return http.delete(`/dictType/delete`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//导出字典类型
|
//导出字典类型
|
||||||
|
|||||||
@@ -18,11 +18,20 @@
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {ref} from 'vue'
|
import {ref} from 'vue'
|
||||||
|
import {dialogBig} from '@/utils/elementBind'
|
||||||
|
import {Role} from '@/api/role/interface'
|
||||||
|
|
||||||
const {dialogVisible, data} = defineProps<{
|
const {dialogVisible, data} = defineProps<{
|
||||||
dialogVisible: boolean;
|
dialogVisible: boolean;
|
||||||
title: string;
|
title: string;
|
||||||
|
<<<<<<< HEAD
|
||||||
data: Role.Permission;
|
data: Role.Permission;
|
||||||
}>()
|
}>()
|
||||||
|
=======
|
||||||
|
data: Role.ResRoleList;
|
||||||
|
}>
|
||||||
|
()
|
||||||
|
>>>>>>> bf8c6a1d00bd2c22d1a10896c5e8fc94ab9ed017
|
||||||
|
|
||||||
// const leftvalue = ref<Role.Permission[]>([])
|
// const leftvalue = ref<Role.Permission[]>([])
|
||||||
// const rightvalue = ref<Role.Permission[]>([])
|
// const rightvalue = ref<Role.Permission[]>([])
|
||||||
|
|||||||
Reference in New Issue
Block a user