Browse Source

no message

贾艺驰 1 year ago
parent
commit
c78504e02e
4 changed files with 37 additions and 19 deletions
  1. 1 0
      .gitignore
  2. 26 14
      src/views/game/list.vue
  3. 9 4
      src/views/push/list.vue
  4. 1 1
      src/views/user/list.vue

+ 1 - 0
.gitignore

@@ -14,3 +14,4 @@ tests/**/coverage/
 *.ntvs*
 *.njsproj
 *.sln
+*.zip

+ 26 - 14
src/views/game/list.vue

@@ -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
         }
       })

+ 9 - 4
src/views/push/list.vue

@@ -55,22 +55,27 @@
           {{ scope.row.id }}
         </template>
       </el-table-column>
-      <el-table-column align="center" label="用戶">
+      <el-table-column sortable prop="nickname" align="center" label="用戶">
         <template slot-scope="scope">
           {{ scope.row.nickname }}
         </template>
       </el-table-column>
+      <el-table-column sortable prop="pushTime" align="center" label="推送日期">
+        <template slot-scope="scope">
+          {{ scope.row.pushTime.split(' ')[0] }}
+        </template>
+      </el-table-column>
       <el-table-column align="center" label="推送時間">
         <template slot-scope="scope">
-          {{ scope.row.pushTime }}
+          {{ scope.row.pushTime.split(' ')[1] }}
         </template>
       </el-table-column>
-      <el-table-column align="center" label="推送狀態">
+      <el-table-column sortable prop="status" align="center" label="推送狀態">
         <template slot-scope="scope">
           {{ scope.row.status === 1 ? 'delay' : scope.row.status === 2 ? 'expired' : 'enter' }}
         </template>
       </el-table-column>
-      <el-table-column align="center" label="推送類型">
+      <el-table-column sortable prop="type" align="center" label="推送類型">
         <template slot-scope="scope">
           {{ scope.row.type === 1 ? 'game' : 'scale' }}
         </template>

+ 1 - 1
src/views/user/list.vue

@@ -208,7 +208,7 @@
             value-format="HH:mm:ss"
           />
         </el-form-item>
-        <el-form-item label="數字顯示時" prop="password">
+        <el-form-item label="數字顯示時" prop="password">
           <el-input v-model="rateForm.showTime">
             <template slot="append">ms</template>
           </el-input>