Fix gamelog notification parsing but filter it out

This commit is contained in:
Natsumi
2021-06-19 10:51:17 +12:00
parent 3a569d82bf
commit 780a4a71dc
3 changed files with 9 additions and 4 deletions

View File

@@ -6178,6 +6178,11 @@ speechSynthesis.getVoices();
value: [],
filterFn: (row, filter) => filter.value.some((v) => v === row.type)
},
{
prop: 'type',
value: true,
filterFn: (row, filter) => row.type !== 'Notification'
},
{
prop: 'data',
value: ''

View File

@@ -174,7 +174,7 @@ html
template(#tool)
div(style="margin:0 0 10px;display:flex;align-items:center")
el-select(v-model="gameLogTable.filters[0].value" multiple clearable collapse-tags style="flex:1" placeholder="Filter")
el-option(v-once v-for="type in ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'Notification', 'PortalSpawn', 'Event', 'VideoPlay']" :key="type" :label="type" :value="type")
el-option(v-once v-for="type in ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'PortalSpawn', 'Event', 'VideoPlay']" :key="type" :label="type" :value="type")
el-input(v-model="gameLogTable.filters[1].value" placeholder="Search" style="flex:none;width:150px;margin:0 10px")
el-button(type="default" @click="resetGameLog()" icon="el-icon-refresh" circle style="flex:none")
el-table-column(label="Date" prop="created_at" sortable="custom" width="90")