| | |
| | | <el-button |
| | | type="primary" |
| | | link |
| | | @click="previewFile(file)" |
| | | @click="showPreview(file)" |
| | | v-if="canPreview(file.mediaType)" |
| | | > |
| | | 预览 |
| | |
| | | <div class="submit-section"> |
| | | <el-button |
| | | type="primary" |
| | | @click="submitRating" |
| | | @click="handleSubmitRating" |
| | | :loading="submitting" |
| | | :disabled="!canSubmit" |
| | | size="large" |
| | |
| | | } |
| | | |
| | | // 提交评分 |
| | | const submitRating = async () => { |
| | | const handleSubmitRating = async () => { |
| | | try { |
| | | await ElMessageBox.confirm('确认提交评分吗?提交后不可修改。', '确认提交', { |
| | | confirmButtonText: '确认', |
| | |
| | | return `${size.toFixed(1)} ${units[index]}` |
| | | } |
| | | |
| | | const previewFile = (file) => { |
| | | const showPreview = (file) => { |
| | | previewFile.value = file |
| | | previewVisible.value = true |
| | | } |