用户管理里面添加过鱼设施权限管理功能-youhua
This commit is contained in:
parent
60ad0f357a
commit
abc91840ab
@ -570,25 +570,6 @@ function getFishTableData(ids: any[]) {
|
|||||||
}
|
}
|
||||||
//权限给予
|
//权限给予
|
||||||
const tableids:any = ref([])
|
const tableids:any = ref([])
|
||||||
function handleRadioChange(data: any){
|
|
||||||
console.log('当前操作的行数据:', data);
|
|
||||||
ElMessageBox.confirm(`确定要更改此权限为${data.radio == 1 ? '读' : '写'}吗?`, "提示", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
type: "warning",
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
|
|
||||||
|
|
||||||
ElMessage({
|
|
||||||
type: "success",
|
|
||||||
message: "更改成功",
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
getFishTableData(tableids.value)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
//选中的过鱼权限
|
//选中的过鱼权限
|
||||||
function fishDataHandleSelectionChange(val: any) {
|
function fishDataHandleSelectionChange(val: any) {
|
||||||
console.log('选中的行数据:', val);
|
console.log('选中的行数据:', val);
|
||||||
@ -888,7 +869,7 @@ const vMove = {
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="id" label="权限" align="center" width="200">
|
<el-table-column prop="id" label="权限" align="center" width="200">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-radio-group v-model="scope.row.radio" @change="handleRadioChange(scope.row)">
|
<el-radio-group v-model="scope.row.radio" >
|
||||||
<el-radio value="1" size="large">读</el-radio>
|
<el-radio value="1" size="large">读</el-radio>
|
||||||
<el-radio value="2" size="large">写</el-radio>
|
<el-radio value="2" size="large">写</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user