Commit 57ca58cf authored by 15011343103's avatar 15011343103

fix

parent 5702998a
...@@ -118,160 +118,15 @@ new Vue({ ...@@ -118,160 +118,15 @@ new Vue({
this.checkProcess(); this.checkProcess();
} else { } else {
this.hasData = true; this.hasData = true;
this.initPage(data); this.$nextTick(() => {
this.initWavesurfer(); this.initPage(data);
this.initWavesurfer();
});
this.$message.success('处理完成'); this.$message.success('处理完成');
} }
}, },
// 加载默认数据 // 加载默认数据
async loadDefaultData() { async loadDefaultData() {
// const mockData = [
// {
// "step_code": "QUEUE",
// "step_code_desc": "加入AI任务队列",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "AUDIO_CHANGE",
// "step_code_desc": "音频标准化转码",
// "step_status": "4",
// "step_process": "0",
// "err_massage": "The specified key does not exist."
// },
// {
// "step_code": "AUDIO_POINT",
// "step_code_desc": "ElevenLabs语音语义上下文分析",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "PDF_TO_IMAGE",
// "step_code_desc": "PDF转图片",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "IMAGE_COMPRESS",
// "step_code_desc": "图片标准化压缩",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "OCR",
// "step_code_desc": "百度AI大模型文字定位识别",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "SENTENCE_GROUP",
// "step_code_desc": "DeepSeek自然语言处理, 识别、拆分及重组句子",
// "step_status": "1",
// "step_process": "0",
// "err_massage": ""
// },
// {
// "step_code": "AUDIO_CHANGE",
// "step_code_desc": "音频标准化转码",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "AUDIO_POINT",
// "step_code_desc": "ElevenLabs语音语义上下文分析",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "PDF_TO_IMAGE",
// "step_code_desc": "PDF转图片",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "IMAGE_COMPRESS",
// "step_code_desc": "图片标准化压缩",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "OCR",
// "step_code_desc": "百度AI大模型文字定位识别",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "SENTENCE_GROUP",
// "step_code_desc": "DeepSeek自然语言处理, 识别、拆分及重组句子",
// "step_status": "1",
// "step_process": "0",
// "err_massage": ""
// },
// {
// "step_code": "AUDIO_CHANGE",
// "step_code_desc": "音频标准化转码",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "AUDIO_POINT",
// "step_code_desc": "ElevenLabs语音语义上下文分析",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "PDF_TO_IMAGE",
// "step_code_desc": "PDF转图片",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "IMAGE_COMPRESS",
// "step_code_desc": "图片标准化压缩",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "OCR",
// "step_code_desc": "百度AI大模型文字定位识别",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "SENTENCE_GROUP",
// "step_code_desc": "DeepSeek自然语言处理, 识别、拆分及重组句子",
// "step_status": "3",
// "step_process": "100",
// "err_massage": ""
// },
// {
// "step_code": "AUDIO_PAGE_SENTENCE_MATCH",
// "step_code_desc": "DeepSeek深度思考, 匹配音频-图片, 音频-句子的最优结果",
// "step_status": "1",
// "step_process": "0",
// "err_massage": ""
// }
// ];
// this.queueTasks = mockData;
// return;
this.loading = true; this.loading = true;
this.$message.info('正在加载数据...'); this.$message.info('正在加载数据...');
...@@ -293,8 +148,10 @@ new Vue({ ...@@ -293,8 +148,10 @@ new Vue({
} }
this.hasData = true; this.hasData = true;
this.initPage(data); this.$nextTick(() => {
this.initWavesurfer(); this.initPage(data);
this.initWavesurfer();
});
this.loading = false; this.loading = false;
this.$message.success('数据加载成功'); this.$message.success('数据加载成功');
} catch (error) { } catch (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment