-
🧠 深维专家团并行推理中...
-
✅ X光片就绪
-
-
- @for (agent of agents; track agent.id; let i = $index) {
-
-
-
{{ agent.name }}
-
+
+
-
-
预估消耗 1000 算力点数
+
diff --git a/src/app/app.ts b/src/app/app.ts
index 3af5762..167d1e1 100644
--- a/src/app/app.ts
+++ b/src/app/app.ts
@@ -49,6 +49,7 @@ export class App implements OnDestroy, OnInit {
// Recording & Upload Modal State
showActionSheet = false;
isRecording = false;
+ isRecordingPaused = false;
isProcessing = false;
uploadComplete = false;
@@ -356,17 +357,30 @@ export class App implements OnDestroy, OnInit {
startRecording() {
this.showActionSheet = true;
this.isRecording = true;
+ this.isRecordingPaused = false;
this.isProcessing = false;
this.uploadComplete = false;
this.recordDuration = 0;
- this.recordingTimer = setInterval(() => { this.recordDuration++; }, 1000);
+ this.recordingTimer = setInterval(() => {
+ if (!this.isRecordingPaused) {
+ this.recordDuration++;
+ }
+ }, 1000);
}
stopAndProcess() {
- // Inbox SPEC: 不再需要客户校验,直接上云
this.isRecording = false;
+ this.isRecordingPaused = false;
if (this.recordingTimer) clearInterval(this.recordingTimer);
- this.runAgentPipeline();
+
+ // The native audio blob hasn't been bridged yet (Tauri V4 audio pipeline pending)
+ // For now, close the sheet. (Users can long-press to test the real file upload pipeline).
+ this.showActionSheet = false;
+ alert('Tauri 原生录音桥接尚未完成。如需体验真实推理管线,请长按录音键使用本地录音文件上传。');
+ }
+
+ togglePauseResume() {
+ this.isRecordingPaused = !this.isRecordingPaused;
}
triggerUploadFile() {
@@ -419,36 +433,9 @@ export class App implements OnDestroy, OnInit {
}
// --- Mock Pipeline for Recording ---
- runAgentPipeline() {
- this.isProcessing = true;
- this.agents.forEach(a => a.status = 'pending');
- this.agents[0].status = 'processing';
-
- const processNext = (index: number) => {
- this.agents[index].status = 'processing';
- setTimeout(() => {
- if (index === this.agents.length - 1) {
- this.agents[index].status = 'completed';
- this.uploadComplete = true;
- // Auto close after 2.5 seconds
- setTimeout(() => { this.showActionSheet = false; }, 2500);
- } else {
- this.agents[index].status = 'completed';
- processNext(index + 1);
- }
- }, 800);
- };
-
- setTimeout(() => {
- this.agents[0].status = 'completed';
- processNext(1);
- }, 800);
- }
closeSheets() {
- if (!this.isRecording && !this.isProcessing) {
- this.showActionSheet = false;
- }
+ this.showActionSheet = false;
this.showChatSheet = false;
}
diff --git a/src/app/pages/client-ltc-dashboard/client-ltc-dashboard.html b/src/app/pages/client-ltc-dashboard/client-ltc-dashboard.html
index 6bdc338..e8b260e 100644
--- a/src/app/pages/client-ltc-dashboard/client-ltc-dashboard.html
+++ b/src/app/pages/client-ltc-dashboard/client-ltc-dashboard.html
@@ -28,20 +28,23 @@
-
- 核心诉求:{{ client.project || '待AI挖掘/人工补全' }}
-
-
-
-
⚠️ AI 诊断阻力
-
{{ client.ltcStatus?.coreBarrier }}
-
+
+
+
+
+
-
-
💡 下一步建议
-
{{ client.ltcStatus?.nextAction }}
-
+
+
+
+ 分析状态:等待归档面诊录音生成档案...
+
+