Parcourir la source

fix: review bug

fenghao il y a 3 ans
Parent
commit
2260511aa3

+ 3 - 3
src/views/review/workflow/detail/components/ReviewDialog.vue

@@ -121,12 +121,12 @@ export default {
     return {
       lines: [
         { label: '文件名称', key: 'originalName' },
-        { label: '分辨率', key: 'a' },
+        // { label: '分辨率', key: 'a' },
         { label: '大小', key: 'size' },
-        { label: '上传人', key: 'createBy' },
+        // { label: '上传人', key: 'createBy' },
         { label: '时长', key: 'duration' },
         { label: '上传时间', key: 'createTime' },
-        { label: 'AI审核通过', key: 'q' },
+        { label: 'AI审核', key: 'aiLabel' },
         {
           label: '审核状态',
           key: 'status',

+ 18 - 6
src/views/review/workflow/detail/index.vue

@@ -12,7 +12,7 @@
       @click="getPublishWorkflowDetail"
     />
     <div v-if="dataMap.length">
-      <div class="l-flex--row o-title has-bottom-padding u-color--black u-bold">{{ title }}</div>
+      <div class="l-flex--row o-title has-bottom-padding u-color--black u-bold">{{ title }} <span class="applicant">{{ sourceMap.createBy?`申请人:${sourceMap.createBy}`:'' }}</span></div>
       <div class="l-flex--row has-padding">
         <el-steps
           :active="active"
@@ -138,7 +138,8 @@ import {
   EventPriority,
   EventFreq,
   EventTarget,
-  PublishType
+  PublishType,
+  AssetType
 } from '@/constant'
 // 前端命名 和后端数据命名
 const front2back = {
@@ -248,7 +249,7 @@ export default {
               { prop: 'originalName', label: '' },
               { prop: 'duration', label: '时长' },
               { prop: 'size', label: '文件大小' },
-              { prop: 'createBy', label: '申请人' },
+              // { prop: 'createBy', label: '申请人' },
               { prop: 'ai', label: 'AI审核', type: 'tag', width: 100 },
               {
                 label: '审核状态',
@@ -276,7 +277,7 @@ export default {
             cols: [
               { prop: 'name', label: '节目名称', 'min-width': 100 },
               { prop: 'resolutionRatio', label: '分辨率' },
-              { prop: 'createBy', label: '申请人' },
+              // { prop: 'createBy', label: '申请人' },
               {
                 label: '审核状态',
                 type: 'tag',
@@ -322,7 +323,7 @@ export default {
             cols: [
               { prop: 'name', label: '排期名称', 'min-width': 100 },
               { prop: 'resolutionRatio', label: '分辨率' },
-              { prop: 'createBy', label: '申请人' },
+              // { prop: 'createBy', label: '申请人' },
               {
                 label: '审核状态',
                 type: 'tag',
@@ -382,7 +383,7 @@ export default {
               { prop: 'type', label: '类型', width: 100 },
               { prop: 'name', label: '名称', 'min-width': 100 },
               { prop: 'resolutionRatio', label: '分辨率' },
-              { prop: 'createBy', label: '申请人' },
+              // { prop: 'createBy', label: '申请人' },
               {
                 type: 'invoke',
                 width: 160,
@@ -519,6 +520,11 @@ export default {
       const { type } = row
       switch (kind) {
         case front2back['assets']:
+          if (row.type === AssetType.IMAGE) {
+            row.thumbnail = row.keyName
+          } else if (row.type === AssetType.VIDEO && row.screenshot !== 'analyzing') {
+            row.thumbnail = row.screenshot
+          }
           row.typeName = [null, '图片', '视频', '音频'][type]
           row.file = {
             type: row.type,
@@ -529,6 +535,7 @@ export default {
           row.size = parseByte(row.size)
           row.createBy = row.userName || row.createBy
           row.ai = mediaMixin.methods.getAIState(row)
+          row.aiLabel = row.ai.label
           row.id = row.keyName
           return row
         case front2back['program']:
@@ -794,4 +801,9 @@ export default {
 .fl-end {
   justify-content: flex-end;
 }
+.applicant{
+  font-size: 14px;
+  margin-left: 30px;
+  font-weight: 400;
+}
 </style>

+ 4 - 2
src/views/review/workflow/index.vue

@@ -17,7 +17,9 @@
 import { getPublishWorkflows } from '@/api/workflow'
 import {
   PublishType,
-  EventPriority
+  EventPriority,
+  State,
+  EventTarget
 } from '@/constant'
 import { getEventDescription } from '@/utils/event'
 
@@ -26,7 +28,7 @@ export default {
   data () {
     return {
       schema: {
-        condition: { status: 1 },
+        condition: { status: State.SUBMITTED },
         list: getPublishWorkflows,
         transform: this.transform,
         cols: [

+ 1 - 1
src/views/review/workflow/mine/index.vue

@@ -38,7 +38,7 @@ import {
   calendarPublishRestart
 } from '@/api/workflow'
 import {
-  PublishType, EventPriority, State
+  PublishType, EventPriority, State, EventTarget
 } from '@/constant'
 import { getEventDescription } from '@/utils/event'