Skip to content

Commit

Permalink
Merge pull request #27 from putianyi889/patch-23
Browse files Browse the repository at this point in the history
修复UploadVideoCard的显示bug
  • Loading branch information
eee555 authored May 6, 2024
2 parents 3e192da + 2177140 commit 3ca5b01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions back_end/saolei/videomanager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ class Mode(models.TextChoices):

class State(models.TextChoices):
PLAIN = "a", ('已上传但未审核')
FREEZEN = "b", ('审核为通过,被冻结')
OFFICAL = "c", ('已通过审核')
FROZEN = "b", ('审核未通过,被冻结')
OFFICIAL = "c", ('已通过审核')

class Level(models.TextChoices):
BEGINNER = "b", ('初级')
Expand Down Expand Up @@ -120,7 +120,7 @@ class Level(models.TextChoices):
# # 无猜
# nf = models.BooleanField()
# 0.000-999.999
timems = models.PositiveIntegerField(default=DefaultRankingScores["timems"]) # 整数形式存储的毫秒数。i后缀表示整数
timems = models.PositiveIntegerField(default=DefaultRankingScores["timems"]) # 整数形式存储的毫秒数。
# 0-32767
bv = models.PositiveSmallIntegerField()
bvs = models.FloatField()
Expand Down
3 changes: 2 additions & 1 deletion front_end/src/components/UploadVideoCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="grid-content ep-bg-purple">难度:{{ video_msg.level }}</div>
</el-col>
<el-col :span="13">
<div class="grid-content ep-bg-purple">时间:{{ video_msg.timems }}s</div>
<div class="grid-content ep-bg-purple">时间:{{ ms_to_s(video_msg.timems) }}s</div>
</el-col>
</el-row>
<el-row :gutter="5">
Expand All @@ -41,6 +41,7 @@
// 上传录像的页面,等待上传的录像的卡片
import { onMounted, ref, Ref } from 'vue'
import useCurrentInstance from "@/utils/common/useCurrentInstance";
import { ms_to_s } from '@/utils';
const { proxy } = useCurrentInstance();
import type { UploadInstance, UploadProps, UploadRawFile, UploadFile, UploadFiles, UploadRequestOptions } from 'element-plus'
// import img_arbiter from '@/assets/img/img_arbiter.png'
Expand Down
2 changes: 1 addition & 1 deletion front_end/src/views/UploadView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}}个)</el-button>
<el-button @click="cancel_all()" size="small" type="info" v-show="video_msgs.length > 0"
style="display: block;margin: 16px auto;width: 120px;" plain>全部清空</el-button>
<span style="font-size: 14px;">*单个文件大小不能超过5M</span>
<span style="font-size: 14px;">*单个文件大小不能超过5M,文件数量不能超过99</span>
</div>
</template>
</el-upload>
Expand Down

0 comments on commit 3ca5b01

Please sign in to comment.