fix(frontend): remove fake case sample action

This commit is contained in:
2026-07-09 22:45:32 +08:00
parent fe4ebcfb0f
commit 0af0f1c896
+6 -18
View File
@@ -68,14 +68,9 @@
<small>{{ step.note }}</small>
</div>
</div>
<div class="sample-card" :class="{ active: sampleVisible }">
<div class="sample-card" :class="{ active: stored }">
<strong>视频样片</strong>
<p>
{{
sampleVisible ? '已命中车库积水投诉处理样片,可用于演示案例沉淀后的培训复用。' : '案例转视频本期只展示预渲染样片,不现场调用视频生成。'
}}
</p>
<el-button :icon="VideoCamera" @click="viewSample">查看样片</el-button>
<p>{{ apiSampleHint || '案例转视频本期不现场调用视频生成;当前只展示案例入库结果。' }}</p>
</div>
</article>
</section>
@@ -98,7 +93,7 @@
</template>
<script setup name="KnowledgeCases" lang="ts">
import { DocumentChecked, FolderChecked, Microphone, Tickets, VideoCamera } from '@element-plus/icons-vue';
import { DocumentChecked, FolderChecked, Microphone, Tickets } from '@element-plus/icons-vue';
import { ElMessage } from 'element-plus';
import { computed, ref } from 'vue';
import { useRouter } from 'vue-router';
@@ -111,7 +106,6 @@ const audioUploaded = ref(false);
const organized = ref(false);
const reviewed = ref(false);
const stored = ref(false);
const sampleVisible = ref(false);
const caseId = ref('');
const apiMode = ref<'idle' | 'api' | 'error'>('idle');
const apiFileName = ref('');
@@ -168,9 +162,9 @@ const pipeline = computed(() => [
},
{
name: '样片展示',
count: sampleVisible.value ? '1 条' : '5 条',
note: sampleVisible.value ? '已打开预渲染样片' : '演示兜底',
state: sampleVisible.value ? 'done' : 'todo'
count: '0 条',
note: apiSampleHint.value || '未接视频样片',
state: 'todo'
}
]);
@@ -216,7 +210,6 @@ async function uploadAudio(file: File) {
organized.value = false;
reviewed.value = false;
stored.value = false;
sampleVisible.value = false;
apiSummary.value = [];
apiRecord.value = null;
apiSampleHint.value = '';
@@ -296,11 +289,6 @@ async function storeCase() {
ElMessage.error('后端案例入库 API 不可用');
}
}
function viewSample() {
sampleVisible.value = true;
ElMessage.info(apiSampleHint.value || '已打开预渲染样片兜底');
}
</script>
<style lang="scss" scoped>