修复设置白名单
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user