|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <ui-group-option class="sign record-sign">
|
|
|
+ <ui-group-option class=" record-sign" :class="{sign: record.status === RecordStatus.SUCCESS}">
|
|
|
<div class="content">
|
|
|
<span class="cover">
|
|
|
<img :src="getResource(getFileUrl(record.cover))" alt="" v-if="record.cover">
|
|
@@ -25,7 +25,7 @@
|
|
|
<span v-if="record.status === RecordStatus.RUN">后台正在处理</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="action" v-if="edit">
|
|
|
+ <div class="action" v-if="edit && record.status === RecordStatus.SUCCESS">
|
|
|
<ui-icon type="order" ctrl />
|
|
|
<ui-more
|
|
|
:options="menus"
|
|
@@ -50,19 +50,16 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref, computed, watchEffect } from 'vue'
|
|
|
-import { getFileUrl, getExtname } from '@/utils'
|
|
|
-import { useFocus } from 'bill/hook/useFocus'
|
|
|
-import { RecordStatus, createRecordFragment, getRecordFragmentBlobs, recordFragments } from '@/store'
|
|
|
-import { saveAs, loadPack } from '@/utils'
|
|
|
-import { MediaType, Preview } from '@/components/static-preview/index.vue'
|
|
|
-import { getResource } from '@/env'
|
|
|
+import type {PropType} from 'vue'
|
|
|
+import {computed, defineComponent, ref, watchEffect} from 'vue'
|
|
|
+import {getExtname, getFileUrl, loadPack, saveAs} from '@/utils'
|
|
|
+import {useFocus} from 'bill/hook/useFocus'
|
|
|
+import {createRecordFragment, getRecordFragmentBlobs, isTemploraryID, recordFragments, RecordStatus} from '@/store'
|
|
|
+import {MediaType, Preview} from '@/components/static-preview/index.vue'
|
|
|
+import {getResource} from '@/env'
|
|
|
import Shot from './shot.vue'
|
|
|
-
|
|
|
-import type { PropType } from 'vue'
|
|
|
-import type { RecordProcess } from './help'
|
|
|
-import { isTemploraryID } from '@/store'
|
|
|
-import { Message } from 'bill/index'
|
|
|
+import type {RecordProcess} from './help'
|
|
|
+import {Message} from 'bill/index'
|
|
|
|
|
|
export default defineComponent({
|
|
|
props: {
|