Browse Source

fix: 详情开发

zhangwenya 9 tháng trước cách đây
mục cha
commit
f8677f4719
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      src/views/hl/bm/component/widget/timeDetail.vue

+ 9 - 1
src/views/hl/bm/component/widget/timeDetail.vue

@@ -32,7 +32,7 @@
       </el-table-column>
       <el-table-column label="得分"  width="60" align="center">
         <template #default="scope">
-          <span :class="{'error':scope.row.score != scope.row.hlScore}">
+          <span :class="{'error':scope.row.score != scope.row.hlScore}" @click="handleScoreDetails(scope.row)">
             {{scope.row.score}}
           </span>
         </template>
@@ -68,6 +68,10 @@ async function getDetail(){
   hsData.value = res.data
 }
 
+async function handleScoreDetails(row){
+  console.log({...row})
+}
+
 </script>
 <style scoped lang="scss">
 .time-detail-container{
@@ -76,8 +80,12 @@ async function getDetail(){
   justify-content: space-between;
   align-items: flex-start;
   .error{
+    cursor: pointer;
     color:#e43;
     font-weight: bold;
+    &:hover{
+      text-decoration: underline;
+    }
   }
 }
 </style>