修复设置白名单

This commit is contained in:
liaozetao
2024-02-27 18:39:32 +08:00
committed by Dragon
parent 5d13b68c5a
commit 3aa9d98aa2

View File

@@ -66,7 +66,7 @@
<el-button @click="button(scope.row)" type="text" size="small"
>人数: {{ scope.row.userCount ?? 0 }}</el-button
>
<div>白名单:{{ scope.row.whiteCount ?? 0 }}</div>
<div v-if="scope.row.roundStatus == 0">白名单:{{ scope.row.whiteErbanNo ?? '' }}</div>
</template>
</el-table-column>
<el-table-column align="center" fixed label="进度">
@@ -204,8 +204,7 @@ export default {
// @ts-ignore
white(row) {
console.log(row);
let isWhite = row.isWhite;
if (isWhite) {
if (this.whiteCount > 0 && !row.isWhite) {
return;
}
promiseStarUserRecordSetUserWhite({
@@ -214,12 +213,13 @@ export default {
// @ts-ignore
}).then((res) => {
console.log(res);
this.whiteCount = 1;
promiseStarUserRecordGetPromiseUsers({
roundId: row.roundId,
// @ts-ignore
}).then((res) => {
this.dialogTableData = res.data;
// @ts-ignore
this.whiteCount = res.data.filter(v => v.isWhite == 1).length;
});
});
},