show notification message in gamelog

This commit is contained in:
pypy
2020-06-28 16:00:46 +09:00
parent afe90fda82
commit 6def6d7890

View File

@@ -139,9 +139,13 @@ 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']" :key="type" :label="type" :value="type")
el-option(v-once v-for="type in ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'Notification']" :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(type="expand")
template(v-once #default="scope")
template(v-if="scope.row.type === 'Notification'")
span(v-text="scope.row.data")
el-table-column(label="Time" prop="created_at" sortable="custom" width="80")
template(v-once #default="scope")
el-tooltip(placement="right")
@@ -152,7 +156,7 @@ html
el-table-column(label="Detail" prop="data")
template(v-once #default="scope")
location(v-if="scope.row.type === 'Location'" :location="scope.row.data")
span.x-link(v-else v-text="scope.row.data" @click="lookupUser(scope.row.data)")
span.x-link(v-else-if="scope.row.type !== 'Notification'" v-text="scope.row.data" @click="lookupUser(scope.row.data)")
//- search
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'search'")