|
@@ -76,32 +76,32 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column sortable align="center" prop="version" label="正確率">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ (scope.row.realCorrectRate != null ? scope.row.realCorrectRate * 100 : 0) + "%" }}
|
|
|
+ {{ (scope.row.realCorrectRate != null ? (scope.row.realCorrectRate * 100).toFixed(2) : 0) + "" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column sortable align="center" prop="version" label="錯誤率">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ ((scope.row.wrongRate * 100).toFixed(2)) + "%" }}
|
|
|
+ {{ ((scope.row.wrongRate * 100).toFixed(2)) + "" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column sortable align="center" prop="version" label="錯失率">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ ((scope.row.missRate * 100).toFixed(2)) + "%" }}
|
|
|
+ {{ ((scope.row.missRate * 100).toFixed(2)) + "" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column sortable align="center" prop="version" label="反應時間">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ (changeTwoDecimal_f(scope.row.avgReaction)) + "ms" }}
|
|
|
+ {{ (changeTwoDecimal_f(scope.row.avgReaction)) + "" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" sortable label="主观正確率" prop="realCorrectRate">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.correctRate * 100 }}%
|
|
|
+ {{ scope.row.correctRate * 100 }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" sortable label="主觀信度" prop="realCorrectRate">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.confidence * 100 }}%
|
|
|
+ {{ scope.row.confidence * 100 }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column sortable align="center" prop="startTime" label="開始時間">
|
|
@@ -142,10 +142,14 @@
|
|
|
@pagination="nextPage"
|
|
|
/>
|
|
|
<el-dialog title="遊戲詳情" :visible.sync="gameVisible" width="80%">
|
|
|
- <span>正確率:{{ detailCorrectRate != null ? detailCorrectRate * 100 : 0 }}%, </span>
|
|
|
- <span>錯誤率:{{ (getDetailWrongRate() * 100).toFixed(2) }}%, </span>
|
|
|
- <span>錯失率:{{ (getDetailMissRate() * 100).toFixed(2) }}%, </span>
|
|
|
- <span>反應時間:{{ changeTwoDecimal_f(detailReaction) }} ms</span>
|
|
|
+ <span>用戶名:{{ detailNickName }}</span>>
|
|
|
+ <span>序號:{{ detailId }}}</span>>
|
|
|
+ <span>日期:{{ detailDate }}}</span>>
|
|
|
+ <span>版本:{{ detailVersion }}}</span>>
|
|
|
+ <span>正確率:{{ detailCorrectRate != null ? detailCorrectRate * 100 : 0 }}, </span>
|
|
|
+ <span>錯誤率:{{ (getDetailWrongRate() * 100).toFixed(2) }}, </span>
|
|
|
+ <span>錯失率:{{ (getDetailMissRate() * 100).toFixed(2) }}, </span>
|
|
|
+ <span>反應時間:{{ changeTwoDecimal_f(detailReaction) }}</span>
|
|
|
<el-table :data="detail" size="mini">
|
|
|
<el-table-column
|
|
|
type="index"
|
|
@@ -196,12 +200,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="用戶回答">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.answer === 1 ? '按下' :'沒按下' }}
|
|
|
+ {{ scope.row.answer === 1 ? 'press' :'N-press' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="正確/錯誤/錯失">
|
|
|
+ <el-table-column align="center" label="true/false/omission">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.correct === 1 ? '正確' : scope.row.correct === 2 ? '錯誤' : '錯失' }}
|
|
|
+ {{ scope.row.correct === 1 ? 'true' : scope.row.correct === 2 ? 'false' : 'omission' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="反應時間">
|
|
@@ -236,7 +240,11 @@ export default {
|
|
|
gameVisible: false,
|
|
|
detailSelected: '',
|
|
|
detailCorrectRate: 0.0,
|
|
|
- detailReaction: 0
|
|
|
+ detailReaction: 0,
|
|
|
+ detailNickName: '',
|
|
|
+ detailId: 0,
|
|
|
+ detailDate: '',
|
|
|
+ detailVersion: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -297,6 +305,10 @@ export default {
|
|
|
this.detailSelected = r.selected
|
|
|
this.detailCorrectRate = r.realCorrectRate
|
|
|
this.detailReaction = this.getAvgReaction()
|
|
|
+ this.detailNickName = r.nickname
|
|
|
+ this.detailDate = r.startTime.substring(0, 10)
|
|
|
+ this.detailId = r.sign
|
|
|
+ this.detailVersion = r.version
|
|
|
this.gameVisible = true
|
|
|
}
|
|
|
})
|