Jelajahi Sumber

增加是否显示重做按钮参数

dsy 1 Minggu lalu
induk
melakukan
b068b328ba

+ 1 - 1
src/views/book/courseware/preview/common/PreviewOperation.vue

@@ -1,7 +1,7 @@
 <template>
   <div ref="operation" class="operation" :class="{ 'is-wrapped': isWrapped }">
     <!-- 重做 -->
-    <div v-show="permissionControl.can_answer" class="button retry" @click="retry()"></div>
+    <div v-show="permissionControl.can_answer && isShowRetry" class="button retry" @click="retry()"></div>
     <!-- 判断对错 -->
     <div
       v-show="permissionControl.can_judge_correct && isShowAnswer"

+ 7 - 2
src/views/book/courseware/preview/components/fill/FillPreview.vue

@@ -85,7 +85,7 @@
                   :key="`record-${i}`"
                   type="mini"
                   :many-times="false"
-                  class="record-box"
+                  class="record-box fill"
                   :attrib="data.unified_attrib"
                   :answer-record-list="data.audio_answer_list"
                   :task-model="isJudgingRightWrong ? 'ANSWER' : ''"
@@ -505,11 +505,16 @@ export default {
       display: inline;
     }
 
-    .record-box {
+    .record-box.fill {
       display: inline-flex;
       align-items: center;
       background-color: #fff;
       border-bottom: 1px solid $font-color;
+
+      :deep(.playBack) {
+        width: 20px;
+        height: 20px;
+      }
     }
 
     .write-click {

+ 40 - 10
src/views/home/index.vue

@@ -36,6 +36,7 @@
       <div class="list-section">
         <el-table
           v-if="currentOverview === overviewList[0].key"
+          :key="overviewList[0].key"
           class="project-list"
           :data="projectList"
           height="calc(100vh - 630px)"
@@ -54,7 +55,7 @@
             </template>
           </el-table-column>
           <el-table-column prop="create_date" label="创建日期" width="150" align="center" header-align="center" />
-          <el-table-column prop="status_name" label="状态" min-width="120" align="center" header-align="center">
+          <el-table-column prop="status_name" label="状态" align="center" header-align="center">
             <template slot-scope="{ row }">
               <span
                 class="status"
@@ -67,15 +68,11 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column fixed="right" label="操作" align="center" header-align="center">
-            <template slot-scope="{ row }">
-              <el-button type="text" @click="previewProject(row.id)">进入</el-button>
-            </template>
-          </el-table-column>
         </el-table>
 
         <el-table
           v-else-if="currentOverview === overviewList[1].key"
+          :key="overviewList[1].key"
           class="project-list"
           :data="projectList"
           height="calc(100vh - 630px)"
@@ -95,7 +92,7 @@
           </el-table-column>
           <el-table-column
             prop="plan_publish_date"
-            label="预计完成时间"
+            label="计划出版日期"
             width="150"
             align="center"
             header-align="center"
@@ -122,6 +119,7 @@
 
         <el-table
           v-else-if="currentOverview === overviewList[2].key"
+          :key="overviewList[2].key"
           class="project-list"
           :data="projectList"
           height="calc(100vh - 630px)"
@@ -139,7 +137,7 @@
               </div>
             </template>
           </el-table-column>
-          <el-table-column prop="edit_end_date" label="交稿时间" width="150" align="center" header-align="center" />
+          <el-table-column prop="edit_end_date" label="交稿日期" width="150" align="center" header-align="center" />
           <el-table-column prop="status_name" label="状态" min-width="120" align="center" header-align="center">
             <template slot-scope="{ row }">
               <span
@@ -162,6 +160,7 @@
 
         <el-table
           v-else-if="currentOverview === overviewList[3].key"
+          :key="overviewList[3].key"
           class="project-list"
           :data="projectList"
           height="calc(100vh - 630px)"
@@ -181,7 +180,7 @@
           </el-table-column>
           <el-table-column
             prop="plan_publish_date"
-            label="预计完成时间"
+            label="计划出版日期"
             width="150"
             align="center"
             header-align="center"
@@ -208,6 +207,7 @@
 
         <el-table
           v-else-if="currentOverview === overviewList[4].key"
+          :key="overviewList[4].key"
           class="project-list"
           :data="projectList"
           height="calc(100vh - 630px)"
@@ -216,7 +216,7 @@
           <el-table-column prop="name" label="教材名称" width="460" header-align="left" />
           <el-table-column prop="version" label="版本" width="120" align="center" header-align="center" />
           <el-table-column prop="member_name_desc" label="作者" width="220" align="center" header-align="center" />
-          <el-table-column prop="shangjia_date" label="上架时间" width="150" align="center" header-align="center" />
+          <el-table-column prop="shangjia_date" label="上架日期" width="150" align="center" header-align="center" />
           <el-table-column prop="revise_count" label="修订次数" align="center" header-align="center" />
           <el-table-column fixed="right" label="操作" align="center" header-align="center">
             <template slot-scope="{ row }">
@@ -224,6 +224,7 @@
             </template>
           </el-table-column>
         </el-table>
+
         <PaginationPage :total="total" @getList="getList" />
       </div>
 
@@ -634,6 +635,35 @@ export default {
     :deep(.el-table__row:last-child td) {
       border-bottom: none;
     }
+
+    :deep(.el-table__fixed),
+    :deep(.el-table__fixed-right) {
+      box-shadow: none;
+    }
+
+    :deep(.el-table__fixed-right::before) {
+      background-color: #eef2f7;
+    }
+
+    :deep(.el-table__fixed-header-wrapper th) {
+      height: 48px;
+      padding: 0;
+      font-size: 12px;
+      font-weight: 600;
+      color: #64748b;
+      background: #f8fafc;
+      border-bottom: 1px solid #eef2f7;
+    }
+
+    :deep(.el-table__fixed-body-wrapper .el-table__row td) {
+      height: 78px;
+      padding: 0;
+      border-bottom: 1px solid #f1f5f9;
+    }
+
+    :deep(.el-table__fixed-right .el-table__fixed-body-wrapper .el-table__row:last-child td) {
+      border-bottom: none;
+    }
   }
 
   .book-info {