修复bug

This commit is contained in:
Dragon
2023-10-26 11:30:56 +08:00
parent dd95a1d64e
commit 6b7aa99419

View File

@@ -107,7 +107,7 @@
新增
</el-button>
<el-table style="width: 100%" :data="authorityData">
<el-table style="width: 100%" :data="authorityData" border>
<el-table-column
align="center"
property="userErBanNo"
@@ -126,14 +126,30 @@
label="获得权限时间"
min-width="100px"
/>
<el-table-column align="center" label="操作" width="400">
<el-table-column
align="center"
property="type"
label="开启的权限"
min-width="100px"
>
<template v-slot="scope">{{
scope.row.type == 1
? "厅内红包"
: scope.row.type == 1
? "全服红包"
: scope.row.type == 3
? "厅内红包&全服红包"
: "空或未知类型"
}}</template>
</el-table-column>
<el-table-column align="center" label="操作">
<template v-slot="scope">
<el-button
@click="delTablePower(scope.row)"
class="danger"
type="danger"
size="default"
:disabled="!(scope.row.roomUid === scope.row.uid)?false:true"
:disabled="!(scope.row.roomUid === scope.row.uid) ? false : true"
>删除权限</el-button
>
</template>
@@ -208,6 +224,7 @@ import {
userPage,
saveManager,
} from "@/api/roomAlbumPower/RoomRed";
import { ElMessage } from "element-plus";
export default {
name: "RoomRed",
data() {
@@ -292,7 +309,6 @@ export default {
},
// 二次确认
delClick(val, type) {
console.log(this.delroomUid);
if (this.delType == 1) {
//delType 1删除该房间权限 2删除房间内用户权限
delRoomRedEnvelope({ roomUid: this.delroomUid }).then((res) => {
@@ -303,7 +319,7 @@ export default {
roomUid: this.delTablePowerRoomUid,
uid: this.delTablePowerUid,
}).then((res) => {
this.getUserPage();
this.getUserPage(this.delTablePowerRoomUid);
});
}
this.delDialog = false;
@@ -334,10 +350,20 @@ export default {
this.typeRadio = 1;
} else if (this.radioFull && this.radioHall == false) {
this.typeRadio = 2;
}else{
this.typeRadio = 0;
}
},
// 确认弹窗新增按钮
addAuthorityLimits() {
console.log(this.typeRadio);
if (this.typeRadio == 0) {
ElMessage({
message: "请勾选开启的权限",
type: "error",
});
return;
}
saveManager({
roomUid: this.public.roomUid,
type: this.typeRadio,