Sfoglia il codice sorgente

最后编辑人、最后编辑时间

dsy 2 settimane fa
parent
commit
ba294e1ca8

+ 28 - 2
src/views/personal_workbench/edit_task/index.vue

@@ -25,12 +25,23 @@
       <div class="textbook-chapter">
         <div ref="chapterHeader" class="chapter-header">
           <span class="cell">教材内容</span>
+          <span class="cell">最后编辑人</span>
+          <span class="cell">最后编辑时间</span>
           <span class="cell">制作人</span>
           <span class="cell">状态</span>
         </div>
         <div ref="chapterList" class="chapter-list">
           <div
-            v-for="{ id, name, producer_list, status_name, deep, is_my_edit_task } in node_list"
+            v-for="{
+              id,
+              name,
+              producer_list,
+              status_name,
+              deep,
+              is_my_edit_task,
+              last_editor_name,
+              last_edit_time,
+            } in node_list"
             :key="id"
             :style="computedNameStyle(deep, isTrue(is_my_edit_task))"
             class="chapter-item"
@@ -42,6 +53,8 @@
             >
               {{ name }}
             </span>
+            <span>{{ last_editor_name }}</span>
+            <span>{{ last_edit_time }}</span>
             <span :title="producer_list.map((producer) => producer.name).join(';')">
               {{ producer_list.map((producer) => producer.name).join(';') }}
             </span>
@@ -257,7 +270,9 @@ export default {
         border-right: $border;
       }
 
-      :nth-child(2) {
+      :nth-child(2),
+      :nth-child(3),
+      :nth-child(4) {
         width: 140px;
         max-width: 140px;
         min-height: 37px;
@@ -268,6 +283,17 @@ export default {
         border-right: $border;
       }
 
+      :nth-child(2) {
+        width: 120px;
+        max-width: 120px;
+      }
+
+      :nth-child(3) {
+        width: 170px;
+        max-width: 170px;
+        font-weight: normal;
+      }
+
       :last-child {
         width: 140px;
         max-width: 140px;

+ 51 - 45
src/views/personal_workbench/project/ProductionEditorialManage.vue

@@ -29,6 +29,8 @@
         <span class="title-cell">制作人</span>
         <span class="title-cell">审校人</span>
         <span class="title-cell">状态</span>
+        <span class="title-cell">最后编辑人</span>
+        <span class="title-cell">最后编辑时间</span>
         <span class="title-cell">操作</span>
       </div>
       <div class="chapters-container">
@@ -45,6 +47,8 @@
               is_inherited_auditor,
               auditor_desc,
               status_name,
+              last_editor_name,
+              last_edit_time,
             },
             i
           ) in node_list"
@@ -85,6 +89,8 @@
             {{ auditor_desc }}
           </div>
           <div class="status">{{ status_name }}</div>
+          <div class="last-editor">{{ last_editor_name }}</div>
+          <div class="last-edit-time">{{ last_edit_time }}</div>
           <div class="operator">
             <template v-if="isEnable(is_leaf_chapter)">
               <span v-if="i > 0 && computedIsFirst(i)" class="link" @click="moveChapterTreeNode(i, 0)">上移</span>
@@ -549,6 +555,37 @@ export default {
       overflow: auto;
     }
 
+    @mixin cell {
+      &:first-child {
+        width: 550px;
+      }
+
+      &:nth-child(2) {
+        width: 200px;
+      }
+
+      &:nth-child(3) {
+        width: 200px;
+      }
+
+      &:nth-child(4) {
+        width: 100px;
+      }
+
+      &:nth-child(5) {
+        width: 120px;
+      }
+
+      &:nth-child(6) {
+        width: 175px;
+      }
+
+      &:last-child {
+        flex: 1;
+        min-width: 200px;
+      }
+    }
+
     .list-title {
       display: flex;
       align-items: center;
@@ -562,30 +599,11 @@ export default {
         background-color: $main-background-color;
         border: $border;
 
+        @include cell;
+
         &:not(:last-child) {
           border-right: none;
         }
-
-        &:first-child {
-          width: 550px;
-        }
-
-        &:nth-child(2) {
-          width: 200px;
-        }
-
-        &:nth-child(3) {
-          width: 200px;
-        }
-
-        &:nth-child(4) {
-          width: 140px;
-        }
-
-        &:last-child {
-          flex: 1;
-          min-width: 200px;
-        }
       }
     }
 
@@ -606,6 +624,13 @@ export default {
       > div {
         height: 40px;
         padding: 8px;
+        border-right: $border;
+
+        @include cell;
+
+        &:last-child {
+          border-right: none;
+        }
       }
 
       .chapter-title {
@@ -616,33 +641,14 @@ export default {
         color: #000;
       }
 
-      .operator {
+      .status {
         text-align: center;
       }
 
-      > :first-child {
-        width: 550px;
-      }
-
-      > :nth-child(2) {
-        width: 200px;
-      }
-
-      > :nth-child(3) {
-        width: 200px;
-      }
-
-      > :nth-child(4) {
-        width: 140px;
-      }
-
-      > :last-child {
-        flex: 1;
-        min-width: 200px;
-      }
-
-      > :not(:last-child) {
-        border-right: $border;
+      .operator {
+        display: flex;
+        justify-content: center;
+        overflow: auto;
       }
 
       .courseware {