fix: Library isRegistered checkmark, Search add People+Agent modes

This commit is contained in:
2026-06-14 20:26:48 +08:00
parent 67c0a2b4a0
commit b8bd7c05be
2 changed files with 5 additions and 3 deletions

View File

@@ -61,7 +61,7 @@
<div class="mp-status" :class="{ show: loading || statusText }">{{ statusText }}</div> <div class="mp-status" :class="{ show: loading || statusText }">{{ statusText }}</div>
<div class="mp-grid"> <div class="mp-grid">
<div v-for="f in sortedFilteredFiles" :key="f.file_uuid" class="mp-file-card" :class="{ 'is-completed': f.is_registered, 'is-selected': selectedFiles.includes(f.file_uuid) }" @click="toggleSelect(f)"> <div v-for="f in sortedFilteredFiles" :key="f.file_uuid" class="mp-file-card" :class="{ 'is-completed': f.isRegistered, 'is-selected': selectedFiles.includes(f.file_uuid) }" @click="toggleSelect(f)">
<div class="mp-thumb-wrap"> <div class="mp-thumb-wrap">
<div class="mp-badge-type">{{ isVideo(f) ? 'VIDEO' : (isPhoto(f) ? 'PHOTO' : 'DOC') }}</div> <div class="mp-badge-type">{{ isVideo(f) ? 'VIDEO' : (isPhoto(f) ? 'PHOTO' : 'DOC') }}</div>
<img v-if="isPhoto(f) || isVideo(f)" class="lt-thumb" :src="thumbnails[f.file_uuid]" alt="" loading="lazy" @error="handleThumbError" @vue:mounted="loadThumbnail(f.file_uuid)"> <img v-if="isPhoto(f) || isVideo(f)" class="lt-thumb" :src="thumbnails[f.file_uuid]" alt="" loading="lazy" @error="handleThumbError" @vue:mounted="loadThumbnail(f.file_uuid)">
@@ -70,7 +70,7 @@
<span class="mp-doc-ext">{{ getFileExt(f.file_name) }}</span> <span class="mp-doc-ext">{{ getFileExt(f.file_name) }}</span>
</div> </div>
<button v-if="isVideo(f)" class="mp-play-btn" @click.stop="playVideo(f)"></button> <button v-if="isVideo(f)" class="mp-play-btn" @click.stop="playVideo(f)"></button>
<div class="mp-complete-mark" v-if="f.is_registered"></div> <div class="mp-complete-mark" v-if="f.isRegistered"></div>
</div> </div>
<div class="mp-meta"> <div class="mp-meta">
<div class="mp-name">{{ f.file_name }}</div> <div class="mp-name">{{ f.file_name }}</div>

View File

@@ -58,7 +58,9 @@ import VideoPlayer from '../components/VideoPlayer.vue'
const modes = [ const modes = [
{ label: 'Keyword', value: 'keyword' }, { label: 'Keyword', value: 'keyword' },
{ label: 'Semantic', value: 'semantic' } { label: 'Semantic', value: 'semantic' },
{ label: 'People', value: 'people' },
{ label: 'Agent', value: 'agent' }
] ]
const mode = ref('semantic') const mode = ref('semantic')